|
@@ -144,7 +144,7 @@
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
|
|
|
|
+ </el-table>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<template v-slot:footer>
|
|
<template v-slot:footer>
|
|
|
<el-button @click="handleClose">取消</el-button>
|
|
<el-button @click="handleClose">取消</el-button>
|
|
@@ -199,7 +199,6 @@ export default {
|
|
|
name: '', // 巡点检事项
|
|
name: '', // 巡点检事项
|
|
|
content: '', // 巡点检内容
|
|
content: '', // 巡点检内容
|
|
|
norm: '', // 巡点检标准
|
|
norm: '', // 巡点检标准
|
|
|
- // readonly: false
|
|
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
};
|
|
};
|
|
@@ -207,7 +206,7 @@ export default {
|
|
|
addMatterDialog: false,
|
|
addMatterDialog: false,
|
|
|
cycleValue: '',
|
|
cycleValue: '',
|
|
|
uploadList: [],
|
|
uploadList: [],
|
|
|
- formData: { },
|
|
|
|
|
|
|
+ formData: {},
|
|
|
contentConfigFormRules: {
|
|
contentConfigFormRules: {
|
|
|
name: [{ required: true, message: '请输入规则名称', trigger: 'blur' }],
|
|
name: [{ required: true, message: '请输入规则名称', trigger: 'blur' }],
|
|
|
ruleType: [
|
|
ruleType: [
|
|
@@ -232,7 +231,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
openDialog(row,type){
|
|
openDialog(row,type){
|
|
@@ -249,7 +248,7 @@ export default {
|
|
|
this.getOrderCode()
|
|
this.getOrderCode()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
async getRuleInfo(id,type){
|
|
async getRuleInfo(id,type){
|
|
|
const data = await getDetail(id)
|
|
const data = await getDetail(id)
|
|
|
this.formData = data
|
|
this.formData = data
|
|
@@ -258,12 +257,12 @@ export default {
|
|
|
delete this.formData.id
|
|
delete this.formData.id
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
async getOrderCode () {
|
|
async getOrderCode () {
|
|
|
const data = await getCode('rule_code');
|
|
const data = await getCode('rule_code');
|
|
|
this.$set(this.formData, 'code', data);
|
|
this.$set(this.formData, 'code', data);
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
handleClose () {
|
|
handleClose () {
|
|
|
this.addMatterDialog = false
|
|
this.addMatterDialog = false
|
|
|
this.$emit('handleClose')
|
|
this.$emit('handleClose')
|
|
@@ -277,14 +276,15 @@ export default {
|
|
|
readonly: false
|
|
readonly: false
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
- this.formData.ruleItems = [
|
|
|
|
|
|
|
+ let arr = [
|
|
|
{
|
|
{
|
|
|
name: '', // 巡点检事项
|
|
name: '', // 巡点检事项
|
|
|
content: '', // 巡点检内容
|
|
content: '', // 巡点检内容
|
|
|
norm: '', // 巡点检标准
|
|
norm: '', // 巡点检标准
|
|
|
- readonly: false
|
|
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
|
|
+ this.$set(this.formData,'ruleItems',arr)
|
|
|
|
|
+ // this.formData.ruleItems =
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
saveItem (index, row) {
|
|
saveItem (index, row) {
|