feat: 拉取代码
This commit is contained in:
@@ -415,7 +415,10 @@ function handleSelectionChange(selection: any[]) {
|
||||
selectionData.value = selection;
|
||||
removeIds.value = selection.map((item) => item[pk]);
|
||||
}
|
||||
|
||||
// 获取选中的表格数据
|
||||
function getselectTable() {
|
||||
return selectionData.value;
|
||||
}
|
||||
// 刷新
|
||||
function handleRefresh(isRestart = false) {
|
||||
fetchPageData(lastFormData, isRestart);
|
||||
@@ -560,6 +563,7 @@ function handleFileExceed(files: File[]) {
|
||||
file.uid = genFileId();
|
||||
uploadRef.value!.handleStart(file);
|
||||
}
|
||||
|
||||
// 下载导入模板
|
||||
function handleDownloadTemplate() {
|
||||
const importTemplate = props.contentConfig.importTemplate;
|
||||
@@ -725,6 +729,7 @@ function handleModify(field: string, value: boolean | string | number, row: Reco
|
||||
if (props.contentConfig.modifyAction) {
|
||||
props.contentConfig.modifyAction({
|
||||
[pk]: row[pk],
|
||||
...row,
|
||||
field: field,
|
||||
value: value,
|
||||
});
|
||||
@@ -847,7 +852,7 @@ function saveXlsx(fileData: BlobPart, fileName: string) {
|
||||
}
|
||||
|
||||
// 暴露的属性和方法
|
||||
defineExpose({ fetchPageData, exportPageData, getFilterParams });
|
||||
defineExpose({ fetchPageData, exportPageData, getFilterParams, getselectTable });
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user