|
@@ -351,15 +351,24 @@
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(function() {
|
|
}).then(function() {
|
|
|
|
+ //生成时间
|
|
|
|
+ let date = new Date();
|
|
|
|
+ let year = date.getFullYear();
|
|
|
|
+ let month = (date.getMonth() + 1).toString().padStart(2, '0'); // 月份从0开始,需要加1,并确保两位数
|
|
|
|
+ let day = date.getDate().toString().padStart(2, '0'); // 确保两位数
|
|
|
|
+ let hours = date.getHours().toString().padStart(2, '0'); // 确保两位数
|
|
|
|
+ let minutes = date.getMinutes().toString().padStart(2, '0'); // 确保两位数
|
|
|
|
+ let seconds = date.getSeconds().toString().padStart(2, '0'); // 确保两位数
|
|
|
|
+ let time = year+month+day+hours+minutes+seconds
|
|
let text = self.ids+'';
|
|
let text = self.ids+'';
|
|
- self.downloadGet('/security/rectifyNotice/genRectifyNote/zip?idListStr='+text+'&fileUrl='+localStorage.getItem('fileBrowseEnvironment'), '批量通知下载.zip')
|
|
|
|
|
|
+ self.downloadGet('/security/rectifyNotice/genRectifyNote/zip?idListStr='+text+'&fileUrl='+localStorage.getItem('fileBrowseEnvironment'),'整改通知书_'+time+'.zip')
|
|
self.$refs['multipleTable'].clearSelection();
|
|
self.$refs['multipleTable'].clearSelection();
|
|
}).then(() => {
|
|
}).then(() => {
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
},
|
|
},
|
|
// 单个下载按钮
|
|
// 单个下载按钮
|
|
downloadButton(row){
|
|
downloadButton(row){
|
|
- this.downloadGet('/security/rectifyNotice/getRectifyAdviceNote?noticeId='+row.noticeId+'&fileUrl='+localStorage.getItem('fileBrowseEnvironment'), '整改通知('+row.noticeNum+').docx')
|
|
|
|
|
|
+ this.downloadGet('/security/rectifyNotice/getRectifyAdviceNote?noticeId='+row.noticeId+'&fileUrl='+localStorage.getItem('fileBrowseEnvironment'), '整改通知书('+row.noticeNum+').docx')
|
|
},//学院下拉列表
|
|
},//学院下拉列表
|
|
getDeptDropList(){
|
|
getDeptDropList(){
|
|
getDeptDropList({level: 2, deptType: 1 }).then(response => {
|
|
getDeptDropList({level: 2, deptType: 1 }).then(response => {
|