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 }} + + + + +