seekPage.vue 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659
  1. <template>
  2. <div class="corpus_seekpage result" v-loading="loading">
  3. <Header v-if="!userID" />
  4. <template v-if="showPage">
  5. <div class="title">
  6. <p>教材语料库</p>
  7. <!-- <p>Corpus Dictionary</p> -->
  8. </div>
  9. <div class="seek" @keydown="downSeek">
  10. <input type="text" v-model="keyword" />
  11. <button @click="getdata(true)">搜索</button>
  12. <el-popover v-model="visibleOption" placement="bottom" width="335" trigger="click">
  13. <div class="set_corpus_dv">
  14. <span>选择范围</span>
  15. <!-- <el-select v-model="corpus.scope" style="width: 205px" placeholder="请选择">
  16. <el-option v-for="(itemD, indexD) in scopeList" :key="indexD" :label="itemD.label" :value="itemD.value" />
  17. </el-select> -->
  18. <el-cascader
  19. v-model="corpus.scope"
  20. placeholder=""
  21. :options="levelList"
  22. :props="{ multiple: true }"
  23. filterable
  24. collapse-tags
  25. ></el-cascader>
  26. </div>
  27. <div class="set_corpus_dv">
  28. <span>句子长度</span>
  29. <el-input
  30. v-model="corpus.sentenceStart"
  31. style="width: 55px; margin-right: 8px"
  32. onkeyup="value=value.replace(/^0+(\d)|[^\d]+/g,'')"
  33. class="numbre-input"
  34. />
  35. ——
  36. <el-input
  37. v-model="corpus.sentenceEnd"
  38. style="width: 55px; margin: 0 8px"
  39. onkeyup="value=value.replace(/^0+(\d)|[^\d]+/g,'')"
  40. class="numbre-input"
  41. />
  42. </div>
  43. <div class="set_corpus_submit">
  44. <div @click="visibleOption = false">取消</div>
  45. <div @click="sureCorpus">确认</div>
  46. </div>
  47. <div slot="reference" class="set_corpus" style="margin-left: 24px; cursor: pointer">筛选</div>
  48. </el-popover>
  49. </div>
  50. </template>
  51. <div class="txt">包含{{ book_count }}本教材、{{ word_count }}个字词,{{ sentence_count }}个例句</div>
  52. <div class="cx-list" v-if="showResult">
  53. <div class="cx-list-box">
  54. <span>{{ keyword }}</span>
  55. <span>{{ allList.word_level_name }}</span>
  56. <label v-for="(items, indexs) in allList.word_cx_list" :key="indexs"
  57. ><span>{{ items.code }}</span
  58. ><span>{{ items.name }}</span></label
  59. >
  60. </div>
  61. </div>
  62. <div class="txt_imgtable" v-if="showResult">
  63. <div class="left">
  64. <div class="top">
  65. <div>
  66. <div class="pattern">
  67. <div :class="[patternIndex == 0 ? 'sele' : '']" @click="cutPattern(0)">引语模式</div>
  68. <div :class="[patternIndex == 1 ? 'sele' : '']" @click="cutPattern(1)">KWIC模式</div>
  69. </div>
  70. <template v-if="patternIndex == 1">
  71. <div class="KWIC_sort">
  72. <span
  73. :class="['sort', KWIC_sortIndex == 0 ? 'sele' : '']"
  74. @click="KWICsortEvent(0, 'sentence_list_sort_left')"
  75. >
  76. <img src="../../assets/teacherdev/analys-right.png" alt="" />
  77. </span>
  78. <span
  79. :class="['sort', KWIC_sortIndex == 1 ? 'sele' : '']"
  80. @click="KWICsortEvent(1, 'sentence_list_sort_mid')"
  81. >
  82. <img src="../../assets/teacherdev/analys-center.png" alt="" />
  83. </span>
  84. <span
  85. :class="['sort', KWIC_sortIndex == 2 ? 'sele' : '']"
  86. @click="KWICsortEvent(2, 'sentence_list_sort_right')"
  87. >
  88. <img src="../../assets/teacherdev/analys-left.png" alt="" />
  89. </span>
  90. </div>
  91. </template>
  92. <div class="refresh" @click="handleRefresh">
  93. <img src="../../assets/teacherdev/refresh.png" alt="" />
  94. </div>
  95. <template v-if="patternIndex == 0">
  96. <div class="lang_sort" :class="[sortType === 'length' ? 'active' : '']" @click="sortEvent('length')">
  97. 按长度
  98. <img
  99. v-if="sort == 'down' && sortType === 'length'"
  100. src="../../assets/teacherdev/ylk-sort-up.png"
  101. alt=""
  102. />
  103. <img
  104. v-else-if="sort == 'up' && sortType === 'length'"
  105. src="../../assets/teacherdev/ylk-sort-down.png"
  106. alt=""
  107. />
  108. <img v-else src="../../assets/teacherdev/ylk-sort-no.png" alt="" />
  109. </div>
  110. </template>
  111. <template v-else>
  112. <div style="display: flex">
  113. <div
  114. class="lang_sort"
  115. :class="[sortType === 'zflength' ? 'active' : '']"
  116. @click="sortEvent('zflength')"
  117. >
  118. 按字符
  119. <img
  120. v-if="sort == 'down' && sortType === 'zflength'"
  121. src="../../assets/teacherdev/ylk-sort-up.png"
  122. alt=""
  123. />
  124. <img
  125. v-else-if="sort == 'up' && sortType === 'zflength'"
  126. src="../../assets/teacherdev/ylk-sort-down.png"
  127. alt=""
  128. />
  129. <img v-else src="../../assets/teacherdev/ylk-sort-no.png" alt="" />
  130. </div>
  131. <div
  132. class="lang_sort"
  133. :class="[sortType === 'pclength' ? 'active' : '']"
  134. @click="sortEvent('pclength')"
  135. >
  136. 按频次
  137. <img
  138. v-if="sort == 'down' && sortType === 'pclength'"
  139. src="../../assets/teacherdev/ylk-sort-up.png"
  140. alt=""
  141. />
  142. <img
  143. v-else-if="sort == 'up' && sortType === 'pclength'"
  144. src="../../assets/teacherdev/ylk-sort-down.png"
  145. alt=""
  146. />
  147. <img v-else src="../../assets/teacherdev/ylk-sort-no.png" alt="" />
  148. </div>
  149. </div>
  150. </template>
  151. </div>
  152. <div class="size">
  153. <template v-if="patternIndex == 0">
  154. <!-- <el-switch
  155. v-model="pinyinShow"
  156. active-text="拼音"
  157. active-color="#424242"
  158. style="margin-left: 24px"
  159. >
  160. </el-switch> -->
  161. <el-switch
  162. v-model="shiyiShow"
  163. active-text="释义"
  164. active-color="#424242"
  165. style="margin-left: 20px"
  166. @change="changeShiyi"
  167. >
  168. </el-switch>
  169. </template>
  170. <el-switch v-model="fenciShow" active-text="分词" active-color="#424242" style="margin-left: 8px">
  171. </el-switch>
  172. <span :class="[sizeIndex == 0 ? 'sele' : '']" @click="cutSize(0)">大</span>
  173. <span :class="[sizeIndex == 1 ? 'sele' : '']" @click="cutSize(1)">中</span>
  174. <span :class="[sizeIndex == 2 ? 'sele' : '']" @click="cutSize(2)">小</span>
  175. </div>
  176. </div>
  177. <div class="main">
  178. <div class="list">
  179. <template v-if="patternIndex == 0">
  180. <div v-for="(item, i) in ShowList" :key="i + 'sentence'" class="one">
  181. <div class="top">
  182. <!--
  183. :class="['number-' + sizeIndex + '-' + pinyinShow]"
  184. -->
  185. <div class="number">{{ item.number }}.</div>
  186. <!--
  187. :class="['speaker-' + sizeIndex + '-' + pinyinShow]"
  188. -->
  189. <!-- <img src="../../assets/teacherdev/speaker-one.png" alt="" /> -->
  190. <div class="words">
  191. <template v-if="item.sentence_fc_list_style && item.sentence_fc_list_style.length > 1">
  192. <span
  193. :style="{
  194. fontSize: conSize + 'px',
  195. padding: fenciShow ? '0 2px' : '',
  196. }"
  197. v-for="(items, indexs) in item.sentence_fc_list_style"
  198. :key="indexs"
  199. v-html="items"
  200. ></span>
  201. </template>
  202. <template v-else>
  203. <span
  204. :style="{
  205. fontSize: conSize + 'px',
  206. padding: fenciShow ? '0 2px' : '',
  207. }"
  208. v-html="item.res"
  209. ></span>
  210. </template>
  211. <template v-if="shiyiShow && item.word_definition_list.length > 0">
  212. <span class="shiyi">
  213. <span v-html="item.word_definition_list.join('; ')"> </span>
  214. </span>
  215. </template>
  216. </div>
  217. <!--
  218. :class="['shiyi-' + sizeIndex]"
  219. -->
  220. </div>
  221. <div class="bottom">
  222. {{ item.source_courseware_name_path }}
  223. </div>
  224. </div>
  225. </template>
  226. <template v-else>
  227. <div v-for="(item, index) in ShowList" :key="'kwic' + index" class="kwic_one">
  228. <div class="number">{{ item.number }}</div>
  229. <el-tooltip effect="dark" placement="bottom">
  230. <div slot="content">
  231. {{ item.source_courseware_name_path }}
  232. </div>
  233. <div class="laiyuan">
  234. {{ item.source_courseware_name_path }}
  235. </div>
  236. </el-tooltip>
  237. <div
  238. class="word"
  239. :style="{
  240. fontSize: conSize + 'px',
  241. }"
  242. >
  243. <div v-for="(txt, indexs) in item.resArr" :key="indexs">
  244. <div
  245. :style="{ padding: fenciShow ? '0 2px' : '', display: 'inline-block' }"
  246. v-for="(txts, indext) in txt"
  247. :key="indext"
  248. >
  249. <!-- <span v-html="txts"></span> -->
  250. <template v-if="sortType === 'pclength' && (KWIC_sortIndex === 0 || KWIC_sortIndex === 2)">
  251. <template v-if="indexs === 0 && KWIC_sortIndex === 0">
  252. <el-tooltip effect="dark" placement="bottom" style="display: inline">
  253. <div slot="content">
  254. {{
  255. item.adjoin_fc_frequency_list_left && item.adjoin_fc_frequency_list_left[indext]
  256. ? item.adjoin_fc_frequency_list_left[indext]
  257. : 1
  258. }}
  259. </div>
  260. <div class="">
  261. <span v-html="txts"></span>
  262. </div>
  263. </el-tooltip>
  264. </template>
  265. <template v-else-if="indexs === 2 && KWIC_sortIndex === 2">
  266. <el-tooltip effect="dark" placement="bottom" style="display: inline">
  267. <div slot="content">
  268. {{
  269. item.adjoin_fc_frequency_list_right && item.adjoin_fc_frequency_list_right[indext]
  270. ? item.adjoin_fc_frequency_list_right[indext]
  271. : 1
  272. }}
  273. </div>
  274. <div class="">
  275. <span v-html="txts"></span>
  276. </div>
  277. </el-tooltip>
  278. </template>
  279. <template v-else>
  280. <span v-html="txts"></span>
  281. </template>
  282. </template>
  283. <template v-else>
  284. <span v-html="txts"></span>
  285. </template>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. </template>
  291. </div>
  292. <div class="page">
  293. <el-pagination
  294. background
  295. @current-change="handleCurrentChange"
  296. :current-page.sync="page"
  297. :page-size="pageSize"
  298. layout="prev, pager, next"
  299. :total="selectCurrent ? selectCurrent : CurrentList.length"
  300. :pager-count="5"
  301. >
  302. </el-pagination>
  303. <span class="text">
  304. 共 {{ selectCurrent ? selectCurrent : CurrentList.length }} 条
  305. {{
  306. patternIndex === 0 && selectLaiyuanBookIdList.length === 0 && !shiyiShow
  307. ? ' 命中 ' + scoreAHitNumber + ' 次'
  308. : ''
  309. }}
  310. </span>
  311. </div>
  312. </div>
  313. </div>
  314. <div class="right">
  315. <div class="top">
  316. <div>
  317. <div
  318. v-if="allList.stat_list_word_definition && allList.stat_list_word_definition.length > 0"
  319. :class="[rightTopIndex == 0 ? 'sele' : '']"
  320. @click="cutsyly(0)"
  321. >
  322. 释义
  323. </div>
  324. <div :class="[rightTopIndex == 1 ? 'sele' : '']" @click="cutsyly(1)">来源</div>
  325. </div>
  326. </div>
  327. <div class="bottom">
  328. <div id="shanxing_main" style="width: 630px; height: 398px"></div>
  329. <div class="list" v-if="rightList.length > 0">
  330. <div class="one all" style="border-bottom: 1px solid #eee">
  331. <div style="width: 60%">{{ rightTopIndex == 1 ? '来源' : '释义' }}</div>
  332. <div style="width: 20%">
  333. <span>出现次数</span>
  334. </div>
  335. <div style="width: 20%">
  336. <span>占比</span>
  337. </div>
  338. </div>
  339. <div
  340. v-for="(item, i) in rightList"
  341. :key="i + 'right'"
  342. class="one"
  343. :style="{
  344. borderBottom: i == rightList.length - 1 ? 'none' : '1px solid #eeeeee',
  345. backgroundColor: selectLaiyuanBookIdList.indexOf(item.book_id) > -1 ? '#F2F3F5' : '',
  346. }"
  347. @mouseover="gaolangbzt(i, 'shanxing_main')"
  348. @mouseout="closegaolangbzt(i, 'shanxing_main')"
  349. @click="handleBookLiju(item.book_id)"
  350. >
  351. <div style="width: 60%">
  352. <span></span>
  353. <span v-html="item.book_name"></span>
  354. </div>
  355. <div style="width: 20%">
  356. <span>{{ item.count }}</span>
  357. </div>
  358. <div style="width: 20%">
  359. <span>{{ item.percent }}%</span>
  360. </div>
  361. </div>
  362. <div class="one all">
  363. <div style="width: 60%">
  364. <span></span>
  365. <span>合计</span>
  366. </div>
  367. <div style="width: 20%">
  368. <span>{{ allNumber }}</span>
  369. </div>
  370. <div style="width: 20%">
  371. <span>100%</span>
  372. </div>
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. </template>
  380. <script>
  381. //这里可以导入其它文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  382. //例如:import 《组件名称》from ‘《组件路径》';
  383. import Header from '@/components/Header';
  384. import { getConfigInfor } from '@/utils/index';
  385. import { getStaticContent, BookgetContent } from '@/api/api';
  386. import { setToken } from '@/utils/auth';
  387. import * as echarts from 'echarts';
  388. export default {
  389. name: 'corpus_seekpage',
  390. //import引入的组件需要注入到对象中才能使用
  391. components: {
  392. Header,
  393. },
  394. props: {},
  395. data() {
  396. //这里存放数据
  397. return {
  398. keyword: this.$route.query.keyword ? this.$route.query.keyword : null,
  399. AccessToken: this.$route.query.AccessToken,
  400. AppID: this.$route.query.AppID,
  401. showPage: false,
  402. userID: this.$route.query.UserID ? this.$route.query.UserID : '',
  403. book_count: 0,
  404. word_count: 0,
  405. sentence_count: 0,
  406. visibleOption: false,
  407. corpus: {
  408. difficlty: null,
  409. scope: [],
  410. sentenceStart: null,
  411. sentenceEnd: null,
  412. },
  413. scopeList: [
  414. {
  415. value: '',
  416. label: '全部',
  417. },
  418. ],
  419. page: 1,
  420. pageSize: 30,
  421. shiyiShow: false,
  422. fenciShow: false,
  423. pinyinShow: true,
  424. JFIndex: 0,
  425. hzData: [],
  426. ShowHzData: [],
  427. loading: true,
  428. lang: null,
  429. unfold: true,
  430. patternIndex: 0,
  431. rightTopIndex: 0,
  432. sizeIndex: 1,
  433. sort: '',
  434. sortType: '',
  435. rightList: [],
  436. KWIC_sortIndex: 0,
  437. allNumber: 0,
  438. conSize: 20,
  439. pinyinSize: 12,
  440. allList: [],
  441. CurrentList: [],
  442. ShowList: [],
  443. chsFhList: [',', '。', '”', ':', '》', '《', '?', '!', ';'],
  444. scoreAHitNumber: 0,
  445. checkAll: false,
  446. isIndeterminate: true,
  447. allLevels: [],
  448. levelList: [],
  449. selectLaiyuanBookIdList: [], // 选中右侧来源书籍列表id
  450. selectCurrent: 0,
  451. showResult: false,
  452. shiyiList: [], //含有释义例句列表
  453. };
  454. },
  455. //计算属性 类似于data概念
  456. computed: {},
  457. //监控data中数据变化
  458. watch: {},
  459. //方法集合
  460. methods: {
  461. downSeek(e) {
  462. if (e.keyCode == 13) {
  463. this.getdata(true);
  464. }
  465. },
  466. getTotalCount() {
  467. const Mname = 'book-data_stat-GetBookWordExampleSentenceTotalCount';
  468. BookgetContent(Mname, {}).then((res) => {
  469. if (res.status === 1) {
  470. this.book_count = res.book_count;
  471. this.word_count = res.word_count;
  472. this.sentence_count = res.example_sentence_count;
  473. }
  474. });
  475. },
  476. // 存储句长信息
  477. sureCorpus() {
  478. this.visibleOption = false;
  479. this.getdata(true);
  480. // if (this.seekOptions) this.seekresult();
  481. },
  482. // 获取上架教材列表
  483. getLevelList() {
  484. this.allLevels = [];
  485. this.levelList = [];
  486. BookgetContent('book-book_manager-GetBookList', {
  487. publish_status: 1,
  488. }).then((res) => {
  489. this.loading = false;
  490. this.levelList = [];
  491. if (res.status === 1) {
  492. res.book_list.forEach((item) => {
  493. item.value = item.id;
  494. item.label = item.name;
  495. this.allLevels.push(item.id);
  496. });
  497. // this.levelList = this.levelList.concat(res.book_list);
  498. let tempdata = {};
  499. res.book_list.forEach((str) => {
  500. if (tempdata[str.series_code] != null) {
  501. tempdata[str.series_code].push(str);
  502. } else {
  503. let every = [];
  504. every.push(str);
  505. tempdata[str.series_code] = every;
  506. }
  507. });
  508. for (const key in tempdata) {
  509. let obj = {
  510. value: tempdata[key][0].series_code,
  511. label: tempdata[key][0].series_code ? tempdata[key][0].series_code : '未分类',
  512. children: tempdata[key],
  513. };
  514. this.levelList.push(obj);
  515. }
  516. }
  517. });
  518. },
  519. getrightListdata() {
  520. this.inityuan();
  521. },
  522. inityuan() {
  523. var chartDom = document.getElementById('shanxing_main');
  524. var myChart = echarts.init(chartDom);
  525. var option;
  526. this.allNumber = 0;
  527. let newdata = JSON.parse(JSON.stringify(this.rightList));
  528. newdata.forEach((item) => {
  529. this.allNumber += item.count;
  530. let percent = item.percent;
  531. item.value = item.count;
  532. if (percent % 1 == 0) {
  533. item.name = item.book_name + ' ' + percent + '%';
  534. } else {
  535. item.name = item.book_name + ' ' + percent.toFixed(2) + '%';
  536. }
  537. });
  538. option = {
  539. series: [
  540. {
  541. name: 'Access From',
  542. type: 'pie',
  543. // radius: ["50%", "50%"],
  544. data: newdata.length > 0 ? newdata : [],
  545. itemStyle: {
  546. // borderColor: "#fff",
  547. // borderWidth: 2,
  548. },
  549. top: 50,
  550. emphasis: {
  551. itemStyle: {
  552. shadowBlur: 10,
  553. shadowOffsetX: 0,
  554. shadowColor: 'rgba(0, 0, 0, 0.5)',
  555. },
  556. },
  557. },
  558. ],
  559. xAxis: {
  560. show: false, //不显示坐标轴线、坐标轴刻度线和坐标轴上的文字
  561. axisTick: {
  562. show: false, //不显示坐标轴刻度线
  563. },
  564. axisLine: {
  565. show: false, //不显示坐标轴线
  566. },
  567. axisLabel: {
  568. show: false, //不显示坐标轴上的文字
  569. },
  570. },
  571. };
  572. option && myChart.setOption(option);
  573. if (this.rightTopIndex === 1) {
  574. let number = 0;
  575. let _this = this;
  576. myChart.on('click', function (param) {
  577. //添加点击事件
  578. myChart.dispatchAction({ type: 'highlight', dataIndex: param.dataIndex }); //激活点击区域高亮
  579. if (param.dataIndex !== number) {
  580. // 当鼠标点击的时候 消除上一个扇区的高亮
  581. myChart.dispatchAction({ type: 'downplay', dataIndex: number });
  582. }
  583. number = param.dataIndex; //接住当前扇区的dataIndex
  584. _this.handleBookLiju(param.data.book_id);
  585. });
  586. }
  587. },
  588. // 鼠标进入
  589. gaolangbzt(index, id) {
  590. var compareChart = echarts.getInstanceByDom(document.getElementById(id));
  591. compareChart.dispatchAction({
  592. type: 'highlight',
  593. seriesIndex: 0,
  594. dataIndex: index,
  595. });
  596. },
  597. // 鼠标移出
  598. closegaolangbzt(index, id) {
  599. var compareChart = echarts.getInstanceByDom(document.getElementById(id));
  600. compareChart.dispatchAction({
  601. type: 'downplay',
  602. seriesIndex: 0,
  603. dataIndex: index,
  604. });
  605. },
  606. // 计算选中教材例句
  607. handleBookLiju(id) {
  608. if (!id) return false;
  609. if (this.selectLaiyuanBookIdList.indexOf(id) > -1) {
  610. this.selectLaiyuanBookIdList.splice(this.selectLaiyuanBookIdList.indexOf(id), 1);
  611. } else {
  612. this.selectLaiyuanBookIdList.push(id);
  613. }
  614. this.padingEvetn();
  615. this.page = 1;
  616. },
  617. changehzdata() {
  618. this.hzData = [];
  619. this.jfEvent(0);
  620. let arr = this.keyword.trim().split('');
  621. arr.forEach((item) => {
  622. if (!/^[\u4e00-\u9fa5]/.test(item)) {
  623. return;
  624. }
  625. let result = pinyinUtil.getPinyin(item);
  626. let obj = {
  627. con: item,
  628. pinyin: result,
  629. hzDetail: {
  630. hz_json: null,
  631. },
  632. };
  633. this.hzData.push(obj);
  634. this.ShowHzData = JSON.parse(JSON.stringify(this.hzData));
  635. });
  636. },
  637. handleRefresh() {
  638. this.pinyinShow = true;
  639. this.shiyiShow = true;
  640. this.fenciShow = true;
  641. this.sizeIndex = 1;
  642. this.sort = '';
  643. this.sortType = '';
  644. this.KWIC_sortIndex = 0;
  645. this.cutSize(1);
  646. this.getdata();
  647. this.page = 1;
  648. },
  649. getdata(flag) {
  650. if (!this.keyword || !this.keyword.trim()) {
  651. this.$message.warning('请输入要搜索的内容');
  652. return;
  653. }
  654. this.loading = true;
  655. this.showResult = true;
  656. this.scoreAHitNumber = 0;
  657. let selectBookId = [];
  658. this.corpus.scope.forEach((item) => {
  659. selectBookId.push(item[1]);
  660. });
  661. let Mname = 'book-courseware_manager-GetCoursewareWordExampleSentenceList_Sort';
  662. let data = {
  663. // courseware_id: "003-20211012-17-BDUZ1JVCAN",
  664. courseware_id: '',
  665. // word: this.$route.query.keyword, // 单词
  666. word: this.keyword.trim(),
  667. search_scope: 3, // 检索范围 0 【本章】,1【本教材】,2【本套教材】,3【系统所有教材】
  668. // 本章:同一本教材下,归属同一个第一级章节下的所有课件为同一章。
  669. is_contain_word_variants: false, // 是否包含单词变体例句
  670. is_contain_stat_data: true, //是否包统计数据
  671. is_filter_repetitive_sentence: 'true', // 过滤重复例句
  672. sort_mode: this.sort ? (this.sort == 'down' ? 'DESCENT' : 'ASCENT') : 'NO', // 排序模式 NO 【不排序】,ASCENT【顺序】,DESCENT【倒序】
  673. compare_mode: this.patternIndex === 0 ? 'LENGTH' : 'KWIC', // 排序比较模式,LENGTH【例句长度】,KWIC【KWIC 模式】
  674. kwic_arrange_type: this.KWIC_sortIndex === 0 ? 'LEFT' : this.KWIC_sortIndex === 1 ? 'MID' : 'RIGHT', // KWIC 排列类型, LEFT【左】,MID【中】,RIGHT【右】
  675. kwic_compare_by: this.sortType === 'pclength' ? 1 : 0, // KWIC 排序比较依据,0【字符】,1【相邻的搭配词出现的次数】
  676. book_publish_status: 1, // 教材发布状态 -1【全部】, 0【下架】1【上架】
  677. book_id_list: selectBookId, // 指定教材查询,空表示在检索范围内检索所有教材。
  678. sentence_fc_length_min: this.corpus.sentenceStart ? Number(this.corpus.sentenceStart) : -1, // 例句分词长度范围(最小值),-1 表示不检测最小值
  679. sentence_fc_length_max: this.corpus.sentenceEnd ? Number(this.corpus.sentenceEnd) : -1, // 例句分词长度范围(最大值),-1 表示不检测最大值
  680. is_analyse_word_cx: 'true',
  681. is_analyse_word_level: 'true',
  682. };
  683. BookgetContent(Mname, data, this.AppID, this.AccessToken)
  684. .then((res) => {
  685. this.shiyiList = [];
  686. this.allList = {
  687. sentence_list: [],
  688. sentence_list_sort_left: [],
  689. sentence_list_sort_mid: [],
  690. sentence_list_sort_right: [],
  691. stat_list_sentence_source_book_series_code: res.stat_list_sentence_source_book_series_code,
  692. stat_list_word_definition: res.stat_list_word_definition,
  693. word_level_name: res.word_level_name,
  694. word_cx_list: res.word_cx_list,
  695. };
  696. if (res.sentence_list.length > 0) {
  697. res.stat_list_word_definition.forEach((item) => {
  698. // item.book_name_s = item.definition;
  699. item.book_name = JSON.parse(JSON.stringify(item.definition)).replace(/<i>/g, '').replace(/<\/i>/g, '');
  700. });
  701. res.stat_list_sentence_source_book_series_code.forEach((item) => {
  702. item.book_name = item.series_code;
  703. });
  704. // 清理脏数据
  705. this.removeRubbishData(res);
  706. if (res.stat_list_word_definition.length === 0) {
  707. this.rightTopIndex = 1;
  708. }
  709. if (this.rightTopIndex === 0) {
  710. this.rightList = res.stat_list_word_definition;
  711. } else {
  712. this.rightList = res.stat_list_sentence_source_book_series_code;
  713. }
  714. this.getrightListdata();
  715. if (this.patternIndex === 0) {
  716. this.allList.sentence_list = this.handleExample(res.sentence_list);
  717. } else {
  718. if (this.KWIC_sortIndex === 0) {
  719. this.allList.sentence_list_sort_left = this.handleExample(res.sentence_list, 'left');
  720. } else if (this.KWIC_sortIndex === 1) {
  721. this.allList.sentence_list_sort_mid = this.handleExample(res.sentence_list, 'mid');
  722. } else {
  723. this.allList.sentence_list_sort_right = this.handleExample(res.sentence_list, 'right');
  724. }
  725. }
  726. this.CurrentList = JSON.parse(JSON.stringify(res.sentence_list));
  727. let shiyiIndex = 1;
  728. JSON.parse(JSON.stringify(res.sentence_list)).forEach((items) => {
  729. if (items.word_definition_list && items.word_definition_list.length > 0) {
  730. items.number = shiyiIndex;
  731. this.shiyiList.push(items);
  732. shiyiIndex++;
  733. }
  734. });
  735. this.padingEvetn();
  736. } else {
  737. this.CurrentList = [];
  738. this.ShowList = [];
  739. this.rightList = [];
  740. this.shiyiList = [];
  741. this.getrightListdata();
  742. }
  743. if (this.keyword.trim() && flag) {
  744. this.changehzdata();
  745. } else {
  746. this.loading = false;
  747. }
  748. if (res.word_pinyin_list) {
  749. res.word_pinyin_list.forEach((itemP, indexP) => {
  750. if (this.hzData[indexP]) {
  751. this.hzData[indexP].pinyin = itemP;
  752. }
  753. });
  754. }
  755. })
  756. .catch((err) => {
  757. this.loading = false;
  758. });
  759. },
  760. handleExample(list, type) {
  761. if (list.length > 0) {
  762. list = list.map((item, index) => {
  763. item.number = index + 1;
  764. let str = item.source_courseware_name_path;
  765. item.show_source_courseware_name_path = str.slice(0, 8) + '...';
  766. if (type == 'left') {
  767. let arr = JSON.parse(JSON.stringify(item.sentence_fc_list));
  768. arr.forEach((items, indexs) => {
  769. if (indexs == item.sentence_fc_list_word_index) {
  770. arr[indexs] = `<span style=color:#DE4444;font-weight:700;>${arr[indexs]}</span>`;
  771. }
  772. });
  773. let data = this.changefiveword(arr, item.sentence_fc_list_word_index, type);
  774. item.resArr = data;
  775. item.adjoin_fc_frequency_list_left = item.adjoin_fc_frequency_list.splice(
  776. 0,
  777. item.sentence_fc_list_word_index,
  778. );
  779. } else if (type == 'right') {
  780. let sentence = JSON.parse(JSON.stringify(item.sentence));
  781. let arr = JSON.parse(JSON.stringify(item.sentence_fc_list));
  782. arr.forEach((items, indexs) => {
  783. if (indexs == item.sentence_fc_list_word_index) {
  784. arr[indexs] = `<span style=color:#DE4444;font-weight:700;>${arr[indexs]}</span>`;
  785. }
  786. });
  787. let data = this.changefiveword(arr, item.sentence_fc_list_word_index, type);
  788. item.resArr = data;
  789. item.adjoin_fc_frequency_list_right = item.adjoin_fc_frequency_list.splice(
  790. item.sentence_fc_list_word_index + 1,
  791. );
  792. } else if (type == 'mid') {
  793. let sentence = JSON.parse(JSON.stringify(item.sentence));
  794. let arr = JSON.parse(JSON.stringify(item.sentence_fc_list));
  795. arr.forEach((items, indexs) => {
  796. if (indexs == item.sentence_fc_list_word_index) {
  797. arr[indexs] = `<span style=color:#DE4444;font-weight:700;>${arr[indexs]}</span>`;
  798. }
  799. });
  800. let data = this.changefiveword(arr, item.sentence_fc_list_word_index, type);
  801. item.resArr = data;
  802. } else {
  803. this.scoreAHitNumber += item.position_list.length;
  804. let sentence_fc_list_style = [];
  805. let newsentence = JSON.parse(JSON.stringify(item.sentence));
  806. let res = '';
  807. for (let i = 0; i < item.position_list.length; i++) {
  808. let part1 = '';
  809. let part2 = '';
  810. let part3 = '';
  811. if (item.position_list.length > 1) {
  812. if (i == 0) {
  813. part1 = newsentence.substring(0, item.position_list[i].begin);
  814. part2 = newsentence.substring(item.position_list[i].begin, item.position_list[i].end);
  815. part3 = newsentence.substring(item.position_list[i].end, item.position_list[i + 1].begin);
  816. } else if (i == item.position_list.length - 1) {
  817. part2 = newsentence.substring(item.position_list[i].begin, item.position_list[i].end);
  818. part3 = newsentence.substring(item.position_list[i].end);
  819. } else {
  820. part2 = newsentence.substring(item.position_list[i].begin, item.position_list[i].end);
  821. part3 = newsentence.substring(item.position_list[i].end, item.position_list[i + 1].begin);
  822. }
  823. } else {
  824. part1 = newsentence.substring(0, item.position_list[i].begin);
  825. part2 = newsentence.substring(item.position_list[i].begin, item.position_list[i].end);
  826. part3 = newsentence.substring(item.position_list[i].end);
  827. }
  828. res += part1 + '<span style="color:#DE4444;">' + part2 + '</span>' + part3;
  829. }
  830. item.res = res;
  831. item.sentence_fc_list.forEach((items, indexs) => {
  832. if (item.sentence_fc_list_word_index_list.indexOf(indexs) > -1) {
  833. sentence_fc_list_style.push('<span style="color:#DE4444;">' + items + '</span>');
  834. } else {
  835. sentence_fc_list_style.push(items);
  836. }
  837. });
  838. item.sentence_fc_list_style = sentence_fc_list_style;
  839. }
  840. return item;
  841. });
  842. return list;
  843. } else {
  844. return [];
  845. }
  846. },
  847. changefiveword(arr, index, type) {
  848. let num = 6;
  849. let colorIndex = 0;
  850. let colorList = ['#4D7EFF', '#A4430F', '#9342C5', '#FF8718', '#1DAA91'];
  851. for (let i = 1; i < num; i++) {
  852. if (type == 'left') {
  853. if (index - i >= 0) {
  854. if (this.chsFhList.indexOf(arr[index - i]) == -1) {
  855. arr[index - i] = `<span style=color:${colorList[colorIndex]};>${arr[index - i]}</span>`;
  856. colorIndex++;
  857. } else {
  858. num++;
  859. }
  860. }
  861. } else if (type == 'right') {
  862. if (index + i <= arr.length - 1) {
  863. if (this.chsFhList.indexOf(arr[index + i]) == -1) {
  864. arr[index + i] = `<span style=color:${colorList[colorIndex]};>${arr[index + i]}</span>`;
  865. colorIndex++;
  866. } else {
  867. num++;
  868. }
  869. }
  870. }
  871. }
  872. let newarr = [];
  873. let arr1 = [];
  874. let arr2 = [];
  875. let arr3 = [];
  876. arr.forEach((item, i) => {
  877. if (i < index) {
  878. arr1.push(item);
  879. } else if (i == index) {
  880. arr2.push(item);
  881. } else {
  882. arr3.push(item);
  883. }
  884. });
  885. newarr.push(arr1);
  886. newarr.push(arr2);
  887. newarr.push(arr3);
  888. return newarr;
  889. },
  890. // 处理分页
  891. padingEvetn() {
  892. let arr =
  893. this.shiyiShow && this.patternIndex === 0
  894. ? JSON.parse(JSON.stringify(this.shiyiList))
  895. : JSON.parse(JSON.stringify(this.CurrentList));
  896. let arrs = [];
  897. if (this.selectLaiyuanBookIdList.length === 0) {
  898. arrs = arr;
  899. } else {
  900. arr.forEach((item) => {
  901. let path = item.source_courseware_id_path.split('/');
  902. if (path.length > 0 && this.selectLaiyuanBookIdList.indexOf(path[0]) > -1) {
  903. arrs.push(item);
  904. }
  905. });
  906. }
  907. this.selectCurrent = arrs.length;
  908. let newarr = arrs.splice((this.page - 1) * this.pageSize, this.pageSize);
  909. this.ShowList = JSON.parse(JSON.stringify(newarr));
  910. },
  911. // 删除脏数据
  912. removeRubbishData(data) {
  913. if (data.sentence_list.length > 0) {
  914. for (let i = data.sentence_list.length; i--; ) {
  915. if (
  916. data.sentence_list[i].sentence_fc_list.length <= 1 ||
  917. data.sentence_list[i].sentence_fc_list_word_index === -1
  918. ) {
  919. data.sentence_list.splice(i, 1);
  920. }
  921. }
  922. }
  923. },
  924. handleCurrentChange(val) {
  925. this.page = val;
  926. this.padingEvetn();
  927. },
  928. // KWIC排序
  929. KWICsortEvent(index, type) {
  930. if (this.KWIC_sortIndex == index) return;
  931. this.KWIC_sortIndex = index;
  932. // this.CurrentList = this.allList[type];
  933. // this.padingEvetn();
  934. this.getdata();
  935. },
  936. // 切换释义
  937. changeShiyi() {
  938. this.page = 1;
  939. this.padingEvetn();
  940. },
  941. // 排序
  942. sortEvent(type) {
  943. this.sortType = type;
  944. if (this.sort == 'up' || !this.sort) {
  945. this.sort = 'down';
  946. } else {
  947. this.sort = 'up';
  948. }
  949. this.getdata();
  950. this.page = 1;
  951. },
  952. // 修改大小
  953. cutSize(index) {
  954. this.sizeIndex = index;
  955. if (index == 0) {
  956. //大
  957. if (this.patternIndex == 0) {
  958. this.conSize = 24;
  959. this.pinyinSize = 12;
  960. } else {
  961. this.conSize = 20;
  962. }
  963. } else if (index == 1) {
  964. //中
  965. if (this.patternIndex == 0) {
  966. this.conSize = 20;
  967. this.pinyinSize = 12;
  968. } else {
  969. this.conSize = 17;
  970. }
  971. } else {
  972. //小
  973. if (this.patternIndex == 0) {
  974. this.conSize = 16;
  975. this.pinyinSize = 10;
  976. } else {
  977. this.conSize = 15;
  978. }
  979. }
  980. },
  981. // 切换模式
  982. cutPattern(index) {
  983. if (this.patternIndex == index) {
  984. return;
  985. }
  986. this.patternIndex = index;
  987. this.getdata();
  988. // if (this.patternIndex == 0) {
  989. // this.CurrentList = JSON.parse(JSON.stringify(this.allList.sentence_list));
  990. // } else {
  991. // this.CurrentList = JSON.parse(JSON.stringify(this.allList.sentence_list_sort_left));
  992. // }
  993. // this.padingEvetn();
  994. this.page = 1;
  995. },
  996. // 切换释义来源
  997. cutsyly(index) {
  998. if (this.rightTopIndex == index) {
  999. return;
  1000. }
  1001. this.rightTopIndex = index;
  1002. if (this.rightTopIndex == 0) {
  1003. this.rightList = this.allList.stat_list_word_definition;
  1004. } else {
  1005. this.rightList = this.allList.stat_list_sentence_source_book_series_code;
  1006. }
  1007. // if (this.rightList.length > 0) {
  1008. this.inityuan();
  1009. // }
  1010. },
  1011. },
  1012. //生命周期 - 创建完成(可以访问当前this实例)
  1013. async created() {
  1014. const _this = this;
  1015. if (this.AccessToken) {
  1016. const Mname = 'login_control-ParseAccessToken';
  1017. await getStaticContent(Mname, {
  1018. access_token: _this.AccessToken,
  1019. }).then((res) => {
  1020. res.access_token = _this.AccessToken;
  1021. setToken(res);
  1022. sessionStorage.setItem('GCLS_Token_Tc', JSON.stringify(res));
  1023. this.showPage = true;
  1024. });
  1025. await getConfigInfor();
  1026. }
  1027. localStorage.removeItem('seekPageData');
  1028. this.showPage = true;
  1029. this.getLevelList();
  1030. this.getTotalCount();
  1031. if (this.keyword && this.keyword.trim()) {
  1032. this.getdata(true);
  1033. }
  1034. },
  1035. //生命周期 - 挂载完成(可以访问DOM元素)
  1036. mounted() {},
  1037. //生命周期-创建之前
  1038. beforeCreated() {},
  1039. //生命周期-挂载之前
  1040. beforeMount() {},
  1041. //生命周期-更新之前
  1042. beforUpdate() {},
  1043. //生命周期-更新之后
  1044. updated() {},
  1045. //生命周期-销毁之前
  1046. beforeDestory() {},
  1047. //生命周期-销毁完成
  1048. destoryed() {},
  1049. //如果页面有keep-alive缓存功能,这个函数会触发
  1050. activated() {},
  1051. };
  1052. </script>
  1053. <style lang="scss" scoped>
  1054. /* @import url(); 引入css类 */
  1055. .corpus_seekpage {
  1056. .title {
  1057. margin-top: 24px;
  1058. > :nth-child(1) {
  1059. font-weight: 700;
  1060. font-size: 32px;
  1061. line-height: 38px;
  1062. color: #000000;
  1063. }
  1064. > :nth-child(2) {
  1065. font-weight: 400;
  1066. font-size: 14px;
  1067. line-height: 16px;
  1068. }
  1069. > p {
  1070. margin: 0;
  1071. text-align: center;
  1072. }
  1073. }
  1074. .seek {
  1075. margin-top: 18px;
  1076. display: flex;
  1077. justify-content: center;
  1078. height: 51px;
  1079. position: relative;
  1080. input {
  1081. width: 468px;
  1082. height: 51px;
  1083. border: 1px solid #669aff;
  1084. outline: none;
  1085. box-sizing: border-box;
  1086. padding: 0 10px;
  1087. }
  1088. button {
  1089. width: 96px;
  1090. height: 100%;
  1091. background: #669aff;
  1092. border-width: 1px 1px 1px 0px;
  1093. border-style: solid;
  1094. border-color: #669aff;
  1095. text-align: center;
  1096. font-weight: 400;
  1097. font-size: 16px;
  1098. line-height: 51px;
  1099. color: #ffffff;
  1100. cursor: pointer;
  1101. box-sizing: border-box;
  1102. }
  1103. .set_corpus {
  1104. position: absolute;
  1105. top: 16px;
  1106. }
  1107. }
  1108. .txt {
  1109. margin-top: 24px;
  1110. text-align: center;
  1111. font-weight: 400;
  1112. font-size: 16px;
  1113. line-height: 19px;
  1114. color: #000000;
  1115. opacity: 0.65;
  1116. }
  1117. .txt_imgtable {
  1118. width: 1200px;
  1119. margin: 0 auto;
  1120. .left {
  1121. position: relative;
  1122. width: 100%;
  1123. padding-bottom: 68px;
  1124. margin-right: 8px;
  1125. background: #fff;
  1126. border: 1px solid rgba(0, 0, 0, 8%);
  1127. border-radius: 0 0 8px 8px;
  1128. > .top {
  1129. display: flex;
  1130. align-items: center;
  1131. justify-content: space-between;
  1132. height: 44px;
  1133. font-size: 12px;
  1134. font-weight: 400;
  1135. color: #000;
  1136. border-bottom: 1px solid rgba(0, 0, 0, 8%);
  1137. > div {
  1138. display: flex;
  1139. align-items: center;
  1140. column-gap: 16px;
  1141. }
  1142. .KWIC_sort {
  1143. display: flex;
  1144. span {
  1145. display: inline-block;
  1146. display: flex;
  1147. align-items: center;
  1148. justify-content: center;
  1149. width: 28px;
  1150. height: 28px;
  1151. cursor: pointer;
  1152. background: #fff;
  1153. border-radius: 4px;
  1154. }
  1155. .sele {
  1156. background: #f0f0f0;
  1157. }
  1158. .sort {
  1159. img {
  1160. width: 14px;
  1161. height: 12px;
  1162. }
  1163. }
  1164. .down {
  1165. img {
  1166. width: 16px;
  1167. height: 16px;
  1168. }
  1169. }
  1170. }
  1171. .pattern {
  1172. display: flex;
  1173. align-items: center;
  1174. justify-content: center;
  1175. width: 144px;
  1176. height: 28px;
  1177. margin-left: 16px;
  1178. background: #eee;
  1179. border-radius: 4px;
  1180. > div {
  1181. width: 68px;
  1182. height: 24px;
  1183. font-size: 12px;
  1184. font-weight: 400;
  1185. line-height: 24px;
  1186. color: #888;
  1187. text-align: center;
  1188. cursor: pointer;
  1189. border-radius: 2px;
  1190. }
  1191. .sele {
  1192. color: #000;
  1193. background: #fff;
  1194. box-shadow: 0 2px 2px rgba(0, 0, 0, 8%);
  1195. }
  1196. }
  1197. .refresh {
  1198. display: flex;
  1199. align-items: center;
  1200. justify-content: center;
  1201. width: 28px;
  1202. height: 28px;
  1203. cursor: pointer;
  1204. background: #eee;
  1205. border-radius: 4px;
  1206. img {
  1207. width: 16px;
  1208. height: 16px;
  1209. }
  1210. }
  1211. .size {
  1212. margin-right: 12px;
  1213. span {
  1214. padding: 4px;
  1215. font-size: 14px;
  1216. cursor: pointer;
  1217. }
  1218. .sele {
  1219. background: #e6e6e6;
  1220. border-radius: 4px;
  1221. }
  1222. }
  1223. }
  1224. .lang_sort {
  1225. display: flex;
  1226. align-items: center;
  1227. justify-content: center;
  1228. width: max-content;
  1229. cursor: pointer;
  1230. margin-right: 16px;
  1231. border-radius: 20px;
  1232. border: 1px solid #e5e6eb;
  1233. padding: 4px 12px;
  1234. font-size: 14px;
  1235. &.active {
  1236. border-color: #4992ff;
  1237. background: #4992ff;
  1238. color: #fff;
  1239. }
  1240. img {
  1241. width: 16px;
  1242. height: 16px;
  1243. margin-left: 2px;
  1244. }
  1245. }
  1246. .main {
  1247. // height: 95%;
  1248. .list {
  1249. margin-top: 16px;
  1250. .one {
  1251. padding: 0 16px;
  1252. margin-bottom: 8px;
  1253. .top {
  1254. display: flex;
  1255. // align-items: center;
  1256. // flex-flow: wrap;
  1257. width: 100%;
  1258. .number {
  1259. flex-shrink: 0;
  1260. width: 22px;
  1261. margin-right: 8px;
  1262. font-size: 14px;
  1263. font-weight: 400;
  1264. line-height: 21px;
  1265. color: rgba(0, 0, 0, 30%);
  1266. text-align: right;
  1267. &-1-false {
  1268. margin-top: 3px;
  1269. }
  1270. &-0-true {
  1271. margin-top: 21px;
  1272. }
  1273. &-0-false {
  1274. margin-top: 5px;
  1275. }
  1276. &-2-true {
  1277. margin-top: 17px;
  1278. }
  1279. &-2-false {
  1280. margin-top: 1px;
  1281. }
  1282. }
  1283. img {
  1284. width: 16px;
  1285. height: 16px;
  1286. margin-right: 8px;
  1287. cursor: pointer;
  1288. &.speaker-1-false {
  1289. margin-top: 6px;
  1290. }
  1291. &.speaker-0-true {
  1292. margin-top: 24px;
  1293. }
  1294. &.speaker-0-false {
  1295. margin-top: 8px;
  1296. }
  1297. &.speaker-2-true {
  1298. margin-top: 20px;
  1299. }
  1300. &.speaker-2-false {
  1301. margin-top: 4px;
  1302. }
  1303. }
  1304. .words {
  1305. // display: flex;
  1306. // align-items: flex-end;
  1307. // flex-flow: wrap;
  1308. font-family: 'FZJCGFKTK';
  1309. word-break: break-all;
  1310. > div {
  1311. .pinyin {
  1312. margin-bottom: 2px;
  1313. font-family: 'League';
  1314. font-size: 12px;
  1315. font-weight: 500;
  1316. color: rgba(0, 0, 0, 50%);
  1317. text-align: center;
  1318. }
  1319. .con {
  1320. font-family: 'FZJCGFKTK';
  1321. font-size: 20px;
  1322. font-weight: 400;
  1323. color: #000;
  1324. text-align: center;
  1325. }
  1326. }
  1327. }
  1328. .shiyi {
  1329. font-size: 12px;
  1330. font-weight: 400;
  1331. line-height: 24px;
  1332. color: #48a3e6;
  1333. font-family: 'robot', 'FZJCGFKTK';
  1334. &-0 {
  1335. line-height: 32px;
  1336. }
  1337. &-1 {
  1338. line-height: 28px;
  1339. }
  1340. }
  1341. }
  1342. .bottom {
  1343. font-size: 12px;
  1344. font-weight: 400;
  1345. line-height: 150%;
  1346. color: rgba(0, 0, 0, 30%);
  1347. text-align: right;
  1348. }
  1349. }
  1350. .kwic_one {
  1351. display: flex;
  1352. align-items: center;
  1353. padding: 0 16px;
  1354. > :nth-child(1) {
  1355. justify-content: flex-end;
  1356. width: 16px;
  1357. margin-right: 16px;
  1358. }
  1359. .laiyuan {
  1360. width: 117px;
  1361. overflow: hidden;
  1362. font-size: 14px;
  1363. font-weight: 400;
  1364. line-height: 22px;
  1365. color: rgba(0, 0, 0, 65%);
  1366. text-overflow: ellipsis;
  1367. white-space: nowrap;
  1368. }
  1369. .word {
  1370. display: flex;
  1371. justify-content: center;
  1372. // width: 361px;
  1373. height: 22px;
  1374. margin-left: 16px;
  1375. overflow: hidden;
  1376. font-family: 'FZJCGFKTK';
  1377. font-size: 14px;
  1378. font-weight: 400;
  1379. line-height: 22px;
  1380. color: #000;
  1381. white-space: nowrap;
  1382. opacity: 1;
  1383. > :nth-child(1) {
  1384. // direction: rtl;
  1385. // unicode-bidi: plaintext;
  1386. // text-align: right;
  1387. display: flex;
  1388. justify-content: flex-end;
  1389. width: 472px;
  1390. overflow: hidden;
  1391. white-space: nowrap;
  1392. }
  1393. > :nth-child(3) {
  1394. width: 472px;
  1395. overflow: hidden;
  1396. text-align: left;
  1397. white-space: nowrap;
  1398. direction: ltr;
  1399. unicode-bidi: plaintext;
  1400. }
  1401. }
  1402. }
  1403. }
  1404. .page {
  1405. position: absolute;
  1406. bottom: 0;
  1407. box-sizing: border-box;
  1408. display: flex;
  1409. justify-content: space-between;
  1410. align-items: center;
  1411. width: 100%;
  1412. height: 64px;
  1413. border-top: 1px solid rgba(0, 0, 0, 0.08);
  1414. padding: 16px;
  1415. .text {
  1416. display: flex;
  1417. align-items: center;
  1418. font-size: 14px;
  1419. font-weight: 400;
  1420. line-height: 22px;
  1421. color: rgba(0, 0, 0, 60%);
  1422. text-align: center;
  1423. }
  1424. }
  1425. }
  1426. }
  1427. .right {
  1428. width: 100%;
  1429. padding-bottom: 39px;
  1430. background: #fff;
  1431. border: 1px solid rgba(0, 0, 0, 8%);
  1432. border-radius: 8px;
  1433. margin-top: 16px;
  1434. .top {
  1435. display: flex;
  1436. align-items: center;
  1437. height: 44px;
  1438. // border-bottom: 1px solid rgba(0, 0, 0, 8%);
  1439. > div {
  1440. display: flex;
  1441. align-items: center;
  1442. justify-content: center;
  1443. // width: 84px;
  1444. padding: 0 2px;
  1445. height: 28px;
  1446. margin-left: 16px;
  1447. background: #eee;
  1448. border-radius: 4px;
  1449. > div {
  1450. width: 40px;
  1451. height: 24px;
  1452. font-size: 12px;
  1453. font-weight: 400;
  1454. line-height: 24px;
  1455. color: #888;
  1456. text-align: center;
  1457. cursor: pointer;
  1458. border-radius: 2px;
  1459. }
  1460. .sele {
  1461. color: #000;
  1462. background: #fff;
  1463. box-shadow: 0 2px 2px rgba(0, 0, 0, 8%);
  1464. }
  1465. }
  1466. }
  1467. .bottom {
  1468. display: flex;
  1469. }
  1470. .list {
  1471. width: 598px;
  1472. margin: 0 auto;
  1473. max-height: 1450px;
  1474. overflow: auto;
  1475. .one {
  1476. display: flex;
  1477. justify-content: space-between;
  1478. padding: 12px;
  1479. font-size: 14px;
  1480. font-weight: 400;
  1481. line-height: 22px;
  1482. color: #333;
  1483. cursor: pointer;
  1484. border-bottom: 1px solid #eee;
  1485. > :nth-child(1) {
  1486. text-align: left;
  1487. }
  1488. > div {
  1489. width: 186px;
  1490. text-align: center;
  1491. }
  1492. }
  1493. .all {
  1494. font-size: 14px;
  1495. font-weight: 600;
  1496. line-height: 22px;
  1497. color: #333;
  1498. border-bottom: none;
  1499. }
  1500. }
  1501. }
  1502. }
  1503. .cx-list {
  1504. width: 1200px;
  1505. margin: 12px auto 0 auto;
  1506. .cx-list-box {
  1507. display: flex;
  1508. padding: 8px 16px;
  1509. align-items: center;
  1510. gap: 16px;
  1511. border-radius: 8px 8px 0px 0px;
  1512. border: 1px solid #ebebeb;
  1513. background: #f7f7f7;
  1514. border-bottom: none;
  1515. width: max-content;
  1516. color: #000;
  1517. font-size: 16px;
  1518. line-height: 24px;
  1519. label {
  1520. display: flex;
  1521. padding: 4px 16px;
  1522. flex-wrap: wrap;
  1523. border-radius: 4px;
  1524. gap: 8px;
  1525. background: #fff;
  1526. color: #007eff;
  1527. font-size: 14px;
  1528. font-weight: 600;
  1529. line-height: 22px;
  1530. > :nth-child(2) {
  1531. color: #000;
  1532. font-weight: 400;
  1533. }
  1534. }
  1535. }
  1536. }
  1537. }
  1538. </style>
  1539. <style lang="scss">
  1540. .result {
  1541. .el-switch__core {
  1542. width: 26px !important;
  1543. height: 16px;
  1544. }
  1545. .el-switch__core::after {
  1546. top: 3px;
  1547. width: 8px;
  1548. height: 8px;
  1549. }
  1550. .el-switch.is-checked .el-switch__core::after {
  1551. margin-left: -10px;
  1552. }
  1553. .el-switch__label.is-active {
  1554. color: #000;
  1555. }
  1556. .page {
  1557. .el-pagination.is-background .el-pager li:not(.disabled).active {
  1558. background-color: #0052d9;
  1559. }
  1560. .el-pager li {
  1561. background: #fff;
  1562. border: 1px solid #dcdcdc;
  1563. border-radius: 3px;
  1564. }
  1565. }
  1566. }
  1567. .el-loading-mask {
  1568. z-index: 200000 !important;
  1569. }
  1570. .checkAllCheckbox {
  1571. width: 100%;
  1572. padding: 0 20px;
  1573. height: 34px;
  1574. line-height: 34px;
  1575. &:hover {
  1576. background-color: #f5f7fa;
  1577. }
  1578. .el-checkbox__input {
  1579. display: none;
  1580. }
  1581. .el-checkbox__label {
  1582. padding: 0;
  1583. }
  1584. }
  1585. .selectBook {
  1586. .el-tag {
  1587. max-width: 90px;
  1588. }
  1589. }
  1590. </style>