Browse Source

Merge branch 'dev_0814' of http://121.42.41.42:7070/r/esua-epdc-admin into dev_0814

master
王金鹏 6 years ago
parent
commit
f56f90a8e3
  1. 8
      src/views/modules/news/notice-add-or-update.vue
  2. 6
      src/views/modules/news/notice.vue
  3. 2
      src/views/modules/user/user.vue

8
src/views/modules/news/notice-add-or-update.vue

@ -194,9 +194,15 @@ export default {
this.dataForm = res.data this.dataForm = res.data
this.quillEditor.root.innerHTML = res.data.noticeContent this.quillEditor.root.innerHTML = res.data.noticeContent
if (this.dataForm.streetId) { if (this.dataForm.streetId) {
if (this.dataForm.communityId === 0) {
this.dataForm.communityId = this.dataForm.gridId = null
}
this.getDeptInfoList('community', this.dataForm.streetId) this.getDeptInfoList('community', this.dataForm.streetId)
} }
if (this.dataForm.communityId) { if (this.dataForm.communityId) {
if (this.dataForm.gridId === 0) {
this.dataForm.gridId = null
}
this.getDeptInfoList('grid', this.dataForm.communityId) this.getDeptInfoList('grid', this.dataForm.communityId)
} }
}).catch(() => { }) }).catch(() => { })
@ -243,7 +249,7 @@ export default {
let choosenItem = this.streetList.filter(item => item.id === this.dataForm.streetId)[0] let choosenItem = this.streetList.filter(item => item.id === this.dataForm.streetId)[0]
this.dataForm.street = choosenItem.name 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.communityList = this.gridList = []
// //
this.getDeptInfoList('community', this.dataForm.streetId) this.getDeptInfoList('community', this.dataForm.streetId)

6
src/views/modules/news/notice.vue

@ -41,7 +41,7 @@
label="发布通知部门" label="发布通知部门"
header-align="center" header-align="center"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column prop="isPublish" <el-table-column prop="noticeReleaseState"
label="已发布" label="已发布"
header-align="center" header-align="center"
:formatter="showIsPublishFormatter" :formatter="showIsPublishFormatter"
@ -68,7 +68,7 @@
type="primary" type="primary"
size="mini" size="mini"
@click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button> @click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button>
<el-button v-if="$hasPermission('news:notice:publish') && scope.row.isPublish === '0'" <el-button v-if="$hasPermission('news:notice:publish') && scope.row.noticeReleaseState === '0'"
type="primary" type="primary"
size="mini" size="mini"
@click="noticePublishHandle(scope.row.id)">发布</el-button> @click="noticePublishHandle(scope.row.id)">发布</el-button>
@ -135,7 +135,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
showIsPublishFormatter: function (row, column) { showIsPublishFormatter: function (row, column) {
if (row.isPublish === '0') { if (row.noticeReleaseState === '0') {
return '否' return '否'
} }
return '是' return '是'

2
src/views/modules/user/user.vue

@ -418,7 +418,7 @@ export default {
}, },
methods: { methods: {
getStreetList () { 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) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

Loading…
Cancel
Save