|
@@ -258,7 +258,7 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.getList()
|
|
this.getList()
|
|
- this.getFunction({})
|
|
|
|
|
|
+ this.getFunction()
|
|
// this.translate()
|
|
// this.translate()
|
|
// console.log(this.select)
|
|
// console.log(this.select)
|
|
},
|
|
},
|
|
@@ -290,9 +290,8 @@ export default {
|
|
this.title = '编辑租户'
|
|
this.title = '编辑租户'
|
|
this.visible = true
|
|
this.visible = true
|
|
this.pswdshow = false
|
|
this.pswdshow = false
|
|
- if(row.type != 1){
|
|
|
|
- this.getFunction(row)
|
|
|
|
- }
|
|
|
|
|
|
+ this.authority = []
|
|
|
|
+ this.getFunction(row.type)
|
|
this.ruleForm = { ...row }
|
|
this.ruleForm = { ...row }
|
|
},
|
|
},
|
|
handleDetails(row) {
|
|
handleDetails(row) {
|
|
@@ -350,7 +349,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
getFunction(val) {
|
|
getFunction(val) {
|
|
- this.$api.getFunctionList(val).then(response => {
|
|
|
|
|
|
+ this.$api.getFunctionList({type:val}).then(response => {
|
|
// console.log(response.data)
|
|
// console.log(response.data)
|
|
this.authority = response.data
|
|
this.authority = response.data
|
|
// this.tableData = response.data
|
|
// this.tableData = response.data
|