沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
提交 | 用户 | 时间
314507 1 import{d as K,Q,J as W,r as n,A as X,b as Z,a1 as $,o as r,c as V,k as e,B as t,a as l,a2 as j,F as P,i as G,a3 as I,N as U,g as d,O as c,P as _,a7 as L,S as ee,$ as ae,R as le,T as te,U as se,V as oe,W as re,X as pe,Y as ne,Z as ie}from"./index-CHTXMeh8.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang-Cenk7Bi3.js";import{_ as me}from"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import{_ as de}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{d as ce}from"./formatTime-DG99nHw2.js";import{P as N}from"./index-BbWSenFL.js";import{_ as fe}from"./ProcessExpressionForm.vue_vue_type_script_setup_true_lang-C2cD_L9g.js";import"./index-DVe591HI.js";import"./color-DXkOL5Tu.js";import"./el-card-Bdk9qx7q.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";import"./constants-CuOBQ73z.js";const _e=K({name:"BpmProcessExpression",__name:"index",setup(ge){const v=Q(),{t:M}=W(),g=n(!0),w=n([]),k=n(0),o=X({pageNo:1,pageSize:10,name:void 0,status:void 0,createTime:[]}),h=n();n(!1);const i=async()=>{g.value=!0;try{const u=await N.getProcessExpressionPage(o);w.value=u.list,k.value=u.total}finally{g.value=!1}},b=()=>{o.pageNo=1,i()},O=()=>{h.value.resetFields(),b()},C=n(),S=(u,s)=>{C.value.open(u,s)};return Z(()=>{i()}),(u,s)=>{const Y=L,f=ee,D=ae,F=le,z=te,x=se,m=oe,A=re,T=de,p=pe,E=me,R=ne,B=ue,y=$("hasPermi"),H=ie;return r(),V(P,null,[e(T,null,{default:t(()=>[e(A,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:h,inline:!0,"label-width":"68px"},{default:t(()=>[e(f,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[e(Y,{modelValue:l(o).name,"onUpdate:modelValue":s[0]||(s[0]=a=>l(o).name=a),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:j(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(F,{modelValue:l(o).status,"onUpdate:modelValue":s[1]||(s[1]=a=>l(o).status=a),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(r(!0),V(P,null,G(l(I)(l(U).COMMON_STATUS),a=>(r(),d(D,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(z,{modelValue:l(o).createTime,"onUpdate:modelValue":s[2]||(s[2]=a=>l(o).createTime=a),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(f,null,{default:t(()=>[e(m,{onClick:b},{default:t(()=>[e(x,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),e(m,{onClick:O},{default:t(()=>[e(x,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),_((r(),d(m,{type:"primary",plain:"",onClick:s[3]||(s[3]=a=>S("create"))},{default:t(()=>[e(x,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[y,["bpm:process-expression:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(T,null,{default:t(()=>[_((r(),d(R,{data:l(w),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(p,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(p,{label:"\u540D\u5B57",align:"center",prop:"name"}),e(p,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(a=>[e(E,{type:l(U).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(p,{label:"\u8868\u8FBE\u5F0F",align:"center",prop:"expression"}),e(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(ce),width:"180px"},null,8,["formatter"]),e(p,{label:"\u64CD\u4F5C",align:"center"},{default:t(a=>[_((r(),d(m,{link:"",type:"primary",onClick:q=>S("update",a.row.id)},{default:t(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:process-expression:update"]]]),_((r(),d(m,{link:"",type:"danger",onClick:q=>(async J=>{try{await v.delConfirm(),await N.deleteProcessExpression(J),v.success(M("common.delSuccess")),await i()}catch{}})(a.row.id)},{default:t(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["bpm:process-expression:delete"]]])]),_:1})]),_:1},8,["data"])),[[H,l(g)]]),e(B,{total:l(k),page:l(o).pageNo,"onUpdate:page":s[4]||(s[4]=a=>l(o).pageNo=a),limit:l(o).pageSize,"onUpdate:limit":s[5]||(s[5]=a=>l(o).pageSize=a),onPagination:i},null,8,["total","page","limit"])]),_:1}),e(fe,{ref_key:"formRef",ref:C,onSuccess:i},null,512)],64)}}});export{_e as default};