1 |
- import{al as p,aS as i,ae as c,_ as d,d as m,r as a,o as h,G as f,C as g,l as F,u as t}from"./index.fd765376.js";import{a as _,h as B,b as A,c as C,d as D}from"./index.0ca0374a.js";import{u as y}from"./use-page-search.414f397e.js";import{u as E}from"./use-page-modal.58e4d08d.js";const b=[{type:"selection",width:40,align:"center",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:g(()=>[F(l,{hooks:r,contentConfig:t(P),"search-config":t(o),"modal-config":t(x)},null,8,["contentConfig","search-config","modal-config"])]),_:1})}}});var N=d(v,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/parameter/setProcess/index.vue"]]);export{N as default};
|