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-BYcXwl4U.js";import{i as x,c as C}from"./app-a6cKceqE.js";import{_}from"./app-DVF_9535.js";import{C as g}from"./app-Biqm6MNM.js";import{C as m}from"./app-C14NbwKQ.js";import"./app-DCd54JMo.js";import"./app-MrAtUXr3.js";import"./app-BWSI2Z1R.js";import"./app-DPDEogA0.js";import"./app-DxjODhok.js";import"./app-CabATHnR.js";import"./app-BhzV4gWo.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};
