From e5fae45afc610c0cbc5620f2e9138e2188dcf243 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 16 一月 2025 12:20:29 +0800
Subject: [PATCH] 资产管理权限、工单故障显示优化
---
src/views/system/work-order/detail/index.vue | 11 ++++++++++-
src/views/system/data-manage/equipment/index.vue | 1 +
src/views/system/work-order/index.vue | 9 ++++++++-
3 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/src/views/system/data-manage/equipment/index.vue b/src/views/system/data-manage/equipment/index.vue
index 097f662..cf4dc00 100644
--- a/src/views/system/data-manage/equipment/index.vue
+++ b/src/views/system/data-manage/equipment/index.vue
@@ -99,6 +99,7 @@
icon="el-icon-delete"
size="mini"
@click="clearMonitor"
+ v-hasRole="['admin']"
>娓呯悊涓�鏈轰竴妗�</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
diff --git a/src/views/system/work-order/detail/index.vue b/src/views/system/work-order/detail/index.vue
index 71d323d..52b102d 100644
--- a/src/views/system/work-order/detail/index.vue
+++ b/src/views/system/work-order/detail/index.vue
@@ -16,7 +16,16 @@
<div class="item-warp">
<div>鏁呴殰绫诲瀷锛�</div>
<div>
- <el-tag style="margin-right: 5px;height:24px;overflow:auto" effect="dark" v-for="(error, index) in workOrderInfo.errorTypeList" :key="index" size="small" type="warning">{{ error }}</el-tag>
+ <el-tag
+ style="margin-right: 5px;height:24px;overflow:auto" effect="dark"
+ v-for="(error, index) in workOrderInfo.errorTypeList"
+ :key="index" size="small"
+ :type="error === '鍥惧儚寮傚父'
+ || error === '鐐逛綅淇℃伅閿欒'
+ || error === '鏃堕挓鍋忓樊'
+ || error === 'OSD寮傚父'
+ ? 'danger' : 'warning'">{{ error }}
+ </el-tag>
</div>
</div>
<div class="item-warp">
diff --git a/src/views/system/work-order/index.vue b/src/views/system/work-order/index.vue
index 9142161..0e1789f 100644
--- a/src/views/system/work-order/index.vue
+++ b/src/views/system/work-order/index.vue
@@ -121,7 +121,14 @@
placement="top"
>
<el-row>
- <el-tag style="margin-right: 5px;height:24px;overflow:auto" effect="dark" v-for="(error, errorIndex) in displayedErrors(item.errorTypeList)" :key="errorIndex" size="small" type="warning">
+ <el-tag
+ style="margin-right: 5px;height:24px;overflow:auto" effect="dark"
+ v-for="(error, errorIndex) in displayedErrors(item.errorTypeList)" :key="errorIndex" size="small"
+ :type="error === '鍥惧儚寮傚父'
+ || error === '鐐逛綅淇℃伅閿欒'
+ || error === '鏃堕挓鍋忓樊'
+ || error === 'OSD寮傚父'
+ ? 'danger' : 'warning'">
{{ error }}
</el-tag>
</el-row>
--
Gitblit v1.8.0