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/modelingMenu/modeling/versioning/index.vue | 42 ++++++++++++++++++++++++++++++------------ 1 files changed, 30 insertions(+), 12 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue index cdbf72a..8253787 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue @@ -9,19 +9,36 @@ @selection-change="selectChange" @row-click="rowClickHandler"> <template slot="menuLeft" slot-scope="scope"> - <el-button v-if="permissionList.addBtn" icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">鍒涘缓</el-button> - <el-button v-if="permissionList.importBtn" icon="el-icon-upload2" plain size="small" type="primary" @click="uploadClickHandler">瀵煎叆 + <el-button v-if="permissionList.addBtn" class="button-custom-icon" plain size="small" type="primary" + @click="addClickHandler"> + <icon-show :name="permissionList.addBtn.source"></icon-show> + 鍒涘缓 </el-button> - <el-button v-if="permissionList.exportBtn" icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">瀵煎嚭 + <el-button v-if="permissionList.viewTheScopeBtn" class="button-custom-icon" plain size="small" type="primary" + @click="checkViewClickHandler"> + <icon-show :name="permissionList.viewTheScopeBtn.source"></icon-show> + 鏌ョ湅浣跨敤鑼冨洿 </el-button> - <el-button v-if="permissionList.viewTheScopeBtn" icon="el-icon-view" plain size="small" type="primary" - @click="checkViewClickHandler">鏌ョ湅浣跨敤鑼冨洿 + <el-button v-if="permissionList.importBtn" class="button-custom-icon" plain size="small" type="primary" + @click="uploadClickHandler"> + <icon-show :name="permissionList.importBtn.source"></icon-show> + 瀵煎叆 + </el-button> + <el-button v-if="permissionList.exportBtn" class="button-custom-icon" plain size="small" type="primary" + @click="exportClickHandler"> + <icon-show :name="permissionList.exportBtn.source"></icon-show> + 瀵煎嚭 </el-button> </template> - <template slot="menu" slot-scope="scope"> - <el-button v-if="permissionList.editBtn" icon="el-icon-edit" size="small" type="text" @click="editClickHandler(scope.row)">缂栬緫 + <template slot="menu" slot-scope="{row,index}"> + <el-button v-if="permissionList.editBtn" size="small" type="text" + @click="editClickHandler(row)"> + <icon-show :name="permissionList.editBtn.source"></icon-show> + 缂栬緫 </el-button> - <el-button v-if="permissionList.delBtn" icon="el-icon-delete" size="small" type="text" @click="delClickHandler(scope.row)">鍒犻櫎 + <el-button v-if="permissionList.delBtn" size="small" type="text" @click="delClickHandler(row)"> + <icon-show :name="permissionList.delBtn.source"></icon-show> + 鍒犻櫎 </el-button> </template> </avue-crud> @@ -35,7 +52,7 @@ width="800px" @close="visibleCloseHandler" > - <el-form ref="form" size="small" :model="form" :rules="rules" label-width="95px"> + <el-form ref="form" :model="form" :rules="rules" label-width="95px" size="small"> <el-row> <el-col :span="24"> <el-form-item label="鍚嶇О锛�" prop="id"> @@ -190,7 +207,7 @@ searchMenuSpan: 8, refreshBtn: false, selection: false, - header:false, + header: false, column: [ { label: '鍚嶇О', @@ -274,7 +291,7 @@ lastIndex: null, } }, - computed:{ + computed: { ...mapGetters(["permission"]), permissionList() { return { @@ -283,7 +300,7 @@ editBtn: this.vaildData(this.permission[this.$route.query.id].EDIT, false), exportBtn: this.vaildData(this.permission[this.$route.query.id].EXPORT, false), importBtn: this.vaildData(this.permission[this.$route.query.id].IMPORT, false), - viewTheScopeBtn: this.vaildData(this.permission[this.$route.query.id].viewTheScope, false), + viewTheScopeBtn: this.vaildData(this.permission[this.$route.query.id].VIRTUALVIEW, false), }; }, }, @@ -474,6 +491,7 @@ .el-scrollbar__wrap { overflow: auto !important; } + .el-input-number--small { width: 100%; } -- Gitblit v1.9.3