zoukankan      html  css  js  c++  java
  • await和$nextTick的使用

      
    async editDialog(row) {
          let { userId, loginName } = row;
          if (loginName == "admin") {
            Message.warning("admin用户不接受更改");
            return;
          }

          this.formOp = "edit";
          this.vStatus.dialogEditFormVisible = true;
          this.loadingStatus.loadingOthers = true;
          await this.$nextTick(()=>{});
          Object.assign(this.editForm, this.initForm);
          Object.assign(this.editForm, row);

          row.treeIds = row.treeIds || [];
          this.editForm.xiaoman = row.treeIds.length ? row.treeIds[0] : "";

          let fg = await findRoleList(userId, { data: {} });
          let res1 = fg.filter((item) => item.flag).map((item) => item.roleId);
          this.editForm.roleIds = res1;

          this.loadingStatus.loadingOthers = false;
        },
  • 相关阅读:
    msp430入门编程41
    msp430入门编程40
    msp430入门编程37
    msp430入门编程36
    msp430入门编程35
    msp430入门编程34
    msp430入门编程33
    msp430入门编程31
    msp430入门编程32
    msp430入门编程30
  • 原文地址:https://www.cnblogs.com/sexintercourse/p/14105102.html
Copyright © 2011-2022 走看看