index.7d1a389f.js 3.6 KB

1
  1. import{_ as g}from"./page-search.vue_vue_type_script_setup_true_lang.e284bf07.js";import{u as F}from"./use-page-search.da34a19a.js";import{aI as l,aJ as o,aK as y,b as A,o as E,c as b,j as u,f as e,F as k}from"./index.4d3e3847.js";import{c as _,r as P}from"./column-helper.adef10ea.js";import{h as R}from"./company.a05c4b39.js";import{h as $}from"./card.8fd03846.js";import{u as S,_ as q}from"./use-page-modal.88aec721.js";import{P as D}from"./page-content.1fdb6363.js";import"./basic-form.114da3ff.js";import"./validate.93ab4ac7.js";import"./basic-form.vue_vue_type_style_index_0_scoped_d6f0d2ed_lang.3165143d.js";import"./useAsync.24db85a6.js";import"./useNav.afbe69e0.js";import"./image.7849d972.js";import"./hooks.428ba1c3.js";import"./index.a5d44002.js";import"./responseHandle.db1518c7.js";import"./xlsx.ed122d16.js";const I={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:_(l)},{field:"title",type:"input",placeholder:"\u4F01\u4E1A\u540D\u79F0"},{field:"contacts",type:"input",placeholder:"\u8054\u7CFB\u4EBA"},{field:"mobile",type:"input",placeholder:"\u8054\u7CFB\u65B9\u5F0F"}]},s=I,{VITE_PROXY_DOMAIN_REAL:n}=y();async function L(t={}){return o.request("post",`${n}admin/companyAdd`,{data:t})}async function O(t={}){return o.request("post",`${n}admin/companylist`,{data:t})}async function v(t={}){return o.request("post",`${n}admin/companyEdit`,{data:t})}async function x(t={}){return o.request("post",`${n}admin/companyChange`,{data:t})}async function U(t={}){return o.request("post",`${n}admin/companyDelete`,{data:t})}const V=[{type:"selection",width:55,hide:({checkList:t})=>!t.includes("\u52FE\u9009\u5217")},{prop:"id",label:"ID"},{prop:"title",label:"\u5361\u7C7B\u578B"},{prop:"status",label:"\u72B6\u6001",...P(l)},{prop:"contacts",label:"\u8054\u7CFB\u4EBA"},{prop:"mobile",label:"\u8054\u7CFB\u65B9\u5F0F"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",sortable:!0},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],w={title:"\u5546\u54C1\u7BA1\u7406",columns:V,apis:{httpAdd:L,httpList:O,httpUpdate:v,httpStatus:x,httpDelete:U}},M=w,T={title:"\u4F01\u4E1A\u5546\u54C1",colLayout:{span:24},itemStyle:{},contact:"setUserVideo",labelWidth:"85px",formItems:[{field:"name",type:"remote-select",label:"\u4E1A\u52A1\u4F01\u4E1A",placeholder:"\u4E1A\u52A1\u4F01\u4E1A",otherOptions:{api:R,responseLabelProp:"title",responseValPro:"id",requesetProp:"",isRoot:!1,prop:"list"},span:24,rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u4F01\u4E1A"}]},{field:"name2",type:"remote-select",label:"\u5361\u7C7B\u578B",placeholder:"\u5361\u7C7B\u578B",otherOptions:{api:$,responseLabelProp:"title",responseValPro:"id",requesetProp:"",isRoot:!1,prop:"list"},span:24,rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u5361\u7C7B\u578B"}]}]},N=T,se=A({__name:"index",setup(t){const{pageContentRef:i,handleResetClick:p,handleSearchClick:c}=F(void 0,void 0,s),{pageModalRef:m,handleUpdateData:d,handleCreateData:f,handlePreviewData:C,handleConfrim:h,defaultInfo:B}=S({pageContentRef:i});return(j,a)=>(E(),b(k,null,[u(e(g),{"form-config":e(s),onSearchBtnClick:e(c),onResetBtnClick:e(p)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(e(D),{ref_key:"pageContentRef",ref:i,"content-config":e(M),onCreateBtnClick:e(f),onPreviewBtnClick:a[0]||(a[0]=r=>e(C)(r)),onUpdateBtnClick:a[1]||(a[1]=r=>e(d)(r))},null,8,["content-config","onCreateBtnClick"]),u(e(q),{ref_key:"pageModalRef",ref:m,"modal-config":e(N),"default-info":e(B),onConfirmBtnClick:e(h)},null,8,["modal-config","default-info","onConfirmBtnClick"])],64))}});export{se as default};