index.8804aba7.js 2.6 KB

1
  1. import{_ as x,P as k}from"./page-content.e0c7af12.js";import{u as b}from"./use-page-search.0f272301.js";import{h as y,_ as w}from"./edit-dialog.vue_vue_type_script_setup_true_lang.81d18946.js";import{r as E,t as s}from"./column-helper.64ceba17.js";import{B as R}from"./status.2b37e8be.js";import{u as A}from"./usePermission.8064505c.js";import{a as D,r as P,b as l,c as m,j as c,h as n,f as r,u as e,x as S,l as v}from"./index.4d061c66.js";import"./remote-select.36ee67a3.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";/* empty css */import"./image.4c97dbe3.js";/* empty css */import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";import"./Card.vue_vue_type_script_setup_true_lang.27e443dd.js";import"./remoteSelect.403add72.js";import"./btnList.6c44b4ef.js";const N={formItems:[{field:"title",type:"input",placeholder:"\u4F01\u4E1A\u540D\u79F0"},{field:"company_title",type:"input",placeholder:"\u4F01\u4E1A\u540D\u79F0"},{field:"card_title",type:"input",placeholder:"\u5361\u7C7B\u578B\u540D\u79F0"}]},f=N,$=[{prop:"id",label:"ID",width:"90px"},{prop:"status",label:"\u72B6\u6001",...E(R),width:"100px"},{prop:"company_title",label:"\u516C\u53F8\u540D\u79F0",minWidth:"150px"},{prop:"card_title",label:"\u5361\u7C7B\u578B",width:"120px"},{prop:"contacts",label:"\u5B57\u6BCD\u6BB5-\u5E74\u4EFD\u6BB5",...s(["username_prefix","username_year"],"-"),width:"120px"},{prop:"starttime",label:"\u6709\u6548\u65E5\u671F",...s(["starttime","expiretime"],"~"),width:"200px"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",width:"160px"}],I={title:"\u6279\u91CF\u521B\u5EFA\u8D26\u53F7",columns:$,apis:{httpList:y}},T=I,re=D({__name:"index",setup(V){const{pageContentRef:i,handleResetClick:d,handleSearchClick:h}=b(void 0,void 0,f),a="batchCreatUser",u=P(null),{hasPermissionWithCode:C,permissions:_}=A(a);function B(p,t,o){u.value.show(p,t,o)}return(p,t)=>{const o=l("el-button"),g=l("PageAuth");return m(),c(g,{pageName:a},{default:n(()=>[r(e(x),{"form-config":e(f),onSearchBtnClick:e(h),onResetBtnClick:e(d)},{action:n(()=>[e(C)("002")?(m(),c(o,{key:0,type:"primary",onClick:t[0]||(t[0]=F=>B({},"","create"))},{default:n(()=>[S(" \u65B0\u589E ")]),_:1})):v("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(e(k),{ref_key:"pageContentRef",ref:i,powers:e(_),"content-config":e(T)},null,8,["powers","content-config"]),r(w,{ref_key:"modelRef",ref:u,onReload:t[1]||(t[1]=F=>e(i).onSearch())},null,512)]),_:1})}}});export{re as default};