pages-index-detail-detail.8bc20c7d.js 27 KB

123
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-detail-detail"],{"1b57":function(t,e,a){"use strict";a.r(e);var n=a("2a31"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"1da1":function(t,e,a){"use strict";function n(t,e,a,n,i,r,o){try{var s=t[r](o),c=s.value}catch(u){return void a(u)}s.done?e(c):Promise.resolve(c).then(n,i)}a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,a=arguments;return new Promise((function(i,r){var o=t.apply(e,a);function s(t){n(o,i,r,s,c,"next",t)}function c(t){n(o,i,r,s,c,"throw",t)}s(void 0)}))}},a("d3b7")},"20a5":function(t,e,a){var n=a("6e97");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("4193d896",n,!0,{sourceMap:!1,shadowMode:!1})},"24e7":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={base:{dev:"https://api.xazhyc.com",pro:"https://api.xazhyc.com"},appID:"10007",appKey:"82a8bf439373e311",appSecret:"82a8bf439373e311",permitTplId:7,TokenKey:"Authorization"}},"2a31":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("6028"),i=a("c08b"),r=a("97a5"),o=a("d38f"),s={data:function(){return{type:void 0,activeTab:1,user:{},conditions:{page:1,limit:10,status:0},total:0,alertList:[],dangerList:[],taskList:[]}},onLoad:function(t){var e=t.type,a=t.name;this.type=e;var n=uni.getStorageSync("accountInfo");this.user=n,uni.setNavigationBarTitle({title:"".concat(a||"详情")}),this.getData()},methods:{taskStatus:o.taskStatus,taskPriority:o.taskPriority,taskType:o.taskType,alertLevel:o.alertLevel,alertStatus:o.alertStatus,dangerStatus:o.dangerStatus,dangerLevel:o.dangerLevel,getData:function(){"task"===this.type&&this.getTaskByPage(),"danger"===this.type&&(delete this.conditions.status,this.getDangerByPage()),"alert"===this.type&&this.getAlertByPage()},getAlertByPage:function(){var t=this;(0,n.getAlertByPage)(this.conditions).then((function(e){t.alertList=e.data,t.total=e.total}))},getDangerByPage:function(){var t=this;(0,i.getDangerByPage)(this.conditions).then((function(e){t.dangerList=e.data,t.total=e.total}))},getTaskByPage:function(){var t=this;(0,r.getTaskByPage)(this.conditions).then((function(e){t.taskList=e.data,t.total=e.total}))},tabChange:function(t,e){this.activeTab=e,"task"===this.type&&(this.conditions.status=t),"danger"===this.type&&(1===t?this.conditions.curAccountId=this.user.userId:2===t?this.conditions.submitAccountId=this.user.userId:3===t?this.conditions.handleAccountId=this.user.userId:4===t&&(this.conditions.submitAccountId=this.user.userId,this.conditions.status=-1)),"alert"===this.type&&(this.conditions.status=t),this.getData()},onPullDownRefresh:function(){this.activeTab=1,this.conditions={page:1,limit:10},this.total=0,this.alertList=[],this.dangerList=[],this.taskList=[],this.getData(),uni.stopPullDownRefresh()},onReachBottom:function(){this.total>=this.conditions.page*this.conditions.limit&&(this.conditions.page++,this.getData())}}};e.default=s},"4c1f":function(t,e,a){"use strict";(function(t){a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.request=function(t){return l.apply(this,arguments)},a("d3b7");var i=n(a("c7eb")),r=n(a("5530")),o=n(a("1da1")),s=n(a("24e7")),c=a("89ed"),u=s.default.base.pro;function l(){return l=(0,o.default)((0,i.default)().mark((function e(a){return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){try{uni.showLoading({title:"加载中",mask:!0}),uni.request((0,r.default)((0,r.default)({},d(a)),{},{success:function(t){var a=t.data,i=a.code,r=a.msg;200===i?e(a):401===i?uni.showToast({title:"登录失效!",mask:!0,icon:"none",duration:3e3,complete:function(){uni.clearStorageSync(),setTimeout((function(){uni.reLaunch({url:"/pages/login/index"})}),3e3)}}):(n(a),uni.showToast({title:r,mask:!0,duration:3e3,icon:"none"}))},fail:function(t){uni.showToast({title:t,mask:!0,icon:"none"}),n(t)},complete:function(t){uni.hideLoading()}}))}catch(i){t("log",i," at libs/request.js:68"),n(i)}})));case 1:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(t){var e=t.url;e=u+e;var a=(0,r.default)({},t.data),n=(0,r.default)((0,r.default)({},t.header),{},{AppID:s.default.appID,AppKey:s.default.appKey,AppSecret:s.default.appSecret});(0,c.getToken)()&&(n[s.default.TokenKey]=(0,c.getToken)());var i=t.method||"get",o=t.dataType||"json",l={url:e,data:a,header:n,method:i,dataType:o};return l}}).call(this,a("0de9")["log"])},6028:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.cancelAlert=function(t){return(0,n.request)({url:"/alert/cancel/".concat(t),method:"GET"})},e.completeAlert=function(t){return(0,n.request)({url:"/alert/complete",method:"POST",data:t})},e.counterByStatus=function(t){return(0,n.request)({url:"/alert/statis/counterByStatus",method:"GET",data:t})},e.deleteAlertById=function(t){return(0,n.request)({url:"/alert/".concat(t),method:"DELETE"})},e.getAlertById=function(t){return(0,n.request)({url:"/alert/".concat(t),method:"GET"})},e.getAlertByList=function(t){return(0,n.request)({url:"/alert",method:"GET",data:t})},e.getAlertByPage=function(t){return(0,n.request)({url:"/alert/page",method:"GET",data:t})},e.getAlertCounter=function(){return(0,n.request)({url:"/alert/statis/getCounter",method:"GET"})},e.getAlertWaitingByList=function(t){return(0,n.request)({url:"/alert/waiting",method:"GET",data:t})},e.transferAlert=function(t,e){return(0,n.request)({url:"/alert/transfer/".concat(t),method:"POST",data:e})};var n=a("4c1f")},"6e97":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.index-detail-page[data-v-06af1c22]{min-height:100vh;padding-bottom:%?100?%;background-color:#f5f6f8}.index-detail-page .container[data-v-06af1c22]{padding:0 %?32?%}.index-detail-page .container .tab-cont .part .tab[data-v-06af1c22]{display:flex;align-items:center;padding-bottom:%?10?%;overflow-x:auto}.index-detail-page .container .tab-cont .part .tab .tab-item[data-v-06af1c22]{display:inline-block;padding:%?16?% %?20?%;background-color:#fff;text-align:center;flex-shrink:0;line-height:1;font-size:%?32?%;color:#333;border:1px solid #eaeaea;box-sizing:border-box;border-left:0}.index-detail-page .container .tab-cont .part .tab .tab-item.active[data-v-06af1c22]{background-color:#1e80ff;color:#fff;border-color:#1e80ff}.index-detail-page .container .tab-cont .part .part-cont .item[data-v-06af1c22]{background-color:#fff;border-radius:%?12?%;margin-top:%?16?%;padding:%?24?% %?20?%}.index-detail-page .container .tab-cont .part .part-cont .item .title[data-v-06af1c22]{display:flex;justify-content:space-between;align-items:center}.index-detail-page .container .tab-cont .part .part-cont .item .title .name[data-v-06af1c22]{font-size:%?36?%;color:rgba(0,0,0,.8)}.index-detail-page .container .tab-cont .part .part-cont .item .title .state[data-v-06af1c22]{font-size:%?32?%;color:#fa8b37}.index-detail-page .container .tab-cont .part .part-cont .item .tags[data-v-06af1c22]{padding-top:%?24?%}.index-detail-page .container .tab-cont .part .part-cont .item .tags .tag[data-v-06af1c22]{background:#f5f6f8;font-size:%?20?%;margin-left:%?10?%;padding:%?10?% %?20?%}.index-detail-page .container .tab-cont .part .part-cont .item .tags .tag[data-v-06af1c22]:nth-child(1){color:#ea8259;background:#fbf1ed}.index-detail-page .container .tab-cont .part .part-cont .item .time[data-v-06af1c22]{padding-top:%?20?%;font-size:%?28?%;color:rgba(241,57,57,.8)}.index-detail-page .container .tab-cont .part .part-cont .item .bottom[data-v-06af1c22]{display:flex;justify-content:space-between;align-items:center;padding-top:%?20?%}.index-detail-page .container .tab-cont .part .part-cont .item .bottom .user[data-v-06af1c22]{display:flex;align-items:center;font-size:%?24?%;color:#000}.index-detail-page .container .tab-cont .part .part-cont .item .bottom .user .avatar[data-v-06af1c22]{width:%?44?%;margin-right:%?10?%}.index-detail-page .container .tab-cont .part .part-cont .item .bottom .hand-time[data-v-06af1c22]{font-size:%?24?%;color:#000}.index-detail-page .isEmpty[data-v-06af1c22]{width:100%;height:100vh;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9IjM4Ljg1JSIgeTE9IjAlIiB4Mj0iNjEuMTUlIiB5Mj0iMTAwJSI+PHN0b3Agc3RvcC1jb2xvcj0iI0ZDRkNGRCIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiNFRUVGRjMiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJiIiB4MT0iMCUiIHkxPSI5LjUlIiB5Mj0iOTAuNSUiPjxzdG9wIHN0b3AtY29sb3I9IiNGQ0ZDRkQiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRTlFQkVGIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjxwYXRoIGlkPSJjIiBkPSJNMCAwaDE3djM2SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTM5LjUgODZDNjEuMzE1IDg2IDc5IDgzLjkxIDc5IDgxLjMzM1M1Ny4zMTUgNzggMzUuNSA3OCAwIDc4Ljc1NiAwIDgxLjMzM0MwIDgzLjkxMSAxNy42ODUgODYgMzkuNSA4NnoiIGZpbGw9IiNGN0Y4RkMiLz48cGF0aCBmaWxsPSIjRTVFN0U5IiBkPSJNMTMgNDVoNDBMNDIgNThIMnptNTIuNTUxLTE1LjAybC0xNi4zMTMtNy42MDctMi44NDEtNS43MzggMTYuMzEzIDcuNjA3eiIvPjxwYXRoIGZpbGw9IiNFREVFRjIiIGQ9Ik02NS41NTEgMjkuOThsLTM0LjQ0LTE2LjA1OS0xNS4yMTQgMzIuNjI3IDM0LjQ0IDE2LjA2eiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIHRyYW5zZm9ybT0icm90YXRlKDI1IDI3LjQ0NiAtNDMuNDE2KSIgZD0iTTM4IDdoMTd2MzZIMzh6Ii8+PHBhdGggZmlsbD0iI0Y4RjlGQiIgZD0iTTE1LjcwNSA2LjczN2wxNS40MDcgNy4xODQgMTUuNjQ2LS40MjctMTUuNDA3LTcuMTg1eiIvPjxwYXRoIGZpbGw9InVybCgjYikiIGQ9Ik0xMyA0NWg0MHYzNkgxM3oiLz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MyA0NSkiPjxtYXNrIGlkPSJkIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNjIi8+PC9tYXNrPjx1c2UgZmlsbD0iI0UwRTNFOSIgdHJhbnNmb3JtPSJtYXRyaXgoLTEgMCAwIDEgMTcgMCkiIHhsaW5rOmhyZWY9IiNjIi8+PHBhdGggZmlsbD0iI0Q1RDdERSIgbWFzaz0idXJsKCNkKSIgdHJhbnNmb3JtPSJtYXRyaXgoLTEgMCAwIDEgMjQgMCkiIGQ9Ik03IDBoMTdsLTQgMTgtMjAtMnoiLz48L2c+PHBhdGggZmlsbD0iI0Y4RjlGQiIgZD0iTTcwIDQ1SDUzbDkgMTNoMTd6Ii8+PC9nPjwvc3ZnPg==);background-size:contain;background-repeat:no-repeat;position:relative;background-color:#fff;height:calc(100vh - 100px)}.index-detail-page .isEmpty .word[data-v-06af1c22]{width:100%;text-align:center;position:absolute;top:80vh;left:0;color:#999;font-size:%?28?%;letter-spacing:%?2?%}',""]),t.exports=e},"89ed":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getToken=function(){return uni.getStorageSync(r)},e.removeToken=function(){return uni.removeStorageSync(r)},e.setToken=function(t){return uni.setStorageSync(r,t)};var i=n(a("24e7")),r=i.default.TokenKey},"90e1":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"index-detail-page"},[a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"tab-cont"},["task"===t.type?a("v-uni-view",{staticClass:"part"},[a("v-uni-view",{staticClass:"tab"},[a("v-uni-view",{staticClass:"tab-item",class:1===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(0,1)}}},[t._v("待处理")]),a("v-uni-view",{staticClass:"tab-item",class:2===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(1,2)}}},[t._v("已完成")]),a("v-uni-view",{staticClass:"tab-item",class:3===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(-1,3)}}},[t._v("已撤销")])],1),a("v-uni-view",{staticClass:"part-cont"},t._l(t.taskList,(function(e){return a("v-uni-view",{key:e.taskId,staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(e.taskTitle))]),a("v-uni-view",{staticClass:"state"},[t._v(t._s(t.taskStatus(e.status)))])],1),a("v-uni-view",{staticClass:"tags"},[a("v-uni-text",{staticClass:"tag"},[t._v(t._s(t.taskPriority(e.taskPriority)))]),a("v-uni-text",{staticClass:"tag"},[t._v(t._s(e.taskCatTitle))]),a("v-uni-text",{staticClass:"tag"},[t._v(t._s(t.taskType(e.taskTypeId)))])],1),a("v-uni-view",{staticClass:"time"},[t._v("预期结束时间:"+t._s(e.expectedEndTime))]),a("v-uni-view",{staticClass:"bottom"},[a("v-uni-view",{staticClass:"user"},[a("v-uni-image",{staticClass:"avatar",attrs:{src:"/static/index/user.png",mode:"widthFix"}}),t._v("处理人:"+t._s(e.handleAccountName))],1),a("v-uni-view",{staticClass:"hand-time"},[t._v(t._s(e.launchTime))])],1)],1)})),1)],1):t._e(),"alert"===t.type?a("v-uni-view",{staticClass:"part"},[a("v-uni-view",{staticClass:"tab"},[a("v-uni-view",{staticClass:"tab-item",class:1===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(0,1)}}},[t._v("待处理")]),a("v-uni-view",{staticClass:"tab-item",class:2===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(1,2)}}},[t._v("已处理")]),a("v-uni-view",{staticClass:"tab-item",class:3===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(-1,3)}}},[t._v("已撤销")])],1),a("v-uni-view",{staticClass:"part-cont"},t._l(t.alertList,(function(e){return a("v-uni-view",{key:e.alertId,staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(e.alertTitle))]),a("v-uni-view",{staticClass:"state"},[t._v(t._s(t.alertStatus(e.status)))])],1),a("v-uni-view",{staticClass:"tags"},[a("v-uni-text",{staticClass:"tag"},[t._v(t._s(t.alertLevel(e.alertLevel)))])],1),a("v-uni-view",{staticClass:"time"},[t._v("发生时间:"+t._s(e.alertTime))]),a("v-uni-view",{staticClass:"bottom"},[a("v-uni-view",{staticClass:"user"},[a("v-uni-image",{staticClass:"avatar",attrs:{src:"/static/index/user.png",mode:"widthFix"}}),t._v("处理人:"+t._s(e.handleAccountName))],1),a("v-uni-view",{staticClass:"hand-time"},[t._v(t._s(e.handleTime))])],1)],1)})),1)],1):t._e(),"danger"===t.type?a("v-uni-view",{staticClass:"part"},[a("v-uni-view",{staticClass:"tab"},[a("v-uni-view",{staticClass:"tab-item",class:1===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(0,1)}}},[t._v("待处理")]),a("v-uni-view",{staticClass:"tab-item",class:2===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(1,2)}}},[t._v("我提交")]),a("v-uni-view",{staticClass:"tab-item",class:3===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(1,3)}}},[t._v("我处理")]),a("v-uni-view",{staticClass:"tab-item",class:4===t.activeTab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(-1,4)}}},[t._v("我撤销")])],1),a("v-uni-view",{staticClass:"part-cont"},t._l(t.dangerList,(function(e){return a("v-uni-view",{key:e.dangerId,staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(e.dangerTitle))]),a("v-uni-view",{staticClass:"state"},[t._v(t._s(t.dangerStatus(e.status)))])],1),a("v-uni-view",{staticClass:"tags"},[a("v-uni-text",{staticClass:"tag"},[t._v(t._s(t.dangerLevel(e.dangerLevel)))]),a("v-uni-text",{staticClass:"tag"},[t._v(t._s(e.dangerCatTitle))])],1),a("v-uni-view",{staticClass:"time"},[t._v("预期结束时间:"+t._s(e.dangerDeadLine))]),a("v-uni-view",{staticClass:"bottom"},[a("v-uni-view",{staticClass:"user"},[a("v-uni-image",{staticClass:"avatar",attrs:{src:"/static/index/user.png",mode:"widthFix"}}),t._v("处理人:"+t._s(e.curAccountName))],1),a("v-uni-view",{staticClass:"hand-time"},[t._v(t._s(e.submitTime))])],1)],1)})),1)],1):t._e()],1)],1),t.total<1?[a("v-uni-view",{staticClass:"isEmpty"},[a("p",{staticClass:"word"},[t._v("没有数据 ^_^")])])]:t._e()],2)},i=[]},"97a5":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.cancelTask=function(t){return(0,n.request)({url:"/task/cancel/".concat(t),method:"PUT"})},e.createTask=function(t){return(0,n.request)({url:"/task/add",method:"POST",data:t})},e.deleteTaskById=function(t){return(0,n.request)({url:"/task/".concat(t),method:"DELETE"})},e.getRecentTaskByList=function(t){return(0,n.request)({url:"/task/recent",method:"GET",data:t})},e.getTaskById=function(t){return(0,n.request)({url:"/task/".concat(t),method:"GET"})},e.getTaskByList=function(t){return(0,n.request)({url:"/task",method:"GET",data:t})},e.getTaskByPage=function(t){return(0,n.request)({url:"/task/page",method:"GET",data:t})},e.getWaitingTaskByList=function(t){return(0,n.request)({url:"/task/waiting",method:"GET",data:t})},e.handleTask=function(t){return(0,n.request)({url:"/task/handle/".concat(t),method:"PUT"})},e.transferTask=function(t){return(0,n.request)({url:"/task/transfer",method:"PUT",data:t})},e.updateTask=function(t){return(0,n.request)({url:"/task/update",method:"PUT",data:t})};var n=a("4c1f")},"9eb6":function(t,e,a){"use strict";a.r(e);var n=a("90e1"),i=a("1b57");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("ddeb");var o=a("f0c5"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"06af1c22",null,!1,n["a"],void 0);e["default"]=s.exports},c08b:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.deleteDangerById=function(t){return(0,n.request)({url:"/danger/".concat(t),method:"DELETE"})},e.getDangerById=function(t){return(0,n.request)({url:"/danger/".concat(t),method:"GET"})},e.getDangerByList=function(t){return(0,n.request)({url:"/danger",method:"GET",data:t})},e.getDangerByPage=function(t){return(0,n.request)({url:"/danger/page",method:"GET",data:t})},e.getDangerWaitingByList=function(t){return(0,n.request)({url:"/danger/waiting",method:"GET",data:t})},e.getRecentDangerByList=function(t){return(0,n.request)({url:"/danger/recent",method:"GET",data:t})},e.handleDanger=function(t){return(0,n.request)({url:"/danger/handle",method:"POST",data:t})};var n=a("4c1f")},c7eb:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
  2. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  3. e.default=function(){return t};var t={},a=Object.prototype,i=a.hasOwnProperty,r=Object.defineProperty||function(t,e,a){t[e]=a.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(M){l=function(t,e,a){return t[e]=a}}function d(t,e,a,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new C(n||[]);return r(o,"_invoke",{value:I(t,a,s)}),o}function f(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(M){return{type:"throw",arg:M}}}t.wrap=d;var v={};function g(){}function h(){}function p(){}var m={};l(m,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(j([])));b&&b!==a&&i.call(b,s)&&(m=b);var w=p.prototype=g.prototype=Object.create(m);function T(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){var a;r(this,"_invoke",{value:function(r,o){function s(){return new e((function(a,s){(function a(r,o,s,c){var u=f(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==(0,n.default)(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,c)}))}c(u.arg)})(r,o,a,s)}))}return a=a?a.then(s,s):s()}})}function I(t,e,a){var n="suspendedStart";return function(i,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw r;return P()}for(a.method=i,a.arg=r;;){var o=a.delegate;if(o){var s=x(o,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===n)throw n="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n="executing";var c=f(t,e,a);if("normal"===c.type){if(n=a.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(n="completed",a.method="throw",a.arg=c.arg)}}}function x(t,e){var a=e.method,n=t.iterator[a];if(void 0===n)return e.delegate=null,"throw"===a&&t.iterator["return"]&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==a&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function j(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,n=function e(){for(;++a<t.length;)if(i.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=p,r(w,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},T(k.prototype),l(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,a,n,i,r){void 0===r&&(r=Promise);var o=new k(d(e,a,n,i),r);return t.isGeneratorFunction(a)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},T(w),l(w,u,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),a=[];for(var n in e)a.push(n);return a.reverse(),function t(){for(;a.length;){var n=a.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(a,n){return o.type="throw",o.arg=t,e.next=a,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],o=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var s=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(s&&c){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,v):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),_(a),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var n=a.completion;if("throw"===n.type){var i=n.arg;_(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:j(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=void 0),v}},t},a("7a82"),a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),a("b636"),a("944a"),a("0c47"),a("23dc"),a("3410"),a("d9e2"),a("d401"),a("14d9"),a("159b"),a("131a"),a("26e9"),a("fb6a");var n=function(t){return t&&t.__esModule?t:{default:t}}(a("53ca"))},d38f:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.alertLevel=function(t){return["未知","1级","2级","3级","4级","5级","6级"][t]},e.alertStatus=function(t){if(t>=0){return["待处理","已处理"][t]}return"已撤销"},e.checkResult=function(t){return["没执行","通过","没通过","有隐患","已完成"][t]},e.dangerLevel=function(t){return["未知","重大","较大","严重","一般"][t]},e.dangerRectifyCat=function(t){return["自行整改","外协整改"][t]},e.dangerSource=function(t){return["自查","内部反馈","上级抽查","政府执法"][t]},e.dangerStatus=function(t){if(t>=0){return["待提交","待评审","待整改","待验收","已整改"][t]}return"已撤销"},e.rectifyCat=function(t){return["自行整改","外协整改"][t]},e.riskLevel=function(t){return["默认","重大","较大","一般","较小"][t]},e.riskPointLevel=function(t){return["默认","重大","较大","一般","较小"][t]},e.riskPointStatus=function(t){return["未知","安全受控","失控"][t]},e.riskType=function(t){return["默认","人","物","管"][t]},e.taskPriority=function(t){return["未知","较低","普通","紧急","非常紧急"][t]},e.taskStatus=function(t){return-1===t?"已撤消":["待处理","已完成"][t]},e.taskType=function(t){return["未知","常规","审批任务","巡检任务"][t]},e.wfInsStatus=function(t){if(t>=0){return["未开始","执行中","已完成"][t]}return"已撤销"},e.wfTaskInsStatus=function(t){return["未开始","已完成"][t]}},ddeb:function(t,e,a){"use strict";var n=a("20a5"),i=a.n(n);i.a}}]);