diff --git a/package.json b/package.json
index efbac05..26d6448 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"@vue-office/docx": "^1.6.3",
"@vue-office/excel": "^1.7.14",
"@vue-office/pdf": "^2.0.10",
+ "@vue-office/pptx": "^1.0.1",
"@vue/composition-api": "^1.7.2",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^1.0.2",
@@ -30,6 +31,7 @@
"element-ui": "2.15.13",
"file-saver": "^2.0.5",
"js-cookie": "2.2.0",
+ "jszip": "^3.10.1",
"less": "^3.13.1",
"less-loader": "^5.0.0",
"moment": "^2.29.2",
diff --git a/src/components/viewFile/viewDownload.vue b/src/components/viewFile/viewDownload.vue
new file mode 100644
index 0000000..dafb9b8
--- /dev/null
+++ b/src/components/viewFile/viewDownload.vue
@@ -0,0 +1,314 @@
+
+
+
+
+
+ {{title}}
+
+
+
+
+
+ 全选
+
+ {{ btnloading ? '下载中...' : '批量下载' }}
+
+
+
+
+
+
+
+
+
+
+
+ {return changeCheck(e,item)}"
+ v-model="item.checked">{{item.original_name}}
+
+
+
+
+
+
+
+
+ {return changeCheck(e,item)}"
+ v-model="item.checked">{{item.original_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/viewFile/viewFile.vue b/src/components/viewFile/viewFile.vue
index a0f31fa..0fa663c 100644
--- a/src/components/viewFile/viewFile.vue
+++ b/src/components/viewFile/viewFile.vue
@@ -13,6 +13,7 @@
+
@@ -39,13 +40,15 @@
-
-
diff --git a/src/views/record/components/showRecord copy.vue b/src/views/record/components/showRecord copy.vue
new file mode 100644
index 0000000..6bcf270
--- /dev/null
+++ b/src/views/record/components/showRecord copy.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
+
{{form.title}}
+
+
+
+
+
发布时间:{{form.date}}
+
所属目录:
+ {{form.catalog_name}}
+
+
所属区域:
+
+
+ {{item.name}}
+
+
+
+
标签:
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/record/components/showRecord.vue b/src/views/record/components/showRecord.vue
index 6bcf270..f25a503 100644
--- a/src/views/record/components/showRecord.vue
+++ b/src/views/record/components/showRecord.vue
@@ -27,14 +27,18 @@
-
-
+
+
+
+ 共有{{form.files_details.length}}条附件,点击查看
+
+
@@ -45,7 +49,8 @@
-
+
+
@@ -53,17 +58,19 @@
import {
show
} from "@/api/system/baseForm.js"
- import viewFile from '@/components/viewFile/viewFile.vue'
+ import viewFile from '@/components/viewFile/viewFile.vue'
+ import viewDownload from '@/components/viewFile/viewDownload.vue'
export default {
components: {
- viewFile
+ viewFile,
+ viewDownload
},
data() {
return {
isShow: false,
id: '',
table_name: 'records',
- form: {}
+ form: {},
}
},
created() {
@@ -96,7 +103,12 @@
}
}
this.$refs.viewFile.diaShow = true
- },
+ },
+ // 打开 文件列表夹
+ toViewDownLoadFile(files){
+ this.$refs.viewDownload.files = files
+ this.$refs.viewDownload.isShow = true
+ }
},
watch: {
isShow(newVal) {
diff --git a/vue.config.js b/vue.config.js
index 5201527..c82404e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin',
- outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin',
+ outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin_test',
assetsDir: 'static',
css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项