From f72cc2c5bc9ea4df7819cf53e3b872024e0583a1 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期六, 31 八月 2024 10:54:27 +0800
Subject: [PATCH] 修改家庭医生上传

---
 ruoyi-ui/src/views/doctor/index.vue |   87 +++++++++++++++++--------------------------
 1 files changed, 35 insertions(+), 52 deletions(-)

diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue
index 5eeb696..a09ac1c 100644
--- a/ruoyi-ui/src/views/doctor/index.vue
+++ b/ruoyi-ui/src/views/doctor/index.vue
@@ -132,58 +132,29 @@
 
           </el-upload>
         </el-col>
-
-        <el-col :span="1.5">
-          <el-button
-            type="primary"
-            plain
-            icon="el-icon-top"
-            size="mini"
-            :disabled="multiple"
-            @click="handleShare"
-
-          >鍒嗕韩</el-button>
-        </el-col>
-
-        <el-col :span="1.5">
-          <el-button
-            type="primary"
-            plain
-            icon="el-icon-top"
-            size="mini"
-            @click="handleWho"
-          >鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹�</el-button>
-        </el-col>
-
-        <el-col :span="1.5">
-          <el-button
-            type="primary"
-            plain
-            icon="el-icon-top"
-            size="mini"
-            @click="whoShare"
-          >鍒嗕韩缁欐垜鐨勬暟鎹�</el-button>
-        </el-col>
-
-        <el-col :span="1.5">
-          <el-button
-            type="primary"
-            plain
-            icon="el-icon-top"
-            size="mini"
-            @click="showData"
-          >灞曠ず涓嬭浇鐨勫垎浜暟鎹�</el-button>
-        </el-col>
-
-
-
-
-
-        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+     <el-dropdown placement="鍒嗕韩鐩稿叧">
+         <el-button size="mini"   type="primary"
+                    plain
+                    icon="el-icon-top">鍒嗕韩鐩稿叧</el-button>
+          <template #dropdown>
+            <el-dropdown-menu>
+              <el-dropdown-item     :disabled="multiple" icon="el-icon-top" style="height: 32px;width:240px;color: #0099ff;" @click.native="handleShare">鍒嗕韩</el-dropdown-item>
+          
+     		          <el-dropdown-item    icon="el-icon-top" @click.native="whoShare">鍒嗕韩缁欐垜鐨勬暟鎹�</el-dropdown-item>
+     		      <el-dropdown-item    icon="el-icon-top" @click.native="handleWho">鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹�</el-dropdown-item>
+              <el-dropdown-item    icon="el-icon-top" @click.native="showData">灞曠ず涓嬭浇鐨勫垎浜暟鎹�</el-dropdown-item>
+            </el-dropdown-menu>
+          </template>
+        </el-dropdown>
+     
+             
+     
+            <right-toolbar :parentValue.sync="valueFromParent" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+         
       </el-row>
     </div>
 
-    <el-table v-loading="loading" :data="doctorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
+    <el-table v-loading="loading" border :data="doctorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
       <el-table-column type="selection" :reserve-selection="true" width="55"  align="center" />
       <el-table-column fixed label="搴忓彿" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/>
       <el-table-column label="绫诲埆" prop="type" sortable :show-overflow-tooltip="true" width="80" align="center">
@@ -622,6 +593,7 @@
       title2: "",
       loading1: false,
       loading2: false,
+	  valueFromParent: '瀹跺涵灏忓尰鐢�',
       // 鏌ヨ鍙傛暟1
       queryParams1: {
         pageNum: 1,
@@ -635,6 +607,7 @@
       single1: true,
       multiple1: true,
       dateRange1: [],
+
 
       userId: undefined,
       // 閬僵灞�
@@ -671,7 +644,8 @@
 
       // 鏁版嵁鑼冨洿閫夐」
       fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
-        '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
+        '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng',
+		'.m4a'],
       fileList:[],
       fileList1:[],
       	  uploadFileList: [],
@@ -793,6 +767,7 @@
     handleClose(){
       this.user = ''
       this.queryParams2.pageNo = 1
+            this.total1 = 0
     },
     handleClose2(){
       this.$refs.table1.clearSelection()
@@ -858,7 +833,12 @@
       const list = {"shareIds": [this.selectWho]}
       shareToWho(list,this.queryParams2).then(response => {
         // this.loading2 = true;
-        this.shareList1 = response.data.data
+        response.data.data.forEach(res=>{
+          if(res){
+            this.shareList1.push(res)
+          }
+        })
+        // this.shareList1 = response.data.data
         this.total1 = response.data.total;
         // this.loading2 = false;
         console.log(response.data,'鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹垎浜粰璋佷簡浠�涔堟暟鎹�')
@@ -873,7 +853,9 @@
 
     /** 鍒嗕韩鎿嶄綔 */
     handleShare(row) {
-      this.id1 = [row.id]
+      if(row.id){
+        this.id1 = [row.id]
+      }
       this.open1 = true;
       this.title1 = "鍒嗕韩";
     },
@@ -932,6 +914,7 @@
 
         this.getList();
         this.$modal.msgSuccess("鍒嗕韩鎴愬姛");
+        this.id1 = undefined
         this.open1 = false;
       }).catch(() => {});
     },

--
Gitblit v1.9.1