From 4cda3f7df2655bd07cb9d503e36ff0f239d967b9 Mon Sep 17 00:00:00 2001
From: guqing <38999863+DarrenGu@users.noreply.github.com>
Date: Wed, 26 Jun 2019 22:59:23 +0800
Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E7=B1=BB=E5=9E=8B=E5=88=A4?=
=?UTF-8?q?=E6=96=AD=E9=9D=9E=E5=9B=BE=E7=89=87=E4=B8=8D=E9=A2=84=E8=A7=88?=
=?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=A7=86=E9=A2=91=E9=A2=84=E8=A7=88?=
=?UTF-8?q?=20(#25)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* 补充了日志九宫格图片上传功能
* 完善日志图片功能
* 增加对文件类型的判断,不是图片则不支持预览
* 增加附加视频预览功能,并对不支持预览的缩略图做不支持处理
* 修复eslint
---
package.json | 5 +-
src/components/Upload/UploadPhoto.vue | 139 +++++++++++
src/views/attachment/AttachmentList.vue | 29 ++-
.../components/AttachmentDetailDrawer.vue | 95 ++++++-
src/views/dashboard/Dashboard.vue | 55 ++++-
src/views/sheet/internal/JournalList.vue | 231 ++++++++++--------
6 files changed, 446 insertions(+), 108 deletions(-)
create mode 100644 src/components/Upload/UploadPhoto.vue
diff --git a/package.json b/package.json
index 1689866e..18eb587f 100644
--- a/package.json
+++ b/package.json
@@ -21,12 +21,13 @@
"vue": "^2.6.10",
"vue-clipboard2": "^0.3.0",
"vue-codemirror-lite": "^1.0.4",
+ "vue-count-to": "^1.0.13",
"vue-cropper": "0.4.9",
"vue-ls": "^3.2.1",
"vue-router": "^3.0.6",
+ "vue-video-player": "^5.0.2",
"vuejs-logger": "^1.5.3",
- "vuex": "^3.1.1",
- "vue-count-to": "^1.0.13"
+ "vuex": "^3.1.1"
},
"devDependencies": {
"@babel/polyfill": "^7.4.4",
diff --git a/src/components/Upload/UploadPhoto.vue b/src/components/Upload/UploadPhoto.vue
new file mode 100644
index 00000000..86bec4ed
--- /dev/null
+++ b/src/components/Upload/UploadPhoto.vue
@@ -0,0 +1,139 @@
+
+
{{ journal.content }}
{{ journal.createTime | moment }}