1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36b3b694"],{"06a8":function(t,a,e){"use strict";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div")},i=[],o=e("795b"),s=e.n(o),c=(e("7f7f"),e("ac6a"),e("f20c")),r=e("5cab"),u=e("f499"),d=e.n(u),l=e("8982"),h="/industryParkApi",f="/wx/data",m="/wx/public",p="/wx/dictController";function g(t){return Object(l["a"])({url:h+f+"/listBizAll/"+t,method:"post"})}function v(t){return Object(l["a"])({url:h+m+"/listProjectAll",method:"post",data:t})}function b(t){return Object(l["a"])({url:h+p+"/getByCodes",method:"post",data:t})}function _(t){var a={codes:d()(t)};return new s.a(function(t,e){b(a).then(function(a){t(a)}).catch(function(t,a){e(t,a)})})}var w=e("3089"),y={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(e){var n=a.getDictValue(t.data,e,!0);a.dc_data[e]=n,a.dc_map[e]=a.$common.transDcMap(n);var i=a.getDictValue(t.data,e,!1);a.dc_data_no_all[e]=i,a.dc_map_no_all[e]=a.$common.transDcMap(i)})})},initDict2:function(t){var a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(e){var n=a.getDictValue(t.data,e,!1);a.dc_data[e]=n,a.dc_map[e]=a.$common.transDcMap(n);var i=a.getDictValue(t.data,e,!1);a.dc_data_no_all[e]=i,a.dc_map_no_all[e]=a.$common.transDcMap(i)})})},initBiz:function(){var t=this;return this.BizData=[],g(r["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var e={label:a.businessName,value:a.id};t.BizData.push(e),t.BizMap[a.id]=a.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],v(r["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var e={label:a.name,value:a.id};t.ProjectData.push(e),t.ProjectMap[e.value]=a})}).catch(function(){})},pagination:function(t){var a=this.currentPage,e=this.pageSize,n=a*e-e,i=a*e;return t.slice(n,i)},getDictValue:function(t,a,e){var n=t[a]?c["a"].castEval(t[a].dictValue):[],i=[];if(n.forEach(function(t){var a={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};i.push(a)}),e){var o={label:"全部",value:"",active:!0};i.unshift(o)}return i},confirm:function(t,a){return new s.a(function(e,n){w["Dialog"].confirm({title:a,message:t}).then(function(t){e(t)}).catch(function(t){Object(w["Toast"])("已取消"),n(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 e=a.indexOf(t);a.splice(e,1)},noImg:function(){var t=event.srcElement;t.src=e("aed7"),t.onerror=null}}},D=y,j=e("2877"),k=Object(j["a"])(D,n,i,!1,null,"3fa5b905",null);a["a"]=k.exports},"3a06":function(t,a,e){"use strict";e.d(a,"a",function(){return s}),e.d(a,"e",function(){return c}),e.d(a,"c",function(){return r}),e.d(a,"b",function(){return u}),e.d(a,"d",function(){return d});var n=e("8982"),i="/industryParkApi",o="/wx/roadShow";function s(t){return Object(n["a"])({url:i+o+"/add",method:"post",data:t})}function c(t){return Object(n["a"])({url:i+o+"/list",method:"post",data:t})}function r(t){return Object(n["a"])({url:i+o+"/getById",method:"post",data:t})}function u(t){return Object(n["a"])({url:i+o+"/edit",method:"post",data:t})}function d(t){return Object(n["a"])({url:i+o+"/getCompanyById",method:"post",data:t})}},"7f7f":function(t,a,e){var n=e("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||e("9e1e")&&n(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8982:function(t,a,e){"use strict";e.d(a,"a",function(){return f}),e.d(a,"b",function(){return m});var n=e("795b"),i=e.n(n),o=e("bc3a"),s=e.n(o),c=e("4328"),r=e.n(c),u=e("4360"),d=e("5cab"),l=e("a18c"),h=e("3089");function f(t,a){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var e={method:t.method,url:t.url,data:r.a.stringify(t.data)};return a&&(e.data=t.data),t.headers&&(e.headers=t.headers),new i.a(function(a,n){s()(e).then(function(t){if(t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(h["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(e.errmsg),n(e.errmsg);break}a(e)}else console.log(t),n(t)}).catch(function(a,e){console.log(t.url+" fail",a,e),Object(h["Toast"])(a),n(a,e)})})}function m(t){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var a={method:t.method,url:t.url};return a.data=t.data,t.headers&&(a.headers=t.headers,a.headers["MVVM-Key"]=String((new Date).getTime()),a.headers["xx"]="anything",a.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new i.a(function(e,n){s.a.defaults.withCredentials=!0,s()(a).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(h["Toast"])(a.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(a.errmsg),n(a.errmsg);break}e(a)}else console.log(t),n(t)}).catch(function(a,e){console.log(t.url+" fail",a,e),Object(h["Toast"])(a),n(a,e)})})}},"9d06":function(t,a,e){"use strict";var n=e("cf6b"),i=e.n(n);i.a},aed7:function(t,a,e){t.exports=e.p+"assets/img/no-result.b05bdcd3.jpg"},cf6b:function(t,a,e){},d5ea:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"application"},[t._l(t.list,function(a){return e("div",{key:a.title,staticClass:"card shadow-radius",on:{click:function(e){return t.goNavigator("roadshow-offline-app",{id:a.id},"push")}}},[e("div",{staticClass:"title"},[t._v(t._s(a.title))]),e("div",{staticClass:"date"},[t._v("开始时间:"+t._s(a.showStartTime))]),e("div",{staticClass:"bottom"},[e("div",{staticClass:"left"},[e("p",{staticClass:"time"},[t._v("申请时间:"+t._s(a.createdAt))]),e("p",{staticClass:"time"},[t._v(t._s(a.companyName))]),a.handleTime?e("p",{staticClass:"time"},[t._v("\n 受理时间:"+t._s(a.handleTime)+"\n ")]):t._e()]),e("div",{staticClass:"right"},["待受理"==a.statusName?e("span",{staticClass:"normal-tip yd y-bg"},[t._v(t._s(a.statusName))]):e("span",{staticClass:"normal-tip yd z-bg"},[t._v(t._s(a.statusName))])])])])}),e("div",{staticClass:"white-bottom"})],2)},i=[],o=(e("ac6a"),e("06a8")),s=e("3a06"),c=(e("3089"),{data:function(){return{dc_key:["road_show_status"],list:[],params:{pageNum:1,pageSize:10},totalPage:1,allData:[]}},mixins:[o["a"]],mounted:function(){var t=this;this.initDict(this.dc_key).then(function(a){t.list=[],t.selectData()}),window.history&&window.history.pushState&&(history.pushState(null,null,document.URL),window.addEventListener("popstate",this.goBack,!1))},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{goBack:function(){this.$router.push({path:"/home-app"})},selectData:function(){var t=this;Object(s["e"])(this.params).then(function(a){a.data&&a.data.forEach(function(a){var e=t.getItemJson(a);t.list.push(e)})})},getItemJson:function(t){return t.showStartTime=this.$common.transServDate(t.showStartTime),t.handleTime&&(t.handleTime=this.$common.transServDate(t.handleTime)),t.createdAt=this.$common.transServDate(t.createdAt),t.statusName=this.dc_map.road_show_status[t.status],t.createdBy&&Object(s["d"])({id:t.createdBy,type:"3"}).then(function(a){a.data&&(t.companyName=a.data.businessName)}),t}}}),r=c,u=(e("9d06"),e("2877")),d=Object(u["a"])(r,n,i,!1,null,"0e114c8f",null);a["default"]=d.exports}}]);
|