(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-area-picker/app-area-picker"],{"31c3":function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={name:"app-area-picker",props:{ids:{type:Array,default:function(){return[]}}},data:function(){return{tempIds:this.ids,area_picker_show:"",list:[],multiIndex:[],multiArray:[],place:""}},created:function(){this.tempIds=this.tempIds.concat()},watch:{ids:{handler:function(t,i){this.tempIds=this.ids}},tempIds:{handler:function(t,i){var e=this;e.before((function(t){e.init(t)})),this.$emit("ids",this.tempIds)},deep:!0,immediate:!0}},methods:{before:function(t){var i=this,e=this,n=this.$storage.getStorageSync("_DISTRICT");n?t(n):this.$request({url:e.$api.default.district}).then((function(e){0===e.code&&(i.$storage.setStorageSync("_DISTRICT",e.data.list),t(e.data.list))}))},init:function(t){var i=3===this.tempIds.length&&0!=this.tempIds[0],e=i?this.tempIds:[2,3,4],n=this.getIndex(t,e),a=[t,t[n[0]].list,t[n[0]].list[n[1]].list],s=a[0][n[0]].name+"，"+a[1][n[1]].name+"，"+a[2][n[2]].name,u=[a[0][n[0]],a[1][n[1]],a[2][n[2]]];this.setEvent(u,i);var r=[t,a,n,i?s:"请选择"];this.list=r[0],this.multiArray=r[1],this.multiIndex=r[2],this.place=r[3]},getIndex:function(t,i){var e=[];return t.map((function(t,n){i[0]==t.id&&e.push(n)})),t[e[0]].list.map((function(t,n){i[1]==t.id&&e.push(n)})),t[e[0]].list[e[1]].list.map((function(t,n){i[2]==t.id&&e.push(n)})),e},bindMultiPickerChange:function(t){var i=[this.multiArray[0][t.detail.value[0]],this.multiArray[1][t.detail.value[1]],this.multiArray[2][t.detail.value[2]]],e=i[0].name+"，"+i[1].name+"，"+i[2].name,n=[t.detail.value,e];this.multiIndex=n[0],this.place=n[1],this.setEvent(i)},setEvent:function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e={province:{id:t[0].id,name:t[0].name},city:{id:t[1].id,name:t[1].name},district:{id:t[2].id,name:t[2].name}};this.$emit("customevent",i?e:null)},bindMultiPickerColumnChange:function(t){var i={multiArray:this.multiArray,multiIndex:this.multiIndex};switch(i.multiIndex[t.detail.column]=t.detail.value,t.detail.column){case 0:i.multiIndex.splice(1,1,0),i.multiIndex.splice(2,1,0),i.multiArray.splice(1,1,this.list[i.multiIndex[0]].list),i.multiArray.splice(2,1,this.list[i.multiIndex[0]].list[i.multiIndex[1]].list);break;case 1:i.multiIndex.splice(2,1,0),i.multiArray.splice(2,1,this.list[i.multiIndex[0]].list[i.multiIndex[1]].list);break}var e=[i.multiArray,i.multiIndex];this.multiArray=e[0],this.multiIndex=e[1]}}};i.default=n},3803:function(t,i,e){},"49d7":function(t,i,e){"use strict";var n=e("3803"),a=e.n(n);a.a},"59f7":function(t,i,e){"use strict";e.r(i);var n=e("658b"),a=e("6460");for(var s in a)"default"!==s&&function(t){e.d(i,t,(function(){return a[t]}))}(s);e("49d7");var u,r=e("f0c5"),l=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"54de21b7",null,!1,n["a"],u);i["default"]=l.exports},6460:function(t,i,e){"use strict";e.r(i);var n=e("31c3"),a=e.n(n);for(var s in n)"default"!==s&&function(t){e.d(i,t,(function(){return n[t]}))}(s);i["default"]=a.a},"658b":function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return s})),e.d(i,"a",(function(){return n}));var a=function(){var t=this,i=t.$createElement;t._self._c},s=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/page-component/app-area-picker/app-area-picker-create-component',
    {
        'components/page-component/app-area-picker/app-area-picker-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("59f7"))
        })
    },
    [['components/page-component/app-area-picker/app-area-picker-create-component']]
]);
