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 @@