feat: 网元配置备份修改表单校验规则,添加备注字段必填项
This commit is contained in:
@@ -303,12 +303,8 @@ function fnModalVisibleByEdit(row: Record<string, any>) {
|
|||||||
const modalStateFrom = Form.useForm(
|
const modalStateFrom = Form.useForm(
|
||||||
modalState.from,
|
modalState.from,
|
||||||
reactive({
|
reactive({
|
||||||
name: [
|
name: [{ required: true, message: t('common.inputPlease') }],
|
||||||
{
|
remark: [{ required: true, message: t('common.inputPlease') }],
|
||||||
required: true,
|
|
||||||
message: '请输入名称',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -462,7 +458,11 @@ function fnSyncFileToFTP(row: Record<string, any>) {
|
|||||||
<template #title>
|
<template #title>
|
||||||
{{ t('views.ne.neConfigBackup.backupModal.title') }}
|
{{ t('views.ne.neConfigBackup.backupModal.title') }}
|
||||||
</template>
|
</template>
|
||||||
<a-button type="text" @click.prevent="fnFTPModalOpen()" v-perms:has="['ne:neConfigBackup:ftp']">
|
<a-button
|
||||||
|
type="text"
|
||||||
|
@click.prevent="fnFTPModalOpen()"
|
||||||
|
v-perms:has="['ne:neConfigBackup:ftp']"
|
||||||
|
>
|
||||||
<template #icon><DeliveredProcedureOutlined /></template>
|
<template #icon><DeliveredProcedureOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
@@ -524,13 +524,21 @@ function fnSyncFileToFTP(row: Record<string, any>) {
|
|||||||
<template #title>
|
<template #title>
|
||||||
{{ t('views.ne.neConfigBackup.backupModal.pushFileOper') }}
|
{{ t('views.ne.neConfigBackup.backupModal.pushFileOper') }}
|
||||||
</template>
|
</template>
|
||||||
<a-button type="link" @click.prevent="fnSyncFileToFTP(record)" v-perms:has="['ne:neConfigBackup:ftpSync']">
|
<a-button
|
||||||
|
type="link"
|
||||||
|
@click.prevent="fnSyncFileToFTP(record)"
|
||||||
|
v-perms:has="['ne:neConfigBackup:ftpSync']"
|
||||||
|
>
|
||||||
<template #icon><CloudServerOutlined /></template>
|
<template #icon><CloudServerOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>{{ t('common.downloadText') }}</template>
|
<template #title>{{ t('common.downloadText') }}</template>
|
||||||
<a-button type="link" @click.prevent="fnDownloadFile(record)" v-perms:has="['ne:neConfigBackup:download']">
|
<a-button
|
||||||
|
type="link"
|
||||||
|
@click.prevent="fnDownloadFile(record)"
|
||||||
|
v-perms:has="['ne:neConfigBackup:download']"
|
||||||
|
>
|
||||||
<template #icon><DownloadOutlined /></template>
|
<template #icon><DownloadOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user