| | |
| | | data |
| | | }) |
| | | } |
| | | |
| | | // 获取门牌地址 |
| | | export const getDoorplateAddressDetail = (params) => { |
| | | return http.request({ |
| | | url: 'blade-doorplateAddress/doorplateAddress/getDoorplateAddressDetail', |
| | | method: 'GET', |
| | | params: { |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | |
| | | "quickapp" : {}, |
| | | /* 小程序特有相关 */ |
| | | "mp-weixin" : { |
| | | "appid" : "wxdc5675f4df850da6", |
| | | "appid": "wx1ff4bbc24b343ef1", |
| | | "setting" : { |
| | | "urlCheck" : false, |
| | | "minified" : true, |
| | |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | }, |
| | | "requiredPrivateInfos": ["getLocation"], |
| | | "permission" : { |
| | | "scope.userLocation" : { |
| | | "desc" : "定位" |
| | |
| | | getLabelList |
| | | } from "@/api/label/label"; |
| | | import { |
| | | getDoorplateAddressDetail, |
| | | getDoorplateAddressList |
| | | } from "@/api/doorplateAddress/doorplateAddress"; |
| | | import { |
| | |
| | | }, |
| | | |
| | | activeIds: [], |
| | | showLabelList: [] |
| | | showLabelList: [], |
| | | |
| | | stdId: "", |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | handler(newVal) { |
| | | this.form.label = newVal.join(",") |
| | | } |
| | | }, |
| | | "form.buildingCode": { |
| | | handler(newVal) { |
| | | console.log(newVal) |
| | | } |
| | | } |
| | | |
| | | }, |
| | | |
| | | created() { |
| | |
| | | mounted() { |
| | | |
| | | }, |
| | | options: { |
| | | styleIsolation: 'shared', // 解除样式隔离 |
| | | }, |
| | | onLoad(option) { |
| | | this.stdId = option.stdId |
| | | console.log(this.stdId, "----------") |
| | | if (this.stdId) { |
| | | this.getBuildingDetail() |
| | | } |
| | | |
| | | |
| | | }, |
| | | onShow() { |
| | |
| | | this.getLocation() |
| | | }, |
| | | methods: { |
| | | |
| | | getBuildingDetail(params = {}) { |
| | | |
| | | |
| | | getDoorplateAddressDetail(Object.assign(params, { |
| | | stdId: this.stdId |
| | | })).then(res => { |
| | | let data = res.data |
| | | this.form.buildingCode = data.buildingCode |
| | | |
| | | let buildingNameArr = [data.townStreetName, data.neiName, data.streetRuName, data.aoiName, |
| | | data.buildingName |
| | | ] |
| | | let arr = buildingNameArr.filter(e => { |
| | | return e != null || e != '' |
| | | }) |
| | | this.form.building = arr.join("") |
| | | |
| | | }) |
| | | }, |
| | | |
| | | //表单提交 |
| | | submit() { |
| | |
| | | }, |
| | | |
| | | confirmPicker(e) { |
| | | console.log(e, "--------------------") |
| | | |
| | | if (e.value[4]) { |
| | | this.selectValue = e.value |
| | |
| | | // 微信小程序无法将picker实例传出来,只能通过ref操作 |
| | | picker = this.$refs.uPicker |
| | | } = e |
| | | console.log(e, "/*/*/*") |
| | | let item = e.values[columnIndex][index] |
| | | console.log(item, "-----------") |
| | | //街道 |
| | | if (columnIndex === 0) { |
| | | //获取社区列表 |
| | |
| | | |
| | | .item { |
| | | |
| | | /deep/ .form-item { |
| | | .form-item { |
| | | background-color: #ffffff; |
| | | padding: 2rpx 10px; |
| | | border-bottom: 1px solid #eff1f3; |
| | |
| | | } |
| | | } |
| | | |
| | | /deep/ .u-form-item { |
| | | background-color: #ffffff; |
| | | padding: 2rpx 10px; |
| | | border-bottom: 1px solid #eff1f3; |
| | | } |
| | | |
| | | .red { |
| | | background-color: red; |
| | | border-radius: 10rpx 0rpx 0rpx 10rpx; |