From 7eaee92ee52e1501480adbbe8a1af9ddecc04275 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 04 九月 2024 11:05:23 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/questionnaire/index.vue |  114 +++++++++++++++++++++++++--------------------------------
 1 files changed, 50 insertions(+), 64 deletions(-)

diff --git a/src/views/patient/questionnaire/index.vue b/src/views/patient/questionnaire/index.vue
index 327b358..eeef602 100644
--- a/src/views/patient/questionnaire/index.vue
+++ b/src/views/patient/questionnaire/index.vue
@@ -158,26 +158,28 @@
         <el-table-column type="selection" width="50" align="center" />
         <el-table-column
           label="搴忓彿"
+          fixed
           align="center"
           key="userId"
           prop="userId"
         />
 
         <el-table-column
+          label="濮撳悕"
+          fixed
+          align="center"
+          key="patientname"
+          prop="patientname"
+        />
+        <el-table-column
           label="搴婂彿"
           align="center"
           sortable
-          key="userName"
-          prop="userName"
+          key="bedNo"
+          prop="bedNo"
           width="120"
         />
-        <el-table-column label="濮撳悕" align="center" key="types" prop="types" />
-        <el-table-column
-          label="骞撮緞"
-          align="center"
-          key="nickName"
-          prop="nickName"
-        />
+        <el-table-column label="骞撮緞" align="center" key="age" prop="age" />
         <el-table-column
           label="绉戝/鐥呭尯"
           align="center"
@@ -202,8 +204,8 @@
         <el-table-column
           label="鍙戦�佹柟寮�"
           align="center"
-          key="topicnumber"
-          prop="topicnumber"
+          key="topicnumberc"
+          prop="topicnumberc"
           width="120"
           :show-overflow-tooltip="true"
         >
@@ -214,8 +216,8 @@
         <el-table-column
           label="鍙戦�佸唴瀹�"
           align="center"
-          key="topicnumberaa"
-          prop="topicnumberaa"
+          key="topicnumberb"
+          prop="topicnumberb"
           width="120"
         />
         <el-table-column
@@ -225,18 +227,6 @@
           prop="topicnumberaa"
           width="120"
         />
-        <el-table-column
-          label="鍙戦�佺姸鎬�"
-          align="center"
-          key="topicnumber"
-          prop="topicnumber"
-          width="120"
-          :show-overflow-tooltip="true"
-        >
-          <template slot-scope="scope">
-            <div>宸插彂閫�</div>
-          </template>
-        </el-table-column>
 
         <el-table-column
           label="灏辫瘖鏃堕棿"
@@ -273,13 +263,26 @@
         </el-table-column>
 
         <el-table-column
+          label="鍙戦�佺姸鎬�"
+          align="center"
+          key="topicnumbera"
+          prop="topicnumbera"
+          width="120"
+          :show-overflow-tooltip="true"
+        >
+          <template slot-scope="scope">
+            <div>宸插彂閫�</div>
+          </template>
+        </el-table-column>
+        <el-table-column
           label="鎿嶄綔"
+          fixed="right"
           align="center"
           width="200"
           class-name="small-padding fixed-width"
         >
           <template slot-scope="scope">
-            <el-button
+            <!-- <el-button
               size="medium"
               type="text"
               @click="followupvisit(scope.row)"
@@ -296,7 +299,7 @@
               ><span class="button-sc"
                 ><i class="el-icon-delete"></i>鍋滄</span
               ></el-button
-            >
+            > -->
             <el-button
               size="medium"
               type="text"
@@ -452,7 +455,6 @@
 
 <script>
 import {
-  listUser,
   getUser,
   delUser,
   addUser,
@@ -460,6 +462,8 @@
   resetUserPwd,
   changeUserStatus,
 } from "@/api/system/user";
+import { getTaskservelist } from "@/api/AiCentre/index";
+
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 
@@ -585,9 +589,8 @@
       topqueryParams: {
         pageNum: 1,
         pageSize: 10,
-        userName: undefined,
-        tagid: undefined,
-        topic: undefined,
+        serviceType:7,
+
       },
       propss: { multiple: true },
       options: [],
@@ -675,13 +678,11 @@
     /** 鏌ヨ闂ㄨ瘖闅忚鍒楄〃 */
     getList() {
       this.loading = true;
-      listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then(
-        (response) => {
-          this.userList = response.rows;
-          this.total = response.total;
-          this.loading = false;
-        }
-      );
+      getTaskservelist(this.topqueryParams).then((response) => {
+        this.userList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
     },
     // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏
     Referencequestion(row) {
@@ -780,30 +781,15 @@
     },
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
-      this.reset();
-      this.addalteropen = true;
-      // getUser().then((response) => {
-      //   this.postOptions = response.posts;
-      //   this.roleOptions = response.roles;
-      //   this.title = "鏂板闂ㄨ瘖闅忚";
-      //   this.form.password = this.initPassword;
-      // });
+      this.$router.push({
+        path: "/followvisit/QuestionnaireTask",
+        query: {
+          type: 2,
+          serviceType: 7,
+        },
+      });
     },
-    /** 淇敼鎸夐挳鎿嶄綔 */
-    // handleUpdate(row) {
-    //   this.reset();
-    //   const userId = row.userId || this.ids;
-    //   getUser(userId).then((response) => {
-    //     this.form = response.data;
-    //     this.postOptions = response.posts;
-    //     this.roleOptions = response.roles;
-    //     this.$set(this.form, "postIds", response.postIds);
-    //     this.$set(this.form, "roleIds", response.roleIds);
-    //     this.addalteropen = true;
-    //     this.title = "淇敼鐢ㄦ埛";
-    //     this.form.password = "";
-    //   });
-    // },
+
     /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
     handleResetPwd(row) {
       this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", {
@@ -899,10 +885,10 @@
       this.modificationVisible = true;
     },
     // 璺宠浆璇︽儏椤�
-    Seedetails() {
+    Seedetails(row) {
       this.$router.push({
-        path: "/followvisit/particty",
-        query: { type: 6 },
+        path: "/followvisit/QuestionnaireTask",
+        query: { taskid: row.taskid, patid: row.patid },
       });
     },
     // 瀵煎叆鎸夐挳

--
Gitblit v1.9.3