From de147dda682f8ac597bbcc8555b57acbdf45dba2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 13 十一月 2025 16:55:51 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/tasklist/index.vue |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 0709ab4..bbe13cb 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -90,7 +90,7 @@
           >
             <el-option
               v-for="item in longtermlist"
-              :key="item.value"
+              :key="item.label"
               :label="item.label"
               :value="item.value"
             >
@@ -253,6 +253,7 @@
               ><span class="button-xj">渚濈収鏂板</span></el-button
             >
             <el-button
+              v-if="scope.row.sendState != 5"
               size="medium"
               type="text"
               @click="handleAddpatient(scope.row.taskid, scope.row.type)"
@@ -583,7 +584,7 @@
       topqueryParams: {
         pageNum: 1,
         pageSize: 10,
-        type: 2,
+        type: 1,
         userName: undefined,
         tagid: undefined,
         topic: undefined,
@@ -649,6 +650,7 @@
     this.tasktopic = this.$route.query.tasktopic
       ? this.$route.query.tasktopic
       : this.tasktopic;
+    this.tasktopic = Number(this.tasktopic);
     this.getList();
     this.getConfigKey("sys.user.initPassword").then((response) => {
       this.initPassword = response.msg;
@@ -678,7 +680,7 @@
         this.tasktopic == 5 ||
         this.tasktopic == 6
       ) {
-        if (!this.topqueryParams.type) this.topqueryParams.type = "2";
+        if (!this.topqueryParams.type) this.topqueryParams.type = 1;
         this.longtermlist = [
           {
             value: 1,
@@ -689,7 +691,8 @@
             label: "闂嵎闅忚",
           },
         ];
-        this.topqueryParams.type = 2;
+        // this.topqueryParams.type = 2;
+        // this.topqueryParams.type = 2;
       } else if (this.tasktopic == 4 || this.tasktopic == 8) {
         if (!this.topqueryParams.type) this.topqueryParams.type = "3";
         this.longtermlist = [
@@ -699,8 +702,8 @@
           },
         ];
         this.topqueryParams.type = 3;
-      } else if (this.tasktopic == 16) {
-        if (!this.topqueryParams.type) this.topqueryParams.type = "2";
+      } else if (this.tasktopic == 5) {
+        if (!this.topqueryParams.type) this.topqueryParams.type = "1";
         this.longtermlist = [
           {
             value: 1,
@@ -715,7 +718,7 @@
             label: "瀹f暀鍏虫��",
           },
         ];
-        this.topqueryParams.type = 2;
+        // this.topqueryParams.type = 2;
       }
       this.topqueryParams.beginTime = this.dateRange[0];
       this.topqueryParams.endTime = this.dateRange[1];
@@ -770,6 +773,8 @@
       this.getList();
     },
     handleQuery() {
+      console.log(this.topqueryParams.type);
+
       this.topqueryParams.pageNum = 1;
       this.getList();
     },

--
Gitblit v1.9.3