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="开始日期"
end-placeholder="结束日期">
</el-date-picker> &nbsp; &nbsp;
<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'),

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

@ -21,14 +21,14 @@
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker> &nbsp; &nbsp;
<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>
@ -149,7 +149,21 @@ export default {
streetList: [],
communityList: [],
gridList: [],
categorys: [],
categorys: [
{
value: '0',
label: '超过50岁最多人数'
}, {
value: '1',
label: '50岁以下最多人数'
},{
value: '2',
label: '超过50岁最少人数'
}, {
value: '3',
label: '50岁以下最少人数'
}
],
onLine: {
id: '',
onLineState: ''
@ -248,14 +262,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'),

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

@ -26,9 +26,9 @@
clearable
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>
@ -164,7 +164,19 @@ export default {
streetList: [],
communityList: [],
gridList: [],
categorys: [],
categorys: [{
value: '0',
label: '超过50岁最多人数'
}, {
value: '1',
label: '50岁以下最多人数'
},{
value: '2',
label: '超过50岁最少人数'
}, {
value: '3',
label: '50岁以下最少人数'
}],
onLine: {
id: '',
onLineState: ''
@ -263,14 +275,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'),

Loading…
Cancel
Save