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 | 101 +++++++++++++++++--------------------------------- 1 files changed, 35 insertions(+), 66 deletions(-) diff --git a/ruoyi-ui/src/views/device/index.vue b/ruoyi-ui/src/views/device/index.vue index a48d35f..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" /> @@ -579,7 +555,8 @@ share,shareToWho,getWhoShare,downShareData,deleteShareData,showShareData } 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", @@ -587,6 +564,7 @@ data() { return { // 鍒嗕韩缁欒皝鐨刲ist + total1: 0, listRoot: [], open1:false, open2:false, @@ -615,7 +593,7 @@ single1: true, multiple1: true, dateRange1: [], - + valueFromParent: '瀹跺涵璁惧', userId: undefined, // 閬僵灞� @@ -649,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:[ ], @@ -881,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