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