mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 22:22:49 +00:00
no message
This commit is contained in:
parent
96be2a86ca
commit
277a751ed4
@ -208,7 +208,7 @@
|
|||||||
<div class="convert-box">
|
<div class="convert-box">
|
||||||
<div class="convert-body">
|
<div class="convert-body">
|
||||||
<div class="convert-content">
|
<div class="convert-content">
|
||||||
<div class="convert-setting">
|
<div v-if="recordConvertSetting" class="convert-setting">
|
||||||
<i class="taskfont" :class="{active: !!cacheTranscriptionLanguage}" @click="convertSetting('transcription', $event)"></i>
|
<i class="taskfont" :class="{active: !!cacheTranscriptionLanguage}" @click="convertSetting('transcription', $event)"></i>
|
||||||
<i class="taskfont" :class="{active: !!recordConvertTranslate}" @click="convertSetting('translate', $event)"></i>
|
<i class="taskfont" :class="{active: !!recordConvertTranslate}" @click="convertSetting('translate', $event)"></i>
|
||||||
</div>
|
</div>
|
||||||
@ -389,9 +389,10 @@ export default {
|
|||||||
|
|
||||||
recordConvertIng: false,
|
recordConvertIng: false,
|
||||||
recordConvertFocus: false,
|
recordConvertFocus: false,
|
||||||
recordConvertStatus: 0, // 0: 转换中 1: 转换成功 2: 转换失败
|
recordConvertSetting: false, // 是否显示转换设置
|
||||||
recordConvertResult: '',
|
recordConvertStatus: 0, // 0: 转换中, 1: 转换成功, 2: 转换失败
|
||||||
recordConvertTranslate: '', // 转换之后翻译语言
|
recordConvertResult: '', // 转换结果
|
||||||
|
recordConvertTranslate: '', // 转换结果翻译语言
|
||||||
|
|
||||||
touchStart: {},
|
touchStart: {},
|
||||||
touchFocus: false,
|
touchFocus: false,
|
||||||
@ -853,6 +854,8 @@ export default {
|
|||||||
recordConvertIng(show) {
|
recordConvertIng(show) {
|
||||||
if (show) {
|
if (show) {
|
||||||
this.recordIndex = ++window.modalTransferIndex
|
this.recordIndex = ++window.modalTransferIndex
|
||||||
|
} else {
|
||||||
|
this.recordConvertSetting = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1440,8 +1443,14 @@ export default {
|
|||||||
},
|
},
|
||||||
method: 'post',
|
method: 'post',
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.recordConvertStatus = data ? 1 : 2
|
if (data) {
|
||||||
this.recordConvertResult = data || this.$L('转文字失败')
|
this.recordConvertStatus = 1
|
||||||
|
this.recordConvertResult = data
|
||||||
|
this.recordConvertSetting = true
|
||||||
|
} else {
|
||||||
|
this.recordConvertStatus = 2
|
||||||
|
this.recordConvertResult = this.$L('转文字失败')
|
||||||
|
}
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.recordConvertStatus = 2
|
this.recordConvertStatus = 2
|
||||||
this.recordConvertResult = msg
|
this.recordConvertResult = msg
|
||||||
@ -1452,7 +1461,7 @@ export default {
|
|||||||
|
|
||||||
async convertSetting(type, event) {
|
async convertSetting(type, event) {
|
||||||
if (this.recordConvertStatus !== 1) {
|
if (this.recordConvertStatus !== 1) {
|
||||||
$A.messageWarning("正在识别中,请稍后")
|
$A.messageWarning("请稍后再试...")
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await this.$nextTick()
|
await this.$nextTick()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user