diff --git a/src/api/model/system.ts b/src/api/model/system.ts
index 34d45ca..83aff4c 100644
--- a/src/api/model/system.ts
+++ b/src/api/model/system.ts
@@ -85,6 +85,9 @@ export default {
option: async function (data = {}) {
return await http.get("post/option", data);
},
+ import: async function (data = {}) {
+ return await http.get("post/import", data);
+ },
},
upload: async function (data, config = {}) {
return await http.post("upload", data, config);
diff --git a/src/api/model/tools.ts b/src/api/model/tools.ts
index ab29d79..28710c2 100644
--- a/src/api/model/tools.ts
+++ b/src/api/model/tools.ts
@@ -34,5 +34,10 @@ export default {
build: async function (data = {}) {
return await http.post("form/build", data);
},
+ },
+ file: {
+ export: async function (data = {}) {
+ return await http.get("file/export", data);
+ },
}
}
diff --git a/src/components/piExport/index.vue b/src/components/piExport/index.vue
new file mode 100644
index 0000000..ea6c741
--- /dev/null
+++ b/src/components/piExport/index.vue
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
diff --git a/src/components/piImport/index.vue b/src/components/piImport/index.vue
new file mode 100644
index 0000000..522d1b8
--- /dev/null
+++ b/src/components/piImport/index.vue
@@ -0,0 +1,136 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 将文件拖到此处或 点击选择文件上传
+
+
+
+
+
{{ tip }}
+
请上传小于或等于 {{ maxSize }}M 的 {{ accept }} 格式文件
+
+
+ 下载导入模板
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/style/fix.scss b/src/style/fix.scss
index 0896eba..26b9a85 100644
--- a/src/style/fix.scss
+++ b/src/style/fix.scss
@@ -29,9 +29,10 @@
.el-aside {border-right: 1px solid var(--el-border-color-light);}
.el-container + .el-aside {border-right: 0;border-left: 1px solid var(--el-border-color-light);}
.el-header {background: #fff;border-bottom: 1px solid var(--el-border-color-light);padding:13px 15px;display: flex;justify-content: space-between;align-items: center;}
-.el-header .left-panel {display: flex;align-items: center;}
+.el-header .left-panel {display: flex;align-items: center;gap: 12px}
+.el-header .left-panel > .el-button+.el-button {margin-left: auto}
.el-header .right-panel {display: flex;align-items: center;}
-.el-header .right-panel > * + * {margin-left:10px;}
+.el-header .right-panel > * + * {margin-left:12px;}
.el-footer {background: #fff;border-top: 1px solid var(--el-border-color-light);padding:13px 15px;height: 51px;}
.el-main {padding:15px;}
.el-main.nopadding {padding:0;background: #fff;}
diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue
index 6e3bb1b..d560415 100644
--- a/src/views/system/post/index.vue
+++ b/src/views/system/post/index.vue
@@ -4,6 +4,8 @@
+
+
@@ -44,7 +46,9 @@