Commit f3ec15cd by 郑艺斌

修复问题项

parent 8364c3e7
......@@ -164,8 +164,8 @@
<Col span="24">
<FormItem label="问题项" style="text-align:left">
<CheckboxGroup v-model="formItem.problem" @on-change="checkProblem">
<Checkbox :key="index" :label="item.problem" v-for="(item, index) in questionList">
<span>{{ item.problem }}</span>
<Checkbox :key="index" :label="item" v-for="(item, index) in formItem.problemList">
<span>{{ item }}</span>
</Checkbox>
<Checkbox key="other" label="其他"><span>其他</span></Checkbox>
</CheckboxGroup>
......@@ -1694,7 +1694,8 @@ export default {
finishRemark: data.finishRemark,
repairEstimate: data.repairEstimate ? data.repairEstimate : {},
estimateLabel: data.estimateLabel,
repairImgs: data.repairImgs
repairImgs: data.repairImgs,
problemList: data.problemList
};
this.getTreeList()
// 历史报修
......
......@@ -964,6 +964,16 @@ export default {
let arr = this.sublevelList.filter(item => item.problem === val)
console.log(arr);
this.formItem.problemBaseId = arr[0].id
this.$request.post(
"/api/emaint/problem-base/list",
qs.stringify({ parentId: arr[0].id, label: '0' }),
res => {
if (res.statusCode === 200) {
this.questionList = res.responseResult;
}
},
res => { }
);
// console.log(this.formItem.problemType);
// this.childList.forEach(v => {
// if (v.problem == this.formItem.problemType) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment