|
@@ -231,7 +231,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async getTreeData () {
|
|
|
- const result = await this.getQueryList(this.queryId)
|
|
|
+ const result = await this.getQuery(this.queryId)
|
|
|
if (result && result.length) {
|
|
|
this.options = result
|
|
|
this.data[0].children = result
|
|
@@ -248,7 +248,7 @@ export default {
|
|
|
this.treeCheckId = data.user_group_id
|
|
|
this.formInline = _.cloneDeep(data)
|
|
|
this.type = 'edit'
|
|
|
- const result = await this.getQueryList(SERVICE_ID.getUserTableId, false, {
|
|
|
+ const result = await this.getQuery(SERVICE_ID.getUserTableId, false, {
|
|
|
user_group_id: data.user_group_id
|
|
|
})
|
|
|
this.tableData = result
|
|
@@ -300,7 +300,7 @@ export default {
|
|
|
} else {
|
|
|
code = await this.getChangeList(SERVICE_ID.getUserTableId, this.dataObj, 3)
|
|
|
if (code) {
|
|
|
- const result = await this.getQueryList(SERVICE_ID.getUserTableId, false, {
|
|
|
+ const result = await this.getQuery(SERVICE_ID.getUserTableId, false, {
|
|
|
user_group_id: this.dataObj.user_group_id
|
|
|
})
|
|
|
this.tableData = result
|
|
@@ -349,15 +349,14 @@ export default {
|
|
|
},
|
|
|
async handleTableAuth (row) {
|
|
|
this.dialogFlag = true
|
|
|
- const result = await this.getQueryList(SERVICE_ID.roleListId)
|
|
|
- const code = await this.getQueryList(SERVICE_ID.userAuthorizationId, false, {
|
|
|
+ const result = await this.getQuery(SERVICE_ID.roleListId)
|
|
|
+ const code = await this.getQuery(SERVICE_ID.userAuthorizationId, false, {
|
|
|
user_id: row.user_id
|
|
|
})
|
|
|
|
|
|
this.tableCols = result
|
|
|
this.tableCols.forEach(element => {
|
|
|
element.user_id = row.user_id
|
|
|
- element.startall = false
|
|
|
});
|
|
|
code.forEach(element => {
|
|
|
this.tableCols.forEach(res => {
|
|
@@ -367,6 +366,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
console.log(this.tableCols)
|
|
|
+ console.log(code)
|
|
|
},
|
|
|
handleTablepaswod (row) {
|
|
|
this.paswordFlag = true
|
|
@@ -420,7 +420,7 @@ export default {
|
|
|
if (this.dataType == 'add') {
|
|
|
this.clearTableForm()
|
|
|
}
|
|
|
- const result = await this.getQueryList(SERVICE_ID.getUserTableId, false, {
|
|
|
+ const result = await this.getQuery(SERVICE_ID.getUserTableId, false, {
|
|
|
user_group_id: this.formInline.user_group_id
|
|
|
})
|
|
|
this.tableData = result
|