Browse Source

党群议事后台列表组织机构查询条件调整

master
王金鹏 6 years ago
parent
commit
351241938f
  1. 98
      src/views/modules/events/issue-change-list.vue
  2. 98
      src/views/modules/events/issue-close-list.vue
  3. 98
      src/views/modules/events/issue-process-list.vue
  4. 98
      src/views/modules/events/issue-reject-list.vue
  5. 98
      src/views/modules/events/issue-review-list.vue
  6. 98
      src/views/modules/events/item-close-list.vue
  7. 98
      src/views/modules/events/item-deal-list.vue
  8. 98
      src/views/modules/events/item-end-list.vue
  9. 98
      src/views/modules/group/group.vue
  10. 90
      src/views/modules/group/leaderboard.vue
  11. 92
      src/views/modules/group/topic-list.vue

98
src/views/modules/events/issue-change-list.vue

@ -5,39 +5,9 @@
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
@keyup.enter.native="getDataList()"> @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -158,9 +128,8 @@ export default {
gridId: '', gridId: '',
state: '4' state: '4'
}, },
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
let beginDateVal = this.dataForm.startTime let beginDateVal = this.dataForm.startTime
@ -183,51 +152,36 @@ export default {
Detail Detail
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
detailAction (id) { detailAction (id) {
this.$parent.selectComponent = 'IssueCloseDetailView' this.$parent.selectComponent = 'IssueCloseDetailView'
this.$router.push({ path: '/events-issue-change', query: { id: id } }) this.$router.push({ path: '/events-issue-change', query: { id: id } })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

98
src/views/modules/events/issue-close-list.vue

@ -5,39 +5,9 @@
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
@keyup.enter.native="getDataList()"> @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -159,9 +129,8 @@ export default {
gridId: '', gridId: '',
state: '2' state: '2'
}, },
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
let beginDateVal = this.dataForm.startTime let beginDateVal = this.dataForm.startTime
@ -184,51 +153,36 @@ export default {
Detail Detail
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
detailAction (id) { detailAction (id) {
this.$parent.selectComponent = 'IssueCloseDetailView' this.$parent.selectComponent = 'IssueCloseDetailView'
this.$router.push({ path: '/events-issue-close', query: { id: id } }) this.$router.push({ path: '/events-issue-close', query: { id: id } })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

98
src/views/modules/events/issue-process-list.vue

@ -5,39 +5,9 @@
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
@keyup.enter.native="getDataList()"> @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -168,9 +138,8 @@ export default {
gridId: '', gridId: '',
state: '0' state: '0'
}, },
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
let beginDateVal = this.dataForm.startTime let beginDateVal = this.dataForm.startTime
@ -194,7 +163,23 @@ export default {
Detail Detail
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
detailAction (id) { detailAction (id) {
@ -205,44 +190,13 @@ export default {
this.$parent.selectComponent = 'IssueProcessDetailView' this.$parent.selectComponent = 'IssueProcessDetailView'
this.$router.push({ path: '/events-issue-process', query: { id: id } }) this.$router.push({ path: '/events-issue-process', query: { id: id } })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

98
src/views/modules/events/issue-reject-list.vue

@ -5,39 +5,9 @@
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
@keyup.enter.native="getDataList()"> @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -138,9 +108,8 @@ export default {
communityId: '', communityId: '',
gridId: '' gridId: ''
}, },
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
let beginDateVal = this.dataForm.startTime let beginDateVal = this.dataForm.startTime
@ -163,51 +132,36 @@ export default {
RejectDetail RejectDetail
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
detailAction (id) { detailAction (id) {
this.$parent.selectComponent = 'IssueRejectDetailView' this.$parent.selectComponent = 'IssueRejectDetailView'
this.$router.push({ path: '/events-issue-reject', query: { id: id } }) this.$router.push({ path: '/events-issue-reject', query: { id: id } })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

98
src/views/modules/events/issue-review-list.vue

@ -5,39 +5,9 @@
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
@keyup.enter.native="getDataList()"> @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId"
clearable placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -138,9 +108,8 @@ export default {
communityId: '', communityId: '',
gridId: '' gridId: ''
}, },
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
let beginDateVal = this.dataForm.startTime let beginDateVal = this.dataForm.startTime
@ -163,51 +132,36 @@ export default {
ReviewDetail ReviewDetail
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
detailAction (id) { detailAction (id) {
this.$parent.selectComponent = 'IssueReviewDetailView' this.$parent.selectComponent = 'IssueReviewDetailView'
this.$router.push({ path: '/events-issue-review', query: { id: id } }) this.$router.push({ path: '/events-issue-review', query: { id: id } })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

98
src/views/modules/events/item-close-list.vue

@ -5,39 +5,9 @@
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
@keyup.enter.native="getDataList()"> @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -158,10 +128,9 @@ export default {
communityId: '', communityId: '',
gridId: '' gridId: ''
}, },
ids: [],
options: [],
detailVisible: false, detailVisible: false,
streetOptions: [],
communityOptions: [],
gridOptions: [],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
let beginDateVal = this.dataForm.startTime let beginDateVal = this.dataForm.startTime
@ -184,51 +153,36 @@ export default {
Detail Detail
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
detailAction (id) { detailAction (id) {
this.$parent.selectComponent = 'ItemCloseDetailView' this.$parent.selectComponent = 'ItemCloseDetailView'
this.$router.push({ path: '/events-item-close', query: { id: id } }) this.$router.push({ path: '/events-item-close', query: { id: id } })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

98
src/views/modules/events/item-deal-list.vue

@ -5,39 +5,9 @@
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
@keyup.enter.native="getDataList()"> @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -160,9 +130,8 @@ export default {
communityId: '', communityId: '',
gridId: '' gridId: ''
}, },
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
let beginDateVal = this.dataForm.startTime let beginDateVal = this.dataForm.startTime
@ -185,51 +154,36 @@ export default {
Detail Detail
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
dealAction (id) { dealAction (id) {
this.$parent.selectComponent = 'ItemDealDetailView' this.$parent.selectComponent = 'ItemDealDetailView'
this.$router.push({ path: '/events-item-deal', query: { id: id } }) this.$router.push({ path: '/events-item-deal', query: { id: id } })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

98
src/views/modules/events/item-end-list.vue

@ -5,39 +5,9 @@
<el-form :inline="true" <el-form :inline="true"
:model="dataForm" :model="dataForm"
@keyup.enter.native="getDataList()"> @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -160,9 +130,8 @@ export default {
gridId: '' gridId: ''
}, },
detailVisible: false, detailVisible: false,
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
let beginDateVal = this.dataForm.startTime let beginDateVal = this.dataForm.startTime
@ -185,51 +154,36 @@ export default {
Detail Detail
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
detailAction1 (id) { detailAction1 (id) {
this.$parent.selectComponent = 'ItemCloseDetailView' this.$parent.selectComponent = 'ItemCloseDetailView'
this.$router.push({ path: '/events-item-end', query: { id: id } }) this.$router.push({ path: '/events-item-end', query: { id: id } })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

98
src/views/modules/group/group.vue

@ -2,39 +2,9 @@
<el-card shadow="never" class="aui-card--fill"> <el-card shadow="never" class="aui-card--fill">
<div class="mod-news__group}"> <div class="mod-news__group}">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
placeholder="请选择" </el-cascader>
clearable
@change="getCommunityList">
<el-option v-for="item in streetOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="状态"> <el-form-item label="状态">
<el-select v-model="dataForm.state" clearable <el-select v-model="dataForm.state" clearable
@ -108,9 +78,8 @@ export default {
id: '', id: '',
state: 0 state: 0
}, },
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
stateOptions: [{ stateOptions: [{
id: '0', id: '0',
name: '待审核' name: '待审核'
@ -134,7 +103,23 @@ export default {
GroupApprove GroupApprove
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
},
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
}, },
methods: { methods: {
formatState: function (row, column) { formatState: function (row, column) {
@ -219,44 +204,13 @@ export default {
this.$refs.groupApprove.init() this.$refs.groupApprove.init()
}) })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.streetOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.gridOptions = res.data
}).catch(() => { })
} }
} }
} }

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

@ -2,33 +2,9 @@
<el-card shadow="never" class="aui-card--fill"> <el-card shadow="never" class="aui-card--fill">
<div class="mod-news__topic}"> <div class="mod-news__topic}">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" placeholder="请选择" clearable @change="getCommunityList"> <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
<el-option v-for="item in streetOptions" :key="item.id" :label="item.name" :value="item.id"> </el-cascader>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -128,9 +104,8 @@ export default {
} }
}, },
orderType: '0', orderType: '0',
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
orderTypeOptions: [{ orderTypeOptions: [{
id: '0', id: '0',
name: '按活跃度排名' name: '按活跃度排名'
@ -148,53 +123,36 @@ export default {
this.mixinViewModuleOptions.getDataListURL = '/group/group/member' this.mixinViewModuleOptions.getDataListURL = '/group/group/member'
} }
this.getDataList() this.getDataList()
},
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
} }
}, },
components: { components: {
Close Close
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
}, },
methods: { methods: {
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

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

@ -2,33 +2,9 @@
<el-card shadow="never" class="aui-card--fill"> <el-card shadow="never" class="aui-card--fill">
<div class="mod-news__topic}"> <div class="mod-news__topic}">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item label="街道"> <el-form-item label="所属机构">
<el-select v-model="dataForm.streetId" placeholder="请选择" clearable @change="getCommunityList"> <el-cascader v-model="ids" :options="options" :props="{ checkStrictly: true }" clearable>
<el-option v-for="item in streetOptions" :key="item.id" :label="item.name" :value="item.id"> </el-cascader>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="社区">
<el-select v-model="dataForm.communityId"
placeholder="请选择"
clearable
@change="getGridList">
<el-option v-for="item in communityOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="网格">
<el-select v-model="dataForm.gridId" clearable
placeholder="请选择">
<el-option v-for="item in gridOptions"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间" <el-form-item label="时间"
prop="startTime"> prop="startTime">
@ -149,9 +125,8 @@ export default {
} }
} }
}, },
streetOptions: [], ids: [],
communityOptions: [], options: [],
gridOptions: [],
groupOptions: [], groupOptions: [],
orderTypeOptions: [{ orderTypeOptions: [{
id: '0', id: '0',
@ -169,9 +144,25 @@ export default {
Close Close
}, },
created: function () { created: function () {
this.getStreetList() this.getOptions()
this.getGroupList() this.getGroupList()
}, },
watch: {
'ids': function (val) {
if (val.length === 1){
this.dataForm.streetId = this.ids[0]
}
if (val.length === 2){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
}
if (val.length === 3){
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
}
}
},
methods: { methods: {
close (id) { close (id) {
this.closeVisible = true this.closeVisible = true
@ -192,44 +183,13 @@ export default {
this.groupOptions = res.data this.groupOptions = res.data
}).catch(() => { }) }).catch(() => { })
}, },
getStreetList () { getOptions () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.streetOptions = res.data
}).catch(() => { })
},
getCommunityList () {
if (this.dataForm.streetId === '') {
this.communityOptions = []
this.gridOptions = []
this.dataForm.communityId = ''
this.dataForm.gridId = ''
return
}
this.dataForm.communityId = ''
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.communityOptions = res.data
}).catch(() => { })
},
getGridList () {
if (this.dataForm.communityId === '') {
this.gridOptions = []
this.dataForm.gridId = ''
return
}
this.dataForm.gridId = ''
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.options = res.data.options
}).catch(() => { }) }).catch(() => {})
} }
} }
} }

Loading…
Cancel
Save