Your Name
2022-09-29 6f954f70f54e492157b97db314eaaaeb12192580
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-20cb"],{"6Mdz":function(t,e,n){"use strict";n.d(e,"h",function(){return r}),n.d(e,"b",function(){return a}),n.d(e,"m",function(){return c}),n.d(e,"c",function(){return s}),n.d(e,"e",function(){return u}),n.d(e,"g",function(){return l}),n.d(e,"j",function(){return d}),n.d(e,"l",function(){return h}),n.d(e,"a",function(){return p}),n.d(e,"d",function(){return f}),n.d(e,"f",function(){return k}),n.d(e,"k",function(){return b}),n.d(e,"i",function(){return m});var o=n("X4fA"),i=n("t3Un");function r(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/select/getCheckWorkPage",method:"post",data:t})}function a(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/insert/saveCheckWork",method:"post",data:t})}function c(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/update/updateCheckWork",method:"post",data:t})}function s(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/close?workId="+t,method:"post"})}function u(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/delete/deleteCheckWork",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/select/getTaskPage",method:"post",data:t})}function d(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/update/updateTask",method:"post",data:t})}function h(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/update/taskToUser",method:"post",data:t})}function p(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/content/add?workId="+t.workId+"&measureId="+t.measureId,method:"post"})}function f(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/content/del?workId="+t.workId+"&measureId="+t.measureId,method:"post"})}function k(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/get/id?workId="+t,method:"post"})}function b(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/task/exec/unitOne",method:"post",data:t})}function m(t){return Object(i.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/task/exec/submit",method:"post",data:t})}},JAQy:function(t,e,n){},T8XQ:function(t,e,n){"use strict";n.r(e);var o=n("cLjf"),i=n.n(o),r=n("omC7"),a=n.n(r),c=n("hDQ3"),s=n.n(c),u=n("8d79"),l=n("6Mdz"),d={props:["title","inspectionTaskForm"],name:"inpectionPoint",data:function(){return{tableKey:"",listLoading:!1,ifEdit:!1,ifShowControl:!0,controlActionVisible:!1,riskControlMeasureVisible:!1,riskControlMeasureForm:[],inspectionPointData:[],keepValueList:[],controlActionForm:{workId:"",measureId:""}}},components:{controlAction:u.default},methods:{showControlAction:function(){var t=this;this.controlActionVisible=!0,setTimeout(function(){t.$refs.controlAction.ifShowButton(t.inspectionPointData)})},showMeasureDetail:function(t){var e=this;this.controlActionVisible=!0,setTimeout(function(){e.$refs.controlAction.showMeasureDetail(t),e.$refs.controlAction.ifShowSelf=!1})},closeDialog:function(){this.controlActionVisible=!1},receiveRiskControlId:function(t){var e=this;return s()(i.a.mark(function n(){var o;return i.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e.controlActionVisible=!1,"新建巡检计划设定"!==e.title){n.next=5;break}t&&(e.inspectionPointData=JSON.parse(a()(t.map(function(t){return{id:t.id,content:t.troubleshootContent}}))),e.$emit("giveToForm",e.inspectionPointData)),n.next=11;break;case 5:return e.controlActionForm.workId=a()(e.inspectionTaskForm.workId),e.controlActionForm.measureId=a()(t.id),n.next=9,Object(l.a)(e.controlActionForm);case 9:"200"===(o=n.sent).data.code?(e.getControlActionList(),e.$message({type:"success",duretion:2e3,message:"新增管控措施成功",title:"成功"})):e.$message({type:"warning",message:o.data.message});case 11:case"end":return n.stop()}},n,e)}))()},deleteById:function(t,e){var n=this;"新建巡检计划设定"===this.title?this.inspectionPointData.splice(t,1):this.$confirm("删除此条措施,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(l.d)({workId:e.workId,measureId:e.measureId}).then(function(t){"200"===t.data.code&&(n.getControlActionList(),n.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}))})})},getControlActionList:function(){var t=this;return s()(i.a.mark(function e(){var n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.f)(t.inspectionTaskForm.workId);case 2:n=e.sent,t.inspectionPointData=n.data.result.checkContents;case 4:case"end":return e.stop()}},e,t)}))()},keepValue:function(t){this.keepValueList=t}}},h=(n("f2Wa"),n("ZrdR")),p=Object(h.a)(d,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(e){t.showControlAction()}}},[t._v("选择风险管控措施")])],1),t._v(" "),n("div",{staticClass:"table_content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.inspectionPointData,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"序号",type:"index",width:"150",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"隐患排查内容",prop:"content",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center",width:"280","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.ifEdit,expression:"ifEdit"}],attrs:{type:"text"},on:{click:function(n){t.showMeasureDetail(e.row)}}},[t._v("详情")]),t._v(" "),n("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(n){t.deleteById(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1),t._v(" "),n("el-dialog",{attrs:{visible:t.controlActionVisible,"append-to-body":"","close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(e){t.controlActionVisible=e}}},[n("control-action",{ref:"controlAction",on:{closeDialog:t.closeDialog,giveRiskControlId:t.receiveRiskControlId,keepValue:t.keepValue}})],1)],1)},[],!1,null,"e88d45a2",null);p.options.__file="inpectionPoint.vue";e.default=p.exports},f2Wa:function(t,e,n){"use strict";var o=n("JAQy");n.n(o).a}}]);