From 370b26066c560f15f6a84caca2be149e48e86556 Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期二, 07 一月 2025 15:52:05 +0800 Subject: [PATCH] 系统菜单 默认显示&&系统配置、对象建模按钮权限以及按钮图标 --- Source/plt-web/plt-web-ui/src/views/system/department/index.vue | 52 +++++++++++++++++++++++++++++++++------------------- 1 files changed, 33 insertions(+), 19 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/system/department/index.vue b/Source/plt-web/plt-web-ui/src/views/system/department/index.vue index b65c440..8f6cebd 100644 --- a/Source/plt-web/plt-web-ui/src/views/system/department/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/system/department/index.vue @@ -15,31 +15,45 @@ @current-row-change="handleCurrentRowChange" > <template slot="menu" slot-scope="{row,size,type}"> - <el-button v-if="permissionList.departmentAddChildrenBtn" icon="el-icon-circle-plus-outline" size="small" - type="text" @click="handleAdd()">鏂板瀛愮骇 + <el-button v-if="permissionList.departmentAddChildrenBtn" size="small" + type="text" @click="handleAdd()"> + <icon-show :name="permissionList.departmentAddChildrenBtn.source"></icon-show> + 鏂板瀛愮骇 </el-button> - <el-button v-if="row.ALLDept !== 'ALLDept' && permissionList.editBtn" icon="el-icon-edit" size="small" + <el-button v-if="row.ALLDept !== 'ALLDept' && permissionList.editBtn" size="small" type="text" - @click="editBtnClick(row)">缂栬緫 + @click="editBtnClick(row)"> + <icon-show :name="permissionList.editBtn.source"></icon-show> + 缂栬緫 </el-button> - <el-button v-if="row.ALLDept !== 'ALLDept' && permissionList.delBtn" icon="el-icon-delete" size="small" + <el-button v-if="row.ALLDept !== 'ALLDept' && permissionList.delBtn" size="small" type="text" - @click="rowDeleteHandler(row)">鍒犻櫎 + @click="rowDeleteHandler(row)"> + <icon-show :name="permissionList.delBtn.source"></icon-show> + 鍒犻櫎 </el-button> </template> <template slot="menuLeft" slot-scope="scope"> - <el-button v-if="permissionList.assignMembersBtn" icon="el-icon-school" plain size="small" type="primary" - @click="assignMembersHandler">鍒嗛厤鎴愬憳 + <el-button v-if="permissionList.assignMembersBtn" class="button-custom-icon" plain size="small" type="primary" + @click="assignMembersHandler"> + <icon-show :name="permissionList.assignMembersBtn.source"></icon-show> + 鍒嗛厤鎴愬憳 </el-button> - <el-button v-if="permissionList.statisticsBtn" icon="el-icon-user" plain size="small" type="primary" - @click="statisticsHandler">缁熻 + <el-button v-if="permissionList.statisticsBtn" class="button-custom-icon" plain size="small" type="primary" + @click="statisticsHandler"> + <icon-show :name="permissionList.statisticsBtn.source"></icon-show> + 缁熻 </el-button> - <el-button v-if="permissionList.importDepartmentBtn" icon="el-icon-upload2" plain size="small" type="primary" - @click="upLoadHandler">瀵煎叆閮ㄩ棬 + <el-button v-if="permissionList.importDepartmentBtn" class="button-custom-icon" plain size="small" type="primary" + @click="upLoadHandler"> + <icon-show :name="permissionList.importDepartmentBtn.source"></icon-show> + 瀵煎叆閮ㄩ棬 </el-button> - <el-button v-if="permissionList.downloadImportTemplateBtn" icon="el-icon-download" plain size="small" - type="primary" @click="downLoadHandler">涓嬭浇瀵煎叆妯℃澘 + <el-button v-if="permissionList.downloadImportTemplateBtn" class="button-custom-icon" plain size="small" + type="primary" @click="downLoadHandler"> + <icon-show :name="permissionList.downloadImportTemplateBtn.source"></icon-show> + 涓嬭浇瀵煎叆妯℃澘 </el-button> </template> </avue-crud> @@ -170,11 +184,11 @@ return { delBtn: this.vaildData(this.permission[this.$route.query.id].DELETE, false), editBtn: this.vaildData(this.permission[this.$route.query.id].EDIT, false), - assignMembersBtn: this.vaildData(this.permission[this.$route.query.id].assignMembers, false), - departmentAddChildrenBtn: this.vaildData(this.permission[this.$route.query.id].departmentAddChildren, false), - downloadImportTemplateBtn: this.vaildData(this.permission[this.$route.query.id].downloadImportTemplate, false), - importDepartmentBtn: this.vaildData(this.permission[this.$route.query.id].importDepartment, false), - statisticsBtn: this.vaildData(this.permission[this.$route.query.id].statistics, false), + assignMembersBtn: this.vaildData(this.permission[this.$route.query.id].FREEZE, false), + departmentAddChildrenBtn: this.vaildData(this.permission[this.$route.query.id].ADD, false), + downloadImportTemplateBtn: this.vaildData(this.permission[this.$route.query.id].DOWNLOADFILE, false), + importDepartmentBtn: this.vaildData(this.permission[this.$route.query.id].MGR, false), + statisticsBtn: this.vaildData(this.permission[this.$route.query.id].DISCARD, false), }; }, }, -- Gitblit v1.9.3