index.js 9.8 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{34:function(t,n,e){"use strict";(function(t,n){var r=e(4);e(26);r(e(25));var u=r(e(35));t.__webpack_require_UNI_MP_PLUGIN__=e,n(u.default)}).call(this,e(1)["default"],e(2)["createPage"])},35:function(t,n,e){"use strict";e.r(n);var r=e(36),u=e(38);for(var a in u)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(a);e(61);var i,o=e(32),c=Object(o["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,"57280228",null,!1,r["components"],i);c.options.__file="pages/index/index.vue",n["default"]=c.exports},36:function(t,n,e){"use strict";e.r(n);var r=e(37);e.d(n,"render",(function(){return r["render"]})),e.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(n,"components",(function(){return r["components"]}))},37:function(t,n,e){"use strict";var r;e.r(n),e.d(n,"render",(function(){return u})),e.d(n,"staticRenderFns",(function(){return i})),e.d(n,"recyclableRender",(function(){return a})),e.d(n,"components",(function(){return r}));try{r={uniSection:function(){return e.e("uni_modules/uni-section/components/uni-section/uni-section").then(e.bind(null,160))},uniDataSelect:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-data-select/components/uni-data-select/uni-data-select")]).then(e.bind(null,167))},uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,183))},uniTag:function(){return e.e("uni_modules/uni-tag/components/uni-tag/uni-tag").then(e.bind(null,191))},uniSegmentedControl:function(){return e.e("uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control").then(e.bind(null,198))},uniTable:function(){return e.e("uni_modules/uni-table/components/uni-table/uni-table").then(e.bind(null,205))},uniTr:function(){return e.e("uni_modules/uni-table/components/uni-tr/uni-tr").then(e.bind(null,212))},uniTh:function(){return e.e("uni_modules/uni-table/components/uni-th/uni-th").then(e.bind(null,219))},uniTd:function(){return e.e("uni_modules/uni-table/components/uni-td/uni-td").then(e.bind(null,226))},uniCard:function(){return e.e("uni_modules/uni-card/components/uni-card/uni-card").then(e.bind(null,233))}}}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 u=function(){var t=this,n=t.$createElement,e=(t._self._c,t.dutys.length);t.$mp.data=Object.assign({},{$root:{g0:e}})},a=!1,i=[];u._withStripped=!0},38:function(t,n,e){"use strict";e.r(n);var r=e(39),u=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);n["default"]=u.a},39:function(t,n,e){"use strict";(function(t,r){var u=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=u(e(11)),i=(u(e(40)),u(e(48))),o=u(e(55)),c=u(e(56)),s=u(e(57)),d=u(e(58)),f=e(59),l=e(60);function p(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function m(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?p(Object(e),!0).forEach((function(n){(0,a.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var h=function(){e.e("components/IndexBarChart").then(function(){return resolve(e(240))}.bind(null,e)).catch(e.oe)},g={components:{StatisticsChart:h},computed:{groupList:function(){var t=this.groupView;if(t&&t.length>0){var n=[];return t.map((function(t,e){n.push(m(m({},t),{},{value:t.groupId,text:t.groupName})),Array.isArray(t.children)&&t.children.length>0&&(n=n.concat(t.children.map((function(t){return m(m({},t),{},{value:t.groupId,text:t.groupName})}))))})),this.dutyGroupId=n[0].value,n}return[]}},data:function(){return{dutys:[],groupView:[],statisticsIdx:0,dutyDate:(0,f.parseTime)(new Date,"{y}-{m}-{d}"),dutyGroupId:void 0,statisticsTabs:["队伍建设","物资储备","行业管理","隐患管理"],statisticsData:{name:"救援队",unit:"人数",items:[]},chartdata:{yData:[],xData:[]}}},onShow:function(){this.init()},methods:{init:function(){this.getdutyData(),this.getStatisticsData(),this.getBaseData()},changeDate:function(t){var n=new Date(this.dutyDate);n.setDate(n.getDate()+t),this.dutyDate=(0,f.parseTime)(n,"{y}-{m}-{d}"),this.getdutyData()},getdutyData:function(){var t=this;i.default.getRecordByList({dutyDate:this.dutyDate,groupId:this.dutyGroupId}).then((function(n){t.dutys=n.data}))},getBaseData:function(){var n=this;t.getStorageSync("dutys")?this.groupView=t.getStorageSync("groupView"):(i.default.getByList().then((function(n){t.setStorageSync("dutys",n.data)})),(0,l.selectGroupUser)().then((function(n){t.setStorageSync("groupUser",n.data)})),(0,l.getGroupView)().then((function(e){t.setStorageSync("groupView",e.data),n.groupView=e.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&&c.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&&(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.entCatTitle})),name:"企业/单位数目"}}))),3===this.statisticsIdx&&(d.default.counterByGroup().then((function(n){var e=n.data;t.statisticsData.items=e.map((function(t){return{name:t.groupName,num:t.count}}))})),d.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&&r.makePhoneCall({phoneNumber:t})}}};n.default=g}).call(this,e(2)["default"],e(1)["default"])},40:function(t,n,e){"use strict";e.r(n);var r=e(41),u=e(43);for(var a in u)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(a);e(46);var i,o=e(32),c=Object(o["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,"63f73734",null,!1,r["components"],i);c.options.__file="components/Echart.vue",n["default"]=c.exports},41:function(t,n,e){"use strict";e.r(n);var r=e(42);e.d(n,"render",(function(){return r["render"]})),e.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(n,"components",(function(){return r["components"]}))},42:function(t,n,e){"use strict";var r;e.r(n),e.d(n,"render",(function(){return u})),e.d(n,"staticRenderFns",(function(){return i})),e.d(n,"recyclableRender",(function(){return a})),e.d(n,"components",(function(){return r}));var u=function(){var t=this,n=t.$createElement;t._self._c},a=!1,i=[];u._withStripped=!0},43:function(t,n,e){"use strict";e.r(n);var r=e(44),u=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);n["default"]=u.a},44:function(t,n,e){"use strict";var r=e(13);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=i(e(45));function a(t){if("function"!==typeof WeakMap)return null;var n=new WeakMap,e=new WeakMap;return(a=function(t){return t?e:n})(t)}function i(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var e=a(n);if(e&&e.has(t))return e.get(t);var u={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var c=i?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(u,o,c):u[o]=t[o]}return u.default=t,e&&e.set(t,u),u}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=u.init(this.$refs.chart.$el)}}};n.default=o},46:function(t,n,e){"use strict";e.r(n);var r=e(47),u=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);n["default"]=u.a},47:function(t,n,e){},61:function(t,n,e){"use strict";e.r(n);var r=e(62),u=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);n["default"]=u.a},62:function(t,n,e){}},[[34,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map