index.8f95ab.js 2.5 KB

1
  1. import{am as p,aR as i,ae as d,_ as c,d as m,r as a,o as h,G as g,D as f,l as F,m as t,bd as _}from"./index.js";import{a as B,h as A,b as D,c as C,d as b}from"./index.ca1aa6c6.js";import{u as y}from"./use-page-modal.6af4f02b.js";const E=[{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})=>d(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:E,apis:{httpAdd:B,httpList:A,httpUpdate:D,httpStatus:C,httpDelete:b}},s={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 o="setProcess",r={pageSearchHook:()=>_(void 0,void 0,s),pageModalHook:u=>y({pageContentRef:u})};return(u,k)=>{const l=a("PageContainer"),n=a("PageAuth");return h(),g(n,{pageName:o},{default:f(()=>[F(l,{hooks:r,contentConfig:t(P),"search-config":t(s),"modal-config":t(x)},null,8,["contentConfig","search-config","modal-config"])]),_:1})}}});var N=c(v,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/parameter/setProcess/index.vue"]]);export{N as default};