|
@@ -104,6 +104,7 @@
|
104
|
104
|
</div>
|
105
|
105
|
<div>
|
106
|
106
|
<el-table
|
|
107
|
+ class="jianyan"
|
107
|
108
|
stripe
|
108
|
109
|
:header-cell-style="{
|
109
|
110
|
backgroundColor: 'rgb(245, 247, 250)',
|
|
@@ -638,33 +639,33 @@ export default {
|
638
|
639
|
console.log(this.form.remind_cycle)
|
639
|
640
|
|
640
|
641
|
this.form.formItem = []
|
641
|
|
- console.log("hhhhhhhhhhhhh",this.list)
|
642
|
|
- console.log("inspectionsMap",row)
|
|
642
|
+ console.log("hhhhhhhhhhhhhthis.list",this.list)
|
|
643
|
+ console.log("inspectionsMaprow",row)
|
|
644
|
+ console.log("item",this.items)
|
643
|
645
|
for (var index in this.list) {
|
644
|
646
|
if(this.org_id ==10138){
|
645
|
647
|
this.form.formItem.push({
|
646
|
|
- id: this.list[index].id,
|
|
648
|
+ id: this.getid(this.list[index].item_id!=0 ? this.list[index].item_id : this.list[index].id ,row.inspect_date),
|
647
|
649
|
project_id: this.list[index].project_id,
|
648
|
650
|
project_name: this.list[index].project_name,
|
649
|
|
- item_id: this.list[index].item_id,
|
650
|
|
- item: this.list[index].item,
|
|
651
|
+ item_id: (this.list[index].item_id)*1,
|
651
|
652
|
item_name: this.list[index].item_name,
|
652
|
653
|
range_type: this.list[index].range_type,
|
653
|
|
- value: this.getvalue(this.list[index].item_id,row.inspect_date),
|
|
654
|
+ value: this.getvalue(this.list[index].item_id!=0 ? this.list[index].item_id : this.list[index].id ,row.inspect_date) ,
|
654
|
655
|
select_options: this.list[index].range_options.split(','),
|
655
|
656
|
unit: this.list[index].unit,
|
656
|
|
- item_id:parseInt(this.list[index].item_id) ,
|
|
657
|
+ // item_id:parseInt(this.list[index].item_id) ,
|
657
|
658
|
})
|
658
|
659
|
}else{
|
659
|
660
|
this.form.formItem.push({
|
660
|
661
|
// id: this.list[index].item_id,
|
661
|
|
- id: this.getid(this.list[index].item_id,row.inspect_date),
|
|
662
|
+ id: this.getid(this.list[index].item_id!=0 ? this.list[index].item_id : this.list[index].id ,row.inspect_date),
|
662
|
663
|
project_id: this.list[index].project_id,
|
663
|
664
|
project_name: this.list[index].project_name,
|
664
|
665
|
item_id: (this.list[index].item_id)*1,
|
665
|
666
|
item_name: this.list[index].item_name,
|
666
|
667
|
range_type: this.list[index].range_type,
|
667
|
|
- value: this.getvalue(this.list[index].item_id,row.inspect_date) ,
|
|
668
|
+ value: this.getvalue(this.list[index].item_id!=0 ? this.list[index].item_id : this.list[index].id ,row.inspect_date) ,
|
668
|
669
|
select_options: this.list[index].range_options.split(','),
|
669
|
670
|
unit: this.list[index].unit
|
670
|
671
|
})
|
|
@@ -1162,14 +1163,13 @@ export default {
|
1162
|
1163
|
|
1163
|
1164
|
},
|
1164
|
1165
|
getvalue(val,time){
|
1165
|
|
- // console.log('val',this.items,val);
|
1166
|
1166
|
const options = this.items
|
1167
|
1167
|
for(let i in options){
|
1168
|
1168
|
if( options[i].inspect_date == time){
|
1169
|
1169
|
for(let j in options[i].Child){
|
1170
|
1170
|
if(options[i].Child[j].item_id == val){
|
1171
|
|
- // console.log('options[i].inspect_value',options[i].inspect_value);
|
1172
|
|
- return options[i].Child[j].inspect_value
|
|
1171
|
+ console.log('options[i].inspect_value',options[i].inspect_value);
|
|
1172
|
+ return options[i].Child[j].inspect_value.replace(/</g, "<").replace(/>/g, ">")
|
1173
|
1173
|
}
|
1174
|
1174
|
|
1175
|
1175
|
}
|
|
@@ -1192,7 +1192,8 @@ export default {
|
1192
|
1192
|
}
|
1193
|
1193
|
|
1194
|
1194
|
}
|
1195
|
|
- }
|
|
1195
|
+ },
|
|
1196
|
+
|
1196
|
1197
|
},
|
1197
|
1198
|
created() {
|
1198
|
1199
|
const id = this.$route.query && this.$route.query.id
|
|
@@ -1215,13 +1216,21 @@ export default {
|
1215
|
1216
|
}
|
1216
|
1217
|
</script>
|
1217
|
1218
|
|
1218
|
|
-<style>
|
|
1219
|
+<style lang="scss">
|
1219
|
1220
|
#oictable ::-webkit-scrollbar {
|
1220
|
1221
|
height: 15px;
|
1221
|
1222
|
}
|
|
1223
|
+.jianyan{
|
|
1224
|
+ .el-table__fixed{
|
|
1225
|
+ height: 98% !important;
|
|
1226
|
+ }
|
|
1227
|
+ .el-table__fixed-right{
|
|
1228
|
+ height: 98% !important;
|
|
1229
|
+ }
|
|
1230
|
+}
|
1222
|
1231
|
</style>
|
1223
|
1232
|
|
1224
|
|
-<style>
|
|
1233
|
+<style scoped>
|
1225
|
1234
|
#user-inspection-order td {
|
1226
|
1235
|
border-bottom: 0px !important;
|
1227
|
1236
|
border-right: 0px !important;
|