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-DA7OTM4Q.js";import{i as x,c as C}from"./app-BT68AfZ-.js";import{_}from"./app-mzOq0BJu.js";import{C as g}from"./app-CDbNm056.js";import{C as m}from"./app-CVfeXVc-.js";import"./app-scFtFqL8.js";import"./app-DREBJ-ou.js";import"./app-CWBL8eTX.js";import"./app-CnGe5nlE.js";import"./app-OC5wWJiS.js";import"./app-BX4pd6U-.js";import"./app-Bhreb6Cm.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};
