docs: annotate instance controls and legacy upgrades
This commit is contained in:
1 parent
f50693a674
commit
5ba081550c
6 files changed
+20
-2
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script>
|
||||
// 旧财务 DCIM 控制适配:从模块按钮与 dcim.auth 解析权限,不凭缺省字段开放危险操作。
|
||||
import "~/assets/styles/LegacyDcimActions.DcIrQby6.css";
|
||||
import { toDisplayString } from "vue";
|
||||
import { renderList } from "vue";
|
||||
@@ -117,6 +118,7 @@ var de = {
|
||||
!!A.value &&
|
||||
!!j.value,
|
||||
);
|
||||
// 兼容单项及 console/control 分组按钮,后台显式禁用的动作优先拒绝。
|
||||
function Oe(e) {
|
||||
let t = A.value?.module_button,
|
||||
n = Array.isArray(t) ? t : [t];
|
||||
@@ -144,6 +146,7 @@ var de = {
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
// 旧功能名映射到统一动作;BMC 必须单独授权,其他动作遵循布尔或逐项授权。
|
||||
function N(e) {
|
||||
if (!Object.hasOwn(O, e) || !j.value || Oe(e)) return !1;
|
||||
let t = j.value.auth,
|
||||
@@ -242,6 +245,7 @@ var de = {
|
||||
X = 0,
|
||||
Z = !1,
|
||||
Q = null;
|
||||
// 绑定原始详情对象和实例编号,后台详情换新后原确认表单不再具有提交资格。
|
||||
function Ne(e) {
|
||||
return (
|
||||
!Z && M.value && N(e) && I.value === C.hostId && Q === C.data
|
||||
@@ -284,6 +288,7 @@ var de = {
|
||||
(W.value = !1));
|
||||
}
|
||||
}
|
||||
// 重装必须确认数据影响;Linux 固定整盘分区,Windows 才允许选择第一分区方式。
|
||||
async function Ie() {
|
||||
let e = F.value;
|
||||
if (!e || e === `vnc` || L.value || !Ne(e)) return;
|
||||
|
||||
Reference in new issue
Block a user