import{o as p,g as s,b as a,u as t,a as d,w as i,F as P,f as n,t as u,i as f,h as l}from"./app-SC54XQDl.js";import{i as x,c as C}from"./app-Ba7ZqSpq.js";import{_}from"./app-DUMiz-D3.js";import{C as g}from"./app-BjiVQlSS.js";import{C as m}from"./app-Bt2pXSov.js";import"./app-CL60OiIv.js";import"./app-D9TrJBlL.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-Dhl-Bw0H.js";import"./app-B2C_dtYI.js";import"./app-COidJXl1.js";function y(){const{utils:r,Tea:e}=x(this);this.updatePriceType=function(){r.popup("/servers/fee/updatePriceTypePopup",{callback:function(){r.success("保存成功",function(){r.reload()})}})},this.updatePricePeriod=function(){r.popup("/servers/fee/updatePricePeriodPopup",{callback:function(){r.success("保存成功",function(){r.reload()})}})}}const M={__name:"index",setup(r){const e=C(new y);return(k,o)=>(p(),s(P,null,[a(_,{ctx:t(e),"active-tab":"index"},null,8,["ctx"]),d("form",null,[a(g,null,{default:i(()=>[a(m,{full:""},{name:i(()=>[n("计费方式")]),value:i(()=>[n(u(t(e).config.priceTypeName)+"     ",1),t(e).config.canChangeType?(p(),s("a",{key:0,href:"",onClick:o[0]||(o[0]=f((...c)=>t(e).updatePriceType&&t(e).updatePriceType(...c),["prevent"]))},"[修改]")):l("",!0)]),_:1}),a(m,{full:""},{name:i(()=>[n("计费周期")]),value:i(()=>[n(u(t(e).config.pricePeriodName)+"     ",1),t(e).config.canChangePeriod?(p(),s("a",{key:0,href:"",onClick:o[1]||(o[1]=f((...c)=>t(e).updatePricePeriod&&t(e).updatePricePeriod(...c),["prevent"]))},"[修改]")):l("",!0)]),_:1})]),_:1})])],64))}};export{M as default};
