diff --git a/src/api/modules/fastMail.js b/src/api/modules/fastMail.js new file mode 100644 index 0000000..5fe916d --- /dev/null +++ b/src/api/modules/fastMail.js @@ -0,0 +1,27 @@ +import instance from '../../utils/axios.js' + +// 过滤设置相关API +const fastMailApi = { + + //listFastMail, getFastMail, delFastMail, addFastMail, updateFastMail + + listFastMail: (params) => instance.get('/fastMail/list', { params }), + + // 获取过滤设置详细信息 + getFastMail: (id) => instance.get(`/fastMail/${id}`), + + //删除 + delFastMail: (ids) => { + const idStr = Array.isArray(ids) ? ids.join(',') : ids; + instance.delete(`/fastMail/${idStr}`); + }, + // 添加 + addFastMail: (data) => instance.post('/fastMail', data), + + // 更新 + updateFastMail: (data) => instance.put('/fastMail', data) + +}; + +// 导出模块 +export { fastMailApi }; \ No newline at end of file diff --git a/src/layout/Sidebar.vue b/src/layout/Sidebar.vue index 3d3c5a1..6ec8c2b 100644 --- a/src/layout/Sidebar.vue +++ b/src/layout/Sidebar.vue @@ -139,6 +139,10 @@ const menuData = shallowRef([ { title: '物流模板', path: '/warehouse/logistics' + }, + { + title: '快递打单账号管理', + path: '/account/management' } ] }, diff --git a/src/router/index.js b/src/router/index.js index b7b26e4..c2e7496 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -183,8 +183,17 @@ const routes = [{ path: '/shop/pddGoods', component: () => import('@/views/pddGoods/index.vue'), meta: { title: '店铺商品' } + }, + //快递打单账号管理 src/views/fastMail + { + path: '/account/management', + component: () => import('@/views/fastMail/index.vue'), + meta: { title: '货区管理', permission: 'warehouse:depot:view' } } + + + ] }] diff --git a/src/views/fastMail/index.vue b/src/views/fastMail/index.vue new file mode 100644 index 0000000..186127b --- /dev/null +++ b/src/views/fastMail/index.vue @@ -0,0 +1,480 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + 新增 + + + 修改 + + + 删除 + + + + + + + + + + + + + {{ scope.row.typetext}} + + + + + + + + + + {{ scope.row.createdTime}} + + + + + + + {{ scope.row.updatedTime}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +