var P=Object.defineProperty;var D=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var N=(s,e,a)=>e in s?P(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a,w=(s,e)=>{for(var a in e||(e={}))S.call(e,a)&&N(s,a,e[a]);if(D)for(var a of D(e))U.call(e,a)&&N(s,a,e[a]);return s};var x=(s,e,a)=>new Promise((f,u)=>{var c=l=>{try{r(a.next(l))}catch(p){u(p)}},i=l=>{try{r(a.throw(l))}catch(p){u(p)}},r=l=>l.done?f(l.value):Promise.resolve(l.value).then(c,i);r((a=a.apply(s,e)).next())});import{l as q}from"./role-manage-91cdffc1.js";import{d as z,r as b,G as j,M as V,a as A,j as n,o as E,h as H,w as o,e as t,k as y,b as k}from"./index-90c78f99.js";import{_ as I}from"./tag-dialog.vue_vue_type_script_name_tagDialog_setup_true_lang-13aa597b.js";import{_ as J}from"./server-dialog.vue_vue_type_script_name_serverDialog_setup_true_lang-5d5cd9a8.js";const K={class:"flex justify-between items-center"},Q=k("span",null,"服务器标签管理",-1),W=["onClick"],le=z({__name:"index",setup(s){const e=b({tagName:void 0}),a=[{type:"index",label:"序号",width:80},{label:"标签",prop:"tagName",key:"tagName"},{label:"添加时间",prop:"tjsj",key:"tjsj"},{label:"添加人",prop:"tjr",key:"tjr"},{label:"操作",slot:"action",key:"action",width:80,fixed:"right"}],f=b(),u=b(),c=b(),i=(...d)=>x(this,[...d],function*(v=c.value.pageParams){const m=yield q(w(w({},e.value),v));f.value=m.data&&m.data.records||[],u.value=m.data&&m.data.total||0}),r=j(new V(i)),l=j(new V(i)),p=()=>{c.value.pageNumber=1,i()},T=()=>{c.value.pageNumber=1,e.value={tagName:void 0},i()},B=()=>{r.visible=!0},$=v=>{l.visible=!0,l.data=v};return A(()=>{i()}),(v,d)=>{const m=n("page-title"),G=n("el-input"),h=n("el-form-item"),C=n("el-col"),g=n("el-button"),L=n("el-row"),M=n("el-form"),R=n("table-list"),F=n("el-card"),O=n("views");return E(),H(O,null,{default:o(()=>[t(m),t(M,{class:"search mb-16",model:e.value,"label-suffix":":"},{default:o(()=>[t(L,{gutter:24},{default:o(()=>[t(C,{span:6},{default:o(()=>[t(h,{label:"标签"},{default:o(()=>[t(G,{modelValue:e.value.tagName,"onUpdate:modelValue":d[0]||(d[0]=_=>e.value.tagName=_),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),t(C,{span:18},{default:o(()=>[t(h,{class:"search_btn"},{default:o(()=>[t(g,{type:"primary",onClick:p},{default:o(()=>[y("搜索")]),_:1}),t(g,{onClick:T},{default:o(()=>[y("重置")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(F,{class:"my-card",shadow:"never"},{header:o(()=>[k("div",K,[Q,t(g,{icon:"plus",plain:"",type:"primary",onClick:B},{default:o(()=>[y(" 新增标签 ")]),_:1})])]),default:o(()=>[t(R,{ref_key:"tableListRef",ref:c,column:a,data:f.value,total:u.value,onGetTableData:i},{action:o(({scope:_})=>[k("a",{class:"btn text-primary mr-24",onClick:X=>$(_.row)}," 关联 ",8,W)]),_:1},8,["data","total"])]),_:1}),t(I,{data:r.data||{},visible:r.visible,onClose:d[1]||(d[1]=_=>r.close(_))},null,8,["data","visible"]),t(J,{data:l.data||{},visible:l.visible,onClose:d[2]||(d[2]=_=>l.close(_))},null,8,["data","visible"])]),_:1})}}});export{le as default};
