docs: explain common, dcim and kky resource upgrades

This commit is contained in:
cieanyau committed 2026-11-06 00:41:14 +08:00
1 parent 5ba081550c
commit 1e9f2d786b
3 files changed
+28

No files matched your search

+6
View File
@@ -1,4 +1,5 @@
<script>
// KKY ECS 分项升级入口:实例规格、带宽、防护、新增硬盘和已有磁盘扩容分别调用对应接口。
import "~/assets/styles/ConfigBandwidth.CWSH1WJZ.css";
import "~/assets/styles/KkyUpgrade.CkDmxFBM.css";
import { toDisplayString } from "vue";
@@ -263,6 +264,7 @@ var ue = {
protect: Xe,
disk: Ze,
};
// 各页签首次进入时按需加载规格,已尝试加载的页签不重复发起初始化请求。
async function Y(e) {
if (
x.upgradeAllowed !== !1 &&
@@ -278,6 +280,7 @@ var ue = {
}
}
}
// 扩容配置必须匹配所选磁盘 identity;切换磁盘或页签后丢弃旧配置响应。
async function $e(e) {
if (J || x.upgradeAllowed === !1 || W.value) return;
let t = ++q,
@@ -309,6 +312,7 @@ var ue = {
e instanceof Error ? e.message : `该磁盘暂不支持扩容`);
}
}
// 根据当前页签组装请求体;新增磁盘发送列表,扩容发送类型、目标容量与唯一标识。
function X() {
return E.value === `ins`
? A.value
@@ -360,6 +364,7 @@ var ue = {
},
};
}
// 询价记录页签、实例和请求体快照,只让仍对应当前选择的结果更新界面。
async function Z() {
if (x.upgradeAllowed === !1) return;
let e = ++K,
@@ -394,6 +399,7 @@ var ue = {
bandwidth: `bandwidth_order`,
protect: `protect_upgrade_order`,
};
// 按升级种类选择订单接口,返回后由父级统一处理支付。
async function tt() {
if (x.upgradeAllowed === !1 || W.value || U.value || !H.value)
return;