From 9d74022b2c91d553cf3f1a631b53d4d5a3c1ec4b Mon Sep 17 00:00:00 2001 From: yudingyi Date: Tue, 4 Jul 2023 16:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/token.js | 1 + src/yudingyi/views/admins/OutputView.vue | 8 -------- src/yudingyi/views/auth/LoginView.vue | 3 +-- src/yudingyi/views/reports/PracticeReportView.vue | 2 -- src/yudingyi/views/reports/ResearchReportView.vue | 4 ++-- 5 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/utils/token.js b/src/utils/token.js index eb57f1f..f8d54d2 100644 --- a/src/utils/token.js +++ b/src/utils/token.js @@ -3,6 +3,7 @@ export function setToken(tokenKey, token) { } export function getToken(token) { + console.log(localStorage.getItem(token)); return localStorage.getItem(token); } diff --git a/src/yudingyi/views/admins/OutputView.vue b/src/yudingyi/views/admins/OutputView.vue index f47864a..a4498db 100644 --- a/src/yudingyi/views/admins/OutputView.vue +++ b/src/yudingyi/views/admins/OutputView.vue @@ -105,16 +105,8 @@ export default { console.log('通过接口获取表格'); exportTable(table_name) .then (response => { - // const url = window.URL.createObjectURL(new Blob([response.data])); - // const link = document.createElement('a'); - // link.href = url; const file_name = table_name + '.xlsx'; this.saveFile(response, file_name); - // link.setAttribute('download', file_name); - // document.body.appendChild(link); - // setTimeout(() => link.click(), 100); - // link.remove(); - // document.body.removeChild(link); alert("导出成功" + table_name); } ) diff --git a/src/yudingyi/views/auth/LoginView.vue b/src/yudingyi/views/auth/LoginView.vue index bf1d15f..35e7b2b 100644 --- a/src/yudingyi/views/auth/LoginView.vue +++ b/src/yudingyi/views/auth/LoginView.vue @@ -88,9 +88,8 @@ export default { }) }, getCaptchaImage() { - this.captchaImageUrl = 'http://localhost:20235/auth/captcha?' + Date.now(); // Generate a unique URL each time for the captcha image - // return 'http://localhost:20235/captcha?' + Date.now(); + this.captchaImageUrl = 'http://localhost:20235/auth/captcha?' + Date.now(); }, // refreshCaptcha() { // // Make a request to the backend API to refresh the captcha diff --git a/src/yudingyi/views/reports/PracticeReportView.vue b/src/yudingyi/views/reports/PracticeReportView.vue index 74ce1dd..ef274d7 100644 --- a/src/yudingyi/views/reports/PracticeReportView.vue +++ b/src/yudingyi/views/reports/PracticeReportView.vue @@ -65,8 +65,6 @@
注: 每个成果项目最多上传一个word/pdf文件,且不超过500kb。 - 在审状态的成果产出日期选择当前日期。 - 对于来源出处填框,对于论文填写发表所在的期刊;对于专利填写专利类型(如实用新型专利)。
diff --git a/src/yudingyi/views/reports/ResearchReportView.vue b/src/yudingyi/views/reports/ResearchReportView.vue index 9331e07..60ece45 100644 --- a/src/yudingyi/views/reports/ResearchReportView.vue +++ b/src/yudingyi/views/reports/ResearchReportView.vue @@ -69,8 +69,8 @@
注: 每个成果项目最多上传一个word/pdf文件,且不超过500kb。 - 在审状态的成果产出日期选择当前日期。 - 对于来源出处填框,对于论文填写发表所在的期刊;对于专利填写专利类型(如实用新型专利)。 +
+ 来源出处填框,论文填写发表所在的期刊;专利填写专利类型(如实用新型专利)。
-- Gitee