cloud-ui
parent
e5bd06e758
commit
8432ebc62d
|
@ -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>
|
||||||
|
@ -152,14 +152,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import { listAttributeGroup, getAttributeGroup, delAttributeGroup, addAttributeGroup, updateAttributeGroup } from "@/api/product/attributeGroup";
|
||||||
listAttributeGroup,
|
|
||||||
getAttributeGroup,
|
|
||||||
delAttributeGroup,
|
|
||||||
addAttributeGroup,
|
|
||||||
updateAttributeGroup,
|
|
||||||
getAttributeGroupId
|
|
||||||
} from "@/api/product/attributeGroup";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AttributeGroup",
|
name: "AttributeGroup",
|
||||||
|
@ -258,7 +251,7 @@ export default {
|
||||||
this.title = "添加属性组";
|
this.title = "添加属性组";
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate: function (row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
const id = row.id || this.ids
|
const id = row.id || this.ids
|
||||||
getAttributeGroup(id).then(response => {
|
getAttributeGroup(id).then(response => {
|
||||||
|
|
Loading…
Reference in New Issue