pages-risk-risk.55e7ee84.js 17 KB

123
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-risk-risk"],{"0ba2":function(t,e,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.request=function(t){return l.apply(this,arguments)},n("d3b7");var a=r(n("c7eb")),i=r(n("5530")),o=r(n("1da1")),s=r(n("442c")),c=n("662b"),u=s.default.base.pro;function l(){return l=(0,o.default)((0,a.default)().mark((function t(e){return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){try{uni.showLoading({title:"加载中",mask:!0}),uni.request((0,i.default)((0,i.default)({},f(e)),{},{success:function(e){var r=e.data,a=r.code,i=r.msg;0===a?t(r):401===a?uni.showToast({title:i||"登录失效!",mask:!0,icon:"none",complete:function(){uni.navigateTo({url:"/pages/login/login"})}}):(n(r),uni.showToast({title:i,mask:!0,icon:"none"}))},fail:function(t){uni.showToast({title:t,mask:!0,icon:"none"}),n(t)},complete:function(t){uni.hideLoading()}}))}catch(r){uni.hideLoading(),n(r)}})));case 1:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}function f(t){var e=t.url;e=u+e;var n=(0,i.default)({},t.data),r=(0,i.default)({},t.header);r[s.default.TokenKey]=(0,c.getToken)(),r.appID=s.default.appID,r.appKey=s.default.appKey,r.appSecret=s.default.appSecret,r.permitTplId=s.default.permitTplId;var a=t.method||"get",o=t.dataType||"json",l={url:e,data:n,header:r,method:a,dataType:o};return l}},"1da1":function(t,e,n){"use strict";function r(t,e,n,r,a,i,o){try{var s=t[i](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,a)}n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,n=arguments;return new Promise((function(a,i){var o=t.apply(e,n);function s(t){r(o,a,i,s,c,"next",t)}function c(t){r(o,a,i,s,c,"throw",t)}s(void 0)}))}},n("d3b7")},2117:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */.page-index[data-v-157f13e2]{background:linear-gradient(180deg,#4d73ff,rgba(77,115,255,0));padding:0 %?30?%}.page-index .title .tab[data-v-157f13e2]{font-size:%?34?%;line-height:%?50?%;margin-right:%?32?%;color:hsla(0,0%,100%,.6)}.page-index .title .tab.active[data-v-157f13e2]{color:#fff}.page-index .statistics[data-v-157f13e2]{border-radius:%?24?%;background-color:#fff;padding:%?36?% 0 0 %?24?%;margin-top:%?48?%}.page-index .statistics .head[data-v-157f13e2]{font-weight:900;font-size:%?34?%;line-height:%?50?%;color:#151515}.page-index .statistics .container[data-v-157f13e2]{display:flex;align-items:center;flex-wrap:wrap}.page-index .statistics .container .item[data-v-157f13e2]{width:33.33%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:%?40?%}.page-index .statistics .container .item .icon[data-v-157f13e2]{display:block;width:%?88?%;height:%?88?%}.page-index .statistics .container .item uni-text[data-v-157f13e2]{font-size:%?28?%;line-height:%?42?%;color:#151515;padding-top:%?18?%}.page-index .task-list[data-v-157f13e2]{border-radius:%?24?%;background-color:#fff;margin-top:%?24?%;padding:%?36?% %?24?%}.page-index .task-list .head[data-v-157f13e2]{font-weight:900;font-size:%?34?%;line-height:%?50?%;color:#151515}.page-index .task-list .item[data-v-157f13e2]{padding:%?30?% %?40?% %?38?% %?40?%;margin-top:%?20?%;border:1px solid #f8f9fd}.page-index .task-list .item .task-title[data-v-157f13e2]{color:#212121;font-size:%?32?%;padding-bottom:%?24?%}.page-index .task-list .item .footer[data-v-157f13e2]{display:flex;justify-content:space-between;align-items:center}.page-index .task-list .item .footer .lf[data-v-157f13e2]{display:flex}.page-index .task-list .item .footer .lf .time[data-v-157f13e2]{background-image:url(/static/index/time.png);background-repeat:no-repeat;background-position:0;background-size:%?24?% %?24?%;padding-left:%?36?%;color:#999;font-size:%?24?%}.page-index .task-list .item .footer .lf .user[data-v-157f13e2]{background-image:url(/static/index/user.png);background-repeat:no-repeat;background-position:0;background-size:%?24?% %?24?%;padding-left:%?36?%;color:#999;font-size:%?24?%;margin-left:%?10?%}.page-index .task-list .item .footer .status[data-v-157f13e2]{color:#4d73ff}.container[data-v-157f13e2]{padding:20px;font-size:14px;line-height:24px}',""]),t.exports=e},"2b0f":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.deleteDangerById=function(t){return(0,r.request)({url:"goaf/goafhdanger/delete/".concat(t),method:"DELETE"})},e.getDangerById=function(t){return(0,r.request)({url:"/goaf/goafhdanger/".concat(t),method:"GET"})},e.getDangerByList=function(t){return(0,r.request)({url:"/goaf/goafhdanger/list",method:"GET",params:t})},e.getDangerByPage=function(t){return(0,r.request)({url:"/goaf/goafhdanger/page",method:"GET",params:t})},e.handleDanger=function(t){return(0,r.request)({url:"/goaf/goafhdanger/add",method:"POST",data:t})},e.updateDanger=function(t){return(0,r.request)({url:"/goaf/goafhdanger/update",method:"PUT",data:t})};var r=n("0ba2")},"41a8":function(t,e,n){"use strict";n.r(e);var r=n("d89b"),a=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},"442c":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={base:{dev:"http://192.168.3.5:8080",pro:"http://192.168.3.5:8080"},appID:"10001",appKey:"82a8bf439373e305",appSecret:"82a8bf439373e305",permitTplId:7,TokenKey:"Authorization",uploadFile:"http://192.168.3.5:8080"}},"662b":function(t,e,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getToken=function(){return uni.getStorageSync(i)},e.removeToken=function(){return uni.removeStorageSync(i)},e.setToken=function(t){return uni.setStorageSync(i,t)};var a=r(n("442c")),i=a.default.TokenKey},"9d35":function(t,e,n){var r=n("2117");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("42fc8bb6",r,!0,{sourceMap:!1,shadowMode:!1})},b3e2:function(t,e,n){"use strict";var r=n("9d35"),a=n.n(r);a.a},b636:function(t,e,n){var r=n("e065");r("asyncIterator")},c7eb:function(t,e,n){"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={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(P){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),s=new C(r||[]);return i(o,"_invoke",{value:_(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(P){return{type:"throw",arg:P}}}t.wrap=f;var p={};function v(){}function h(){}function g(){}var y={};l(y,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==n&&a.call(b,s)&&(y=b);var w=g.prototype=v.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){var n;i(this,"_invoke",{value:function(i,o){function s(){return new e((function(n,s){(function n(i,o,s,c){var u=d(t[i],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==(0,r.default)(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)})(i,o,n,s)}))}return n=n?n.then(s,s):s()}})}function _(t,e,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return j()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=T(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,T(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=d(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,p;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}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 E(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 O(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 n=-1,r=function e(){for(;++n<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:h,configurable:!0}),h.displayName=l(g,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,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(k.prototype),l(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,a,i){void 0===i&&(i=Promise);var o=new k(f(e,n,r,a),i);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(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),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,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(E),!t)for(var e in this)"t"===e.charAt(0)&&a.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 n(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):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),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("53ca"))},d89b:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("4de4"),n("d3b7");var r=n("2b0f"),a={data:function(){return{statusBarHeight:0,type:"user",statistics:{review:10,rectify:2,complete:10,accept:88,revocation:2},items:[]}},onLoad:function(){this.init()},methods:{init:function(){var t=this;(0,r.getDangerByList)().then((function(e){t.items=e.data,t.statistics.review=e.data.filter((function(t){return 1==t.status})).length,t.statistics.rectify=e.data.filter((function(t){return 2==t.status})).length,t.statistics.accept=e.data.filter((function(t){return 3==t.status})).length,t.statistics.complete=e.data.filter((function(t){return 4==t.status})).length,t.statistics.revocation=e.data.filter((function(t){return-1==t.status})).length}))},changeTab:function(t){this.type=t},linkTo:function(t){var e="";switch(t.curActivityCode){case"review":e="/pages/risk/review/review";break;case"submit":e="/pages/risk/repeal/repeal";break;case"accept":e="/pages/risk/check/check";break;case"rectify":e="/pages/risk/rectify/rectify";break}uni.setStorageSync("danger-info",t),uni.navigateTo({url:e})}}};e.default=a},ea02:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page-index"},[n("v-uni-view",{staticClass:"status_bar"}),n("div",{staticClass:"title"},[n("v-uni-text",{staticClass:"tab",class:"user"===t.type?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab("user")}}},[t._v("我的")]),n("v-uni-text",{staticClass:"tab",class:"group"===t.type?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab("group")}}},[t._v("部门")])],1),n("div",{staticClass:"statistics"},[n("div",{staticClass:"head"},[t._v("任务统计")]),n("div",{staticClass:"container"},[n("div",{staticClass:"item"},[n("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/wait.png",alt:""}}),n("v-uni-text",[t._v("待评审"+t._s(t.statistics.review)+"个")])],1),n("div",{staticClass:"item"},[n("img",{staticClass:"icon",attrs:{src:"/static/index/expire.png",alt:""}}),n("v-uni-text",[t._v("待整改"+t._s(t.statistics.rectify)+"个")])],1),n("div",{staticClass:"item"},[n("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/complete.png",alt:""}}),n("v-uni-text",[t._v("待验收"+t._s(t.statistics.accept)+"个")])],1),n("div",{staticClass:"item"},[n("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/complete.png",alt:""}}),n("v-uni-text",[t._v("已完成"+t._s(t.statistics.complete)+"个")])],1),n("div",{staticClass:"item"},[n("v-uni-image",{staticClass:"icon",attrs:{src:"/static/index/revocation.png",alt:""}}),n("v-uni-text",[t._v("已撤销"+t._s(t.statistics.revocation)+"个")])],1)])]),n("div",{staticClass:"task-list"},[n("div",{staticClass:"head"},[t._v("待办风险")]),t._l(t.items,(function(e,r){return n("div",{key:r,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.linkTo(e)}}},[n("div",{staticClass:"task-title"},[t._v(t._s(e.hdangerTitle))]),n("v-uni-view",{staticClass:"footer"},[n("v-uni-view",{staticClass:"lf"},[n("div",{staticClass:"time"},[t._v(t._s(e.dangerDeadline))]),n("div",{staticClass:"user"},[t._v(t._s(e.curAccountName))])]),4===e.status?n("div",{staticClass:"status"},[t._v("完成")]):n("div",{staticClass:"status"},[t._v(t._s(e.curActivityTitle))])],1)],1)}))],2)],1)},a=[]},fb7c:function(t,e,n){"use strict";n.r(e);var r=n("ea02"),a=n("41a8");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("b3e2");var o=n("f0c5"),s=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"157f13e2",null,!1,r["a"],void 0);e["default"]=s.exports}}]);