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();
});