From cc73ea5320fed8a39e00bfc0fa02810199559122 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 16 七月 2024 15:55:40 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/QuestionnaireTask.vue |  180 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 177 insertions(+), 3 deletions(-)

diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index f250966..f92b03b 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -54,6 +54,7 @@
                     <el-button
                       type="primary"
                       icon="el-icon-edit"
+                      @click="drawermb = true"
                       circle
                     ></el-button>
                   </el-col>
@@ -701,6 +702,177 @@
         <el-button type="primary" @click="previewFn">纭浣跨敤</el-button>
       </span>
     </el-dialog>
+    <el-drawer
+      title="闅忚鍐呭鍒楄〃"
+      :visible.sync="drawermb"
+      direction="rtl"
+      size="50%"
+    >
+      <div class="headline"></div>
+      <div class="examine-jic">
+        <div class="jic-value">
+          <el-row :gutter="20">
+            <!--鐢ㄦ埛鏁版嵁-->
+
+            <el-form
+              :model="topqueryParams"
+              ref="queryForm"
+              size="small"
+              :inline="true"
+              v-show="showSearch"
+              label-width="98px"
+            >
+              <el-form-item
+                label="瀹f暀涓婚"
+                v-if="currenttype == 1 || currenttype == 8"
+              >
+                <el-input v-model="topqueryParams.name"></el-input>
+              </el-form-item>
+              <el-form-item
+                label="闅忚鍚嶇О"
+                v-if="currenttype == 2 || currenttype == 3 || currenttype == 7"
+              >
+                <el-input
+                  v-model="topqueryParams.name"
+                ></el-input> </el-form-item
+              ><el-form-item
+                label="閫氱煡鍚嶇О"
+                v-if="currenttype == 4 || currenttype == 5"
+              >
+                <el-input
+                  v-model="topqueryParams.name"
+                ></el-input> </el-form-item
+              ><el-form-item label="浣撴濂楅" v-if="currenttype == 5">
+                <el-input v-model="topqueryParams.name"></el-input>
+              </el-form-item>
+              <el-form-item label="闂嵎涓婚" v-if="currenttype == 6">
+                <el-input v-model="topqueryParams.name"></el-input>
+              </el-form-item>
+              <el-form-item label="閫傜敤鐤剧梾" v-if="currenttype != 5">
+                <el-input v-model="topqueryParams.name"></el-input>
+              </el-form-item>
+
+              <el-form-item
+                label="瀹f暀绫诲瀷"
+                prop="status"
+                v-if="currenttype == 1 || currenttype == 8"
+              >
+                <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨">
+                  <el-option
+                    v-for="item in taskoptions"
+                    :key="item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  >
+                  </el-option>
+                </el-select>
+              </el-form-item>
+              <el-form-item
+                label="閫氱煡绫诲瀷"
+                prop="status"
+                v-if="currenttype == 4 || currenttype == 5"
+              >
+                <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨">
+                  <el-option
+                    v-for="item in taskoptions"
+                    :key="item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  >
+                  </el-option>
+                </el-select>
+              </el-form-item>
+              <el-form-item
+                label="闅忚绫诲瀷"
+                prop="status"
+                v-if="currenttype == 2 || currenttype == 3 || currenttype == 7"
+              >
+                <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨">
+                  <el-option
+                    v-for="item in taskoptions"
+                    :key="item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  >
+                  </el-option>
+                </el-select>
+              </el-form-item>
+              <el-form-item
+                label="闂嵎绫诲瀷"
+                prop="status"
+                v-if="currenttype == 6"
+              >
+                <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨">
+                  <el-option
+                    v-for="item in taskoptions"
+                    :key="item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  >
+                  </el-option>
+                </el-select>
+              </el-form-item>
+              <el-form-item label="閫傜敤褰㈠紡" prop="status">
+                <el-select v-model="topqueryParams.topica" placeholder="璇烽�夋嫨">
+                  <el-option
+                    v-for="item in taskoptions"
+                    :key="item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  >
+                  </el-option>
+                </el-select>
+              </el-form-item>
+
+              <el-form-item label="閫傜敤绉戝" prop="status">
+                <el-select v-model="topqueryParams.topicd" placeholder="璇烽�夋嫨">
+                  <el-option
+                    v-for="item in topicoptions"
+                    :key="item.value"
+                    :label="item.label"
+                    :value="item.value"
+                  >
+                  </el-option>
+                </el-select>
+              </el-form-item>
+              <el-form-item>
+                <el-button
+                  type="primary"
+                  icon="el-icon-search"
+                  size="medium"
+                  @click="handleQuery"
+                  >鎼滅储</el-button
+                >
+                <el-button
+                  icon="el-icon-refresh"
+                  size="medium"
+                  @click="resetQuery"
+                  >閲嶇疆</el-button
+                >
+              </el-form-item>
+            </el-form>
+            <el-divider></el-divider>
+            <!-- 閫夋嫨妯$増鍒楄〃 -->
+            <SFtable
+              @selectfn="selectfn"
+              :currentList="userList"
+              :tableLabel="tableLabel"
+              :serialnumber="false"
+              :controlsc="false"
+              :multiplechoice="false"
+              :typeinfo="1"
+            />
+            <pagination
+              v-show="total > 0"
+              :total="total"
+              :page.sync="topqueryParams.pageNum"
+              :limit.sync="topqueryParams.pageSize"
+              @pagination="Acquisitiontype"
+            />
+          </el-row>
+        </div>
+      </div>
+    </el-drawer>
   </div>
 </template>
 
@@ -716,7 +888,7 @@
   Questionnairetaskget,
   gethetaskinfo,
   delhetaskinfo,
-  Questionnairetaskdetails,
+  Editsingletask,
 } from "@/api/AiCentre/index";
 import { listDept } from "@/api/system/dept";
 
@@ -735,6 +907,7 @@
       allpids: [],
       libId: null, //妯℃澘搴撴ā鐗坕d
       Editprogress: 1, //缂栬緫杩涘害
+      drawermb: false, //閫夋嫨妯$増寮圭獥
       previewtf: false, //棰勮
       loading: false, // 閬僵灞�
       patientloading: false, // 閬僵灞�
@@ -887,7 +1060,8 @@
 
   created() {
     this.id = this.$route.query.id;
-    this.form.Type = this.$route.query.type;
+    this.form.type = this.$route.query.type;
+    this.form.typename = this.$route.query.typename;
     this.listDept();
     this.Acquisitiontype();
     this.Getdetails();
@@ -962,7 +1136,7 @@
       if (!this.form.type) {
         this.form.type = this.$route.query.type;
       }
-      Questionnairetaskdetails(this.form).then((res) => {
+      Editsingletask(this.form).then((res) => {
         if (res.code == 200) {
           if (this.form.taskid) {
             this.$modal.msgSuccess("鏂板鎴愬姛");

--
Gitblit v1.9.3