陈昶聿
6 天以前 9799e992bc987425f21ad0b799e3d25d822329e3
src/views/followvisit/tasklist/index.vue
@@ -446,12 +446,15 @@
import QRCode from "qrcode";
export default {
  name: "Tasklist",
  dicts: ["sys_normal_disable", "sys_user_sex", "task_status"],
  // 页面只用到 task_status,去掉未使用的字典可少发 2 个请求
  dicts: ["task_status"],
  components: { Treeselect, PatientSelection },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 首次挂载时 created 已经查过,跳过紧接着触发的 activated,避免重复请求
      activatedOnce: false,
      // 选中数组
      ids: [],
      // 非单个禁用
@@ -728,6 +731,11 @@
    this.checkboxlist = store.getters.checkboxlist;
  },
  activated() {
    // 首次挂载时 created 已经请求过,避免重复请求
    if (!this.activatedOnce) {
      this.activatedOnce = true;
      return;
    }
    this.getList();
  },
  // 搜索
@@ -801,7 +809,6 @@
      getTasklist(this.topqueryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
        this.$forceUpdate();
        this.loading = false;
      });
    },