12 |
- (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(53);var o,r=e(40),c=Object(r["default"])(i["default"],a["render"],a["staticRenderFns"],!1,null,"57280228",null,!1,a["components"],o);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 o})),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,146))},uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,153))},uniTag:function(){return e.e("uni_modules/uni-tag/components/uni-tag/uni-tag").then(e.bind(null,161))},uniSegmentedControl:function(){return e.e("uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control").then(e.bind(null,168))},uniTable:function(){return e.e("uni_modules/uni-table/components/uni-table/uni-table").then(e.bind(null,175))},uniTr:function(){return e.e("uni_modules/uni-table/components/uni-tr/uni-tr").then(e.bind(null,182))},uniTh:function(){return e.e("uni_modules/uni-table/components/uni-th/uni-th").then(e.bind(null,189))},uniTd:function(){return e.e("uni_modules/uni-table/components/uni-td/uni-td").then(e.bind(null,196))},uniCard:function(){return e.e("uni_modules/uni-card/components/uni-card/uni-card").then(e.bind(null,203))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.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,o=[];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;var u=i(e(30)),o=i(e(48)),r=i(e(49)),c=i(e(50)),s=i(e(51)),d=e(52),l=function(){e.e("components/IndexBarChart").then(function(){return resolve(e(210))}.bind(null,e)).catch(e.oe)},f={components:{StatisticsChart:l},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&&(o.default.counterByMember().then((function(n){var e=n.data;t.statisticsData.items=e.map((function(t){return{name:t.teamName,num:t.count}}))})),o.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&&r.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:"/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=f}).call(this,e(2)["default"],e(1)["default"])},53:function(t,n,e){"use strict";e.r(n);var a=e(54),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},54:function(t,n,e){}},[[42,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|