参考文献的暂存
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
Special note: If the number of authors is 6 or fewer, all authors should be listed.
|
||||
</div>
|
||||
<el-button
|
||||
v-if="canDelete"
|
||||
@click="StepBNext(1)"
|
||||
type="primary"
|
||||
plain
|
||||
@@ -110,7 +111,7 @@
|
||||
|
||||
<span @click="handleContainerClick" style="margin-left: 5px" v-html="getRepeatRefHtml()"> </span>
|
||||
</div>
|
||||
<div class="topBtnBox btns" v-if="chanFerForm.length > 0 && role == 'editor'">
|
||||
<div class="topBtnBox btns" v-if="chanFerForm.length > 0 && role == 'editor' && canDelete">
|
||||
<el-button type="primary" plain @click="selectAllRef">Select all</el-button>
|
||||
<el-button type="success" plain @click="toggleSelection">Select none</el-button>
|
||||
<el-button type="danger" plain @click="deleteSomeRefs" :disabled="multipleSelection.length > 0 ? false : true"
|
||||
@@ -154,11 +155,10 @@
|
||||
class="status ok"
|
||||
:class="scope.row.refer_type == 'journal' ? getJournalDateno(scope.row.dateno, 'status') : ''"
|
||||
v-if="
|
||||
(
|
||||
(scope.row.refer_type == 'journal' && scope.row.doilink != '' && scope.row.cs == 1) ||
|
||||
(scope.row.refer_type == 'book' && scope.row.isbn != '' && scope.row.cs == 1)
|
||||
) && scope.row.retract == 0
|
||||
"
|
||||
((scope.row.refer_type == 'journal' && scope.row.doilink != '' && scope.row.cs == 1) ||
|
||||
(scope.row.refer_type == 'book' && scope.row.isbn != '' && scope.row.cs == 1)) &&
|
||||
scope.row.retract == 0
|
||||
"
|
||||
>
|
||||
<i class="el-icon-circle-check"></i>
|
||||
</span>
|
||||
@@ -173,7 +173,9 @@
|
||||
<!-- journal 形式 -->
|
||||
<div style="text-align: left" v-if="scope.row.refer_type == 'journal'" class="reference-item">
|
||||
<p>
|
||||
{{ scope.row.author }} <span v-html="formatTitle(scope.row.title)"></span>. <em>{{ scope.row.joura }}</em
|
||||
{{ scope.row.author }} <span v-html="formatTitle(scope.row.title)"></span>. <em>{{
|
||||
scope.row.joura
|
||||
}}</em
|
||||
>. <span :class="getJournalDateno(scope.row.dateno, 'title')">{{ scope.row.dateno }}</span
|
||||
>.<br />
|
||||
</p>
|
||||
@@ -181,13 +183,16 @@
|
||||
</div>
|
||||
<!-- book 形式 -->
|
||||
<div style="text-align: left" v-if="scope.row.refer_type == 'book'" class="reference-item">
|
||||
<p>{{ scope.row.author }} <span v-html="formatTitle(scope.row.title)"></span>. {{ scope.row.dateno }}. <br /></p>
|
||||
<p>
|
||||
{{ scope.row.author }} <span v-html="formatTitle(scope.row.title)"></span>. {{
|
||||
scope.row.dateno
|
||||
}}. <br />
|
||||
</p>
|
||||
<a class="doiLink" :href="scope.row.isbn" target="_blank">{{ scope.row.isbn }}</a>
|
||||
</div>
|
||||
<!-- other 形式 -->
|
||||
<p class="wrongLine reference-item" style="text-align: left" v-if="scope.row.refer_type == 'other'">
|
||||
<span v-html="formatTitle(scope.row.refer_frag)"></span>
|
||||
|
||||
</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -242,7 +247,7 @@
|
||||
</div>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="bottomBtnBox btns" v-if="chanFerForm.length > 0 && role == 'editor'">
|
||||
<div class="bottomBtnBox btns" v-if="chanFerForm.length > 0 && role == 'editor'&& canDelete">
|
||||
<el-button type="primary" plain @click="selectAllRef">Select all</el-button>
|
||||
<el-button type="success" plain @click="toggleSelection">Select none</el-button>
|
||||
<el-button type="danger" plain @click="deleteSomeRefs" :disabled="multipleSelection.length > 0 ? false : true"
|
||||
@@ -546,6 +551,7 @@ export default {
|
||||
},
|
||||
addLoading: false,
|
||||
editboxVisible: false,
|
||||
canDelete: true,
|
||||
multipleSelection: [] // 多选
|
||||
};
|
||||
},
|
||||
@@ -572,18 +578,19 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
formatTitle(title) {
|
||||
if (!title) return '';
|
||||
// 使用正则匹配,'gi' 表示全局匹配且不区分大小写
|
||||
// \b 确保是完整单词匹配,防止误伤含有这些字母的其他单词
|
||||
const reg = /\b(Retracted|Retraction)\b/gi;
|
||||
|
||||
return title.replace(reg, (match) => {
|
||||
return `<span style="color: red; font-weight: bold;">${match}</span>`;
|
||||
});
|
||||
}
|
||||
,
|
||||
getCurrentRoute() {
|
||||
this.canDelete = !['/articleListEditor_B1'].includes(this.$route.path);
|
||||
},
|
||||
formatTitle(title) {
|
||||
if (!title) return '';
|
||||
// 使用正则匹配,'gi' 表示全局匹配且不区分大小写
|
||||
// \b 确保是完整单词匹配,防止误伤含有这些字母的其他单词
|
||||
const reg = /\b(Retracted|Retraction)\b/gi;
|
||||
|
||||
return title.replace(reg, (match) => {
|
||||
return `<span style="color: red; font-weight: bold;">${match}</span>`;
|
||||
});
|
||||
},
|
||||
getJournalDateno(dateno, type) {
|
||||
if (dateno && typeof dateno === 'string') {
|
||||
const hasInvalidColon = !dateno.includes(':') || (dateno.includes(':') && dateno.split(':').pop().trim() === '');
|
||||
@@ -682,7 +689,7 @@ export default {
|
||||
.then((res) => {
|
||||
if (res.status == 1) {
|
||||
return res.data;
|
||||
}
|
||||
}
|
||||
throw res.msg;
|
||||
})
|
||||
.catch((err) => {
|
||||
@@ -697,6 +704,7 @@ export default {
|
||||
return {};
|
||||
},
|
||||
init(e) {
|
||||
this.getCurrentRoute();
|
||||
this.chanFerForm = e;
|
||||
this.bijiao();
|
||||
////console.log('更新更新')
|
||||
|
||||
Reference in New Issue
Block a user