|
@@ -107,9 +107,9 @@
|
|
|
</template>
|
|
|
</BasicTable>
|
|
|
</div>
|
|
|
+ <!-- @cancel="afterClose" -->
|
|
|
<DownLoadModal
|
|
|
:downloadOption="downloadOption"
|
|
|
- @cancel="afterClose"
|
|
|
@register="registerDownModal"
|
|
|
@update="reload"
|
|
|
cancelText="取消下载"
|
|
@@ -199,7 +199,11 @@
|
|
|
schemas: getSchemas(),
|
|
|
};
|
|
|
function cancelDownload() {
|
|
|
- downloadOption.value = {};
|
|
|
+ downloadOption.value = {
|
|
|
+ percent: 0,
|
|
|
+ };
|
|
|
+ console.log('取消下载', downloadOption.value);
|
|
|
+
|
|
|
}
|
|
|
const [registerPriority, { openModal: openPriorityModal }] = useModal();
|
|
|
const [registerDownModal, { openModal: openDownModal, closeModal }] = useModal();
|
|
@@ -219,8 +223,10 @@
|
|
|
beforeFetch: (T) => {
|
|
|
loading.value = true;
|
|
|
if (T.shootCounts) {
|
|
|
- T.shootCountMin = T.shootCounts[0];
|
|
|
- T.shootCountMax = T.shootCounts[1];
|
|
|
+ let min = T.shootCounts[0]<T.shootCounts[1]?T.shootCounts[0]:T.shootCounts[1];
|
|
|
+ let max = T.shootCounts[0]>T.shootCounts[1]?T.shootCounts[0]:T.shootCounts[1];
|
|
|
+ T.shootCountMin = min;
|
|
|
+ T.shootCountMax = max;
|
|
|
}
|
|
|
return T;
|
|
|
},
|
|
@@ -357,6 +363,7 @@
|
|
|
window.open(res.url);
|
|
|
closeModal();
|
|
|
cancelDownload();
|
|
|
+ return;
|
|
|
}
|
|
|
downloadOption.value = res;
|
|
|
console.log(res);
|