From 63b70dbc269b7b9d20a7a88f3dd7c8bb0934d3f4 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 03 九月 2024 21:49:18 +0800
Subject: [PATCH] 修改了一些bug

---
 ruoyi-ui/src/views/device/index.vue |  100 +++++++++++++++++---------------------------------
 1 files changed, 34 insertions(+), 66 deletions(-)

diff --git a/ruoyi-ui/src/views/device/index.vue b/ruoyi-ui/src/views/device/index.vue
index 9356a84..6066f93 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" />
@@ -580,7 +556,7 @@
 } from "@/api/device/index";
 import {listUserAll} from "@/api/root/index";
 import { Notification, MessageBox, Message, Loading } from 'element-ui'
-
+import {showShareUser} from "@/api/bignote/index";
 
 export default {
   name: "Role",
@@ -588,6 +564,7 @@
   data() {
     return {
       // 鍒嗕韩缁欒皝鐨刲ist
+	  total1: 0,
       listRoot: [],
       open1:false,
       open2:false,
@@ -616,7 +593,7 @@
       single1: true,
       multiple1: true,
       dateRange1: [],
-
+	  valueFromParent: '瀹跺涵璁惧',
 
       userId: undefined,
       // 閬僵灞�
@@ -650,7 +627,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:[
       ],
@@ -882,24 +859,15 @@
     },
     getList1() {
           this.loading1 = true;
-          this.queryParams1.happenStartTime = this.dateRange1.length > 0 && this.dateRange1[0]
-          this.queryParams1.happenEndTime = this.dateRange1.length > 0 && this.dateRange1[1]
-          listUserAll(this.queryParams1).then(response => {
-              this.listRoot = response.data.data;
-              const kon = {}
-              this.listRoot.forEach(element => {
-                kon[element['nickName']] = element['userId']
-              })
-              for(let i in kon){
-                this.userOptions.push({label: i,value: kon[i]})
-              }
-              for(let i in this.userOptions){
-                this.userList.push(this.userOptions[i].value)
-              }
-              console.log(this.userList,'userListuserListuserList')
-              this.loading1 = false;
-            }
-          );
+           let userId = this.$store.state.user.userId
+           showShareUser(userId, 2017).then(response=>{
+           			  console.log("===========ddddddddddddd")
+           			  console.log(response.data)
+           			  console.log("--------------------")
+           			  response.data.forEach(element =>{
+           				   this.userOptions.push({label: element.oldName,value: element.userId})
+           			  })
+          })
         },
     // 纭鍒嗕韩
     subShare(row) {

--
Gitblit v1.9.1