|
@@ -1,17 +1,20 @@
|
|
<script>
|
|
<script>
|
|
import AddressSelect from '@/pages/components/addressSelect/index'
|
|
import AddressSelect from '@/pages/components/addressSelect/index'
|
|
|
|
+import InterestSelect from '@/pages/components/interestSelect/index'
|
|
import {getDicInfo} from "@/api/digitalDoor";
|
|
import {getDicInfo} from "@/api/digitalDoor";
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- AddressSelect
|
|
|
|
|
|
+ AddressSelect,
|
|
|
|
+ InterestSelect
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- form:{},
|
|
|
|
|
|
+ form: {},
|
|
householdRegistrationTypeDialogShow: false,
|
|
householdRegistrationTypeDialogShow: false,
|
|
householdRegistrationTypeList: [],
|
|
householdRegistrationTypeList: [],
|
|
- domicileDialogShow:false,
|
|
|
|
- residenceDialogShow:false
|
|
|
|
|
|
+ domicileDialogShow: false,
|
|
|
|
+ residenceDialogShow: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -25,18 +28,24 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- handleHouseholdRegistrationTypeClick(item){
|
|
|
|
|
|
+ handleHouseholdRegistrationTypeClick(item) {
|
|
this.householdRegistrationTypeDialogShow = false
|
|
this.householdRegistrationTypeDialogShow = false
|
|
this.form.householdRegistrationTypeName = item.remark
|
|
this.form.householdRegistrationTypeName = item.remark
|
|
this.form.householdRegistrationType = item.value
|
|
this.form.householdRegistrationType = item.value
|
|
},
|
|
},
|
|
- handleDomicileClick(item){
|
|
|
|
|
|
+ handleDomicileClick(item) {
|
|
this.domicileDialogShow = false
|
|
this.domicileDialogShow = false
|
|
this.form.domicile = item
|
|
this.form.domicile = item
|
|
},
|
|
},
|
|
handleResidenceClick(item) {
|
|
handleResidenceClick(item) {
|
|
this.domicileDialogShow = false
|
|
this.domicileDialogShow = false
|
|
this.form.domicile = item
|
|
this.form.domicile = item
|
|
|
|
+ },
|
|
|
|
+ reset() {
|
|
|
|
+ this.form = {}
|
|
|
|
+ },
|
|
|
|
+ submit() {
|
|
|
|
+ console.log(this.$refs.addressSelectRef.form)
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -44,54 +53,89 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <view>
|
|
|
|
- <AddressSelect title="所属范围"></AddressSelect>
|
|
|
|
- <view class="box">
|
|
|
|
- <view class="title">
|
|
|
|
- <text>管理地</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="content">
|
|
|
|
- <van-field v-model="form.householdRegistrationTypeName"
|
|
|
|
- @click="householdRegistrationTypeDialogShow = true"
|
|
|
|
- label="户类型"
|
|
|
|
- is-link placeholder="请选择" />
|
|
|
|
- <van-popup v-model="householdRegistrationTypeDialogShow" position="bottom" :style="{ height: '35%' }">
|
|
|
|
- <van-list>
|
|
|
|
- <van-cell v-for="(item,index) in householdRegistrationTypeList"
|
|
|
|
- :key="index" :title="item.remark"
|
|
|
|
- @click="handleHouseholdRegistrationTypeClick(item)"></van-cell>
|
|
|
|
- </van-list>
|
|
|
|
- </van-popup>
|
|
|
|
- <!--户籍地-->
|
|
|
|
- <van-field v-model="form.domicile"
|
|
|
|
- label="户籍地"
|
|
|
|
- is-link
|
|
|
|
- @click="domicileDialogShow = true"
|
|
|
|
- placeholder="请输入户籍地" />
|
|
|
|
- <van-popup v-model="domicileDialogShow" position="bottom" :style="{ height: '35%' }">
|
|
|
|
- <van-list>
|
|
|
|
- <van-cell title="在" @click="handleDomicileClick('在')"></van-cell>
|
|
|
|
- <van-cell title="不在" @click="handleDomicileClick('不在')"></van-cell>
|
|
|
|
- </van-list>
|
|
|
|
- </van-popup>
|
|
|
|
- <!--居住地-->
|
|
|
|
- <van-field v-model="form.residence"
|
|
|
|
- label="居住地"
|
|
|
|
- is-link
|
|
|
|
- @click="residenceDialogShow = true"
|
|
|
|
- placeholder="请输入居住地" />
|
|
|
|
- <van-popup v-model="residenceDialogShow" position="bottom" :style="{ height: '35%' }">
|
|
|
|
- <van-list>
|
|
|
|
- <van-cell title="在" @click="handleResidenceClick('在')"></van-cell>
|
|
|
|
- <van-cell title="不在" @click="handleResidenceClick('不在')"></van-cell>
|
|
|
|
- </van-list>
|
|
|
|
- </van-popup>
|
|
|
|
|
|
+ <view class="page-container">
|
|
|
|
+ <view class="container-center">
|
|
|
|
+ <AddressSelect title="所属范围" ref="addressSelectRef"></AddressSelect>
|
|
|
|
+ <view class="box">
|
|
|
|
+ <view class="title">
|
|
|
|
+ <text>管理地</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="content">
|
|
|
|
+ <van-field v-model="form.householdRegistrationTypeName"
|
|
|
|
+ @click="householdRegistrationTypeDialogShow = true"
|
|
|
|
+ label="户类型"
|
|
|
|
+ is-link placeholder="请选择"/>
|
|
|
|
+ <van-popup v-model="householdRegistrationTypeDialogShow" position="bottom" :style="{ height: '35%' }">
|
|
|
|
+ <van-list>
|
|
|
|
+ <van-cell v-for="(item,index) in householdRegistrationTypeList"
|
|
|
|
+ :key="index" :title="item.remark"
|
|
|
|
+ @click="handleHouseholdRegistrationTypeClick(item)"></van-cell>
|
|
|
|
+ </van-list>
|
|
|
|
+ </van-popup>
|
|
|
|
+ <!--户籍地-->
|
|
|
|
+ <van-field v-model="form.domicile"
|
|
|
|
+ label="户籍地"
|
|
|
|
+ is-link
|
|
|
|
+ @click="domicileDialogShow = true"
|
|
|
|
+ placeholder="请输入户籍地"/>
|
|
|
|
+ <van-popup v-model="domicileDialogShow" position="bottom" :style="{ height: '35%' }">
|
|
|
|
+ <van-list>
|
|
|
|
+ <van-cell title="在" @click="handleDomicileClick('在')"></van-cell>
|
|
|
|
+ <van-cell title="不在" @click="handleDomicileClick('不在')"></van-cell>
|
|
|
|
+ </van-list>
|
|
|
|
+ </van-popup>
|
|
|
|
+ <!--居住地-->
|
|
|
|
+ <van-field v-model="form.residence"
|
|
|
|
+ label="居住地"
|
|
|
|
+ is-link
|
|
|
|
+ @click="residenceDialogShow = true"
|
|
|
|
+ placeholder="请输入居住地"/>
|
|
|
|
+ <van-popup v-model="residenceDialogShow" position="bottom" :style="{ height: '35%' }">
|
|
|
|
+ <van-list>
|
|
|
|
+ <van-cell title="在" @click="handleResidenceClick('在')"></van-cell>
|
|
|
|
+ <van-cell title="不在" @click="handleResidenceClick('不在')"></van-cell>
|
|
|
|
+ </van-list>
|
|
|
|
+ </van-popup>
|
|
|
|
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <InterestSelect useFlag="person" ref="interestSelectRef"></InterestSelect>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="container-footer">
|
|
|
|
+ <van-button type="primary" color="#198bfe" @click="reset">重置</van-button>
|
|
|
|
+ <van-button type="primary" color="#198bfe" @click="submit">执行查询</van-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
|
+.page-container {
|
|
|
|
+ background-color: #f5f5f5;
|
|
|
|
+ height: 100%;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+}
|
|
|
|
|
|
|
|
+.container-center {
|
|
|
|
+ flex: 1;
|
|
|
|
+ padding: 30rpx;
|
|
|
|
+ overflow: auto;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.container-footer {
|
|
|
|
+ height: 100rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 40px;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ padding: 0 30rpx;
|
|
|
|
+ box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2); /* 只显示上方阴影 */
|
|
|
|
+
|
|
|
|
+ ::v-deep .van-button {
|
|
|
|
+ width: 30%;
|
|
|
|
+ height: 30px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|