马宇豪
2024-04-10 4076c14a8eac96cd716522f2cb15dcda0eb4fcef
1
import{_ as $,g as J,a as H,E as m,r as j,o as q,q as A,t as G,d as W}from"./index.1683511265143.js";import{e as X}from"./index.168351126514314.js";import{i as Y}from"./index.168351126514315.js";import{p as Z}from"./index.168351126514316.js";import{u as K}from"./index.168351126514317.js";import{J as ee,aF as te,f as ae,ay as oe,a1 as ue,k as le,a as g,b as d,Y as u,R as r,u as _,a5 as h,o as a,X as v,V as l,Q as n,W as c,aC as ne,aD as ie}from"./vue.1683511265143.js";const M=C=>(ne("data-v-76910ae1"),C=C(),ie(),C),re={class:"home-container"},se={style:{height:"100%"}},ce={class:"basic-line"},de=M(()=>d("span",null,"\u8BC4\u4F30\u8BA1\u5212\u540D\u79F0\uFF1A",-1)),pe={class:"basic-line"},he=M(()=>d("span",null,"\u5B9E\u9A8C\u540D\u79F0\uFF1A",-1)),fe={style:{"padding-bottom":"10px"}},Ee=c("\u67E5\u8BE2"),_e=c("\u91CD\u7F6E"),ve={class:"homeCard"},me={class:"main-card"},ge={key:0},Ce=c(v("\u672A\u5F00\u59CB")),we={key:1},ye=c(v("\u8FA8\u8BC6\u9636\u6BB5")),Be={key:2},Fe=c(v("\u8BC4\u4EF7\u9636\u6BB5")),ke={key:3},be=c(v("\u5B8C\u6210\u9636\u6BB5")),De=c("\u63D0\u4EA4"),xe=c("\u8BC4\u4EF7"),Ae=c("\u67E5\u770B\u8BC4\u4EF7"),Me={class:"pageBtn"},Se=c("\u8BC4\u4EF7"),ze=c("\u67E5\u770B"),Ne=ee({name:"index",setup(C){const S=te(()=>H(()=>import("./evaluateDialog.1683511265143.js"),["assets/evaluateDialog.1683511265143.js","assets/evaluateDialog.1683511265143.css","assets/index.168351126514314.js","assets/index.1683511265143.js","assets/index.168351126514326.css","assets/vue.1683511265143.js","assets/methods.1683511265143.js"])),B=ae(),z=J(),{userInfos:N}=oe(z),e=ue({evaluateData:[],user:null,currentEvalute:{},evaluateDialog:!1,searchQuery:{pageIndex:1,pageSize:10,assessPlanName:"",experimentName:"",tag:2,planExecStatus:5},total:0,planList:[],personList:[],identificationMethodList:[{id:1,name:"PHA"},{id:2,name:"JHA"},{id:3,name:"SCL"},{id:4,name:"HAZOP"},{id:5,name:"\u7C7B\u6BD4\u6CD5"}],evaluateMethodList:[{id:1,name:"LEC"},{id:2,name:"LS"},{id:3,name:"MES"},{id:4,name:"RS"}]}),E=async()=>{let i=await Y().getIdentifyByList(e.searchQuery);i.data.code===100?(e.evaluateData=i.data.data,e.total=i.data.total):m({type:"warning",message:i.data.msg})},I=()=>{e.evaluateDialog=!1,E()},L=async()=>{let i=await Z().getAllPlan();i.data.code===100?e.planList=JSON.parse(JSON.stringify(i.data.data)):m({type:"warning",message:i.data.msg})},P=async()=>{let i=await K().getUserList({pageIndex:1,pageSize:99999,searchParams:{roleId:null,name:"",realName:""}});i.data.code===100?e.personList=JSON.parse(JSON.stringify(i.data.data)):m({type:"warning",message:i.data.msg})},F=i=>{e.evaluateDialog=!0,e.currentEvalute=i},k=(i,s)=>{B.value.showEvaluateDialog(i,s)},R=i=>{W.confirm(`\u6B64\u64CD\u4F5C\u5C06\u63D0\u4EA4\u8BE5\u8BC4\u4EF7\u8BA1\u5212\uFF1A\u201C${i.assessPlanName}\u201D\u7684\u8BC4\u4EF7\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(async()=>{let s=await X().submitEvaluate({id:i.id});s.data.code===100?(m({type:"success",duration:2e3,message:"\u63D0\u4EA4\u6210\u529F"}),await E()):m({type:"warning",message:s.data.msg})}).catch(s=>{})},U=i=>{e.searchQuery.pageSize=i,E()},V=i=>{e.searchQuery.pageIndex=i,E()},Q=()=>{e.searchQuery={pageIndex:1,pageSize:10,assessPlanName:"",experimentName:"",tag:2,planExecStatus:5}};return le(()=>{E(),L(),P(),e.user=Number(N.value.uid)}),(i,s)=>{const b=h("el-input"),f=h("el-button"),D=h("el-row"),t=h("el-table-column"),w=h("el-tag"),x=h("el-table"),T=h("el-pagination"),O=h("el-dialog");return a(),g("div",re,[d("div",se,[u(D,{class:"homeCard"},{default:r(()=>[d("div",ce,[de,u(b,{modelValue:e.searchQuery.assessPlanName,"onUpdate:modelValue":s[0]||(s[0]=o=>e.searchQuery.assessPlanName=o),clearable:"",filterable:"",class:"input-box",placeholder:"\u8BC4\u4F30\u8BA1\u5212\u540D\u79F0"},null,8,["modelValue"])]),d("div",pe,[he,u(b,{modelValue:e.searchQuery.experimentName,"onUpdate:modelValue":s[1]||(s[1]=o=>e.searchQuery.experimentName=o),clearable:"",filterable:"",class:"input-box",placeholder:"\u5B9E\u9A8C\u540D\u79F0"},null,8,["modelValue"])]),d("div",fe,[u(f,{type:"primary",onClick:E},{default:r(()=>[Ee]),_:1}),u(f,{plain:"",onClick:Q},{default:r(()=>[_e]),_:1})])]),_:1}),d("div",ve,[d("div",me,[u(D,{class:"cardTop"}),u(x,{ref:"multipleTableRef",data:e.evaluateData,style:{width:"100%"},height:"calc(100% - 100px)","header-cell-style":{background:"#fafafa"}},{default:r(()=>[u(t,{prop:"assessPlanName",label:"\u8BC4\u4F30\u8BA1\u5212\u540D\u79F0"}),u(t,{prop:"identificationMethod",label:"\u8FA8\u8BC6\u65B9\u6CD5","show-overflow-tooltip":""},{default:r(o=>{var p;return[d("span",null,v(`${(p=e.identificationMethodList.find(y=>y.id===o.row.identificationMethod))==null?void 0:p.name}`),1)]}),_:1}),u(t,{prop:"riskUnitName",label:"\u98CE\u9669\u5355\u5143"}),u(t,{prop:"identificationUser",label:"\u8BA1\u5212\u8D1F\u8D23\u4EBA"}),u(t,{prop:"identificationUser",label:"\u8FA8\u8BC6\u4E13\u5BB6"}),u(t,{prop:"evaluateUser",label:"\u8BC4\u4EF7\u4E13\u5BB6"}),u(t,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","show-overflow-tooltip":""}),u(t,{prop:"createByUserName",label:"\u521B\u5EFA\u4EBA","show-overflow-tooltip":""}),u(t,{prop:"updateTime",label:"\u6700\u540E\u4FEE\u6539\u65F6\u95F4","show-overflow-tooltip":""}),u(t,{prop:"updateByUserName",label:"\u6700\u540E\u4FEE\u6539\u4EBA","show-overflow-tooltip":""}),u(t,{prop:"evaluateStatus",label:"\u6267\u884C\u72B6\u6001","show-overflow-tooltip":"",align:"center"},{default:r(o=>[d("div",null,[o.row.planExecStatus===1?(a(),g("div",ge,[u(w,{type:"info"},{default:r(()=>[Ce]),_:1})])):l("",!0),o.row.planExecStatus===2?(a(),g("div",we,[u(w,{type:"info"},{default:r(()=>[ye]),_:1})])):l("",!0),o.row.planExecStatus===3?(a(),g("div",Be,[u(w,{type:"primary"},{default:r(()=>[Fe]),_:1})])):l("",!0),o.row.planExecStatus===4?(a(),g("div",ke,[u(w,{type:"success"},{default:r(()=>[be]),_:1})])):l("",!0)])]),_:1}),u(t,{label:"\u64CD\u4F5C",width:"250"},{default:r(o=>[o.row.planExecStatus===3&&o.row.evaluateUserId==e.user?(a(),n(f,{key:0,size:"small",text:"",type:"primary",icon:_(j),onClick:p=>R(o.row)},{default:r(()=>[De]),_:2},1032,["icon","onClick"])):l("",!0),o.row.planExecStatus===3&&o.row.evaluateUserId==e.user?(a(),n(f,{key:1,size:"small",text:"",type:"primary",icon:_(q),onClick:p=>F(o.row)},{default:r(()=>[xe]),_:2},1032,["icon","onClick"])):l("",!0),o.row.planExecStatus===4?(a(),n(f,{key:2,size:"small",text:"",icon:_(A),type:"primary",onClick:p=>F(o.row)},{default:r(()=>[Ae]),_:2},1032,["icon","onClick"])):l("",!0)]),_:1})]),_:1},8,["data"]),d("div",Me,[u(T,{onSizeChange:U,onCurrentChange:V,"pager-count":5,"page-sizes":[10,20,30],"current-page":e.searchQuery.pageIndex,"onUpdate:current-page":s[2]||(s[2]=o=>e.searchQuery.pageIndex=o),background:"","page-size":e.searchQuery.pageSize,"onUpdate:page-size":s[3]||(s[3]=o=>e.searchQuery.pageSize=o),layout:"total, sizes, prev, pager, next, jumper",total:e.total,class:"page-position"},null,8,["current-page","page-size","total"])])])])]),u(O,{title:"\u8FA8\u8BC6\u4FE1\u606F\u8BC4\u4EF7",modelValue:e.evaluateDialog,"onUpdate:modelValue":s[4]||(s[4]=o=>e.evaluateDialog=o),width:"50%"},{default:r(()=>[u(x,{data:e.currentEvalute.factorQueryDTOList,style:{width:"100%"}},{default:r(()=>[u(t,{type:"index",label:"\u5E8F\u53F7",width:"80"}),u(t,{prop:"evaluateMethod",label:"\u8BC4\u4EF7\u65B9\u6CD5",align:"center"},{default:r(o=>{var p;return[c(v((p=e.evaluateMethodList.find(y=>y.id===o.row.evaluateMethod))==null?void 0:p.name),1)]}),_:1}),u(t,{prop:"itemIdentificationTime",label:"\u8FA8\u8BC6\u6DFB\u52A0\u65F6\u95F4","show-overflow-tooltip":"",align:"center"}),e.currentEvalute.identificationMethod==1?(a(),n(t,{key:0,prop:"phaCheckItem",label:"\u68C0\u67E5\u9879\u76EE","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==1?(a(),n(t,{key:1,prop:"phaRiskFactor",label:"\u5B58\u5728\u98CE\u9669\u56E0\u7D20","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==1?(a(),n(t,{key:2,prop:"phaResult",label:"\u53EF\u80FD\u5B58\u5728\u540E\u679C","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==2?(a(),n(t,{key:3,prop:"jhaCheckItem",label:"\u4F5C\u4E1A\u6B65\u9AA4","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==2?(a(),n(t,{key:4,prop:"jhaRiskFactor",label:"\u5B58\u5728\u98CE\u9669\u56E0\u7D20","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==2?(a(),n(t,{key:5,prop:"jhaResult",label:"\u53EF\u80FD\u5B58\u5728\u540E\u679C","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==3?(a(),n(t,{key:6,prop:"sclCheckItem",label:"\u68C0\u67E5\u9879\u76EE","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==3?(a(),n(t,{key:7,prop:"sclCheckStandard",label:"\u68C0\u67E5\u6807\u51C6","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==3?(a(),n(t,{key:8,prop:"sclCheckUnstandard",label:"\u4E0D\u7B26\u5408\u6807\u51C6\u60C5\u51B5","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==3?(a(),n(t,{key:9,prop:"sclCheckResult",label:"\u4E3B\u8981\u540E\u679C","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==4?(a(),n(t,{key:10,prop:"hazopNode",label:"\u8282\u70B9","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==4?(a(),n(t,{key:11,prop:"hazopParam",label:"\u53C2\u6570","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==4?(a(),n(t,{key:12,prop:"hazopParamDesc",label:"\u53C2\u6570\u63CF\u8FF0","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==4?(a(),n(t,{key:13,prop:"hazopNode",label:"\u8282\u70B9","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==4?(a(),n(t,{key:14,prop:"hazopGuide",label:"\u5F15\u5BFC\u8BCD","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==4?(a(),n(t,{key:15,prop:"hazopDeviation",label:"\u504F\u5DEE","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==4?(a(),n(t,{key:16,prop:"hazopPossibleCauses",label:"\u53EF\u80FD\u539F\u56E0","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==4?(a(),n(t,{key:17,prop:"hazopResult",label:"\u53EF\u80FD\u5B58\u5728\u540E\u679C","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==5?(a(),n(t,{key:18,prop:"analogyCheckItem",label:"\u68C0\u67E5\u9879\u76EE","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==5?(a(),n(t,{key:19,prop:"analogyReference",label:"\u7C7B\u6BD4\u53C2\u7167","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==5?(a(),n(t,{key:20,prop:"analogyRiskFactor",label:"\u5B58\u5728\u98CE\u9669\u56E0\u7D20","show-overflow-tooltip":"",align:"center"})):l("",!0),e.currentEvalute.identificationMethod==5?(a(),n(t,{key:21,prop:"analogyResult",label:"\u53EF\u80FD\u5B58\u5728\u540E\u679C","show-overflow-tooltip":"",align:"center"})):l("",!0),u(t,{label:"\u64CD\u4F5C"},{default:r(o=>[e.currentEvalute.planExecStatus===3&&e.currentEvalute.evaluateUserId==e.user?(a(),n(f,{key:0,size:"small",text:"",type:"primary",icon:_(G),onClick:p=>k("\u8BC4\u4EF7",o.row)},{default:r(()=>[Se]),_:2},1032,["icon","onClick"])):l("",!0),o.row.riskValue?(a(),n(f,{key:1,size:"small",text:"",type:"primary",icon:_(A),onClick:p=>k("\u67E5\u770B",o.row)},{default:r(()=>[ze]),_:2},1032,["icon","onClick"])):l("",!0)]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]),u(_(S),{ref_key:"evaluateDialogRef",ref:B,onRefresh:I},null,512)])}}});var Qe=$(Ne,[["__scopeId","data-v-76910ae1"]]);export{Qe as default};