parent
5a67f1c051
commit
1298c3dd52
@ -6,31 +6,32 @@ export interface BannerVO {
|
|||||||
picUrl: string
|
picUrl: string
|
||||||
status: number
|
status: number
|
||||||
url: string
|
url: string
|
||||||
|
position: number
|
||||||
sort: number
|
sort: number
|
||||||
memo: string
|
memo: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询Banner管理列表
|
// 查询Banner管理列表
|
||||||
export const getBannerPage = async (params) => {
|
export const getBannerPage = async (params) => {
|
||||||
return await request.get({ url: `/market/banner/page`, params })
|
return await request.get({ url: `/promotion/banner/page`, params })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询Banner管理详情
|
// 查询Banner管理详情
|
||||||
export const getBanner = async (id: number) => {
|
export const getBanner = async (id: number) => {
|
||||||
return await request.get({ url: `/market/banner/get?id=` + id })
|
return await request.get({ url: `/promotion/banner/get?id=` + id })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 新增Banner管理
|
// 新增Banner管理
|
||||||
export const createBanner = async (data: BannerVO) => {
|
export const createBanner = async (data: BannerVO) => {
|
||||||
return await request.post({ url: `/market/banner/create`, data })
|
return await request.post({ url: `/promotion/banner/create`, data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改Banner管理
|
// 修改Banner管理
|
||||||
export const updateBanner = async (data: BannerVO) => {
|
export const updateBanner = async (data: BannerVO) => {
|
||||||
return await request.put({ url: `/market/banner/update`, data })
|
return await request.put({ url: `/promotion/banner/update`, data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除Banner管理
|
// 删除Banner管理
|
||||||
export const deleteBanner = async (id: number) => {
|
export const deleteBanner = async (id: number) => {
|
||||||
return await request.delete({ url: `/market/banner/delete?id=` + id })
|
return await request.delete({ url: `/promotion/banner/delete?id=` + id })
|
||||||
}
|
}
|
||||||
|
@ -185,6 +185,7 @@ export enum DICT_TYPE {
|
|||||||
PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举
|
PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举
|
||||||
PROMOTION_BARGAIN_RECORD_STATUS = 'promotion_bargain_record_status', // 砍价记录的状态
|
PROMOTION_BARGAIN_RECORD_STATUS = 'promotion_bargain_record_status', // 砍价记录的状态
|
||||||
PROMOTION_COMBINATION_RECORD_STATUS = 'promotion_combination_record_status', // 拼团记录的状态
|
PROMOTION_COMBINATION_RECORD_STATUS = 'promotion_combination_record_status', // 拼团记录的状态
|
||||||
|
BANNER_POSITION = 'banner_position', // banner 定位
|
||||||
|
|
||||||
// ========== CRM - 客户管理模块 ==========
|
// ========== CRM - 客户管理模块 ==========
|
||||||
CRM_RECEIVABLE_CHECK_STATUS = 'crm_receivable_check_status',
|
CRM_RECEIVABLE_CHECK_STATUS = 'crm_receivable_check_status',
|
||||||
|
@ -41,6 +41,19 @@
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="定位" prop="position">
|
||||||
|
<el-radio-group v-model="formData.position">
|
||||||
|
<el-radio
|
||||||
|
v-for="dict in getIntDictOptions(DICT_TYPE.BANNER_POSITION)"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.value"
|
||||||
|
>
|
||||||
|
{{ dict.label }}
|
||||||
|
</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="描述" prop="memo">
|
<el-form-item label="描述" prop="memo">
|
||||||
<el-input v-model="formData.memo" placeholder="请输入描述" type="textarea" />
|
<el-input v-model="formData.memo" placeholder="请输入描述" type="textarea" />
|
||||||
@ -70,6 +83,7 @@ const formData = ref({
|
|||||||
title: undefined,
|
title: undefined,
|
||||||
picUrl: undefined,
|
picUrl: undefined,
|
||||||
status: 0,
|
status: 0,
|
||||||
|
position: 1,
|
||||||
url: undefined,
|
url: undefined,
|
||||||
sort: 0,
|
sort: 0,
|
||||||
memo: undefined
|
memo: undefined
|
||||||
@ -133,6 +147,7 @@ const resetForm = () => {
|
|||||||
title: undefined,
|
title: undefined,
|
||||||
picUrl: undefined,
|
picUrl: undefined,
|
||||||
status: 0,
|
status: 0,
|
||||||
|
position: 1,
|
||||||
url: undefined,
|
url: undefined,
|
||||||
sort: 0,
|
sort: 0,
|
||||||
memo: undefined
|
memo: undefined
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
重置
|
重置
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPermi="['market:banner:create']"
|
v-hasPermi="['promotion:banner:create']"
|
||||||
plain
|
plain
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="openForm('create')"
|
@click="openForm('create')"
|
||||||
@ -74,6 +74,11 @@
|
|||||||
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="定位" prop="position">
|
||||||
|
<template #default="scope">
|
||||||
|
<dict-tag :type="DICT_TYPE.BANNER_POSITION" :value="scope.row.position" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" label="跳转地址" prop="url" />
|
<el-table-column align="center" label="跳转地址" prop="url" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:formatter="dateFormatter"
|
:formatter="dateFormatter"
|
||||||
@ -87,7 +92,7 @@
|
|||||||
<el-table-column align="center" label="操作">
|
<el-table-column align="center" label="操作">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPermi="['market:banner:update']"
|
v-hasPermi="['promotion:banner:update']"
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="openForm('update', scope.row.id)"
|
@click="openForm('update', scope.row.id)"
|
||||||
@ -95,7 +100,7 @@
|
|||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPermi="['market:banner:delete']"
|
v-hasPermi="['promotion:banner:delete']"
|
||||||
link
|
link
|
||||||
type="danger"
|
type="danger"
|
||||||
@click="handleDelete(scope.row.id)"
|
@click="handleDelete(scope.row.id)"
|
||||||
|
Loading…
Reference in New Issue
Block a user