zhuliu 3 vuotta sitten
vanhempi
commit
7edec0a148
1 muutettua tiedostoa jossa 4 lisäystä ja 5 poistoa
  1. 4 5
      src/views/client/index.vue

+ 4 - 5
src/views/client/index.vue

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