diff --git a/src/api/storeConf.js b/src/api/storeConf.js new file mode 100644 index 0000000..51bb2fb --- /dev/null +++ b/src/api/storeConf.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' +import { stringify } from 'qs' + +export async function geConfList(data) { + data = stringify(data) + return request({ + url: `/admin/shop/shop-sync-storeDbConfig/list?${data}`, + method: 'get', + }) +} + +export async function createConfList(data) { + return request({ + url: '/admin/shop/shop-sync-storeDbConfig/saveStoreDbConfig', + method: 'post', + headers: { + 'Content-Type': 'application/json', + }, + data, + }) +} + +export async function updateConfList(data) { + return request({ + url: '/admin/shop/shop-sync-storeDbConfig/updateStoreDbConfig', + method: 'put', + headers: { + 'Content-Type': 'application/json', + }, + data, + }) +} + +export async function deleteConfList(data) { + return request({ + url: '/admin/shop/shop-sync-storeDbConfig/delStoreDbConfig', + method: 'put', + headers: { + 'Content-Type': 'application/json', + }, + data, + }) +} + +export async function createConfSecretkKey(data) { + return request({ + url: '/admin/shop/shop-sync-storeDbConfig/getPrimaryKey', + method: 'put', + headers: { + 'Content-Type': 'application/json', + }, + data, + }) +} + +export default { + geConfList, + createConfList, + updateConfList, + deleteConfList, + createConfSecretkKey, +} diff --git a/src/utils/routes.js b/src/utils/routes.js index fed1ce6..e7e840a 100644 --- a/src/utils/routes.js +++ b/src/utils/routes.js @@ -28,9 +28,27 @@ export function convertRouter(asyncRoutes) { menuHidden: false, } - route.children.splice(0, 0, obj) + route.children.push(obj) } - + + if (route.meta.title == '店铺' && route.name == 'Vab330') { + const obj = { + path: '/goodsTool', + component: '@/views/product/goodsTool/index', + name: 'Vab88001', + redirect: null, + meta: { + title: '店铺数据库配置', + icon: '', + noClosable: 0, + hidden: null, + }, + menuHidden: false, + } + + route.children.push(obj) + } + if (route.meta.title == '店铺' && route.name == 'Vab330') { const obj = { path: '/shopAudit', diff --git a/src/views/store/storeConf/DbConfigForm.vue b/src/views/store/storeConf/DbConfigForm.vue new file mode 100644 index 0000000..d013e67 --- /dev/null +++ b/src/views/store/storeConf/DbConfigForm.vue @@ -0,0 +1,281 @@ + + + + + diff --git a/src/views/store/storeConf/index.vue b/src/views/store/storeConf/index.vue new file mode 100644 index 0000000..9511844 --- /dev/null +++ b/src/views/store/storeConf/index.vue @@ -0,0 +1,320 @@ + + + + +