From 30dd1bcc069b31d417e738d57b5cd18ce9ed6871 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 06 十一月 2023 14:30:03 +0800 Subject: [PATCH] 主数据分页Loading优化 --- Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue b/Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue index f28a489..9b24dc2 100644 --- a/Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue +++ b/Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue @@ -6,7 +6,7 @@ type="text" size="small" icon="el-icon-edit" - v-if="permission.password.password_edit" + v-if="permissionList.editBtn" @click="handleEdit(row, index)" > 缂栬緫 @@ -15,7 +15,7 @@ type="text" size="small" icon="el-icon-delete" - v-if="permission.password.password_delete" + v-if="permissionList.delBtn" @click="handleDel(row, index)" > 鍒犻櫎 @@ -147,6 +147,22 @@ }, computed:{ ...mapGetters(["permission"]), + permissionList() { + return { + addBtn: this.vaildData(this.permission.password.password_add, false), + //viewBtn: this.vaildData(this.permission.password.user_view, false), + delBtn: this.vaildData(this.permission.password.password_delete, false), + editBtn: this.vaildData(this.permission.password.password_edit, false), + }; + }, + platformPermissionList() { + return { + addBtn: this.vaildData(this.permission.password.password_add, false), + //viewBtn: this.vaildData(this.permission.password.user_view, false), + delBtn: this.vaildData(this.permission.password.password_delete, false), + editBtn: this.vaildData(this.permission.password.password_edit, false), + }; + }, option(){ return{ headerAlign: 'center', @@ -155,7 +171,7 @@ border: true, index: true, rowKey:'id', - addBtn:this.permission.password.password_add, + addBtn:this.permissionList.addBtn, editBtn:false, height:700, delBtn:false, @@ -323,7 +339,6 @@ }] } ], - } } }, -- Gitblit v1.9.3