1 |
- import{_ as k,P as b}from"./page-content.e0c7af12.js";import{u as x}from"./use-page-search.0f272301.js";import{S as C}from"./status.2b37e8be.js";import{c as S,r as y}from"./column-helper.64ceba17.js";import{h as A,d as v,e as w}from"./company.479d8ad0.js";import{u as P}from"./usePermission.8064505c.js";import{_ as R}from"./edit-dialog.vue_vue_type_script_setup_true_lang.afe45ec9.js";import{a as E,r as N,b as m,c,j as f,h as r,f as s,u as t,x as $,l as D}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"./btnList.6c44b4ef.js";const T={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:S(C)},{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"}]},d=T,O=[{prop:"title",label:"\u516C\u53F8\u540D\u79F0"},{prop:"status",label:"\u72B6\u6001",width:"100px",...y(C)},{prop:"contacts",label:"\u8054\u7CFB\u4EBA",width:"100px"},{prop:"mobile",label:"\u8054\u7CFB\u65B9\u5F0F",width:"120px"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",width:"140px"},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],V={title:"\u4F01\u4E1A\u7BA1\u7406",columns:O,apis:{httpList:A,httpStatus:v,httpDelete:w}},I=V,re=E({__name:"index",setup(U){const{pageContentRef:a,handleResetClick:h,handleSearchClick:B}=x(void 0,void 0,d),p="company",u=N(null),{hasPermissionWithCode:F,permissions:g}=P(p);function n(l,e,i){u.value.show(l,e,i)}return(l,e)=>{const i=m("el-button"),_=m("PageAuth");return c(),f(_,{pageName:p},{default:r(()=>[s(t(k),{"form-config":t(d),onSearchBtnClick:t(B),onResetBtnClick:t(h)},{action:r(()=>[t(F)("002")?(c(),f(i,{key:0,type:"primary",onClick:e[0]||(e[0]=o=>n({},"","create"))},{default:r(()=>[$(" \u65B0\u589E ")]),_:1})):D("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(t(b),{ref_key:"pageContentRef",ref:a,powers:t(g),"content-config":t(I),onPreviewBtnClick:e[1]||(e[1]=o=>n(o,o.id,"view")),onUpdateBtnClick:e[2]||(e[2]=o=>n(o,o.id,"edit"))},null,8,["powers","content-config"]),s(R,{ref_key:"modelRef",ref:u,onReload:e[3]||(e[3]=o=>t(a).onSearch())},null,512)]),_:1})}}});export{re as default};
|