Commit 29ad9921 authored by 蒋金城's avatar 蒋金城

业委会增加街道

parent 8d20f0f1
...@@ -14,6 +14,13 @@ ...@@ -14,6 +14,13 @@
<a-input placeholder="请输入查询内容" v-decorator="['hocName_l']" /> <a-input placeholder="请输入查询内容" v-decorator="['hocName_l']" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col span="8" >
<a-form-item label="所属街道" class="formItem" :label-col="{span:10}" :wrapper-col="{span:14}">
<a-select allowClear placeholder="请选择查询内容" v-decorator="['streetId']" >
<a-select-option v-for="(item) in street" :key="item.streetId" :value="item.streetId">{{ item.strName }}</a-select-option>
</a-select>
</a-form-item>
</a-col>
<!-- 动态搜索条件 --> <!-- 动态搜索条件 -->
<template v-if="customKeyEnable"> <template v-if="customKeyEnable">
<a-col span="8" v-for="i in searchList" :key="i.id" > <a-col span="8" v-for="i in searchList" :key="i.id" >
...@@ -102,6 +109,7 @@ export default { ...@@ -102,6 +109,7 @@ export default {
pageSizeOptions: ['10', '20', '50', '100'], pageSizeOptions: ['10', '20', '50', '100'],
}, },
tableData: [], tableData: [],
street: [], // 街道数据
} }
}, },
beforeCreate() { // 页面进来创建form beforeCreate() { // 页面进来创建form
...@@ -120,10 +128,21 @@ export default { ...@@ -120,10 +128,21 @@ export default {
if (this.$route.name == 'indCous' ) { if (this.$route.name == 'indCous' ) {
this.$nextTick(function () { this.$nextTick(function () {
this.getSearchParams() this.getSearchParams()
this.getStreet()
}) })
} }
}, },
methods: { methods: {
getStreet(){ //获取街道下拉
this.$ajax.get({
url: this.$api.GET_STREET_LIST,
params: {
pageSize: 10000
}
}).then(res => {
this.street = this.$com.confirm(res, 'data.content', [])
})
},
handleChangeZdy(i, e){ // 自定义字段 - 搜索条件的 change handleChangeZdy(i, e){ // 自定义字段 - 搜索条件的 change
if (Object.prototype.toString.call(e)== '[object Array]') { if (Object.prototype.toString.call(e)== '[object Array]') {
e2 = e.join(',') e2 = e.join(',')
...@@ -152,6 +171,7 @@ export default { ...@@ -152,6 +171,7 @@ export default {
const searchParams = Object.assign({}, { const searchParams = Object.assign({}, {
'hocCode_l': this.form.getFieldValue('hocCode_l') || '', 'hocCode_l': this.form.getFieldValue('hocCode_l') || '',
'hocName_l': this.form.getFieldValue('hocName_l') || '', 'hocName_l': this.form.getFieldValue('hocName_l') || '',
'streetId': this.form.getFieldValue('streetId')?this.form.getFieldValue('streetId'):'',
'sectType_in': '1', 'sectType_in': '1',
}, obj) }, obj)
this.searchParams = searchParams this.searchParams = searchParams
...@@ -192,6 +212,9 @@ export default { ...@@ -192,6 +212,9 @@ export default {
case 'hocName_l': case 'hocName_l':
this.form.setFieldsValue({ 'hocName_l': searchParams.params[elem] }) this.form.setFieldsValue({ 'hocName_l': searchParams.params[elem] })
break break
case 'streetId':
this.form.setFieldsValue({ 'streetId': searchParams.params[elem] })
break
default: default:
break break
} }
......
...@@ -463,7 +463,7 @@ ...@@ -463,7 +463,7 @@
</a-row> </a-row>
<a-row type="flex" justify="start" class="detailsPartLine"> <a-row type="flex" justify="start" class="detailsPartLine">
<a-col span="24"> <a-col span="24">
<DetailsItem :labelSpan='12' :textSpan='12' label='' :text='""'/> <DetailsItem :labelSpan='12' :textSpan='12' label='所属街道' :text='detail.streetName'/>
</a-col> </a-col>
</a-row> </a-row>
</a-col> </a-col>
......
...@@ -274,13 +274,18 @@ export default { ...@@ -274,13 +274,18 @@ export default {
this.$ajax.get({ this.$ajax.get({
url: this.$api.GET_TBLS_KEYS, url: this.$api.GET_TBLS_KEYS,
params: { params: {
tbl: params tbl: params,
pageSize: this.pagination.pageSize,
pageNo: this.pagination.current
}, },
}).then(res => { }).then(res => {
this.taskCollectList = [] this.taskCollectList = []
if (res.code == '200') { if (res.code == '200') {
let list = this.$com.confirm(res, 'data.content', []) let list = this.$com.confirm(res, 'data.content', [])
this.pagination.total= this.$com.confirm(res, 'data.totalRows', 0) this.pagination.total = this.$com.confirm(res, 'data.totalRows', 0)
this.pagination.pageSize = res.data.pageSize
this.pagination.current = res.data.page
this.pagination.pageNo = res.data.totalPages
for(let i=0;i<list.length;i++){ for(let i=0;i<list.length;i++){
if (list[i].compntType == 'select') { if (list[i].compntType == 'select') {
list[i].compntType = '选择项' list[i].compntType = '选择项'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment