Result.vue 53 KB

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