diff --git a/src/router/index.ts b/src/router/index.ts index 83162ca..785814d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -428,6 +428,17 @@ export const constantRoutes: RouteRecordRaw[] = [ hidden: true }, }, + { + path: "advertisement", + component: () => import("@/views/application/list/advertisement/index.vue"), + name: "advertisement", + meta: { + title: "广告", + affix: false, + hidden: true + }, + }, + /**列表end */ diff --git a/src/views/application/list/ad/index.vue b/src/views/application/list/ad/index.vue index 41a40c8..0f641f0 100644 --- a/src/views/application/list/ad/index.vue +++ b/src/views/application/list/ad/index.vue @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/application/list/advertisement/index.vue b/src/views/application/list/advertisement/index.vue new file mode 100644 index 0000000..ecf58e7 --- /dev/null +++ b/src/views/application/list/advertisement/index.vue @@ -0,0 +1,13 @@ + + \ No newline at end of file diff --git a/src/views/application/list/advertisement/indexconfig/Content.vue b/src/views/application/list/advertisement/indexconfig/Content.vue new file mode 100644 index 0000000..cdd4286 --- /dev/null +++ b/src/views/application/list/advertisement/indexconfig/Content.vue @@ -0,0 +1,252 @@ + + + \ No newline at end of file diff --git a/src/views/application/list/advertisement/indexconfig/Search.vue b/src/views/application/list/advertisement/indexconfig/Search.vue new file mode 100644 index 0000000..2084078 --- /dev/null +++ b/src/views/application/list/advertisement/indexconfig/Search.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/views/application/list/advertisement/indexconfig/api.ts b/src/views/application/list/advertisement/indexconfig/api.ts new file mode 100644 index 0000000..12469b1 --- /dev/null +++ b/src/views/application/list/advertisement/indexconfig/api.ts @@ -0,0 +1,70 @@ +import request from "@/utils/request"; +const baseURL = "/account/admin/shopAd"; + +// XXX-配置 +const AuthAPI = { + // 列表 + getList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, + /** 分页*/ + getPage(params: any) { + return request({ + url: `${baseURL}`, + method: "get", + params, + }); + }, + // 获取小程序 + miniAppPagesPage(params: any) { + return request({ + url: `/system/admin/miniAppPages/page`, + method: "get", + params, + }); + }, + // 新增 + add(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: { ...data }, + }); + }, + // 详情 + getinfo(id: number) { + return request({ + url: `${baseURL}/detail?id=${id}`, + method: "get", + }); + }, + // 编辑 + update(data: Object) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + // 删除 + deleteByIds(id: number | String) { + return request({ + url: `${baseURL}`, + method: "delete", + data: { id }, + }); + }, + +}; +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default AuthAPI; \ No newline at end of file diff --git a/src/views/application/list/advertisement/indexconfig/component/AddButton.vue b/src/views/application/list/advertisement/indexconfig/component/AddButton.vue new file mode 100644 index 0000000..28fe81f --- /dev/null +++ b/src/views/application/list/advertisement/indexconfig/component/AddButton.vue @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/views/application/list/advertisement/indexconfig/component/Paging.vue b/src/views/application/list/advertisement/indexconfig/component/Paging.vue new file mode 100644 index 0000000..ee9b056 --- /dev/null +++ b/src/views/application/list/advertisement/indexconfig/component/Paging.vue @@ -0,0 +1,24 @@ + + \ No newline at end of file diff --git a/src/views/application/list/advertisement/indexconfig/component/Table.vue b/src/views/application/list/advertisement/indexconfig/component/Table.vue new file mode 100644 index 0000000..f6cc04e --- /dev/null +++ b/src/views/application/list/advertisement/indexconfig/component/Table.vue @@ -0,0 +1,71 @@ + + + diff --git a/src/views/application/list/index.vue b/src/views/application/list/index.vue index 0dbd5ee..bd2221c 100644 --- a/src/views/application/list/index.vue +++ b/src/views/application/list/index.vue @@ -24,7 +24,7 @@ import call from "@/assets/images/application/call.png"; const list = ref([ { name: "存酒", icon: bear, path: "", desc: "用户未喝完的酒可暂存在店里" }, { name: "点歌", icon: song, path: "", desc: "用户可以付费点歌" }, - { name: "广告", icon: ad, path: "", desc: "添加弹窗广告" }, + { name: "广告", icon: ad, path: "advertisement", desc: "添加弹窗广告" }, { name: "叫号", icon: call, path: "lineUplist", desc: "" }, ]); diff --git a/src/views/data/work.vue b/src/views/data/work.vue index e5e6a79..b28e2a0 100644 --- a/src/views/data/work.vue +++ b/src/views/data/work.vue @@ -1,3 +1,13 @@ \ No newline at end of file + +
+ + + + +
+ + \ No newline at end of file diff --git a/src/views/data/workconfig/Content.vue b/src/views/data/workconfig/Content.vue new file mode 100644 index 0000000..3eb005a --- /dev/null +++ b/src/views/data/workconfig/Content.vue @@ -0,0 +1,217 @@ + + + \ No newline at end of file diff --git a/src/views/data/workconfig/Search.vue b/src/views/data/workconfig/Search.vue new file mode 100644 index 0000000..bd44985 --- /dev/null +++ b/src/views/data/workconfig/Search.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/src/views/data/workconfig/api.ts b/src/views/data/workconfig/api.ts new file mode 100644 index 0000000..7610c1a --- /dev/null +++ b/src/views/data/workconfig/api.ts @@ -0,0 +1,60 @@ +import request from "@/utils/request"; +const baseURL = "/account/admin/handover-record"; +// XXX-配置 +const AuthAPI = { + // 列表 + getList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, + /** 分页*/ + getPage(params: any) { + return request({ + url: `${baseURL}/page`, + method: "get", + params, + }); + }, + // 新增 + add(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: { ...data }, + }); + }, + // 详情 + getinfo(id: number) { + return request({ + url: `${baseURL}/${id}`, + method: "get", + }); + }, + // 编辑 + update(data: Object) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + // 删除 + deleteByIds(id: number | String) { + return request({ + url: `${baseURL}/${id}`, + method: "delete", + }); + }, + +}; +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default AuthAPI; \ No newline at end of file diff --git a/src/views/data/workconfig/component/Paging.vue b/src/views/data/workconfig/component/Paging.vue new file mode 100644 index 0000000..ee9b056 --- /dev/null +++ b/src/views/data/workconfig/component/Paging.vue @@ -0,0 +1,24 @@ + + \ No newline at end of file diff --git a/src/views/data/workconfig/component/Table.vue b/src/views/data/workconfig/component/Table.vue new file mode 100644 index 0000000..7ae4605 --- /dev/null +++ b/src/views/data/workconfig/component/Table.vue @@ -0,0 +1,39 @@ + + + diff --git a/src/views/mytemplate/indexconfig/Content.vue b/src/views/mytemplate/indexconfig/Content.vue index 31606a9..67b4d82 100644 --- a/src/views/mytemplate/indexconfig/Content.vue +++ b/src/views/mytemplate/indexconfig/Content.vue @@ -91,9 +91,6 @@ onMounted(() => { onBeforeUnmount(() => { eventBus.off('search') }) -eventBus.on('search', (res) => { - getList(res) -}) async function getList(data = {}) { const res = await API.getPage({ page: datas.pagingConfig.pageNumber, size: datas.pagingConfig.pageSize, ...data }) datas.tableData = res.records @@ -196,6 +193,10 @@ function currentChange(val) { } // 图片库样式 +.showStyle:hover>.buttonstyle { + display: block; +} + .upImgStyle { cursor: pointer; width: 148px;