diff --git a/src/api/product/attributeGroup.js b/src/api/product/attributeGroup.js index 7142930..0ca9dd6 100644 --- a/src/api/product/attributeGroup.js +++ b/src/api/product/attributeGroup.js @@ -43,3 +43,13 @@ export function delAttributeGroup(id) { }) } +//修改状态 + +export function changeStatus(data) { + return request({ + url: '/product/attributeGroup/'+data.id, + method: 'post', + data: data + }) +} + diff --git a/src/api/product/rule.js b/src/api/product/rule.js index f2de650..b38aed1 100644 --- a/src/api/product/rule.js +++ b/src/api/product/rule.js @@ -42,3 +42,11 @@ export function delRule(id) { method: 'delete' }) } + +export function changeStatus(data) { + return request({ + url: '/product/rule/'+data.id, + method: 'post', + data: data + }) +} diff --git a/src/views/product/attributeGroup/index.vue b/src/views/product/attributeGroup/index.vue index 6793859..09a2fb3 100644 --- a/src/views/product/attributeGroup/index.vue +++ b/src/views/product/attributeGroup/index.vue @@ -34,7 +34,8 @@ size="mini" @click="handleAdd" v-hasPermi="['product:attributeGroup:add']" - >新增 + >新增 + 修改 + >修改 + 删除 + >删除 + 导出 + >导出 + - - - + + + + + + + + + + + + - + @@ -121,7 +153,7 @@ - + @@ -131,17 +163,18 @@ v-for="dict in dict.type.sys_yes_no" :key="dict.value" :label="dict.value" - >{{dict.label}} + >{{ dict.label }} + - + - +