From b10795e18a07b9beb72f25406f26f42491828be5 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 22 十月 2024 09:20:19 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/index.vue |   58 ++++++++++++++++++++++++++++++----------------------------
 1 files changed, 30 insertions(+), 28 deletions(-)

diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index 2e9b795..055b5e9 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -22,7 +22,7 @@
     <!-- 鍙充晶鏁版嵁 -->
 
     <div class="leftvlue">
-      <div>
+      <!-- <div>
         <el-row :gutter="10">
           <el-col :span="2.5" v-for="(item, index) in cardlist" :key="index">
             <el-card
@@ -45,7 +45,7 @@
             </el-card>
           </el-col>
         </el-row>
-      </div>
+      </div> -->
       <div class="leftvlue-bg">
         <el-row :gutter="20">
           <!--鐢ㄦ埛鏁版嵁-->
@@ -109,10 +109,10 @@
                   @keyup.enter.native="handleQuery"
                 />
               </el-form-item>
-              <el-form-item label="鎮h�呮潵婧�" prop="tagId">
+              <el-form-item label="鎮h�呰寖鍥�" prop="tagId">
             <el-select
                 v-model="queryParams.searchscope"
-                placeholder="璇烽�夋嫨鎮h�呮潵婧�"
+                placeholder="璇烽�夋嫨鎮h�呰寖鍥�"
               >
                 <el-option
                   v-for="item in source"
@@ -215,6 +215,7 @@
             <el-table
               v-loading="loading"
               :data="userList"
+               height="660"
               @selection-change="handleSelectionChange"
             >
               <el-table-column type="selection" width="50" align="center" />
@@ -648,20 +649,19 @@
           :limit="1"
           accept=".xlsx, .xls"
           :headers="upload.headers"
-          :action="upload.url + '?updateSupport=' + upload.updateSupport"
+          :action="upload.url"
           :disabled="upload.isUploading"
           :on-progress="handleFileUploadProgress"
           :on-success="handleFileSuccess"
-          :auto-upload="false"
           drag
         >
           <i class="el-icon-upload"></i>
           <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div>
           <div class="el-upload__tip text-center" slot="tip">
-            <div class="el-upload__tip" slot="tip">
+            <!-- <div class="el-upload__tip" slot="tip">
               <el-checkbox v-model="upload.updateSupport" />
               鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�
-            </div>
+            </div> -->
             <span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span>
             <el-link
               type="primary"
@@ -670,7 +670,7 @@
               @click="importTemplate"
               >涓嬭浇妯℃澘
             </el-link>
-            <el-link
+            <!-- <el-link
               type="success"
               :underline="false"
               style="font-size: 24px; vertical-align: baseline"
@@ -678,7 +678,7 @@
               target="_blank"
             >
               鏌ョ湅妯℃澘</el-link
-            >
+            > -->
           </div>
         </el-upload>
       </div>
@@ -949,13 +949,14 @@
         // 璁剧疆涓婁紶鐨勮姹傚ご閮�
         headers: { Authorization: "Bearer " + getToken() },
         // 涓婁紶鐨勫湴鍧�
-        url: process.env.VUE_APP_BASE_API + "/system/user/importData",
+        url: process.env.VUE_APP_BASE_API + "/smartor/import/importPatInfo",
       },
       // 鏌ヨ鍙傛暟
       queryParams: {
         pageNum: 1,
         allhosp: "1",
         pageSize: 10,
+        searchscope:2,
         idcardno: undefined,
         name: undefined,
         status: undefined,
@@ -1016,6 +1017,22 @@
   methods: {
     /** 鏌ヨ鎮h�呭垪琛� */
     getList() {
+      if (this.queryParams.searchscope == 1) {
+        this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
+          (obj) => obj.deptCode
+        );
+        this.queryParams.leavehospitaldistrictcodes=null;
+      } else if (this.queryParams.searchscope == 2) {
+        this.queryParams.leavehospitaldistrictcodes =
+          store.getters.belongWards.map((obj) => obj.districtCode);
+          this.queryParams.leaveldeptcodes=null;
+      } else {
+        this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
+          (obj) => obj.deptCode
+        );
+        this.queryParams.leavehospitaldistrictcodes =
+          store.getters.belongWards.map((obj) => obj.districtCode);
+      }
       this.loading = true;
       messagelistpatient(this.queryParams).then((response) => {
         this.userList = response.rows;
@@ -1078,22 +1095,7 @@
     },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery() {
-      if (this.queryParams.searchscope == 1) {
-        this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.queryParams.leavehospitaldistrictcodes=null;
-      } else if (this.queryParams.searchscope == 2) {
-        this.queryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.districtCode);
-          this.queryParams.leaveldeptcodes=null;
-      } else {
-        this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.queryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.districtCode);
-      }
+
       this.queryParams.pageNum = 1;
       this.getList();
     },
@@ -1224,7 +1226,7 @@
     /** 涓嬭浇妯℃澘鎿嶄綔 */
     importTemplate() {
       this.download(
-        "system/user/importTemplate",
+        "smartor/import/getImportPatTemplate",
         {},
         `user_template_${new Date().getTime()}.xlsx`
       );

--
Gitblit v1.9.3