瀏覽代碼

【新增】子账号

howie 3 年之前
父節點
當前提交
43cd1b8049
共有 1 個文件被更改,包括 14 次插入14 次删除
  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
     },