From 695a1d56442b734d44212269f1e4c44220f9d9f0 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期二, 13 八月 2024 19:18:09 +0800 Subject: [PATCH] 完成了所有的分享模块 --- ruoyi-ui/src/views/note/index.vue | 42 +++++++++++++++++++++++++++++++++++++++--- 1 files changed, 39 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/note/index.vue b/ruoyi-ui/src/views/note/index.vue index f83c3f1..e725ba0 100644 --- a/ruoyi-ui/src/views/note/index.vue +++ b/ruoyi-ui/src/views/note/index.vue @@ -371,10 +371,44 @@ list-type="picture-card" :http-request="requestUpload1" > - <template #tip> + <!-- <template #tip> <div class="el-upload__tip"> </div> - </template> + </template> --> + + <i slot="default" class="el-icon-plus"></i> + <div slot="file" slot-scope="{file}"> + <!-- 娣诲姞video鍏冪礌鐢ㄤ簬鏄剧ず瑙嗛 --> + <video + v-if="file.url.includes('.mp4')" + class="el-upload-list__item-thumbnail" + :src="file.url" + style="width: 147px; height: 147px" + fit="cover" + ></video> + <img v-else + class="el-upload-list__item-thumbnail" + src="../../assets/images/deviceLis.png" + alt="" + style="width: 100%; height: 100%" + fit="cover"></img> + + <span class="el-upload-list__item-actions"> + <span class="el-upload-list__item-name">{{ file.name }}</span> + + + <span + + class="el-upload-list__item-delete" + @click="handleRemoveFile(file)" + > + <i class="el-icon-delete"></i> + </span> + </span> + + </div> + + </el-upload> <el-button style="margin-left: 10px" @@ -529,7 +563,7 @@ } from "@/api/note/index"; import {listUserAll} from "@/api/root/index"; import {getInfo} from "@/api/login"; -import {Message} from "element-ui"; +import { Notification, MessageBox, Message, Loading } from 'element-ui' export default { name: "Role", dicts: ['sys_normal_disable'], @@ -726,8 +760,10 @@ const list2 = {"shareIds": [this.selectWho]} shareToWho(list2,this.queryParams2).then(response => { + this.loading2 = true this.shareList1 = response.data.data this.total1 = response.data.total; + this.loading2 = false }) }) }, -- Gitblit v1.9.1