From 06bede334c6b29966f2be38f1b95960b8ac77581 Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 23 Jul 2024 21:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E9=80=9A=E5=95=86=E5=9F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/setting/gmall.js | 54 +++++++ src/views/setting/gmall/index.vue | 169 ++++++++++++++++++++++ src/views/setting/gmall/modules/Add.vue | 148 +++++++++++++++++++ src/views/setting/gmall/modules/Edit.vue | 173 +++++++++++++++++++++++ 4 files changed, 544 insertions(+) create mode 100644 src/api/setting/gmall.js create mode 100644 src/views/setting/gmall/index.vue create mode 100644 src/views/setting/gmall/modules/Add.vue create mode 100644 src/views/setting/gmall/modules/Edit.vue diff --git a/src/api/setting/gmall.js b/src/api/setting/gmall.js new file mode 100644 index 0000000..6bd513d --- /dev/null +++ b/src/api/setting/gmall.js @@ -0,0 +1,54 @@ +import { axios } from '@/utils/request' + +// api接口列表 +const api = { + list: '/retail/list', + add: '/retail/add', + edit: '/retail/edit', + delete: '/retail/delete' +} + +// 列表记录 +export function list (params) { + return axios({ + url: api.list, + method: 'get', + params + }) +} + +/** + * 新增记录 + * @param {*} data + */ +export function add (data) { + return axios({ + url: api.add, + method: 'post', + data + }) +} + +/** + * 编辑记录 + * @param {*} data + */ +export function edit (data) { + return axios({ + url: api.edit, + method: 'post', + data + }) +} + +/** + * 删除记录 + * @param {*} data + */ +export function deleted (data) { + return axios({ + url: api.delete, + method: 'post', + data: data + }) +} diff --git a/src/views/setting/gmall/index.vue b/src/views/setting/gmall/index.vue new file mode 100644 index 0000000..632e518 --- /dev/null +++ b/src/views/setting/gmall/index.vue @@ -0,0 +1,169 @@ + + + diff --git a/src/views/setting/gmall/modules/Add.vue b/src/views/setting/gmall/modules/Add.vue new file mode 100644 index 0000000..0fb1574 --- /dev/null +++ b/src/views/setting/gmall/modules/Add.vue @@ -0,0 +1,148 @@ + + + diff --git a/src/views/setting/gmall/modules/Edit.vue b/src/views/setting/gmall/modules/Edit.vue new file mode 100644 index 0000000..27ec8f1 --- /dev/null +++ b/src/views/setting/gmall/modules/Edit.vue @@ -0,0 +1,173 @@ + + +