Commit f3ec15cd by 郑艺斌

修复问题项

parent 8364c3e7
...@@ -164,8 +164,8 @@ ...@@ -164,8 +164,8 @@
<Col span="24"> <Col span="24">
<FormItem label="问题项" style="text-align:left"> <FormItem label="问题项" style="text-align:left">
<CheckboxGroup v-model="formItem.problem" @on-change="checkProblem"> <CheckboxGroup v-model="formItem.problem" @on-change="checkProblem">
<Checkbox :key="index" :label="item.problem" v-for="(item, index) in questionList"> <Checkbox :key="index" :label="item" v-for="(item, index) in formItem.problemList">
<span>{{ item.problem }}</span> <span>{{ item }}</span>
</Checkbox> </Checkbox>
<Checkbox key="other" label="其他"><span>其他</span></Checkbox> <Checkbox key="other" label="其他"><span>其他</span></Checkbox>
</CheckboxGroup> </CheckboxGroup>
...@@ -1694,7 +1694,8 @@ export default { ...@@ -1694,7 +1694,8 @@ export default {
finishRemark: data.finishRemark, finishRemark: data.finishRemark,
repairEstimate: data.repairEstimate ? data.repairEstimate : {}, repairEstimate: data.repairEstimate ? data.repairEstimate : {},
estimateLabel: data.estimateLabel, estimateLabel: data.estimateLabel,
repairImgs: data.repairImgs repairImgs: data.repairImgs,
problemList: data.problemList
}; };
this.getTreeList() this.getTreeList()
// 历史报修 // 历史报修
......
...@@ -964,6 +964,16 @@ export default { ...@@ -964,6 +964,16 @@ export default {
let arr = this.sublevelList.filter(item => item.problem === val) let arr = this.sublevelList.filter(item => item.problem === val)
console.log(arr); console.log(arr);
this.formItem.problemBaseId = arr[0].id 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); // console.log(this.formItem.problemType);
// this.childList.forEach(v => { // this.childList.forEach(v => {
// if (v.problem == this.formItem.problemType) { // 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