seekPage.vue 67 KB

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