cloud-ui
刘河平 2024-11-13 18:07:42 +08:00
parent e5bd06e758
commit 8432ebc62d
2 changed files with 6 additions and 10 deletions

View File

@ -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: []
} }
}, },

View File

@ -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 => {