Commit 3209a62e by 郑艺斌

修复详情问题项BUG

parent f3ec15cd
Showing with 34 additions and 4 deletions
......@@ -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" v-for="(item, index) in formItem.problemList">
<span>{{ item }}</span>
<Checkbox :key="index" :label="item.problem" v-for="(item, index) in questionList">
<span>{{ item.problem }}</span>
</Checkbox>
<Checkbox key="other" label="其他"><span>其他</span></Checkbox>
</CheckboxGroup>
......@@ -1184,9 +1184,38 @@ export default {
that.remarkImgFiles.push(file);
};
},
getProblemBaseList (parentId) {
this.$request.post(
"/api/emaint/problem-base/list",
qs.stringify({ parentId, label: '0' }),
res => {
if (res.statusCode === 200) {
this.questionList = res.responseResult;
}
},
res => { }
);
},
// 加载常见问题
getQuestionList (val) {
if (this.formItem.problemClass == '' || this.formItem.problemClass == null) {
this.$Message.error(
"请先选择一级菜单!"
);
return
}
let arr = this.sublevelList.filter(item => item.problem === val)
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 => { }
);
return
let self = this;
this.problemTypeList.forEach(v => {
if (v.problem == self.formItem.problemType) {
......@@ -1695,7 +1724,7 @@ export default {
repairEstimate: data.repairEstimate ? data.repairEstimate : {},
estimateLabel: data.estimateLabel,
repairImgs: data.repairImgs,
problemList: data.problemList
problemType: data.problemList
};
this.getTreeList()
// 历史报修
......@@ -1709,6 +1738,7 @@ export default {
self.getProblemList()
self.getQuestionList()
})
this.getProblemBaseList(data.problemBaseId)
// 处理参与者id
if (data.participatorids) {
......
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