Your Name
2022-04-08 1f2a259f8cbb7eb0b12d12895116c309eb8cd609
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-b19c"],{F9LP:function(t,e,r){"use strict";r.d(e,"g",function(){return a}),r.d(e,"a",function(){return o}),r.d(e,"k",function(){return s}),r.d(e,"d",function(){return c}),r.d(e,"j",function(){return u}),r.d(e,"c",function(){return l}),r.d(e,"m",function(){return h}),r.d(e,"f",function(){return d}),r.d(e,"i",function(){return f}),r.d(e,"b",function(){return p}),r.d(e,"l",function(){return v}),r.d(e,"e",function(){return g}),r.d(e,"h",function(){return m});var n=r("X4fA"),i=r("t3Un");function a(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskAnaUnit/page",method:"post",data:t})}function o(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskAnaUnit/add",method:"post",data:t})}function s(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskAnaUnit/mod",method:"post",data:t})}function c(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskAnaUnit/del",method:"post",data:t})}function u(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskEvent/page",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskEvent/add",method:"post",data:t})}function h(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskEvent/mod",method:"post",data:t})}function d(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskEvent/del",method:"post",data:t})}function f(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskControlMeasure/page",method:"post",data:t})}function p(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskControlMeasure/add",method:"post",data:t})}function v(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskControlMeasure/mod",method:"post",data:t})}function g(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskControlMeasure/del",method:"post",data:t})}function m(){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/riskControlClassify/all",method:"get"})}},Ol0r:function(t,e,r){"use strict";var n=r("zh+L");r.n(n).a},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 i(a,o){try{var s=e[a](o),c=s.value}catch(t){return void r(t)}if(!s.done)return n.default.resolve(c).then(function(t){i("next",t)},function(t){i("throw",t)});t(c)}("next")})}}},"k/hy":function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),i=r.n(n),a=r("hDQ3"),o=r.n(a),s=r("bS4n"),c=r.n(s),u=r("8t5x"),l=r("7Qib"),h=r("F9LP"),d={name:"index",filters:{parseMain:function(t){return 1===t?"是":0===t?"否":void 0}},computed:c()({},Object(u.b)(["userType"])),data:function(){return{tableKey:0,riskEventData:[],analyseUnitList:[],listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,title:"",company:"",code:"",riskEventVisible:!1,riskEventFormRules:{riskUnitId:[{required:!0,message:"安全风险分析单元名称不能为空",trigger:"change"}],riskEventName:[{required:!0,message:"安全风险事件名称不能为空",trigger:"blur"}]},riskEventForm:{id:"",riskUnitId:"",riskEventName:"",validFlag:!0,createTime:"",createBy:"",updateTime:"",updateBy:"",riskAnaUnit:{}},listQuery:{pageIndex:1,pageSize:10,filter:{riskEventName:""}}}},created:function(){this.getRiskEventData(),this.getAnalyseUnitData()},methods:{getRiskEventData:function(){var t=this;return o()(i.a.mark(function e(){var r;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(h.j)(t.listQuery);case 3:"200"===(r=e.sent).data.code?(t.recordTotal=r.data.result.total,t.pageSize=r.data.result.size,t.pageTotal=Object(l.a)(r.data.result.total,r.data.result.size),t.currentPage=r.data.result.current,t.riskEventData=r.data.result.records):t.$message({message:r.data.message,type:"warning"}),t.listLoading=!1;case 6:case"end":return e.stop()}},e,t)}))()},getAnalyseUnitData:function(){var t=this;return o()(i.a.mark(function e(){var r;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.g)({pageSize:1e3,pageIndex:1,filter:{riskUnitName:""}});case 2:"200"===(r=e.sent).data.code?t.analyseUnitList=r.data.result.records:t.$message({message:r.data.message,type:"warning"});case 4:case"end":return e.stop()}},e,t)}))()},showRiskEvent:function(t,e){var r=this;this.riskEventVisible=!0,this.$nextTick(function(){r.$refs.riskEventForm.clearValidate()}),"新增"===e?(this.title="新增",this.riskEventForm={id:"",riskUnitId:"",riskEventName:"",validFlag:!0,createTime:"",createBy:"",updateTime:"",updateBy:"",riskAnaUnit:{riskUnitName:""}}):(this.title="修改",this.riskEventForm=t)},submitRiskEvent:function(){var t=this;this.$refs.riskEventForm.validate(function(e){e?"新增"===t.title?Object(h.c)(t.riskEventForm).then(function(e){"200"===e.data.code?(t.riskEventVisible=!1,t.getRiskEventData(),t.$notify({type:"success",duration:2e3,message:"新增成功",title:"成功"})):t.$message({type:"warning",message:e.data.message})}):Object(h.m)(t.riskEventForm).then(function(e){"200"===e.data.code?(t.riskEventVisible=!1,t.getRiskEventData(),t.$notify({type:"success",duration:2e3,title:"成功",message:"编辑成功"})):t.$message({type:"warning",message:e.data.message})}):t.$message({message:"请完善基本信息",type:"warning"})})},deleteById:function(t){var e=this;this.$confirm("删除此条信息,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(h.f)({id:t.id}).then(function(){e.getRiskEventData(),e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})})})},refreshHandle:function(){this.getRiskEventData()},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getRiskEventData()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getRiskEventData()}}},f=(r("Ol0r"),r("ZrdR")),p=Object(f.a)(d,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{staticClass:"filter-container"},[r("div",{staticClass:"basic_search"},[r("span",[t._v("单位名称:")]),t._v(" "),r("el-input",{staticStyle:{width:"200px"},model:{value:t.listQuery.filter.riskUintName,callback:function(e){t.$set(t.listQuery.filter,"riskUintName",e)},expression:"listQuery.filter.riskUintName"}})],1),t._v(" "),r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px","margin-top":"10px"},attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.refreshHandle}},[t._v("搜索")]),t._v(" "),r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px","margin-top":"10px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(e){t.showRiskEvent("","新增")}}},[t._v("新增")])],1),t._v(" "),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.riskEventData,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"安全风险分析单元名称",prop:"riskAnaUnit",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.riskAnaUnit.riskUnitName))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"安全风险事件名称",prop:"riskEventName",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"创建人",prop:"createBy",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"创建时间",prop:"createTime",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"最后修改人",prop:"updateBy",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"最后修改时间",prop:"updateTime",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",width:"280","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){t.showRiskEvent(e.row,"编辑")}}},[t._v("编辑")]),t._v(" "),r("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(r){t.deleteById(e.row)}}},[t._v("删除")])]}}])})],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:{title:t.title,visible:t.riskEventVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(e){t.riskEventVisible=e}}},[r("el-form",{ref:"riskEventForm",attrs:{rules:t.riskEventFormRules,model:t.riskEventForm,"label-position":"right","label-width":"165px"}},[r("el-form-item",{attrs:{label:"安全风险分析单元名称",prop:"riskUnitId"}},[r("el-select",{staticClass:"analyseUnit_input",model:{value:t.riskEventForm.riskUnitId,callback:function(e){t.$set(t.riskEventForm,"riskUnitId",e)},expression:"riskEventForm.riskUnitId"}},t._l(t.analyseUnitList,function(t){return r("el-option",{key:t.id,attrs:{value:t.id,label:t.riskUnitName}})}))],1),t._v(" "),r("el-form-item",{attrs:{label:"安全风险事件名称",prop:"riskEventName"}},[r("el-input",{staticClass:"analyseUnit_input",model:{value:t.riskEventForm.riskEventName,callback:function(e){t.$set(t.riskEventForm,"riskEventName",e)},expression:"riskEventForm.riskEventName"}})],1)],1),t._v(" "),r("div",{attrs:{align:"right"}},[r("el-button",{on:{click:function(e){t.riskEventVisible=!1}}},[t._v("取消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitRiskEvent()}}},[t._v("确认")])],1)],1)],1)},[],!1,null,"dcc9181e",null);p.options.__file="index.vue";e.default=p.exports},k4Ii:function(t,e){!function(e){"use strict";var r,n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=b;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",v={},g={};g[o]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==n&&i.call(y,o)&&(g=y);var k=_.prototype=w.prototype=Object.create(g);x.prototype=k.constructor=_,_.constructor=x,_[c]=x.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(k),t},l.awrap=function(t){return{__await:t}},O(j.prototype),j.prototype[s]=function(){return this},l.AsyncIterator=j,l.async=function(t,e,r,n){var i=new j(b(t,e,r,n));return l.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(k),k[c]="Generator",k[o]=function(){return this},k.toString=function(){return"[object Generator]"},l.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}},l.values=A,U.prototype={constructor:U,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(F),!t)for(var e in this)"t"===e.charAt(0)&&i.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,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=r),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.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&&i.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 o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),v}},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 i=n.arg;F(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function b(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),o=new U(n||[]);return a._invoke=function(t,e,r){var n=h;return function(i,a){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw a;return N()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=z(o,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=E(t,e,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,o),a}function E(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function w(){}function x(){}function _(){}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,o){var s=E(t[r],t,n);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,a,o)},function(t){e("throw",t,a,o)}):Promise.resolve(u).then(function(t){c.value=t,a(c)},o)}o(s.arg)}(r,n,e,a)})}return e=e?e.then(a,a):a()}}function z(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,z(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=E(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var a=i.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,v):a:(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 F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function A(t){if(t){var e=t[o];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(i.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:N}}function N(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},xOJF:function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("k4Ii"),i)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},"zh+L":function(t,e,r){}}]);