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-DnroACXc.js";import{i as x,c as C}from"./app-DckefXYL.js";import{_}from"./app-DEdbCVMO.js";import{C as g}from"./app-DR6MAZZy.js";import{C as m}from"./app-BQ_EeKjW.js";import"./app-C9iVkiu5.js";import"./app-DrIi-dNq.js";import"./app-zueB50zj.js";import"./app-B0NrURRk.js";import"./app-Co2SIBzr.js";import"./app-CUPmXIij.js";import"./app-Cu6FD8m8.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};
