From 574b449a39019a59dc90ecc19dda9f63d3aa9636 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 18 十一月 2026 15:35:47 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/tasklist/index.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 38ccc13..7528df3 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/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;
});
},
--
Gitblit v1.9.3