田源
2023-08-18 eb6970d08b8e2974194d5aa24872fce19c5c11a0
用户管理 树切换默认bug
已修改1个文件
13 ■■■■ 文件已修改
Source/UBCS-WEB/src/views/system/user.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/system/user.vue
@@ -209,6 +209,7 @@
      }
    };
    return {
      tenantId:'',
      form: {},
      seoptions: [],
      sevalue:"",
@@ -372,7 +373,7 @@
                  trigger: "click"
                }],
                span: 24,
                // value:'986926'
                value:"211833"
              },
              {
                label: "登录账号",
@@ -694,6 +695,7 @@
    'form.tenantId'() {
      if (this.form.tenantId !== '' && this.initFlag) {
        this.initData(this.form.tenantId);
        console.log('this.form.tenantId',this.form.tenantId)
      }
    },
    'excelForm.isCovered'() {
@@ -809,6 +811,8 @@
      });
    },
    nodeClick(data) {
      console.log(data)
      console.log(this.form.tenantId)
      this.treeDeptId = data.id;
      this.page.currentPage = 1;
      this.onLoad(this.page);
@@ -1028,7 +1032,11 @@
      })
    },
    beforeOpen(done, type) {
      console.log(type)
      // console.log(type)
      // console.log('this.tenantId',this.tenantId)
      // const column = this.findObject(this.option.group,'tenantId');
      // column.value=this.tenantId;
      // console.log('column',column)
      if(this.treeDeptId){
        if (["edit", "view"].includes(type)) {
          getUser(this.form.id).then(res => {
@@ -1068,6 +1076,7 @@
        this.page.total = data.total;
        this.data = data.records;
        this.loading = false;
        this.tenantId=data.records[0].tenantId
        this.selectionClear();
      });
    },