diff --git a/src/api/brand.js b/src/api/brand.js index 66a3258..2e51ab9 100644 --- a/src/api/brand.js +++ b/src/api/brand.js @@ -6,3 +6,48 @@ export function fetchList(params) { params }) } +export function createBrand(data) { + return request({ + url:'/brand/create', + method:'post', + data:data + }) +} +export function updateShowStatus(data) { + return request({ + url:'/brand/update/showStatus', + method:'post', + data:data + }) +} + +export function updateFactoryStatus(data) { + return request({ + url:'/brand/update/factoryStatus', + method:'post', + data:data + }) +} + +export function deleteBrand(id) { + return request({ + url:'/brand/delete/'+id, + method:'get', + }) +} + +export function getBrand(id) { + return request({ + url:'/brand/'+id, + method:'get', + }) +} + +export function updateBrand(id,data) { + return request({ + url:'/brand/update/'+id, + method:'post', + data:data + }) +} + diff --git a/src/router/index.js b/src/router/index.js index 715b3bd..c3bfe2b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -47,7 +47,7 @@ export const constantRouterMap = [ { path: 'addProduct', name: 'addProduct', - component: () => import('@/views/pms/addProduct/index'), + component: () => import('@/views/pms/product/add'), meta: {title: '添加商品', icon: 'product-add'} }, { @@ -79,6 +79,20 @@ export const constantRouterMap = [ name: 'brand', component: () => import('@/views/pms/brand/index'), meta: {title: '品牌管理', icon: 'product-brand'} + }, + { + path: 'addBrand', + name: 'addBrand', + component: () => import('@/views/pms/brand/add'), + meta: {title: '添加品牌'}, + hidden:true + }, + { + path: 'updateBrand', + name: 'updateBrand', + component: () => import('@/views/pms/brand/update'), + meta: {title: '编辑品牌'}, + hidden:true } ] }, diff --git a/src/styles/index.scss b/src/styles/index.scss index 7ab8db8..0f11044 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -57,3 +57,13 @@ a:hover { .app-container { padding: 20px; } + +/*外框样式*/ +.container-frame{ + padding: 8px; + border: 1px solid rgb(235, 235, 235); + border-image: initial; + border-radius: 3px; + transition: 0.2s; + overflow: hidden; +} diff --git a/src/views/pms/addProduct/index.vue b/src/views/pms/addProduct/index.vue deleted file mode 100644 index 08698db..0000000 --- a/src/views/pms/addProduct/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/pms/brand/add.vue b/src/views/pms/brand/add.vue new file mode 100644 index 0000000..9b98b97 --- /dev/null +++ b/src/views/pms/brand/add.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/views/pms/brand/components/brandDetail.vue b/src/views/pms/brand/components/brandDetail.vue new file mode 100644 index 0000000..78d5061 --- /dev/null +++ b/src/views/pms/brand/components/brandDetail.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue index 66de229..a6fc2db 100644 --- a/src/views/pms/brand/index.vue +++ b/src/views/pms/brand/index.vue @@ -1,94 +1,111 @@ diff --git a/src/views/pms/brand/update.vue b/src/views/pms/brand/update.vue new file mode 100644 index 0000000..ba83454 --- /dev/null +++ b/src/views/pms/brand/update.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/views/pms/product/add.vue b/src/views/pms/product/add.vue new file mode 100644 index 0000000..4bdf394 --- /dev/null +++ b/src/views/pms/product/add.vue @@ -0,0 +1,14 @@ + + + + +