From 64cd2a8621805f4ef4b8e5421d9af5621399680d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Wed, 19 Nov 2025 17:53:26 +0800 Subject: [PATCH] tijiao --- src/common/js/commonJS.js | 4 +- src/components/common/common.vue | 10 ++-- src/components/page/ReferenceEditor.vue | 63 ++++++++++++++++++++++++- 3 files changed, 69 insertions(+), 8 deletions(-) diff --git a/src/common/js/commonJS.js b/src/common/js/commonJS.js index 0f92f81..f1bc642 100644 --- a/src/common/js/commonJS.js +++ b/src/common/js/commonJS.js @@ -243,7 +243,9 @@ export default { str = str.replace(regex, function (match) { // 提取出方括号中的内容,并进行匹配 const content = match.slice(1, match.length - 1); // 去掉方括号 - + // 这个需要程序去判断所以需要告诉我满足哪些条件的标蓝 + // 上标中 只有 * # & 纯数字 纯数字逗号 纯数字逗号和空格 ỻ 标蓝 + // 判断是否符合条件,纯数字、逗号后有空格、连字符 if (/^\d+$/.test(content) || /, ?/.test(content) || /–/.test(content)) { return `${match}`; // 如果符合条件则加上蓝色标签 diff --git a/src/components/common/common.vue b/src/components/common/common.vue index 18adfb4..2993ad4 100644 --- a/src/components/common/common.vue +++ b/src/components/common/common.vue @@ -2,12 +2,12 @@ //记得切换 //正式 -const mediaUrl = '/public/'; -const baseUrl = '/'; +// const mediaUrl = '/public/'; +// const baseUrl = '/'; -// const mediaUrl = 'https://submission.tmrjournals.com/public/'; -// // const mediaUrl = 'http://zmzm.tougao.dev.com/public/'; -// const baseUrl = '/api' +const mediaUrl = 'https://submission.tmrjournals.com/public/'; +// const mediaUrl = 'http://zmzm.tougao.dev.com/public/'; +const baseUrl = '/api' // const mediaUrl = 'http://tougaotest.tmrjournals.com/public/'; // // const mediaUrl = 'http://zmzm.tougao.dev.com/public/'; diff --git a/src/components/page/ReferenceEditor.vue b/src/components/page/ReferenceEditor.vue index b5dc221..62ae9db 100644 --- a/src/components/page/ReferenceEditor.vue +++ b/src/components/page/ReferenceEditor.vue @@ -388,7 +388,7 @@ - +
Abandon and Reimport - Import + Import + +
+ + + + + + + + + +
+

+   We are currently identifying the citation data you uploaded. Please be patient. +

+
+
+ +
@@ -453,6 +491,7 @@ export default { tableData: [], // 临时引用列表 Tempredable: [], + parseVisible: false, editboxVisible: false, helpVisible: false, uploadVisible: true, @@ -591,6 +630,26 @@ export default { // 显示帮助信息 showHelp() { this.helpVisible = true; + }, + handleparse() { + this.linVisible = false; + // setTimeout(() => { + this.getParseData(); + // }, 1000); + }, + // 获取解析数据 + getParseData() { + const loading = this.$loading({ + lock: true, + text: 'Loading...', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + setTimeout(() => {loading.close() + this.parseVisible = true; + }, 2000); + + }, // 导入文本域 importText() {