|
@@ -1,8 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<el-dialog
|
|
<el-dialog
|
|
:visible="visible"
|
|
:visible="visible"
|
|
- width="400px"
|
|
|
|
- top="38vh"
|
|
|
|
|
|
+ width="550px"
|
|
|
|
+ top="20vh"
|
|
:show-close="false"
|
|
:show-close="false"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
@close="dialogClose"
|
|
@close="dialogClose"
|
|
@@ -36,6 +36,14 @@
|
|
<span class="content-text" :style="dataContent.activeTextStyle">{{ dataContent.text }}</span>
|
|
<span class="content-text" :style="dataContent.activeTextStyle">{{ dataContent.text }}</span>
|
|
<el-input v-model="numberPinyin" autocomplete="off" placeholder="请输入正确的拼音" @blur="convertTonePinyin" />
|
|
<el-input v-model="numberPinyin" autocomplete="off" placeholder="请输入正确的拼音" @blur="convertTonePinyin" />
|
|
<span class="tips">一到四声分别用数字1-4表示,轻声用0表示,拼音间用空格隔开。</span>
|
|
<span class="tips">一到四声分别用数字1-4表示,轻声用0表示,拼音间用空格隔开。</span>
|
|
|
|
+ <RichText
|
|
|
|
+ v-model="dataContent.note"
|
|
|
|
+ toolbar="fontselect fontsizeselect forecolor backcolor|underline|bold italic strikethrough alignleft aligncenter alignright"
|
|
|
|
+ :wordlimit-num="false"
|
|
|
|
+ :height="200"
|
|
|
|
+ placeholder="输入注释"
|
|
|
|
+ page-from="audit"
|
|
|
|
+ />
|
|
<template slot="footer">
|
|
<template slot="footer">
|
|
<el-button size="medium" @click="dialogClose">取消</el-button>
|
|
<el-button size="medium" @click="dialogClose">取消</el-button>
|
|
<el-button type="primary" size="medium" @click="confirm">保存</el-button>
|
|
<el-button type="primary" size="medium" @click="confirm">保存</el-button>
|
|
@@ -45,10 +53,14 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { addTone, handleToneValue } from '@/utils/common';
|
|
import { addTone, handleToneValue } from '@/utils/common';
|
|
|
|
+import RichText from '@/components/RichText.vue';
|
|
import _ from 'lodash';
|
|
import _ from 'lodash';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'CorrectPinyin',
|
|
name: 'CorrectPinyin',
|
|
|
|
+ components: {
|
|
|
|
+ RichText,
|
|
|
|
+ },
|
|
props: {
|
|
props: {
|
|
visible: {
|
|
visible: {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
@@ -104,7 +116,7 @@ export default {
|
|
top: 0,
|
|
top: 0,
|
|
left: 0,
|
|
left: 0,
|
|
},
|
|
},
|
|
- dataContent: { activeTextStyle: {} },
|
|
|
|
|
|
+ dataContent: { activeTextStyle: {}, note: {} },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -144,6 +156,13 @@ export default {
|
|
this.numberPinyin = '';
|
|
this.numberPinyin = '';
|
|
},
|
|
},
|
|
confirm() {
|
|
confirm() {
|
|
|
|
+ if (this.dataContent.note) {
|
|
|
|
+ this.$set(this.dataContent.activeTextStyle, 'backgroundColor', '#fff3b7');
|
|
|
|
+ this.$set(this.dataContent.activeTextStyle, 'cursor', 'pointer');
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(this.dataContent.activeTextStyle, 'backgroundColor', '');
|
|
|
|
+ this.$set(this.dataContent.activeTextStyle, 'cursor', 'text');
|
|
|
|
+ }
|
|
this.$emit('update:visible', false);
|
|
this.$emit('update:visible', false);
|
|
this.$emit('fillTonePinyin', this.dataContent);
|
|
this.$emit('fillTonePinyin', this.dataContent);
|
|
this.numberPinyin = '';
|
|
this.numberPinyin = '';
|
|
@@ -208,7 +227,7 @@ export default {
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
row-gap: 8px;
|
|
row-gap: 8px;
|
|
align-items: center;
|
|
align-items: center;
|
|
- padding: 24px;
|
|
|
|
|
|
+ padding-bottom: 10px;
|
|
|
|
|
|
.tone-pinyin {
|
|
.tone-pinyin {
|
|
font-family: 'League';
|
|
font-family: 'League';
|
|
@@ -221,10 +240,15 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.tips {
|
|
.tips {
|
|
|
|
+ width: 100%;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
color: #a0a0a0;
|
|
color: #a0a0a0;
|
|
text-align: left;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .rich-wrapper {
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
:deep &__footer {
|
|
:deep &__footer {
|