Kaynağa Gözat

修改租户编辑功能列表

zhuliu 3 yıl önce
ebeveyn
işleme
4aaa7da89b
1 değiştirilmiş dosya ile 7 ekleme ve 5 silme
  1. 7 5
      src/views/client/index.vue

+ 7 - 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,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