Browse Source

【安宁pc端 group 模块 】-【grid换dept】魏凯 2020-09-24

migration
weikai 5 years ago
parent
commit
edd07ae7e6
  1. 14
      src/views/modules/group/gridpartymembergroup.vue
  2. 6
      src/views/modules/group/group.vue
  3. 10
      src/views/modules/group/leaderboard.vue
  4. 10
      src/views/modules/group/topic-list.vue

14
src/views/modules/group/gridpartymembergroup.vue

@ -3,7 +3,7 @@
<div class="mod-news__group}"> <div class="mod-news__group}">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataListSearch()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataListSearch()">
<el-form-item label="网格"> <el-form-item label="网格">
<el-input v-model="dataForm.grid" @keyup.native="btKeyUpGrid" placeholder="请输入网格名称" clearable></el-input> <el-input v-model="dataForm.dept" @keyup.native="btKeyUpGrid" placeholder="请输入网格名称" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="success" @click="getDataListSearch()">{{ $t('query') }}</el-button> <el-button type="success" @click="getDataListSearch()">{{ $t('query') }}</el-button>
@ -15,7 +15,7 @@
<el-table-column prop="district" label="市区" header-align="center" align="center"></el-table-column> <el-table-column prop="district" label="市区" header-align="center" align="center"></el-table-column>
<el-table-column prop="street" label="街道" header-align="center" align="center"></el-table-column> <el-table-column prop="street" label="街道" header-align="center" align="center"></el-table-column>
<el-table-column prop="community" label="社区" header-align="center" align="center"></el-table-column> <el-table-column prop="community" label="社区" header-align="center" align="center"></el-table-column>
<el-table-column prop="grid" label="网格" header-align="center" align="center"></el-table-column> <el-table-column prop="dept" label="网格" header-align="center" align="center"></el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="createParty(scope.row)">生成党员群</el-button> <el-button type="text" size="small" @click="createParty(scope.row)">生成党员群</el-button>
@ -52,8 +52,8 @@ export default {
streetId: '', streetId: '',
community: '', community: '',
communityId: '', communityId: '',
grid: '', dept: '',
gridId: '' deptId: ''
} }
} }
}, },
@ -66,8 +66,8 @@ export default {
streetId: row.streetId, streetId: row.streetId,
community: row.community, community: row.community,
communityId: row.communityId, communityId: row.communityId,
grid: row.grid, dept: row.dept,
gridId: row.gridId deptId: row.deptId
}] }]
this.$http['post']('/group/epdc-app/group/createPartys', postForm).then(({ data: res }) => { this.$http['post']('/group/epdc-app/group/createPartys', postForm).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
@ -84,7 +84,7 @@ export default {
}, },
btKeyUpGrid (e) { btKeyUpGrid (e) {
e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '')
this.dataForm.grid = e.target.value this.dataForm.dept = e.target.value
}, },
createPartys () { createPartys () {
var postForm = this.dataList var postForm = this.dataList

6
src/views/modules/group/group.vue

@ -153,7 +153,7 @@ export default {
id: '', id: '',
streetId: '', streetId: '',
communityId: '', communityId: '',
gridId: '', deptId: '',
state: '0' state: '0'
}, },
postForm: { postForm: {
@ -202,7 +202,7 @@ export default {
if (val.length === 0) { if (val.length === 0) {
this.dataForm.streetId = '' this.dataForm.streetId = ''
this.dataForm.communityId = '' this.dataForm.communityId = ''
this.dataForm.gridId = '' this.dataForm.deptId = ''
} }
if (val.length === 1) { if (val.length === 1) {
this.dataForm.streetId = this.ids[0] this.dataForm.streetId = this.ids[0]
@ -214,7 +214,7 @@ export default {
if (val.length === 3) { if (val.length === 3) {
this.dataForm.streetId = this.ids[0] this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1] this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2] this.dataForm.deptId = this.ids[2]
} }
} }
}, },

10
src/views/modules/group/leaderboard.vue

@ -88,7 +88,7 @@ export default {
id: '', id: '',
streetId: '', streetId: '',
communityId: '', communityId: '',
gridId: '', deptId: '',
startTime: '', startTime: '',
endTime: '' endTime: ''
}, },
@ -133,22 +133,22 @@ export default {
if (val.length === 0) { if (val.length === 0) {
this.dataForm.streetId = '' this.dataForm.streetId = ''
this.dataForm.communityId = '' this.dataForm.communityId = ''
this.dataForm.gridId = '' this.dataForm.deptId = ''
} }
if (val.length === 1) { if (val.length === 1) {
this.dataForm.streetId = this.ids[0] this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = '' this.dataForm.communityId = ''
this.dataForm.gridId = '' this.dataForm.deptId = ''
} }
if (val.length === 2) { if (val.length === 2) {
this.dataForm.streetId = this.ids[0] this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1] this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = '' this.dataForm.deptId = ''
} }
if (val.length === 3) { if (val.length === 3) {
this.dataForm.streetId = this.ids[0] this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1] this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2] this.dataForm.deptId = this.ids[2]
} }
} }
}, },

10
src/views/modules/group/topic-list.vue

@ -108,7 +108,7 @@ export default {
id: '', id: '',
streetId: '', streetId: '',
communityId: '', communityId: '',
gridId: '', deptId: '',
startTime: '', startTime: '',
endTime: '', endTime: '',
groupId: '', groupId: '',
@ -158,22 +158,22 @@ export default {
if (val.length === 0) { if (val.length === 0) {
this.dataForm.streetId = '' this.dataForm.streetId = ''
this.dataForm.communityId = '' this.dataForm.communityId = ''
this.dataForm.gridId = '' this.dataForm.deptId = ''
} }
if (val.length === 1) { if (val.length === 1) {
this.dataForm.streetId = this.ids[0] this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = '' this.dataForm.communityId = ''
this.dataForm.gridId = '' this.dataForm.deptId = ''
} }
if (val.length === 2) { if (val.length === 2) {
this.dataForm.streetId = this.ids[0] this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1] this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = '' this.dataForm.deptId = ''
} }
if (val.length === 3) { if (val.length === 3) {
this.dataForm.streetId = this.ids[0] this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1] this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2] this.dataForm.deptId = this.ids[2]
} }
} }
}, },

Loading…
Cancel
Save