mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 23:47:39 +08:00
parent
64f3bbb13b
commit
aeb0549a9a
1 changed files with 8 additions and 8 deletions
|
@ -90,7 +90,7 @@
|
||||||
<span class="input-help">{{ $t('database.maxmemoryHelper') }}</span>
|
<span class="input-help">{{ $t('database.maxmemoryHelper') }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="onSubmtiForm(formRef)">
|
<el-button type="primary" @click="onSubmitForm(formRef)">
|
||||||
{{ $t('commons.button.save') }}
|
{{ $t('commons.button.save') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -119,9 +119,9 @@
|
||||||
</template>
|
</template>
|
||||||
</LayoutContent>
|
</LayoutContent>
|
||||||
|
|
||||||
<ConfirmDialog ref="confirmDialogRef" @confirm="submtiFile"></ConfirmDialog>
|
<ConfirmDialog ref="confirmDialogRef" @confirm="submitFile"></ConfirmDialog>
|
||||||
<ConfirmDialog ref="confirmFileRef" @confirm="submtiFile"></ConfirmDialog>
|
<ConfirmDialog ref="confirmFileRef" @confirm="submitFile"></ConfirmDialog>
|
||||||
<ConfirmDialog ref="confirmFormRef" @confirm="submtiForm"></ConfirmDialog>
|
<ConfirmDialog ref="confirmFormRef" @confirm="submitForm"></ConfirmDialog>
|
||||||
<ConfirmDialog ref="confirmPortRef" @confirm="onChangePort(portRef)"></ConfirmDialog>
|
<ConfirmDialog ref="confirmPortRef" @confirm="onChangePort(portRef)"></ConfirmDialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -260,7 +260,7 @@ const onChangePort = async (formEl: FormInstance | undefined) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const confirmFormRef = ref();
|
const confirmFormRef = ref();
|
||||||
const onSubmtiForm = async (formEl: FormInstance | undefined) => {
|
const onSubmitForm = async (formEl: FormInstance | undefined) => {
|
||||||
if (!formEl) return;
|
if (!formEl) return;
|
||||||
formEl.validate(async (valid) => {
|
formEl.validate(async (valid) => {
|
||||||
if (!valid) return;
|
if (!valid) return;
|
||||||
|
@ -272,7 +272,7 @@ const onSubmtiForm = async (formEl: FormInstance | undefined) => {
|
||||||
confirmFormRef.value!.acceptParams(params);
|
confirmFormRef.value!.acceptParams(params);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const submtiForm = async () => {
|
const submitForm = async () => {
|
||||||
let param = {
|
let param = {
|
||||||
timeout: form.timeout + '',
|
timeout: form.timeout + '',
|
||||||
maxclients: form.maxclients + '',
|
maxclients: form.maxclients + '',
|
||||||
|
@ -311,10 +311,10 @@ const onSaveFile = async () => {
|
||||||
};
|
};
|
||||||
confirmDialogRef.value!.acceptParams(params);
|
confirmDialogRef.value!.acceptParams(params);
|
||||||
};
|
};
|
||||||
const submtiFile = async () => {
|
const submitFile = async () => {
|
||||||
let param = {
|
let param = {
|
||||||
type: 'redis',
|
type: 'redis',
|
||||||
database: '',
|
database: redisName.value,
|
||||||
file: redisConf.value,
|
file: redisConf.value,
|
||||||
};
|
};
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue