From b3e948aeead0c387bcf88c7e4309805a4fa98cf6 Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Thu, 15 Aug 2024 14:57:00 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E8=81=94=E8=B0=83=20sws=202024-08-15?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/upload.ts | 33 ++
src/components/base/no-data/index.vue | 28 ++
src/components/base/noData/index.vue | 16 -
.../common/upload/form-upload-category.vue | 2 +-
src/components/common/upload/index.scss | 5 +
src/components/common/upload/index.vue | 312 ++++++++++--------
src/components/common/upload/upload-model.vue | 63 +---
.../model-custom/components/index.vue | 51 +--
.../model-custom/model-custom-content.vue | 2 +-
src/store/modules/upload.ts | 20 +-
10 files changed, 296 insertions(+), 236 deletions(-)
create mode 100644 src/components/base/no-data/index.vue
delete mode 100644 src/components/base/noData/index.vue
diff --git a/src/api/upload.ts b/src/api/upload.ts
index 0ad32387..8f31fab6 100644
--- a/src/api/upload.ts
+++ b/src/api/upload.ts
@@ -32,6 +32,39 @@ class UploadAPI {
data,
});
}
+
+ // 附件列表
+ static getAttachmentList(data: any) {
+ return request({
+ url: `diyapi/attachmentlist`,
+ method: 'post',
+ data,
+ });
+ }
+ // 附件名称修改
+ static saveAttachmentName(data: any) {
+ return request({
+ url: `diyapi/attachmentsave`,
+ method: 'post',
+ data,
+ });
+ }
+ // 附件删除
+ static delAttachment(data: any) {
+ return request({
+ url: `diyapi/attachmentdelete`,
+ method: 'post',
+ data,
+ });
+ }
+ // 附件上传
+ static uploadAttachment(data: any) {
+ return request({
+ url: `diyapi/attachmentupload`,
+ method: 'post',
+ data,
+ });
+ }
}
export default UploadAPI;
diff --git a/src/components/base/no-data/index.vue b/src/components/base/no-data/index.vue
new file mode 100644
index 00000000..ace2f568
--- /dev/null
+++ b/src/components/base/no-data/index.vue
@@ -0,0 +1,28 @@
+
+
+
![]()
+
暂无数据
+
+
+
+
diff --git a/src/components/base/noData/index.vue b/src/components/base/noData/index.vue
deleted file mode 100644
index 250ad87a..00000000
--- a/src/components/base/noData/index.vue
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
![]()
-
暂无数据
-
-
-
-
\ No newline at end of file
diff --git a/src/components/common/upload/form-upload-category.vue b/src/components/common/upload/form-upload-category.vue
index 8d8e8102..3d88f551 100644
--- a/src/components/common/upload/form-upload-category.vue
+++ b/src/components/common/upload/form-upload-category.vue
@@ -17,7 +17,7 @@
-
+
diff --git a/src/components/common/upload/index.scss b/src/components/common/upload/index.scss
index 10b85666..838405e9 100644
--- a/src/components/common/upload/index.scss
+++ b/src/components/common/upload/index.scss
@@ -11,6 +11,11 @@
color: $cr-primary;
}
}
+ .disabled {
+ position: relative;
+ cursor: not-allowed;
+ height: 100%;
+ }
}
.right-content {
position: relative;
diff --git a/src/components/common/upload/index.vue b/src/components/common/upload/index.vue
index 4eb044e1..b35a7de4 100644
--- a/src/components/common/upload/index.vue
+++ b/src/components/common/upload/index.vue
@@ -22,14 +22,20 @@
-
+
-
+
{{ data.name }}
-
@@ -47,7 +53,7 @@
-
+
@@ -57,7 +63,7 @@
-
+
@@ -100,7 +106,7 @@
+
+
+
-
+
@@ -176,7 +185,6 @@