From 7f2e4ed3f982980be1c43bbb0c3d04ad7bb869aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=9D=B0?= Date: Fri, 28 Dec 2018 18:11:30 +0800 Subject: [PATCH] =?UTF-8?q?v1.2=20=E7=89=88=E6=9C=AC=E5=8F=91=E5=B8=83,?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=8C=E6=AD=A5=E5=90=8E=E7=AB=AFv1.2?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +- src/api/email.js | 24 ++++ src/api/picture.js | 16 +++ src/components/IconSelect/index.vue | 6 +- src/icons/svg/chain.svg | 1 + src/icons/svg/email.svg | 1 + src/icons/svg/fwb.svg | 1 + src/icons/svg/github.svg | 1 + src/icons/svg/image.svg | 1 + src/icons/svg/tools.svg | 1 + src/store/getters.js | 4 +- src/store/index.js | 2 + src/store/modules/api.js | 9 ++ src/styles/description.scss | 18 +++ src/utils/request.js | 15 +- src/utils/validate.js | 10 ++ src/views/components/Editor.vue | 58 ++++++++ src/views/layout/components/Sidebar/index.vue | 2 +- src/views/monitor/log/msg.vue | 9 +- src/views/monitor/redis/index.vue | 2 +- src/views/monitor/redis/module/add.vue | 9 +- src/views/monitor/redis/module/edit.vue | 9 +- src/views/system/menu/index.vue | 6 +- src/views/system/menu/module/add.vue | 25 ++-- src/views/system/menu/module/edit.vue | 27 ++-- src/views/system/permission/index.vue | 2 +- src/views/system/permission/module/add.vue | 15 +- src/views/system/permission/module/edit.vue | 15 +- src/views/system/role/index.vue | 2 +- src/views/system/role/module/add.vue | 9 +- src/views/system/role/module/edit.vue | 9 +- src/views/system/user/index.vue | 2 +- src/views/system/user/module/add.vue | 9 +- src/views/system/user/module/edit.vue | 9 +- src/views/tools/email/index.vue | 35 +++++ src/views/tools/email/module/config.vue | 89 ++++++++++++ src/views/tools/email/module/description.vue | 40 ++++++ src/views/tools/email/module/send.vue | 131 ++++++++++++++++++ src/views/tools/picture/index.vue | 104 ++++++++++++++ src/views/tools/picture/module/add.vue | 92 ++++++++++++ src/views/tools/picture/module/search.vue | 30 ++++ 41 files changed, 797 insertions(+), 58 deletions(-) create mode 100644 src/api/email.js create mode 100644 src/api/picture.js create mode 100644 src/icons/svg/chain.svg create mode 100644 src/icons/svg/email.svg create mode 100644 src/icons/svg/fwb.svg create mode 100644 src/icons/svg/github.svg create mode 100644 src/icons/svg/image.svg create mode 100644 src/icons/svg/tools.svg create mode 100644 src/store/modules/api.js create mode 100644 src/styles/description.scss create mode 100644 src/views/components/Editor.vue create mode 100644 src/views/tools/email/index.vue create mode 100644 src/views/tools/email/module/config.vue create mode 100644 src/views/tools/email/module/description.vue create mode 100644 src/views/tools/email/module/send.vue create mode 100644 src/views/tools/picture/index.vue create mode 100644 src/views/tools/picture/module/add.vue create mode 100644 src/views/tools/picture/module/search.vue diff --git a/package.json b/package.json index e99329b..4bbee2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eladmin-qt", - "version": "1.1.0", + "version": "1.2.0", "license": "Apache License 2.0", "description": "eladmin 前端代码", "author": "jie ", @@ -35,7 +35,8 @@ "@riophae/vue-treeselect": "0.0.37", "file-saver": "1.3.8", "sockjs-client": "1.3.0", - "stompjs": "2.3.3" + "stompjs": "2.3.3", + "wangeditor": ">=3.0.0" }, "devDependencies": { "autoprefixer": "8.5.0", diff --git a/src/api/email.js b/src/api/email.js new file mode 100644 index 0000000..af030cb --- /dev/null +++ b/src/api/email.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +export function get() { + return request({ + url: 'api/email', + method: 'get' + }) +} + +export function update(data) { + return request({ + url: 'api/email', + data, + method: 'put' + }) +} + +export function send(data) { + return request({ + url: 'api/email', + data, + method: 'post' + }) +} diff --git a/src/api/picture.js b/src/api/picture.js new file mode 100644 index 0000000..c2d5ea2 --- /dev/null +++ b/src/api/picture.js @@ -0,0 +1,16 @@ +import request from '@/utils/request' + +export function uoload(data) { + return request({ + url: 'api/pictures', + method: 'post', + data + }) +} + +export function del(id) { + return request({ + url: 'api/pictures/' + id, + method: 'delete' + }) +} diff --git a/src/components/IconSelect/index.vue b/src/components/IconSelect/index.vue index d2f5388..719b3bc 100644 --- a/src/components/IconSelect/index.vue +++ b/src/components/IconSelect/index.vue @@ -14,10 +14,6 @@ + + diff --git a/src/views/layout/components/Sidebar/index.vue b/src/views/layout/components/Sidebar/index.vue index dff85f1..7a7ae74 100644 --- a/src/views/layout/components/Sidebar/index.vue +++ b/src/views/layout/components/Sidebar/index.vue @@ -1,5 +1,5 @@