From 8c099aece9594ca4c3b8f03ba9ef4deccfee4159 Mon Sep 17 00:00:00 2001 From: yujintao Date: Fri, 6 Sep 2019 14:26:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/news/notice-add-or-update.vue | 6 ++++++ src/views/modules/news/notice.vue | 6 +++--- src/views/modules/user/user.vue | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index e69e524d..a25a60f4 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -194,9 +194,15 @@ export default { this.dataForm = res.data this.quillEditor.root.innerHTML = res.data.noticeContent if (this.dataForm.streetId) { + if (this.dataForm.communityId === 0) { + this.dataForm.communityId = this.dataForm.gridId = null + } this.getDeptInfoList('community', this.dataForm.streetId) } if (this.dataForm.communityId) { + if (this.dataForm.gridId === 0) { + this.dataForm.gridId = null + } this.getDeptInfoList('grid', this.dataForm.communityId) } }).catch(() => { }) diff --git a/src/views/modules/news/notice.vue b/src/views/modules/news/notice.vue index 8725e177..62f8bc3c 100644 --- a/src/views/modules/news/notice.vue +++ b/src/views/modules/news/notice.vue @@ -41,7 +41,7 @@ label="发布通知部门" header-align="center" align="center"> - {{ $t('update') }} - 发布 @@ -135,7 +135,7 @@ export default { }).catch(() => { }) }, showIsPublishFormatter: function (row, column) { - if (row.isPublish === '0') { + if (row.noticeReleaseState === '0') { return '否' } return '是' diff --git a/src/views/modules/user/user.vue b/src/views/modules/user/user.vue index 40fc3bd1..6b43a360 100644 --- a/src/views/modules/user/user.vue +++ b/src/views/modules/user/user.vue @@ -418,7 +418,7 @@ export default { }, methods: { getStreetList () { - this.$http.get(`/sys/dept/sublist/0`).then(({ data: res }) => { + this.$http.get(`/sys/dept/sublist/1169154711480528897`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } From 4e67cd9bc5b2d47c9f03408e84791246996daf2f Mon Sep 17 00:00:00 2001 From: yujintao Date: Fri, 6 Sep 2019 15:40:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/news/notice-add-or-update.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index a25a60f4..befa8967 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -249,7 +249,7 @@ export default { let choosenItem = this.streetList.filter(item => item.id === this.dataForm.streetId)[0] this.dataForm.street = choosenItem.name // 清空社区与网格的变量值 - this.dataForm.communityId = this.dataForm.gridId = this.dataForm.community = this.grid = null + this.dataForm.communityId = this.dataForm.gridId = this.dataForm.community = this.dataForm.grid = null this.communityList = this.gridList = [] // 获取街道下属社区 this.getDeptInfoList('community', this.dataForm.streetId)