田源
2023-10-25 b7e6cddb149c5a5c960e9e50cb9825c69b37ee00
集成任务 集成系统信息管理-按钮权限
已修改3个文件
29 ■■■■■ 文件已修改
Source/UBCS-WEB/src/store/modules/user.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/docking/task.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/integration/systemInfo.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/store/modules/user.js
@@ -297,7 +297,7 @@
      });
      //console.log(permission_new)
      state.permission = permission_new;
      setStore({name: "saber-permission", content: permission_new});
      setStore({name: "permission", content: permission_new});
    },
  }
Source/UBCS-WEB/src/views/docking/task.vue
@@ -20,6 +20,7 @@
                     size="small"
                     plain
                     icon="el-icon-refresh-right"
                       v-if="permission.task.task_sendPush"
                     @click="handleSend">手动推送
          </el-button>
        <div style="float: right;margin-left: 10px">
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,7 +91,15 @@
      search: {},
      delIds: [],
      data: [],
      option: {
    }
  },
  created() {
  },
  computed: {
    ...mapGetters(["permission"]),
    option(){
      return{
        height: "auto",
        tip: false,
        border: true,
@@ -98,6 +107,9 @@
        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,
@@ -134,10 +146,8 @@
            type: 'textarea'
          }
        ]
      },
    }
  },
  created() {
    }
  },
  methods: {
    //重置