1 |
- import{aj as p,aF as i,ah as c,_ as d,d as m,x as a,o as h,N as f,K as F,y as g,u as t}from"./index.1417328f.js";import{a as _,h as B,b as A,c as C,d as D}from"./index.1c6d01e9.js";import{u as y}from"./use-page-search.7e7b4728.js";import{u as E}from"./use-page-modal.369cb1f6.js";const b=[{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:"ID",prop:"id"},{label:"\u6D41\u7A0B\u540D\u79F0",prop:"process_name"},{label:"\u6D41\u7A0B\u503C",prop:"process_type"},{label:"\u72B6\u6001",prop:"status",cellRenderer({row:e}){return p(i,{type:e.status==="0"?"danger":"success"},{default:()=>e.status==="0"?"\u7981\u7528":"\u542F\u7528"})}},{label:"\u521B\u5EFA\u4EBA",prop:"creater"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({createTime:e})=>c(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:150,slot:"operation"}],P={title:"\u6D41\u7A0B\u8BBE\u7F6E",notNeedCompanyFilter:!0,columns:b,apis:{httpAdd:_,httpList:B,httpUpdate:A,httpStatus:C,httpDelete:D}},o={formItems:[{field:"addtime",type:"date_picker",otherOptions:{type:"daterange",startProp:"addtime_start",endProp:"addtime_end",startPlaceholder:"\u521B\u5EFA\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u521B\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"process_name",type:"input",placeholder:"\u6D41\u7A0B\u540D\u79F0"},{field:"creater",type:"input",placeholder:"\u521B\u5EFA\u4EBA"},{field:"status",type:"select",placeholder:"\u72B6\u6001",options:[{value:"1",label:"\u542F\u7528"},{value:"0",label:"\u7981\u7528"}]}]},x={title:"\u6D41\u7A0B",itemStyle:{},colLayout:{span:24},formItems:[{field:"process_name",type:"input",label:"\u6D41\u7A0B\u540D\u79F0",labelWidth:"120px",rules:[{required:!0,message:"\u6D41\u7A0B\u540D\u79F0\u4E3A\u5FC5\u586B\u9879",trigger:"change"}]},{field:"process_type",type:"input",labelWidth:"120px",label:"\u6D41\u7A0B\u503C",rules:[{required:!0,message:"\u6D41\u7A0B\u503C\u79F0\u4E3A\u5FC5\u586B\u9879",trigger:"change"}]}]},v=m({__name:"index",setup(e){const s="setProcess",r={pageSearchHook:()=>y(void 0,void 0,o),pageModalHook:u=>E({pageContentRef:u})};return(u,k)=>{const l=a("PageContainer"),n=a("PageAuth");return h(),f(n,{pageName:s},{default:F(()=>[g(l,{hooks:r,contentConfig:t(P),"search-config":t(o),"modal-config":t(x)},null,8,["contentConfig","search-config","modal-config"])]),_:1})}}});var S=d(v,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/parameter/setProcess/index.vue"]]);export{S as default};
|