WXL (wul)
4 小时以前 574b449a39019a59dc90ecc19dda9f63d3aa9636
src/views/followvisit/discharge/index.vue
@@ -1225,12 +1225,15 @@
export default {
  name: "Discharge",
  dicts: ["sys_normal_disable", "sys_user_sex", "sys_yujing", "sys_suggest"],
  // 页面只用到 sys_suggest,去掉未使用的字典可少发 3 个请求
  dicts: ["sys_suggest"],
  components: { Treeselect, StatisticsCards },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 首次挂载时 created 已经查过,跳过紧接着触发的 activated,避免重复请求
      activatedOnce: false,
      // 选中数组
      ids: [],
      // 非单个禁用
@@ -1652,6 +1655,11 @@
    this.taskQueryReady = true;
  },
  activated() {
    // 首次挂载时 created 已经请求过,避免重复请求
    if (!this.activatedOnce) {
      this.activatedOnce = true;
      return;
    }
    // 从别的标签页切回来时,以表单条件为准,丢弃卡片带来的一次性筛选
    this.cardFilter = null;
    this.errtype = this.$route.query.errtype;
@@ -1751,13 +1759,10 @@
          if (item.endtime) {
            item.endDay = this.daysBetween(item.endtime);
          }
          console.log(item, "3");
          if (item.preachform) {
            item.preachformson = item.preachform;
            idArray = item.preachform.split(",");
            console.log(this.checkboxlist);
            console.log(idArray);
            item.preachform = idArray.map((value) => {
              const item = this.checkboxlist.find(