<!--  -->
<template>
  <div
    class="NPC-Book-Article Big-Book-Maxwidth"
    v-if="curQue"
    v-loading="loading"
  >
    <div class="Big-Book-img">
      <UploadArt
        :change-fill-id="changeImage"
        :datafile-list="fileCon.img_list"
        upload-type="image"
        class="article_pdf"
        :filleNumber="imageNumber"
      />
      <ul
        class="uploadArt_list"
        v-if="curQue.img_list && curQue.img_list.length > 0"
      >
        <li
          v-for="(artItem, artIndex) in curQue.img_list"
          :key="'articleImgList' + artIndex"
        >
          <img :src="artItem.url" style="width: 26px" />
          <span class="art_name">{{ artItem.name }}</span>
          <p>
            图片放到第<el-input
              class="imgNumber"
              type="number"
              v-model="artItem.imgNumber"
              size="mini"
              @input="forceUpdate"
            ></el-input
            >段落的后面
          </p>
          <img
            src="@/assets/adult/del-close.png"
            class="del-close"
            @click="delImage(artIndex)"
          />
        </li>
      </ul>
    </div>
    <div class="Big-Book-mp3">
      <Upload
        type="mp3"
        :changeFillId="changeMp3"
        :datafileList="fileCon.mp3_list"
        :filleNumber="mp3Number"
        :uploadType="'mp3'"
      />
    </div>
    <div class="NPC-Book-article">
      <ArticleChs
        :curQue="curQue"
        :isPara="isPara"
        :changeIsPara="changeIsPara"
      />
    </div>
    <div class="NPC-Book-Paragraph" v-if="isPara">
      <Paragraph :curQue="curQue" :isClause="isClause" :sureSeg="sureSeg" />
    </div>
    <!-- <div class="NPC-Book-model">
      <span class="Big-Book-left-text">模式：</span>
      <el-radio-group v-model="curQue.model">
        <el-radio :label="1">词模式</el-radio>
        <el-radio :label="2">字模式</el-radio>
      </el-radio-group>
    </div> -->
    <!---上传rlc文件-->
    <div class="NPC-Book-Paragraph" v-if="isClause">
      <el-button
        type="warning"
        size="small"
        @click="uploadLRC"
        v-if="curQue.detail[0].timeList.length == 0"
        >上传lrc文件</el-button
      >
      <div v-else class="lrc-box">
        <span>已有字幕时间节点</span>
        <el-button type="text" @click="editTimeList">去编辑</el-button>
      </div>
    </div>
    <!---分句-->
    <div class="NPC-Book-Paragraph" v-if="isClause">
      <Clauseresult :curQue="curQue" :segByWord="segByWord" />
    </div>
    <!---分词-->
    <div class="NPC-Book-Word" v-if="isByWord">
      <Segbyword :curQue="curQue" :paraIndex="paraIndex" :segList="segList" />
    </div>
    <el-dialog title="段落分句字幕打点" :visible.sync="cTVisible" width="30%">
      <Createtimelist ref="createtimelist" :curQue="curQue" />
      <span slot="footer" class="dialog-footer">
        <el-button @click="cTVisible = false">取 消</el-button>
        <el-button type="primary" @click="saveTimeList">保 存</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import { segSentences, BatchSegContent, createPinyin } from "@/api/ajax";
const Base64 = require("js-base64").Base64;
import Upload from "../../common/Upload.vue";
import UploadArt from "../../common/UploadArt.vue";
import ArticleChs from "./components/ArticleChs.vue";
import Paragraph from "./components/ParagraphChs.vue";
import Clauseresult from "./components/ClauseresultChs.vue";
import Segbyword from "./components/SegbywordChs.vue";
import Createtimelist from "./components/CreatetimelistChs.vue";

