From 82892af0b74f02df34eb2f9833da0d4c373e59b8 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期四, 29 八月 2024 23:11:15 +0800
Subject: [PATCH] 家庭号可以重复了

---
 ruoyi-ui/src/views/device/index.vue |   71 ++++++++++++-----------------------
 1 files changed, 24 insertions(+), 47 deletions(-)

diff --git a/ruoyi-ui/src/views/device/index.vue b/ruoyi-ui/src/views/device/index.vue
index a48d35f..53974cb 100644
--- a/ruoyi-ui/src/views/device/index.vue
+++ b/ruoyi-ui/src/views/device/index.vue
@@ -134,53 +134,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>
     <!-- 搴忓彿銆佽澶囧悕绉般�佹椂闂淬�佽喘涔颁汉銆佷簨椤瑰唴瀹广�佸瓨鏀惧湴鐐广�佺數瀛愭枃浠躲�佸娉� 鎿嶄綔-->
     <!-- 杩欓噷鏈変釜familyList鏁扮粍 鏄湪data()涓畾涔夌殑 -->
-    <el-table v-loading="loading" :data="equipmentList"  :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="equipmentList"  :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" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
       <el-table-column label="璁惧鍚嶇О" prop="name" sortable width="150" />
@@ -477,7 +453,7 @@
       </el-select>
             </div>
 
-      <el-table v-loading="loading2" :data="shareList1" :row-key="getRowId2" ref="multipleTable"  @selection-change="handleSelectionChange2"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
+      <el-table v-loading="loading2" border :data="shareList1" :row-key="getRowId2" ref="multipleTable"  @selection-change="handleSelectionChange2"  :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="name" sortable width="150" />
@@ -579,6 +555,7 @@
         share,shareToWho,getWhoShare,downShareData,deleteShareData,showShareData
 } from "@/api/device/index";
 import {listUserAll} from "@/api/root/index";
+import { Notification, MessageBox, Message, Loading } from 'element-ui'
 
 
 export default {
@@ -615,7 +592,7 @@
       single1: true,
       multiple1: true,
       dateRange1: [],
-
+	  valueFromParent: '瀹跺涵璁惧',
 
       userId: undefined,
       // 閬僵灞�
@@ -649,7 +626,7 @@
       dateRange: [],
       // 鏁版嵁鑼冨洿閫夐」
     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:[
       ],

--
Gitblit v1.9.1