Files
yusheng-admin/dist/static/js/index-Dxv8yK_D.js
2025-10-23 11:07:17 +08:00

2 lines
1.7 KiB
JavaScript

import{useData as T}from"./hook-nxxl-JO8.js";import{d as U,x as D,r as t,o,c as r,e as d,b as i,h as l,f as L,u as e,R,a8 as S,P as c,Q as p,g as u,T as z,a7 as E,U as F}from"./index-CRmU-Qpi.js";import"./system-CqYheEHE.js";const I={class:"main"},M={style:{"margin-bottom":"20px","text-align":"right"}},P={style:{width:"100%",display:"inline-flex"}},Q={style:{width:"20%"}},j={style:{width:"70%","margin-left":"20px",color:"#666"}},K=U({name:"private",__name:"index",setup(q){const{onSearch:f,loading:b,tableList:y,activeId:m,formLabel:h,formData:_,tabClick:k,saveConfig:x}=T();return D(()=>{f()}),(A,n)=>{const v=t("el-button"),w=t("el-input"),C=t("el-form-item"),V=t("el-form"),g=t("el-tab-pane"),B=t("el-tabs");return o(),r("div",I,[d("div",M,[i(v,{type:"primary",onClick:e(x)},{default:l(()=>n[1]||(n[1]=[L("保存当前配置")])),_:1},8,["onClick"])]),e(b)?F("",!0):(o(),r("div",{key:0,ref:"contentRef",class:R(["flex",e(S)()?"flex-wrap":""])},[i(B,{onTabClick:e(k),type:"border-card",modelValue:e(m),"onUpdate:modelValue":n[0]||(n[0]=a=>E(m)?m.value=a:null),style:{width:"100%"}},{default:l(()=>[(o(!0),r(c,null,p(e(y),a=>(o(),u(g,{label:a.name,name:a.id},{default:l(()=>[i(V,{ref_for:!0,ref:"form",model:e(_),"label-width":"200px"},{default:l(()=>[(o(!0),r(c,null,p(e(h),s=>(o(),u(C,{label:s.key_name},{default:l(()=>[d("div",P,[d("div",Q,[i(w,{modelValue:e(_)[s.key_title],"onUpdate:modelValue":N=>e(_)[s.key_title]=N,"show-password":a.id===11},null,8,["modelValue","onUpdate:modelValue","show-password"])]),d("div",j,z(s.key_desc),1)])]),_:2},1032,["label"]))),256))]),_:2},1032,["model"])]),_:2},1032,["label","name"]))),256))]),_:1},8,["onTabClick","modelValue"])],2))])}}});export{K as default};