Your Name
2022-04-08 1f2a259f8cbb7eb0b12d12895116c309eb8cd609
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-09e0"],{"6lWL":function(t,e,r){"use strict";var n=r("DJMm");r.n(n).a},DJMm:function(t,e,r){},QVDD:function(t,e,r){"use strict";r.d(e,"b",function(){return a}),r.d(e,"a",function(){return i}),r.d(e,"d",function(){return l}),r.d(e,"c",function(){return u});var n=r("X4fA"),o=r("t3Un");function a(t){return Object(o.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/hiddenDanger/statistics",method:"get",params:t||{}})}function i(t){return Object(o.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/hiddenDanger/info",method:"get",params:t||{}})}function l(t){return Object(o.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/task/statistics",method:"get",params:t||{}})}function u(t){return Object(o.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/task/info",method:"get",params:t||{}})}},cLjf:function(t,e,r){t.exports=r("xOJF")},hDQ3:function(t,e,r){"use strict";e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(r("Asgo"));e.default=function(t){return function(){var e=t.apply(this,arguments);return new n.default(function(t,r){return function o(a,i){try{var l=e[a](i),u=l.value}catch(t){return void r(t)}if(!l.done)return n.default.resolve(u).then(function(t){o("next",t)},function(t){o("throw",t)});t(u)}("next")})}}},k4Ii:function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",c="object"==typeof t,s=e.regeneratorRuntime;if(s)c&&(t.exports=s);else{(s=e.regeneratorRuntime=c?t.exports:{}).wrap=w;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",g={},v={};v[i]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(T([])));y&&y!==n&&o.call(y,i)&&(v=y);var b=D.prototype=_.prototype=Object.create(v);L.prototype=b.constructor=D,D.constructor=L,D[u]=L.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,D):(t.__proto__=D,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(b),t},s.awrap=function(t){return{__await:t}},O(j.prototype),j.prototype[l]=function(){return this},s.AsyncIterator=j,s.async=function(t,e,r,n){var o=new j(w(t,e,r,n));return s.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},O(b),b[u]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},s.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},s.values=T,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},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,o){return l.type="throw",l.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},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),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}}}function w(t,e,r,n){var o=e&&e.prototype instanceof _?e:_,a=Object.create(o.prototype),i=new S(n||[]);return a._invoke=function(t,e,r){var n=h;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return R()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var l=k(i,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=x(t,e,r);if("normal"===u.type){if(n=r.done?d:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function x(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function _(){}function L(){}function D(){}function O(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function j(t){var e;this._invoke=function(r,n){function a(){return new Promise(function(e,a){!function e(r,n,a,i){var l=x(t[r],t,n);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(c).then(function(t){u.value=t,a(u)},i)}i(l.arg)}(r,n,e,a)})}return e=e?e.then(a,a):a()}}function k(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,k(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=x(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,g;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function z(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(z,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:R}}function R(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},myXF:function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),o=r.n(n),a=r("hDQ3"),i=r.n(a),l=r("bS4n"),u=r.n(l),c=r("8t5x"),s=r("QVDD"),h=r("7Qib"),f={name:"index",filters:{parseMain:function(t){return 1===t?"是":0===t?"否":void 0}},computed:u()({},Object(c.b)(["userType"])),data:function(){return{tableKey:0,troubleDetailData:[],listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,title:"",company:"",starttime:"",endtime:"",troubleDetailVisible:!1,dialogImageUrl:"",dialogVisible:!1}},created:function(){},methods:{showTroubleDetail:function(t,e,r){this.troubleDetailVisible=!0,this.starttime=e,this.endtime=r,this.company=t,this.getTroubleData()},getTroubleData:function(){var t=this;return i()(o.a.mark(function e(){var r,n,a,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,(r={}).pageIndex=t.currentPage,r.pageSize=t.pageSize,r.company=t.company,r.starttime=t.starttime,r.endtime=t.endtime,e.next=9,Object(s.a)(r);case 9:if("200"===(n=e.sent).data.code)for(t.recordTotal=n.data.result.totalCount,t.pageSize=n.data.result.pageSize,t.pageTotal=Object(h.a)(n.data.result.totalCount,n.data.result.pageSize),t.currentPage=n.data.result.pageIndex,t.troubleDetailData=n.data.result.result,a=0;a<t.troubleDetailData.length;a++)if(0!=t.troubleDetailData[a].reportResources.length)for(i=0;i<t.troubleDetailData[a].reportResources.length;i++)t.troubleDetailData[a].reportResources[i].url="http://222.92.213.21:8006/zhongtai/upload/"+t.troubleDetailData[a].reportResources[i].url;t.listLoading=!1;case 12:case"end":return e.stop()}},e,t)}))()},reportResources:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleSizeChange:function(t){this.pageSize=t,this.getTroubleData()},handleCurrentChange:function(t){this.currentPage=t,this.getTroubleData()}}},p=(r("6lWL"),r("ZrdR")),d=Object(p.a)(f,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{title:t.title,visible:t.troubleDetailVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){t.troubleDetailVisible=e}}},[r("div",{staticClass:"app-container"},[r("div",{staticClass:"table_content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.troubleDetailData,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"}}),t._v(" "),r("el-table-column",{attrs:{label:"状态",prop:"status",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"作业编号",prop:"taskcode",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"隐患等级",prop:"level",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-tag",{attrs:{type:"紧急"==e.row.level?"danger":"warning"}},[t._v(t._s(e.row.level))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"上报人",prop:"requestor",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"负责人",prop:"principal",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"整改人",prop:"supervisor",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"创建时间",prop:"createtime",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"图片",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-popover",{attrs:{placement:"top-start",trigger:"click"}},t._l(e.row.reportResources,function(e,n){return r("img",{key:n,staticStyle:{width:"40px",height:"40px","margin-left":"10px",cursor:"pointer"},attrs:{slot:"reference",src:e.url},on:{click:function(r){t.reportResources(e)}},slot:"reference"})}))]}}])})],1),t._v(" "),r("br"),t._v(" "),r("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":t.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}),t._v(" "),r("br")],1),t._v(" "),r("el-dialog",{attrs:{visible:t.dialogVisible,"append-to-body":!0},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)])},[],!1,null,"1b7e19be",null);d.options.__file="index.vue";e.default=d.exports},xOJF:function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("k4Ii"),o)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}}}]);