| | |
| | | </div> |
| | | |
| | | <template #footer> |
| | | <el-button @click="close()">取消</el-button> |
| | | <el-button type="primary" :disabled="multipleSelection.length === 0" @click="onConfirm"> |
| | | 确定 |
| | | </el-button> |
| | | <el-button @click="close()">取消</el-button> |
| | | </template> |
| | | </el-dialog> |
| | | </template> |
| | |
| | | const props = defineProps<{ |
| | | modelValue: boolean; |
| | | single?: boolean; // 是否只能选择一个,默认false(可选择多个) |
| | | topProductParentId?: number; // 一级产品id |
| | | }>(); |
| | | |
| | | const emit = defineEmits(['update:modelValue', 'confirm']); |
| | |
| | | model: query.model.trim(), |
| | | current: page.pageNum, |
| | | size: page.pageSize, |
| | | topProductParentId: props.topProductParentId, |
| | | }); |
| | | tableData.value = res.records; |
| | | total.value = res.total; |