From b7e6cddb149c5a5c960e9e50cb9825c69b37ee00 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 25 十月 2023 12:09:30 +0800 Subject: [PATCH] 集成任务 集成系统信息管理-按钮权限 --- Source/UBCS-WEB/src/views/integration/systemInfo.vue | 108 +++++++++++++++++++++++++++++------------------------ 1 files changed, 59 insertions(+), 49 deletions(-) diff --git a/Source/UBCS-WEB/src/views/integration/systemInfo.vue b/Source/UBCS-WEB/src/views/integration/systemInfo.vue index 5f769cd..f4978de 100644 --- a/Source/UBCS-WEB/src/views/integration/systemInfo.vue +++ b/Source/UBCS-WEB/src/views/integration/systemInfo.vue @@ -7,7 +7,7 @@ <template slot="menuLeft"> <!-- <el-button icon="el-icon-search" size="small" type="primary" @click="handleStatus">鏌� 璇� </el-button> --> - <el-button icon="el-icon-delete" size="small" type="danger" @click="handleDeleteByIds">鍒� 闄� + <el-button icon="el-icon-delete" size="small" type="danger" @click="handleDeleteByIds" v-if="this.permission.systemInfo.systemInfo_remove">鍒� 闄� </el-button> </template> <template slot="search" slot-scope="{row,size}"> @@ -19,10 +19,11 @@ :size="size" clearable style="width:300px;margin-left: 10px;" @clear="handleClear" @keyup.enter.native="handleEnter"></el-input> </template> - <template #menu="{row,index,size}"> + <template #menu="{row,index,size}" v-if="this.permission.systemInfo.systemInfo_empower"> <el-button icon="el-icon-menu" size="small" type="text" @click="classifyHandler(row)">鍒嗙被鎺堟潈</el-button> - </template> + + </avue-crud> <el-dialog :visible.sync="dialogVisible" append-to-body class="avue-dialog avue-dialog--top" title="鍒嗙被鎺堟潈" top="-50px"> @@ -54,7 +55,7 @@ sysInfoTree, batchAddSave } from '@/api/integration/sysInfo.js' - +import {mapGetters} from "vuex"; export default { data() { return { @@ -90,55 +91,64 @@ search: {}, delIds: [], data: [], - option: { - height: "auto", - tip: false, - border: true, - align: 'center', - menuAlign: 'center', - index: true, - searchMenuSpan: 8, - searchBtn: false, - emptyBtn: false, - columnBtn: false, - defaultSort: { - prop: 'id,name', - order: 'descending' - }, - selection: true, - column: [ - { - label: '绯荤粺缂栧彿', - prop: 'id', - sortable: true, - rules: [{ - required: true, - message: '绯荤粺缂栧彿涓嶈兘涓虹┖', - trigger: 'blur' - }], - // maxlength: 30, //瀛楁暟闄愬埗 - }, { - label: '绯荤粺鍚嶇О', - prop: 'name', - sortable: true, - rules: [{ - required: true, - message: '绯荤粺鍚嶇О涓嶈兘涓虹┖', - trigger: 'blur' - }], - // maxlength: 30, //瀛楁暟闄愬埗 - }, - { - label: '绯荤粺鎻忚堪', - prop: 'description', - type: 'textarea' - } - ] - }, + } }, created() { }, + computed: { + ...mapGetters(["permission"]), + option(){ + return{ + height: "auto", + tip: false, + border: true, + align: 'center', + menuAlign: 'center', + index: true, + searchMenuSpan: 8, + addBtn:this.permission.systemInfo.systemInfo_add, + editBtn:this.permission.systemInfo.systemInfo_edit, + delBtn:this.permission.systemInfo.systemInfo_remove, + searchBtn: false, + emptyBtn: false, + columnBtn: false, + defaultSort: { + prop: 'id,name', + order: 'descending' + }, + selection: true, + column: [ + { + label: '绯荤粺缂栧彿', + prop: 'id', + sortable: true, + rules: [{ + required: true, + message: '绯荤粺缂栧彿涓嶈兘涓虹┖', + trigger: 'blur' + }], + // maxlength: 30, //瀛楁暟闄愬埗 + }, { + label: '绯荤粺鍚嶇О', + prop: 'name', + sortable: true, + rules: [{ + required: true, + message: '绯荤粺鍚嶇О涓嶈兘涓虹┖', + trigger: 'blur' + }], + // maxlength: 30, //瀛楁暟闄愬埗 + }, + { + label: '绯荤粺鎻忚堪', + prop: 'description', + type: 'textarea' + } + ] + } + } + }, methods: { //閲嶇疆 resetting(){ -- Gitblit v1.9.3