From fdb390a574ee4380fea97c5e9949dbff0de3dc4f Mon Sep 17 00:00:00 2001 From: 13218645326 Date: Tue, 12 Dec 2023 17:54:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + env/.env.dev | 3 +- src/components/com/uploadCom.vue | 473 ++++++++++-------- src/http/api/config.ts | 70 +++ .../configuration/swiperConfig/com/1.json | 57 +++ .../configuration/swiperConfig/com/addCom.vue | 93 ++-- .../swiperConfig/com/headerTop.vue | 16 +- .../configuration/swiperConfig/index.vue | 185 ++++--- 8 files changed, 574 insertions(+), 324 deletions(-) create mode 100644 src/http/api/config.ts create mode 100644 src/views/configuration/swiperConfig/com/1.json diff --git a/components.d.ts b/components.d.ts index 371bd66..ddbfa20 100644 --- a/components.d.ts +++ b/components.d.ts @@ -19,6 +19,7 @@ declare module 'vue' { ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElIcon: typeof import('element-plus/es')['ElIcon'] + ElImage: typeof import('element-plus/es')['ElImage'] ElInput: typeof import('element-plus/es')['ElInput'] ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] diff --git a/env/.env.dev b/env/.env.dev index 68af11f..fe5fc29 100644 --- a/env/.env.dev +++ b/env/.env.dev @@ -6,5 +6,6 @@ VITE_BUILD_MODE = 'dev' VITE_API_URL = '/proxyApi' # VITE_proxyTarget = 'http://10.40.92.16:8080' -VITE_proxyTarget = 'http://10.40.92.186:8080' +# VITE_proxyTarget = 'http://10.40.92.186:8080' +VITE_proxyTarget = 'http://10.40.92.64:8080' # 9502 9206 \ No newline at end of file diff --git a/src/components/com/uploadCom.vue b/src/components/com/uploadCom.vue index 5b7b900..bf7f635 100644 --- a/src/components/com/uploadCom.vue +++ b/src/components/com/uploadCom.vue @@ -1,245 +1,278 @@ + - diff --git a/src/http/api/config.ts b/src/http/api/config.ts new file mode 100644 index 0000000..c0f0b9c --- /dev/null +++ b/src/http/api/config.ts @@ -0,0 +1,70 @@ +/* GET + /bmCarouselSet​/{id} +根据id查询轮播图信息 + +DELETE + /bmCarouselSet​/{id} +删除轮播图信息 + +POST + /bmCarouselSet​/addorupdate +新增/修改轮播图信息 + +POST + +获取轮播图列表 */ + +import { post, get, detele } from '../index' + +// 根据id查询轮播图信息 +export const apiBmCarouselSetsById = (id: any) => { + return get(`/zlpt-home/bmCarouselSet/${id}`, {}) +} + + +// 删除轮播图信息 +export const apiBmCarouselSetsListDelete = (id: any) => { + return detele(`/zlpt-home/bmCarouselSet/${id}`, {}) +} + +// 新增/修改轮播图信息 +export const apiBmCarouselSetsAddorupdate = (params: any) => { + return post(`/zlpt-home/bmCarouselSet/addorupdate`, params) +} + + +// 获取轮播图列表 +export const apiBmCarouselSetList = (params: any) => { + return post(`/zlpt-home/bmCarouselSet/list`, params) +} + + + + + + +// 根据id查询资讯信息 +export const apiBmTopicInfoById = (id: any) => { + return post(`/bmTopicInfo/${id}`, {}) +} + + +// 删除专题资讯信息 +export const apiDeleteBmTopicInfoById = (id: any) => { + return detele(`/bmTopicInfo/${id}`, {}) +} + +// 新增/修改专题资讯信息 +export const apiBmTopicInfoAddorupdate = (params: any) => { + return post(`/bmTopicInfo/addorupdate`, params) +} + +// 导出专题资讯信息 +export const apiBmTopicInfoExport = (params: any) => { + return post(`/bmTopicInfo/export`, params) +} + +// 获取专题资讯列表 +export const apiBmTopicInfoList = (params: any) => { + return post(`/bmTopicInfo/list`, params) +} \ No newline at end of file diff --git a/src/views/configuration/swiperConfig/com/1.json b/src/views/configuration/swiperConfig/com/1.json new file mode 100644 index 0000000..f0af552 --- /dev/null +++ b/src/views/configuration/swiperConfig/com/1.json @@ -0,0 +1,57 @@ +public class BmCarouselSet { + //轮播图id + @Excel(name = "轮播图id") + @ApiModelProperty(value = "轮播图id", required = true) + private Integer id; + + //轮播图名称 + @Excel(name = "轮播图名称") + @ApiModelProperty(value = "轮播图名称", required = true) + private String carName; + + //轮播图图片地址 + @Excel(name = "轮播图图片地址") + @ApiModelProperty(value = "轮播图图片地址", required = true) + private String carUrl; + + //配置类型(0:资讯,1跳转地址)考虑用数据字典管理配置轮播图类型 + @Excel(name = "配置类型(0:资讯,1跳转地址)考虑用数据字典管理配置轮播图类型") + @ApiModelProperty(value = "配置类型(0:资讯,1跳转地址)", required = true) + private String type; + + //配置跳转地址 + @Excel(name = "配置跳转地址") + @ApiModelProperty(value = "配置跳转地址", required = true) + private String openUrl; + + //是否启用(0不启用,1启用) + @Excel(name = "是否启用(0不启用,1启用") + @ApiModelProperty(value = "是否启用(0不启用,1启用)", required = true) + private String status; + + //创建时间 + @Excel(name = "创建时间") + @ApiModelProperty(value = "创建时间", required = true) + private String createTime; + + //创建人id + @Excel(name = "创建人id") + @ApiModelProperty(value = "创建人id", required = true) + private Integer creator; + + //创建人 + @Excel(name = "创建人") + @ApiModelProperty(value = "创建人", required = true) + private String createBy; + + //排序 + @Excel(name = "排序") + @ApiModelProperty(value = "排序", required = true) + private String sort; + + //是否删除(0 是, 1 否) + @Excel(name = "是否删除(0 是, 1 否)") + @ApiModelProperty(value = "是否删除(0 是, 1 否)", required = true) + private String isActive; + +} \ No newline at end of file diff --git a/src/views/configuration/swiperConfig/com/addCom.vue b/src/views/configuration/swiperConfig/com/addCom.vue index 41791bd..feb6983 100644 --- a/src/views/configuration/swiperConfig/com/addCom.vue +++ b/src/views/configuration/swiperConfig/com/addCom.vue @@ -1,21 +1,22 @@