This commit is contained in:
2026-04-10 09:12:40 +08:00
parent 9c44064f51
commit 797ca258f8
9 changed files with 285 additions and 25 deletions

View File

@@ -138,6 +138,7 @@
ref="editPublicRefTableOnly"
:chanFerForm="chanFerForm"
:chanFerFormRepeatList="chanFerFormRepeatList"
:citeOrderFromParent="articleCiteIdOrder"
:ref-order-follows-body="true"
:p_article_id="p_article_id"
@ChanFerMashUp="ChanFerMashUp"
@@ -558,6 +559,16 @@
</el-table-column>
<el-table-column :label="$t('wordCite.reference')">
<template slot-scope="scope">
<el-tag
v-if="isUncitedReference(scope.row)"
class="uncited-tag"
size="mini"
type="info"
effect="plain"
style="margin: 0 8px 6px 0"
>
{{ $t('wordCite.uncited') }}
</el-tag>
<!-- journal 形式 -->
<div style="text-align: left" v-if="scope.row.refer_type == 'journal'" class="reference-item">
<p>
@@ -1163,6 +1174,13 @@ export default {
},
methods: {
isUncitedReference(row) {
const id = row && row.p_refer_id != null ? String(row.p_refer_id) : '';
if (!id) return false;
const order = Array.isArray(this.articleCiteIdOrder) ? this.articleCiteIdOrder.map(String) : [];
if (!order.length) return false;
return !order.includes(id);
},
/** 参考文献:刷新(供编辑/新增/删除后更新选择器列表) */
changeRefer() {
return this.fetchReferList();
@@ -3992,6 +4010,12 @@ export default {
cursor: pointer;
}
::v-deep .uncited-tag.el-tag {
background-color: #f56c6c !important;
border-color: #f56c6c !important;
color: #fff !important;
}
.type_CHar {
position: relative;
border-left: 4px solid rgba(0 102 153 / 20%);