diff --git a/deliver-front/vue/components.d.ts b/deliver-front/vue/components.d.ts index a99b415d4335c7750c54a09735c5adc079df0f73..0720bfc24dda17c3f8b61070a387d84ec6206967 100644 --- a/deliver-front/vue/components.d.ts +++ b/deliver-front/vue/components.d.ts @@ -24,6 +24,7 @@ declare module 'vue' { AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AModal: typeof import('ant-design-vue/es')['Modal'] APagination: typeof import('ant-design-vue/es')['Pagination'] + APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] ARadioButton: typeof import('ant-design-vue/es')['RadioButton'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARangePicker: typeof import('ant-design-vue/es')['RangePicker'] @@ -35,6 +36,7 @@ declare module 'vue' { ASwitch: typeof import('ant-design-vue/es')['Switch'] ATable: typeof import('ant-design-vue/es')['Table'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] + Banner: typeof import('./src/components/Banner/index.vue')['default'] Echarts: typeof import('./src/components/Echarts/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/deliver-front/vue/src/api/dashboard.ts b/deliver-front/vue/src/api/dashboard.ts index cb7263ff287672541e6dbda20201d92e058c2e8c..2b1775e37f64758d130735a0375c7168dc2080ae 100644 --- a/deliver-front/vue/src/api/dashboard.ts +++ b/deliver-front/vue/src/api/dashboard.ts @@ -18,7 +18,7 @@ export type templeteDataSource = pieDataPoint[] export type channelDataSource = pieDataPoint[] export type userDataSource = pieDataPoint[] -export async function getDashboardHeadData(): Promise { +export async function getDashboardHeadData(): Promise { return await request({ url: '/dashboard/getDashboardHeadData', method: 'post' diff --git a/deliver-front/vue/src/api/message.ts b/deliver-front/vue/src/api/message.ts index 97b965364bbe754f21695d49cbc4cb47f7639065..4009b1b59f882b24b23899188bcdcece442db2da 100644 --- a/deliver-front/vue/src/api/message.ts +++ b/deliver-front/vue/src/api/message.ts @@ -1,5 +1,5 @@ import request from '@/utils/request' -import type { searchMessage } from '@/views/Message/type' +import type { searchMessage, addTemp } from '@/views/Message/type' export async function getTemplatePages(data: searchMessage): Promise { return await request({ @@ -8,3 +8,43 @@ export async function getTemplatePages(data: searchMessage): Promise { data }) } + +export async function getMessageType(data: { channelType: number }): Promise { + return await request({ + url: '/template/getMessageTypeByChannelType', + method: 'post', + data + }) +} + +export async function getApp(data: { channelType: number }): Promise { + return await request({ + url: '/app/getAppByChannelType', + method: 'post', + data + }) +} + +export async function addTemplatePages(data: addTemp): Promise { + return await request({ + url: '/template/saveTemplate', + method: 'post', + data + }) +} + +export async function updateStatus(data: { templateId: number; templateStatus: number }): Promise { + return await request({ + url: '/template/updateStatusById', + method: 'post', + data + }) +} + +export async function deleteTemplate(data: string[]): Promise { + return await request({ + url: '/template/deleteByIds', + method: 'post', + data + }) +} diff --git a/deliver-front/vue/src/views/Banner/index.vue b/deliver-front/vue/src/components/Banner/index.vue similarity index 94% rename from deliver-front/vue/src/views/Banner/index.vue rename to deliver-front/vue/src/components/Banner/index.vue index 24cc8fa841fe7a33af60b394a3a684ad0af61096..f9d5a99b901c58d01140a8e8792436bd49ae03ad 100644 --- a/deliver-front/vue/src/views/Banner/index.vue +++ b/deliver-front/vue/src/components/Banner/index.vue @@ -13,6 +13,9 @@ rgb(230, 248, 255) 10px, rgb(230, 248, 255) 40px ); + position: fixed; + width: 100%; + z-index: 999; " >
diff --git a/deliver-front/vue/src/layouts/components/Header/index.vue b/deliver-front/vue/src/layouts/components/Header/index.vue index 8301097b8c5c24943a2655aeb1cdf605b3d6ca86..500f2b90e5dc3800b685778e63f267453fc392ed 100644 --- a/deliver-front/vue/src/layouts/components/Header/index.vue +++ b/deliver-front/vue/src/layouts/components/Header/index.vue @@ -7,7 +7,7 @@ const setShowAbout = (open: boolean): void => { }