|
|
@@ -117,6 +117,7 @@
|
|
|
complicationDelById,
|
|
|
getNoteList,
|
|
|
complicationExplainDelById,
|
|
|
+ complicationExport,
|
|
|
} from '/@/api/biz/management/complication';
|
|
|
import { noteInfoColumns } from './data';
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
|
|
@@ -126,6 +127,7 @@
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import { onBeforeMount, ref } from 'vue';
|
|
|
+ import { downloadByBase64 } from '/@/utils/file/download';
|
|
|
const { createConfirm, createMessage } = useMessage();
|
|
|
const ListItem = List.Item;
|
|
|
const ListItemMeta = List.Item.Meta;
|
|
|
@@ -167,6 +169,7 @@
|
|
|
preIcon: 'icon-search|iconfont',
|
|
|
},
|
|
|
},
|
|
|
+ pagination: false,
|
|
|
useSearchForm: false,
|
|
|
bordered: true,
|
|
|
actionColumn: {
|
|
|
@@ -208,9 +211,26 @@
|
|
|
console.log('批量导入');
|
|
|
} else {
|
|
|
console.log('批量导出');
|
|
|
+ batchExport();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 导出并发症
|
|
|
+ async function batchExport() {
|
|
|
+ const keys = [];
|
|
|
+ complicationList.value.forEach(item => {
|
|
|
+ keys.push(item.id);
|
|
|
+ });
|
|
|
+ debugger;
|
|
|
+ complicationExport(keys).then(res => {
|
|
|
+ if (res && res.fileName && res.base64) {
|
|
|
+ downloadByBase64(res.base64, res.fileName);
|
|
|
+ } else {
|
|
|
+ createMessage.error('获取导出文件失败!');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
*并发症保存/修改/删除完成后回调函数
|
|
|
*/
|