|
@@ -74,6 +74,9 @@ import {elAlert, handleMes, showConfirm, showMessage} from "@/unit/element-ui/ti
|
|
|
import LabelTypeDialog from "@/view/other/c-views/data-handle/zsk/base-rule/tabs/LabelTypeDialog.vue";
|
|
|
import {useDetailOrEdit} from "@/unit/use-method/usePagination";
|
|
|
import {delSyncRule} from "@/service/zsk/sync-rule";
|
|
|
+import {
|
|
|
+ getExportFile
|
|
|
+} from "@/service/data-sync-hanlle-watch/data-sync-handle-watch-sheet";
|
|
|
|
|
|
export default {
|
|
|
name: "LabelType",
|
|
@@ -142,10 +145,34 @@ export default {
|
|
|
const isLabelTypeDialogIsShow =ref(false)
|
|
|
function exportFile() {
|
|
|
if (tabType.value ==='theme'){
|
|
|
- window.open(baseUrl+'/ptjkInterface/exportZt_Label?appkey='+useRootStore().userInfo.ptjk_userkeycode,'_blank')
|
|
|
+ getExportFile({
|
|
|
+ url:"/ptjkInterface/exportZt_Label"
|
|
|
+ }).then(response =>{
|
|
|
+ const url = window.URL.createObjectURL(new Blob([response]));
|
|
|
+ const link = document.createElement('a');
|
|
|
+ link.href = url;
|
|
|
+ link.setAttribute('download', 'file.xls'); // 替换为实际的文件名
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ link.remove();
|
|
|
+
|
|
|
+ })
|
|
|
+ // window.open(baseUrl+'/ptjkInterface/exportZt_Label?appkey='+useRootStore().userInfo.ptjk_userkeycode,'_blank')
|
|
|
|
|
|
}else {
|
|
|
- window.open(baseUrl+'/DataLabelDetailDownload/ExcelDownload?appkey='+useRootStore().userInfo.ptjk_userkeycode,'_blank')
|
|
|
+ // window.open(baseUrl+'/DataLabelDetailDownload/ExcelDownload?appkey='+useRootStore().userInfo.ptjk_userkeycode,'_blank')
|
|
|
+ getExportFile({
|
|
|
+ url:"/DataLabelDetailDownload/ExcelDownload"
|
|
|
+ }).then(response =>{
|
|
|
+ const url = window.URL.createObjectURL(new Blob([response]));
|
|
|
+ const link = document.createElement('a');
|
|
|
+ link.href = url;
|
|
|
+ link.setAttribute('download', 'file.xls'); // 替换为实际的文件名
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ link.remove();
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
function importF(res,res2) {
|