From 79ab38a8bdd0e94c83f1a2e3f8d9a49378993517 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 25 四月 2024 09:51:32 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before into master
---
src/views/basic/param/index.vue | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/views/basic/param/index.vue b/src/views/basic/param/index.vue
index 12f1ce7..7a5b4be 100644
--- a/src/views/basic/param/index.vue
+++ b/src/views/basic/param/index.vue
@@ -39,7 +39,8 @@
isShowQuery: false,
uploadInfo: {
// 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl
- isShow: false,
+ isShow: true,
+ download:true,
url: '/mes/param/upload'
},
prelang: 'operation',
@@ -152,15 +153,7 @@
}
],
toolbar: [],
- operator: [
- {
- text: '鍒犻櫎',
- icon: 'el-icon-delete',
- type: 'text',
- size: 'small',
- fun: this.deleteHandle
- }
- ],
+ operator: null,
operatorConfig: {
fixed: 'right',
label: '鎿嶄綔',
@@ -179,6 +172,17 @@
...mapGetters(['permissions'])
},
created() {
+ if(this.permissions.technology_param_del){
+ this.table.operator = [
+ {
+ text: '鍒犻櫎',
+ icon: 'el-icon-delete',
+ type: 'text',
+ size: 'small',
+ fun: this.deleteHandle
+ }
+ ]
+ }
this.getParamType()
},
methods: {
@@ -219,10 +223,6 @@
},
// 鍒犻櫎
deleteHandle(row) {
- if(!this.permissions.technology_param_del){
- this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�")
- return
- }
this.$confirm('鏄惁纭鍒犻櫎缂栧彿涓�' + row.code, '鎻愮ず', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
--
Gitblit v1.9.3