|
|
|
@ -21,14 +21,14 @@ |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期"> |
|
|
|
</el-date-picker> |
|
|
|
<el-form-item label="类别"> |
|
|
|
<el-form-item label="排序规则"> |
|
|
|
<el-select v-model="dataForm.category" |
|
|
|
clearable |
|
|
|
placeholder="所属类别"> |
|
|
|
placeholder="排序规则"> |
|
|
|
<el-option v-for="item in categorys" |
|
|
|
:key="item.id" |
|
|
|
:label="item.name" |
|
|
|
:value="item.id"> |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
@ -156,18 +156,7 @@ export default { |
|
|
|
exportURL: '/analysis/user/export/grid0pining' |
|
|
|
}, |
|
|
|
dataForm: { |
|
|
|
allDeptName: '', |
|
|
|
communityCount: '', |
|
|
|
communityMemberCount: '', |
|
|
|
communityTopicCount: '', |
|
|
|
eventCount: '', |
|
|
|
ewmCount: '', |
|
|
|
itemCloseCount: '', |
|
|
|
itemCount: '', |
|
|
|
newsCount: '', |
|
|
|
noticeCount: '', |
|
|
|
partyCount: '', |
|
|
|
registerCount: '' |
|
|
|
category: '1' |
|
|
|
}, |
|
|
|
time: '', |
|
|
|
options: [], |
|
|
|
@ -175,7 +164,13 @@ export default { |
|
|
|
streetList: [], |
|
|
|
communityList: [], |
|
|
|
gridList: [], |
|
|
|
categorys: [], |
|
|
|
categorys: [{ |
|
|
|
value: '0', |
|
|
|
label: '未开通网格' |
|
|
|
}, { |
|
|
|
value: '1', |
|
|
|
label: '已开通网格' |
|
|
|
}], |
|
|
|
onLine: { |
|
|
|
id: '', |
|
|
|
onLineState: '' |
|
|
|
@ -274,14 +269,14 @@ export default { |
|
|
|
this.dataForm.startTime = this.time[0] |
|
|
|
this.dataForm.endTime = this.time[1] |
|
|
|
}, |
|
|
|
getListCategory () { |
|
|
|
this.$http.get(`/news/newscategory/category/`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.categorys = res.data |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
// getListCategory () { |
|
|
|
// this.$http.get(`/news/newscategory/category/`).then(({ data: res }) => { |
|
|
|
// if (res.code !== 0) { |
|
|
|
// return this.$message.error(res.msg) |
|
|
|
// } |
|
|
|
// this.categorys = res.data |
|
|
|
// }).catch(() => { }) |
|
|
|
// }, |
|
|
|
modifyOnLine (row) { |
|
|
|
this.$confirm(this.$t('prompt.info', { 'handle': '下线' }), this.$t('下线'), { |
|
|
|
confirmButtonText: this.$t('confirm'), |
|
|
|
|