初始化-第二次前端
parent
f3aee8ca56
commit
d705ba0926
|
@ -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: []
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue