feat:故障记录状态修改

master
袁子龙 2024-09-26 11:06:04 +08:00
parent 58bbde3f1d
commit ef709708c7
1 changed files with 24 additions and 20 deletions

View File

@ -62,6 +62,7 @@
</el-tab-pane>
<el-tab-pane label="解决" name="resolve">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="VIN码" prop="vin">
<el-input
@ -109,10 +110,19 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<rl-row>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-edit"
size="mini"
@click="handleUpdateStatusIgnore">忽略</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</rl-row>
<el-table v-loading="loading" :data="StatusProcessList" stripe>
</el-row>
<el-table v-loading="loading" :data="StatusProcessList" stripe @selection-chang="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="故障编号" align="center" prop="sysCarFaultId" />
<el-table-column label="VIN码" align="center" prop="vin" />
<el-table-column label="开始时间" align="center" prop="createTime" />
@ -123,7 +133,7 @@
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdateStatusIgnore(scope.row.id)">
@click="handleUpdateStatusIgnore(scope.row)">
忽略
</el-button>
</template>
@ -185,6 +195,7 @@ import {
listStatusSolve,
updateStatusById
} from '/src/api/breakdown/Log'
import { delBreakdown } from '../../../api/breakdown/breakdown'
export default {
dicts:['sys_car_fault_log_status'],
@ -287,15 +298,15 @@ export default {
this.single = selection.length!==1
this.multiple = !selection.length
},
handleUpdateStatusIgnore(id){
this.$modal.confirm('是否确认忽略编号为"'+id+'"的数据项?').then(function(){
return updateStatusById(id);
}).then(()=>{
this.getListProcess();
handleUpdateStatusIgnore(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认忽略编号为"' + ids + '"的数据项?').then(function() {
return updateStatusById(ids);
}).then(() => {
this.getListIgnore();
this.$modal.msgSuccess("忽略成功");
}).catch(()=>{});
}
}).catch(() => {});
},
},
created() {
this.getList();
@ -303,14 +314,7 @@ export default {
this.getListProcess()
this.getListSolve()
},
mounted() {},
beforeCreate() {},
beforeMount() {},
beforeUpdate() {},
updated() {},
beforeDestroy() {},
destroyed() {},
activated() {}
};
</script>