diff --git a/src/api/upload.ts b/src/api/upload.ts
index 3c0e003f..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;
@@ -47,7 +80,7 @@ export interface Tree {
/** 路径 */
path: string;
/** 是否开启 */
- is_enable: boolean;
+ is_enable: Number;
/** 排序 */
sort: number;
/** 下级 */
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 db365f4d..3d88f551 100644
--- a/src/components/common/upload/form-upload-category.vue
+++ b/src/components/common/upload/form-upload-category.vue
@@ -17,7 +17,7 @@
-
+
@@ -67,7 +67,7 @@ const form = ref({
name: '',
path: '',
sort: 0,
- is_enable: true,
+ is_enable: 1,
items: [],
});
watch(
@@ -82,7 +82,7 @@ watch(
name: '',
path: '',
sort: 0,
- is_enable: true,
+ is_enable: 1,
items: [],
};
}
diff --git a/src/components/common/upload/index.scss b/src/components/common/upload/index.scss
index e07b29df..838405e9 100644
--- a/src/components/common/upload/index.scss
+++ b/src/components/common/upload/index.scss
@@ -6,6 +6,16 @@
.el-tree {
--el-tree-node-content-height: 40px;
}
+ .category-oprate {
+ .icon:hover {
+ 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 1c0f465a..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 @@