|
@@ -29,7 +29,12 @@
|
|
</div>
|
|
</div>
|
|
<div class="item-con">
|
|
<div class="item-con">
|
|
<label>拼音</label>
|
|
<label>拼音</label>
|
|
- <el-input class="pinyin" v-model="data.right.pinyin" placeholder="输入"></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ class="pinyin"
|
|
|
|
+ v-model="data.right.pinyin"
|
|
|
|
+ placeholder="输入"
|
|
|
|
+ @change="handleChangePinyin"
|
|
|
|
+ ></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="item-con">
|
|
<div class="item-con">
|
|
<label>词性</label>
|
|
<label>词性</label>
|
|
@@ -337,6 +342,21 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 更改拼音
|
|
|
|
+ handleChangePinyin() {
|
|
|
|
+ let pinyin = this.data.right.pinyin.trim().split(' ').join(',');
|
|
|
|
+ let MethodName = 'tool-PinyinToVoiceFile';
|
|
|
|
+ if (this.data.right.pinyin.trim()) {
|
|
|
|
+ let datas = {
|
|
|
|
+ pinyin: pinyin,
|
|
|
|
+ };
|
|
|
|
+ getLogin(MethodName, datas).then((res) => {
|
|
|
|
+ if (res.status === 1) {
|
|
|
|
+ this.data.right.audio_file = res.file_id;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 翻面
|
|
// 翻面
|
|
changeShowLeft() {
|
|
changeShowLeft() {
|
|
this.$emit('changeShowLeft');
|
|
this.$emit('changeShowLeft');
|