diff --git a/.env.development b/.env.development index a57c3857..824629a2 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ NODE_ENV = 'development' # Base API -VITE_APP_BASE_URL='http://127.0.0.1:8787' \ No newline at end of file +VITE_APP_BASE_URL='http://192.168.1.22:8545' \ No newline at end of file diff --git a/.env.development.example b/.env.development.example index a57c3857..824629a2 100644 --- a/.env.development.example +++ b/.env.development.example @@ -1,4 +1,4 @@ NODE_ENV = 'development' # Base API -VITE_APP_BASE_URL='http://127.0.0.1:8787' \ No newline at end of file +VITE_APP_BASE_URL='http://192.168.1.22:8545' \ No newline at end of file diff --git a/src/api/store_category.ts b/src/api/store_category.ts new file mode 100644 index 00000000..6a11579f --- /dev/null +++ b/src/api/store_category.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 商品分类表列表 +export function apiStoreCategoryLists(params: any) { + return request.get({ url: '/store_category/storecategory/lists', params }) +} + +// 添加商品分类表 +export function apiStoreCategoryAdd(params: any) { + return request.post({ url: '/store_category/storecategory/add', params }) +} + +// 编辑商品分类表 +export function apiStoreCategoryEdit(params: any) { + return request.post({ url: '/store_category/storecategory/edit', params }) +} + +// 删除商品分类表 +export function apiStoreCategoryDelete(params: any) { + return request.post({ url: '/store_category/storecategory/delete', params }) +} + +// 商品分类表详情 +export function apiStoreCategoryDetail(params: any) { + return request.get({ url: '/store_category/storecategory/detail', params }) +} \ No newline at end of file diff --git a/src/api/store_product.ts b/src/api/store_product.ts new file mode 100644 index 00000000..8b562816 --- /dev/null +++ b/src/api/store_product.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 商品表列表 +export function apiStoreProductLists(params: any) { + return request.get({ url: '/store_product/storeproduct/lists', params }) +} + +// 添加商品表 +export function apiStoreProductAdd(params: any) { + return request.post({ url: '/store_product/storeproduct/add', params }) +} + +// 编辑商品表 +export function apiStoreProductEdit(params: any) { + return request.post({ url: '/store_product/storeproduct/edit', params }) +} + +// 删除商品表 +export function apiStoreProductDelete(params: any) { + return request.post({ url: '/store_product/storeproduct/delete', params }) +} + +// 商品表详情 +export function apiStoreProductDetail(params: any) { + return request.get({ url: '/store_product/storeproduct/detail', params }) +} \ No newline at end of file diff --git a/src/views/dev_tools/code/edit.vue b/src/views/dev_tools/code/edit.vue index 67640886..35c3aa9e 100644 --- a/src/views/dev_tools/code/edit.vue +++ b/src/views/dev_tools/code/edit.vue @@ -60,6 +60,15 @@ +