|
@@ -60,7 +60,7 @@
|
60
|
60
|
mask: true,
|
61
|
61
|
});
|
62
|
62
|
let postData = {workOrders: []};
|
63
|
|
- this.addServiceTasks.forEach(v => {
|
|
63
|
+ this.addServiceTasks.filter(v => v.checked).forEach(v => {
|
64
|
64
|
postData.workOrders.push({
|
65
|
65
|
"sourceId": 4,
|
66
|
66
|
"taskType": {
|
|
@@ -92,12 +92,13 @@
|
92
|
92
|
values = e.detail.value;
|
93
|
93
|
for (var i = 0, lenI = items.length; i < lenI; ++i) {
|
94
|
94
|
const item = items[i]
|
95
|
|
- if(values.includes(item.value)){
|
|
95
|
+ if(values.includes(item.id)){
|
96
|
96
|
this.$set(item,'checked',true)
|
97
|
97
|
}else{
|
98
|
98
|
this.$set(item,'checked',false)
|
99
|
99
|
}
|
100
|
100
|
}
|
|
101
|
+ console.log(e, this.addServiceTasks);
|
101
|
102
|
},
|
102
|
103
|
// 获取检查页面控制
|
103
|
104
|
getTaskTypeConfig(){
|