【修复】商城:seckill 导致打包失败的问题
This commit is contained in:
parent
f4705ad4e1
commit
66c6463f44
@ -17,6 +17,11 @@ export const SeckillConfigApi = {
|
|||||||
return await request.get({ url: `/promotion/seckill-config/page`, params })
|
return await request.get({ url: `/promotion/seckill-config/page`, params })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 查询秒杀时段列表
|
||||||
|
getSimpleSeckillConfigList: async () => {
|
||||||
|
return await request.get({ url: `/promotion/seckill-config/simple-list` })
|
||||||
|
},
|
||||||
|
|
||||||
// 查询秒杀时段详情
|
// 查询秒杀时段详情
|
||||||
getSeckillConfig: async (id: number) => {
|
getSeckillConfig: async (id: number) => {
|
||||||
return await request.get({ url: `/promotion/seckill-config/get?id=` + id })
|
return await request.get({ url: `/promotion/seckill-config/get?id=` + id })
|
||||||
|
@ -157,7 +157,7 @@
|
|||||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter } from '@/utils/formatTime'
|
||||||
import * as SeckillActivityApi from '@/api/mall/promotion/seckill/seckillActivity'
|
import * as SeckillActivityApi from '@/api/mall/promotion/seckill/seckillActivity'
|
||||||
import * as SeckillConfigApi from '@/api/mall/promotion/seckill/seckillConfig'
|
import { SeckillConfigApi } from '@/api/mall/promotion/seckill/seckillConfig'
|
||||||
import SeckillActivityForm from './SeckillActivityForm.vue'
|
import SeckillActivityForm from './SeckillActivityForm.vue'
|
||||||
import { formatDate } from '@/utils/formatTime'
|
import { formatDate } from '@/utils/formatTime'
|
||||||
import { fenToYuanFormat } from '@/utils/formatter'
|
import { fenToYuanFormat } from '@/utils/formatter'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
||||||
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
|
import { dateFormatter2 } from '@/utils/formatTime'
|
||||||
import { getSimpleSeckillConfigList } from '@/api/mall/promotion/seckill/seckillConfig'
|
import { SeckillConfigApi } from '@/api/mall/promotion/seckill/seckillConfig'
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
export const rules = reactive({
|
export const rules = reactive({
|
||||||
@ -88,7 +88,7 @@ const crudSchemas = reactive<CrudSchema[]>([
|
|||||||
valueField: 'id'
|
valueField: 'id'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
api: getSimpleSeckillConfigList
|
api: SeckillConfigApi.getSimpleSeckillConfigList
|
||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
width: 300
|
width: 300
|
||||||
|
Loading…
Reference in New Issue
Block a user