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