3 files modified
1 files added
| | |
| | | }); |
| | | }; |
| | | |
| | | export const getPlaceDetaill = (houseCode) => { |
| | | return request({ |
| | | url: "/api/blade-place/place/getDetail", |
| | | method: "get", |
| | | params: { |
| | | houseCode, |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | |
| | | export const getPlaceExt = (params) => { |
| | | return request({ |
| | | url: "/api/blade-placeExt/placeExt/getDetail", |
| | |
| | | |
| | | <script> |
| | | import { |
| | | getPlace, |
| | | getPlaceDetaill, |
| | | getPlaceExt, |
| | | holdRemove, |
| | | holdAdd, |
| | |
| | | dataType: "string", |
| | | span: 12, |
| | | value: [117.96646, 28.431002, ""], |
| | | cascader: ['houseCodeBinds'], |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择地址", |
| | |
| | | { |
| | | width: 160, |
| | | overHidden: true, |
| | | display:false, |
| | | hide:true, |
| | | label: "地址", |
| | | prop: "addressName", |
| | | span: 12 |
| | | }, |
| | | |
| | | { |
| | | width: 160, |
| | | overHidden: true, |
| | | slot: true, |
| | | label: "标准地址", |
| | | prop: "houseCodeBinds", |
| | | span: 24, |
| | | type: 'select', |
| | | dataType: "string", |
| | | type: 'tree', |
| | | dataType: "object", |
| | | remote: true, |
| | | multiple: true, |
| | | hide: true, |
| | | dicUrl: `/api/blade-doorplateAddress/doorplateAddress/getPlaceList?addressName={{key}}`, |
| | | display: false, |
| | | dicUrl: `/api/blade-doorplateAddress/doorplateAddress/getPlaceList?addressName={{addressName}}`, |
| | | props: { |
| | | label: 'addressName', |
| | | value: 'addressCode', |
| | |
| | | inject: ["placeElement"], |
| | | |
| | | watch: { |
| | | |
| | | 'form.houseBindList':{ |
| | | handler(newData){ |
| | | console.log("=======>",newData) |
| | | } |
| | | }, |
| | | |
| | | 'form.isNine': { |
| | | handler(newData) { |
| | | if (newData) { |
| | |
| | | frontTypeColumn.display = false |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | 'form.addressName': { |
| | | handler(newData) { |
| | | console.log("111111") |
| | | const column = this.findObject(this.option.column, "houseCodeBinds") |
| | | if (newData) { |
| | | column.display = true; |
| | | } else { |
| | | column.display = false |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | initOpen(newData) { |
| | | console.log("item==>", newData); |
| | | this.curRow = newData |
| | | this.roleBox = true |
| | | this.baseShow = false |
| | |
| | | const that = this |
| | | |
| | | that.$axios |
| | | .all([getPlace(newData["id"]), getPlaceExt({ |
| | | .all([getPlaceDetaill(newData["houseCode"]), getPlaceExt({ |
| | | placeId: newData["id"] |
| | | }), getPlaceList()]) |
| | | .then( |
| | | that.$axios.spread(function(baseInfo, restInfo) { |
| | | that.form = baseInfo.data.data |
| | | |
| | | that.form.addressName = that.form.location; |
| | | that.form.location = [ |
| | | that.form.lng, |
| | | that.form.lat, |
| | |
| | | proxy: { |
| | | "/api": { |
| | | //本地服务接口地址 |
| | | // target:"http://192.168.2.140:9528", |
| | | target: "https://srgdjczzxtpt.com:2080/api", |
| | | target:"http://192.168.2.140:9528", |
| | | // target: "https://srgdjczzxtpt.com:2080/api", |
| | | // target: "https://kt39592615.goho.co", |
| | | // target: "http://z4042833u6.wicp.vip", |
| | | // target: "http://localhost:9528", |