index.js 4.9 KB

12
  1. require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["packageA/pages/danger/index"],{100:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return r})),t.d(e,"components",(function(){return i}));try{i={uniCard:function(){return t.e("uni_modules/uni-card/components/uni-card/uni-card").then(t.bind(null,211))},uniSearchBar:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(t.bind(null,273))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,161))},uniSwipeAction:function(){return t.e("uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action").then(t.bind(null,284))},uniSwipeActionItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item")]).then(t.bind(null,289))},uniTag:function(){return t.e("uni_modules/uni-tag/components/uni-tag/uni-tag").then(t.bind(null,169))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement,t=(n._self._c,n.__map(n.items,(function(e,t){var i=n.__get_orig(e),o=n.formatDangerLevel(e.dangerLevel),r=n.formatDangerStatus(e.status);return{$orig:i,m0:o,m1:r}})));n.$mp.data=Object.assign({},{$root:{l0:t}})},r=!1,a=[];o._withStripped=!0},101:function(n,e,t){"use strict";t.r(e);var i=t(102),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},102:function(n,e,t){"use strict";(function(n){var i=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(t(58)),r=i(t(59)),a=function(){Promise.all([t.e("common/vendor"),t.e("packageA/pages/danger/components/Create")]).then(function(){return resolve(t(301))}.bind(null,t)).catch(t.oe)},u=function(){t.e("packageA/pages/danger/components/Detail").then(function(){return resolve(t(308))}.bind(null,t)).catch(t.oe)},c={components:{Create:a,Detail:u},data:function(){return{items:[],page:1,limit:10,total:0,keywords:""}},onShow:function(){this.getData(),this.init()},methods:{init:function(){n.getStorageSync("dangerCats")||(o.default.getByList().then((function(e){n.setStorageSync("entCats",e.data)})),r.default.getCatByList().then((function(e){n.setStorageSync("dangerCats",e.data)})))},search:function(){this.resetFilter(),this.getData()},getData:function(){var n=this;r.default.getByPage({page:this.page,limit:this.limit,keywords:this.keywords}).then((function(e){n.items=n.items.concat(e.data)}))},handle:function(e){var t=e.type,i=e.item,o=this;"detail"===t?this.$refs.detail.show(i):"del"===t?n.showModal({title:"提示",content:"是否确定删除",success:function(e){e.confirm&&r.default.deleteById(i.dangerId).then((function(){n.showToast({title:"删除成功!",icon:"none"}),o.search()}))}}):this.$refs.danger.show({type:t,item:i})},formatDangerLevel:function(n){var e=["末知","重大","较大","一般","较小"];return e[n]},formatDangerStatus:function(n){var e=["未整改","已整改"];return e[n]},resetFilter:function(){this.page=1,this.limit=10,this.total=0,this.items=[]}},onReachBottom:function(){this.total>this.size*this.page&&(this.page++,this.getData())}};e.default=c}).call(this,t(2)["default"])},103:function(n,e,t){"use strict";t.r(e);var i=t(104),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},104:function(n,e,t){},97:function(n,e,t){"use strict";(function(n,e){var i=t(4);t(26);i(t(25));var o=i(t(98));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},98:function(n,e,t){"use strict";t.r(e);var i=t(99),o=t(101);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);t(103);var a,u=t(40),c=Object(u["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"3a7c3cf2",null,!1,i["components"],a);c.options.__file="packageA/pages/danger/index.vue",e["default"]=c.exports},99:function(n,e,t){"use strict";t.r(e);var i=t(100);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))}},[[97,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/packageA/pages/danger/index.js.map