chunk-f7ee6d1c.94b338a5.js 4.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f7ee6d1c"],{"06a8":function(t,a,n){"use strict";var e=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div")},o=[],c=n("795b"),i=n.n(c),r=(n("7f7f"),n("ac6a"),n("f20c")),u=n("5cab"),l=n("f499"),s=n.n(l),f=n("8982"),d="/industryParkApi",h="/wx/data",m="/wx/public",p="/wx/dictController";function v(t){return Object(f["a"])({url:d+h+"/listBizAll/"+t,method:"post"})}function g(t){return Object(f["a"])({url:d+m+"/listProjectAll",method:"post",data:t})}function b(t){return Object(f["a"])({url:d+p+"/getByCodes",method:"post",data:t})}function _(t){var a={codes:s()(t)};return new i.a(function(t,n){b(a).then(function(a){t(a)}).catch(function(t,a){n(t,a)})})}var D=n("3089"),k={name:"BaseData",data:function(){return{currentPage:1,totalSize:0,pageSize:10,InitialLoading:!0,allLoaded:!1,bottomStatus:"",StaffData:[],StaffMap:{},BizData:[],BizMap:{},UserProject:[],ProjectData:[],ProjectMap:{},dialogImageUrl:"",dialogImageVisible:!1,dc_map:{},dc_data:{},dc_map_no_all:{},dc_data_no_all:{}}},mounted:function(){},methods:{initDict:function(t){var a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(n){var e=a.getDictValue(t.data,n,!0);a.dc_data[n]=e,a.dc_map[n]=a.$common.transDcMap(e);var o=a.getDictValue(t.data,n,!1);a.dc_data_no_all[n]=o,a.dc_map_no_all[n]=a.$common.transDcMap(o)})})},initDict2:function(t){var a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(n){var e=a.getDictValue(t.data,n,!1);a.dc_data[n]=e,a.dc_map[n]=a.$common.transDcMap(e);var o=a.getDictValue(t.data,n,!1);a.dc_data_no_all[n]=o,a.dc_map_no_all[n]=a.$common.transDcMap(o)})})},initBiz:function(){var t=this;return this.BizData=[],v(u["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var n={label:a.businessName,value:a.id};t.BizData.push(n),t.BizMap[a.id]=a.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],g(u["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var n={label:a.name,value:a.id};t.ProjectData.push(n),t.ProjectMap[n.value]=a})}).catch(function(){})},pagination:function(t){var a=this.currentPage,n=this.pageSize,e=a*n-n,o=a*n;return t.slice(e,o)},getDictValue:function(t,a,n){var e=t[a]?r["a"].castEval(t[a].dictValue):[],o=[];if(e.forEach(function(t){var a={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};o.push(a)}),n){var c={label:"全部",value:"",active:!0};o.unshift(c)}return o},confirm:function(t,a){return new i.a(function(n,e){D["Dialog"].confirm({title:a,message:t}).then(function(t){n(t)}).catch(function(t){Object(D["Toast"])("已取消"),e(t)})})},handleBottomChange:function(t){console.log("handleBottomChange:"+t),this.bottomStatus=t,"drop"===this.bottomStatus&&this.currentPage++},loadBottom:function(){var t=this,a=this;console.log("loadBottom"),setTimeout(function(){a.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,a){var n=a.indexOf(t);a.splice(n,1)},noImg:function(){var t=event.srcElement;t.src=n("aed7"),t.onerror=null}}},w=k,x=n("2877"),y=Object(x["a"])(w,e,o,!1,null,"3fa5b905",null);a["a"]=y.exports},"7f7f":function(t,a,n){var e=n("86cc").f,o=Function.prototype,c=/^\s*function ([^ (]*)/,i="name";i in o||n("9e1e")&&e(o,i,{configurable:!0,get:function(){try{return(""+this).match(c)[1]}catch(t){return""}}})},aed7:function(t,a,n){t.exports=n.p+"assets/img/no-result.b05bdcd3.jpg"},e295:function(t,a,n){},fc64:function(t,a,n){"use strict";var e=n("e295"),o=n.n(e);o.a},ff4f:function(t,a,n){"use strict";var e=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"zhaozuSelect"},[n("van-popup",{model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[n("van-checkbox-group",{staticStyle:{"margin-bottom":"10px"},model:{value:t.result,callback:function(a){t.result=a},expression:"result"}},[n("van-cell-group",t._l(t.columns,function(a,e){return"全部"!=a.label?n("van-cell",{key:a,attrs:{clickable:"",title:a.label},on:{click:function(a){return t.toggle(e)}},scopedSlots:t._u([{key:"right-icon",fn:function(){return[n("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{name:a}})]},proxy:!0}],null,!0)}):t._e()}),1)],1),n("div",{staticClass:"button-list"},[n("button",{staticClass:"cancel-btn",on:{click:function(a){t.show=!1}}},[t._v("取消")]),n("button",{staticClass:"confirm-btn",on:{click:function(a){return t.confirm()}}},[t._v("确认")])])],1)],1)},o=[],c={name:"zhaozuSelect",props:{columns:{type:Array,default:[]}},data:function(){return{show:!1,result:[]}},methods:{confirm:function(){this.$emit("getZhaozuType",this.result),this.show=!1},toggle:function(t){console.log(t),this.$refs.checkboxes[t-1].toggle()},setVisible:function(t){this.show=t}},mounted:function(){}},i=c,r=(n("fc64"),n("2877")),u=Object(r["a"])(i,e,o,!1,null,null,null);a["a"]=u.exports}}]);