export default {
  name: "ArticleTemChs",
  components: {
    Upload,
    UploadArt,
    ArticleChs,
    Paragraph,
    Clauseresult,
    Segbyword,
    Createtimelist,
  },
  props: ["curQue", "changeCurQue", "tmIndex"],
  data() {
    return {
      imageNumber: 1000,
      mp3Number: 1,
      fileCon: {
        img_list: [],
        mp3_list: [],
      },
      isPara: false,
      isClause: false,
      isByWord: false,
      paraIndex: 0, //段落索引
      cTVisible: false,
      loading: false,
      segList: null,
      data_structure: {
        type: "article_chs",
        name: "课文",
        model: 1,
        pyPosition: "top", //top 拼音在上面；bottom 拼音在下面
        article: "",
        detail: [],
        wordTime: [
          {
            bg: "1300",
            ed: "11680",
            onebest: "与我所欲也。孟子",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.7490",
                wordBg: "28",
                wordEd: "60",
                wordsName: "与",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "61",
                wordEd: "120",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "121",
                wordEd: "180",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "181",
                wordEd: "240",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "241",
                wordEd: "300",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "300",
                wordEd: "300",
                wordsName: "。",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.5062",
                wordBg: "377",
                wordEd: "450",
                wordsName: "孟子",
                wp: "n",
              },
            ],
          },

          {
            bg: "11990",
            ed: "16490",
            onebest: "于我所欲也，熊掌",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.4941",
                wordBg: "28",
                wordEd: "51",
                wordsName: "于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "52",
                wordEd: "102",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "103",
                wordEd: "153",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "154",
                wordEd: "204",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "205",
                wordEd: "255",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "255",
                wordEd: "255",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.7644",
                wordBg: "333",
                wordEd: "441",
                wordsName: "熊掌",
                wp: "n",
              },
            ],
          },
          {
            bg: "16490",
            ed: "24060",
            onebest: "亦我所欲也，二者不可得兼，舍鱼而取雄，长者也。",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.7470",
                wordBg: "1",
                wordEd: "28",
                wordsName: "亦",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "29",
                wordEd: "72",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "73",
                wordEd: "96",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "97",
                wordEd: "120",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "121",
                wordEd: "164",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "164",
                wordEd: "164",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "165",
                wordEd: "208",
                wordsName: "二",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "209",
                wordEd: "240",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "241",
                wordEd: "292",
                wordsName: "不可",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "293",
                wordEd: "300",
                wordsName: "得",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7548",
                wordBg: "301",
                wordEd: "384",
                wordsName: "兼",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "384",
                wordEd: "384",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "385",
                wordEd: "428",
                wordsName: "舍",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7535",
                wordBg: "429",
                wordEd: "516",
                wordsName: "鱼",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "517",
                wordEd: "548",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "549",
                wordEd: "584",
                wordsName: "取",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "585",
                wordEd: "632",
                wordsName: "雄",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "632",
                wordEd: "632",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "633",
                wordEd: "684",
                wordsName: "长",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "685",
                wordEd: "700",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "701",
                wordEd: "748",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "748",
                wordEd: "748",
                wordsName: "。",
                wp: "p",
              },
            ],
          },
          {
            bg: "24910",
            ed: "33010",
            onebest: "生已我所欲也，亦亦我所欲也，二者不可得，兼，舍生",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "28",
                wordEd: "104",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7487",
                wordBg: "105",
                wordEd: "128",
                wordsName: "已",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "129",
                wordEd: "148",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "149",
                wordEd: "176",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "177",
                wordEd: "216",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "217",
                wordEd: "280",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "280",
                wordEd: "280",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.4965",
                wordBg: "281",
                wordEd: "292",
                wordsName: "亦亦",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "293",
                wordEd: "384",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "385",
                wordEd: "400",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "401",
                wordEd: "428",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "429",
                wordEd: "452",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "452",
                wordEd: "452",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "488",
                wordEd: "514",
                wordsName: "二",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "515",
                wordEd: "546",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "547",
                wordEd: "594",
                wordsName: "不可",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "595",
                wordEd: "602",
                wordsName: "得",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "602",
                wordEd: "602",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.7579",
                wordBg: "603",
                wordEd: "674",
                wordsName: "兼",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "674",
                wordEd: "674",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "702",
                wordEd: "729",
                wordsName: "舍",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "730",
                wordEd: "801",
                wordsName: "生",
                wp: "n",
              },
            ],
          },
          {
            bg: "33010",
            ed: "41230",
            onebest: "而取，义者也，生亦我所欲，所欲有甚于生者，",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "14",
                wordEd: "38",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "39",
                wordEd: "76",
                wordsName: "取",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "76",
                wordEd: "76",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "77",
                wordEd: "114",
                wordsName: "义",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "115",
                wordEd: "152",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "153",
                wordEd: "190",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "190",
                wordEd: "190",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "347",
                wordEd: "419",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "420",
                wordEd: "439",
                wordsName: "亦",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "440",
                wordEd: "471",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "472",
                wordEd: "499",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "500",
                wordEd: "535",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "535",
                wordEd: "535",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "570",
                wordEd: "596",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "597",
                wordEd: "644",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "645",
                wordEd: "664",
                wordsName: "有",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5086",
                wordBg: "665",
                wordEd: "744",
                wordsName: "甚于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "745",
                wordEd: "764",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "765",
                wordEd: "812",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "812",
                wordEd: "812",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "41230",
            ed: "46380",
            onebest: "故不为，狗得也，死亦我所悟，",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "27",
                wordEd: "44",
                wordsName: "故",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5037",
                wordBg: "45",
                wordEd: "88",
                wordsName: "不为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "88",
                wordEd: "88",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "89",
                wordEd: "132",
                wordsName: "狗",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "133",
                wordEd: "176",
                wordsName: "得",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "177",
                wordEd: "220",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "220",
                wordEd: "220",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "310",
                wordEd: "386",
                wordsName: "死",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "387",
                wordEd: "394",
                wordsName: "亦",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "395",
                wordEd: "426",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "427",
                wordEd: "458",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5061",
                wordBg: "459",
                wordEd: "506",
                wordsName: "悟",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "506",
                wordEd: "506",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "46560",
            ed: "52020",
            onebest: "所物有甚于死者，故患有所不避也，",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "28",
                wordEd: "52",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5102",
                wordBg: "53",
                wordEd: "104",
                wordsName: "物",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "105",
                wordEd: "156",
                wordsName: "有",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5102",
                wordBg: "157",
                wordEd: "208",
                wordsName: "甚于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "209",
                wordEd: "260",
                wordsName: "死者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "260",
                wordEd: "260",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "293",
                wordEd: "313",
                wordsName: "故",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "314",
                wordEd: "389",
                wordsName: "患有",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "390",
                wordEd: "421",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5076",
                wordBg: "422",
                wordEd: "433",
                wordsName: "不避",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "434",
                wordEd: "537",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "537",
                wordEd: "537",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "52930",
            ed: "61330",
            onebest: "如使人之所欲，莫甚于生，则凡可以得生者何不用也，",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "28",
                wordEd: "46",
                wordsName: "如",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "47",
                wordEd: "92",
                wordsName: "使",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "93",
                wordEd: "138",
                wordsName: "人",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "139",
                wordEd: "184",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "185",
                wordEd: "230",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5031",
                wordBg: "231",
                wordEd: "276",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "276",
                wordEd: "276",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "277",
                wordEd: "322",
                wordsName: "莫",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5094",
                wordBg: "323",
                wordEd: "368",
                wordsName: "甚于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "369",
                wordEd: "414",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "414",
                wordEd: "414",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "471",
                wordEd: "499",
                wordsName: "则",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "500",
                wordEd: "531",
                wordsName: "凡",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "532",
                wordEd: "583",
                wordsName: "可以",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "584",
                wordEd: "595",
                wordsName: "得",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "596",
                wordEd: "635",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "636",
                wordEd: "699",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "700",
                wordEd: "731",
                wordsName: "何",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "732",
                wordEd: "775",
                wordsName: "不用",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "776",
                wordEd: "831",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "831",
                wordEd: "831",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "62020",
            ed: "69710",
            onebest: "使人之所物莫甚于死者则凡可以避，患者何不为也，",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "5",
                wordEd: "52",
                wordsName: "使",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "53",
                wordEd: "84",
                wordsName: "人",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "85",
                wordEd: "104",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "105",
                wordEd: "140",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7495",
                wordBg: "141",
                wordEd: "204",
                wordsName: "物",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "205",
                wordEd: "244",
                wordsName: "莫",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7514",
                wordBg: "245",
                wordEd: "296",
                wordsName: "甚于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "297",
                wordEd: "392",
                wordsName: "死者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "393",
                wordEd: "416",
                wordsName: "则",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "417",
                wordEd: "460",
                wordsName: "凡",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "461",
                wordEd: "500",
                wordsName: "可以",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7539",
                wordBg: "501",
                wordEd: "532",
                wordsName: "避",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "532",
                wordEd: "532",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "533",
                wordEd: "616",
                wordsName: "患者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "617",
                wordEd: "644",
                wordsName: "何",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "645",
                wordEd: "664",
                wordsName: "不",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "665",
                wordEd: "704",
                wordsName: "为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "705",
                wordEd: "760",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "760",
                wordEd: "760",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "70340",
            ed: "79000",
            onebest: "有事则生而有不用也，有事则可以必患而有不为也。",
            si: "0",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "28",
                wordEd: "124",
                wordsName: "有事",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "179",
                wordEd: "229",
                wordsName: "则",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "230",
                wordEd: "257",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "258",
                wordEd: "289",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "290",
                wordEd: "309",
                wordsName: "有",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "310",
                wordEd: "357",
                wordsName: "不用",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "358",
                wordEd: "393",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "393",
                wordEd: "393",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.5014",
                wordBg: "450",
                wordEd: "528",
                wordsName: "有事",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "529",
                wordEd: "556",
                wordsName: "则",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "557",
                wordEd: "620",
                wordsName: "可以",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "621",
                wordEd: "640",
                wordsName: "必",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.2514",
                wordBg: "641",
                wordEd: "700",
                wordsName: "患",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "701",
                wordEd: "720",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "721",
                wordEd: "744",
                wordsName: "有",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "745",
                wordEd: "768",
                wordsName: "不",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "769",
                wordEd: "800",
                wordsName: "为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "801",
                wordEd: "856",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "856",
                wordEd: "856",
                wordsName: "。",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "856",
                wordEd: "856",
                wordsName: "",
                wp: "g",
              },
            ],
          },
          {
            bg: "79430",
            ed: "86940",
            onebest: "是故所欲有甚于生者所悟，有甚于死者。",
            si: "1",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.5037",
                wordBg: "53",
                wordEd: "64",
                wordsName: "是故",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "153",
                wordEd: "185",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "186",
                wordEd: "245",
                wordsName: "欲",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "246",
                wordEd: "285",
                wordsName: "有",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "286",
                wordEd: "357",
                wordsName: "甚于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "358",
                wordEd: "389",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "390",
                wordEd: "453",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "454",
                wordEd: "509",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5046",
                wordBg: "510",
                wordEd: "569",
                wordsName: "悟",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "569",
                wordEd: "569",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "570",
                wordEd: "609",
                wordsName: "有",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "610",
                wordEd: "665",
                wordsName: "甚于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "666",
                wordEd: "741",
                wordsName: "死者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "741",
                wordEd: "741",
                wordsName: "。",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "741",
                wordEd: "741",
                wordsName: "",
                wp: "g",
              },
            ],
          },
          {
            bg: "87520",
            ed: "95770",
            onebest: "非独贤者有事心也，人皆有之，贤者能勿丧而",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "28",
                wordEd: "48",
                wordsName: "非",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "49",
                wordEd: "96",
                wordsName: "独",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "97",
                wordEd: "144",
                wordsName: "贤者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "145",
                wordEd: "192",
                wordsName: "有事",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "193",
                wordEd: "240",
                wordsName: "心",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "241",
                wordEd: "288",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "288",
                wordEd: "288",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "289",
                wordEd: "336",
                wordsName: "人",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "337",
                wordEd: "384",
                wordsName: "皆",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "385",
                wordEd: "432",
                wordsName: "有",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "433",
                wordEd: "480",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "480",
                wordEd: "480",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "507",
                wordEd: "614",
                wordsName: "贤者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "645",
                wordEd: "672",
                wordsName: "能",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5273",
                wordBg: "673",
                wordEd: "696",
                wordsName: "勿",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "697",
                wordEd: "760",
                wordsName: "丧",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7504",
                wordBg: "761",
                wordEd: "816",
                wordsName: "而",
                wp: "n",
              },
            ],
          },
          {
            bg: "96330",
            ed: "103000",
            onebest: "嗯嗯",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.3452",
                wordBg: "535",
                wordEd: "550",
                wordsName: "嗯嗯",
                wp: "s",
              },
            ],
          },
          {
            bg: "103000",
            ed: "108770",
            onebest: "一单四一豆羹，",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "249",
                wordEd: "332",
                wordsName: "一",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "333",
                wordEd: "360",
                wordsName: "单",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "361",
                wordEd: "448",
                wordsName: "四",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "449",
                wordEd: "484",
                wordsName: "一",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5052",
                wordBg: "485",
                wordEd: "504",
                wordsName: "豆",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5080",
                wordBg: "505",
                wordEd: "568",
                wordsName: "羹",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "568",
                wordEd: "568",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "108770",
            ed: "112810",
            onebest: "得之则生，福德则死，",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "29",
                wordEd: "52",
                wordsName: "得",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "53",
                wordEd: "104",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "105",
                wordEd: "132",
                wordsName: "则",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "133",
                wordEd: "200",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "200",
                wordEd: "200",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.6767",
                wordBg: "201",
                wordEd: "208",
                wordsName: "福",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.4989",
                wordBg: "209",
                wordEd: "232",
                wordsName: "德",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "233",
                wordEd: "328",
                wordsName: "则",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "329",
                wordEd: "396",
                wordsName: "死",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "396",
                wordEd: "396",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "112810",
            ed: "117760",
            onebest: "忽而而与之，行道之人福寿",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.7470",
                wordBg: "1",
                wordEd: "144",
                wordsName: "忽而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "145",
                wordEd: "176",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7512",
                wordBg: "177",
                wordEd: "192",
                wordsName: "与",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "193",
                wordEd: "248",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "248",
                wordEd: "248",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "249",
                wordEd: "292",
                wordsName: "行",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "293",
                wordEd: "320",
                wordsName: "道",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "321",
                wordEd: "360",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "361",
                wordEd: "412",
                wordsName: "人",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7572",
                wordBg: "413",
                wordEd: "488",
                wordsName: "福寿",
                wp: "n",
              },
            ],
          },
          {
            bg: "118310",
            ed: "124520",
            onebest: "处而而与之，其人不信也。",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.5013",
                wordBg: "28",
                wordEd: "44",
                wordsName: "处",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "45",
                wordEd: "116",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "117",
                wordEd: "124",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "125",
                wordEd: "144",
                wordsName: "与",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "145",
                wordEd: "208",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "208",
                wordEd: "208",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.5051",
                wordBg: "209",
                wordEd: "280",
                wordsName: "其",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "281",
                wordEd: "312",
                wordsName: "人",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "313",
                wordEd: "364",
                wordsName: "不信",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "518",
                wordEd: "593",
                wordsName: "也",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "593",
                wordEd: "593",
                wordsName: "。",
                wp: "p",
              },
            ],
          },
          {
            bg: "124800",
            ed: "128600",
            onebest: "嗯",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.4431",
                wordBg: "41",
                wordEd: "124",
                wordsName: "嗯",
                wp: "s",
              },
            ],
          },
          {
            bg: "128640",
            ed: "136160",
            onebest: "万钟则不辩，礼义而受之，",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "225",
                wordEd: "364",
                wordsName: "万",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "365",
                wordEd: "460",
                wordsName: "钟",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "461",
                wordEd: "488",
                wordsName: "则",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "489",
                wordEd: "520",
                wordsName: "不",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "521",
                wordEd: "552",
                wordsName: "辩",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "552",
                wordEd: "552",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "553",
                wordEd: "616",
                wordsName: "礼义",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "634",
                wordEd: "660",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "661",
                wordEd: "708",
                wordsName: "受",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "709",
                wordEd: "744",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "744",
                wordEd: "744",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "136250",
            ed: "143710",
            onebest: "万钟于我何加焉。为宫室之美，妻妾之奉",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "28",
                wordEd: "46",
                wordsName: "万",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "47",
                wordEd: "92",
                wordsName: "钟",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "93",
                wordEd: "138",
                wordsName: "于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "139",
                wordEd: "184",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "185",
                wordEd: "230",
                wordsName: "何",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.9251",
                wordBg: "231",
                wordEd: "276",
                wordsName: "加",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.5406",
                wordBg: "277",
                wordEd: "322",
                wordsName: "焉",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "322",
                wordEd: "322",
                wordsName: "。",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "451",
                wordEd: "484",
                wordsName: "为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "485",
                wordEd: "528",
                wordsName: "宫室",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "529",
                wordEd: "556",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "557",
                wordEd: "600",
                wordsName: "美",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "600",
                wordEd: "600",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "601",
                wordEd: "664",
                wordsName: "妻妾",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "665",
                wordEd: "680",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "681",
                wordEd: "736",
                wordsName: "奉",
                wp: "n",
              },
            ],
          },
          {
            bg: "143880",
            ed: "153110",
            onebest: "所识，穷法者得，我于相为，生死而不受，今为公事之美为之，",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "28",
                wordEd: "38",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "39",
                wordEd: "76",
                wordsName: "识",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "76",
                wordEd: "76",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "77",
                wordEd: "114",
                wordsName: "穷",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "115",
                wordEd: "152",
                wordsName: "法",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "153",
                wordEd: "190",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "191",
                wordEd: "228",
                wordsName: "得",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "228",
                wordEd: "228",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "229",
                wordEd: "266",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "267",
                wordEd: "304",
                wordsName: "于",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "426",
                wordEd: "444",
                wordsName: "相",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "445",
                wordEd: "484",
                wordsName: "为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "484",
                wordEd: "484",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "485",
                wordEd: "556",
                wordsName: "生死",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "557",
                wordEd: "584",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "585",
                wordEd: "592",
                wordsName: "不",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.6708",
                wordBg: "593",
                wordEd: "640",
                wordsName: "受",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "640",
                wordEd: "640",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "668",
                wordEd: "676",
                wordsName: "今",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "677",
                wordEd: "708",
                wordsName: "为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7512",
                wordBg: "709",
                wordEd: "756",
                wordsName: "公事",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "757",
                wordEd: "792",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "793",
                wordEd: "832",
                wordsName: "美",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "833",
                wordEd: "916",
                wordsName: "为之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "916",
                wordEd: "916",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "153550",
            ed: "158620",
            onebest: "像为生死而不受，今为妻妾之奉为之，",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.7499",
                wordBg: "1",
                wordEd: "44",
                wordsName: "像",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "45",
                wordEd: "76",
                wordsName: "为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "77",
                wordEd: "120",
                wordsName: "生死",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "121",
                wordEd: "144",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "145",
                wordEd: "156",
                wordsName: "不",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "157",
                wordEd: "224",
                wordsName: "受",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "224",
                wordEd: "224",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "225",
                wordEd: "244",
                wordsName: "今",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "245",
                wordEd: "280",
                wordsName: "为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "281",
                wordEd: "332",
                wordsName: "妻妾",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "333",
                wordEd: "372",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7493",
                wordBg: "373",
                wordEd: "384",
                wordsName: "奉为之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "384",
                wordEd: "384",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "158970",
            ed: "165750",
            onebest: "项未生死而不受今为所失，穷法者得我而为之，",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "9",
                wordEd: "44",
                wordsName: "项",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "45",
                wordEd: "76",
                wordsName: "未",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "77",
                wordEd: "88",
                wordsName: "生",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "89",
                wordEd: "120",
                wordsName: "死",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "121",
                wordEd: "136",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "137",
                wordEd: "152",
                wordsName: "不",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "153",
                wordEd: "208",
                wordsName: "受",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.2526",
                wordBg: "209",
                wordEd: "240",
                wordsName: "今",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "241",
                wordEd: "260",
                wordsName: "为",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "261",
                wordEd: "304",
                wordsName: "所",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7508",
                wordBg: "305",
                wordEd: "316",
                wordsName: "失",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "316",
                wordEd: "316",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "317",
                wordEd: "372",
                wordsName: "穷",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7516",
                wordBg: "373",
                wordEd: "392",
                wordsName: "法",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "393",
                wordEd: "472",
                wordsName: "者",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "473",
                wordEd: "480",
                wordsName: "得",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "481",
                wordEd: "552",
                wordsName: "我",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "553",
                wordEd: "580",
                wordsName: "而",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "581",
                wordEd: "668",
                wordsName: "为之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "668",
                wordEd: "668",
                wordsName: "，",
                wp: "p",
              },
            ],
          },
          {
            bg: "166100",
            ed: "174440",
            onebest: "是一部可以议乎此之谓，失其本心。",
            si: "2",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "28",
                wordEd: "48",
                wordsName: "是",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "49",
                wordEd: "104",
                wordsName: "一",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.7995",
                wordBg: "105",
                wordEd: "132",
                wordsName: "部",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "133",
                wordEd: "212",
                wordsName: "可以",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.3348",
                wordBg: "213",
                wordEd: "248",
                wordsName: "议",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "249",
                wordEd: "344",
                wordsName: "乎",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "372",
                wordEd: "399",
                wordsName: "此",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "400",
                wordEd: "415",
                wordsName: "之",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "416",
                wordEd: "515",
                wordsName: "谓",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "515",
                wordEd: "515",
                wordsName: "，",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "516",
                wordEd: "579",
                wordsName: "失",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "580",
                wordEd: "643",
                wordsName: "其",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "644",
                wordEd: "787",
                wordsName: "本心",
                wp: "n",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "787",
                wordEd: "787",
                wordsName: "。",
                wp: "p",
              },
              {
                alternativeList: [],
                wc: "0.0000",
                wordBg: "787",
                wordEd: "787",
                wordsName: "",
                wp: "g",
              },
            ],
          },
          {
            bg: "174510",
            ed: "182640",
            onebest: "嗯",
            si: "3",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "0.5384",
                wordBg: "28",
                wordEd: "48",
                wordsName: "嗯",
                wp: "s",
              },
            ],
          },
          {
            bg: "182640",
            ed: "186570",
            onebest: "嗯",
            si: "3",
            speaker: "0",
            wordsResultList: [
              {
                alternativeList: [],
                wc: "1.0000",
                wordBg: "109",
                wordEd: "292",
                wordsName: "嗯",
                wp: "s",
              },
            ],
          },
        ],
      },
    };
  },
  computed: {},
  watch: {},
  //方法集合
  methods: {
    changeMp3(fileList) {
      const articleImgList = JSON.parse(JSON.stringify(fileList));
      const articleImgRes = [];
      articleImgList.forEach((item) => {
        if (item.response) {
          const obj = {
            name: item.name,
            duration: item.response.file_info_list[0].media_duration,
            url: item.response.file_info_list[0].file_url,
            id: item.response.file_info_list[0].file_id,
          };
          articleImgRes.push(obj);
        }
      });
      this.curQue.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
    },

    changeImage(file) {
      console.log(file);
      if (file.response) {
        const obj = {
          name: file.name,
          url: file.response.file_info_list[0].file_url,
          id: file.response.file_info_list[0].file_id,
          imgNumber: 0,
        };
        this.curQue.img_list.push(obj);
        this.$forceUpdate();
      }
    },
    forceUpdate() {
      this.$forceUpdate();
    },
    delImage(index) {
      this.curQue.img_list.splice(index, 1);
      this.fileCon.img_list.splice(index, 1);
    },
    changeIsPara() {
      this.isPara = true;
    },
    //生成分句
    sureSeg() {
      let detail = JSON.parse(JSON.stringify(this.curQue.detail));
      let leg = detail.length;
      let flag = false;
      for (let i = 0; i < leg; i++) {
        if (!detail[i].para) {
          flag = true;
          break;
        }
      }
      if (!flag) {
        let textList = [];
        detail.forEach((item) => {
          let str = Base64.encode(item.para);
          textList.push(str);
        });
        this.loading = true;
        let data = {
          textList: textList,
        };
        segSentences(data).then((res) => {
          this.loading = false;
          let result = res.data.result;
          result.forEach((item, index) => {
            this.$set(this.curQue.detail[index], "sentences", item);
          });
          this.isClause = true;
        });
      } else {
        this.$message.warning("段落不能为空");
      }
    },
    changeIsClause(isClause) {
      this.isClause = isClause;
    },
    //生成分词
    segByWord(sentences, paraIndex) {
      console.log(sentences);
      this.loading = true;
      let textList = [];
      sentences.forEach((item) => {
        let str = Base64.encode(item);
        textList.push(str);
      });
      let data = {
        textList: textList,
      };
      BatchSegContent(data).then((res) => {
        this.loading = false;
        let list = res.data.result;
        this.$set(this.curQue.detail[paraIndex], "segList", list);
        console.log(this.curQue);
        this.segList = list;
        this.isByWord = true;
        this.paraIndex = paraIndex;
      });
    },
    uploadLRC() {
      this.cTVisible = true;
    },
    //保存字幕节点
    saveTimeList() {
      this.cTVisible = false;
      let detail = JSON.parse(JSON.stringify(this.$refs.createtimelist.detail));
      let detailRes = detail.map((item) => {
        let timeList = item.time_str.split("\n");
        item.timeList = this.handleTimeReg(timeList);
        return item;
      });
      this.curQue.detail = JSON.parse(JSON.stringify(detailRes));
      console.log(this.curQue.detail);
    },

    handleTimeReg(list) {
      list = list.map((item) => {
        let regArr = item.split("]");
        let reg = regArr[0];
        item = reg.replace("[", "");
        return item;
      });
      return list;
    },
    //点击字幕节点
    editTimeList() {
      this.cTVisible = true;
    },
    initCurQueData() {
      let res_data = JSON.parse(JSON.stringify(this.data_structure));
      this.changeCurQue(res_data);
    },
  },
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {
    console.log("ArticleTem");
    console.log(this.curQue);
    if (this.curQue) {
      if (this.curQue.detail[0].para) {
        this.isPara = true;
      }
      if (this.curQue.detail[0].sentences.length > 0) {
        this.isClause = true;
      }
      if (this.curQue.detail[0].seg_words.length > 0) {
        this.isByWord = true;
      }
      if (!this.curQue.img_list) {
        this.curQue.img_list = [];
      }
      if (!this.curQue.mp3_list) {
        this.curQue.mp3_list = [];
      }
      this.fileCon.img_list = JSON.parse(JSON.stringify(this.curQue.img_list));
      this.fileCon.mp3_list = JSON.parse(JSON.stringify(this.curQue.mp3_list));
    } else {
      this.initCurQueData();
    }
  },
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style lang='scss' scoped>
//@import url(); 引入公共css类
p {
  margin: 0;
  padding: 0;
}
.uploadArt_list {
  border: 1px #ccc solid;
  border-bottom: 0;
  margin-top: 10px;
  > li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px #ccc solid;

    > span {
      width: 320px;
      word-wrap: break-word;
      font-size: 14px;
      color: rgb(112, 110, 110);
      border-right: 1px #ccc solid;
      padding: 5px 10px;
    }
    > p {
      flex: 1;
      padding: 5px 10px;
    }
    .imgNumber {
      width: 80px;
    }
    .del-close {
      width: 24px;
      height: 24px;
      cursor: pointer;
      margin-right: 10px;
    }
  }
}
.NPC-Book-Article {
  > div {
    margin-bottom: 20px;
  }
}
.NPC-Book-model {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  > span {
    margin: 0;
  }
}
.lrc-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  > span {
    font-size: 14px;
    margin-right: 16px;
  }
}
</style>