Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
Scott
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Sun
Scott
Commits
149f666c
Commit
149f666c
authored
5 years ago
by
Scott Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scott
parent
eb6de9a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
analysis_test.js
ats/scott_test/analysis_test.js
+14
-3
No files found.
ats/scott_test/analysis_test.js
View file @
149f666c
...
...
@@ -671,7 +671,10 @@ try {
min_line_spacing
:
[
"l2l"
],
min_line2pad
:
[
"p2line"
,
"user_bga2nor_line"
,
"user_smd2nor_line"
],
min_pad2pad
:
[
"p2p"
,
"smd2smd"
,
"smd2pad"
,
"via2via"
,
"bga2pad"
],
min_ar
:
[
"ar"
,
"pth_ar"
]
min_ar_laser
:[
"laser_via_ar"
],
min_ar_via
:[
"via_ar"
],
min_ar_pth
:[
"pth_ar"
],
min_ar_npth
:[
"npth_ar"
]
}
save_job_info
({
jobid
:
JobId
,
...
...
@@ -784,9 +787,17 @@ try {
})
// signal层分析结果
var
res
=
analysisChkAttr
({
layers
:
signalLayers
,
info
:
info
,
step
:
step
,
job
:
job
,
oChecklistName
:
oChecklistName
})
// 数据入库
// 数据入库
Object
.
keys
(
res
).
forEach
(
function
(
key
){
var
val
=
res
[
key
]
for
(
var
key2
in
val
){
if
(
key2
==
"min_ar_npth"
){
if
(
Number
(
val
[
key2
])
==
0
||
Number
(
val
[
key2
])
==
999
){
delete
val
.
min_ar_npth
}
}
}
save_layerinfo
({
jobid
:
JobId
,
layer
:
key
,
...
...
@@ -1093,7 +1104,7 @@ function save_layerinfo(props){ // 保存层信息
console
.
log
(
"+==========updateRowlayer:layer:"
+
layer
+
";attrname:"
+
key
+
";value:"
+
val
)
return
q
.
updateRow
({
table
:
'pdm_job_layerattr'
,
where
:{
job_id
:
jobid
,
attr_name
:
key
},
where
:{
job_id
:
jobid
,
attr_name
:
key
,
layer
:
layer
},
data
:{
value
:
val
},
})
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment