feat:提交重试
This commit is contained in:
@@ -4,15 +4,14 @@ import { computed, onMounted, ref } from 'vue';
|
||||
import { useAccess } from '@vben/access';
|
||||
import { Page } from '@vben/common-ui';
|
||||
|
||||
import { Button, Card, message, Space } from 'ant-design-vue';
|
||||
import { Button, Card, Space } from 'ant-design-vue';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { getAlertPage, updateAlert } from '#/api/alert/alert';
|
||||
import { getSimpleUserList } from '#/api/system/user';
|
||||
import { $t } from '#/locales';
|
||||
|
||||
const { hasAccessByCodes } = useAccess();
|
||||
import { getUserPage } from '#/api/system/user';
|
||||
import { $t } from '#/locales';
|
||||
|
||||
// 表单数据
|
||||
const formData = ref({
|
||||
@@ -27,10 +26,10 @@ const userOptions = ref([]);
|
||||
|
||||
// 提醒天数选项
|
||||
const daysOptions = [
|
||||
{ label: '15'+$t('alert.day'), value: 15 },
|
||||
{ label: '7'+$t('alert.day'), value: 7 },
|
||||
{ label: '2'+$t('alert.day'), value: 2 },
|
||||
{ label: '1'+$t('alert.day'), value: 1 },
|
||||
{ label: `15${$t('alert.day')}`, value: 15 },
|
||||
{ label: `7${$t('alert.day')}`, value: 7 },
|
||||
{ label: `2${$t('alert.day')}`, value: 2 },
|
||||
{ label: `1${$t('alert.day')}`, value: 1 },
|
||||
];
|
||||
|
||||
// 表单配置
|
||||
@@ -187,7 +186,7 @@ onMounted(async () => {
|
||||
@click="handleSubmit"
|
||||
v-if="hasAccessByCodes(['license:alert:update'])"
|
||||
>
|
||||
{{$t('alert.save')}}
|
||||
{{ $t('alert.save') }}
|
||||
</Button>
|
||||
<Button @click="handleReset"> {{ $t('alert.reset') }} </Button>
|
||||
</Space>
|
||||
|
||||
Reference in New Issue
Block a user