diff --git a/src/api/bookInfo/book.js b/src/api/bookInfo/book.js deleted file mode 100644 index 4101aa3..0000000 --- a/src/api/bookInfo/book.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -// 查询列表 -export function listInfo(query) { - return request({ - url: '/system/info/list', - method: 'get', - params: query - }) -} - -// 查询详细 -export function getInfo(id) { - return request({ - url: '/system/info/' + id, - method: 'get' - }) -} - -// 新增 -export function addInfo(data) { - return request({ - url: '/system/info', - method: 'post', - data: data - }) -} - -// 修改 -export function updateInfo(data) { - return request({ - url: '/system/info', - method: 'put', - data: data - }) -} - -// 删除 -export function delInfo(id) { - return request({ - url: '/system/info/' + id, - method: 'delete' - }) -} diff --git a/src/api/product/address.js b/src/api/product/address.js new file mode 100644 index 0000000..fb06cab --- /dev/null +++ b/src/api/product/address.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询地区列表 +export function listAddress(query) { + return request({ + url: '/product/address/list', + method: 'get', + params: query + }) +} + +// 查询地区详细 +export function getAddress(id) { + return request({ + url: '/product/address/' + id, + method: 'get' + }) +} + +// 新增地区 +export function addAddress(data) { + return request({ + url: '/product/address', + method: 'post', + data: data + }) +} + +// 修改地区 +export function updateAddress(data) { + return request({ + url: '/product/address', + method: 'put', + data: data + }) +} + +// 删除地区 +export function delAddress(id) { + return request({ + url: '/product/address/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/as_attribute_group.js b/src/api/product/as_attribute_group.js new file mode 100644 index 0000000..7e18542 --- /dev/null +++ b/src/api/product/as_attribute_group.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询属性组中间列表 +export function listAs_attribute_group(query) { + return request({ + url: '/product/as_attribute_group/list', + method: 'get', + params: query + }) +} + +// 查询属性组中间详细 +export function getAs_attribute_group(id) { + return request({ + url: '/product/as_attribute_group/' + id, + method: 'get' + }) +} + +// 新增属性组中间 +export function addAs_attribute_group(data) { + return request({ + url: '/product/as_attribute_group', + method: 'post', + data: data + }) +} + +// 修改属性组中间 +export function updateAs_attribute_group(data) { + return request({ + url: '/product/as_attribute_group', + method: 'put', + data: data + }) +} + +// 删除属性组中间 +export function delAs_attribute_group(id) { + return request({ + url: '/product/as_attribute_group/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/attribute.js b/src/api/product/attribute.js new file mode 100644 index 0000000..fef7f30 --- /dev/null +++ b/src/api/product/attribute.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询属性列表 +export function listAttribute(query) { + return request({ + url: '/product/attribute/list', + method: 'get', + params: query + }) +} + +// 查询属性详细 +export function getAttribute(id) { + return request({ + url: '/product/attribute/' + id, + method: 'get' + }) +} + +// 新增属性 +export function addAttribute(data) { + return request({ + url: '/product/attribute', + method: 'post', + data: data + }) +} + +// 修改属性 +export function updateAttribute(data) { + return request({ + url: '/product/attribute', + method: 'put', + data: data + }) +} + +// 删除属性 +export function delAttribute(id) { + return request({ + url: '/product/attribute/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/attribute_group.js b/src/api/product/attribute_group.js new file mode 100644 index 0000000..388ca63 --- /dev/null +++ b/src/api/product/attribute_group.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询属性组列表 +export function listGroup(query) { + return request({ + url: '/product/group/list', + method: 'get', + params: query + }) +} + +// 查询属性组详细 +export function getGroup(id) { + return request({ + url: '/product/group/' + id, + method: 'get' + }) +} + +// 新增属性组 +export function addGroup(data) { + return request({ + url: '/product/group', + method: 'post', + data: data + }) +} + +// 修改属性组 +export function updateGroup(data) { + return request({ + url: '/product/group', + method: 'put', + data: data + }) +} + +// 删除属性组 +export function delGroup(id) { + return request({ + url: '/product/group/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/brand.js b/src/api/product/brand.js new file mode 100644 index 0000000..cbdde93 --- /dev/null +++ b/src/api/product/brand.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询品牌列表 +export function listBrand(query) { + return request({ + url: '/product/brand/list', + method: 'get', + params: query + }) +} + +// 查询品牌详细 +export function getBrand(id) { + return request({ + url: '/product/brand/' + id, + method: 'get' + }) +} + +// 新增品牌 +export function addBrand(data) { + return request({ + url: '/product/brand', + method: 'post', + data: data + }) +} + +// 修改品牌 +export function updateBrand(data) { + return request({ + url: '/product/brand', + method: 'put', + data: data + }) +} + +// 删除品牌 +export function delBrand(id) { + return request({ + url: '/product/brand/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/category_attribute.js b/src/api/product/category_attribute.js new file mode 100644 index 0000000..52e549e --- /dev/null +++ b/src/api/product/category_attribute.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询品类属性中间列表 +export function listCategory_attribute(query) { + return request({ + url: '/product/category_attribute/list', + method: 'get', + params: query + }) +} + +// 查询品类属性中间详细 +export function getCategory_attribute(id) { + return request({ + url: '/product/category_attribute/' + id, + method: 'get' + }) +} + +// 新增品类属性中间 +export function addCategory_attribute(data) { + return request({ + url: '/product/category_attribute', + method: 'post', + data: data + }) +} + +// 修改品类属性中间 +export function updateCategory_attribute(data) { + return request({ + url: '/product/category_attribute', + method: 'put', + data: data + }) +} + +// 删除品类属性中间 +export function delCategory_attribute(id) { + return request({ + url: '/product/category_attribute/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/category_attribute_group.js b/src/api/product/category_attribute_group.js new file mode 100644 index 0000000..746ffe3 --- /dev/null +++ b/src/api/product/category_attribute_group.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询品类属性组中间列表 +export function listCategory_attribute_group(query) { + return request({ + url: '/product/category_attribute_group/list', + method: 'get', + params: query + }) +} + +// 查询品类属性组中间详细 +export function getCategory_attribute_group(id) { + return request({ + url: '/product/category_attribute_group/' + id, + method: 'get' + }) +} + +// 新增品类属性组中间 +export function addCategory_attribute_group(data) { + return request({ + url: '/product/category_attribute_group', + method: 'post', + data: data + }) +} + +// 修改品类属性组中间 +export function updateCategory_attribute_group(data) { + return request({ + url: '/product/category_attribute_group', + method: 'put', + data: data + }) +} + +// 删除品类属性组中间 +export function delCategory_attribute_group(id) { + return request({ + url: '/product/category_attribute_group/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/category_brand.js b/src/api/product/category_brand.js new file mode 100644 index 0000000..b0d52ed --- /dev/null +++ b/src/api/product/category_brand.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询品牌品类中间列表 +export function listCategory_brand(query) { + return request({ + url: '/product/category_brand/list', + method: 'get', + params: query + }) +} + +// 查询品牌品类中间详细 +export function getCategory_brand(id) { + return request({ + url: '/product/category_brand/' + id, + method: 'get' + }) +} + +// 新增品牌品类中间 +export function addCategory_brand(data) { + return request({ + url: '/product/category_brand', + method: 'post', + data: data + }) +} + +// 修改品牌品类中间 +export function updateCategory_brand(data) { + return request({ + url: '/product/category_brand', + method: 'put', + data: data + }) +} + +// 删除品牌品类中间 +export function delCategory_brand(id) { + return request({ + url: '/product/category_brand/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/category_info.js b/src/api/product/category_info.js new file mode 100644 index 0000000..0a0c3ba --- /dev/null +++ b/src/api/product/category_info.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询品类信息列表 +export function listCategory_info(query) { + return request({ + url: '/product/category_info/list', + method: 'get', + params: query + }) +} + +// 查询品类信息详细 +export function getCategory_info(id) { + return request({ + url: '/product/category_info/' + id, + method: 'get' + }) +} + +// 新增品类信息 +export function addCategory_info(data) { + return request({ + url: '/product/category_info', + method: 'post', + data: data + }) +} + +// 修改品类信息 +export function updateCategory_info(data) { + return request({ + url: '/product/category_info', + method: 'put', + data: data + }) +} + +// 删除品类信息 +export function delCategory_info(id) { + return request({ + url: '/product/category_info/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/product_attrbute.js b/src/api/product/product_attrbute.js new file mode 100644 index 0000000..5ced811 --- /dev/null +++ b/src/api/product/product_attrbute.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询商品属性中间表列表 +export function listProduct(query) { + return request({ + url: '/product/product/list', + method: 'get', + params: query + }) +} + +// 查询商品属性中间表详细 +export function getProduct(id) { + return request({ + url: '/product/product/' + id, + method: 'get' + }) +} + +// 新增商品属性中间表 +export function addProduct(data) { + return request({ + url: '/product/product', + method: 'post', + data: data + }) +} + +// 修改商品属性中间表 +export function updateProduct(data) { + return request({ + url: '/product/product', + method: 'put', + data: data + }) +} + +// 删除商品属性中间表 +export function delProduct(id) { + return request({ + url: '/product/product/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/product_category.js b/src/api/product/product_category.js new file mode 100644 index 0000000..16f9188 --- /dev/null +++ b/src/api/product/product_category.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询品类商品中间列表 +export function listProduct_category(query) { + return request({ + url: '/product/product_category/list', + method: 'get', + params: query + }) +} + +// 查询品类商品中间详细 +export function getProduct_category(id) { + return request({ + url: '/product/product_category/' + id, + method: 'get' + }) +} + +// 新增品类商品中间 +export function addProduct_category(data) { + return request({ + url: '/product/product_category', + method: 'post', + data: data + }) +} + +// 修改品类商品中间 +export function updateProduct_category(data) { + return request({ + url: '/product/product_category', + method: 'put', + data: data + }) +} + +// 删除品类商品中间 +export function delProduct_category(id) { + return request({ + url: '/product/product_category/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/product_info.js b/src/api/product/product_info.js new file mode 100644 index 0000000..0312c2f --- /dev/null +++ b/src/api/product/product_info.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询商品;列表 +export function listProduct_info(query) { + return request({ + url: '/product/product/list', + method: 'get', + params: query + }) +} + +// 查询商品;详细 +export function getProduct_info(id) { + return request({ + url: '/product/product/' + id, + method: 'get' + }) +} + +// 新增商品; +export function addProduct_info(data) { + return request({ + url: '/product/product', + method: 'post', + data: data + }) +} + +// 修改商品; +export function updateProduct_info(data) { + return request({ + url: '/product/product', + method: 'put', + data: data + }) +} + +// 删除商品; +export function delProduct_info(id) { + return request({ + url: '/product/product/' + id, + method: 'delete' + }) +} diff --git a/src/api/product/rule.js b/src/api/product/rule.js new file mode 100644 index 0000000..286f28d --- /dev/null +++ b/src/api/product/rule.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询规格列表 +export function listRule(query) { + return request({ + url: '/product/rule/list', + method: 'get', + params: query + }) +} + +// 查询规格详细 +export function getRule(id) { + return request({ + url: '/product/rule/' + id, + method: 'get' + }) +} + +// 新增规格 +export function addRule(data) { + return request({ + url: '/product/rule', + method: 'post', + data: data + }) +} + +// 修改规格 +export function updateRule(data) { + return request({ + url: '/product/rule', + method: 'put', + data: data + }) +} + +// 删除规格 +export function delRule(id) { + return request({ + url: '/product/rule/' + id, + method: 'delete' + }) +} diff --git a/src/api/system/book.js b/src/api/system/book.js deleted file mode 100644 index 4101aa3..0000000 --- a/src/api/system/book.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -// 查询列表 -export function listInfo(query) { - return request({ - url: '/system/info/list', - method: 'get', - params: query - }) -} - -// 查询详细 -export function getInfo(id) { - return request({ - url: '/system/info/' + id, - method: 'get' - }) -} - -// 新增 -export function addInfo(data) { - return request({ - url: '/system/info', - method: 'post', - data: data - }) -} - -// 修改 -export function updateInfo(data) { - return request({ - url: '/system/info', - method: 'put', - data: data - }) -} - -// 删除 -export function delInfo(id) { - return request({ - url: '/system/info/' + id, - method: 'delete' - }) -} diff --git a/src/views/product/address/index.vue b/src/views/product/address/index.vue new file mode 100644 index 0000000..be7744c --- /dev/null +++ b/src/views/product/address/index.vue @@ -0,0 +1,273 @@ + + + diff --git a/src/views/product/attribute/index.vue b/src/views/product/attribute/index.vue new file mode 100644 index 0000000..5c5d8f7 --- /dev/null +++ b/src/views/product/attribute/index.vue @@ -0,0 +1,273 @@ + + + diff --git a/src/views/product/brand/index.vue b/src/views/product/brand/index.vue new file mode 100644 index 0000000..fa69933 --- /dev/null +++ b/src/views/product/brand/index.vue @@ -0,0 +1,321 @@ + + + diff --git a/src/views/product/categoryInfo/index.vue b/src/views/product/categoryInfo/index.vue new file mode 100644 index 0000000..cde4f9f --- /dev/null +++ b/src/views/product/categoryInfo/index.vue @@ -0,0 +1,310 @@ + + + diff --git a/src/views/product/group/index.vue b/src/views/product/group/index.vue new file mode 100644 index 0000000..2a8c3d1 --- /dev/null +++ b/src/views/product/group/index.vue @@ -0,0 +1,360 @@ + + + diff --git a/src/views/system/book/index.vue b/src/views/product/productInfo/index.vue similarity index 54% rename from src/views/system/book/index.vue rename to src/views/product/productInfo/index.vue index c612343..3733c8a 100644 --- a/src/views/system/book/index.vue +++ b/src/views/product/productInfo/index.vue @@ -1,49 +1,39 @@ diff --git a/src/views/system/bookIndex/index.vue b/src/views/system/bookIndex/index.vue deleted file mode 100644 index 2aff978..0000000 --- a/src/views/system/bookIndex/index.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/src/views/tool/gen/editTable.vue b/src/views/tool/gen/editTable.vue index a15ef49..ff38a78 100644 --- a/src/views/tool/gen/editTable.vue +++ b/src/views/tool/gen/editTable.vue @@ -194,7 +194,7 @@ export default { parentMenuId: genTable.parentMenuId }; updateGenTable(genTable).then(res => { - this.$modal.msgSuccess(res.data.msg); + this.$modal.msgSuccess(res.msg); if (res.code === 200) { this.close(); } diff --git a/vue.config.js b/vue.config.js index dd8b15d..f122eba 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, + target: `http://localhost:18080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''