From d168653061c26a7d51e6eb400a6e2b1d528d4a5b Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Fri, 17 Nov 2023 17:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BC=80=E5=B1=8F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common/upload.js | 4 +- src/views/resource/ResourceView.vue | 111 +++++++++++++++++++--------- src/views/resource/SplashView.vue | 51 +++++++++---- 3 files changed, 115 insertions(+), 51 deletions(-) diff --git a/src/api/common/upload.js b/src/api/common/upload.js index 79a8051..e744de1 100644 --- a/src/api/common/upload.js +++ b/src/api/common/upload.js @@ -1,9 +1,9 @@ import '@/utils/ajaxfileupload'; -export const uploadFile = data => { +export const uploadFile = id => { return new Promise((resolve, reject) => { $.ajaxFileUpload({ - fileElementId: data.id, + fileElementId: id, url: '/admin/upload/img', type: 'post', dataType: 'json', diff --git a/src/views/resource/ResourceView.vue b/src/views/resource/ResourceView.vue index 6143d4a..077810e 100644 --- a/src/views/resource/ResourceView.vue +++ b/src/views/resource/ResourceView.vue @@ -19,8 +19,8 @@ @@ -42,11 +42,10 @@ - + @@ -58,49 +57,73 @@
- 入口名称 - + 入口名称 +
- icon + icon + + +
- 跳转位置 + + + +
+
+ 跳转位置 - - + + +
+
+ 资源编码 +
- {{ resource.skipType == 2 ? "跳转链接" : + {{ resource.skipType == 2 ? "跳转链接" : (resource.skipType == 3 ? "跳转房间" : "") }}
- 切换banner + 切换banner + + +
- 生效时间 + + + +
+
+ 生效时间 - +
- 失效时间 + 失效时间 - +
- 排序 + 排序
- {{ rule.ruleName }} - - - - - + {{ rule.ruleName }} + + + + +