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;
        },
  • 相关阅读:
    一、ThinkPHP的介绍
    一、ThinkPHP的介绍
    perl 爬虫两个技巧
    perl 爬虫两个技巧
    perl 爬取上市公司业绩预告
    perl lwp get uft-8和gbk
    perl lwp get uft-8和gbk
    perl 爬取同花顺数据
    perl 爬取同花顺数据
    php 接口示例
  • 原文地址:https://www.cnblogs.com/sexintercourse/p/14105102.html
Copyright © 2011-2022 走看看