fix: validate explicit migrations and preserve large business ids
This commit is contained in:
@@ -19,7 +19,7 @@ import { createLatestRequest } from '@/utils/latestRequest'
|
||||
import { listBusinessChannels } from '@/api/business'
|
||||
|
||||
defineOptions({ name: 'SwBusinessChannels' })
|
||||
const props = defineProps({ userId: { type: Number, required: true }, sourceDb: { type: String, default: '' }, platformBusierId: { type: Number, default: 0 } })
|
||||
const props = defineProps({ userId: { type: Number, required: true }, sourceDb: { type: String, default: '' }, platformBusierId: { type: [String, Number], default: 0 } })
|
||||
const page = ref(1)
|
||||
const rows = ref([])
|
||||
const total = ref(0)
|
||||
|
||||
@@ -62,7 +62,7 @@ import { channelCount, channelMoney } from '../channel-display'
|
||||
import { alertStatuses } from '../alert-display'
|
||||
import BusinessTrend from './BusinessTrend.vue'
|
||||
import BusinessChannels from './BusinessChannels.vue'
|
||||
const props = defineProps({ modelValue: Boolean, userId: { type: Number, default: 0 }, sourceDb: { type: String, default: '' }, platformBusierId: { type: Number, default: 0 }, name: { type: String, default: '' } })
|
||||
const props = defineProps({ modelValue: Boolean, userId: { type: Number, default: 0 }, sourceDb: { type: String, default: '' }, platformBusierId: { type: [String, Number], default: 0 }, name: { type: String, default: '' } })
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const visible = computed({ get: () => props.modelValue, set: value => emit('update:modelValue', value) })
|
||||
const periods = [{ label: '今日', value: 'today' }, { label: '昨日', value: 'yesterday' }, { label: '近7天', value: 'last7' }, { label: '近30天', value: 'last30' }, { label: '本月', value: 'thismonth' }]
|
||||
|
||||
Reference in New Issue
Block a user