From d94d00d2cd9eaf87bb3776f72f8e73410b93cb7a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 18 十二月 2023 15:59:37 +0800
Subject: [PATCH] 随访题库完成

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

diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 870d48a..430caa0 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -77,13 +77,23 @@
       <el-divider></el-divider>
       <el-row :gutter="10" class="mb8">
         <el-col :span="1.5">
+          <el-select v-model="tasktopic" placeholder="璇烽�夋嫨鏂板绫诲瀷">
+            <el-option
+              v-for="item in taskoptions"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
+            </el-option>
+          </el-select>
+        </el-col>
+        <el-col :span="1.5">
           <el-button
             type="primary"
-            plain
             icon="el-icon-plus"
             size="medium"
             @click="handleAdd"
-            v-hasPermi="['system:user:add']"
+            :disabled="!tasktopic"
             >鏂板</el-button
           >
         </el-col>
@@ -207,7 +217,7 @@
             <span>{{ parseTime(scope.row.create_time) }}</span>
           </template>
         </el-table-column>
-      
+
         <el-table-column
           label="鎿嶄綔"
           align="center"
@@ -339,13 +349,7 @@
   resetUserPwd,
   changeUserStatus,
 } from "@/api/system/user";
-import {
-  listsvr_prj,
-  getsvr_task,
-  addsvr_task,
-  updatesvr_task,
-  delsvr_task,
-} from "@/api/smartorpor/svr_task";
+
 
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -397,6 +401,33 @@
       previewvalue: {
         username: "杩欎釜鍖荤敓瀵逛綘鎬庝箞鏍�",
       },
+      taskoptions: [
+        {
+          value: "1",
+          label: "瀹f暀鏈嶅姟",
+        },
+        {
+          value: "2",
+          label: "闂ㄨ瘖闅忚",
+        },
+        {
+          value: "3",
+          label: "鍑洪櫌闅忚",
+        },
+        {
+          value: "4",
+          label: "澶嶈瘖鏈嶅姟",
+        },
+        {
+          value: "5",
+          label: "浣撴閫氱煡",
+        },
+        {
+          value: "6",
+          label: "闂嵎鏈嶅姟",
+        },
+      ],
+      tasktopic: null, //鏂板绫诲瀷
       value: [],
       list: [],
       loading: false,
@@ -690,8 +721,12 @@
     },
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
+      // this.$router.push({
+      //   path: "/followvisit/tasklist/FollowupDetails/",
+      // });
       this.$router.push({
-        path: "/followvisit/tasklist/FollowupDetails/",
+        path: "/followvisit/particty",
+        query: { type: this.tasktopic },
       });
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
@@ -703,7 +738,7 @@
       // });
       this.$router.push({
         path: "/followvisit/particty",
-        query: { type: 2, },
+        query: { type: 2 },
       });
     },
     /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */

--
Gitblit v1.9.3