diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/apply/editFile.html b/ruoyi-admin/src/main/resources/templates/system/newdev/apply/editFile.html
index 3bcb6d8f..683527fa 100644
--- a/ruoyi-admin/src/main/resources/templates/system/newdev/apply/editFile.html
+++ b/ruoyi-admin/src/main/resources/templates/system/newdev/apply/editFile.html
@@ -693,7 +693,7 @@
},
// 新增图片预览相关方法
isImageFile(fileName) {
- const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp'];
+ const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp','pdf'];
const extension = fileName.split('.').pop().toLowerCase();
return imageExtensions.includes(extension);
},
@@ -705,6 +705,11 @@
return 'fa-solid fa-file text-gray-500';
},
previewFile(file) {
+ let extension = file.fileName.split('.').pop().toLowerCase();
+ if (extension === 'pdf') {
+ window.open(file.fileUrl);
+ return
+ }
this.previewingFile = file;
this.previewModalVisible = true;
},
diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/audit/auditList.html b/ruoyi-admin/src/main/resources/templates/system/newdev/audit/auditList.html
index 7361ac4e..89fc7aec 100644
--- a/ruoyi-admin/src/main/resources/templates/system/newdev/audit/auditList.html
+++ b/ruoyi-admin/src/main/resources/templates/system/newdev/audit/auditList.html
@@ -50,6 +50,7 @@
$(function() {
var options = {
url: prefix + "/list",
+ detailUrl:prefix + "/editAudit/{id}",
modalName: "涉密人员上岗审查",
type: 0,
columns: [
@@ -109,14 +110,17 @@
align: 'center',
formatter: function(value, row, index) {
var actions = [];
- actions.push('审查 ');
+ actions.push('审查 ');
return actions.join('');
}
}]
};
$.table.init(options);
});
-
+ function openAudit(id){
+ table.set();
+ $.modal.openTab("材料审查", $.operate.detailUrl(id));
+ }