|
|
@@ -44,12 +44,12 @@
|
|
|
ifShow: getTypeCheckPerm('diversity-powers'),
|
|
|
onClick: handlePowers.bind(null, record),
|
|
|
},
|
|
|
- //{
|
|
|
- // label: '下载',
|
|
|
- // ifShow: getTypeCheckPerm('diversity-download') && !record.isOpen,
|
|
|
- // disabled: tableType == 1,
|
|
|
- // onClick: createConfirmDownload.bind(null, record),
|
|
|
- //},
|
|
|
+ {
|
|
|
+ label: '下载',
|
|
|
+ ifShow: getTypeCheckPerm('diversity-download') && !record.isOpen,
|
|
|
+ disabled: tableType == 1,
|
|
|
+ onClick: createConfirmDownload.bind(null, record),
|
|
|
+ },
|
|
|
{
|
|
|
label: '删除',
|
|
|
ifShow: getTypeCheckPerm('diversity-delete') && !record.isOpen && tableType == 0,
|
|
|
@@ -101,6 +101,8 @@
|
|
|
caseFusionList,
|
|
|
caseFusionAdd,
|
|
|
caseFusionDel,
|
|
|
+ downloadProcess,
|
|
|
+ caseCheckDown,
|
|
|
} from '/@/api/operate/case';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
|
@@ -307,12 +309,10 @@
|
|
|
console.log('handleDownload', record, canDownload.value);
|
|
|
canDownload.value = true;
|
|
|
let isObj = tableType.value == 5 || tableType.value == 7 ? 1 : 0;
|
|
|
- caseCheckDown({ caseId: record.caseId }).then((res) => {
|
|
|
+ caseCheckDown({ fusionId: record.fusionId }).then((res) => {
|
|
|
console.log(res);
|
|
|
if (res.downloadStatus != 3) {
|
|
|
// 未下载过,需要打包
|
|
|
- caseDown({ caseId: record.caseId }).then((res) => {
|
|
|
- console.log(res);
|
|
|
openDownModal(true, {
|
|
|
...record,
|
|
|
});
|
|
|
@@ -321,7 +321,7 @@
|
|
|
afterClose();
|
|
|
}
|
|
|
timer.value = setInterval(() => {
|
|
|
- caseProcess({ caseId: record.caseId, }).then((res) => {
|
|
|
+ downloadProcess({ fusionId: record.fusionId, }).then((res) => {
|
|
|
if (res.status == '1003') {
|
|
|
createMessage.error('下载失败');
|
|
|
afterClose();
|
|
|
@@ -336,7 +336,6 @@
|
|
|
});
|
|
|
}, 1000);
|
|
|
}
|
|
|
- });
|
|
|
} else {
|
|
|
canDownload.value = false;
|
|
|
window.open(res.downloadUrl);
|