From caf1587264d5a0846ae57368e042197d1ca15b52 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 23 Aug 2022 16:05:03 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/header/index.vue | 92 ++++++++----------- src/layouts/home/index.vue | 5 +- src/layouts/navbar/index.vue | 80 ++++++++-------- src/pages/account/login/index.vue | 51 +++++------ src/pages/annex/list/index.vue | 59 +++++++----- src/pages/article/add/index.vue | 120 ++++++++++++------------ src/pages/article/list/index.vue | 74 +++++++++++++-- src/pages/column/add/index.vue | 39 ++++++-- src/pages/column/list/index.vue | 38 +++++--- src/pages/page/list/index.vue | 41 +++++++-- src/pages/role/list/index.vue | 79 ++++++++-------- src/pages/setting/list/info.vue | 8 +- src/pages/site/list/index.vue | 13 ++- src/pages/user/list/index.vue | 142 ++++++++++------------------- src/pages/userGroup/list/index.vue | 16 +++- src/router/modules/setting.js | 12 +-- src/router/permission.js | 20 ++-- src/setting.js | 47 +++------- src/store/modules/content.js | 6 +- src/styles/common.scss | 43 +++++---- 20 files changed, 535 insertions(+), 450 deletions(-) diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index f17900b..de3cc87 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -2,22 +2,23 @@
-
-
- - 当前站点首页 -
- - - 切换站点 - - - {{ site.name }} - - +
@@ -35,14 +36,14 @@ @@ -275,6 +277,7 @@ export default { display: flex; height: 100%; background-color: #fff; + overflow: hidden; .col-wrap { width: 64px; background-color: #001529; @@ -296,6 +299,9 @@ export default { color: #333; line-height: 32px; } + .col-menu { + width: 192px; + } /deep/.el-submenu__title { padding-left: 14px !important; } diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 12b0450..4c27ba2 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -62,36 +62,35 @@ \ No newline at end of file diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue index bc4c3b8..eae0031 100644 --- a/src/pages/article/add/index.vue +++ b/src/pages/article/add/index.vue @@ -60,58 +60,54 @@ clearable > -
- - - -
- -

点击上传

-
-
-
- - - -
- -

点击上传

-
-
-
-
+ + + +
+ +

点击上传

+
+
+
+ + + +
+ +

点击上传

+
+
+
@@ -227,7 +223,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap' export default { data() { return { - siteId: this.$store.state.content.siteId, + siteId: this.$store.state.content.site.id, headers: {}, nameRepeat: false, types: ColumnConst.types, @@ -241,7 +237,7 @@ export default { }, links: [], form: { - siteId: this.$store.state.content.siteId, + siteId: this.$store.state.content.site.id, id: this.$route.query.id || '', founderId: +this.$store.state.user.userId, editorId: +this.$store.state.user.userId, @@ -263,21 +259,22 @@ export default { }, rules: { title: [ - { required: true } + { required: true, message: '请输入标题', trigger: 'blur' } ], columnId: [ - { required: true } + { required: true, message: '请选择所属栏目', trigger: 'change' } ], releaseTime: [ - { required: true } + { required: true, message: '请选择发布日期', trigger: 'change' } ], mainBody: [ - { required: true } + { required: true, message: '请输入正文', trigger: 'blur' } ], }, editorConfig: { UEDITOR_HOME_URL: '/UEditor/', - serverUrl: 'http://192.168.31.137:10000/iasf/sysFiles/upload' // 上传接口 + initialFrameHeight: 200, + serverUrl: 'http://192.168.31.137:10000/iasf/sysFiles/upload/' // 上传接口 }, submiting: false, // 新增编辑防抖标识 updateTime: 0 @@ -395,7 +392,7 @@ export default { this.form.columnBanner = '' }, uploadSuccess(res) { - this.form.columnBanner = res.data.url + this.form.titleImg = res.data.url }, uploadSuccessBanner(res) { this.form.bannerImg = res.data.url @@ -413,7 +410,7 @@ export default { const { form } = this if (!form.title) return util.errorMsg('请填写标题') if (this.nameRepeat) return util.errorMsg('该标题已重复!') - if (!form.releaseTime) return util.errorMsg('请选择发布日期') + if (!form.releaseTime && isRelease) return util.errorMsg('请选择发布日期') if (typeof form.fatherId === 'object') form.fatherId = form.fatherId[form.fatherId.length - 1] if (form.articleTemplate === 3 && form.connectionType !== 2) { const { links } = this @@ -421,7 +418,6 @@ export default { if (!links.length && form.connectionType === 3) return util.errorMsg('请选择栏目') form.linkAddress = links.join() } - console.log(44, this.links) form.isRelease = isRelease this.submiting = true if (form.id) { diff --git a/src/pages/article/list/index.vue b/src/pages/article/list/index.vue index 06ee821..4a181a8 100644 --- a/src/pages/article/list/index.vue +++ b/src/pages/article/list/index.vue @@ -1,16 +1,23 @@