|
|
|
|
@ -166,9 +166,9 @@ |
|
|
|
|
<span><i style="color:red">*</i>故障类别</span> |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.ngType2Id" :disabled="type == 'view'"> |
|
|
|
|
<el-option v-for="item in errorTypeArr" :key="item.id" :value="item.dictKey" |
|
|
|
|
:label="item.dictValue"></el-option> |
|
|
|
|
<el-select v-model="scope.row.ngType2Id" :disabled="type == 'view'" @change="() => changeGzType(scope.row.ngType2Id,scope.$index)"> |
|
|
|
|
<el-option v-for="item in errorTypeArr" :key="item.id" :value="item.id" |
|
|
|
|
:label="item.name"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
@ -179,7 +179,7 @@ |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.ngType3Id" :disabled="!scope.row.ngType2Id || type == 'view'" |
|
|
|
|
@change="(val) => changeBigQuestion(val,scope.$index)" > |
|
|
|
|
<el-option v-for="item in errorBigArr" :key="item.id" :value="item.id" |
|
|
|
|
<el-option v-for="item in scope.row.errorBigArr" :key="item.id" :value="item.id" |
|
|
|
|
:label="item.name"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
@ -350,7 +350,7 @@ export default { |
|
|
|
|
mounted() { |
|
|
|
|
this.openShow = this.showDialog |
|
|
|
|
this.getError() |
|
|
|
|
this.getQuestionBig() |
|
|
|
|
// this.getQuestionBig() |
|
|
|
|
this.getDetail() |
|
|
|
|
// this.getHistory() |
|
|
|
|
this.getDisposeType() |
|
|
|
|
@ -530,6 +530,15 @@ export default { |
|
|
|
|
this.errorBigArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
changeGzType(val,index){ |
|
|
|
|
this.faultList[index].ngType3Id = '' |
|
|
|
|
this.faultList[index].ngType4Id = '' |
|
|
|
|
getQuestionClassList({ |
|
|
|
|
parentId:val |
|
|
|
|
}).then(res =>{ |
|
|
|
|
this.faultList[index].errorBigArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
changeBigQuestion(val,index){ |
|
|
|
|
this.faultList[index].ngType4Id = '' |
|
|
|
|
this.getQuestionSmall(val,index) |
|
|
|
|
|