This commit is contained in:
2025-07-10 13:27:38 +08:00
parent 2765edb0de
commit eb2e2a4bf5
2 changed files with 207 additions and 118 deletions

View File

@@ -594,11 +594,11 @@
</el-collapse>
<div style="line-height: 20px" v-if="isShowAI">
<p class="beautiful-gradient1">
<!-- <p class="beautiful-gradient1">
<span class="title" style="font-size: 18px; font-weight: 700">{{ $t('aiReview.state17') }}</span>
<span style="margin-top: 8px; display: block">{{ currentArticleData.ai_review['overall_evaluation'] }}</span>
</p>
</p> -->
<p style="overflow: hidden; margin-bottom: 8px">
<span style="float: right; color: #3830b9; margin-right: 8px"
>{{ this.$t('aiReview.state18') }} : {{ currentArticleData.ai_review['create_time'] }}</span
@@ -613,7 +613,7 @@
<el-form label-width="240">
<el-form-item label="``" v-for="(v, i) in aiReview">
<span slot="label" class="title" :style="v.color ? `color:${v.color}` : ''">
{{ `${i + 1}. ${v.topic} : ` }}
{{ `${i + 1}. ${v.topic} : ` }}
</span>
<div style="">
<div
@@ -626,7 +626,13 @@
</span>
<div style="">
<div style="color: #333">
{{ currentArticleData.ai_review[item.value] }}
<template v-if="item.isShowSign==1">
{{ currentArticleData.ai_review[item.value] }}
</template>
<template v-else>
{{ currentArticleData.ai_review[item.value] }}
</template>
<span v-if="item.explanationValue">
{{ currentArticleData.ai_review[item.explanationValue] }}
@@ -635,7 +641,20 @@
</div>
</div>
</div>
<div style="color: #333" v-else>{{ currentArticleData.ai_review[v.value] }}</div>
<div style="color: #333" v-else>
<template v-if="v.isShowSign==1">
{{ currentArticleData.ai_review[v.value] }}
</template>
<template v-else>
{{ currentArticleData.ai_review[v.value] }}
</template>
</div>
<div style="color: #888; line-height: 22px" v-if="v.explanationValue">
<span>{{ $t('aiReview.Explain') }} : </span> {{ currentArticleData.ai_review[v.explanationValue] }}
@@ -783,116 +802,126 @@ export default {
journalId: [{ required: true, message: 'Please select the name of the journal to be forwarded to' }]
},
aiReview: [
//1
{
topic: this.$t('aiReview.state0'),
value: 'journal_scope_assessment',
explanationValue: 'journal_scope_explanation'
},
{
topic: this.$t('aiReview.state2'),
value: 'attribute_assessment',
explanationValue: 'attribute_explanation'
},
{
topic: this.$t('aiReview.state4'),
value: 'contradiction_assessment',
explanationValue: 'contradiction_explanation'
},
{
topic: this.$t('aiReview.state6'),
value: 'unreasonable_assessment',
explanationValue: 'unreasonable_explanation'
},
{
topic: this.$t('aiReview.state8'),
value: 'ethics_assessment',
explanationValue: '',
parameter: [
{
topic: this.$t('aiReview.state8'),
value: 'ethics_assessment',
explanationValue: 'ethics_explanation'
},
{
topic: this.$t('aiReview.state20'),
value: 'registration_assessment',
explanationValue: ''
}
]
},
{
topic: this.$t('aiReview.state10'),
value: 'academic_assessment',
explanationValue: 'academic_explanation'
},
{
topic: this.$t('aiReview.state12'),
value: 'conclusion_assessment',
explanationValue: 'conclusion_explanation'
},
{
topic: this.$t('aiReview.state14'),
value: 'fund_number',
explanationValue: ''
},
{
topic: this.$t('aiReview.state15'),
value: 'hotspot',
explanationValue: ''
},
explanationValue: 'journal_scope_explanation',
isShowSign:1
},//10
{
topic: this.$t('aiReview.state16'),
value: 'submit_direction',
explanationValue: ''
explanationValue: '',isShowSign:0
},
//3
{
topic: this.$t('aiReview.state4'),
value: 'contradiction_assessment',
explanationValue: 'contradiction_explanation',isShowSign:1
},
//4
{
topic: this.$t('aiReview.state6'),
value: 'unreasonable_assessment',
explanationValue: 'unreasonable_explanation',isShowSign:1
},
//6
{
topic: this.$t('aiReview.state10'),
value: 'academic_assessment',
explanationValue: 'academic_explanation',isShowSign:1
},
//8
{
topic: this.$t('aiReview.state14'),
value: 'fund_number',
explanationValue: '',isShowSign:0
},
//9
{
topic: this.$t('aiReview.state15'),
value: 'hotspot',
explanationValue: '',isShowSign:0
},
//11
// {
// topic: this.$t('aiReview.state17'),
// value: 'overall_evaluation',
// explanationValue: ''
// },
//2
{
topic: this.$t('aiReview.state2'),
value: 'attribute_assessment',
explanationValue: 'attribute_explanation',isShowSign:1
},
//5
{
topic: this.$t('aiReview.state8'),
value: 'ethics_assessment',
explanationValue: '',isShowSign:0,
parameter: [
{
topic: this.$t('aiReview.state8'),
value: 'ethics_assessment',
explanationValue: 'ethics_explanation',isShowSign:1
},
{
topic: this.$t('aiReview.state20'),
value: 'registration_assessment',
explanationValue: '',isShowSign:0
}
]
},
//7
{
topic: this.$t('aiReview.state12'),
value: 'conclusion_assessment',
explanationValue: 'conclusion_explanation',isShowSign:1
},
//12
{
topic: this.$t('aiReview.state19'),
value: 'create_time',
explanationValue: '',
color: 'rgb(0, 112, 192)',
color: 'rgb(0, 112, 192)',isShowSign:0,
parameter: [
{
topic: this.$t('aiReview.state191'),
value: 'references_past_three',
explanationValue: '',
color: 'rgb(0, 112, 192)'
color: 'rgb(0, 112, 192)',isShowSign:0
},
{
topic: this.$t('aiReview.state192'),
value: 'references_past_five',
explanationValue: '',
color: 'rgb(0, 112, 192)'
color: 'rgb(0, 112, 192)',isShowSign:0
},
{
topic: this.$t('aiReview.state193'),
value: 'references_ratio_JCR1',
explanationValue: '',
color: 'rgb(0, 112, 192)'
color: 'rgb(0, 112, 192)',isShowSign:0
},
{
topic: this.$t('aiReview.state194'),
value: 'references_ratio_JCR2',
explanationValue: '',
color: 'rgb(0, 112, 192)'
color: 'rgb(0, 112, 192)',isShowSign:0
}
]
},
//13
{
topic: this.$t('aiReview.state21'),
value: 'cite_rate',
explanationValue: ''
explanationValue: '',isShowSign:0
}
// {
@@ -900,7 +929,7 @@ export default {
// value: 'create_time',
// explanationValue: ''
// }
]
],
};
},
async created() {

View File

@@ -1368,11 +1368,11 @@
</el-collapse>
<div style="line-height: 20px" v-if="isShowAI">
<p class="beautiful-gradient1">
<!-- <p class="beautiful-gradient1">
<span class="title" style="font-size: 18px; font-weight: 700">{{ $t('aiReview.state17') }}</span>
<span style="margin-top: 8px; display: block">{{ currentArticleData.ai_review['overall_evaluation'] }}</span>
</p>
</p> -->
<p style="overflow: hidden; margin-bottom: 8px">
<span style="float: right; color: #3830b9; margin-right: 8px"
>{{ this.$t('aiReview.state18') }} : {{ currentArticleData.ai_review['create_time'] }}</span
@@ -1400,7 +1400,12 @@
</span>
<div style="">
<div style="color: #333">
{{ currentArticleData.ai_review[item.value] }}
<template v-if="item.isShowSign == 1">
【{{ currentArticleData.ai_review[item.value] }}】
</template>
<template v-else>
{{ currentArticleData.ai_review[item.value] }}
</template>
<span v-if="item.explanationValue">
{{ currentArticleData.ai_review[item.explanationValue] }}
@@ -1409,10 +1414,18 @@
</div>
</div>
</div>
<div style="color: #333" v-else>{{ currentArticleData.ai_review[v.value] }}</div>
<div style="color: #333" v-else>
<template v-if="v.isShowSign == 1"> 【{{ currentArticleData.ai_review[v.value] }}】 </template>
<template v-else>
<p :class="{'short-content': !v.showFullContent}" @click="toggleContent1(i)" style="margin-top: 0;cursor: pointer;">{{ currentArticleData.ai_review[v.value].repeat(20) }}</p>
</template>
</div>
<div style="color: #888; line-height: 22px" v-if="v.explanationValue">
<span>{{ $t('aiReview.Explain') }} : </span> {{ currentArticleData.ai_review[v.explanationValue] }}
<p :class="{'short-content': !v.showFullContent}" @click="toggleContent1(i)" style="margin-top: 0;cursor: pointer;"> <span>{{ $t('aiReview.Explain') }} : </span> {{ currentArticleData.ai_review[v.explanationValue].repeat(20) }}</p>
</div>
</div>
</el-form-item>
@@ -1466,6 +1479,7 @@ export default {
props: ['journals'],
data() {
return {
showFullContent:false,
majorValueList: [],
majorBox: false,
majorMes: {},
@@ -1622,46 +1636,75 @@ export default {
{
topic: this.$t('aiReview.state0'),
value: 'journal_scope_assessment',
explanationValue: 'journal_scope_explanation'
explanationValue: 'journal_scope_explanation',
isShowSign: 1
},
{
topic: this.$t('aiReview.state8'),
value: 'ethics_assessment',
explanationValue: '',
isShowSign: 0,
parameter: [
{
topic: this.$t('aiReview.state8'),
value: 'ethics_assessment',
explanationValue: 'ethics_explanation',
isShowSign: 1
},
{
topic: this.$t('aiReview.state20'),
value: 'registration_assessment',
explanationValue: '',
isShowSign: 0
}
]
},
{
topic: this.$t('aiReview.state16'),
value: 'submit_direction',
explanationValue: '',
isShowSign: 0
},
{
topic: this.$t('aiReview.state15'),
value: 'hotspot',
explanationValue: '',
isShowSign: 0
},
//10
//3
{
topic: this.$t('aiReview.state4'),
value: 'contradiction_assessment',
explanationValue: 'contradiction_explanation'
explanationValue: 'contradiction_explanation',
isShowSign: 1
},
//4
{
topic: this.$t('aiReview.state6'),
value: 'unreasonable_assessment',
explanationValue: 'unreasonable_explanation'
explanationValue: 'unreasonable_explanation',
isShowSign: 1
},
//6
{
topic: this.$t('aiReview.state10'),
value: 'academic_assessment',
explanationValue: 'academic_explanation'
explanationValue: 'academic_explanation',
isShowSign: 1
},
//8
{
topic: this.$t('aiReview.state14'),
value: 'fund_number',
explanationValue: ''
explanationValue: '',
isShowSign: 0
},
//9
{
topic: this.$t('aiReview.state15'),
value: 'hotspot',
explanationValue: ''
},
//10
{
topic: this.$t('aiReview.state16'),
value: 'submit_direction',
explanationValue: ''
},
//11
// {
// topic: this.$t('aiReview.state17'),
@@ -1673,31 +1716,17 @@ export default {
{
topic: this.$t('aiReview.state2'),
value: 'attribute_assessment',
explanationValue: 'attribute_explanation'
explanationValue: 'attribute_explanation',
isShowSign: 1
},
//5
{
topic: this.$t('aiReview.state8'),
value: 'ethics_assessment',
explanationValue: '',
parameter: [
{
topic: this.$t('aiReview.state8'),
value: 'ethics_assessment',
explanationValue: 'ethics_explanation'
},
{
topic: this.$t('aiReview.state20'),
value: 'registration_assessment',
explanationValue: ''
}
]
},
//7
{
topic: this.$t('aiReview.state12'),
value: 'conclusion_assessment',
explanationValue: 'conclusion_explanation'
explanationValue: 'conclusion_explanation',
isShowSign: 1
},
//12
{
@@ -1705,30 +1734,35 @@ export default {
value: 'create_time',
explanationValue: '',
color: 'rgb(0, 112, 192)',
isShowSign: 0,
parameter: [
{
topic: this.$t('aiReview.state191'),
value: 'references_past_three',
explanationValue: '',
color: 'rgb(0, 112, 192)'
color: 'rgb(0, 112, 192)',
isShowSign: 0
},
{
topic: this.$t('aiReview.state192'),
value: 'references_past_five',
explanationValue: '',
color: 'rgb(0, 112, 192)'
color: 'rgb(0, 112, 192)',
isShowSign: 0
},
{
topic: this.$t('aiReview.state193'),
value: 'references_ratio_JCR1',
explanationValue: '',
color: 'rgb(0, 112, 192)'
color: 'rgb(0, 112, 192)',
isShowSign: 0
},
{
topic: this.$t('aiReview.state194'),
value: 'references_ratio_JCR2',
explanationValue: '',
color: 'rgb(0, 112, 192)'
color: 'rgb(0, 112, 192)',
isShowSign: 0
}
]
},
@@ -1736,7 +1770,8 @@ export default {
{
topic: this.$t('aiReview.state21'),
value: 'cite_rate',
explanationValue: ''
explanationValue: '',
isShowSign: 0
}
// {
@@ -1760,6 +1795,10 @@ export default {
}
},
methods: {
toggleContent1(i) {
this.aiReview[i].showFullContent = !this.aiReview[i].showFullContent;
this.$forceUpdate()
},
saveMajor() {
this.$api
.post('api/Article/updateArticleField', {
@@ -3384,4 +3423,25 @@ export default {
transition: transform 0.3s ease, box-shadow 0.3s ease;
border-radius: 30px;
}
.short-content {
max-height: 80px;display: -webkit-box;
-webkit-line-clamp: 2; /* 设置显示的行数 */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
overflow: hidden;
}
.show-more-btn {
background-color: #4CAF50;
color: white;
padding: 10px;
border: none;
cursor: pointer;
margin-top: 10px;
}
.show-more-btn:hover {
background-color: #45a049;
}
</style>