|
@@ -103,6 +103,12 @@
|
|
|
>
|
|
|
<span>已有字幕时间节点</span>
|
|
|
<el-button type="text" @click="againWordTime">重新生成</el-button>
|
|
|
+ <el-button @click="compareTime('句子')" size="medium"
|
|
|
+ >校对句子字幕时间</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="compareTime('文字')" size="medium"
|
|
|
+ >校对文字字幕时间</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
<template v-else>
|
|
|
<el-button v-if="!isWordTime" size="medium" @click="createWordTime"
|
|
@@ -122,6 +128,24 @@
|
|
|
<el-button type="primary" @click="saveTimeList">保 存</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="校对字母时间"
|
|
|
+ :visible.sync="compareShow"
|
|
|
+ width="50%"
|
|
|
+ :before-close="handleClose"
|
|
|
+ >
|
|
|
+ <CompareTime
|
|
|
+ :data="compareData"
|
|
|
+ :type="compareType"
|
|
|
+ :changewordsResultList="changewordsResultList"
|
|
|
+ />
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="handleClose">取 消</el-button>
|
|
|
+ <el-button :loading="compareloading" type="primary" @click="saveCompare"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -132,6 +156,7 @@ import {
|
|
|
createPinyin,
|
|
|
prepareTranscribe,
|
|
|
getWordTime,
|
|
|
+ compareSenTenceTime,
|
|
|
} from "@/api/ajax";
|
|
|
const Base64 = require("js-base64").Base64;
|
|
|
import Upload from "../../common/Upload.vue";
|
|
@@ -141,6 +166,7 @@ import Paragraph from "./components/ParagraphChs.vue";
|
|
|
import Clauseresult from "./components/ClauseresultChs.vue";
|
|
|
import Segbyword from "./components/SegbywordChs.vue";
|
|
|
import Createtimelist from "./components/CreatetimelistChs.vue";
|
|
|
+import CompareTime from "./components/CompareTime.vue";
|
|
|
|
|
|
export default {
|
|
|
name: "ArticleTemChs",
|
|
@@ -152,6 +178,7 @@ export default {
|
|
|
Clauseresult,
|
|
|
Segbyword,
|
|
|
Createtimelist,
|
|
|
+ CompareTime,
|
|
|
},
|
|
|
props: ["curQue", "changeCurQue", "tmIndex"],
|
|
|
data() {
|
|
@@ -180,15 +207,47 @@ export default {
|
|
|
detail: [],
|
|
|
wordTime: [],
|
|
|
taskId: "",
|
|
|
+ checkList: [1, 2, 3],
|
|
|
},
|
|
|
isWordTime: false,
|
|
|
- checkList: [1, 2, 3],
|
|
|
+ compareType: "", //校对类型
|
|
|
+ compareShow: false,
|
|
|
+ compareData: null,
|
|
|
+ compareloading: false,
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
watch: {},
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
+ // 保存校对
|
|
|
+ saveCompare() {
|
|
|
+ this.compareloading = true;
|
|
|
+ compareSenTenceTime({ matchList: JSON.stringify(this.compareData) }).then(
|
|
|
+ (res) => {
|
|
|
+ console.log(res);
|
|
|
+ this.compareloading = false;
|
|
|
+ this.curQue.wordTime = res.data.result;
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
+ // 校对时间
|
|
|
+ compareTime(type) {
|
|
|
+ this.compareType = type;
|
|
|
+ this.compareData = JSON.parse(JSON.stringify(this.curQue.wordTime));
|
|
|
+ this.compareShow = true;
|
|
|
+ },
|
|
|
+ handleClose() {
|
|
|
+ this.compareShow = false;
|
|
|
+ this.compareData = null;
|
|
|
+ this.compareType = "";
|
|
|
+ },
|
|
|
+ // 校对每个字的时间
|
|
|
+ changewordsResultList(index, item) {
|
|
|
+ this.curQue.wordTime[index].wordsResultList = JSON.parse(
|
|
|
+ JSON.stringify(item)
|
|
|
+ );
|
|
|
+ },
|
|
|
changeMp3(fileList) {
|
|
|
const articleImgList = JSON.parse(JSON.stringify(fileList));
|
|
|
const articleImgRes = [];
|