|
|
@ -63,7 +63,7 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="iptables" prop="iptables">
|
|
|
|
<el-form-item label="iptables" prop="iptables">
|
|
|
|
<el-switch v-model="form.iptables"></el-switch>
|
|
|
|
<el-switch v-model="form.iptables" @change="onChangeIptables"></el-switch>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="live-restore" prop="liveRestore">
|
|
|
|
<el-form-item label="live-restore" prop="liveRestore">
|
|
|
|
<el-switch :disabled="form.isSwarm" v-model="form.liveRestore"></el-switch>
|
|
|
|
<el-switch :disabled="form.isSwarm" v-model="form.liveRestore"></el-switch>
|
|
|
@ -126,6 +126,28 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
v-model="iptablesVisiable"
|
|
|
|
|
|
|
|
:title="$t('container.iptablesDisable')"
|
|
|
|
|
|
|
|
width="30%"
|
|
|
|
|
|
|
|
:destroy-on-close="true"
|
|
|
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
|
|
|
:show-close="false"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<span>{{ $t('container.iptablesHelper1') }}</span>
|
|
|
|
|
|
|
|
<span style="color: red; font-weight: 500">{{ $t('container.iptablesHelper2') }}</span>
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button @click="onSaveIptables(true)">{{ $t('commons.button.cancel') }}</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="onSaveIptables(false)">
|
|
|
|
|
|
|
|
{{ $t('commons.button.confirm') }}
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<ConfirmDialog ref="confirmDialogRef" @confirm="onSubmitSave"></ConfirmDialog>
|
|
|
|
<ConfirmDialog ref="confirmDialogRef" @confirm="onSubmitSave"></ConfirmDialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -172,6 +194,8 @@ const stopVisiable = ref();
|
|
|
|
const stopSocket = ref();
|
|
|
|
const stopSocket = ref();
|
|
|
|
const stopService = ref();
|
|
|
|
const stopService = ref();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const iptablesVisiable = ref();
|
|
|
|
|
|
|
|
|
|
|
|
const onSave = async (formEl: FormInstance | undefined) => {
|
|
|
|
const onSave = async (formEl: FormInstance | undefined) => {
|
|
|
|
if (!formEl) return;
|
|
|
|
if (!formEl) return;
|
|
|
|
formEl.validate(async (valid) => {
|
|
|
|
formEl.validate(async (valid) => {
|
|
|
@ -194,6 +218,17 @@ const onSaveFile = async () => {
|
|
|
|
confirmDialogRef.value!.acceptParams(params);
|
|
|
|
confirmDialogRef.value!.acceptParams(params);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onChangeIptables = () => {
|
|
|
|
|
|
|
|
if (!form.iptables) {
|
|
|
|
|
|
|
|
iptablesVisiable.value = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onSaveIptables = (status: boolean) => {
|
|
|
|
|
|
|
|
form.iptables = status;
|
|
|
|
|
|
|
|
iptablesVisiable.value = false;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const onOperator = async (operation: string) => {
|
|
|
|
const onOperator = async (operation: string) => {
|
|
|
|
if (operation === 'stop') {
|
|
|
|
if (operation === 'stop') {
|
|
|
|
stopVisiable.value = true;
|
|
|
|
stopVisiable.value = true;
|
|
|
|