1 |
- import{aj as u,aF as i,ah as v,_ as y,d as P,aZ as F,E as _,o as x,c as b,y as r,K as k,b as f,u as a,a_ as D,a$ as R,b0 as E}from"./index.1417328f.js";import{u as w}from"./use-page-search.7e7b4728.js";import{a as h,o as m,h as A,b as S,c as M,d as N,P as Y}from"./process-modal.8f169b4a.js";import j from"./process-list.5438d0fd.js";import"./index.1c6d01e9.js";const I={formItems:[{field:"action_type",type:"select",placeholder:"\u8282\u70B9\u7C7B\u578B",options:h},{field:"operation_type",type:"select",placeholder:"\u64CD\u4F5C\u7C7B\u578B",options:m}]},T=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u8282\u70B9\u540D\u79F0",prop:"status_name"},{label:"\u8282\u70B9\u503C",prop:"order_process"},{label:"\u8282\u70B9\u7C7B\u578B",prop:"status",cellRenderer({row:e}){return u(i,null,{default:()=>{var s;return(s=h.find(o=>o.value===e.action_type))==null?void 0:s.label}})}},{label:"\u64CD\u4F5C\u7C7B\u578B",prop:"status",cellRenderer({row:e}){return u(i,null,{default:()=>{var s;return(s=m.find(o=>o.value===e.operation_type))==null?void 0:s.label}})}},{label:"\u72B6\u6001",prop:"status",cellRenderer({row:e}){return u(i,{type:e.status==="0"?"danger":"success"},{default:()=>e.status==="1"?"\u542F\u7528":"\u7981\u7528"})}},{label:"\u4E0B\u4E00\u8282\u70B9",prop:"status",width:"200px",cellRenderer({row:e}){return u("div",null,{default:()=>e.next_actions.map(s=>u(i,{style:{marginRight:"10px"}},{default:()=>s}))})}},{label:"\u521B\u5EFA\u4EBA",prop:"creater"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>v(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:150,slot:"operation"}],U={title:"\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E",notNeedCompanyFilter:!0,columns:T,notReuqiredInit:!0,apis:{httpAdd:A,httpList:S,httpStatus:M,httpUpdate:!0,httpDelete:N}};const H={class:"main role bg-white"},L={"w-full":"",flex:""},V={class:"min-w-240px h-[calc(100vh-90px)] process-list__content"},q={"flex-1":""},K={name:"setActionProcess"},W=P({...K,setup(e){const s="setActionProcess",{hasPermissionWithCode:o}=F(s),n=_({}),l=_(null),{pageContentRef:c,handleResetClick:C,handleSearchClick:B}=w(()=>({result:{process_id:n.value.id},deleteProps:[]}));function g(p){const{id:t}=p;n.value=p,c.value.getPageData({process_id:t})}return(p,t)=>(x(),b("div",H,[r(E,{"is-show":a(o)("001")},{default:k(()=>[f("div",L,[f("div",V,[r(j,{"current-process":n.value,onChangeBtnClick:g},null,8,["current-process"])]),f("div",q,[r(a(D),{class:"search","form-config":a(I),onSearchBtnClick:a(B),onResetBtnClick:a(C)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(a(R),{ref_key:"pageContentRef",ref:c,"content-config":a(U),onCreateBtnClick:t[0]||(t[0]=()=>l.value.onDisplay()),onPreviewBtnClick:t[1]||(t[1]=({id:d})=>l.value.onDisplay(d,!0)),onUpdateBtnClick:t[2]||(t[2]=({id:d})=>l.value.onDisplay(d))},null,8,["content-config"])])]),r(Y,{"current-process":n.value,ref_key:"processModalRef",ref:l,onReload:t[3]||(t[3]=()=>a(c).getPageData({process_id:n.value.id}))},null,8,["current-process"])]),_:1},8,["is-show"])]))}});var O=y(W,[["__scopeId","data-v-25c08c1a"],["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/parameter/setActionProcess/index.vue"]]);export{O as default};
|