|
@@ -133,23 +133,17 @@
|
|
|
width="200"
|
|
|
align="center"
|
|
|
>
|
|
|
- <template slot-scope="{ row }">
|
|
|
+ <template slot-scope="{ row }" id="">
|
|
|
<el-progress
|
|
|
:text-inside="true"
|
|
|
:stroke-width="24"
|
|
|
:percentage="row.process"
|
|
|
show-text="true"
|
|
|
:format="setItemText(row)"
|
|
|
+ :color="setItemColor(row)"
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!--维保开始时间-->
|
|
|
- <el-table-column
|
|
|
- prop="repairStartTime"
|
|
|
- :label="$t("resource.table.repair.repairStartTime")"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- width="120"
|
|
|
- />
|
|
|
<!--维保结束时间-->
|
|
|
<el-table-column
|
|
|
prop="repairEndTime"
|
|
@@ -179,23 +173,10 @@
|
|
|
>
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-tag :type="row.status=='1' ? 'success' : 'danger'">
|
|
|
- {{ row.status=='1' ? $t("common.show") : $t("common.hide") }}
|
|
|
+ {{ row.status=='1' ? '启用' : '冻结' }}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!--备注-->
|
|
|
- <el-table-column
|
|
|
- prop="remark"
|
|
|
- :label="$t("resource.table.repair.remark")"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- width="120"
|
|
|
- />
|
|
|
- <!--排序-->
|
|
|
- <el-table-column
|
|
|
- prop="weight"
|
|
|
- :label="$t("resource.table.repair.weight")"
|
|
|
- width="50px"
|
|
|
- />
|
|
|
<!--创建时间-->
|
|
|
<el-table-column
|
|
|
prop="createTime"
|
|
@@ -210,7 +191,7 @@
|
|
|
/>
|
|
|
<!--操作人-->
|
|
|
<el-table-column
|
|
|
- prop="createUserDesc"
|
|
|
+ prop="operationName"
|
|
|
:label="$t("resource.table.repair.createUserDesc")"
|
|
|
width="180px"
|
|
|
/>
|
|
@@ -285,9 +266,10 @@
|
|
|
:visible.sync="equipmentVisible"
|
|
|
width="80%"
|
|
|
custom-class="dialogNoTop"
|
|
|
+ @close="editEquipmentClose"
|
|
|
>
|
|
|
- <!--【 工作位置管理】 -->
|
|
|
- <equipmentPosition
|
|
|
+ <!--【 维保】 -->
|
|
|
+ <maintenanceLog
|
|
|
:row-data="rowData"
|
|
|
:maintenance-id="maintenanceId"
|
|
|
@close="editEquipmentClose"
|
|
@@ -309,7 +291,7 @@
|
|
|
// 【维保计划管理】-API
|
|
|
import repairApi from "@/api/resourceProductMgr/repair"
|
|
|
// 【工作位置管理】组件
|
|
|
- import equipmentPosition from "@/views/zuihou/repairManger/maintenanceLog/Index"
|
|
|
+ import maintenanceLog from "@/views/zuihou/repairManger/maintenanceLog/Index"
|
|
|
|
|
|
// 【弹出框】elementui组件
|
|
|
import elDragDialog from '@/directive/el-drag-dialog'
|
|
@@ -321,7 +303,7 @@
|
|
|
export default {
|
|
|
name: "Repair",
|
|
|
directives: {elDragDialog},
|
|
|
- components: {Pagination, TenantEdit, TenantView,TenantEvent,equipmentPosition},
|
|
|
+ components: {Pagination, TenantEdit, TenantView,TenantEvent,maintenanceLog},
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
@@ -386,8 +368,9 @@
|
|
|
},
|
|
|
editEquipmentClose(){
|
|
|
this.equipmentVisible = false
|
|
|
+ this.search()
|
|
|
},
|
|
|
- editEquipmentSuccess(data){
|
|
|
+ editEquipmentSuccess(){
|
|
|
this.search()
|
|
|
},
|
|
|
setItemText(row) {
|
|
@@ -395,14 +378,23 @@
|
|
|
return row.downTime
|
|
|
}
|
|
|
},
|
|
|
+ setItemColor(row) {
|
|
|
+ return () => {
|
|
|
+ if(row.expireFlag == 1){
|
|
|
+ return '#FF0000'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
viewClose() {
|
|
|
this.tenantViewVisible = false
|
|
|
},
|
|
|
editClose() {
|
|
|
this.dialog.isVisible = false
|
|
|
+ this.fetch()
|
|
|
},
|
|
|
eventClose() {
|
|
|
this.tenantEvent.isVisible = false
|
|
|
+ this.fetch()
|
|
|
},
|
|
|
editSuccess() {
|
|
|
this.search()
|
|
@@ -510,6 +502,8 @@
|
|
|
this.tenantEvent.isVisible = true
|
|
|
},
|
|
|
fetch(params = {}) {
|
|
|
+ this.tableKey = !this.tableKey
|
|
|
+ this.selection = []
|
|
|
this.loading = true
|
|
|
if (this.queryParams.timeRange) {
|
|
|
this.queryParams.map.createTime_st = this.queryParams.timeRange[0]
|