|
@@ -21,7 +21,7 @@
|
21
|
21
|
v-for="item in item_columns"
|
22
|
22
|
:key="item.id"
|
23
|
23
|
:label="item.item_name"
|
24
|
|
- :value="item.id"
|
|
24
|
+ :value="item.item_id"
|
25
|
25
|
></el-option>
|
26
|
26
|
</el-select>
|
27
|
27
|
|
|
@@ -308,14 +308,14 @@
|
308
|
308
|
}
|
309
|
309
|
}
|
310
|
310
|
this.item_columns = item_inspection_reference
|
311
|
|
-
|
312
|
|
- var projectInfo = this.getPojectInfo(this.item_columns[0].project_id, this.item_columns[0].id)
|
|
311
|
+
|
|
312
|
+ var projectInfo = this.getPojectInfo(this.item_columns[0].project_id, this.item_columns[0].item_id)
|
313
|
313
|
console.log("projectInfo",projectInfo)
|
314
|
314
|
this.query.project_id = projectInfo.project_id
|
315
|
|
- this.query.item_id = projectInfo.id
|
|
315
|
+ this.query.item_id = projectInfo.item_id
|
316
|
316
|
this.item_name = projectInfo.item_name
|
317
|
317
|
this.query.range_type = projectInfo.range_type
|
318
|
|
- this.GetRangeValue(projectInfo.range_type, projectInfo.project_id, projectInfo.id)
|
|
318
|
+ this.GetRangeValue(projectInfo.range_type, projectInfo.project_id, projectInfo.item_id)
|
319
|
319
|
|
320
|
320
|
}, changeItem(val) {
|
321
|
321
|
this.query.page = 1
|
|
@@ -324,7 +324,7 @@
|
324
|
324
|
console.log(projectInfo)
|
325
|
325
|
this.item_name = projectInfo.item_name
|
326
|
326
|
|
327
|
|
- this.GetRangeValue(projectInfo.range_type, projectInfo.project_id, projectInfo.id)
|
|
327
|
+ this.GetRangeValue(projectInfo.range_type, projectInfo.project_id, projectInfo.item_id)
|
328
|
328
|
|
329
|
329
|
}, changeRangeValue(val) {
|
330
|
330
|
this.query.range_value = val
|
|
@@ -362,11 +362,11 @@
|
362
|
362
|
this.item_columns = item
|
363
|
363
|
this.item_name = item[0].item_name
|
364
|
364
|
|
365
|
|
- var projectInfo = this.getPojectInfo(this.project_columns[0].project_id, this.item_columns[0].id)
|
|
365
|
+ var projectInfo = this.getPojectInfo(this.project_columns[0].project_id, this.item_columns[0].item_id)
|
366
|
366
|
this.query.project_id = projectInfo.project_id
|
367
|
|
- this.query.item_id = projectInfo.id
|
|
367
|
+ this.query.item_id = projectInfo.item_id
|
368
|
368
|
this.query.range_type = projectInfo.range_type
|
369
|
|
- this.GetRangeValue(projectInfo.range_type, projectInfo.project_id, projectInfo.id)
|
|
369
|
+ this.GetRangeValue(projectInfo.range_type, projectInfo.project_id, projectInfo.item_id)
|
370
|
370
|
} else {
|
371
|
371
|
this.$message.error(resp.msg)
|
372
|
372
|
|
|
@@ -379,7 +379,7 @@
|
379
|
379
|
},
|
380
|
380
|
getPojectInfo(project_id, item_id) {
|
381
|
381
|
for (let i = 0; i < this.all_inspection_reference.length; i++) {
|
382
|
|
- if (this.all_inspection_reference[i].project_id == project_id && this.all_inspection_reference[i].id == item_id) {
|
|
382
|
+ if (this.all_inspection_reference[i].project_id == project_id && this.all_inspection_reference[i].item_id == item_id) {
|
383
|
383
|
return this.all_inspection_reference[i]
|
384
|
384
|
}
|
385
|
385
|
}
|