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