From 024cc5e9e6fd51e3b0e14e8d3f76c63f1351a4f7 Mon Sep 17 00:00:00 2001
From: wanghong <309858992@qq.com>
Date: 星期四, 21 十二月 2023 12:25:35 +0800
Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复

---
 Source/UBCS-WEB/src/views/report/reportlist.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/report/reportlist.vue b/Source/UBCS-WEB/src/views/report/reportlist.vue
index fe55a5a..e4aeebf 100644
--- a/Source/UBCS-WEB/src/views/report/reportlist.vue
+++ b/Source/UBCS-WEB/src/views/report/reportlist.vue
@@ -20,6 +20,7 @@
         <el-button type="danger"
                    size="small"
                    icon="el-icon-delete"
+                   v-if="permissionList.delBtn"
                    plain
                    @click="handleDelete">鍒� 闄�
         </el-button>
@@ -30,7 +31,7 @@
           icon="el-icon-edit-outline"
           size="small"
           @click.stop="handleDesign(scope.row.name)"
-          v-if="userInfo.role_name.includes('admin')"
+          v-if="permissionList.design"
         >璁捐
         </el-button>
         <el-button
@@ -38,7 +39,7 @@
           icon="el-icon-view"
           size="small"
           @click.stop="handlePreview(scope.row.name)"
-          v-if="userInfo.role_name.includes('admin')"
+          v-if="permissionList.preview"
         >棰勮
         </el-button>
       </template>
@@ -68,6 +69,7 @@
       option: {
         height: 'auto',
         calcHeight: 30,
+        columnBtn:false,
         tip: false,
         searchShow: true,
         searchMenuSpan: 6,
@@ -103,8 +105,10 @@
       return {
         addBtn: false,
         viewBtn: false,
-        delBtn: true,
-        editBtn: false
+        delBtn: this.vaildData(this.permission.report_list.report_list_delete,false),
+        editBtn: false,
+        design:this.vaildData(this.permission.report_list.report_list_design,false),
+        preview:this.vaildData(this.permission.report_list.report_list_preview,false),
       };
     },
     ids() {

--
Gitblit v1.9.3