初始化-第二次前端

master
34626 2024-11-15 12:02:52 +08:00
parent f3aee8ca56
commit d705ba0926
3 changed files with 6 additions and 3 deletions

View File

@ -60,7 +60,6 @@
</el-card>
</el-row>
</template>
<script>
import {listAttribute} from "@/api/product/attribute";
@ -99,7 +98,9 @@ export default {
data() {
return {
attributeIdList: [],
//
checkedAttributeList: [],
//
attributeQuery: {
pageNum: 1,
pageSize: 10,
@ -107,6 +108,7 @@ export default {
name: null
},
attributeTotal: 0,
//
attributeList: []
}
},

View File

@ -141,7 +141,7 @@
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
</el-form-item>
</el-row>
<CheckAttribute v-model="form.attributeIdList"/>
<CheckAttribute v-model="form.attributeIdList" :checked-list="form.attributeList"/>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -258,6 +258,7 @@ export default {
this.form = response.data;
this.open = true;
this.title = "修改属性组";
console.log(this.form)
});
},
/** 提交按钮 */

View File

@ -244,7 +244,7 @@ export default {
watch: {
'form.parentId': {
handler(val){
if (val !== undefined && val !== 0){
if (val !== undefined && val !== 0 && val!=null){
parentCommonElement(val).then(response => {
this.attributeInfoList = response.data.attributeInfoList;
this.attributeGroupList = response.data.attributeGroupList;