fix(): 功能修复
parent
a6161b73eb
commit
15a3d00801
|
@ -99,7 +99,9 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
attributeIdList: [],
|
attributeIdList: [],
|
||||||
|
// 选中集合
|
||||||
checkedAttributeList: [],
|
checkedAttributeList: [],
|
||||||
|
// 未选属性的查询参数
|
||||||
attributeQuery: {
|
attributeQuery: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
@ -107,6 +109,7 @@ export default {
|
||||||
name: null
|
name: null
|
||||||
},
|
},
|
||||||
attributeTotal: 0,
|
attributeTotal: 0,
|
||||||
|
// 查询出来未选属性的结果
|
||||||
attributeList: []
|
attributeList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -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>
|
||||||
|
@ -258,6 +258,7 @@ export default {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改属性组";
|
this.title = "修改属性组";
|
||||||
|
console.log(this.form)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
|
|
|
@ -244,7 +244,8 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
'form.parentId': {
|
'form.parentId': {
|
||||||
handler(val){
|
handler(val){
|
||||||
if (val !== undefined && val !== 0){
|
console.log('form.parentId', this.form);
|
||||||
|
if (val !== undefined && val !== null && val !== 0 && this.form.id === null){
|
||||||
parentCommonElement(val).then(response => {
|
parentCommonElement(val).then(response => {
|
||||||
this.attributeInfoList = response.data.attributeInfoList;
|
this.attributeInfoList = response.data.attributeInfoList;
|
||||||
this.attributeGroupList = response.data.attributeGroupList;
|
this.attributeGroupList = response.data.attributeGroupList;
|
||||||
|
@ -342,11 +343,18 @@ export default {
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.getTreeselect();
|
this.getTreeselect();
|
||||||
|
|
||||||
|
getCategory(row.id).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
if (row != null) {
|
if (row != null) {
|
||||||
this.form.parentId = row.parentId;
|
this.form.parentId = row.parentId;
|
||||||
}
|
}
|
||||||
getCategory(row.id).then(response => {
|
console.log(row)
|
||||||
this.form = response.data;
|
parentCommonElement(row.id).then(response => {
|
||||||
|
this.attributeInfoList = response.data.attributeInfoList;
|
||||||
|
this.attributeGroupList = response.data.attributeGroupList;
|
||||||
|
this.brandInfoList = response.data.brandInfoList;
|
||||||
|
})
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改品类信息";
|
this.title = "修改品类信息";
|
||||||
});
|
});
|
||||||
|
|
|
@ -509,7 +509,6 @@ export default {
|
||||||
this.categoryCommonElement.attributeList = attributeList;
|
this.categoryCommonElement.attributeList = attributeList;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -723,6 +722,12 @@ export default {
|
||||||
const id = row.id || this.ids
|
const id = row.id || this.ids
|
||||||
getInfo(id).then(response => {
|
getInfo(id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
this.categoryOptionValue = [
|
||||||
|
this.form.mianType,
|
||||||
|
this.form.parentType,
|
||||||
|
this.form.type
|
||||||
|
];
|
||||||
|
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改商品信息";
|
this.title = "修改商品信息";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue