import{a0 as B,ax as D}from"./index.17037962789732.js";import"./index.1703796278973300.js";import"./index.170379627897315.js";import"./index.170379627897317.js";import"./index.1703796278973301.js";import"./index.1703796278973302.js";import"./index.170379627897332.js";import"./index.1703796278973303.js";import"./index.170379627897339.js";import"./index.170379627897316.js";import"./index.170379627897314.js";import"./index.1703796278973304.js";import"./index.1703796278973305.js";import"./index.1703796278973306.js";import"./index.170379627897336.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_name_PermissionButton_lang.1703796278973.js";import{a as j,r as E}from"./certificate.1703796278973.js";import{o as F}from"./comm.1703796278973.js";import{h as q}from"./system.1703796278973.js";import{d as k,k as u,r,o as a,c as f,a as t,z as _,b as i,u as y,t as N,A as O,x as V,F as J,h as L}from"./vue.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897320.js";import"./index.170379627897321.js";import"./permission.1703796278973.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./_plugin-vue_export-helper.1703796278973.js";import"./default.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const M=k({name:"CertificatePage"}),ve=k({...M,setup(R){const s=q(),p=u({}),l=u({}),c=[{title:"证书标准",dataIndex:"type",key:"type",fixed:"left",width:200,ellipsis:!0,search:{type:"select",options:[{label:"国际标准",value:"common"}]},scopedSlots:!0},{title:"证书名称",dataIndex:"name",key:"name",ellipsis:!0,search:{type:"string",first:!0}},{title:"说明",dataIndex:"description",key:"description",ellipsis:!0,search:{type:"string"}},{title:"操作",key:"action",fixed:"right",width:200,scopedSlots:!0}],h=e=>e?[{key:"update",text:"编辑",tooltip:{title:"编辑"},icon:"EditOutlined",onClick:async()=>{C(e.id)}},{key:"delete",text:"删除",tooltip:{title:"删除"},popConfirm:{title:"确认删除?",okText:" 确定",cancelText:"取消",onConfirm:async()=>{x(e.id)}},icon:"DeleteOutlined"}]:[],g=()=>{s.jumpPage("link/Certificate/Detail",{id:":id"},{view:!1})},C=e=>{s.jumpPage("link/Certificate/Detail",{id:e},{view:!1})},x=async e=>{(await E(e)).success&&(F("操作成功","success"),p.value.reload())},P=e=>{l.value=e};return(e,b)=>{const v=r("pro-search"),m=r("AIcon"),d=I,S=B,T=D,w=r("FullPage"),A=r("page-container");return a(),f(A,null,{default:t(()=>[_("div",null,[i(v,{columns:c,target:"search",onSearch:P}),i(w,null,{default:t(()=>[i(T,{ref_key:"tableRef",ref:p,model:"TABLE",columns:c,request:y(j),defaultParams:{sorts:[{name:"createTime",order:"desc"}]},params:y(l)},{headerTitle:t(()=>[i(d,{type:"primary",onClick:g,hasPermission:"link/Certificate:add"},{icon:t(()=>[i(m,{type:"PlusOutlined"})]),default:t(()=>[N(" 新增 ")]),_:1})]),type:t(n=>[_("span",null,O(n.type.text),1)]),action:t(n=>[i(S,null,{default:t(()=>[(a(!0),V(J,null,L(h(n),o=>(a(),f(d,{key:o.key,disabled:o.disabled,popConfirm:o.popConfirm,tooltip:{...o.tooltip},style:{padding:"0px"},onClick:o.onClick,type:"link",danger:o.key==="delete",hasPermission:"link/Certificate:"+o.key},{icon:t(()=>[i(m,{type:o.icon},null,8,["type"])]),_:2},1032,["disabled","popConfirm","tooltip","onClick","danger","hasPermission"]))),128))]),_:2},1024)]),_:1},8,["request","params"])]),_:1})])]),_:1})}}});export{ve as default};
