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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + 新增 + + + + + + + + + + + + + + {{ scope.row.hasInternet === '1' ? '有' : '无' }} + + + + + + {{ scope.row.syncMode === '1' ? '定时同步' : '间隔同步' }} + + + + + + {{ scope.row.hasStart === '1' ? '是' : '否' }} + + + + + + + + + + {{ scope.row.isTowSync === '1' ? '是' : '否' }} + + + + + + + 编辑 + + + 删除 + + + 密钥生成 + + + + + + + + + + + + + + + + 您的密钥为: + + + + + + 好的 + + + + + + + + + +
您的密钥为: