Detail.js 4.9 KB

1234567891011
  1. require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["packageA/pages/danger/components/Detail"],{326:function(e,n,t){"use strict";t.r(n);var r=t(327),i=t(329);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t(331);var a,u=t(32),c=Object(u["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,"69aeb6bf",null,!1,r["components"],a);c.options.__file="packageA/pages/danger/components/Detail.vue",n["default"]=c.exports},327:function(e,n,t){"use strict";t.r(n);var r=t(328);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},328:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return r}));try{r={uniPopup:function(){return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null,261))},uniSection:function(){return t.e("uni_modules/uni-section/components/uni-section/uni-section").then(t.bind(null,160))},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))},uniList:function(){return t.e("uni_modules/uni-list/components/uni-list/uni-list").then(t.bind(null,247))},uniListItem:function(){return t.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(t.bind(null,254))}}}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 i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.formatDangerLevel(e.viewData.dangerLevel)),r=e.viewData.attachList&&e.viewData.attachList.length>0,i=e.viewData.rectifyCat?e.formatRectifyCat(e.viewData.rectifyCat):null;e.$mp.data=Object.assign({},{$root:{m0:t,g0:r,m1:i}})},o=!1,a=[];i._withStripped=!0},329:function(e,n,t){"use strict";t.r(n);var r=t(330),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},330:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(11)),o=r(t(58));function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var c={name:"DisasteDetail",props:{type:{type:[String,Number],default:"dl"}},data:function(){return{viewData:{entId:void 0,dangerId:0,dangerCatId:1,dangerCatTitle:"",dangerTitle:"",dangerTags:"",dangerCode:"",dangerLocation:"",dangerLevel:2,dangerDesc:"",submitTime:"",submitRemark:"",dangerDeadLine:"",rectifyTime:"",dangerReason:"",rectifyCat:1,rectifyRemark:"",acceptTime:"",acceptRemark:"",finishTime:"",status:0,attachList:[],supervisorList:[]}}},methods:{formatDangerLevel:function(e){var n=["末知","重大","较大","一般","较小"];return n[e]},formatRectifyCat:function(e){var n=["自行整改","外协整改"];return n[e]},show:function(e){var n=this;this.$refs.popup.open("bottom"),o.default.getById(e.dangerId).then((function(e){n.viewData=u({},e.data)}))},preview:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.length>0&&(n=n.map((function(e){return e.attachUrl})),e.previewImage({urls:n}))},close:function(){this.$refs.popup.close()}}};n.default=c}).call(this,t(2)["default"])},331:function(e,n,t){"use strict";t.r(n);var r=t(332),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},332:function(e,n,t){}}]);
  2. //# sourceMappingURL=../../../../../.sourcemap/mp-weixin/packageA/pages/danger/components/Detail.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'packageA/pages/danger/components/Detail-create-component',
  5. {
  6. 'packageA/pages/danger/components/Detail-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(326))
  8. })
  9. },
  10. [['packageA/pages/danger/components/Detail-create-component']]
  11. ]);