Explorar el Código

角色管理角色修改

huahaiyan hace 6 años
padre
commit
3db862eb71
Se han modificado 1 ficheros con 2 adiciones y 8 borrados
  1. 2 8
      src/dashoo.cn/frontend_web/src/pages/system/userrole.vue

+ 2 - 8
src/dashoo.cn/frontend_web/src/pages/system/userrole.vue

@@ -258,7 +258,7 @@
         userSize: 10,
         userList: [],
         selectRoleId: '',
-
+        mustrolelist: [],
         formLabelWidth: '120px',
         dialogtitle: '', // 添加编辑对话框
         dialogVisible: false,
@@ -338,7 +338,7 @@
           })
       },
       getallrolelist() {
-        this.$axios.get('role/list', {})
+        this.$axios.get('role/alllist', {})
           .then(res => {
             // response
             this.rolelist = res.data.items
@@ -360,7 +360,6 @@
           .then(res => {
             // response
             _this.partuserlist = res.data.items
-            console.log(this.partuserlist, '====')
             this.userlistfilter()
           })
           .catch(err => {
@@ -369,7 +368,6 @@
           })
       },
       managerolesave() {
-        console.log(this.selectedrole) 
         let _this = this
         for (let mdx in this.mustrolelist) {
           if (this.selectedrole.indexOf(this.mustrolelist[mdx]) == -1) {
@@ -550,7 +548,6 @@
       },
 
       getItemPower(val) {
-        console.log(val)
         let _this = this
         _this.operationid = val.Id
         _this.$axios.get('role/getItemPower?id=' + _this.operationid, null)
@@ -594,7 +591,6 @@
 
       deleteuserdata(val) {
         let _this = this
-        console.log("---this.selectRoleId----", this.selectRoleId)
         _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
           confirmButtonText: '确定',
           cancelButtonText: '取消',
@@ -936,7 +932,6 @@
         // request
         this.$axios.get('role/getmanagerole/' + this.selectedroleid, {})
           .then(res => {
-            console.log("-------res----",res.data)
             this.rolesetVisible = true
             _this.mustrolelist = []
             // response
@@ -957,7 +952,6 @@
               }
 
             }
-            console.log(this.selectedrole)
 
             let checkedCount = this.selectedrole.length
             this.roleCheckAll = checkedCount === this.rolelist.length