Sfoglia il codice sorgente

【新增】子账号

howie 3 anni fa
parent
commit
43cd1b8049
1 ha cambiato i file con 14 aggiunte e 14 eliminazioni
  1. 14 14
      src/views/setting/sub_account.vue

+ 14 - 14
src/views/setting/sub_account.vue

@@ -104,8 +104,7 @@ import {
   editSubAccount,
   getAccountList,
   getMenuList,
-  getMenuRoleIds,
-  setMenuRole
+  getMenuRoleIds
 } from '@/api/setting'
 
 export default {
@@ -155,7 +154,8 @@ export default {
   computed: {
     ...mapGetters([
       'userid',
-      'name'
+      'name',
+      'customerId'
     ])
   },
   created() {
@@ -177,7 +177,7 @@ export default {
       const params = {
         pageNum: this.currentPage,
         pageSize: this.pageSize,
-        customerId: ''
+        customerId: this.customerId
       }
 
       getAccountList(params).then(res => {
@@ -276,16 +276,16 @@ export default {
 
     // 设置权限 - 提交数据
     submitRoleForm(type) {
-      if (type === 'role') {
-        const params = {
-          adminModuleIds: this.$refs.tree.getCheckedKeys().join(','),
-          adminRoleId: this.editId
-        }
-        setMenuRole(params).then(res => {
-          this.getList()
-          this.$successMsg()
-        })
-      }
+      // if (type === 'role') {
+      //   const params = {
+      //     adminModuleIds: this.$refs.tree.getCheckedKeys().join(','),
+      //     adminRoleId: this.editId
+      //   }
+      //   setMenuRole(params).then(res => {
+      //     this.getList()
+      //     this.$successMsg()
+      //   })
+      // }
       this.roleFormVisible = false
     },