第一次优化
parent
8f752ce3fc
commit
b64360896e
|
@ -35,6 +35,13 @@ export function updateAttributeGroup(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function updAttributeGroup(data) {
|
||||||
|
return request({
|
||||||
|
url: '/product/attributeGroup/upd',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
// 删除属性组
|
// 删除属性组
|
||||||
export function delAttributeGroup(id) {
|
export function delAttributeGroup(id) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
<CheckAttribute v-model="form.attributeIdList"/>
|
<CheckAttribute v-model="form.attributeIdList" :checked-list="form.attributeList"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listAttributeGroup, getAttributeGroup, delAttributeGroup, addAttributeGroup, updateAttributeGroup } from "@/api/product/attributeGroup";
|
import { listAttributeGroup, getAttributeGroup, delAttributeGroup, addAttributeGroup, updateAttributeGroup,updAttributeGroup } from "@/api/product/attributeGroup";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AttributeGroup",
|
name: "AttributeGroup",
|
||||||
|
|
Loading…
Reference in New Issue