设备任务名称修改

20231126-yw
郑明梁 2 years ago
parent e9e4407c36
commit 48c10a8607

@ -108,6 +108,17 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="8">
<el-form-item label="任务类型:" class="query-form-item">
<el-select v-model="filterQuery.type" style="width: 90%" placeholder="请选择任务类型" clearable>
<el-option label="巡检" :value=1></el-option>
<el-option label="养护" :value=2></el-option>
<el-option label="报修" :value=3></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
<div class="top-right-btn"> <div class="top-right-btn">
@ -125,6 +136,11 @@
<el-table-column label="任务编号" prop="orderId"></el-table-column> <el-table-column label="任务编号" prop="orderId"></el-table-column>
<el-table-column label="资产编码" prop="code"></el-table-column> <el-table-column label="资产编码" prop="code"></el-table-column>
<el-table-column label="设备名称" prop="deviceName"></el-table-column> <el-table-column label="设备名称" prop="deviceName"></el-table-column>
<el-table-column label="任务类型" prop="repairType">
<template slot-scope="scope">
<el-tag>{{ repairTypeMap[scope.row.type] }}</el-tag>
</template>
</el-table-column>
<el-table-column label="任务状态" prop="status"> <el-table-column label="任务状态" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag>{{ statusMap[scope.row.status] }}</el-tag> <el-tag>{{ statusMap[scope.row.status] }}</el-tag>
@ -173,7 +189,7 @@
</el-card> </el-card>
<el-dialog <el-dialog
title="我的任务-任务确认" :title="formMap[formName]"
:visible.sync="formVisible" :visible.sync="formVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -277,6 +293,11 @@ export default {
3: "处理中", 3: "处理中",
4: "已处理", 4: "已处理",
}, },
repairTypeMap: {
1: "巡检",
2: "养护",
3: "报修",
},
statusdetailMap: { statusdetailMap: {
1: "未开始", 1: "未开始",
2: "已检查", 2: "已检查",
@ -285,8 +306,9 @@ export default {
}, },
formName: null, formName: null,
formMap: { formMap: {
add: "任务分配-新增任务", add: "我的任务-开始任务",
edit: "任务分配-编辑任务" edit: "我的任务-结束任务",
detail: "我的任务-任务详情"
}, },
deviceInspectTake: { deviceInspectTake: {
id: null, id: null,
@ -500,6 +522,13 @@ export default {
//3 4 5 //3 4 5
this.type = type this.type = type
this.deviceInspectTake = row; this.deviceInspectTake = row;
if(type == 3){
this.formName='add'
}else if(type == 4){
this.formName='edit'
}else if(type == 5){
this.formName='detail'
}
}, },
deleteDialog(rowId) { deleteDialog(rowId) {
this.$confirm('此操作将永久删除该巡检任务, 是否继续?', '提示', { this.$confirm('此操作将永久删除该巡检任务, 是否继续?', '提示', {

Loading…
Cancel
Save