Browse Source

添加排序功能

master
曲树通 6 years ago
parent
commit
abe57dcea2
  1. 47
      src/views/modules/analysis/user/gridopening.vue
  2. 42
      src/views/modules/analysis/user/party.vue
  3. 36
      src/views/modules/analysis/user/register.vue

47
src/views/modules/analysis/user/gridopening.vue

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

42
src/views/modules/analysis/user/party.vue

@ -21,14 +21,14 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"> end-placeholder="结束日期">
</el-date-picker> &nbsp; &nbsp; </el-date-picker> &nbsp; &nbsp;
<el-form-item label="类别"> <el-form-item label="年龄排序">
<el-select v-model="dataForm.category" <el-select v-model="dataForm.category"
clearable clearable
placeholder="所属类别"> placeholder="年龄排序">
<el-option v-for="item in categorys" <el-option v-for="item in categorys"
:key="item.id" :key="item.value"
:label="item.name" :label="item.label"
:value="item.id"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -149,7 +149,21 @@ export default {
streetList: [], streetList: [],
communityList: [], communityList: [],
gridList: [], gridList: [],
categorys: [], categorys: [
{
value: '0',
label: '超过50岁最多人数'
}, {
value: '1',
label: '50岁以下最多人数'
},{
value: '2',
label: '超过50岁最少人数'
}, {
value: '3',
label: '50岁以下最少人数'
}
],
onLine: { onLine: {
id: '', id: '',
onLineState: '' onLineState: ''
@ -248,14 +262,14 @@ export default {
this.dataForm.startTime = this.time[0] this.dataForm.startTime = this.time[0]
this.dataForm.endTime = this.time[1] this.dataForm.endTime = this.time[1]
}, },
getListCategory () { // getListCategory () {
this.$http.get(`/news/newscategory/category/`).then(({ data: res }) => { // this.$http.get(`/news/newscategory/category/`).then(({ data: res }) => {
if (res.code !== 0) { // if (res.code !== 0) {
return this.$message.error(res.msg) // return this.$message.error(res.msg)
} // }
this.categorys = res.data // this.categorys = res.data
}).catch(() => { }) // }).catch(() => { })
}, // },
modifyOnLine (row) { modifyOnLine (row) {
this.$confirm(this.$t('prompt.info', { 'handle': '下线' }), this.$t('下线'), { this.$confirm(this.$t('prompt.info', { 'handle': '下线' }), this.$t('下线'), {
confirmButtonText: this.$t('confirm'), confirmButtonText: this.$t('confirm'),

36
src/views/modules/analysis/user/register.vue

@ -26,9 +26,9 @@
clearable clearable
placeholder="所属类别"> placeholder="所属类别">
<el-option v-for="item in categorys" <el-option v-for="item in categorys"
:key="item.id" :key="item.value"
:label="item.name" :label="item.label"
:value="item.id"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -164,7 +164,19 @@ export default {
streetList: [], streetList: [],
communityList: [], communityList: [],
gridList: [], gridList: [],
categorys: [], categorys: [{
value: '0',
label: '超过50岁最多人数'
}, {
value: '1',
label: '50岁以下最多人数'
},{
value: '2',
label: '超过50岁最少人数'
}, {
value: '3',
label: '50岁以下最少人数'
}],
onLine: { onLine: {
id: '', id: '',
onLineState: '' onLineState: ''
@ -263,14 +275,14 @@ export default {
this.dataForm.startTime = this.time[0] this.dataForm.startTime = this.time[0]
this.dataForm.endTime = this.time[1] this.dataForm.endTime = this.time[1]
}, },
getListCategory () { // getListCategory () {
this.$http.get(`/news/newscategory/category/`).then(({ data: res }) => { // this.$http.get(`/news/newscategory/category/`).then(({ data: res }) => {
if (res.code !== 0) { // if (res.code !== 0) {
return this.$message.error(res.msg) // return this.$message.error(res.msg)
} // }
this.categorys = res.data // this.categorys = res.data
}).catch(() => { }) // }).catch(() => { })
}, // },
modifyOnLine (row) { modifyOnLine (row) {
this.$confirm(this.$t('prompt.info', { 'handle': '下线' }), this.$t('下线'), { this.$confirm(this.$t('prompt.info', { 'handle': '下线' }), this.$t('下线'), {
confirmButtonText: this.$t('confirm'), confirmButtonText: this.$t('confirm'),

Loading…
Cancel
Save