|
@@ -42,6 +42,7 @@ const keywordsEditor = ref<HTMLInputElement | null>(null);
|
|
|
const keywordsEditing = ref(false);
|
|
const keywordsEditing = ref(false);
|
|
|
|
|
|
|
|
const repetitiveWarning = ref(false);
|
|
const repetitiveWarning = ref(false);
|
|
|
|
|
+const LowRepetitionRate = ref(false);
|
|
|
|
|
|
|
|
const fullTitle = ref('');
|
|
const fullTitle = ref('');
|
|
|
// 参考文献抽屉组件ref
|
|
// 参考文献抽屉组件ref
|
|
@@ -140,6 +141,8 @@ function onSectionRecordUse(sectionId: number) {
|
|
|
|
|
|
|
|
function notifyRepetitiveWarning(data: boolean) {
|
|
function notifyRepetitiveWarning(data: boolean) {
|
|
|
repetitiveWarning.value = data;
|
|
repetitiveWarning.value = data;
|
|
|
|
|
+ LowRepetitionRate.value = false
|
|
|
|
|
+ if(!data&&props.data.content) LowRepetitionRate.value = !data;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function test1() {
|
|
function test1() {
|
|
@@ -203,7 +206,7 @@ defineExpose({
|
|
|
</a-dropdown>
|
|
</a-dropdown>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
- <p v-if="contentEditorVisible" :class="{ 'repetitiveWarning': repetitiveWarning }">
|
|
|
|
|
|
|
+ <p v-if="contentEditorVisible" :class="`${repetitiveWarning?'repetitiveWarning':LowRepetitionRate?'LowRepetitionRate':''}`">
|
|
|
<ContentEditor :data="data.content || ''" @change="onContentChange" ref="contentEditor" />
|
|
<ContentEditor :data="data.content || ''" @change="onContentChange" ref="contentEditor" />
|
|
|
</p>
|
|
</p>
|
|
|
<div class="chapter-button-group" v-if="contentEditorVisible">
|
|
<div class="chapter-button-group" v-if="contentEditorVisible">
|
|
@@ -254,5 +257,9 @@ defineExpose({
|
|
|
border: 1px solid red;
|
|
border: 1px solid red;
|
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
|
}
|
|
}
|
|
|
|
|
+ .LowRepetitionRate {
|
|
|
|
|
+ border: 1px solid green;
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|