feat:status 为 0 都使用 CommonStatusEnum 枚举
This commit is contained in:
@@ -106,7 +106,7 @@ const formData = ref<Config>({
|
||||
name: '',
|
||||
key: '',
|
||||
value: '',
|
||||
type: 0,
|
||||
type: undefined,
|
||||
visible: true,
|
||||
remark: '',
|
||||
})
|
||||
|
||||
@@ -94,6 +94,7 @@ import { computed, onMounted, ref } from 'vue'
|
||||
import { useToast } from 'wot-design-uni'
|
||||
import { createJob, getJob, updateJob } from '@/api/infra/job'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import {CommonStatusEnum} from '@/utils/constants/biz-system-enum';
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -112,7 +113,7 @@ const formLoading = ref(false)
|
||||
const formData = ref<Job>({
|
||||
id: undefined,
|
||||
name: '',
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
handlerName: '',
|
||||
handlerParam: '',
|
||||
cronExpression: '',
|
||||
|
||||
@@ -108,7 +108,7 @@ import { createDictData, getDictData, updateDictData } from '@/api/system/dict/d
|
||||
import { getSimpleDictTypeList } from '@/api/system/dict/type'
|
||||
import { getIntDictOptions, getStrDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -131,7 +131,7 @@ const formData = ref<DictData>({
|
||||
label: '',
|
||||
value: '',
|
||||
sort: 0,
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
colorType: '',
|
||||
cssClass: '',
|
||||
remark: '',
|
||||
|
||||
@@ -105,7 +105,7 @@ import { getSimpleMailAccountList } from '@/api/system/mail/account'
|
||||
import { createMailTemplate, getMailTemplate, updateMailTemplate } from '@/api/system/mail/template'
|
||||
import { getIntDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -129,7 +129,7 @@ const formData = ref<MailTemplate>({
|
||||
nickname: '',
|
||||
title: '',
|
||||
content: '',
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
remark: '',
|
||||
})
|
||||
const formRules = {
|
||||
|
||||
@@ -74,7 +74,7 @@ import { useToast } from 'wot-design-uni'
|
||||
import { createNotice, getNotice, updateNotice } from '@/api/system/notice'
|
||||
import { getIntDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -94,8 +94,8 @@ const formData = ref<Notice>({
|
||||
id: undefined,
|
||||
title: '',
|
||||
content: '',
|
||||
type: 0,
|
||||
status: 0,
|
||||
type: undefined,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
})
|
||||
const formRules = {
|
||||
title: [{ required: true, message: '公告标题不能为空' }],
|
||||
|
||||
@@ -95,7 +95,7 @@ import { useToast } from 'wot-design-uni'
|
||||
import { createNotifyTemplate, getNotifyTemplate, updateNotifyTemplate } from '@/api/system/notify/template'
|
||||
import { getIntDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -118,7 +118,7 @@ const formData = ref<NotifyTemplate>({
|
||||
nickname: '',
|
||||
content: '',
|
||||
type: undefined,
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
remark: '',
|
||||
})
|
||||
const formRules = {
|
||||
|
||||
@@ -97,7 +97,7 @@ import { useToast } from 'wot-design-uni'
|
||||
import { createOAuth2Client, getOAuth2Client, updateOAuth2Client } from '@/api/system/oauth2/client'
|
||||
import { getIntDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -120,7 +120,7 @@ const formData = ref<OAuth2Client>({
|
||||
name: '',
|
||||
logo: '',
|
||||
description: '',
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
accessTokenValiditySeconds: 1800,
|
||||
refreshTokenValiditySeconds: 43200,
|
||||
redirectUris: [],
|
||||
|
||||
@@ -96,7 +96,7 @@ import { useToast } from 'wot-design-uni'
|
||||
import { createSmsChannel, getSmsChannel, updateSmsChannel } from '@/api/system/sms/channel'
|
||||
import { getIntDictOptions, getStrDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -116,7 +116,7 @@ const formData = ref<SmsChannel>({
|
||||
id: undefined,
|
||||
signature: '',
|
||||
code: '',
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
apiKey: '',
|
||||
apiSecret: '',
|
||||
callbackUrl: '',
|
||||
|
||||
@@ -104,7 +104,7 @@ import { getSimpleSmsChannelList } from '@/api/system/sms/channel'
|
||||
import { createSmsTemplate, getSmsTemplate, updateSmsTemplate } from '@/api/system/sms/template'
|
||||
import { getIntDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -126,7 +126,7 @@ const formData = ref<SmsTemplate>({
|
||||
name: '',
|
||||
code: '',
|
||||
channelId: undefined,
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
content: '',
|
||||
apiTemplateId: '',
|
||||
remark: '',
|
||||
|
||||
@@ -109,7 +109,7 @@ import { useToast } from 'wot-design-uni'
|
||||
import { createSocialClient, getSocialClient, updateSocialClient } from '@/api/system/social/client'
|
||||
import { getIntDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -134,7 +134,7 @@ const formData = ref<SocialClient>({
|
||||
clientSecret: '',
|
||||
agentId: '',
|
||||
publicKey: '',
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
})
|
||||
const formRules = {
|
||||
name: [{ required: true, message: '应用名不能为空' }],
|
||||
|
||||
@@ -63,7 +63,7 @@ import { useToast } from 'wot-design-uni'
|
||||
import { createTenantPackage, getTenantPackage, updateTenantPackage } from '@/api/system/tenant/package'
|
||||
import { getIntDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -82,7 +82,7 @@ const formLoading = ref(false)
|
||||
const formData = ref<TenantPackage>({
|
||||
id: undefined,
|
||||
name: '',
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
remark: '',
|
||||
menuIds: [],
|
||||
})
|
||||
|
||||
@@ -118,7 +118,7 @@ import { createTenant, getTenant, updateTenant } from '@/api/system/tenant'
|
||||
import { getTenantPackageList } from '@/api/system/tenant/package'
|
||||
import { getIntDictOptions } from '@/hooks/useDict'
|
||||
import { navigateBackPlus } from '@/utils'
|
||||
import { DICT_TYPE } from '@/utils/constants'
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@/utils/constants'
|
||||
|
||||
const props = defineProps<{
|
||||
id?: number | any
|
||||
@@ -138,13 +138,13 @@ const packageOptions = ref<TenantPackage[]>([])
|
||||
const formData = ref<Tenant & { username?: string, password?: string }>({
|
||||
id: undefined,
|
||||
name: '',
|
||||
packageId: 0,
|
||||
packageId: undefined,
|
||||
contactName: '',
|
||||
contactMobile: '',
|
||||
accountCount: 0,
|
||||
accountCount: undefined,
|
||||
expireTime: new Date(),
|
||||
websites: [],
|
||||
status: 0,
|
||||
status: CommonStatusEnum.ENABLE,
|
||||
username: '',
|
||||
password: '',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user