1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0b5d":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/* 文章场景相关 */.uni-noticebar[data-v-0ed41684]{display:flex;width:100%;box-sizing:border-box;flex-direction:row;align-items:center;padding:10px 12px;margin-bottom:10px}.uni-cursor-point[data-v-0ed41684]{cursor:pointer}.uni-noticebar-close[data-v-0ed41684]{margin-left:8px;margin-right:5px}.uni-noticebar-icon[data-v-0ed41684]{margin-right:5px}.uni-noticebar__content-wrapper[data-v-0ed41684]{flex:1;flex-direction:column;overflow:hidden}.uni-noticebar__content-wrapper--single[data-v-0ed41684]{line-height:18px}.uni-noticebar__content-wrapper--single[data-v-0ed41684],\r\n.uni-noticebar__content-wrapper--scrollable[data-v-0ed41684]{flex-direction:row}.uni-noticebar__content-wrapper--scrollable[data-v-0ed41684]{position:relative}.uni-noticebar__content--scrollable[data-v-0ed41684]{flex:1;display:block;overflow:hidden}.uni-noticebar__content--single[data-v-0ed41684]{display:flex;flex:none;width:100%;justify-content:center}.uni-noticebar__content-text[data-v-0ed41684]{font-size:14px;line-height:18px;word-break:break-all}.uni-noticebar__content-text--single[data-v-0ed41684]{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uni-noticebar__content-text--scrollable[data-v-0ed41684]{position:absolute;display:block;height:18px;line-height:18px;white-space:nowrap;padding-left:100%;-webkit-animation:notice-data-v-0ed41684 10s 0s linear infinite both;animation:notice-data-v-0ed41684 10s 0s linear infinite both;-webkit-animation-play-state:paused;animation-play-state:paused}.uni-noticebar__more[data-v-0ed41684]{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;padding-left:5px}@-webkit-keyframes notice-data-v-0ed41684{100%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes notice-data-v-0ed41684{100%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}',""]),t.exports=e},"289e":function(t,e,a){"use strict";a.r(e);var n=a("9bc2"),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},3028:function(t,e,a){"use strict";a.r(e);var n=a("f96b"),i=a("3d8f");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("e39a");var s=a("f0c5"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"0ed41684",null,!1,n["a"],void 0);e["default"]=o.exports},"3d8f":function(t,e,a){"use strict";a.r(e);var n=a("e511"),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},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")},6480:function(t,e,a){"use strict";var n=a("77eb"),i=a.n(n);i.a},"74cb":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.getArtByList=function(t){return(0,n.request)({url:"/art",method:"GET",data:t})},e.getArtByPage=function(t){return(0,n.request)({url:"/art/page",method:"GET",data:t})},e.getArtCatTop=function(t){return(0,n.request)({url:"/art/cat/top",method:"GET",data:t})},e.getNotices=function(t){return(0,n.request)({url:"/art/page",data:t})},e.getRecentArtByList=function(t){return(0,n.request)({url:"/art/recent",method:"GET",data:t})},e.getRecentListByArtCatAndLimit=function(t,e){return(0,n.request)({url:"/art/recent/".concat(t,"/").concat(e),method:"GET"})},e.getRecentListByLimit=function(t){return(0,n.request)({url:"/art/recent/".concat(t),method:"GET"})},a("99af");var n=a("4c1f")},"752a":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={uniNoticeBar:a("3028").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"index-page "},[a("v-uni-view",{staticClass:"header custom_status_bar"},[a("v-uni-view",{staticClass:"status_bar"},[a("div",{staticClass:"name"},[t._v("工作台")]),a("div",{staticClass:"actions"},[a("div",{staticClass:"message",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.linkToMessage.apply(void 0,arguments)}}},[t.user.userAvatar?a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/message.png",mode:"widthFix"}}):t._e()],1),a("div",{staticClass:"scan",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.scanQrcode.apply(void 0,arguments)}}},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/scanner.png",mode:"widthFix"}}),a("v-uni-text",{staticClass:"icon-name"},[t._v("扫一扫")])],1)])]),a("v-uni-view",{staticClass:"user-info"},[a("div",{staticClass:"company"},[a("v-uni-text",{staticClass:"company-name"},[t._v(t._s(t.user.ocName))]),a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/company.png",mode:"widthFix"}})],1),a("div",{staticClass:"user"},[a("v-uni-view",{staticClass:"avatar-box"},[t.user.userAvatar?a("v-uni-image",{staticClass:"avatar",attrs:{src:t.user.userAvatar,mode:"widthFix"},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.userAvatar=t.defaultAvatar}}}):a("v-uni-image",{staticClass:"avatar",attrs:{src:t.defaultAvatar,mode:"widthFix"}})],1),a("v-uni-view",{staticClass:"info"},[a("v-uni-view",{staticClass:"user-name"},[t._v(t._s(t.user.userName))]),a("v-uni-view",{staticClass:"user-position"},[t._v(t._s(t.user.positionName))])],1)],1)])],1),a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"cont"},[a("div",{staticClass:"container-wrap"},[a("div",{staticClass:"notice"},[a("div",{staticClass:"notice-name"},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/notice.png",mode:"widthFix"}}),a("v-uni-text",[t._v("最近动态")])],1),t.showNotice?a("div",{staticClass:"notice-cont"},[a("uni-notice-bar",{ref:"uni-notice-bar",attrs:{scrollable:!0,text:t.notice,"background-color":"#fff0",speed:50,color:"#333"}})],1):t._e()]),a("v-uni-view",{staticClass:"tab"},[a("div",{staticClass:"tab-item"},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/tab1.png",mode:"widthFix"}}),a("v-uni-view",{staticClass:"tab-name"},[t._v("待办任务 "+t._s(t.taskTotal>99?"99+":t.taskTotal)+" 个")])],1),a("div",{staticClass:"tab-item"},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/tab2.png",mode:"widthFix"}}),a("v-uni-view",{staticClass:"tab-name"},[t._v("告警事件 "+t._s(t.alertTotal>99?"99+":t.alertTotal)+"个")])],1),a("div",{staticClass:"tab-item"},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/tab3.png",mode:"widthFix"}}),a("v-uni-view",{staticClass:"tab-name"},[t._v("待处理隐患 "+t._s(t.dangerTotal>99?"99+":t.dangerTotal)+"个")])],1)]),a("v-uni-view",{staticClass:"tab-cont"},[t.taskList.length>0?a("div",{staticClass:"part"},[a("div",{staticClass:"head"},[a("v-uni-text",{staticClass:"head-name"},[t._v("待办任务")]),a("v-uni-view",{staticClass:"more",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.linkTo("task","待办任务")}}},[t._v("更多")])],1),a("div",{staticClass:"part-cont"},t._l(t.taskList,(function(e){return a("div",{key:e.taskId,staticClass:"item"},[a("div",{staticClass:"title"},[a("div",{staticClass:"name"},[t._v(t._s(e.taskTitle))]),a("v-uni-view",{staticClass:"state"},[t._v(t._s(t.taskStatus(e.status)))])],1),a("div",{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("div",{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)})),0)]):t._e(),t.alertList.length>0?a("div",{staticClass:"part"},[a("div",{staticClass:"head"},[a("v-uni-text",{staticClass:"head-name"},[t._v("告警事件")]),a("v-uni-view",{staticClass:"more",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.linkTo("alert","告警事件")}}},[t._v("更多")])],1),a("div",{staticClass:"part-cont"},t._l(t.alertList,(function(e){return a("div",{key:e.alertId,staticClass:"item"},[a("div",{staticClass:"title"},[a("div",{staticClass:"name"},[t._v(t._s(e.alertTitle))]),a("v-uni-view",{staticClass:"state"},[t._v(t._s(t.alertStatus(e.status)))])],1),a("div",{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("div",{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)})),0)]):t._e(),t.dangerList.length>0?a("div",{staticClass:"part"},[a("div",{staticClass:"head"},[a("v-uni-text",{staticClass:"head-name"},[t._v("待处理隐患")]),a("v-uni-view",{staticClass:"more",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.linkTo("danger","待处理隐患")}}},[t._v("更多")])],1),a("div",{staticClass:"part-cont"},t._l(t.dangerList,(function(e){return a("div",{key:e.dangerId,staticClass:"item"},[a("div",{staticClass:"title"},[a("div",{staticClass:"name"},[t._v(t._s(e.dangerTitle))]),a("v-uni-view",{staticClass:"state"},[t._v(t._s(t.dangerStatus(e.status)))])],1),a("div",{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("div",{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)})),0)]):t._e()])],1)])],1)],1)},r=[]},"77eb":function(t,e,a){var n=a("b448");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("c6af5c08",n,!0,{sourceMap:!1,shadowMode:!1})},"866d":function(t,e,a){var n=a("0b5d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("14e7a0f4",n,!0,{sourceMap:!1,shadowMode:!1})},"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")},"9bc2":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("99af");var n=a("74cb"),i=a("6028"),r=a("c08b"),s=a("97a5"),o=a("d38f"),c={data:function(){return{applist:[],defaultAvatar:"/static/components/avatar.png",showNotice:!1,notice:"",user:{groupName:"",ocName:"",positionName:"",roleName:"",userAvatar:"",userIntro:"",userName:"",userPhone:"",userPhoto:"",userRealName:""},alertList:[],dangerList:[],taskList:[],alertTotal:0,dangerTotal:0,taskTotal:0}},created:function(){this.getData()},onPullDownRefresh:function(){this.getData(),uni.stopPullDownRefresh()},methods:{taskStatus:o.taskStatus,taskPriority:o.taskPriority,taskType:o.taskType,alertLevel:o.alertLevel,alertStatus:o.alertStatus,dangerStatus:o.dangerStatus,dangerLevel:o.dangerLevel,scanQrcode:function(){uni.scanCode({onlyFromCamera:!0,success:function(t){uni.setStorageSync("qrcode",t.result);uni.navigateTo({url:"/pages/webview/webview?type=scan&name=扫码处理"})},fail:function(t){uni.showToast({icon:"none",title:"扫码失败"})}})},linkToMessage:function(){uni.navigateTo({url:"/pages/message/message"})},getData:function(){var t=this,e=uni.getStorageSync("accountInfo");e&&(this.user=e);var a="";n.getRecentListByLimit,(0,n.getArtByList)(3).then((function(e){for(var n=0;n<e.data.length;n++)a+="".concat(e.data[n].artTitle," 发布时间:").concat(e.data[n].issuedAt,";");t.notice=a,t.showNotice=!0,t.$nextTick((function(){t.$refs["uni-notice-bar"].initSize()}))}));var o={page:1,limit:5,status:0,handleAccountId:e.userId};(0,i.getAlertByPage)(o).then((function(e){t.alertList=e.data,t.alertTotal=e.total})),(0,r.getDangerByPage)({page:1,limit:5,curAccountId:e.userId}).then((function(e){t.dangerList=e.data,t.dangerTotal=e.total})),(0,s.getTaskByPage)(o).then((function(e){t.taskList=e.data,t.taskTotal=e.total}))},linkTo:function(t,e){uni.navigateTo({url:"/pages/index/detail/detail?type=".concat(t,"&name=").concat(e)})}}};e.default=c},b448: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-page[data-v-1d4c8e90]{min-height:100vh;background-color:#f5f6f8}.index-page .header[data-v-1d4c8e90]{height:%?400?%;background-image:url(/static/index/bg.png);background-repeat:no-repeat;background-size:100% 100%}.index-page .header .status_bar[data-v-1d4c8e90]{padding:0 %?32?%;height:%?88?%;display:flex;justify-content:space-between;align-items:center}.index-page .header .status_bar .name[data-v-1d4c8e90]{font-size:%?40?%;font-weight:600;color:#000}.index-page .header .status_bar .actions[data-v-1d4c8e90]{display:flex;align-items:center}.index-page .header .status_bar .actions .message .icon[data-v-1d4c8e90]{display:inline-block;width:%?32?%}.index-page .header .status_bar .actions .scan[data-v-1d4c8e90]{width:%?144?%;height:%?48?%;border-radius:%?20?%;background-color:#fff;display:flex;justify-content:center;align-items:center;margin-left:%?32?%}.index-page .header .status_bar .actions .scan .icon[data-v-1d4c8e90]{display:inline-block;width:%?28?%}.index-page .header .status_bar .actions .scan .icon-name[data-v-1d4c8e90]{font-size:%?24?%;color:#000;padding-left:%?10?%}.index-page .header .user-info[data-v-1d4c8e90]{width:%?686?%;height:%?228?%;background:linear-gradient(180deg,#7ab2ff,#808eff);margin:0 auto;border-radius:16px;margin-top:%?24?%;padding:24px %?22?% 0 %?30?%;box-sizing:border-box}.index-page .header .user-info .company[data-v-1d4c8e90]{display:flex;justify-content:flex-end;align-items:center}.index-page .header .user-info .company .company-name[data-v-1d4c8e90]{padding-right:%?10?%;font-size:%?28?%;color:#fff}.index-page .header .user-info .company .icon[data-v-1d4c8e90]{display:block;width:%?40?%;height:%?40?%}.index-page .header .user-info .user[data-v-1d4c8e90]{display:flex;align-items:center}.index-page .header .user-info .user .avatar-box[data-v-1d4c8e90]{width:%?72?%;height:%?72?%;border-radius:50%}.index-page .header .user-info .user .avatar-box .avatar[data-v-1d4c8e90]{display:block;width:%?72?%;height:%?72?%;border-radius:50%}.index-page .header .user-info .user .info[data-v-1d4c8e90]{padding-left:%?24?%}.index-page .header .user-info .user .info .user-name[data-v-1d4c8e90]{font-size:%?32?%;color:#fff}.index-page .header .user-info .user .info .user-position[data-v-1d4c8e90]{font-size:%?24?%;color:#fff;opacity:.6;padding-top:%?8?%}.index-page .container[data-v-1d4c8e90]{position:relative;width:%?750?%}.index-page .container .cont[data-v-1d4c8e90]{width:%?750?%;max-height:1200px;position:absolute;overflow:auto;background-image:url(/static/index/bg-bottom.png);background-repeat:no-repeat;background-size:100% 1200px;background-position:0 0;box-sizing:border-box;top:-45px;margin-top:0;left:0}.index-page .container .cont .container-wrap[data-v-1d4c8e90]{padding:0 %?32?%;background-color:#f5f6f8;padding-bottom:%?180?%}.index-page .container .cont .notice[data-v-1d4c8e90]{height:%?84?%;background-color:#f5f6f8;margin-top:%?48?%;border-radius:%?8?%;display:flex;justify-content:space-between;align-items:center;box-shadow:0 10px 10px -4px rgba(45,54,67,.2);padding:0 %?32?%}.index-page .container .cont .notice .notice-name[data-v-1d4c8e90]{font-weight:600;font-size:%?24?%;color:rgba(0,0,0,.9)}.index-page .container .cont .notice .notice-name .icon[data-v-1d4c8e90]{width:%?22?%;margin-right:%?8?%}.index-page .container .cont .notice .notice-cont[data-v-1d4c8e90]{width:%?500?%;height:%?80?%;flex:1;font-size:%?28?%;color:rgba(0,0,0,.9)}.index-page .container .cont .tab[data-v-1d4c8e90]{display:flex;justify-content:center;align-items:center;padding:%?40?% 0 %?20?% 0}.index-page .container .cont .tab .tab-item[data-v-1d4c8e90]{width:33.33%;height:%?150?%;display:flex;justify-content:center;align-items:center;flex-direction:column}.index-page .container .cont .tab .tab-item .icon[data-v-1d4c8e90]{width:%?96?%}.index-page .container .cont .tab .tab-item .tab-name[data-v-1d4c8e90]{font-size:%?28?%;color:rgba(0,0,0,.9);padding-top:%?12?%}.index-page .container .cont .tab-cont .part .head[data-v-1d4c8e90]{padding-top:%?20?%;display:flex;justify-content:space-between;align-items:center}.index-page .container .cont .tab-cont .part .head .head-name[data-v-1d4c8e90]{font-size:%?32?%;font-weight:600;color:rgba(0,0,0,.9)}.index-page .container .cont .tab-cont .part .head .more[data-v-1d4c8e90]{font-size:%?24?%;color:#6e7480}.index-page .container .cont .tab-cont .part .part-cont .item[data-v-1d4c8e90]{background-color:#fff;border-radius:%?12?%;margin-top:%?16?%;padding:%?24?% %?20?%}.index-page .container .cont .tab-cont .part .part-cont .item .title[data-v-1d4c8e90]{display:flex;justify-content:space-between;align-items:center}.index-page .container .cont .tab-cont .part .part-cont .item .title .name[data-v-1d4c8e90]{font-size:%?36?%;color:rgba(0,0,0,.8)}.index-page .container .cont .tab-cont .part .part-cont .item .title .state[data-v-1d4c8e90]{font-size:%?32?%;color:#fa8b37}.index-page .container .cont .tab-cont .part .part-cont .item .tags[data-v-1d4c8e90]{padding-top:%?24?%}.index-page .container .cont .tab-cont .part .part-cont .item .tags .tag[data-v-1d4c8e90]{background:#f5f6f8;font-size:%?20?%;margin-left:%?10?%;padding:%?10?% %?20?%}.index-page .container .cont .tab-cont .part .part-cont .item .tags .tag[data-v-1d4c8e90]:nth-child(1){color:#ea8259;background:#fbf1ed}.index-page .container .cont .tab-cont .part .part-cont .item .time[data-v-1d4c8e90]{padding-top:%?20?%;font-size:%?28?%;color:rgba(241,57,57,.8)}.index-page .container .cont .tab-cont .part .part-cont .item .bottom[data-v-1d4c8e90]{display:flex;justify-content:space-between;align-items:center;padding-top:%?20?%}.index-page .container .cont .tab-cont .part .part-cont .item .bottom .user[data-v-1d4c8e90]{display:flex;align-items:center;font-size:%?24?%;color:#000}.index-page .container .cont .tab-cont .part .part-cont .item .bottom .user .avatar[data-v-1d4c8e90]{width:%?44?%;margin-right:%?10?%}.index-page .container .cont .tab-cont .part .part-cont .item .bottom .hand-time[data-v-1d4c8e90]{font-size:%?24?%;color:#000}',""]),t.exports=e},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")},c476:function(t,e,a){"use strict";a.r(e);var n=a("752a"),i=a("289e");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("6480");var s=a("f0c5"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"1d4c8e90",null,!1,n["a"],void 0);e["default"]=o.exports},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]}},e39a:function(t,e,a){"use strict";var n=a("866d"),i=a.n(n);i.a},e511:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("d401"),a("d3b7"),a("25f0"),a("ac1f"),a("14d9"),a("3ca3"),a("ddb0");var n={name:"UniNoticeBar",emits:["click","getmore","close"],props:{text:{type:String,default:""},moreText:{type:String,default:""},backgroundColor:{type:String,default:"#FFF9EA"},speed:{type:Number,default:100},color:{type:String,default:"#FF9A43"},fontSize:{type:Number,default:14},moreColor:{type:String,default:"#FF9A43"},single:{type:[Boolean,String],default:!1},scrollable:{type:[Boolean,String],default:!1},showIcon:{type:[Boolean,String],default:!1},showGetMore:{type:[Boolean,String],default:!1},showClose:{type:[Boolean,String],default:!1}},data:function(){var t="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36)),e="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36));return{textWidth:0,boxWidth:0,wrapWidth:"",webviewHide:!1,elId:t,elIdBox:e,show:!0,animationDuration:"none",animationPlayState:"paused",animationDelay:"0s"}},computed:{isShowGetMore:function(){return!0===this.showGetMore||"true"===this.showGetMore},isShowClose:function(){return(!0===this.showClose||"true"===this.showClose)&&(!1===this.showGetMore||"false"===this.showGetMore)}},mounted:function(){var t=this;this.$nextTick((function(){t.initSize()}))},methods:{initSize:function(){var t=this;if(this.scrollable){var e=[],a=new Promise((function(e,a){uni.createSelectorQuery().in(t).select("#".concat(t.elId)).boundingClientRect().exec((function(a){t.textWidth=a[0].width,e()}))})),n=new Promise((function(e,a){uni.createSelectorQuery().in(t).select("#".concat(t.elIdBox)).boundingClientRect().exec((function(a){t.boxWidth=a[0].width,e()}))}));e.push(a),e.push(n),Promise.all(e).then((function(){t.animationDuration="".concat(t.textWidth/t.speed,"s"),t.animationDelay="-".concat(t.boxWidth/t.speed,"s"),setTimeout((function(){t.animationPlayState="running"}),1e3)}))}},loopAnimation:function(){},clickMore:function(){this.$emit("getmore")},close:function(){this.show=!1,this.$emit("close")},onClick:function(){this.$emit("click")}}};e.default=n},f96b:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={uniIcons:a("4d57").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.show?a("v-uni-view",{staticClass:"uni-noticebar",style:{backgroundColor:t.backgroundColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[!0===t.showIcon||"true"===t.showIcon?a("uni-icons",{staticClass:"uni-noticebar-icon",attrs:{type:"sound",color:t.color,size:1.5*t.fontSize}}):t._e(),a("v-uni-view",{ref:"textBox",staticClass:"uni-noticebar__content-wrapper",class:{"uni-noticebar__content-wrapper--scrollable":t.scrollable,"uni-noticebar__content-wrapper--single":!t.scrollable&&(t.single||t.moreText)},style:{height:t.scrollable?1.5*t.fontSize+"px":"auto"}},[a("v-uni-view",{staticClass:"uni-noticebar__content",class:{"uni-noticebar__content--scrollable":t.scrollable,"uni-noticebar__content--single":!t.scrollable&&(t.single||t.moreText)},attrs:{id:t.elIdBox}},[a("v-uni-text",{ref:"animationEle",staticClass:"uni-noticebar__content-text",class:{"uni-noticebar__content-text--scrollable":t.scrollable,"uni-noticebar__content-text--single":!t.scrollable&&(t.single||t.showGetMore)},style:{color:t.color,fontSize:t.fontSize+"px",lineHeight:1.5*t.fontSize+"px",width:t.wrapWidth+"px",animationDuration:t.animationDuration,"-webkit-animationDuration":t.animationDuration,animationPlayState:t.webviewHide?"paused":t.animationPlayState,"-webkit-animationPlayState":t.webviewHide?"paused":t.animationPlayState,animationDelay:t.animationDelay,"-webkit-animationDelay":t.animationDelay},attrs:{id:t.elId}},[t._v(t._s(t.text))])],1)],1),t.isShowGetMore?a("v-uni-view",{staticClass:"uni-noticebar__more uni-cursor-point",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickMore.apply(void 0,arguments)}}},[t.moreText.length>0?a("v-uni-text",{style:{color:t.moreColor,fontSize:t.fontSize+"px"}},[t._v(t._s(t.moreText))]):a("uni-icons",{attrs:{type:"right",color:t.moreColor,size:1.1*t.fontSize}})],1):t._e(),t.isShowClose?a("v-uni-view",{staticClass:"uni-noticebar-close uni-cursor-point"},[a("uni-icons",{attrs:{type:"closeempty",color:t.color,size:1.1*t.fontSize},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1):t._e()],1):t._e()},r=[]}}]);
|