|
|
@ -83,7 +83,7 @@ export default { |
|
|
|
if (res.data.cycleType) { |
|
|
|
this.ruleForm.cycleType = res.data.cycleType.toString() |
|
|
|
} |
|
|
|
this.changePatrolType(res) |
|
|
|
this.changePatrolType(res.data, false) |
|
|
|
this.dialogVisible = true |
|
|
|
}) |
|
|
|
}, |
|
|
@ -134,8 +134,10 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 更改巡查类型 |
|
|
|
changePatrolType(ruleForm) { |
|
|
|
this.$set(ruleForm, 'xcId', '') |
|
|
|
changePatrolType(ruleForm, reset) { |
|
|
|
if (reset) { |
|
|
|
this.$set(ruleForm, 'xcId', '') |
|
|
|
} |
|
|
|
postDFInspectionProjectList({ |
|
|
|
data: { |
|
|
|
timeView: { |
|
|
@ -284,7 +286,7 @@ export default { |
|
|
|
<el-input style="width: 202px;" v-model="ruleForm.name"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label-width="120px" label="巡查类型" prop="type"> |
|
|
|
<el-select v-model="ruleForm.type" placeholder="请选择巡查类型" @change="changePatrolType(ruleForm)"> |
|
|
|
<el-select v-model="ruleForm.type" placeholder="请选择巡查类型" @change="changePatrolType(ruleForm, true)"> |
|
|
|
<el-option v-for="item in examType" :label="item.dictLabel" :value="item.dictValue" |
|
|
|
:key="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|