liangjin
2021-04-02 ea4d603dc171a27e19611902d3d4e97583b816b9
和微分的权限
1 files modified
7 ■■■■ changed files
src/views/mine/account/account-add.vue 7 ●●●● patch | view | raw | blame | history
src/views/mine/account/account-add.vue
@@ -40,7 +40,7 @@
        mblNo: "",
        email: "",
        name: "",
        menuPower: [],
        menuPower: [100001, 100006],
        powerInfoVos: [] //权限列表
      },
      rule:[
@@ -90,9 +90,6 @@
              let index = powerInfoVos.findIndex(child => {
                return item.powerId === child.powerId;
              });
              if(index!==-1){
                this.form.menuPower.push(item.powerId)
              }
            });
          }
@@ -112,8 +109,6 @@
    },
    // 新增
    add() {
      this.form.menuPower.push(100001);
      this.form.menuPower.push(100006);
      if(!this.validatorForm()) return
      this.$api.userAdd(this.form).then(res => {
          this.$notify("添加成功");