index.c7e5bb.js 1.9 KB

1
  1. import{aT as p,ac as h,al as a,a$ as n,_ as F,d as g,w as E,r as s,o as x,G as B,C,j as v,l as o}from"./index.js";import{u as b}from"./use-page-search.f7bc460e.js";const{VITE_PROXY_DOMAIN_REAL:k,VITE_PROXY_USER_REAL:P}=h(),c=P+"/admin/",y=e=>p.request("post",`${c}expresslist`,{data:e}),D=e=>p.request("post",`${c}expressuse`,{data:e}),l=[{value:"0",label:"\u56FD\u5185"},{value:"1",label:"\u56FD\u9645"},{value:"2",label:"\u56FD\u9645\u90AE\u653F"}],S=[{prop:"comTypeName",label:"\u5FEB\u9012\u7C7B\u578B\u540D\u79F0"},{prop:"name",label:"\u5FEB\u9012\u540D\u79F0"},{prop:"shortName",label:"\u5FEB\u9012\u7B80\u79F0"},{prop:"shortNameEn",label:"\u5FEB\u9012\u82F1\u6587"},{prop:"type",label:"\u5FEB\u9012\u5C5E\u6027",width:"100px",cellRenderer:({row:e})=>a(n,{},{default:()=>{var t;return((t=l.find(({value:u})=>u===String(e.type)))==null?void 0:t.label)||"--"}})},{prop:"canOrder",label:"\u72B6\u6001",width:"80px",cellRenderer:({row:e})=>a(n,{type:String(e.canOrder)==="1"?"success":"danger"},{default:()=>String(e.canOrder)==="1"?"\u542F\u7528":"\u7981\u7528"})},{prop:"",label:"\u64CD\u4F5C",fixed:"right",width:"90px",slot:"operation"}],A={title:"\u5FEB\u9012\u4FE1\u606F\u8BBE\u7F6E",columns:S,statusListProp:"canOrder",apis:{httpList:y,httpStatus:D}},r={formItems:[{field:"type",type:"select",options:l,placeholder:"\u5FEB\u9012\u5C5E\u6027"},{type:"input",field:"name",placeholder:"\u5FEB\u9012\u540D\u79F0"}]},N=g({__name:"index",setup(e){const t="expressSet",u=E(null),i={pageSearchHook:()=>b(void 0,void 0,r)},d={};return(O,R)=>{const f=s("PageContainer"),m=s("PageAuth");return x(),B(m,{pageName:t},{default:C(()=>[v(f,{hooks:i,events:d,contentConfig:o(A),"search-config":o(r),"get-content-ref":_=>u.value=_},null,8,["contentConfig","search-config","get-content-ref"])]),_:1})}}});var I=F(N,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/serviceParam/expressSet/index.vue"]]);export{I as default};