|
|
|
|
@ -13661,7 +13661,7 @@ var resetmodules = __webpack_require__(11806);
|
|
|
|
|
var Option = es_select["default"].Option;
|
|
|
|
|
var MAX_COUNT = 3;
|
|
|
|
|
var Environment = function Environment(_ref) {
|
|
|
|
|
var _cloudList$find, _cloudList$find2, _mirror_repository$ch, _mirror_repository$sh2, _mirror_repository$sh3, _mirror_repository$sh4, _mirror_repository$sh5, _boosters$find, _network_mode_list$fi, _mirrorItems$Number2;
|
|
|
|
|
var _cloudList$find, _mirror_repository$ch, _mirror_repository$sh2, _mirror_repository$sh3, _mirror_repository$sh4, _mirror_repository$sh5, _boosters$find, _network_mode_list$fi, _mirrorItems$Number2;
|
|
|
|
|
var practiceSetting = _ref.practiceSetting,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
shixunsDetail = _ref.shixunsDetail,
|
|
|
|
|
@ -13817,9 +13817,6 @@ var Environment = function Environment(_ref) {
|
|
|
|
|
var isAliCloud = (cloudList === null || cloudList === void 0 || (_cloudList$find = cloudList.find(function (e) {
|
|
|
|
|
return e.id === (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_cloud_id);
|
|
|
|
|
})) === null || _cloudList$find === void 0 ? void 0 : _cloudList$find.cloud_type) === 1;
|
|
|
|
|
var isCoderCloud = (cloudList === null || cloudList === void 0 || (_cloudList$find2 = cloudList.find(function (e) {
|
|
|
|
|
return e.id === (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_cloud_id);
|
|
|
|
|
})) === null || _cloudList$find2 === void 0 ? void 0 : _cloudList$find2.cloud_type) === 4;
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
window.addEventListener("click", handleClick);
|
|
|
|
|
return function () {
|
|
|
|
|
@ -15833,7 +15830,7 @@ var Environment = function Environment(_ref) {
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), renderInterface(false), (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.operating_system) === 1 && (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_is_support_vnc) && (isAliCloud || isCoderCloud && virt_type === 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(Label/* default */.Z, {
|
|
|
|
|
}), renderInterface(false), (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.operating_system) === 1 && (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_is_support_vnc) && isAliCloud && /*#__PURE__*/(0,jsx_runtime.jsx)(Label/* default */.Z, {
|
|
|
|
|
required: true,
|
|
|
|
|
name: "\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F",
|
|
|
|
|
errorKey: "instance_startup_type",
|