From f9b56a573a9ab090141be403061c903fa2e5ca00 Mon Sep 17 00:00:00 2001 From: wangting <2940883238@qq.com> Date: Sat, 11 May 2024 17:52:49 +0800 Subject: [PATCH] xiugai --- ruoyi-ui/src/api/system/album.js | 23 + ruoyi-ui/src/main.js | 4 +- .../src/views/system/album/albumImg/index.vue | 208 ++++++++ ruoyi-ui/src/views/system/album/index.vue | 60 +-- ruoyi-ui/src/views/system/article/index.vue | 451 ++---------------- .../views/system/article/materialDialog.vue | 156 ++++++ .../src/views/system/articleContent/index.vue | 2 +- .../src/views/system/audioGuide/index.vue | 2 +- ruoyi-ui/src/views/system/category/index.vue | 2 +- ruoyi-ui/src/views/system/material/index.vue | 91 ++-- .../src/views/system/materialGroup/index.vue | 2 +- .../src/views/system/materialUse/index.vue | 2 +- 12 files changed, 488 insertions(+), 515 deletions(-) create mode 100644 ruoyi-ui/src/views/system/album/albumImg/index.vue create mode 100644 ruoyi-ui/src/views/system/article/materialDialog.vue diff --git a/ruoyi-ui/src/api/system/album.js b/ruoyi-ui/src/api/system/album.js index dd35385..76e654c 100644 --- a/ruoyi-ui/src/api/system/album.js +++ b/ruoyi-ui/src/api/system/album.js @@ -42,3 +42,26 @@ export function delAlbum(albumId) { method: 'delete' }) } +// 获取相册素材 +export function getAlbumImgList(query) { + return request({ + url: '/system/album/materialList', + method: 'get', + params: query + }) +} +// 添加相册素材 +export function AddAlbumImgList(data) { + return request({ + url: '/system/album/saveMaterial', + method: 'post', + data: data + }) +} +// 删除相册管理 +export function delAlbumImgList(ids) { + return request({ + url: '/system/album/deleteMaterials/' + ids, + method: 'delete' + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index c250874..1630645 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -13,7 +13,7 @@ import router from './router' import directive from './directive' // directive import plugins from './plugins' // plugins import { download } from '@/utils/request' - +import {Base64} from 'js-base64' import './assets/icons' // icon import './permission' // permission control import { getDicts } from "@/api/system/dict/data"; @@ -48,6 +48,8 @@ Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree +Vue.prototype.$Base64 = Base64; + // 全局组件挂载 Vue.component('DictTag', DictTag) Vue.component('Pagination', Pagination) diff --git a/ruoyi-ui/src/views/system/album/albumImg/index.vue b/ruoyi-ui/src/views/system/album/albumImg/index.vue new file mode 100644 index 0000000..c9e2ffa --- /dev/null +++ b/ruoyi-ui/src/views/system/album/albumImg/index.vue @@ -0,0 +1,208 @@ +// 添加专业与人数 + + + + + diff --git a/ruoyi-ui/src/views/system/album/index.vue b/ruoyi-ui/src/views/system/album/index.vue index 5e5ed8b..d2be59e 100644 --- a/ruoyi-ui/src/views/system/album/index.vue +++ b/ruoyi-ui/src/views/system/album/index.vue @@ -143,26 +143,20 @@ - - - - - - - - - - - - + + diff --git a/ruoyi-ui/src/views/system/articleContent/index.vue b/ruoyi-ui/src/views/system/articleContent/index.vue index 74b0443..3a30b21 100644 --- a/ruoyi-ui/src/views/system/articleContent/index.vue +++ b/ruoyi-ui/src/views/system/articleContent/index.vue @@ -87,7 +87,7 @@ /> - + diff --git a/ruoyi-ui/src/views/system/audioGuide/index.vue b/ruoyi-ui/src/views/system/audioGuide/index.vue index 0189766..0e85fc1 100644 --- a/ruoyi-ui/src/views/system/audioGuide/index.vue +++ b/ruoyi-ui/src/views/system/audioGuide/index.vue @@ -123,7 +123,7 @@ /> - + diff --git a/ruoyi-ui/src/views/system/category/index.vue b/ruoyi-ui/src/views/system/category/index.vue index 52d37c1..8dc4d74 100644 --- a/ruoyi-ui/src/views/system/category/index.vue +++ b/ruoyi-ui/src/views/system/category/index.vue @@ -140,7 +140,7 @@ /> - + diff --git a/ruoyi-ui/src/views/system/material/index.vue b/ruoyi-ui/src/views/system/material/index.vue index 13a01ee..4294d54 100644 --- a/ruoyi-ui/src/views/system/material/index.vue +++ b/ruoyi-ui/src/views/system/material/index.vue @@ -151,26 +151,18 @@ - - - - - - - - - - - - - + + + - +