12 |
- require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["packageA/pages/disaster/index"],{119:function(e,n,t){"use strict";(function(e,n){var i=t(4);t(26);i(t(25));var s=i(t(120));e.__webpack_require_UNI_MP_PLUGIN__=t,n(s.default)}).call(this,t(1)["default"],t(2)["createPage"])},120:function(e,n,t){"use strict";t.r(n);var i=t(121),s=t(123);for(var o in s)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(o);t(126);var r,a=t(32),u=Object(a["default"])(s["default"],i["render"],i["staticRenderFns"],!1,null,"6ef4aaf6",null,!1,i["components"],r);u.options.__file="packageA/pages/disaster/index.vue",n["default"]=u.exports},121:function(e,n,t){"use strict";t.r(n);var i=t(122);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},122:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return s})),t.d(n,"staticRenderFns",(function(){return r})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return i}));try{i={uniSegmentedControl:function(){return t.e("uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control").then(t.bind(null,198))},uniCard:function(){return t.e("uni_modules/uni-card/components/uni-card/uni-card").then(t.bind(null,233))},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,291))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,183))},uniSwipeAction:function(){return t.e("uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action").then(t.bind(null,302))},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,307))},uniTag:function(){return t.e("uni_modules/uni-tag/components/uni-tag/uni-tag").then(t.bind(null,191))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var s=function(){var e=this,n=e.$createElement;e._self._c},o=!1,r=[];s._withStripped=!0},123:function(e,n,t){"use strict";t.r(n);var i=t(124),s=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=s.a},124:function(e,n,t){"use strict";(function(e){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=i(t(125)),o=function(){t.e("packageA/pages/disaster/components/CreateDisaster").then(function(){return resolve(t(354))}.bind(null,t)).catch(t.oe)},r=function(){t.e("packageA/pages/disaster/components/CreateReservoir").then(function(){return resolve(t(361))}.bind(null,t)).catch(t.oe)},a=function(){Promise.all([t.e("common/vendor"),t.e("packageA/pages/disaster/components/Detail")]).then(function(){return resolve(t(368))}.bind(null,t)).catch(t.oe)},u={components:{CreateDisaster:o,CreateReservoir:r,Detail:a},data:function(){return{tabIdx:0,tabs:["地质灾害点","水库淤堤坝"],items:[],keywords:"",disasterLevels:[],disasterCats:[]}},onShow:function(){this.getData(),this.init()},methods:{changeTab:function(e){var n=e.currentIndex;this.tabIdx!==n&&(this.tabIdx=n,this.getData())},init:function(){var n=this;e.getStorageSync("disasterLevels")?this.disasterLevels=e.getStorageSync("disasterLevels"):s.default.getDisasterLevelByList().then((function(t){e.setStorageSync("disasterLevels",t.data),n.disasterLevels=t.data})),e.getStorageSync("disasterCats")?this.disasterCats=e.getStorageSync("disasterCats"):s.default.getDisasterCatByList().then((function(t){e.setStorageSync("disasterCats",t.data),n.disasterCats=t.data}))},search:function(){this.getData()},getData:function(){var e=this,n=0===this.tabIdx?s.default.getDisasterLocationByList:s.default.getReservoirDamByPage;n({keywords:this.keywords}).then((function(n){e.items=n.data}))},handle:function(n){var t=n.type,i=n.item;if("detail"===t)this.$refs.detail.show(i);else if("del"===t){0===this.tabIdx?s.default.deleteDisasterLocationById:s.default.deleteReservoirDamById;var o=0===this.tabIdx?i.dlId:i.rdId;e.showModal({title:"提示",content:"是否确定删除",success:function(n){n.confirm&&deleteBoundById(o).then((function(){e.showToast({title:"删除成功!",icon:"none"}),self.getData()}))}})}else 0===this.tabIdx?this.$refs.disaster.show(t,i):this.$refs.reservoir.show(t,i)}}};n.default=u}).call(this,t(2)["default"])},126:function(e,n,t){"use strict";t.r(n);var i=t(127),s=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=s.a},127:function(e,n,t){}},[[119,"common/runtime","common/vendor","packageA/common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/packageA/pages/disaster/index.js.map
|