From 9131a173699cc44ecc74a33aa3b9014bb257fcbd Mon Sep 17 00:00:00 2001 From: tangzh Date: Fri, 4 Apr 2025 17:24:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A5=BC=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home.js | 63 ++++ src/api/homeItem.js | 63 ++++ src/router/modules/operation.js | 16 + src/router/modules/store.js | 6 + src/views/home/add-and-update.vue | 230 ++++++++++++++ src/views/home/index.vue | 238 ++++++++++++++ src/views/home/item/add-item.vue | 295 ++++++++++++++++++ src/views/home/item/index.vue | 232 ++++++++++++++ src/views/home/item/update-item.vue | 204 ++++++++++++ src/views/home/selectProduct.vue | 120 +++++++ .../freightSet/creatTemplates.vue | 1 - .../systemSetting/help/add-and-update.vue | 2 +- src/views/systemSetting/help/index.vue | 15 +- .../shippingTemplates/creatTemplates.vue | 67 ++-- 14 files changed, 1522 insertions(+), 30 deletions(-) create mode 100644 src/api/home.js create mode 100644 src/api/homeItem.js create mode 100644 src/views/home/add-and-update.vue create mode 100644 src/views/home/index.vue create mode 100644 src/views/home/item/add-item.vue create mode 100644 src/views/home/item/index.vue create mode 100644 src/views/home/item/update-item.vue create mode 100644 src/views/home/selectProduct.vue diff --git a/src/api/home.js b/src/api/home.js new file mode 100644 index 0000000..43ec5b5 --- /dev/null +++ b/src/api/home.js @@ -0,0 +1,63 @@ + +import request from '@/utils/request' + +/** + * 新增EbHome + * @param pram + */ +export function homeCreateApi(data) { + return request({ + url: '/admin/floor/save', + method: 'POST', + data + }) +} + +/** + * ebhome更新 + * @param pram + */ +export function homeUpdateApi(data) { + return request({ + url: '/admin/floor/update', + method: 'POST', + data + }) +} + +/** + * ebhome详情 + * @param pram + */ +export function homeDetailApi(id) { + return request({ + url: `/admin/floor/info/${id}`, + method: 'GET' + }) +} + +/** + * ebhome删除 + * @param pram + */ +export function homeDeleteApi(params) { + return request({ + url: `/admin/floor/delete`, + method: 'post', + params + }) +} + + +/** + * ebhome列表 + * @param pram + */ +export function homeListApi(params) { + return request({ + url: '/admin/floor/list', + method: 'GET', + params + }) +} + diff --git a/src/api/homeItem.js b/src/api/homeItem.js new file mode 100644 index 0000000..d8e66e0 --- /dev/null +++ b/src/api/homeItem.js @@ -0,0 +1,63 @@ + +import request from '@/utils/request' + +/** + * 新增EbHome + * @param pram + */ +export function createApi(data) { + return request({ + url: '/admin/floorItem/save', + method: 'POST', + data + }) +} + +/** + * ebhome更新 + * @param pram + */ +export function updateApi(data) { + return request({ + url: '/admin/floorItem/update', + method: 'POST', + data + }) +} + +/** + * ebhome详情 + * @param pram + */ +export function detailApi(id) { + return request({ + url: `/admin/floorItem/info/${id}`, + method: 'GET' + }) +} + +/** + * ebhome删除 + * @param pram + */ +export function deleteApi(params) { + return request({ + url: `/admin/floorItem/delete`, + method: 'post', + params + }) +} + + +/** + * ebhome列表 + * @param pram + */ +export function listApi(params) { + return request({ + url: '/admin/floorItem/list', + method: 'GET', + params + }) +} + diff --git a/src/router/modules/operation.js b/src/router/modules/operation.js index 1a06601..ce2cea6 100644 --- a/src/router/modules/operation.js +++ b/src/router/modules/operation.js @@ -31,6 +31,22 @@ const operationRouter = { icon: 'clipboard' } }, + { + path: 'home', + name: 'home', + component: () => import('@/views/home'), + meta: { + title: '楼层设置', + icon: 'clipboard' + } + }, + { + path: 'homeItem/list/:id', + component: () => import('@/views/home/item/index'), + name: 'homeItem', + meta: { title: '楼层项', noCache: true, activeMenu: `/home/index` }, + hidden: true + }, { path:'notification', name:'notification', diff --git a/src/router/modules/store.js b/src/router/modules/store.js index ce17c28..4c225bd 100644 --- a/src/router/modules/store.js +++ b/src/router/modules/store.js @@ -36,6 +36,12 @@ const storeRouter = { name: 'StoreComment', meta: { title: '商品评论', icon: '' } }, + // { + // path: 'problem', + // component: () => import('@/views/store/problem/index'), + // name: 'Problem', + // meta: { title: '商品常见问题', icon: '' } + // }, { path: 'list/creatProduct/:id?/:isDisabled?', component: () => import('@/views/store/creatStore/index'), diff --git a/src/views/home/add-and-update.vue b/src/views/home/add-and-update.vue new file mode 100644 index 0000000..ae77dcf --- /dev/null +++ b/src/views/home/add-and-update.vue @@ -0,0 +1,230 @@ + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue new file mode 100644 index 0000000..bfad371 --- /dev/null +++ b/src/views/home/index.vue @@ -0,0 +1,238 @@ + + diff --git a/src/views/home/item/add-item.vue b/src/views/home/item/add-item.vue new file mode 100644 index 0000000..228887d --- /dev/null +++ b/src/views/home/item/add-item.vue @@ -0,0 +1,295 @@ + + + diff --git a/src/views/home/item/index.vue b/src/views/home/item/index.vue new file mode 100644 index 0000000..5a88c0e --- /dev/null +++ b/src/views/home/item/index.vue @@ -0,0 +1,232 @@ + + diff --git a/src/views/home/item/update-item.vue b/src/views/home/item/update-item.vue new file mode 100644 index 0000000..7ef746f --- /dev/null +++ b/src/views/home/item/update-item.vue @@ -0,0 +1,204 @@ + + + diff --git a/src/views/home/selectProduct.vue b/src/views/home/selectProduct.vue new file mode 100644 index 0000000..41b68d1 --- /dev/null +++ b/src/views/home/selectProduct.vue @@ -0,0 +1,120 @@ + + diff --git a/src/views/systemSetting/deliverGoods/freightSet/creatTemplates.vue b/src/views/systemSetting/deliverGoods/freightSet/creatTemplates.vue index 089d91f..ec9ab5c 100644 --- a/src/views/systemSetting/deliverGoods/freightSet/creatTemplates.vue +++ b/src/views/systemSetting/deliverGoods/freightSet/creatTemplates.vue @@ -70,7 +70,6 @@ size="small" @click="confirmEdit(ruleForm.region,scope.$index)" > - 删除 diff --git a/src/views/systemSetting/help/add-and-update.vue b/src/views/systemSetting/help/add-and-update.vue index 3f262b0..21c8d33 100644 --- a/src/views/systemSetting/help/add-and-update.vue +++ b/src/views/systemSetting/help/add-and-update.vue @@ -50,7 +50,7 @@ export default { categoryList: [], dataForm: { id: 0, - cid: 0, + cid: '', title: '', content: '', jumpUrl: '', diff --git a/src/views/systemSetting/help/index.vue b/src/views/systemSetting/help/index.vue index 16d6993..ff54d12 100644 --- a/src/views/systemSetting/help/index.vue +++ b/src/views/systemSetting/help/index.vue @@ -22,15 +22,20 @@ - 新增数据 - 批量删除 +
+ 新增数据 + 批量删除 +
+ >