Commit 8a83e3b8 by zhuoym
parents b7dc2f59 d766d4ca
......@@ -372,6 +372,7 @@ export default {
} else {
this.activeli.id = v[0].id;
this.activeli.parentId = v[0].parentId;
this.searchSubmit()
}
}
},
......
......@@ -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) {
......@@ -1646,7 +1675,7 @@ export default {
dataSourceName = '轨道集团'
}
self.workOrder = data
data.repairImgs = data.repairImgs == null ? null : this.getArrImgs(data.repairImgs, '|~|')
data.repairImgs = data.repairImgs == null || data.repairImgs == '' ? null : this.getArrImgs(data.repairImgs, '|~|')
this.formItem = {
id: data.id,
callID: data.callID,
......@@ -1694,7 +1723,8 @@ export default {
finishRemark: data.finishRemark,
repairEstimate: data.repairEstimate ? data.repairEstimate : {},
estimateLabel: data.estimateLabel,
repairImgs: data.repairImgs
repairImgs: data.repairImgs,
problemType: data.problemList
};
this.getTreeList()
// 历史报修
......@@ -1708,6 +1738,7 @@ export default {
self.getProblemList()
self.getQuestionList()
})
this.getProblemBaseList(data.problemBaseId)
// 处理参与者id
if (data.participatorids) {
......
......@@ -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