From 569deab3f7fd22f58067ccf79059db24879c5ea4 Mon Sep 17 00:00:00 2001 From: dev01 Date: Tue, 31 Jan 2023 10:17:59 +0800 Subject: [PATCH] =?UTF-8?q?[Frontend][=E5=9C=96=E8=B3=87=E7=AE=A1=E7=90=86?= =?UTF-8?q?]=20=E6=AA=94=E6=A1=88=E4=B8=8A=E5=82=B3=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_graphManagement.html | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Frontend/_graphManagement.html b/Frontend/_graphManagement.html index 6a829fe..1647fea 100644 --- a/Frontend/_graphManagement.html +++ b/Frontend/_graphManagement.html @@ -76,7 +76,7 @@

選擇一個文件或拖放到這裡

- DWG檔案不超過 10MB + (圖片檔, 文字檔, word, ppt, excel, pdf)檔案不超過 10MB

@@ -207,11 +207,12 @@ dictCancelUploadConfirmation: `確定要取消上傳此檔案嗎?`, dictCancelUpload: `cancel`, dictMaxFilesExceeded: "已超過上傳限制數量", + dictFileTooBig:"已超出上傳限制,最大{{maxFilesize}}MB,而您的檔案{{filesize}}MB。", maxFilesize: 10, filesizeBase: 1024, maxFiles: 1, autoProcessQueue: false, - acceptedFiles: ".dwg", + acceptedFiles: ".dwg,.jpeg,.jpg,.png,.gif,.doc,.docx,.ppt,.pptx,.xlsx,.xls,.opt,.pdf,.txt", init: function () { this.on("addedfile", function (file) { $(this.previewsContainer).find('.dz-progress').addClass('d-none'); @@ -236,25 +237,16 @@ }; uploader.graMyDesignDiagram = $("#graMyDesignDiagram").dropzone(option); - /*uploader.graMyAsBuilt = $("#graMyAsBuilt").dropzone(option);*/ uploader["graMyDesignDiagram"][0].dropzone.on("addedfile", file => { uploadFiles["graMyDesignDiagram"] = file; }) - //uploader["graMyAsBuilt"][0].dropzone.on("addedfile", file => { - // uploadFiles["graMyAsBuilt"] = file; - //}) - uploader["graMyDesignDiagram"][0].dropzone.on("removedfile", file => { uploadFiles["graMyDesignDiagram"] = {}; file.previewElement.remove(); }) - //uploader["graMyAsBuilt"][0].dropzone.on("removedfile", file => { - // uploadFiles["graMyAsBuilt"] = {}; - // file.previewElement.remove(); - //}) } // 新增資料 @@ -288,7 +280,7 @@ let dowLoaEle = YT.Alert.Tip("準備下載中...", "show", true); let rowData = graTable.row($(this).closest("tr")).data(); let apiUrl = baseApiUrl + `/File/Download?type=graph&savename=${rowData.donSavName}&oriname=${rowData.donOrgName}`; - let extname = rowData.donOrgName?.split(".").slice(-1) || "dwg"; + let extname = rowData.donOrgName?.split(".").slice(-1); download(token, apiUrl, rowData.name + "_竣工圖" + "." + extname, function () { $(dowLoaEle.ele).YTAlert().hide(); });