tijiao
This commit is contained in:
@@ -243,6 +243,8 @@ export default {
|
|||||||
str = str.replace(regex, function (match) {
|
str = str.replace(regex, function (match) {
|
||||||
// 提取出方括号中的内容,并进行匹配
|
// 提取出方括号中的内容,并进行匹配
|
||||||
const content = match.slice(1, match.length - 1); // 去掉方括号
|
const content = match.slice(1, match.length - 1); // 去掉方括号
|
||||||
|
// 这个需要程序去判断所以需要告诉我满足哪些条件的标蓝
|
||||||
|
// 上标中 只有 * # & 纯数字 纯数字逗号 纯数字逗号和空格 ỻ 标蓝
|
||||||
|
|
||||||
// 判断是否符合条件,纯数字、逗号后有空格、连字符
|
// 判断是否符合条件,纯数字、逗号后有空格、连字符
|
||||||
if (/^\d+$/.test(content) || /, ?/.test(content) || /–/.test(content)) {
|
if (/^\d+$/.test(content) || /, ?/.test(content) || /–/.test(content)) {
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
//记得切换
|
//记得切换
|
||||||
|
|
||||||
//正式
|
//正式
|
||||||
const mediaUrl = '/public/';
|
// const mediaUrl = '/public/';
|
||||||
const baseUrl = '/';
|
// const baseUrl = '/';
|
||||||
|
|
||||||
// const mediaUrl = 'https://submission.tmrjournals.com/public/';
|
const mediaUrl = 'https://submission.tmrjournals.com/public/';
|
||||||
// // const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
|
// const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
|
||||||
// const baseUrl = '/api'
|
const baseUrl = '/api'
|
||||||
|
|
||||||
// const mediaUrl = 'http://tougaotest.tmrjournals.com/public/';
|
// const mediaUrl = 'http://tougaotest.tmrjournals.com/public/';
|
||||||
// // const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
|
// // const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
|
||||||
|
|||||||
@@ -388,7 +388,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 临时引用信息 -->
|
<!-- 临时引用信息 -->
|
||||||
<el-dialog title="Reference List" :visible.sync="linVisible" width="800px" :close-on-click-modal="false">
|
<el-dialog title="Reference List" :visible.sync="linVisible" width="1200px" :close-on-click-modal="false">
|
||||||
<div class="refenceCentent mt20" v-if="Tempredable.length > 0">
|
<div class="refenceCentent mt20" v-if="Tempredable.length > 0">
|
||||||
<el-table
|
<el-table
|
||||||
:data="Tempredable"
|
:data="Tempredable"
|
||||||
@@ -419,9 +419,47 @@
|
|||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="abandon">Abandon and Reimport</el-button>
|
<el-button @click="abandon">Abandon and Reimport</el-button>
|
||||||
<el-button type="primary" @click="importText">Import</el-button>
|
<el-button type="primary" @click="handleparse">Import</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<el-dialog title="References" :visible.sync="parseVisible" width="1200px" :close-on-click-modal="false">
|
||||||
|
<div class="refenceCentent mt20" v-if="Tempredable.length > 0">
|
||||||
|
<el-table
|
||||||
|
:data="Tempredable"
|
||||||
|
ref="tempredableTable"
|
||||||
|
max-height="600px"
|
||||||
|
empty-text="New messages (0)"
|
||||||
|
:show-header="false"
|
||||||
|
:stripe="false"
|
||||||
|
:highlight-current-row="false"
|
||||||
|
>
|
||||||
|
<el-table-column type="index" label="No." width="55" align="center"></el-table-column>
|
||||||
|
<el-table-column label="Title" align="left">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<p style="text-align: left">
|
||||||
|
<!-- <el-badge is-dot :hidden="scope.row.author_act==1?false:true" class="item"> -->
|
||||||
|
{{ scope.row.content }} <el-link type="primary">{{ scope.row.doi }}</el-link>
|
||||||
|
<!-- </el-badge> -->
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="Status" align="left" width="55">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="shuoming mt20">
|
||||||
|
<p class="c888">
|
||||||
|
<i class="el-icon-message-solid"></i> We are currently identifying the citation data you uploaded. Please be patient.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="abandon">Abandon and Reimport</el-button>
|
||||||
|
<el-button type="primary" @click="handleparse">Import</el-button>
|
||||||
|
</span> -->
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -453,6 +491,7 @@ export default {
|
|||||||
tableData: [],
|
tableData: [],
|
||||||
// 临时引用列表
|
// 临时引用列表
|
||||||
Tempredable: [],
|
Tempredable: [],
|
||||||
|
parseVisible: false,
|
||||||
editboxVisible: false,
|
editboxVisible: false,
|
||||||
helpVisible: false,
|
helpVisible: false,
|
||||||
uploadVisible: true,
|
uploadVisible: true,
|
||||||
@@ -591,6 +630,26 @@ export default {
|
|||||||
// 显示帮助信息
|
// 显示帮助信息
|
||||||
showHelp() {
|
showHelp() {
|
||||||
this.helpVisible = true;
|
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() {
|
importText() {
|
||||||
|
|||||||
Reference in New Issue
Block a user