Browse Source

角色问题

chris 2 years ago
parent
commit
207a3fb614
3 changed files with 5 additions and 2 deletions
  1. 2 0
      src/main.js
  2. 2 1
      src/views/modules/sys/role-add-or-update.vue
  3. 1 1
      src/views/modules/sys/role.vue

+ 2 - 0
src/main.js

@@ -40,6 +40,8 @@ Vue.prototype.isAuth = isAuth     // 权限方法
 
 // 保存整站vuex本地储存初始状态
 window.SITE_CONFIG['storeState'] = cloneDeep(store.state)
+// 禁止复制
+// document.onselectstart = function () { return false }
 
 /* eslint-disable no-new */
 new Vue({

+ 2 - 1
src/views/modules/sys/role-add-or-update.vue

@@ -35,7 +35,6 @@
               node-key="orgId"
               ref="orgListData"
               :default-expand-all="true"
-              :highlight-current="true"
               show-checkbox>
             </el-tree>
           </el-form-item>
@@ -89,6 +88,8 @@
     methods: {
       init (id) {
         this.dataForm.id = id || 0
+        this.menuList = []
+        this.orgList = []
         this.$http({
           url: this.$http.adornUrl('/user-service/menu/tree'),
           method: 'get',

+ 1 - 1
src/views/modules/sys/role.vue

@@ -96,7 +96,7 @@
         },
         dataList: [],
         pageIndex: 1,
-        pageSize: 10,
+        pageSize: 100,
         totalPage: 0,
         dataListLoading: false,
         dataListSelections: [],