index.js 8.3 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{42:function(t,n,e){"use strict";(function(t,n){var a=e(4);e(26);a(e(25));var i=a(e(43));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},43:function(t,n,e){"use strict";e.r(n);var a=e(44),i=e(46);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);e(61);var r,o=e(40),c=Object(o["default"])(i["default"],a["render"],a["staticRenderFns"],!1,null,"57280228",null,!1,a["components"],r);c.options.__file="pages/index/index.vue",n["default"]=c.exports},44:function(t,n,e){"use strict";e.r(n);var a=e(45);e.d(n,"render",(function(){return a["render"]})),e.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),e.d(n,"components",(function(){return a["components"]}))},45:function(t,n,e){"use strict";var a;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return r})),e.d(n,"recyclableRender",(function(){return u})),e.d(n,"components",(function(){return a}));try{a={uniSection:function(){return e.e("uni_modules/uni-section/components/uni-section/uni-section").then(e.bind(null,154))},uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,161))},uniTag:function(){return e.e("uni_modules/uni-tag/components/uni-tag/uni-tag").then(e.bind(null,169))},uniSegmentedControl:function(){return e.e("uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control").then(e.bind(null,176))},uniTable:function(){return e.e("uni_modules/uni-table/components/uni-table/uni-table").then(e.bind(null,183))},uniTr:function(){return e.e("uni_modules/uni-table/components/uni-tr/uni-tr").then(e.bind(null,190))},uniTh:function(){return e.e("uni_modules/uni-table/components/uni-th/uni-th").then(e.bind(null,197))},uniTd:function(){return e.e("uni_modules/uni-table/components/uni-td/uni-td").then(e.bind(null,204))},uniCard:function(){return e.e("uni_modules/uni-card/components/uni-card/uni-card").then(e.bind(null,211))}}}catch(o){if(-1===o.message.indexOf("Cannot find module")||-1===o.message.indexOf(".vue"))throw o;console.error(o.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.dutys.length);t.$mp.data=Object.assign({},{$root:{g0:e}})},u=!1,r=[];i._withStripped=!0},46:function(t,n,e){"use strict";e.r(n);var a=e(47),i=e.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);n["default"]=i.a},47:function(t,n,e){"use strict";(function(t,a){var i=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;i(e(48));var u=i(e(30)),r=i(e(56)),o=i(e(57)),c=i(e(58)),s=i(e(59)),d=e(60),f=function(){e.e("components/IndexBarChart").then(function(){return resolve(e(218))}.bind(null,e)).catch(e.oe)},l={components:{StatisticsChart:f},data:function(){return{dutys:[],statisticsIdx:0,dutyDate:(0,d.parseTime)(new Date,"{y}-{m}-{d}"),statisticsTabs:["队伍建设","物资储备","行业管理","隐患管理"],statisticsData:{name:"救援队",unit:"人数",items:[]},chartdata:{yData:[],xData:[]}}},onShow:function(){this.init()},methods:{init:function(){this.getdutyData(),this.getStatisticsData()},changeDate:function(t){var n=new Date(this.dutyDate);n.setDate(n.getDate()+t),this.dutyDate=(0,d.parseTime)(n,"{y}-{m}-{d}"),this.getdutyData()},getdutyData:function(){var t=this;u.default.getAllByList({dutyDate:this.dutyDate}).then((function(n){t.dutys=n.data}))},getStatisticsData:function(){var t=this;0===this.statisticsIdx&&(r.default.counterByMember().then((function(n){var e=n.data;t.statisticsData.items=e.map((function(t){return{name:t.teamName,num:t.count}}))})),r.default.counterByCat().then((function(n){var e=n.data;t.chartdata={yData:e.map((function(t){return t.count})),xData:e.map((function(t){return t.teamCatTitle})),name:"队伍建设"}}))),1===this.statisticsIdx&&o.default.totalByCat().then((function(n){var e=n.data;t.statisticsData.items=e.map((function(t){return{name:t.goodsCatTitle,num:t.total}})),t.chartdata={yData:e.map((function(t){return t.total})),xData:e.map((function(t){return t.goodsCatTitle})),name:"数量"}})),2===this.statisticsIdx&&(c.default.counterByGroup().then((function(n){var e=n.data;t.statisticsData.items=e.map((function(t){return{name:t.groupName,num:t.count}}))})),c.default.counterByCat().then((function(n){var e=n.data;t.chartdata={yData:e.map((function(t){return t.count})),xData:e.map((function(t){return t.entCatTitle})),name:"企业/单位数目"}}))),3===this.statisticsIdx&&(s.default.counterByGroup().then((function(n){var e=n.data;t.statisticsData.items=e.map((function(t){return{name:t.groupName,num:t.count}}))})),s.default.counterByCat().then((function(n){var e=n.data;t.chartdata={yData:e.map((function(t){return t.count})),xData:e.map((function(t){return t.dangerCatTitle})),name:"隐患数目"}})))},linkTo:function(n){t.navigateTo({url:"/packageA/pages/".concat(n,"/index")})},changeStatics:function(t){var n=t.currentIndex;if(this.statisticsIdx!==n){this.statisticsIdx=n;var e=[{name:"救援队",unit:"人数"},{name:"物资分类",unit:"数量"},{name:"监管单位",unit:"企业/单位数目"},{name:"监管单位",unit:"隐患数目"}];this.statisticsData={name:e[n].name,unit:e[n].unit,items:[]},this.getStatisticsData()}},callPhone:function(t){t&&a.makePhoneCall({phoneNumber:t})}}};n.default=l}).call(this,e(2)["default"],e(1)["default"])},48:function(t,n,e){"use strict";e.r(n);var a=e(49),i=e(51);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);e(54);var r,o=e(40),c=Object(o["default"])(i["default"],a["render"],a["staticRenderFns"],!1,null,"63f73734",null,!1,a["components"],r);c.options.__file="components/Echart.vue",n["default"]=c.exports},49:function(t,n,e){"use strict";e.r(n);var a=e(50);e.d(n,"render",(function(){return a["render"]})),e.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),e.d(n,"components",(function(){return a["components"]}))},50:function(t,n,e){"use strict";var a;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return r})),e.d(n,"recyclableRender",(function(){return u})),e.d(n,"components",(function(){return a}));var i=function(){var t=this,n=t.$createElement;t._self._c},u=!1,r=[];i._withStripped=!0},51:function(t,n,e){"use strict";e.r(n);var a=e(52),i=e.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);n["default"]=i.a},52:function(t,n,e){"use strict";var a=e(13);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e(53));function u(t){if("function"!==typeof WeakMap)return null;var n=new WeakMap,e=new WeakMap;return(u=function(t){return t?e:n})(t)}function r(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!==typeof t)return{default:t};var e=u(n);if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var c=r?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(i,o,c):i[o]=t[o]}return i.default=t,e&&e.set(t,i),i}var o={props:{ec:{type:Object},height:{type:String,default:"300px"}},watch:{"ec.option":{handler:function(t){t&&this.chart.setOption(t)},deep:!0}},mounted:function(){this.init()},data:function(){return{}},methods:{init:function(){this.chart=i.init(this.$refs.chart.$el)}}};n.default=o},54:function(t,n,e){"use strict";e.r(n);var a=e(55),i=e.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);n["default"]=i.a},55:function(t,n,e){},61:function(t,n,e){"use strict";e.r(n);var a=e(62),i=e.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);n["default"]=i.a},62:function(t,n,e){}},[[42,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map