seekPage.vue 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228
  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 style="color: #de4444">{{ oldKey }}</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. <template v-if="editLiju">
  62. <el-row v-if="editLijuFlag">
  63. <el-button
  64. type="info"
  65. class="edit-cancle"
  66. @click="
  67. editLijuFlag = false;
  68. page = 1;
  69. padingEvetn();
  70. "
  71. >取消</el-button
  72. >
  73. <el-button
  74. type="primary"
  75. class="edit-sure"
  76. @click="
  77. editLijuFlag = false;
  78. page = 1;
  79. padingEvetn();
  80. "
  81. >完成</el-button
  82. ></el-row
  83. >
  84. <el-button
  85. v-else
  86. class="edit-liju"
  87. @click="
  88. editLijuFlag = true;
  89. selectDelLijuIds = [];
  90. page = 1;
  91. padingEvetn();
  92. "
  93. >例句编辑模式</el-button
  94. >
  95. </template>
  96. </div>
  97. <div
  98. class="txt_imgtable"
  99. v-if="showResult"
  100. :style="{ height: editLijuFlag ? '0' : '', overflow: editLijuFlag ? 'hidden' : '' }"
  101. >
  102. <div class="left">
  103. <div class="top">
  104. <div>
  105. <div class="pattern">
  106. <div :class="[patternIndex == 0 ? 'sele' : '']" @click="cutPattern(0)">引语模式</div>
  107. <div :class="[patternIndex == 1 ? 'sele' : '']" @click="cutPattern(1)">KWIC模式</div>
  108. </div>
  109. <template v-if="patternIndex == 1">
  110. <div class="KWIC_sort">
  111. <span
  112. :class="['sort', KWIC_sortIndex == 0 ? 'sele' : '']"
  113. @click="KWICsortEvent(0, 'sentence_list_sort_left')"
  114. >
  115. <img src="../../assets/teacherdev/analys-right.png" alt="" />
  116. </span>
  117. <span
  118. :class="['sort', KWIC_sortIndex == 1 ? 'sele' : '']"
  119. @click="KWICsortEvent(1, 'sentence_list_sort_mid')"
  120. >
  121. <img src="../../assets/teacherdev/analys-center.png" alt="" />
  122. </span>
  123. <span
  124. :class="['sort', KWIC_sortIndex == 2 ? 'sele' : '']"
  125. @click="KWICsortEvent(2, 'sentence_list_sort_right')"
  126. >
  127. <img src="../../assets/teacherdev/analys-left.png" alt="" />
  128. </span>
  129. </div>
  130. </template>
  131. <div class="refresh" @click="handleRefresh">
  132. <img src="../../assets/teacherdev/refresh.png" alt="" />
  133. </div>
  134. <template v-if="patternIndex == 0">
  135. <div class="lang_sort" :class="[sortType === 'length' ? 'active' : '']" @click="sortEvent('length')">
  136. 按长度
  137. <img
  138. v-if="sort == 'down' && sortType === 'length'"
  139. src="../../assets/teacherdev/ylk-sort-up.png"
  140. alt=""
  141. />
  142. <img
  143. v-else-if="sort == 'up' && sortType === 'length'"
  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. </template>
  150. <template v-else>
  151. <div style="display: flex">
  152. <div
  153. class="lang_sort"
  154. :class="[sortType === 'zflength' ? 'active' : '']"
  155. @click="sortEvent('zflength')"
  156. >
  157. 按长度
  158. <img
  159. v-if="sort == 'down' && sortType === 'zflength'"
  160. src="../../assets/teacherdev/ylk-sort-up.png"
  161. alt=""
  162. />
  163. <img
  164. v-else-if="sort == 'up' && sortType === 'zflength'"
  165. src="../../assets/teacherdev/ylk-sort-down.png"
  166. alt=""
  167. />
  168. <img v-else src="../../assets/teacherdev/ylk-sort-no.png" alt="" />
  169. </div>
  170. <div
  171. class="lang_sort"
  172. :class="[sortType === 'pclength' ? 'active' : '']"
  173. @click="sortEvent('pclength')"
  174. >
  175. 按频次
  176. <img
  177. v-if="sort == 'down' && sortType === 'pclength'"
  178. src="../../assets/teacherdev/ylk-sort-up.png"
  179. alt=""
  180. />
  181. <img
  182. v-else-if="sort == 'up' && sortType === 'pclength'"
  183. src="../../assets/teacherdev/ylk-sort-down.png"
  184. alt=""
  185. />
  186. <img v-else src="../../assets/teacherdev/ylk-sort-no.png" alt="" />
  187. </div>
  188. </div>
  189. </template>
  190. </div>
  191. <div class="size">
  192. <template v-if="patternIndex == 0">
  193. <!-- <el-switch
  194. v-model="pinyinShow"
  195. active-text="拼音"
  196. active-color="#424242"
  197. style="margin-left: 24px"
  198. >
  199. </el-switch> -->
  200. <el-switch
  201. v-model="shiyiShow"
  202. active-text="释义"
  203. active-color="#424242"
  204. style="margin-left: 20px"
  205. @change="changeShiyi"
  206. >
  207. </el-switch>
  208. </template>
  209. <el-switch v-model="fenciShow" active-text="分词" active-color="#424242" style="margin-left: 8px">
  210. </el-switch>
  211. <span :class="[sizeIndex == 0 ? 'sele' : '']" @click="cutSize(0)">大</span>
  212. <span :class="[sizeIndex == 1 ? 'sele' : '']" @click="cutSize(1)">中</span>
  213. <span :class="[sizeIndex == 2 ? 'sele' : '']" @click="cutSize(2)">小</span>
  214. </div>
  215. </div>
  216. <div class="main">
  217. <div class="list">
  218. <template v-if="patternIndex == 0">
  219. <div v-for="(item, i) in ShowList" :key="i + 'sentence'" class="one">
  220. <div class="top">
  221. <!--
  222. :class="['number-' + sizeIndex + '-' + pinyinShow]"
  223. -->
  224. <div class="number">{{ item.number }}.</div>
  225. <!--
  226. :class="['speaker-' + sizeIndex + '-' + pinyinShow]"
  227. -->
  228. <!-- <img src="../../assets/teacherdev/speaker-one.png" alt="" /> -->
  229. <div class="words">
  230. <template v-if="item.sentence_fc_list_style && item.sentence_fc_list_style.length > 1">
  231. <span
  232. :style="{
  233. fontSize: conSize + 'px',
  234. padding: fenciShow ? '0 2px' : '',
  235. }"
  236. v-for="(items, indexs) in item.sentence_fc_list_style"
  237. :key="indexs"
  238. v-html="items"
  239. ></span>
  240. </template>
  241. <template v-else>
  242. <span
  243. :style="{
  244. fontSize: conSize + 'px',
  245. padding: fenciShow ? '0 2px' : '',
  246. }"
  247. v-html="item.res"
  248. ></span>
  249. </template>
  250. <template v-if="shiyiShow && item.word_definition_list.length > 0">
  251. <span class="shiyi">
  252. <span v-html="item.word_definition_list.join('; ')"> </span>
  253. </span>
  254. </template>
  255. </div>
  256. <!--
  257. :class="['shiyi-' + sizeIndex]"
  258. -->
  259. </div>
  260. <el-tooltip effect="dark" placement="bottom">
  261. <div slot="content">
  262. {{
  263. item.source_courseware_name_path_short
  264. ? item.source_courseware_name_path_short
  265. : item.source_courseware_name_path
  266. }}
  267. </div>
  268. <div class="bottom">
  269. {{
  270. item.source_courseware_name_path_short
  271. ? item.source_courseware_name_path_short
  272. : item.source_courseware_name_path
  273. }}
  274. </div>
  275. </el-tooltip>
  276. <!-- <div class="bottom">
  277. {{
  278. item.source_courseware_name_path_short
  279. ? item.source_courseware_name_path_short
  280. : item.source_courseware_name_path
  281. }}
  282. </div> -->
  283. </div>
  284. </template>
  285. <template v-else>
  286. <div v-for="(item, index) in ShowList" :key="'kwic' + index" class="kwic_one">
  287. <div class="number">{{ item.number }}</div>
  288. <div
  289. class="word"
  290. :style="{
  291. fontSize: conSize + 'px',
  292. }"
  293. >
  294. <div v-for="(txt, indexs) in item.resArr" :key="indexs">
  295. <div
  296. :style="{ padding: fenciShow ? '0 2px' : '', display: 'inline-block' }"
  297. v-for="(txts, indext) in txt"
  298. :key="indext"
  299. >
  300. <!-- <span v-html="txts"></span> -->
  301. <template v-if="sortType === 'pclength' && (KWIC_sortIndex === 0 || KWIC_sortIndex === 2)">
  302. <template v-if="indexs === 0 && KWIC_sortIndex === 0">
  303. <el-tooltip effect="dark" placement="bottom" style="display: inline">
  304. <div slot="content">
  305. {{
  306. item.adjoin_fc_frequency_list_left && item.adjoin_fc_frequency_list_left[indext]
  307. ? item.adjoin_fc_frequency_list_left[indext]
  308. : 1
  309. }}
  310. </div>
  311. <div class="">
  312. <span v-html="txts"></span>
  313. </div>
  314. </el-tooltip>
  315. </template>
  316. <template v-else-if="indexs === 2 && KWIC_sortIndex === 2">
  317. <el-tooltip effect="dark" placement="bottom" style="display: inline">
  318. <div slot="content">
  319. {{
  320. item.adjoin_fc_frequency_list_right && item.adjoin_fc_frequency_list_right[indext]
  321. ? item.adjoin_fc_frequency_list_right[indext]
  322. : 1
  323. }}
  324. </div>
  325. <div class="">
  326. <span v-html="txts"></span>
  327. </div>
  328. </el-tooltip>
  329. </template>
  330. <template v-else>
  331. <span v-html="txts"></span>
  332. </template>
  333. </template>
  334. <template v-else>
  335. <span v-html="txts"></span>
  336. </template>
  337. </div>
  338. </div>
  339. </div>
  340. <el-tooltip effect="dark" placement="bottom">
  341. <div slot="content">
  342. {{
  343. item.source_courseware_name_path_short
  344. ? item.source_courseware_name_path_short
  345. : item.source_courseware_name_path
  346. }}
  347. </div>
  348. <div class="laiyuan">
  349. {{
  350. item.source_courseware_name_path_short
  351. ? item.source_courseware_name_path_short
  352. : item.source_courseware_name_path
  353. }}
  354. </div>
  355. </el-tooltip>
  356. </div>
  357. </template>
  358. </div>
  359. <div class="page">
  360. <el-pagination
  361. background
  362. @current-change="handleCurrentChange"
  363. :current-page.sync="page"
  364. :page-size="pageSize"
  365. layout="prev, pager, next"
  366. :total="selectCurrent ? selectCurrent : CurrentList.length"
  367. :pager-count="5"
  368. >
  369. </el-pagination>
  370. <span class="text">
  371. 共 {{ selectCurrent ? selectCurrent : CurrentList.length }} 条
  372. {{
  373. patternIndex === 0 && selectLaiyuanBookIdList.length === 0 && !shiyiShow
  374. ? ' 命中 ' + scoreAHitNumber + ' 次'
  375. : ''
  376. }}
  377. </span>
  378. </div>
  379. </div>
  380. </div>
  381. <div class="right">
  382. <div class="top">
  383. <div>
  384. <div
  385. v-if="allList.stat_list_word_definition && allList.stat_list_word_definition.length > 0"
  386. :class="[rightTopIndex == 0 ? 'sele' : '']"
  387. @click="cutsyly(0)"
  388. >
  389. 释义
  390. </div>
  391. <div :class="[rightTopIndex == 1 ? 'sele' : '']" @click="cutsyly(1)">来源</div>
  392. </div>
  393. </div>
  394. <div class="bottom">
  395. <div id="shanxing_main" style="width: 720px; height: 600px"></div>
  396. <div class="list" v-if="rightList.length > 0">
  397. <div class="one all" style="border-bottom: 1px solid #eee">
  398. <div style="width: 60%">{{ rightTopIndex == 1 ? '来源' : '释义' }}</div>
  399. <div style="width: 20%">
  400. <span>出现次数</span>
  401. </div>
  402. <div style="width: 20%">
  403. <span>占比</span>
  404. </div>
  405. </div>
  406. <div
  407. v-for="(item, i) in rightList"
  408. :key="i + 'right'"
  409. class="one"
  410. :style="{
  411. borderBottom: i == rightList.length - 1 ? 'none' : '1px solid #eeeeee',
  412. backgroundColor:
  413. selectLaiyuanBookIdList.indexOf(item.book_id) > -1 ||
  414. selectShiyiBookIdList.indexOf(item.definition) > -1
  415. ? '#F2F3F5'
  416. : '',
  417. }"
  418. @mouseover="gaolangbzt(i, 'shanxing_main')"
  419. @mouseout="closegaolangbzt(i, 'shanxing_main')"
  420. @click="handleBookLiju(item, rightTopIndex)"
  421. >
  422. <div style="width: 60%">
  423. <span></span>
  424. <span v-html="item.book_name"></span>
  425. </div>
  426. <div style="width: 20%">
  427. <span>{{ item.count }}</span>
  428. </div>
  429. <div style="width: 20%">
  430. <span>{{ item.percent }}%</span>
  431. </div>
  432. </div>
  433. <div class="one all">
  434. <div style="width: 60%">
  435. <span></span>
  436. <span>合计</span>
  437. </div>
  438. <div style="width: 20%">
  439. <span>{{ allNumber }}</span>
  440. </div>
  441. <div style="width: 20%">
  442. <span>{{ rightTopIndex == 1 ? allPercent.toFixed(2) : '100.00' }}%</span>
  443. </div>
  444. </div>
  445. </div>
  446. </div>
  447. </div>
  448. </div>
  449. <div class="edit-liju-box" v-if="editLijuFlag === true && showResult">
  450. <div class="top">
  451. <div>
  452. <span class="select-number">已选 {{ selectDelLijuIds.length }}</span>
  453. <el-button type="danger" plain @click="handleDelLiju"><i class="el-icon-delete"></i>删除选中</el-button>
  454. </div>
  455. <el-button type="primary" plain @click="handleEditLiju()"><i class="el-icon-plus"></i>增加例句</el-button>
  456. </div>
  457. <div class="main">
  458. <div class="list">
  459. <div v-for="(item, i) in ShowList" :key="i + 'sentence'" class="one">
  460. <div class="top">
  461. <!--
  462. :class="['number-' + sizeIndex + '-' + pinyinShow]"
  463. -->
  464. <el-checkbox v-model="selectDelLijuIds" :label="item.sentence_id"><br /></el-checkbox>
  465. <div class="number">{{ item.number }}.</div>
  466. <!--
  467. :class="['speaker-' + sizeIndex + '-' + pinyinShow]"
  468. -->
  469. <!-- <img src="../../assets/teacherdev/speaker-one.png" alt="" /> -->
  470. <div class="words">
  471. <template v-if="item.sentence_fc_list_style && item.sentence_fc_list_style.length > 1">
  472. <span
  473. :style="{
  474. fontSize: conSize + 'px',
  475. }"
  476. v-for="(items, indexs) in item.sentence_fc_list_style"
  477. :key="indexs"
  478. v-html="items"
  479. ></span>
  480. </template>
  481. <template v-else>
  482. <span
  483. :style="{
  484. fontSize: conSize + 'px',
  485. padding: fenciShow ? '0 2px' : '',
  486. }"
  487. v-html="item.res"
  488. ></span>
  489. </template>
  490. <template v-if="shiyiShow && item.word_definition_list.length > 0">
  491. <span class="shiyi">
  492. <span v-html="item.word_definition_list.join('; ')"> </span>
  493. </span>
  494. </template>
  495. </div>
  496. <!--
  497. :class="['shiyi-' + sizeIndex]"
  498. -->
  499. </div>
  500. <el-tooltip effect="dark" placement="bottom">
  501. <div slot="content">
  502. {{
  503. item.source_courseware_name_path_short
  504. ? item.source_courseware_name_path_short
  505. : item.source_courseware_name_path
  506. }}
  507. </div>
  508. <div class="bottom">
  509. {{
  510. item.source_courseware_name_path_short
  511. ? item.source_courseware_name_path_short
  512. : item.source_courseware_name_path
  513. }}
  514. </div>
  515. </el-tooltip>
  516. <i class="el-icon-edit-outline" @click="handleEditLiju(item)"></i>
  517. </div>
  518. </div>
  519. <div class="page">
  520. <el-pagination
  521. background
  522. @current-change="handleCurrentChange"
  523. :current-page.sync="page"
  524. :page-size="pageSize"
  525. layout="prev, pager, next"
  526. :total="allList.sentence_list.length"
  527. :pager-count="5"
  528. >
  529. </el-pagination>
  530. <span class="text"> 共 {{ allList.sentence_list.length }} 条 </span>
  531. </div>
  532. </div>
  533. </div>
  534. <el-dialog
  535. title=""
  536. :visible.sync="showEditLijuFlag"
  537. width="365px"
  538. :before-close="handleClose"
  539. :modal="false"
  540. v-if="actvieEditLijuItem"
  541. class="seekpage-dialog"
  542. >
  543. <label>{{ actvieEditLijuItem.sentence_id ? '修改例句' : '增加例句' }}</label>
  544. <el-input v-model="actvieEditLijuItem.sentence"></el-input>
  545. <b class="tips">关键字不能删除,分词用两个空格区分。</b>
  546. <label>来源</label>
  547. <el-input v-model="actvieEditLijuItem.source_path"></el-input>
  548. <b class="tips">路径间用“/”隔开。</b>
  549. <label>关键字</label>
  550. <p>{{ keyword }}</p>
  551. <label>词性</label>
  552. <el-input v-model="actvieEditLijuItem.cixing"></el-input>
  553. <b class="tips">多个词性用逗号分割</b>
  554. <label>释义</label>
  555. <el-input type="textarea" v-model="actvieEditLijuItem.definition_list"></el-input>
  556. <b class="tips">多条释义另起一行</b>
  557. <span slot="footer" class="dialog-footer">
  558. <el-button @click="handleClose">取 消</el-button>
  559. <el-button type="primary" @click="save" :loading="loading">确 定</el-button>
  560. </span>
  561. </el-dialog>
  562. </div>
  563. </template>
  564. <script>
  565. //这里可以导入其它文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  566. //例如:import 《组件名称》from ‘《组件路径》';
  567. import Header from '@/components/Header';
  568. import { getConfigInfor } from '@/utils/index';
  569. import { getStaticContent, BookgetContent, LearnWebSI } from '@/api/api';
  570. import { setToken, getToken } from '@/utils/auth';
  571. import * as echarts from 'echarts';
  572. export default {
  573. name: 'corpus_seekpage',
  574. //import引入的组件需要注入到对象中才能使用
  575. components: {
  576. Header,
  577. },
  578. props: {},
  579. data() {
  580. //这里存放数据
  581. return {
  582. keyword: this.$route.query.keyword ? this.$route.query.keyword : null,
  583. oldKey: '',
  584. AccessToken: this.$route.query.AccessToken,
  585. AppID: this.$route.query.AppID,
  586. showPage: false,
  587. userID: this.$route.query.UserID ? this.$route.query.UserID : '',
  588. book_count: 0,
  589. word_count: 0,
  590. sentence_count: 0,
  591. visibleOption: false,
  592. corpus: {
  593. difficlty: null,
  594. scope: [],
  595. sentenceStart: null,
  596. sentenceEnd: null,
  597. },
  598. scopeList: [
  599. {
  600. value: '',
  601. label: '全部',
  602. },
  603. ],
  604. page: 1,
  605. pageSize: 30,
  606. shiyiShow: false,
  607. fenciShow: false,
  608. pinyinShow: true,
  609. JFIndex: 0,
  610. hzData: [],
  611. ShowHzData: [],
  612. loading: true,
  613. lang: null,
  614. unfold: true,
  615. patternIndex: 0,
  616. rightTopIndex: 0,
  617. sizeIndex: 1,
  618. sort: '',
  619. sortType: '',
  620. rightList: [],
  621. KWIC_sortIndex: 0,
  622. allNumber: 0,
  623. allPercent: 0,
  624. conSize: 20,
  625. pinyinSize: 12,
  626. allList: [],
  627. CurrentList: [],
  628. ShowList: [],
  629. chsFhList: [',', '。', '”', ':', '》', '《', '?', '!', ';'],
  630. scoreAHitNumber: 0,
  631. checkAll: false,
  632. isIndeterminate: true,
  633. allLevels: [],
  634. levelList: [],
  635. selectLaiyuanBookIdList: [], // 选中右侧来源书籍列表id
  636. selectShiyiBookIdList: [], // 选中右侧释义书籍列表id
  637. selectCurrent: 0,
  638. showResult: false,
  639. shiyiList: [], //含有释义例句列表
  640. bookListObj: {}, //书籍id和名称对应关系
  641. bookSourceObj: {}, //书籍来源id对应关系
  642. editLiju: false, // 是否有编辑例句权限
  643. editLijuFlag: false, // 编辑例句模式
  644. selectDelLijuIds: [], // 选中删除例句id数组
  645. actvieEditLijuItem: null,
  646. showEditLijuFlag: false,
  647. };
  648. },
  649. //计算属性 类似于data概念
  650. computed: {},
  651. //监控data中数据变化
  652. watch: {},
  653. //方法集合
  654. methods: {
  655. downSeek(e) {
  656. if (e.keyCode == 13) {
  657. this.getdata(true);
  658. }
  659. },
  660. getTotalCount() {
  661. const Mname = 'book-data_stat-GetBookWordExampleSentenceTotalCount';
  662. BookgetContent(Mname, {}).then((res) => {
  663. if (res.status === 1) {
  664. this.book_count = res.book_count;
  665. this.word_count = res.word_count;
  666. this.sentence_count = res.example_sentence_count;
  667. }
  668. });
  669. },
  670. // 存储句长信息
  671. sureCorpus() {
  672. this.visibleOption = false;
  673. this.getdata(true);
  674. // if (this.seekOptions) this.seekresult();
  675. },
  676. // 获取上架教材列表
  677. getLevelList() {
  678. this.allLevels = [];
  679. this.levelList = [];
  680. this.bookListObj = {};
  681. BookgetContent('book-book_manager-GetBookList', {
  682. publish_status: 1,
  683. }).then((res) => {
  684. this.loading = false;
  685. this.levelList = [];
  686. if (res.status === 1) {
  687. res.book_list.forEach((item) => {
  688. item.value = item.id;
  689. item.label = item.name;
  690. this.allLevels.push(item.id);
  691. this.$set(this.bookListObj, item.id, item.name);
  692. });
  693. // this.levelList = this.levelList.concat(res.book_list);
  694. let tempdata = {};
  695. res.book_list.forEach((str) => {
  696. let sort = '';
  697. if (str.name.indexOf('发展汉语') > -1) {
  698. if (str.name.indexOf('初级') > -1) {
  699. sort += '1';
  700. } else if (str.name.indexOf('中级') > -1) {
  701. sort += '2';
  702. } else if (str.name.indexOf('高级') > -1) {
  703. sort += '3';
  704. }
  705. if (str.name.indexOf('综合') > -1) {
  706. sort += '1';
  707. } else if (str.name.indexOf('听力') > -1) {
  708. sort += '2';
  709. } else if (str.name.indexOf('口语') > -1) {
  710. sort += '3';
  711. } else if (str.name.indexOf('阅读') > -1) {
  712. sort += '4';
  713. } else if ((str.name.indexOf('写作') > -1) | (str.name.indexOf('读写') > -1)) {
  714. sort += '5';
  715. }
  716. }
  717. str.sort = Number(sort);
  718. if (tempdata[str.series_code] != null) {
  719. tempdata[str.series_code].push(str);
  720. } else {
  721. let every = [];
  722. every.push(str);
  723. tempdata[str.series_code] = every;
  724. }
  725. });
  726. for (const key in tempdata) {
  727. let obj = {
  728. value: tempdata[key][0].series_code,
  729. label: tempdata[key][0].series_code ? tempdata[key][0].series_code : '未分类',
  730. children: tempdata[key].sort(this.compare('sort')),
  731. };
  732. this.levelList.push(obj);
  733. }
  734. }
  735. });
  736. },
  737. compare(property) {
  738. return function (a, b) {
  739. var value1 = a[property];
  740. var value2 = b[property];
  741. return value1 - value2;
  742. };
  743. },
  744. getrightListdata() {
  745. this.inityuan();
  746. },
  747. inityuan() {
  748. var chartDom = document.getElementById('shanxing_main');
  749. var myChart = echarts.init(chartDom);
  750. var option;
  751. this.allNumber = 0;
  752. this.allPercent = 0;
  753. let newdata = JSON.parse(JSON.stringify(this.rightList));
  754. newdata.forEach((item) => {
  755. this.allNumber += item.count;
  756. this.allPercent += item.percent;
  757. let percent = item.percent;
  758. item.value = item.count;
  759. if (percent % 1 == 0) {
  760. item.name = item.book_name + ' ' + percent + '%';
  761. } else {
  762. item.name = item.book_name + ' ' + percent.toFixed(2) + '%';
  763. }
  764. });
  765. if (this.rightTopIndex === 1) {
  766. let data = [];
  767. let tempdata = {};
  768. if (this.corpus.scope.length === 0) {
  769. this.levelList.forEach((item) => {
  770. let obj = {
  771. name: item.label,
  772. children: [],
  773. };
  774. item.children.forEach((items) => {
  775. let childObj = {
  776. name: '',
  777. value: 0,
  778. };
  779. if (this.bookSourceObj[items.id]) {
  780. childObj.name = items.name + ' ' + this.bookSourceObj[items.id].percent + '%';
  781. childObj.value = this.bookSourceObj[items.id].count;
  782. }
  783. obj.children.push(childObj);
  784. });
  785. data.push(obj);
  786. });
  787. } else {
  788. this.corpus.scope.forEach((str) => {
  789. if (!tempdata[str[0]]) {
  790. let obj = {
  791. name: str[0],
  792. children: [],
  793. };
  794. tempdata[str[0]] = obj;
  795. }
  796. let childObj = {
  797. name: '',
  798. value: 0,
  799. };
  800. if (this.bookSourceObj[str[1]]) {
  801. childObj.name = this.bookSourceObj[str[1]].book_name + ' ' + this.bookSourceObj[str[1]].percent + '%';
  802. childObj.value = this.bookSourceObj[str[1]].count;
  803. }
  804. tempdata[str[0]].children.push(childObj);
  805. });
  806. for (const key in tempdata) {
  807. data.push(tempdata[key]);
  808. }
  809. }
  810. option = {
  811. title: {
  812. text: '',
  813. subtext: '',
  814. textStyle: {
  815. fontSize: 14,
  816. align: 'center',
  817. },
  818. subtextStyle: {
  819. align: 'center',
  820. },
  821. sublink: '',
  822. },
  823. series: {
  824. type: 'sunburst',
  825. data: data,
  826. radius: [0, '95%'],
  827. sort: undefined,
  828. emphasis: {
  829. focus: 'ancestor',
  830. },
  831. levels: [
  832. {},
  833. {
  834. r0: '3%',
  835. r: '35%',
  836. itemStyle: {
  837. borderWidth: 2,
  838. },
  839. label: {
  840. align: 'left',
  841. },
  842. },
  843. {
  844. r0: '35%',
  845. r: '40%',
  846. label: {
  847. position: 'outside',
  848. },
  849. },
  850. ],
  851. },
  852. };
  853. } else {
  854. option = {
  855. series: [
  856. {
  857. name: 'Access From',
  858. type: 'pie',
  859. // radius: ["50%", "50%"],
  860. data: newdata.length > 0 ? newdata : [],
  861. itemStyle: {
  862. // borderColor: "#fff",
  863. // borderWidth: 2,
  864. },
  865. top: 50,
  866. emphasis: {
  867. itemStyle: {
  868. shadowBlur: 10,
  869. shadowOffsetX: 0,
  870. shadowColor: 'rgba(0, 0, 0, 0.5)',
  871. },
  872. },
  873. },
  874. ],
  875. xAxis: {
  876. show: false, //不显示坐标轴线、坐标轴刻度线和坐标轴上的文字
  877. axisTick: {
  878. show: false, //不显示坐标轴刻度线
  879. },
  880. axisLine: {
  881. show: false, //不显示坐标轴线
  882. },
  883. axisLabel: {
  884. show: false, //不显示坐标轴上的文字
  885. },
  886. },
  887. };
  888. }
  889. option && myChart.setOption(option);
  890. let number = 0;
  891. let _this = this;
  892. myChart.on('click', function (param) {
  893. //添加点击事件
  894. myChart.dispatchAction({ type: 'highlight', dataIndex: param.dataIndex }); //激活点击区域高亮
  895. if (param.dataIndex !== number) {
  896. // 当鼠标点击的时候 消除上一个扇区的高亮
  897. myChart.dispatchAction({ type: 'downplay', dataIndex: number });
  898. }
  899. number = param.dataIndex; //接住当前扇区的dataIndex
  900. if (_this.rightTopIndex === 0) {
  901. _this.handleShiyiLiju(param.data.definition);
  902. } else {
  903. _this.handleBookLiju(param.data);
  904. }
  905. });
  906. },
  907. // 鼠标进入
  908. gaolangbzt(index, id) {
  909. if (this.rightTopIndex === 1) return;
  910. var compareChart = echarts.getInstanceByDom(document.getElementById(id));
  911. compareChart.dispatchAction({
  912. type: 'highlight',
  913. seriesIndex: 0,
  914. dataIndex: index,
  915. });
  916. },
  917. // 鼠标移出
  918. closegaolangbzt(index, id) {
  919. var compareChart = echarts.getInstanceByDom(document.getElementById(id));
  920. compareChart.dispatchAction({
  921. type: 'downplay',
  922. seriesIndex: 0,
  923. dataIndex: index,
  924. });
  925. },
  926. // 计算选中教材例句
  927. handleBookLiju(item, index) {
  928. if (index === 0) {
  929. this.handleShiyiLiju(item.definition);
  930. return false;
  931. }
  932. let id = item.book_id;
  933. if (!id) return false;
  934. if (this.selectLaiyuanBookIdList.indexOf(id) > -1) {
  935. this.selectLaiyuanBookIdList.splice(this.selectLaiyuanBookIdList.indexOf(id), 1);
  936. } else {
  937. this.selectLaiyuanBookIdList.push(id);
  938. }
  939. this.page = 1;
  940. this.padingEvetn();
  941. window.scrollTo(0, 0);
  942. },
  943. // 计算选中教材例句
  944. handleShiyiLiju(shiyi) {
  945. if (!shiyi) return false;
  946. if (this.selectShiyiBookIdList.indexOf(shiyi) > -1) {
  947. this.selectShiyiBookIdList.splice(this.selectShiyiBookIdList.indexOf(shiyi), 1);
  948. } else {
  949. this.selectShiyiBookIdList.push(shiyi);
  950. }
  951. this.shiyiShow = this.selectShiyiBookIdList.length > 0;
  952. this.page = 1;
  953. this.padingEvetns();
  954. window.scrollTo(0, 0);
  955. },
  956. changehzdata() {
  957. this.hzData = [];
  958. this.jfEvent(0);
  959. let arr = this.keyword.trim().split('');
  960. arr.forEach((item) => {
  961. if (!/^[\u4e00-\u9fa5]/.test(item)) {
  962. return;
  963. }
  964. let result = pinyinUtil.getPinyin(item);
  965. let obj = {
  966. con: item,
  967. pinyin: result,
  968. hzDetail: {
  969. hz_json: null,
  970. },
  971. };
  972. this.hzData.push(obj);
  973. this.ShowHzData = JSON.parse(JSON.stringify(this.hzData));
  974. });
  975. },
  976. handleRefresh() {
  977. this.pinyinShow = true;
  978. this.shiyiShow = true;
  979. this.fenciShow = true;
  980. this.sizeIndex = 1;
  981. this.sort = '';
  982. this.sortType = '';
  983. this.KWIC_sortIndex = 0;
  984. this.cutSize(1);
  985. this.getdata();
  986. this.page = 1;
  987. },
  988. getdata(flag) {
  989. if (!this.keyword || !this.keyword.trim()) {
  990. this.$message.warning('请输入要搜索的内容');
  991. return;
  992. }
  993. this.loading = true;
  994. this.oldKey = this.keyword.trim();
  995. this.showResult = true;
  996. this.scoreAHitNumber = 0;
  997. let selectBookId = [];
  998. this.corpus.scope.forEach((item) => {
  999. selectBookId.push(item[1]);
  1000. });
  1001. this.bookSourceObj = {};
  1002. let Mname = 'book-courseware_manager-GetCoursewareWordExampleSentenceList_Sort';
  1003. let data = {
  1004. // courseware_id: "003-20211012-17-BDUZ1JVCAN",
  1005. courseware_id: '',
  1006. // word: this.$route.query.keyword, // 单词
  1007. word: this.keyword.trim(),
  1008. search_scope: 3, // 检索范围 0 【本章】,1【本教材】,2【本套教材】,3【系统所有教材】
  1009. // 本章:同一本教材下,归属同一个第一级章节下的所有课件为同一章。
  1010. is_contain_word_variants: false, // 是否包含单词变体例句
  1011. is_contain_stat_data: true, //是否包统计数据
  1012. is_filter_repetitive_sentence: 'true', // 过滤重复例句
  1013. sort_mode: this.sort ? (this.sort == 'down' ? 'DESCENT' : 'ASCENT') : 'NO', // 排序模式 NO 【不排序】,ASCENT【顺序】,DESCENT【倒序】
  1014. compare_mode: this.patternIndex === 0 ? 'LENGTH' : 'KWIC', // 排序比较模式,LENGTH【例句长度】,KWIC【KWIC 模式】
  1015. kwic_arrange_type: this.KWIC_sortIndex === 0 ? 'LEFT' : this.KWIC_sortIndex === 1 ? 'MID' : 'RIGHT', // KWIC 排列类型, LEFT【左】,MID【中】,RIGHT【右】
  1016. kwic_compare_by: this.sortType === 'pclength' ? 1 : 0, // KWIC 排序比较依据,0【字符】,1【相邻的搭配词出现的次数】
  1017. book_publish_status: 1, // 教材发布状态 -1【全部】, 0【下架】1【上架】
  1018. book_id_list: selectBookId, // 指定教材查询,空表示在检索范围内检索所有教材。
  1019. sentence_fc_length_min: this.corpus.sentenceStart ? Number(this.corpus.sentenceStart) : -1, // 例句分词长度范围(最小值),-1 表示不检测最小值
  1020. sentence_fc_length_max: this.corpus.sentenceEnd ? Number(this.corpus.sentenceEnd) : -1, // 例句分词长度范围(最大值),-1 表示不检测最大值
  1021. is_analyse_word_cx: 'true',
  1022. is_analyse_word_level: 'true',
  1023. };
  1024. BookgetContent(Mname, data, this.AppID, this.AccessToken)
  1025. .then((res) => {
  1026. this.shiyiList = [];
  1027. this.allList = {
  1028. sentence_list: [],
  1029. sentence_list_sort_left: [],
  1030. sentence_list_sort_mid: [],
  1031. sentence_list_sort_right: [],
  1032. stat_list_sentence_source_book: res.stat_list_sentence_source_book,
  1033. stat_list_sentence_source_book_series_code: res.stat_list_sentence_source_book_series_code,
  1034. stat_list_word_definition: res.stat_list_word_definition,
  1035. word_level_name: res.word_level_name,
  1036. word_cx_list: res.word_cx_list,
  1037. };
  1038. res.stat_list_sentence_source_book.forEach((itesb) => {
  1039. itesb.name = itesb.book_name;
  1040. itesb.value = itesb.count;
  1041. this.$set(this.bookSourceObj, itesb.book_id, itesb);
  1042. });
  1043. if (res.sentence_list.length > 0) {
  1044. res.stat_list_word_definition.forEach((item) => {
  1045. // item.book_name_s = item.definition;
  1046. item.book_name = JSON.parse(JSON.stringify(item.definition)).replace(/<i>/g, '').replace(/<\/i>/g, '');
  1047. });
  1048. res.stat_list_sentence_source_book_series_code.forEach((item) => {
  1049. item.book_name = item.series_code;
  1050. });
  1051. // 清理脏数据
  1052. this.removeRubbishData(res);
  1053. if (res.stat_list_word_definition.length === 0) {
  1054. this.rightTopIndex = 1;
  1055. }
  1056. if (this.rightTopIndex === 0) {
  1057. this.rightList = res.stat_list_word_definition;
  1058. } else {
  1059. this.rightList = res.stat_list_sentence_source_book;
  1060. }
  1061. this.getrightListdata();
  1062. this.allList.sentence_list = this.handleExample(res.sentence_list);
  1063. if (this.patternIndex === 1) {
  1064. if (this.KWIC_sortIndex === 0) {
  1065. this.allList.sentence_list_sort_left = this.handleExample(res.sentence_list, 'left');
  1066. } else if (this.KWIC_sortIndex === 1) {
  1067. this.allList.sentence_list_sort_mid = this.handleExample(res.sentence_list, 'mid');
  1068. } else {
  1069. this.allList.sentence_list_sort_right = this.handleExample(res.sentence_list, 'right');
  1070. }
  1071. }
  1072. this.CurrentList = JSON.parse(JSON.stringify(res.sentence_list));
  1073. let shiyiIndex = 1;
  1074. JSON.parse(JSON.stringify(res.sentence_list)).forEach((items) => {
  1075. if (items.word_definition_list && items.word_definition_list.length > 0) {
  1076. items.number = shiyiIndex;
  1077. this.shiyiList.push(items);
  1078. shiyiIndex++;
  1079. }
  1080. });
  1081. this.padingEvetn();
  1082. } else {
  1083. this.CurrentList = [];
  1084. this.ShowList = [];
  1085. this.rightList = [];
  1086. this.shiyiList = [];
  1087. this.getrightListdata();
  1088. }
  1089. if (this.keyword.trim() && flag) {
  1090. this.changehzdata();
  1091. } else {
  1092. this.loading = false;
  1093. }
  1094. if (res.word_pinyin_list) {
  1095. res.word_pinyin_list.forEach((itemP, indexP) => {
  1096. if (this.hzData[indexP]) {
  1097. this.hzData[indexP].pinyin = itemP;
  1098. }
  1099. });
  1100. }
  1101. })
  1102. .catch((err) => {
  1103. this.loading = false;
  1104. });
  1105. },
  1106. handleExample(list, type) {
  1107. if (list.length > 0) {
  1108. list = list.map((item, index) => {
  1109. item.number = index + 1;
  1110. let str = item.source_courseware_name_path;
  1111. item.show_source_courseware_name_path = str.slice(0, 8) + '...';
  1112. if (type == 'left') {
  1113. let arr = JSON.parse(JSON.stringify(item.sentence_fc_list));
  1114. arr.forEach((items, indexs) => {
  1115. if (indexs == item.sentence_fc_list_word_index) {
  1116. arr[indexs] = `<span style=color:#DE4444;font-weight:700;>${arr[indexs]}</span>`;
  1117. }
  1118. });
  1119. let data = this.changefiveword(arr, item.sentence_fc_list_word_index, type);
  1120. item.resArr = data;
  1121. item.adjoin_fc_frequency_list_left = item.adjoin_fc_frequency_list.splice(
  1122. 0,
  1123. item.sentence_fc_list_word_index,
  1124. );
  1125. } else if (type == 'right') {
  1126. let sentence = JSON.parse(JSON.stringify(item.sentence));
  1127. let arr = JSON.parse(JSON.stringify(item.sentence_fc_list));
  1128. arr.forEach((items, indexs) => {
  1129. if (indexs == item.sentence_fc_list_word_index) {
  1130. arr[indexs] = `<span style=color:#DE4444;font-weight:700;>${arr[indexs]}</span>`;
  1131. }
  1132. });
  1133. let data = this.changefiveword(arr, item.sentence_fc_list_word_index, type);
  1134. item.resArr = data;
  1135. item.adjoin_fc_frequency_list_right = item.adjoin_fc_frequency_list.splice(
  1136. item.sentence_fc_list_word_index + 1,
  1137. );
  1138. } else if (type == 'mid') {
  1139. let sentence = JSON.parse(JSON.stringify(item.sentence));
  1140. let arr = JSON.parse(JSON.stringify(item.sentence_fc_list));
  1141. arr.forEach((items, indexs) => {
  1142. if (indexs == item.sentence_fc_list_word_index) {
  1143. arr[indexs] = `<span style=color:#DE4444;font-weight:700;>${arr[indexs]}</span>`;
  1144. }
  1145. });
  1146. let data = this.changefiveword(arr, item.sentence_fc_list_word_index, type);
  1147. item.resArr = data;
  1148. } else {
  1149. this.scoreAHitNumber += item.position_list.length;
  1150. let sentence_fc_list_style = [];
  1151. let newsentence = JSON.parse(JSON.stringify(item.sentence));
  1152. let res = '';
  1153. for (let i = 0; i < item.position_list.length; i++) {
  1154. let part1 = '';
  1155. let part2 = '';
  1156. let part3 = '';
  1157. if (item.position_list.length > 1) {
  1158. if (i == 0) {
  1159. part1 = newsentence.substring(0, item.position_list[i].begin);
  1160. part2 = newsentence.substring(item.position_list[i].begin, item.position_list[i].end);
  1161. part3 = newsentence.substring(item.position_list[i].end, item.position_list[i + 1].begin);
  1162. } else if (i == item.position_list.length - 1) {
  1163. part2 = newsentence.substring(item.position_list[i].begin, item.position_list[i].end);
  1164. part3 = newsentence.substring(item.position_list[i].end);
  1165. } else {
  1166. part2 = newsentence.substring(item.position_list[i].begin, item.position_list[i].end);
  1167. part3 = newsentence.substring(item.position_list[i].end, item.position_list[i + 1].begin);
  1168. }
  1169. } else {
  1170. part1 = newsentence.substring(0, item.position_list[i].begin);
  1171. part2 = newsentence.substring(item.position_list[i].begin, item.position_list[i].end);
  1172. part3 = newsentence.substring(item.position_list[i].end);
  1173. }
  1174. res += part1 + '<span style="color:#DE4444;">' + part2 + '</span>' + part3;
  1175. }
  1176. item.res = res;
  1177. item.sentence_fc_list.forEach((items, indexs) => {
  1178. if (item.sentence_fc_list_word_index_list.indexOf(indexs) > -1) {
  1179. sentence_fc_list_style.push('<span style="color:#DE4444;">' + items + '</span>');
  1180. } else {
  1181. sentence_fc_list_style.push(items);
  1182. }
  1183. });
  1184. item.sentence_fc_list_style = sentence_fc_list_style;
  1185. }
  1186. return item;
  1187. });
  1188. return list;
  1189. } else {
  1190. return [];
  1191. }
  1192. },
  1193. changefiveword(arr, index, type) {
  1194. let num = 6;
  1195. let colorIndex = 0;
  1196. let colorList = ['#4D7EFF', '#A4430F', '#9342C5', '#FF8718', '#1DAA91'];
  1197. for (let i = 1; i < num; i++) {
  1198. if (type == 'left') {
  1199. if (index - i >= 0) {
  1200. if (this.chsFhList.indexOf(arr[index - i]) == -1) {
  1201. arr[index - i] = `<span style=color:${colorList[colorIndex]};>${arr[index - i]}</span>`;
  1202. colorIndex++;
  1203. } else {
  1204. num++;
  1205. }
  1206. }
  1207. } else if (type == 'right') {
  1208. if (index + i <= arr.length - 1) {
  1209. if (this.chsFhList.indexOf(arr[index + i]) == -1) {
  1210. arr[index + i] = `<span style=color:${colorList[colorIndex]};>${arr[index + i]}</span>`;
  1211. colorIndex++;
  1212. } else {
  1213. num++;
  1214. }
  1215. }
  1216. }
  1217. }
  1218. let newarr = [];
  1219. let arr1 = [];
  1220. let arr2 = [];
  1221. let arr3 = [];
  1222. arr.forEach((item, i) => {
  1223. if (i < index) {
  1224. arr1.push(item);
  1225. } else if (i == index) {
  1226. arr2.push(item);
  1227. } else {
  1228. arr3.push(item);
  1229. }
  1230. });
  1231. newarr.push(arr1);
  1232. newarr.push(arr2);
  1233. newarr.push(arr3);
  1234. return newarr;
  1235. },
  1236. // 处理分页
  1237. padingEvetn() {
  1238. let arr =
  1239. this.shiyiShow && this.patternIndex === 0
  1240. ? JSON.parse(JSON.stringify(this.shiyiList))
  1241. : JSON.parse(JSON.stringify(this.CurrentList));
  1242. let arrs = [];
  1243. if (this.editLijuFlag) {
  1244. arrs = JSON.parse(JSON.stringify(this.allList.sentence_list));
  1245. } else if (this.selectLaiyuanBookIdList.length === 0) {
  1246. arrs = arr;
  1247. } else {
  1248. arr.forEach((item) => {
  1249. let path = item.source_courseware_id_path.split('/');
  1250. if (path.length > 0 && this.selectLaiyuanBookIdList.indexOf(path[0]) > -1) {
  1251. arrs.push(item);
  1252. }
  1253. });
  1254. }
  1255. this.selectCurrent = arrs.length;
  1256. arrs.forEach((item, index) => {
  1257. item.number = index + 1;
  1258. });
  1259. let newarr = arrs.splice((this.page - 1) * this.pageSize, this.pageSize);
  1260. this.ShowList = JSON.parse(JSON.stringify(newarr));
  1261. },
  1262. padingEvetns() {
  1263. let arr = JSON.parse(JSON.stringify(this.shiyiList));
  1264. let arrs = [];
  1265. if (this.selectShiyiBookIdList.length === 0) {
  1266. arrs = JSON.parse(JSON.stringify(this.CurrentList));
  1267. } else {
  1268. arr.forEach((item) => {
  1269. if (item.word_definition_list.length > 0) {
  1270. this.selectShiyiBookIdList.forEach((items) => {
  1271. if (item.word_definition_list.indexOf(items) > -1) {
  1272. arrs.push(item);
  1273. }
  1274. });
  1275. }
  1276. });
  1277. }
  1278. this.selectCurrent = arrs.length;
  1279. arrs.forEach((item, index) => {
  1280. item.number = index + 1;
  1281. });
  1282. let newarr = arrs.splice((this.page - 1) * this.pageSize, this.pageSize);
  1283. this.ShowList = JSON.parse(JSON.stringify(newarr));
  1284. },
  1285. // 删除脏数据
  1286. removeRubbishData(data) {
  1287. if (data.sentence_list.length > 0) {
  1288. for (let i = data.sentence_list.length; i--; ) {
  1289. if (
  1290. data.sentence_list[i].sentence_fc_list.length <= 1 ||
  1291. data.sentence_list[i].sentence_fc_list_word_index === -1
  1292. ) {
  1293. data.sentence_list.splice(i, 1);
  1294. }
  1295. }
  1296. }
  1297. },
  1298. handleCurrentChange(val) {
  1299. this.page = val;
  1300. this.padingEvetn();
  1301. },
  1302. // KWIC排序
  1303. KWICsortEvent(index, type) {
  1304. if (this.KWIC_sortIndex == index) return;
  1305. this.KWIC_sortIndex = index;
  1306. // this.CurrentList = this.allList[type];
  1307. // this.padingEvetn();
  1308. this.getdata();
  1309. },
  1310. // 切换释义
  1311. changeShiyi() {
  1312. this.page = 1;
  1313. this.padingEvetn();
  1314. },
  1315. // 排序
  1316. sortEvent(type) {
  1317. if (type !== this.sortType) {
  1318. this.sortType = type;
  1319. this.sort = '';
  1320. }
  1321. if (this.sort == 'down' || !this.sort) {
  1322. this.sort = 'up';
  1323. } else {
  1324. this.sort = 'down';
  1325. }
  1326. this.getdata();
  1327. this.page = 1;
  1328. },
  1329. // 修改大小
  1330. cutSize(index) {
  1331. this.sizeIndex = index;
  1332. if (index == 0) {
  1333. //大
  1334. if (this.patternIndex == 0) {
  1335. this.conSize = 24;
  1336. this.pinyinSize = 12;
  1337. } else {
  1338. this.conSize = 20;
  1339. }
  1340. } else if (index == 1) {
  1341. //中
  1342. if (this.patternIndex == 0) {
  1343. this.conSize = 20;
  1344. this.pinyinSize = 12;
  1345. } else {
  1346. this.conSize = 17;
  1347. }
  1348. } else {
  1349. //小
  1350. if (this.patternIndex == 0) {
  1351. this.conSize = 16;
  1352. this.pinyinSize = 10;
  1353. } else {
  1354. this.conSize = 15;
  1355. }
  1356. }
  1357. },
  1358. // 切换模式
  1359. cutPattern(index) {
  1360. if (this.patternIndex == index) {
  1361. return;
  1362. }
  1363. this.patternIndex = index;
  1364. this.getdata();
  1365. // if (this.patternIndex == 0) {
  1366. // this.CurrentList = JSON.parse(JSON.stringify(this.allList.sentence_list));
  1367. // } else {
  1368. // this.CurrentList = JSON.parse(JSON.stringify(this.allList.sentence_list_sort_left));
  1369. // }
  1370. // this.padingEvetn();
  1371. this.page = 1;
  1372. },
  1373. // 切换释义来源
  1374. cutsyly(index) {
  1375. if (this.rightTopIndex == index) {
  1376. return;
  1377. }
  1378. this.rightTopIndex = index;
  1379. if (this.rightTopIndex == 0) {
  1380. this.rightList = this.allList.stat_list_word_definition;
  1381. } else {
  1382. this.rightList = this.allList.stat_list_sentence_source_book;
  1383. }
  1384. // if (this.rightList.length > 0) {
  1385. this.inityuan();
  1386. // }
  1387. },
  1388. //编辑例句
  1389. handleEditLiju(item) {
  1390. this.actvieEditLijuItem = {
  1391. sentence_id: item ? item.sentence_id : '',
  1392. new_word: this.keyword ? this.keyword.trim() : '',
  1393. cixing: '',
  1394. source_path: item ? item.source_courseware_name_path_short : '',
  1395. definition_list: item ? item.word_definition_list.join('\n') : '',
  1396. sentence: item ? item.sentence_fc_list.join(' ') : '',
  1397. };
  1398. this.showEditLijuFlag = true;
  1399. },
  1400. handleClose() {
  1401. this.showEditLijuFlag = false;
  1402. this.actvieEditLijuItem = null;
  1403. },
  1404. // 保存
  1405. save() {
  1406. this.loading = true;
  1407. let word_list = [];
  1408. this.actvieEditLijuItem.sentence.split(' ').forEach((item) => {
  1409. let obj = {
  1410. word: item,
  1411. };
  1412. word_list.push(obj);
  1413. });
  1414. let Mname = 'book-courseware_manager-AddWordExampleSentence';
  1415. if (this.actvieEditLijuItem.sentence_id) {
  1416. Mname = 'book-courseware_manager-UpdateWordExampleSentence';
  1417. }
  1418. BookgetContent(Mname, {
  1419. sentence_id: this.actvieEditLijuItem.sentence_id,
  1420. new_word: {
  1421. new_word: this.actvieEditLijuItem.new_word,
  1422. cixing: this.actvieEditLijuItem.cixing,
  1423. definition_list: this.actvieEditLijuItem.definition_list.split('\n'),
  1424. },
  1425. source_path: this.actvieEditLijuItem.source_path,
  1426. word_list: word_list,
  1427. })
  1428. .then((res) => {
  1429. this.loading = false;
  1430. this.showEditLijuFlag = false;
  1431. this.actvieEditLijuItem = null;
  1432. this.$message.success('保存成功');
  1433. this.page = 1;
  1434. this.getdata(true);
  1435. })
  1436. .catch((res) => {
  1437. this.loading = false;
  1438. });
  1439. },
  1440. // 删除例句
  1441. handleDelLiju() {
  1442. if (this.selectDelLijuIds.length === 0) return;
  1443. this.loading = true;
  1444. let Mname = 'book-courseware_manager-DeleteWordExampleSentence';
  1445. BookgetContent(Mname, {
  1446. sentence_id_list: this.selectDelLijuIds,
  1447. })
  1448. .then((res) => {
  1449. this.loading = false;
  1450. this.selectDelLijuIds = [];
  1451. this.$message.success('删除成功');
  1452. this.getLevelList();
  1453. this.page = 1;
  1454. this.getdata(true);
  1455. })
  1456. .catch((res) => {
  1457. this.loading = false;
  1458. });
  1459. },
  1460. },
  1461. //生命周期 - 创建完成(可以访问当前this实例)
  1462. async created() {
  1463. const _this = this;
  1464. if (this.AccessToken) {
  1465. const Mname = 'login_control-ParseAccessToken';
  1466. await getStaticContent(Mname, {
  1467. access_token: _this.AccessToken,
  1468. }).then((res) => {
  1469. res.access_token = _this.AccessToken;
  1470. setToken(res);
  1471. sessionStorage.setItem('GCLS_Token_Tc', JSON.stringify(res));
  1472. this.showPage = true;
  1473. });
  1474. await getConfigInfor();
  1475. }
  1476. localStorage.removeItem('seekPageData');
  1477. this.showPage = true;
  1478. this.getLevelList();
  1479. this.getTotalCount();
  1480. if (this.keyword && this.keyword.trim()) {
  1481. this.getdata(true);
  1482. }
  1483. let userInfor = getToken()
  1484. ? JSON.parse(getToken())
  1485. : sessionStorage.getItem('GCLS_Token_Tc')
  1486. ? JSON.parse(sessionStorage.getItem('GCLS_Token_Tc'))
  1487. : null;
  1488. // userInfor.popedom_code_list = [2000004, 2000001, 2000007, 9000001];
  1489. this.editLiju = userInfor && userInfor.popedom_code_list && userInfor.popedom_code_list.indexOf(9000001) > -1;
  1490. },
  1491. //生命周期 - 挂载完成(可以访问DOM元素)
  1492. mounted() {},
  1493. //生命周期-创建之前
  1494. beforeCreated() {},
  1495. //生命周期-挂载之前
  1496. beforeMount() {},
  1497. //生命周期-更新之前
  1498. beforUpdate() {},
  1499. //生命周期-更新之后
  1500. updated() {},
  1501. //生命周期-销毁之前
  1502. beforeDestory() {},
  1503. //生命周期-销毁完成
  1504. destoryed() {},
  1505. //如果页面有keep-alive缓存功能,这个函数会触发
  1506. activated() {},
  1507. };
  1508. </script>
  1509. <style lang="scss" scoped>
  1510. /* @import url(); 引入css类 */
  1511. .corpus_seekpage {
  1512. .title {
  1513. margin-top: 24px;
  1514. > :nth-child(1) {
  1515. font-weight: 700;
  1516. font-size: 32px;
  1517. line-height: 38px;
  1518. color: #000000;
  1519. }
  1520. > :nth-child(2) {
  1521. font-weight: 400;
  1522. font-size: 14px;
  1523. line-height: 16px;
  1524. }
  1525. > p {
  1526. margin: 0;
  1527. text-align: center;
  1528. }
  1529. }
  1530. .seek {
  1531. margin-top: 18px;
  1532. display: flex;
  1533. justify-content: center;
  1534. height: 51px;
  1535. position: relative;
  1536. input {
  1537. width: 468px;
  1538. height: 51px;
  1539. border: 1px solid #669aff;
  1540. outline: none;
  1541. box-sizing: border-box;
  1542. padding: 0 10px;
  1543. }
  1544. button {
  1545. width: 96px;
  1546. height: 100%;
  1547. background: #669aff;
  1548. border-width: 1px 1px 1px 0px;
  1549. border-style: solid;
  1550. border-color: #669aff;
  1551. text-align: center;
  1552. font-weight: 400;
  1553. font-size: 16px;
  1554. line-height: 51px;
  1555. color: #ffffff;
  1556. cursor: pointer;
  1557. box-sizing: border-box;
  1558. }
  1559. .set_corpus {
  1560. position: absolute;
  1561. top: 16px;
  1562. }
  1563. }
  1564. .txt {
  1565. margin-top: 24px;
  1566. text-align: center;
  1567. font-weight: 400;
  1568. font-size: 16px;
  1569. line-height: 19px;
  1570. color: #000000;
  1571. opacity: 0.65;
  1572. }
  1573. .txt_imgtable {
  1574. width: 1200px;
  1575. margin: 0 auto;
  1576. .left {
  1577. position: relative;
  1578. width: 100%;
  1579. padding-bottom: 68px;
  1580. margin-right: 8px;
  1581. background: #fff;
  1582. border: 1px solid rgba(0, 0, 0, 8%);
  1583. border-radius: 0 0 8px 8px;
  1584. > .top {
  1585. display: flex;
  1586. align-items: center;
  1587. justify-content: space-between;
  1588. height: 44px;
  1589. font-size: 12px;
  1590. font-weight: 400;
  1591. color: #000;
  1592. border-bottom: 1px solid rgba(0, 0, 0, 8%);
  1593. > div {
  1594. display: flex;
  1595. align-items: center;
  1596. column-gap: 16px;
  1597. }
  1598. .KWIC_sort {
  1599. display: flex;
  1600. span {
  1601. display: inline-block;
  1602. display: flex;
  1603. align-items: center;
  1604. justify-content: center;
  1605. width: 28px;
  1606. height: 28px;
  1607. cursor: pointer;
  1608. background: #fff;
  1609. border-radius: 4px;
  1610. }
  1611. .sele {
  1612. background: #f0f0f0;
  1613. }
  1614. .sort {
  1615. img {
  1616. width: 14px;
  1617. height: 12px;
  1618. }
  1619. }
  1620. .down {
  1621. img {
  1622. width: 16px;
  1623. height: 16px;
  1624. }
  1625. }
  1626. }
  1627. .pattern {
  1628. display: flex;
  1629. align-items: center;
  1630. justify-content: center;
  1631. width: 144px;
  1632. height: 28px;
  1633. margin-left: 16px;
  1634. background: #eee;
  1635. border-radius: 4px;
  1636. > div {
  1637. width: 68px;
  1638. height: 24px;
  1639. font-size: 12px;
  1640. font-weight: 400;
  1641. line-height: 24px;
  1642. color: #888;
  1643. text-align: center;
  1644. cursor: pointer;
  1645. border-radius: 2px;
  1646. }
  1647. .sele {
  1648. color: #000;
  1649. background: #fff;
  1650. box-shadow: 0 2px 2px rgba(0, 0, 0, 8%);
  1651. }
  1652. }
  1653. .refresh {
  1654. display: flex;
  1655. align-items: center;
  1656. justify-content: center;
  1657. width: 28px;
  1658. height: 28px;
  1659. cursor: pointer;
  1660. background: #eee;
  1661. border-radius: 4px;
  1662. img {
  1663. width: 16px;
  1664. height: 16px;
  1665. }
  1666. }
  1667. .size {
  1668. margin-right: 12px;
  1669. span {
  1670. padding: 4px;
  1671. font-size: 14px;
  1672. cursor: pointer;
  1673. }
  1674. .sele {
  1675. background: #e6e6e6;
  1676. border-radius: 4px;
  1677. }
  1678. }
  1679. }
  1680. .lang_sort {
  1681. display: flex;
  1682. align-items: center;
  1683. justify-content: center;
  1684. width: max-content;
  1685. cursor: pointer;
  1686. margin-right: 16px;
  1687. border-radius: 20px;
  1688. border: 1px solid #e5e6eb;
  1689. padding: 4px 12px;
  1690. font-size: 14px;
  1691. &.active {
  1692. border-color: #4992ff;
  1693. background: #4992ff;
  1694. color: #fff;
  1695. }
  1696. img {
  1697. width: 16px;
  1698. height: 16px;
  1699. margin-left: 2px;
  1700. }
  1701. }
  1702. }
  1703. .right {
  1704. width: 100%;
  1705. padding-bottom: 39px;
  1706. background: #fff;
  1707. border: 1px solid rgba(0, 0, 0, 8%);
  1708. border-radius: 8px;
  1709. margin-top: 16px;
  1710. .top {
  1711. display: flex;
  1712. align-items: center;
  1713. height: 44px;
  1714. // border-bottom: 1px solid rgba(0, 0, 0, 8%);
  1715. > div {
  1716. display: flex;
  1717. align-items: center;
  1718. justify-content: center;
  1719. // width: 84px;
  1720. padding: 0 2px;
  1721. height: 28px;
  1722. margin-left: 16px;
  1723. background: #eee;
  1724. border-radius: 4px;
  1725. > div {
  1726. width: 40px;
  1727. height: 24px;
  1728. font-size: 12px;
  1729. font-weight: 400;
  1730. line-height: 24px;
  1731. color: #888;
  1732. text-align: center;
  1733. cursor: pointer;
  1734. border-radius: 2px;
  1735. }
  1736. .sele {
  1737. color: #000;
  1738. background: #fff;
  1739. box-shadow: 0 2px 2px rgba(0, 0, 0, 8%);
  1740. }
  1741. }
  1742. }
  1743. .bottom {
  1744. display: flex;
  1745. }
  1746. .list {
  1747. width: 508px;
  1748. margin: 0 auto;
  1749. max-height: 1450px;
  1750. overflow: auto;
  1751. .one {
  1752. display: flex;
  1753. justify-content: space-between;
  1754. padding: 12px;
  1755. font-size: 14px;
  1756. font-weight: 400;
  1757. line-height: 22px;
  1758. color: #333;
  1759. cursor: pointer;
  1760. border-bottom: 1px solid #eee;
  1761. > :nth-child(1) {
  1762. text-align: left;
  1763. }
  1764. > div {
  1765. width: 186px;
  1766. text-align: center;
  1767. }
  1768. }
  1769. .all {
  1770. font-size: 14px;
  1771. font-weight: 600;
  1772. line-height: 22px;
  1773. color: #333;
  1774. border-bottom: none;
  1775. }
  1776. }
  1777. }
  1778. }
  1779. .cx-list {
  1780. width: 1200px;
  1781. margin: 24px auto 0 auto;
  1782. display: flex;
  1783. justify-content: space-between;
  1784. .cx-list-box {
  1785. display: flex;
  1786. padding: 8px 16px;
  1787. align-items: center;
  1788. gap: 16px;
  1789. border-radius: 8px 8px 0px 0px;
  1790. border: 1px solid #ebebeb;
  1791. background: #f7f7f7;
  1792. border-bottom: none;
  1793. width: max-content;
  1794. color: #000;
  1795. font-size: 16px;
  1796. line-height: 24px;
  1797. label {
  1798. display: flex;
  1799. padding: 4px 16px;
  1800. flex-wrap: wrap;
  1801. border-radius: 4px;
  1802. gap: 8px;
  1803. background: #fff;
  1804. color: #007eff;
  1805. font-size: 14px;
  1806. font-weight: 600;
  1807. line-height: 22px;
  1808. > :nth-child(2) {
  1809. color: #000;
  1810. font-weight: 400;
  1811. }
  1812. }
  1813. }
  1814. .el-button {
  1815. font-weight: 400;
  1816. height: 38px;
  1817. }
  1818. .edit-liju {
  1819. padding: 8px 16px;
  1820. border-radius: 4px;
  1821. border: 1px solid #669aff;
  1822. background: #fff;
  1823. color: #2164e4;
  1824. font-size: 14px;
  1825. line-height: 22px;
  1826. }
  1827. }
  1828. .main {
  1829. // height: 95%;
  1830. .list {
  1831. margin-top: 16px;
  1832. .one {
  1833. padding: 0 16px;
  1834. margin-bottom: 8px;
  1835. display: flex;
  1836. align-items: end;
  1837. .top {
  1838. display: flex;
  1839. // align-items: center;
  1840. // flex-flow: wrap;
  1841. width: 100%;
  1842. .number {
  1843. flex-shrink: 0;
  1844. width: 22px;
  1845. margin-right: 8px;
  1846. font-size: 14px;
  1847. font-weight: 400;
  1848. line-height: 21px;
  1849. color: rgba(0, 0, 0, 30%);
  1850. text-align: right;
  1851. &-1-false {
  1852. margin-top: 3px;
  1853. }
  1854. &-0-true {
  1855. margin-top: 21px;
  1856. }
  1857. &-0-false {
  1858. margin-top: 5px;
  1859. }
  1860. &-2-true {
  1861. margin-top: 17px;
  1862. }
  1863. &-2-false {
  1864. margin-top: 1px;
  1865. }
  1866. }
  1867. img {
  1868. width: 16px;
  1869. height: 16px;
  1870. margin-right: 8px;
  1871. cursor: pointer;
  1872. &.speaker-1-false {
  1873. margin-top: 6px;
  1874. }
  1875. &.speaker-0-true {
  1876. margin-top: 24px;
  1877. }
  1878. &.speaker-0-false {
  1879. margin-top: 8px;
  1880. }
  1881. &.speaker-2-true {
  1882. margin-top: 20px;
  1883. }
  1884. &.speaker-2-false {
  1885. margin-top: 4px;
  1886. }
  1887. }
  1888. .words {
  1889. // display: flex;
  1890. // align-items: flex-end;
  1891. // flex-flow: wrap;
  1892. font-family: 'FZJCGFKTK';
  1893. word-break: break-all;
  1894. > div {
  1895. .pinyin {
  1896. margin-bottom: 2px;
  1897. font-family: 'League';
  1898. font-size: 12px;
  1899. font-weight: 500;
  1900. color: rgba(0, 0, 0, 50%);
  1901. text-align: center;
  1902. }
  1903. .con {
  1904. font-family: 'FZJCGFKTK';
  1905. font-size: 20px;
  1906. font-weight: 400;
  1907. color: #000;
  1908. text-align: center;
  1909. }
  1910. }
  1911. }
  1912. .shiyi {
  1913. font-size: 12px;
  1914. font-weight: 400;
  1915. line-height: 24px;
  1916. color: #48a3e6;
  1917. font-family: 'robot', 'FZJCGFKTK';
  1918. &-0 {
  1919. line-height: 32px;
  1920. }
  1921. &-1 {
  1922. line-height: 28px;
  1923. }
  1924. }
  1925. }
  1926. .bottom {
  1927. font-size: 12px;
  1928. font-weight: 400;
  1929. line-height: 150%;
  1930. color: rgba(0, 0, 0, 30%);
  1931. text-align: right;
  1932. width: 117px;
  1933. overflow: hidden;
  1934. text-overflow: ellipsis;
  1935. white-space: nowrap;
  1936. flex-shrink: 0;
  1937. }
  1938. }
  1939. .kwic_one {
  1940. display: flex;
  1941. align-items: center;
  1942. padding: 0 16px;
  1943. justify-content: space-between;
  1944. > :nth-child(1) {
  1945. justify-content: flex-end;
  1946. width: 16px;
  1947. margin-right: 16px;
  1948. }
  1949. .laiyuan {
  1950. width: 117px;
  1951. overflow: hidden;
  1952. font-size: 14px;
  1953. font-weight: 400;
  1954. line-height: 22px;
  1955. color: rgba(0, 0, 0, 65%);
  1956. text-overflow: ellipsis;
  1957. white-space: nowrap;
  1958. }
  1959. .word {
  1960. display: flex;
  1961. justify-content: center;
  1962. // width: 361px;
  1963. height: 22px;
  1964. margin-left: 16px;
  1965. overflow: hidden;
  1966. font-family: 'FZJCGFKTK';
  1967. font-size: 14px;
  1968. font-weight: 400;
  1969. line-height: 22px;
  1970. color: #000;
  1971. white-space: nowrap;
  1972. opacity: 1;
  1973. > :nth-child(1) {
  1974. // direction: rtl;
  1975. // unicode-bidi: plaintext;
  1976. // text-align: right;
  1977. display: flex;
  1978. justify-content: flex-end;
  1979. width: 472px;
  1980. overflow: hidden;
  1981. white-space: nowrap;
  1982. }
  1983. > :nth-child(3) {
  1984. width: 472px;
  1985. overflow: hidden;
  1986. text-align: left;
  1987. white-space: nowrap;
  1988. direction: ltr;
  1989. unicode-bidi: plaintext;
  1990. }
  1991. }
  1992. }
  1993. }
  1994. .page {
  1995. position: absolute;
  1996. bottom: 0;
  1997. box-sizing: border-box;
  1998. display: flex;
  1999. justify-content: space-between;
  2000. align-items: center;
  2001. width: 100%;
  2002. height: 64px;
  2003. border-top: 1px solid rgba(0, 0, 0, 0.08);
  2004. padding: 16px;
  2005. .text {
  2006. display: flex;
  2007. align-items: center;
  2008. font-size: 14px;
  2009. font-weight: 400;
  2010. line-height: 22px;
  2011. color: rgba(0, 0, 0, 60%);
  2012. text-align: center;
  2013. }
  2014. }
  2015. }
  2016. .edit-liju-box {
  2017. width: 1200px;
  2018. margin: 0 auto;
  2019. border-radius: 0px 8px 8px 8px;
  2020. border: 1px solid rgba(0, 0, 0, 0.08);
  2021. background: #fff;
  2022. box-sizing: border-box;
  2023. > .top {
  2024. display: flex;
  2025. justify-content: space-between;
  2026. align-items: center;
  2027. border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  2028. padding: 8px 16px;
  2029. .select-number {
  2030. color: #669aff;
  2031. font-size: 14px;
  2032. font-weight: 500;
  2033. line-height: 22px;
  2034. margin-right: 16px;
  2035. }
  2036. .el-button {
  2037. padding: 4px 12px;
  2038. font-size: 14px;
  2039. font-weight: 400;
  2040. line-height: 22px;
  2041. border-radius: 20px;
  2042. }
  2043. }
  2044. .page {
  2045. position: inherit;
  2046. }
  2047. .el-icon-edit-outline {
  2048. cursor: pointer;
  2049. margin-left: 4px;
  2050. }
  2051. }
  2052. }
  2053. </style>
  2054. <style lang="scss">
  2055. .result {
  2056. .el-switch__core {
  2057. width: 26px !important;
  2058. height: 16px;
  2059. }
  2060. .el-switch__core::after {
  2061. top: 3px;
  2062. width: 8px;
  2063. height: 8px;
  2064. }
  2065. .el-switch.is-checked .el-switch__core::after {
  2066. margin-left: -10px;
  2067. }
  2068. .el-switch__label.is-active {
  2069. color: #000;
  2070. }
  2071. .page {
  2072. .el-pagination.is-background .el-pager li:not(.disabled).active {
  2073. background-color: #0052d9;
  2074. }
  2075. .el-pager li {
  2076. background: #fff;
  2077. border: 1px solid #dcdcdc;
  2078. border-radius: 3px;
  2079. }
  2080. }
  2081. }
  2082. .el-loading-mask {
  2083. z-index: 200000 !important;
  2084. }
  2085. .checkAllCheckbox {
  2086. width: 100%;
  2087. padding: 0 20px;
  2088. height: 34px;
  2089. line-height: 34px;
  2090. &:hover {
  2091. background-color: #f5f7fa;
  2092. }
  2093. .el-checkbox__input {
  2094. display: none;
  2095. }
  2096. .el-checkbox__label {
  2097. padding: 0;
  2098. }
  2099. }
  2100. .selectBook {
  2101. .el-tag {
  2102. max-width: 90px;
  2103. }
  2104. }
  2105. .el-button--primary,
  2106. .el-checkbox__input.is-checked .el-checkbox__inner,
  2107. .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  2108. background-color: #669aff;
  2109. border-color: #669aff;
  2110. }
  2111. .el-button--primary.is-plain {
  2112. color: #669aff;
  2113. border-color: #669aff;
  2114. &:hover {
  2115. background-color: #669aff;
  2116. }
  2117. }
  2118. .el-checkbox__inner {
  2119. border-color: #669aff;
  2120. }
  2121. .seekpage-dialog {
  2122. .el-dialog__header {
  2123. padding: 0;
  2124. }
  2125. label {
  2126. color: #000;
  2127. font-size: 14px;
  2128. font-weight: 400;
  2129. line-height: 22px;
  2130. margin-bottom: 8px;
  2131. display: block;
  2132. }
  2133. .el-input {
  2134. margin-bottom: 8px;
  2135. }
  2136. .tips {
  2137. color: rgba(0, 0, 0, 0.4);
  2138. font-size: 14px;
  2139. font-weight: 400;
  2140. line-height: 22px;
  2141. margin-bottom: 8px;
  2142. display: block;
  2143. }
  2144. p {
  2145. color: #ff5757;
  2146. font-size: 24px;
  2147. font-weight: 400;
  2148. line-height: 32px;
  2149. margin-bottom: 8px;
  2150. }
  2151. }
  2152. </style>