diff --git a/src/components/page/articleDetailEditor.vue b/src/components/page/articleDetailEditor.vue index e8ba535..bc01b43 100644 --- a/src/components/page/articleDetailEditor.vue +++ b/src/components/page/articleDetailEditor.vue @@ -594,11 +594,11 @@
-

+

{{ this.$t('aiReview.state18') }} : {{ currentArticleData.ai_review['create_time'] }} - {{ `${i + 1}. ${v.topic} : ` }} + {{ `${i + 1}. ${v.topic} : ` }}

- {{ currentArticleData.ai_review[item.value] }} + + + {{ currentArticleData.ai_review[item.explanationValue] }} @@ -635,7 +641,20 @@
-
{{ currentArticleData.ai_review[v.value] }}
+
+ + + + + + + + +
{{ $t('aiReview.Explain') }} : {{ 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() { diff --git a/src/components/page/articleListEditor_A.vue b/src/components/page/articleListEditor_A.vue index 47fd5a6..e39f846 100644 --- a/src/components/page/articleListEditor_A.vue +++ b/src/components/page/articleListEditor_A.vue @@ -1368,11 +1368,11 @@
-

+

{{ this.$t('aiReview.state18') }} : {{ currentArticleData.ai_review['create_time'] }}

- {{ currentArticleData.ai_review[item.value] }} + + {{ currentArticleData.ai_review[item.explanationValue] }} @@ -1409,10 +1414,18 @@
-
{{ currentArticleData.ai_review[v.value] }}
+
+ + +
- {{ $t('aiReview.Explain') }} : {{ currentArticleData.ai_review[v.explanationValue] }} +

{{ $t('aiReview.Explain') }} : {{ currentArticleData.ai_review[v.explanationValue].repeat(20) }}

+ +
@@ -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; + }