docs: annotate instance controls and legacy upgrades

This commit is contained in:
cieanyau committed 2026-11-06 00:39:01 +08:00
1 parent f50693a674
commit 5ba081550c
6 files changed
+20 -2

No files matched your search

+5
View File
@@ -1,4 +1,5 @@
<script>
// 旧财务模块配置升降级:适配数量、选项、镜像及区域类型,并对当前配置快照询价。
import "~/assets/styles/RemfUpgrade.4stQ5ASH.css";
import { nextTick } from "vue";
import { toDisplayString } from "vue";
@@ -122,6 +123,7 @@ var se = {
q = 0,
J = ``,
Y = computed(() => JSON.stringify([D.hostId, O.value, F.value]));
// 将镜像分组和区域嵌套列表展开为统一选项,便于同一控件和校验逻辑使用。
function X(e) {
return e.option_type === 5 && e.sub && !Array.isArray(e.sub)
? Object.entries(e.sub).flatMap(([e, t]) =>
@@ -182,6 +184,7 @@ var se = {
t === q && (I.value = !1);
}
}
// 初始化配置不触发报价;用户改动后立即废弃旧报价,防抖 400ms 再请求。
function ye() {
D.upgradeAllowed === !1 ||
U ||
@@ -194,6 +197,7 @@ var se = {
(L.value = ``),
(W = setTimeout(be, 400)));
}
// 数量先校验范围,选项先校验成员关系;只接收仍属于当前配置快照的价格。
async function be() {
if (
D.upgradeAllowed === !1 ||
@@ -246,6 +250,7 @@ var se = {
e === G && (B.value = !1);
}
}
// 下单再次比对报价快照,避免用上一个配置的金额提交新的配置。
async function xe() {
if (
D.upgradeAllowed === !1 ||