From 1d3efb6ed52ef43c6184cfaa2ff11d5cc78565c9 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期日, 08 十二月 2024 19:24:21 +0800
Subject: [PATCH] 新增故障类型
---
src/components/RightToolbar/index.vue | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue
index f0f9310..a56bab7 100644
--- a/src/components/RightToolbar/index.vue
+++ b/src/components/RightToolbar/index.vue
@@ -7,7 +7,7 @@
<el-tooltip class="item" effect="dark" content="鍒锋柊" placement="top">
<el-button size="mini" circle icon="el-icon-refresh" @click="refresh()" />
</el-tooltip>
- <el-tooltip v-show="$route.path.includes('equipment')" class="item" effect="dark" content="鑷畾涔夊垪" placement="top">
+ <el-tooltip v-show="$route.path.includes('point')" class="item" effect="dark" content="鑷畾涔夊垪" placement="top">
<el-button size="mini" circle icon="el-icon-collection-tag" @click="addDynamicColumn()" />
</el-tooltip>
<el-tooltip class="item" effect="dark" content="鏄鹃殣鍒�" placement="top" v-if="columns">
@@ -77,6 +77,7 @@
title: "鏄剧ず/闅愯棌",
// 鏄惁鏄剧ず寮瑰嚭灞�
open: false,
+ tableKey: 0,
};
},
props: {
@@ -115,7 +116,7 @@
}
},
created() {
- if (this.$route.path.includes("equipment")) {
+ if (this.$route.path.includes("point")) {
this.getDyColumn()
}
if (this.showColumnsType == 'transfer') {
@@ -131,18 +132,20 @@
getDyColumn() {
// 鏌ヨ鍔ㄦ�佸垪
let params = {
- tableName: 't_monitor'
+ tableName: 't_yw_point'
}
getDynamicColumnList(params).then(res => {
this.dynamicColumnList = res.data
})
},
addDynamicColumn() {
+ this.getDyColumn()
this.showDynamicColumn = true
},
saveColumns() {
editDynamicColumn(this.dynamicColumnList).then(res => {
this.$message.success("淇濆瓨鎴愬姛")
+ this.$emit('refreshHeader');
this.showDynamicColumn = false
})
},
@@ -153,13 +156,10 @@
})
},
delColumn(id, index) {
- if (! id) {
- this.dynamicColumnList.splice(index, 1)
- return
- }
deleteDynamicColumnById(id).then(res => {
this.$message.success("鍒犻櫎鎴愬姛")
this.getDyColumn();
+ this.$emit('refreshHeader');
})
},
dynamicColumnClose() {
--
Gitblit v1.8.0