PrintModel.vue 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207
  1. <template>
  2. <div class="print-model">
  3. <div class="print-model-top">
  4. <a class="goback" @click="goBack"
  5. ><i class="el-icon-arrow-left"></i>回到文章</a
  6. >
  7. <div class="border"></div>
  8. <p class="article-title">打印预览</p>
  9. </div>
  10. <div class="print-model-bottom">
  11. <div
  12. class="print-model-bottom-left"
  13. ref="printArea"
  14. id="showWaterMark"
  15. :style="{ width: isPrint ? '220mm' : '' }"
  16. >
  17. <div class="print-inner">
  18. <h2>
  19. <span
  20. :style="{
  21. color: colorObj.titleColor,
  22. fontSize: titleFontsize + 'px',
  23. lineHeight: titleFontsize + 8 + 'px',
  24. marginRight: '10px',
  25. fontWeight: '700',
  26. cursor: 'pointer',
  27. wordBreak: 'break-word',
  28. }"
  29. >{{ articleInfo.art_title }}</span
  30. >
  31. </h2>
  32. <h6
  33. class="nnpe-article-author"
  34. :style="{
  35. color: colorObj.sourceColor,
  36. fontSize: wordFontsize - 4 + 'px',
  37. lineHeight: wordFontsize + 4 + 'px',
  38. fontWeight: '400',
  39. }"
  40. >
  41. {{
  42. articleInfo.art_author +
  43. " · " +
  44. articleInfo.study_phase_name +
  45. "版 · 第 " +
  46. articleInfo.iss_no +
  47. " 期 · " +
  48. articleInfo.release_date +
  49. " · " +
  50. articleInfo.chn_item +
  51. (articleInfo.page_no_in_pub
  52. ? " · P" + articleInfo.page_no_in_pub
  53. : "")
  54. }}
  55. {{ printForm.info.length > 0 ? " | " : "" }}
  56. {{
  57. printForm.info.indexOf("wordLength") > -1
  58. ? " 长度 " + articleInfo.art_corpus_data.artStatInfo.wc
  59. : ""
  60. }}
  61. {{
  62. printForm.info.indexOf("wordNumber") > -1
  63. ? " · 词数 " + articleInfo.art_corpus_data.artStatInfo.wdc
  64. : ""
  65. }}
  66. {{
  67. printForm.info.indexOf("difficulty") > -1
  68. ? " · 难度 " +
  69. articleInfo.art_corpus_data.artStatInfo.vocabHardLevel
  70. : ""
  71. }}
  72. </h6>
  73. <template v-if="resArr.length > 0 && articleInfo.en_flag">
  74. <div class="table-box">
  75. <div
  76. :class="['NNPE-detail']"
  77. v-for="(item, index) in resArr"
  78. :key="'detail' + index"
  79. >
  80. <div class="wordsList-box">
  81. <template v-if="index !== 0">
  82. <div class="nnpe-sentence-box">
  83. <div
  84. v-for="(pItem, pIndex) in item.wordsList"
  85. :key="'wordsList' + pIndex"
  86. class="word-box"
  87. :class="[
  88. pItem.isExplain || pItem.explainNumber
  89. ? 'hasExplain'
  90. : '',
  91. ]"
  92. >
  93. <template v-if="pItem.isShow">
  94. <template v-if="pItem.tokens[2] === '#@@#'">
  95. <span
  96. class="NNPE-chs"
  97. :style="{
  98. width: printForm.fontSize + 'px',
  99. height:
  100. printForm.fontSize * printForm.lineHeight +
  101. 'px',
  102. display: 'block',
  103. fontFamily: printForm.fontFamily,
  104. }"
  105. ></span>
  106. </template>
  107. <template v-else>
  108. <div :class="['NNPE-words']">
  109. <span
  110. class="NNPE-chs"
  111. :class="[
  112. pItem.tokens[9] === '' ? 'marginRight' : '',
  113. (pItem.highIndex &&
  114. printForm.bold.indexOf(pItem.types) > -1) ||
  115. (printForm.bold.indexOf('sentence') > -1 &&
  116. longSentIds.indexOf(pItem.sent_id) > -1)
  117. ? 'fontWeight'
  118. : '',
  119. pItem.marginRigh ? 'marginSingleRight' : '',
  120. ]"
  121. :style="{
  122. fontSize: printForm.fontSize + 'px',
  123. color: printForm.color,
  124. lineHeight: printForm.lineHeight,
  125. fontFamily: printForm.fontFamily,
  126. }"
  127. >{{ pItem.tokens[2] }}</span
  128. >
  129. <span
  130. class="NNPE-chs NNPE-chs-both"
  131. v-if="
  132. item.wordsList[pIndex + 1] &&
  133. item.wordsList[pIndex + 1].tokens[2] &&
  134. enFhList.indexOf(
  135. item.wordsList[pIndex + 1].tokens[2]
  136. ) > -1
  137. "
  138. :class="[
  139. item.wordsList[pIndex + 1].tokens[8] === ''
  140. ? 'marginLeft'
  141. : '',
  142. (item.wordsList[pIndex + 1].highIndex &&
  143. printForm.bold.indexOf(
  144. item.wordsList[pIndex + 1].types
  145. ) > -1) ||
  146. (printForm.bold.indexOf('sentence') > -1 &&
  147. longSentIds.indexOf(
  148. item.wordsList[pIndex + 1].sent_id
  149. ) > -1)
  150. ? 'fontWeight'
  151. : '',
  152. item.wordsList[pIndex + 1].marginRight
  153. ? 'marginSingleRight'
  154. : '',
  155. ]"
  156. :style="{
  157. fontSize: printForm.fontSize + 'px',
  158. color: printForm.color,
  159. lineHeight: printForm.lineHeight,
  160. fontFamily: printForm.fontFamily,
  161. }"
  162. >{{
  163. item.wordsList[pIndex + 1].tokens[2]
  164. }}</span
  165. >
  166. </div>
  167. </template>
  168. </template>
  169. </div>
  170. </div>
  171. </template>
  172. </div>
  173. <template
  174. v-if="
  175. articleImg &&
  176. articleImg[index] &&
  177. printForm.range.indexOf('image') > -1
  178. "
  179. >
  180. <figure
  181. v-for="(itemI, indexI) in articleImg[index]"
  182. :key="indexI"
  183. style="text-align: center"
  184. >
  185. <el-image
  186. :width="itemI.width"
  187. :height="itemI.height"
  188. :src="itemI.src"
  189. fit="contain"
  190. :preview-src-list="[itemI.src]"
  191. ></el-image>
  192. </figure>
  193. </template>
  194. </div>
  195. </div>
  196. </template>
  197. <div
  198. v-else
  199. class="cn-content"
  200. v-html="articleInfo.art_content"
  201. :style="{
  202. color: printForm.color,
  203. fontSize: printForm.fontSize + 'px',
  204. lineHeight: printForm.lineHeight,
  205. }"
  206. ></div>
  207. <template v-if="printForm.range.indexOf('vocab') > -1">
  208. <h5>词表</h5>
  209. <ul class="newwordlist">
  210. <li
  211. v-for="(itemW, indexW) in wordLit"
  212. :key="indexW"
  213. :class="['li-' + colorObj.type]"
  214. >
  215. <div class="word-info">
  216. <div class="word-info-top">
  217. <b class="word" :style="{ color: colorObj.newWordColor }">{{
  218. itemW.word
  219. }}</b>
  220. <span
  221. class="symbol"
  222. :style="{ color: colorObj.newWordOtherColor }"
  223. >{{ itemW.symbol }}</span
  224. >
  225. <label
  226. class="word-type"
  227. :style="{
  228. color: colorObj.newWordType[itemW.type]
  229. ? colorObj.newWordType[itemW.type].color
  230. : '',
  231. background: colorObj.newWordType[itemW.type]
  232. ? colorObj.newWordType[itemW.type].bg
  233. : '',
  234. }"
  235. >{{ itemW.typeCn }}</label
  236. >
  237. <span class="star" v-if="itemW.rate">
  238. <svg-icon
  239. icon-class="star-filled"
  240. v-for="(itemS, indexS) in itemW.rate"
  241. :key="indexS"
  242. :style="{ color: colorObj.newWordStar }"
  243. ></svg-icon>
  244. </span>
  245. <div class="para-list">
  246. <div
  247. class="para"
  248. v-for="(itemP, indexP) in itemW.paraList"
  249. :key="indexP"
  250. >
  251. <span
  252. class="cixing"
  253. :style="{ color: colorObj.newWordOtherColor }"
  254. >{{ itemP.cixing }}</span
  255. >
  256. <span
  257. class="shiyi"
  258. :style="{ color: colorObj.newWordOtherColor }"
  259. >{{ itemP.para }}</span
  260. >
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. </li>
  266. </ul>
  267. <h5
  268. v-if="
  269. articleInfo.art_phrase_data &&
  270. articleInfo.art_phrase_data.length > 0
  271. "
  272. >
  273. 短语
  274. </h5>
  275. <ul
  276. class="phraselist"
  277. v-if="
  278. articleInfo.art_phrase_data &&
  279. articleInfo.art_phrase_data.length > 0
  280. "
  281. >
  282. <li v-for="(itemW, indexW) in phraseList" :key="indexW">
  283. <div class="word-info">
  284. <div class="word-info-top">
  285. <b
  286. class="phrase"
  287. :style="{ color: colorObj.phraseColor }"
  288. @click="showItem(itemW, indexW)"
  289. >{{ itemW.exp_title }}</b
  290. >
  291. <div class="para-list">
  292. <div class="para">
  293. <span
  294. class="shiyi"
  295. :style="{ color: colorObj.phraseOhterColor }"
  296. >{{ itemW.exp_content }}</span
  297. >
  298. </div>
  299. </div>
  300. </div>
  301. </div>
  302. </li>
  303. </ul>
  304. <h5
  305. v-if="
  306. articleInfo.art_explain_data &&
  307. articleInfo.art_explain_data.length > 0
  308. "
  309. >
  310. 注释
  311. </h5>
  312. <ul
  313. class="explainlist"
  314. v-if="
  315. articleInfo.art_explain_data &&
  316. articleInfo.art_explain_data.length > 0
  317. "
  318. >
  319. <li
  320. v-for="(itemW, indexW) in articleInfo.art_explain_data"
  321. :key="indexW"
  322. >
  323. <b
  324. class="prefix"
  325. :style="{ color: colorObj.phraseOhterColor }"
  326. >{{ itemW.exp_title }}</b
  327. >
  328. <div
  329. class="para-list"
  330. :style="{ color: colorObj.newWordOtherColor }"
  331. v-html="itemW.exp_content"
  332. ></div>
  333. </li>
  334. </ul>
  335. </template>
  336. <template v-if="printForm.range.indexOf('ciyun') > -1">
  337. <iframe
  338. class="ciyun-box"
  339. width="100%"
  340. height="720px"
  341. border="none"
  342. :src="
  343. './ciyun/ciyunPrint.html?partitionKey=1&searchType=2&articleId=' +
  344. articleId
  345. "
  346. ></iframe>
  347. </template>
  348. <template v-if="printForm.range.indexOf('notes') > -1">
  349. <h5 v-if="notesList.length > 0">笔记</h5>
  350. <ul class="explainlist">
  351. <li v-for="(itemW, indexW) in notesList" :key="indexW">
  352. <b
  353. class="prefix"
  354. :style="{ color: colorObj.phraseOhterColor }"
  355. >{{ itemW.select_text }}</b
  356. >
  357. <div
  358. class="para-list"
  359. :style="{ color: colorObj.newWordOtherColor }"
  360. v-html="itemW.note"
  361. ></div>
  362. </li>
  363. </ul>
  364. </template>
  365. </div>
  366. <footer class="print-footer">
  367. <span>{{ printForm.school }}</span>
  368. <span>{{ printForm.className }}</span>
  369. <span>{{ printForm.name }}</span>
  370. <span style="flex: 1"></span>
  371. <span>{{ printForm.dateStr }}</span>
  372. <span>{{ printForm.momo }}</span>
  373. </footer>
  374. </div>
  375. <div class="print-model-bottom-right">
  376. <h3><svg-icon icon-class="print"></svg-icon>打印设置</h3>
  377. <div class="config-box">
  378. <div class="item-page">
  379. <label>字体:</label>
  380. <el-select v-model="printForm.fontFamily" placeholder="请选择">
  381. <el-option
  382. v-for="item in fontList"
  383. :key="item.value"
  384. :label="item.name"
  385. :value="item.value"
  386. >
  387. </el-option>
  388. </el-select>
  389. </div>
  390. <div class="item-page">
  391. <label>字号:</label>
  392. <el-input-number
  393. v-model="printForm.fontSize"
  394. :step="2"
  395. ></el-input-number>
  396. </div>
  397. <div class="item-page">
  398. <label>颜色:</label>
  399. <el-color-picker
  400. v-model="printForm.color"
  401. size="small"
  402. ></el-color-picker>
  403. </div>
  404. <el-divider class="print-divider"></el-divider>
  405. <div class="item-page">
  406. <label>行距:</label>
  407. <el-select v-model="printForm.lineHeight" placeholder="请选择">
  408. <el-option
  409. v-for="item in lineHeightList"
  410. :key="item.value"
  411. :label="item.name"
  412. :value="item.value"
  413. >
  414. </el-option>
  415. </el-select>
  416. </div>
  417. <el-divider class="print-divider"></el-divider>
  418. <div class="item-page">
  419. <label>打印范围:</label>
  420. <el-checkbox-group v-model="printForm.range">
  421. <el-checkbox
  422. v-for="(itemT, indexT) in rangeList"
  423. :key="indexT"
  424. :label="itemT.value"
  425. >{{ itemT.name }}</el-checkbox
  426. >
  427. </el-checkbox-group>
  428. </div>
  429. <div class="item-page" v-if="articleInfo.en_flag">
  430. <label>加粗显示:</label>
  431. <el-checkbox-group v-model="printForm.bold">
  432. <el-checkbox
  433. v-for="(itemT, indexT) in boldList"
  434. :key="indexT"
  435. :label="itemT.value"
  436. >{{ itemT.name }}</el-checkbox
  437. >
  438. </el-checkbox-group>
  439. </div>
  440. <el-divider class="print-divider"></el-divider>
  441. <div class="item-page">
  442. <label>附加信息:</label>
  443. <b @click="handleClear"
  444. ><svg-icon icon-class="clear"></svg-icon>清除</b
  445. >
  446. </div>
  447. <div class="item-page">
  448. <label>姓名:</label>
  449. <el-input
  450. v-model="printForm.name"
  451. autocomplete="off"
  452. placeholder="请输入"
  453. maxlength="20"
  454. >
  455. </el-input>
  456. </div>
  457. <div class="item-page">
  458. <label>学校:</label>
  459. <el-input
  460. v-model="printForm.school"
  461. autocomplete="off"
  462. placeholder="请输入"
  463. maxlength="20"
  464. >
  465. </el-input>
  466. </div>
  467. <div class="item-page">
  468. <label>班级:</label>
  469. <el-input
  470. v-model="printForm.className"
  471. autocomplete="off"
  472. placeholder="请输入"
  473. maxlength="20"
  474. >
  475. </el-input>
  476. </div>
  477. <div class="item-page">
  478. <label>日期:</label>
  479. <el-input
  480. v-model="printForm.dateStr"
  481. autocomplete="off"
  482. placeholder="请输入"
  483. maxlength="20"
  484. >
  485. </el-input>
  486. </div>
  487. <div class="item-page">
  488. <label>备注:</label>
  489. <el-input
  490. v-model="printForm.momo"
  491. autocomplete="off"
  492. placeholder="请输入"
  493. maxlength="20"
  494. >
  495. </el-input>
  496. </div>
  497. <el-divider class="print-divider"></el-divider>
  498. <div class="item-page">
  499. <label>统计信息:</label>
  500. <el-checkbox-group v-model="printForm.info">
  501. <el-checkbox
  502. v-for="(itemT, indexT) in infoList"
  503. :key="indexT"
  504. :label="itemT.value"
  505. >{{ itemT.name }}</el-checkbox
  506. >
  507. </el-checkbox-group>
  508. </div>
  509. <el-divider class="print-divider"></el-divider>
  510. </div>
  511. <p style="color: red; width: 100%; margin: 10px 0; text-align: center">
  512. 若点击打印按钮无法显示,下一个页面点击更多设置,勾选背景图形
  513. </p>
  514. <div class="item-page" style="padding: 0 24px">
  515. <el-button @click="goBack" size="small">取消</el-button>
  516. <el-button type="primary" @click="generatePDF" size="small"
  517. >下载</el-button
  518. >
  519. <el-button type="primary" @click="handlePrint" size="small"
  520. >打印</el-button
  521. >
  522. <el-button type="primary" @click="handleManyPrint" size="small"
  523. >打印多篇</el-button
  524. >
  525. </div>
  526. </div>
  527. </div>
  528. <el-dialog
  529. :visible.sync="printManyFlag"
  530. width="500px"
  531. append-to-body
  532. :show-close="true"
  533. title="选择打印的文章"
  534. :close-on-click-modal="false"
  535. >
  536. <el-form ref="form">
  537. <el-form-item prop="name">
  538. <el-cascader
  539. v-model="printManyId"
  540. :props="{ multiple: true }"
  541. collapse-tags
  542. :options="printManyMenu"
  543. style="width: 470px"
  544. />
  545. </el-form-item>
  546. <el-form-item style="text-align: right">
  547. <el-button @click="printManyFlag = false">取 消</el-button>
  548. <el-button :loading="loading" type="primary" @click="submitPrintMore"
  549. >确 定</el-button
  550. ></el-form-item
  551. >
  552. </el-form>
  553. </el-dialog>
  554. <div
  555. class="print-model-bottom-left"
  556. ref="printAreaManys"
  557. id="showWaterMarks"
  558. v-if="isPrintMore"
  559. :style="{
  560. width: '220mm',
  561. }"
  562. >
  563. <div
  564. class="print-inner"
  565. v-for="(itemA, index) in printManyDetails"
  566. :key="index"
  567. >
  568. <h2>
  569. <span
  570. :style="{
  571. color: colorObj.titleColor,
  572. fontSize: titleFontsize + 'px',
  573. lineHeight: titleFontsize + 8 + 'px',
  574. marginRight: '10px',
  575. fontWeight: '700',
  576. cursor: 'pointer',
  577. wordBreak: 'break-word',
  578. }"
  579. >{{ itemA.art_title }}</span
  580. >
  581. </h2>
  582. <h6
  583. class="nnpe-article-author"
  584. :style="{
  585. color: colorObj.sourceColor,
  586. fontSize: wordFontsize - 4 + 'px',
  587. lineHeight: wordFontsize + 4 + 'px',
  588. fontWeight: '400',
  589. }"
  590. >
  591. {{
  592. itemA.art_author +
  593. " · " +
  594. itemA.study_phase_name +
  595. "版 · 第 " +
  596. itemA.iss_no +
  597. " 期 · " +
  598. itemA.release_date +
  599. " · " +
  600. itemA.chn_item +
  601. (itemA.page_no_in_pub ? " · P" + itemA.page_no_in_pub : "")
  602. }}
  603. {{ printForm.info.length > 0 ? " | " : "" }}
  604. {{
  605. printForm.info.indexOf("wordLength") > -1
  606. ? " 长度 " + itemA.art_corpus_data.artStatInfo.wc
  607. : ""
  608. }}
  609. {{
  610. printForm.info.indexOf("wordNumber") > -1
  611. ? " · 词数 " + itemA.art_corpus_data.artStatInfo.wdc
  612. : ""
  613. }}
  614. {{
  615. printForm.info.indexOf("difficulty") > -1
  616. ? " · 难度 " + itemA.art_corpus_data.artStatInfo.vocabHardLevel
  617. : ""
  618. }}
  619. </h6>
  620. <template v-if="itemA.resArr.length > 0 && itemA.en_flag">
  621. <div class="table-box">
  622. <div
  623. :class="['NNPE-detail']"
  624. v-for="(item, index) in itemA.resArr"
  625. :key="'detail' + index"
  626. >
  627. <div class="wordsList-box">
  628. <template v-if="index !== 0">
  629. <div class="nnpe-sentence-box">
  630. <div
  631. v-for="(pItem, pIndex) in item.wordsList"
  632. :key="'wordsList' + pIndex"
  633. class="word-box"
  634. :class="[
  635. pItem.isExplain || pItem.explainNumber
  636. ? 'hasExplain'
  637. : '',
  638. ]"
  639. >
  640. <template v-if="pItem.isShow">
  641. <template v-if="pItem.tokens[2] === '#@@#'">
  642. <span
  643. class="NNPE-chs"
  644. :style="{
  645. width: printForm.fontSize + 'px',
  646. height:
  647. printForm.fontSize * printForm.lineHeight +
  648. 'px',
  649. display: 'block',
  650. fontFamily: printForm.fontFamily,
  651. }"
  652. ></span>
  653. </template>
  654. <template v-else>
  655. <div :class="['NNPE-words']">
  656. <span
  657. class="NNPE-chs"
  658. :class="[
  659. pItem.tokens[9] === '' ? 'marginRight' : '',
  660. (pItem.highIndex &&
  661. printForm.bold.indexOf(pItem.types) > -1) ||
  662. (printForm.bold.indexOf('sentence') > -1 &&
  663. longSentIds.indexOf(pItem.sent_id) > -1)
  664. ? 'fontWeight'
  665. : '',
  666. pItem.marginRigh ? 'marginSingleRight' : '',
  667. ]"
  668. :style="{
  669. fontSize: printForm.fontSize + 'px',
  670. color: printForm.color,
  671. lineHeight: printForm.lineHeight,
  672. fontFamily: printForm.fontFamily,
  673. }"
  674. >{{ pItem.tokens[2] }}</span
  675. >
  676. <span
  677. class="NNPE-chs NNPE-chs-both"
  678. v-if="
  679. item.wordsList[pIndex + 1] &&
  680. item.wordsList[pIndex + 1].tokens[2] &&
  681. enFhList.indexOf(
  682. item.wordsList[pIndex + 1].tokens[2]
  683. ) > -1
  684. "
  685. :class="[
  686. item.wordsList[pIndex + 1].tokens[8] === ''
  687. ? 'marginLeft'
  688. : '',
  689. (item.wordsList[pIndex + 1].highIndex &&
  690. printForm.bold.indexOf(
  691. item.wordsList[pIndex + 1].types
  692. ) > -1) ||
  693. (printForm.bold.indexOf('sentence') > -1 &&
  694. longSentIds.indexOf(
  695. item.wordsList[pIndex + 1].sent_id
  696. ) > -1)
  697. ? 'fontWeight'
  698. : '',
  699. item.wordsList[pIndex + 1].marginRight
  700. ? 'marginSingleRight'
  701. : '',
  702. ]"
  703. :style="{
  704. fontSize: printForm.fontSize + 'px',
  705. color: printForm.color,
  706. lineHeight: printForm.lineHeight,
  707. fontFamily: printForm.fontFamily,
  708. }"
  709. >{{ item.wordsList[pIndex + 1].tokens[2] }}</span
  710. >
  711. </div>
  712. </template>
  713. </template>
  714. </div>
  715. </div>
  716. </template>
  717. </div>
  718. <template
  719. v-if="
  720. itemA.articleImg &&
  721. itemA.articleImg[index] &&
  722. printForm.range.indexOf('image') > -1
  723. "
  724. >
  725. <figure
  726. v-for="(itemI, indexI) in itemA.articleImg[index]"
  727. :key="indexI"
  728. style="text-align: center"
  729. >
  730. <el-image
  731. :width="itemI.width"
  732. :height="itemI.height"
  733. :src="itemI.src"
  734. fit="contain"
  735. :preview-src-list="[itemI.src]"
  736. ></el-image>
  737. </figure>
  738. </template>
  739. </div>
  740. </div>
  741. </template>
  742. <div
  743. v-else
  744. class="cn-content"
  745. v-html="itemA.art_content"
  746. :style="{
  747. color: printForm.color,
  748. fontSize: printForm.fontSize + 'px',
  749. lineHeight: printForm.lineHeight,
  750. }"
  751. ></div>
  752. <template v-if="printForm.range.indexOf('vocab') > -1">
  753. <h5>词表</h5>
  754. <ul class="newwordlist">
  755. <li
  756. v-for="(itemW, indexW) in itemA.wordLit"
  757. :key="indexW"
  758. :class="['li-' + colorObj.type]"
  759. >
  760. <div class="word-info">
  761. <div class="word-info-top">
  762. <b class="word" :style="{ color: colorObj.newWordColor }">{{
  763. itemW.word
  764. }}</b>
  765. <span
  766. class="symbol"
  767. :style="{ color: colorObj.newWordOtherColor }"
  768. >{{ itemW.symbol }}</span
  769. >
  770. <label
  771. class="word-type"
  772. :style="{
  773. color: colorObj.newWordType[itemW.type]
  774. ? colorObj.newWordType[itemW.type].color
  775. : '',
  776. background: colorObj.newWordType[itemW.type]
  777. ? colorObj.newWordType[itemW.type].bg
  778. : '',
  779. }"
  780. >{{ itemW.typeCn }}</label
  781. >
  782. <span class="star" v-if="itemW.rate">
  783. <svg-icon
  784. icon-class="star-filled"
  785. v-for="(itemS, indexS) in itemW.rate"
  786. :key="indexS"
  787. :style="{ color: colorObj.newWordStar }"
  788. ></svg-icon>
  789. </span>
  790. <div class="para-list">
  791. <div
  792. class="para"
  793. v-for="(itemP, indexP) in itemW.paraList"
  794. :key="indexP"
  795. >
  796. <span
  797. class="cixing"
  798. :style="{ color: colorObj.newWordOtherColor }"
  799. >{{ itemP.cixing }}</span
  800. >
  801. <span
  802. class="shiyi"
  803. :style="{ color: colorObj.newWordOtherColor }"
  804. >{{ itemP.para }}</span
  805. >
  806. </div>
  807. </div>
  808. </div>
  809. </div>
  810. </li>
  811. </ul>
  812. <h5 v-if="itemA.art_phrase_data && itemA.art_phrase_data.length > 0">
  813. 短语
  814. </h5>
  815. <ul
  816. class="phraselist"
  817. v-if="itemA.art_phrase_data && itemA.art_phrase_data.length > 0"
  818. >
  819. <li v-for="(itemW, indexW) in itemA.phraseList" :key="indexW">
  820. <div class="word-info">
  821. <div class="word-info-top">
  822. <b
  823. class="phrase"
  824. :style="{ color: colorObj.phraseColor }"
  825. @click="showItem(itemW, indexW)"
  826. >{{ itemW.exp_title }}</b
  827. >
  828. <div class="para-list">
  829. <div class="para">
  830. <span
  831. class="shiyi"
  832. :style="{ color: colorObj.phraseOhterColor }"
  833. >{{ itemW.exp_content }}</span
  834. >
  835. </div>
  836. </div>
  837. </div>
  838. </div>
  839. </li>
  840. </ul>
  841. <h5
  842. v-if="itemA.art_explain_data && itemA.art_explain_data.length > 0"
  843. >
  844. 注释
  845. </h5>
  846. <ul
  847. class="explainlist"
  848. v-if="itemA.art_explain_data && itemA.art_explain_data.length > 0"
  849. >
  850. <li v-for="(itemW, indexW) in itemA.art_explain_data" :key="indexW">
  851. <b class="prefix" :style="{ color: colorObj.phraseOhterColor }">{{
  852. itemW.exp_title
  853. }}</b>
  854. <div
  855. class="para-list"
  856. :style="{ color: colorObj.newWordOtherColor }"
  857. v-html="itemW.exp_content"
  858. ></div>
  859. </li>
  860. </ul>
  861. </template>
  862. <template v-if="printForm.range.indexOf('ciyun') > -1">
  863. <iframe
  864. class="ciyun-box"
  865. width="100%"
  866. height="720px"
  867. border="none"
  868. :src="
  869. './ciyun/ciyunPrint.html?partitionKey=1&searchType=2&articleId=' +
  870. itemA.id
  871. "
  872. ></iframe>
  873. </template>
  874. <template v-if="printForm.range.indexOf('notes') > -1">
  875. <h5 v-if="itemA.notesList.length > 0">笔记</h5>
  876. <ul class="explainlist">
  877. <li v-for="(itemW, indexW) in itemA.notesList" :key="indexW">
  878. <b class="prefix" :style="{ color: colorObj.phraseOhterColor }">{{
  879. itemW.select_text
  880. }}</b>
  881. <div
  882. class="para-list"
  883. :style="{ color: colorObj.newWordOtherColor }"
  884. v-html="itemW.note"
  885. ></div>
  886. </li>
  887. </ul>
  888. </template>
  889. </div>
  890. <footer class="print-footer">
  891. <span>{{ printForm.school }}</span>
  892. <span>{{ printForm.className }}</span>
  893. <span>{{ printForm.name }}</span>
  894. <span style="flex: 1"></span>
  895. <span>{{ printForm.dateStr }}</span>
  896. <span>{{ printForm.momo }}</span>
  897. </footer>
  898. </div>
  899. </div>
  900. </template>
  901. <script>
  902. import waterMark from "../../../store/watermark";
  903. import { getToken } from "@/utils/auth";
  904. import { getLogin } from "@/api/ajax";
  905. import html2pdf from "html2pdf.js";
  906. export default {
  907. props: [
  908. "titleFontsize",
  909. "wordFontsize",
  910. "colorObj",
  911. "articleType",
  912. "articleInfo",
  913. "likePhraseList",
  914. "likeWord",
  915. "articleImg",
  916. ],
  917. data() {
  918. return {
  919. userMessage: getToken() ? JSON.parse(getToken()) : null,
  920. articleId: this.$route.query.id ? this.$route.query.id : "",
  921. issId: this.$route.query.iss_id ? this.$route.query.iss_id : "",
  922. resArr: [],
  923. enFhList: [
  924. ",",
  925. ".",
  926. ";",
  927. "?",
  928. "!",
  929. ":",
  930. ">",
  931. "<",
  932. "'",
  933. "’",
  934. "n't",
  935. "n’t",
  936. "n’ts",
  937. "n‘t",
  938. "'t",
  939. "’t",
  940. "‘t",
  941. "'s",
  942. "’s",
  943. "‘s",
  944. "'m",
  945. "’m",
  946. "‘m",
  947. "'re",
  948. "’re",
  949. "‘re",
  950. "'d",
  951. "’d",
  952. "‘d",
  953. "'ve",
  954. "’ve",
  955. "‘ve",
  956. ")",
  957. "'ll",
  958. "’ll",
  959. "‘ll",
  960. "”",
  961. ],
  962. sentenceList: [],
  963. longSentIds: [], // 长句id
  964. allWordList: [], // 生词短语注释总列表
  965. wordLit: [],
  966. annotationList: [],
  967. phraseList: [],
  968. notesList: [], // 笔记列表
  969. fontList: [
  970. {
  971. value: "roman",
  972. name: "Times New Roman",
  973. },
  974. {
  975. value: "Arial",
  976. name: "Arial",
  977. },
  978. ],
  979. lineHeightList: [
  980. {
  981. value: "0.8",
  982. name: "0.8倍",
  983. },
  984. {
  985. value: "1.0",
  986. name: "1.0倍",
  987. },
  988. {
  989. value: "1.5",
  990. name: "1.5倍",
  991. },
  992. {
  993. value: "2.0",
  994. name: "2.0倍",
  995. },
  996. ],
  997. rangeList: [
  998. {
  999. value: "image",
  1000. name: "图片",
  1001. },
  1002. {
  1003. value: "vocab",
  1004. name: "词表",
  1005. },
  1006. {
  1007. value: "ciyun",
  1008. name: "词云",
  1009. },
  1010. {
  1011. value: "notes",
  1012. name: "笔记",
  1013. },
  1014. ],
  1015. boldList: [
  1016. {
  1017. value: "newWord",
  1018. name: "生词",
  1019. },
  1020. {
  1021. value: "phrase",
  1022. name: "短语",
  1023. },
  1024. {
  1025. value: "sentence",
  1026. name: "长句",
  1027. },
  1028. ],
  1029. infoList: [
  1030. {
  1031. value: "wordLength",
  1032. name: "长度",
  1033. },
  1034. {
  1035. value: "wordNumber",
  1036. name: "词数",
  1037. },
  1038. {
  1039. value: "difficulty",
  1040. name: "难度",
  1041. },
  1042. ],
  1043. printForm: {
  1044. fontFamily: "roman",
  1045. fontSize: 24,
  1046. color: "#2F3742",
  1047. lineHeight: "1.5",
  1048. range: [],
  1049. bold: ["newWord", "phrase"],
  1050. info: [],
  1051. name: "",
  1052. school: "",
  1053. className: "",
  1054. dateStr: "",
  1055. momo: "",
  1056. },
  1057. isPrint: false,
  1058. printNumber: 0,
  1059. issDetail: null, // 整期文章内容
  1060. issDetailMap: {}, // 整期文章详情map
  1061. printManyFlag: false,
  1062. printManyId: [], // 打印多篇文章id
  1063. loading: false,
  1064. printManyMenu: [], // 打印多篇文章目录
  1065. printManyDetails: [], // 最终确定打印文章内容详情
  1066. isPrintMore: false,
  1067. };
  1068. },
  1069. created() {
  1070. if (this.articleInfo.en_flag) {
  1071. this.rangeList = [
  1072. {
  1073. value: "image",
  1074. name: "图片",
  1075. },
  1076. {
  1077. value: "vocab",
  1078. name: "词表",
  1079. },
  1080. {
  1081. value: "ciyun",
  1082. name: "词云",
  1083. },
  1084. {
  1085. value: "notes",
  1086. name: "笔记",
  1087. },
  1088. ];
  1089. } else {
  1090. this.rangeList = [
  1091. {
  1092. value: "vocab",
  1093. name: "词表",
  1094. },
  1095. {
  1096. value: "ciyun",
  1097. name: "词云",
  1098. },
  1099. {
  1100. value: "notes",
  1101. name: "笔记",
  1102. },
  1103. ];
  1104. }
  1105. this.getIssueDetail();
  1106. },
  1107. methods: {
  1108. goBack() {
  1109. this.$emit("closePrint");
  1110. },
  1111. handleData() {
  1112. let explainNumber = 1;
  1113. let resArr = [];
  1114. let articleInfo = JSON.parse(JSON.stringify(this.articleInfo));
  1115. this.sentenceList = articleInfo.art_corpus_data
  1116. ? articleInfo.art_corpus_data.sentList
  1117. : [];
  1118. this.longSentIds =
  1119. articleInfo.art_corpus_data && articleInfo.art_corpus_data.artStatInfo
  1120. ? articleInfo.art_corpus_data.artStatInfo.longSentIds
  1121. : [];
  1122. this.wordLit = articleInfo.art_voc_data ? articleInfo.art_voc_data : [];
  1123. this.annotationList = articleInfo.art_phrase_data
  1124. ? articleInfo.art_explain_data
  1125. : [];
  1126. this.phraseList = articleInfo.art_explain_data
  1127. ? articleInfo.art_phrase_data
  1128. : [];
  1129. this.wordLit.forEach((item) => {
  1130. item.types = "newWord";
  1131. item.exp_title = item.word_name;
  1132. let paraStr = "";
  1133. if (item.word_explain && item.word_explain.word_para_list) {
  1134. item.word_explain.word_para_list.forEach((items) => {
  1135. paraStr += items.para;
  1136. });
  1137. }
  1138. item.exp_content = paraStr;
  1139. item.word = item.word_name;
  1140. item.symbol = item.word_explain.ph ? item.word_explain.ph : "";
  1141. item.paraList = item.word_explain.word_para_list;
  1142. item.type = item.word_explain.vl_level
  1143. ? item.word_explain.vl_level
  1144. : "";
  1145. item.typeCn = item.word_explain.vl_level_name
  1146. ? item.word_explain.vl_level_name
  1147. : "";
  1148. item.rate = item.word_explain.star ? item.word_explain.star : null;
  1149. });
  1150. this.phraseList.forEach((item) => {
  1151. item.type = "phrase";
  1152. });
  1153. this.annotationList.forEach((item) => {
  1154. item.type = "explain";
  1155. });
  1156. this.allWordList = this.wordLit.concat(this.phraseList);
  1157. let leg =
  1158. articleInfo.art_corpus_data.sentList[
  1159. articleInfo.art_corpus_data.sentList.length - 1
  1160. ].pno;
  1161. this.sentenceList.forEach((item, index) => {
  1162. let flag = "";
  1163. item.StyleTokens = [];
  1164. item.tokens.forEach((items, indexs) => {
  1165. let obj = {
  1166. tokens: items,
  1167. marginRight: indexs === item.tokens.length - 1,
  1168. };
  1169. this.allWordList.forEach((itema, indexa) => {
  1170. itema.bind_sent_data.bind_sents.forEach((itemb, indexb) => {
  1171. if (itemb.sent_id === item.id) {
  1172. if (itema.type === "explain") {
  1173. if (
  1174. indexs ===
  1175. itemb.sel_token_idxes[itemb.sel_token_idxes.length - 1]
  1176. ) {
  1177. obj.highIndex = true;
  1178. obj.type = itema.type;
  1179. obj.types = itema.type;
  1180. obj.word_id = itema.id; // 生词注释短语的id
  1181. obj.explainNumber = explainNumber;
  1182. explainNumber++;
  1183. }
  1184. } else {
  1185. itemb.sel_token_idxes.forEach((itemi) => {
  1186. if (indexs === itemi) {
  1187. obj.highIndex = true;
  1188. obj.type = itema.type;
  1189. obj.types = itema.types ? itema.types : itema.type;
  1190. obj.word_id = itema.id; // 生词注释短语的id
  1191. }
  1192. });
  1193. }
  1194. if (
  1195. itemb.sel_token_idxes.length === 0 &&
  1196. itema.type === "explain" &&
  1197. indexs === item.tokens.length - 1
  1198. ) {
  1199. flag = itema.id;
  1200. }
  1201. }
  1202. });
  1203. });
  1204. item.StyleTokens.push(obj);
  1205. if (flag) {
  1206. item.StyleTokens.push({
  1207. tokens: [
  1208. 0,
  1209. 8,
  1210. "Students",
  1211. "",
  1212. "",
  1213. "",
  1214. "",
  1215. "",
  1216. "",
  1217. " ",
  1218. 0,
  1219. "",
  1220. "",
  1221. "",
  1222. ],
  1223. type: "explain",
  1224. word_id: flag,
  1225. isExplain: true,
  1226. explainNumber: explainNumber,
  1227. });
  1228. explainNumber++;
  1229. }
  1230. });
  1231. });
  1232. for (let i = 0; i < leg + 1; i++) {
  1233. let obgs = {
  1234. isShow: true,
  1235. marginRight: false,
  1236. tokens: [
  1237. "",
  1238. "",
  1239. "#@@#",
  1240. "",
  1241. "",
  1242. "",
  1243. "",
  1244. "",
  1245. " ",
  1246. " ",
  1247. "",
  1248. "",
  1249. "",
  1250. "",
  1251. "",
  1252. ],
  1253. };
  1254. let obj = {
  1255. wordsList: i === 0 ? [] : [obgs, obgs],
  1256. };
  1257. resArr.push(obj);
  1258. }
  1259. this.sentenceList.forEach((item, index) => {
  1260. item.StyleTokens.forEach((items, indexs) => {
  1261. items.isShow = this.enFhList.indexOf(items.tokens[2]) == -1;
  1262. items.sent_id = item.id;
  1263. resArr[item.pno].wordsList.push(items);
  1264. });
  1265. });
  1266. this.resArr = resArr;
  1267. setTimeout(() => {
  1268. waterMark.set(
  1269. this.userMessage.user_name + " " + this.userMessage.phone,
  1270. "",
  1271. "showWaterMark"
  1272. );
  1273. }, 1000);
  1274. },
  1275. // 打印
  1276. handlePrint() {
  1277. let MethodName =
  1278. "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article";
  1279. getLogin(MethodName, {
  1280. goods_type: 21,
  1281. date_range: "TODAY",
  1282. article_id: this.articleId,
  1283. }).then((res) => {
  1284. if (res.status === 1) {
  1285. if (res.print_count < 5) {
  1286. getLogin(
  1287. "/ShopServer/Client/PrintRecordManager/AddPrintRecord_Article",
  1288. {
  1289. goods_type: 21,
  1290. article_id: this.articleId,
  1291. }
  1292. ).then((res) => {
  1293. if (res.status === 1) {
  1294. }
  1295. });
  1296. this.$nextTick(() => {
  1297. this.$print(this.$refs["printArea"], {
  1298. noPrint: ".noPrint",
  1299. type: "html",
  1300. scanStyles: true,
  1301. showModal: true,
  1302. // style: style,// 亦可使用引入的外部css;
  1303. onStart: () => {
  1304. // console.log("打印开始");
  1305. },
  1306. onEnd: () => {
  1307. // console.log("打印完成");
  1308. },
  1309. });
  1310. });
  1311. } else {
  1312. this.$message.warning("今日打印次数已达上限");
  1313. }
  1314. }
  1315. });
  1316. },
  1317. // 清除
  1318. handleClear() {
  1319. this.printForm.name = "";
  1320. this.printForm.school = "";
  1321. this.printForm.className = "";
  1322. this.printForm.dateStr = "";
  1323. this.printForm.momo = "";
  1324. },
  1325. // 高亮笔记句子
  1326. handleHighSentence() {
  1327. let MethodName = "/PaperServer/Client/Article/ArtNoteListInArt";
  1328. let data = {
  1329. id: this.$route.query.id,
  1330. };
  1331. getLogin(MethodName, data).then((res) => {
  1332. if (res.status === 1) {
  1333. this.notesList = res.data;
  1334. }
  1335. });
  1336. },
  1337. // 下载pdf
  1338. async generatePDF() {
  1339. let MethodName =
  1340. "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article";
  1341. getLogin(MethodName, {
  1342. goods_type: 21,
  1343. date_range: "TODAY",
  1344. article_id: this.articleId,
  1345. }).then((res) => {
  1346. if (res.status === 1) {
  1347. if (res.print_count < 5) {
  1348. getLogin(
  1349. "/ShopServer/Client/PrintRecordManager/AddPrintRecord_Article",
  1350. {
  1351. goods_type: 21,
  1352. article_id: this.articleId,
  1353. }
  1354. ).then((res) => {
  1355. if (res.status === 1) {
  1356. }
  1357. });
  1358. this.$nextTick(() => {
  1359. this.isPrint = true;
  1360. const element = document.getElementById("showWaterMark");
  1361. const opt = {
  1362. margin: [0, 0, 0, 0],
  1363. useCORS: true,
  1364. filename: "二十一世纪英语智慧阅读平台.pdf",
  1365. image: { type: "jpeg", quality: 0.98 },
  1366. html2canvas: { scale: 2 }, // 或其他自定义设置,例如scale可以放大内容以便更容易阅读和打印。
  1367. jsPDF: { unit: "mm", format: "a4", orientation: "portrait" }, // A4尺寸的PDF,纵向打印。
  1368. };
  1369. html2pdf().set(opt).from(element).save();
  1370. setTimeout(() => {
  1371. this.isPrint = false;
  1372. }, 100);
  1373. });
  1374. } else {
  1375. this.$message.warning("今日下载次数已达上限");
  1376. }
  1377. }
  1378. });
  1379. },
  1380. // 获取整期报刊内容
  1381. getIssueDetail() {
  1382. this.issDetail = null;
  1383. this.issDetailMap = {};
  1384. let MethodName = "/PaperServer/Client/Article/GetIssueDetail";
  1385. getLogin(MethodName, {
  1386. id: this.issId,
  1387. }).then((res) => {
  1388. if (res.status === 1) {
  1389. this.issDetail = res.data;
  1390. if (res.data.articles) {
  1391. this.issDetailMap = res.data.articles.reduce((acc, user) => {
  1392. acc[user.id] = user;
  1393. return acc;
  1394. }, {});
  1395. res.data.articles.forEach((itemA) => {
  1396. let explainNumber = 1;
  1397. let resArr = [];
  1398. let articleInfo = JSON.parse(JSON.stringify(itemA));
  1399. let sentenceList = articleInfo.art_corpus_data
  1400. ? articleInfo.art_corpus_data.sentList
  1401. : [];
  1402. let longSentIds =
  1403. articleInfo.art_corpus_data &&
  1404. articleInfo.art_corpus_data.artStatInfo
  1405. ? articleInfo.art_corpus_data.artStatInfo.longSentIds
  1406. : [];
  1407. let wordLit = articleInfo.art_voc_data
  1408. ? articleInfo.art_voc_data
  1409. : [];
  1410. let annotationList = articleInfo.art_phrase_data
  1411. ? articleInfo.art_explain_data
  1412. : [];
  1413. let phraseList = articleInfo.art_explain_data
  1414. ? articleInfo.art_phrase_data
  1415. : [];
  1416. wordLit.forEach((item) => {
  1417. item.types = "newWord";
  1418. item.exp_title = item.word_name;
  1419. let paraStr = "";
  1420. if (item.word_explain && item.word_explain.word_para_list) {
  1421. item.word_explain.word_para_list.forEach((items) => {
  1422. paraStr += items.para;
  1423. });
  1424. }
  1425. item.exp_content = paraStr;
  1426. item.word = item.word_name;
  1427. item.symbol = item.word_explain.ph ? item.word_explain.ph : "";
  1428. item.paraList = item.word_explain.word_para_list;
  1429. item.type = item.word_explain.vl_level
  1430. ? item.word_explain.vl_level
  1431. : "";
  1432. item.typeCn = item.word_explain.vl_level_name
  1433. ? item.word_explain.vl_level_name
  1434. : "";
  1435. item.rate = item.word_explain.star
  1436. ? item.word_explain.star
  1437. : null;
  1438. });
  1439. phraseList.forEach((item) => {
  1440. item.type = "phrase";
  1441. });
  1442. annotationList.forEach((item) => {
  1443. item.type = "explain";
  1444. });
  1445. let allWordList = wordLit.concat(phraseList);
  1446. let leg =
  1447. articleInfo.art_corpus_data.sentList[
  1448. articleInfo.art_corpus_data.sentList.length - 1
  1449. ].pno;
  1450. sentenceList.forEach((item, index) => {
  1451. let flag = "";
  1452. item.StyleTokens = [];
  1453. item.tokens.forEach((items, indexs) => {
  1454. let obj = {
  1455. tokens: items,
  1456. marginRight: indexs === item.tokens.length - 1,
  1457. };
  1458. allWordList.forEach((itema, indexa) => {
  1459. itema.bind_sent_data.bind_sents.forEach((itemb, indexb) => {
  1460. if (itemb.sent_id === item.id) {
  1461. if (itema.type === "explain") {
  1462. if (
  1463. indexs ===
  1464. itemb.sel_token_idxes[
  1465. itemb.sel_token_idxes.length - 1
  1466. ]
  1467. ) {
  1468. obj.highIndex = true;
  1469. obj.type = itema.type;
  1470. obj.types = itema.type;
  1471. obj.word_id = itema.id; // 生词注释短语的id
  1472. obj.explainNumber = explainNumber;
  1473. explainNumber++;
  1474. }
  1475. } else {
  1476. itemb.sel_token_idxes.forEach((itemi) => {
  1477. if (indexs === itemi) {
  1478. obj.highIndex = true;
  1479. obj.type = itema.type;
  1480. obj.types = itema.types
  1481. ? itema.types
  1482. : itema.type;
  1483. obj.word_id = itema.id; // 生词注释短语的id
  1484. }
  1485. });
  1486. }
  1487. if (
  1488. itemb.sel_token_idxes.length === 0 &&
  1489. itema.type === "explain" &&
  1490. indexs === item.tokens.length - 1
  1491. ) {
  1492. flag = itema.id;
  1493. }
  1494. }
  1495. });
  1496. });
  1497. item.StyleTokens.push(obj);
  1498. if (flag) {
  1499. item.StyleTokens.push({
  1500. tokens: [
  1501. 0,
  1502. 8,
  1503. "Students",
  1504. "",
  1505. "",
  1506. "",
  1507. "",
  1508. "",
  1509. "",
  1510. " ",
  1511. 0,
  1512. "",
  1513. "",
  1514. "",
  1515. ],
  1516. type: "explain",
  1517. word_id: flag,
  1518. isExplain: true,
  1519. explainNumber: explainNumber,
  1520. });
  1521. explainNumber++;
  1522. }
  1523. });
  1524. });
  1525. for (let i = 0; i < leg + 1; i++) {
  1526. let obgs = {
  1527. isShow: true,
  1528. marginRight: false,
  1529. tokens: [
  1530. "",
  1531. "",
  1532. "#@@#",
  1533. "",
  1534. "",
  1535. "",
  1536. "",
  1537. "",
  1538. " ",
  1539. " ",
  1540. "",
  1541. "",
  1542. "",
  1543. "",
  1544. "",
  1545. ],
  1546. };
  1547. let obj = {
  1548. wordsList: i === 0 ? [] : [obgs, obgs],
  1549. };
  1550. resArr.push(obj);
  1551. }
  1552. sentenceList.forEach((item, index) => {
  1553. item.StyleTokens.forEach((items, indexs) => {
  1554. items.isShow = this.enFhList.indexOf(items.tokens[2]) == -1;
  1555. items.sent_id = item.id;
  1556. resArr[item.pno].wordsList.push(items);
  1557. });
  1558. });
  1559. itemA.resArr = resArr;
  1560. itemA.longSentIds = longSentIds;
  1561. itemA.sentenceList = sentenceList;
  1562. itemA.wordLit = wordLit;
  1563. itemA.annotationList = annotationList;
  1564. itemA.phraseList = phraseList;
  1565. itemA.allWordList = allWordList;
  1566. itemA.articleImg = {};
  1567. let articleArr = itemA.art_content.split('<p class="para"');
  1568. articleArr.forEach((itema) => {
  1569. if (itema.indexOf("<img") > -1) {
  1570. // 当前段落有图片
  1571. let imgArr = [];
  1572. let pno =
  1573. itema.indexOf('pno="') > -1
  1574. ? itema.substring(
  1575. itema.indexOf('pno="') + 5,
  1576. itema
  1577. .substring(itema.indexOf('pno="') + 5)
  1578. .indexOf('"') +
  1579. 1 +
  1580. 5
  1581. )
  1582. : 0;
  1583. let itemArr = itema.split("<img");
  1584. itemArr.forEach((items) => {
  1585. if (items.indexOf('src="') > -1) {
  1586. let indexS =
  1587. items
  1588. .substring(items.indexOf('src="') + 5)
  1589. .indexOf('"') + items.indexOf('src="'); // src所在索引
  1590. let indexW =
  1591. items.indexOf('width="') > -1
  1592. ? items
  1593. .substring(items.indexOf('width="') + 7)
  1594. .indexOf('"')
  1595. : items.indexOf("width: ") > -1
  1596. ? items
  1597. .substring(items.indexOf("width: ") + 7)
  1598. .indexOf(";")
  1599. : -1; // width所在索引
  1600. let indexH =
  1601. items.indexOf('height="') > -1
  1602. ? items
  1603. .substring(items.indexOf('height="') + 8)
  1604. .indexOf('"')
  1605. : items.indexOf("height: ") > -1
  1606. ? items
  1607. .substring(items.indexOf("height: ") + 8)
  1608. .indexOf(";")
  1609. : -1; // height所在索引
  1610. let imgobj = {
  1611. src: items.substring(
  1612. items.indexOf('src="') + 5,
  1613. indexS + 5
  1614. ),
  1615. width:
  1616. items.indexOf('width="') > -1
  1617. ? items.substring(
  1618. items.indexOf('width="') + 7,
  1619. items.indexOf('width="') + indexW + 7
  1620. )
  1621. : items.indexOf("width: ") > -1
  1622. ? items.substring(
  1623. items.indexOf("width: ") + 7,
  1624. items.indexOf("width: ") + indexW + 7
  1625. )
  1626. : null,
  1627. };
  1628. imgArr.push(imgobj);
  1629. }
  1630. });
  1631. itemA.articleImg[pno] = imgArr;
  1632. }
  1633. });
  1634. let MethodNames = "/PaperServer/Client/Article/ArtNoteListInArt";
  1635. let data = {
  1636. id: itemA.id,
  1637. };
  1638. getLogin(MethodNames, data).then((res) => {
  1639. if (res.status === 1) {
  1640. itemA.notesList = res.data;
  1641. }
  1642. });
  1643. });
  1644. }
  1645. if (res.data.issueInfo) {
  1646. let arr = [];
  1647. res.data.issueInfo.chn_art_data.forEach((item) => {
  1648. let arrs = [];
  1649. item.arts.forEach((items) => {
  1650. arrs.push({
  1651. value: items.id,
  1652. label: items.art_title,
  1653. });
  1654. });
  1655. arr.push({
  1656. value: item.chn_idx,
  1657. label: item.chn_name,
  1658. children: arrs,
  1659. });
  1660. });
  1661. this.printManyMenu = [
  1662. {
  1663. value: res.data.issueInfo.id,
  1664. label: res.data.issueInfo.iss_name,
  1665. children: arr,
  1666. },
  1667. ];
  1668. }
  1669. }
  1670. });
  1671. },
  1672. // 打印多篇按钮
  1673. handleManyPrint() {
  1674. this.printManyFlag = true;
  1675. },
  1676. // 确定打印多篇
  1677. submitPrintMore() {
  1678. this.loading = true;
  1679. let printManyIds = [];
  1680. let printManyDetails = [];
  1681. this.printManyId.forEach((item) => {
  1682. printManyIds.push(item[2]);
  1683. printManyDetails.push(this.issDetailMap[item[2]]);
  1684. });
  1685. this.printManyDetails = printManyDetails;
  1686. this.isPrintMore = true;
  1687. setTimeout(() => {
  1688. waterMark.set(
  1689. this.userMessage.user_name + " " + this.userMessage.phone,
  1690. "",
  1691. "showWaterMarks"
  1692. );
  1693. }, 1000);
  1694. setTimeout(() => {
  1695. this.handlePrintManyDetails();
  1696. }, 1500);
  1697. },
  1698. handlePrintManyDetails() {
  1699. let MethodName =
  1700. "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article";
  1701. getLogin(MethodName, {
  1702. goods_type: 21,
  1703. date_range: "TODAY",
  1704. article_id: this.articleId,
  1705. }).then((res) => {
  1706. if (res.status === 1) {
  1707. if (res.print_count < 5) {
  1708. getLogin(
  1709. "/ShopServer/Client/PrintRecordManager/AddPrintRecord_Article",
  1710. {
  1711. goods_type: 21,
  1712. article_id: this.articleId,
  1713. }
  1714. ).then((res) => {
  1715. if (res.status === 1) {
  1716. }
  1717. });
  1718. this.$nextTick(() => {
  1719. this.$print(this.$refs["printAreaManys"], {
  1720. noPrint: ".noPrint",
  1721. type: "html",
  1722. scanStyles: true,
  1723. showModal: true,
  1724. // style: style,// 亦可使用引入的外部css;
  1725. onStart: () => {
  1726. // console.log("打印开始");
  1727. },
  1728. onEnd: () => {
  1729. // console.log("打印完成");
  1730. },
  1731. });
  1732. this.loading = false;
  1733. this.printManyFlag = false;
  1734. this.isPrintMore = false;
  1735. });
  1736. } else {
  1737. this.loading = false;
  1738. this.printManyFlag = false;
  1739. this.isPrintMore = false;
  1740. this.$message.warning("今日打印次数已达上限");
  1741. }
  1742. }
  1743. });
  1744. },
  1745. },
  1746. mounted() {
  1747. if (this.articleInfo) {
  1748. this.handleData();
  1749. this.handleHighSentence();
  1750. }
  1751. this.$nextTick(() => {
  1752. document.onselectstart = new Function("event.returnValue=false");
  1753. });
  1754. },
  1755. beforeDestroy() {
  1756. document.onselectstart = new Function("event.returnValue=true");
  1757. },
  1758. };
  1759. </script>
  1760. <style lang="scss" scoped>
  1761. .print-model {
  1762. background: #f2f3f5;
  1763. &-top {
  1764. padding: 8px 16px;
  1765. border-bottom: 1px solid #ebebeb;
  1766. background: #fff;
  1767. display: flex;
  1768. align-items: center;
  1769. width: 100%;
  1770. position: fixed;
  1771. top: 0;
  1772. left: 0;
  1773. z-index: 10000;
  1774. .goback {
  1775. color: #2f3742;
  1776. font-size: 20px;
  1777. font-weight: 500;
  1778. line-height: 28px;
  1779. padding-right: 12px;
  1780. .el-icon-arrow-left {
  1781. width: 24px;
  1782. height: 24px;
  1783. }
  1784. }
  1785. .border {
  1786. background: #e5e6eb;
  1787. height: 16px;
  1788. margin-top: 2px;
  1789. width: 1px;
  1790. }
  1791. p {
  1792. margin: 0 12px;
  1793. color: #1c2129;
  1794. font-size: 14px;
  1795. font-weight: 500;
  1796. line-height: 22px;
  1797. }
  1798. }
  1799. &-bottom {
  1800. display: flex;
  1801. justify-content: center;
  1802. padding-top: 46px;
  1803. &-left {
  1804. width: 1070px;
  1805. margin: 8px 346px 8px 8px;
  1806. background: #fff;
  1807. flex-shrink: 0;
  1808. .print-inner {
  1809. overflow: auto;
  1810. padding: 120px 100px 30px 100px;
  1811. }
  1812. .nnpe-article-author {
  1813. margin: 24px 0;
  1814. text-align: center;
  1815. }
  1816. h2 {
  1817. display: flex;
  1818. flex-flow: wrap;
  1819. justify-content: center;
  1820. }
  1821. .table-box {
  1822. // background: #f7f7f7;
  1823. // border-top: 1px solid rgba(0, 0, 0, 0.1);
  1824. :last-child {
  1825. :last-child.wordsList-box {
  1826. padding-bottom: 40px;
  1827. }
  1828. }
  1829. .wordsList-box {
  1830. flex: 1;
  1831. // padding: 6px 0 12px 0;
  1832. .nnpe-sentence-box {
  1833. display: flex;
  1834. flex-flow: wrap;
  1835. .word-box {
  1836. position: relative;
  1837. }
  1838. }
  1839. > img {
  1840. max-width: 50%;
  1841. display: block;
  1842. padding: 16px 0;
  1843. margin: 0 auto;
  1844. }
  1845. }
  1846. }
  1847. .NNPE-detail {
  1848. clear: both;
  1849. overflow: hidden;
  1850. // display: flex;
  1851. .NNPE-words {
  1852. float: left;
  1853. padding: 0;
  1854. &.noPadding {
  1855. padding: 0;
  1856. }
  1857. &.sentActive {
  1858. background: rgba(24, 144, 255, 0.1);
  1859. }
  1860. &.overActive {
  1861. background: rgba(0, 0, 0, 0.06);
  1862. }
  1863. > span {
  1864. float: left;
  1865. &.NNPE-chs {
  1866. // font-size: 24px;
  1867. font-family: "Smartisan";
  1868. line-height: 150%;
  1869. color: #000000;
  1870. padding: 0 3px;
  1871. &.wordActive {
  1872. color: #175dff !important;
  1873. }
  1874. &.marginRight {
  1875. padding-right: 0;
  1876. }
  1877. &.marginLeft {
  1878. padding-left: 0;
  1879. }
  1880. &.marginSingleRight {
  1881. padding-right: 3px;
  1882. }
  1883. &.fontWeight {
  1884. font-weight: bold;
  1885. }
  1886. &.newWord {
  1887. color: #3459d2 !important;
  1888. }
  1889. &.phrase {
  1890. color: #ff802b !important;
  1891. }
  1892. &.explain {
  1893. // color: #23C847 !important;
  1894. font-weight: 400;
  1895. }
  1896. }
  1897. &.padding {
  1898. padding: 0 3px;
  1899. cursor: pointer;
  1900. }
  1901. }
  1902. }
  1903. }
  1904. h5 {
  1905. color: #000;
  1906. font-size: 36px;
  1907. font-weight: 700;
  1908. line-height: 44px;
  1909. margin: 24px 0;
  1910. }
  1911. .newwordlist,
  1912. .phraselist {
  1913. li {
  1914. padding: 4px;
  1915. display: flex;
  1916. margin: 1px 0;
  1917. border-radius: 4px;
  1918. .word-info {
  1919. flex: 1;
  1920. }
  1921. .sentence {
  1922. font-size: 14px;
  1923. line-height: 22px;
  1924. color: #2f3742;
  1925. }
  1926. .word-type {
  1927. padding: 0px 8px;
  1928. border-radius: 2px;
  1929. font-weight: 500;
  1930. font-size: 12px;
  1931. line-height: 20px;
  1932. height: 20px;
  1933. margin: 4px 8px 0 0;
  1934. }
  1935. .el-icon-arrow-right {
  1936. width: 24px;
  1937. height: 24px;
  1938. color: #929ca8;
  1939. text-align: center;
  1940. line-height: 24px;
  1941. cursor: pointer;
  1942. }
  1943. .word-info-top {
  1944. display: flex;
  1945. .word {
  1946. font-weight: 700;
  1947. font-size: 20px;
  1948. line-height: 28px;
  1949. color: #175dff;
  1950. margin-right: 8px;
  1951. font-family: "Arial";
  1952. cursor: pointer;
  1953. }
  1954. .phrase {
  1955. font-weight: 500;
  1956. font-size: 24px;
  1957. line-height: 32px;
  1958. color: #ed5f00;
  1959. }
  1960. .symbol {
  1961. font-size: 20px;
  1962. line-height: 28px;
  1963. color: #667180;
  1964. margin-right: 8px;
  1965. font-family: "Arial";
  1966. }
  1967. .star {
  1968. margin-right: 8px;
  1969. line-height: 20px;
  1970. }
  1971. .para-list {
  1972. flex: 1;
  1973. .para {
  1974. display: flex;
  1975. font-size: 16px;
  1976. line-height: 24px;
  1977. color: #1c2129;
  1978. margin-bottom: 4px;
  1979. .cixing {
  1980. margin-right: 4px;
  1981. }
  1982. }
  1983. }
  1984. }
  1985. .word-info-bottom {
  1986. font-size: 12px;
  1987. line-height: 20px;
  1988. color: #929ca8;
  1989. margin: 4px 8px 0 0;
  1990. span {
  1991. margin-right: 8px;
  1992. }
  1993. }
  1994. }
  1995. }
  1996. .phraselist {
  1997. .para {
  1998. line-height: 32px !important;
  1999. margin-left: 8px;
  2000. margin-bottom: 0 !important;
  2001. }
  2002. }
  2003. .explainlist {
  2004. li {
  2005. padding: 8px;
  2006. margin: 4px 0;
  2007. .prefix {
  2008. color: #151515;
  2009. font-size: 24px;
  2010. font-weight: 700;
  2011. line-height: 32px;
  2012. }
  2013. .para-list {
  2014. color: #2f3742;
  2015. font-size: 16px;
  2016. font-weight: 500;
  2017. line-height: 24px;
  2018. margin-top: 8px;
  2019. }
  2020. }
  2021. }
  2022. }
  2023. &-right {
  2024. width: 360px;
  2025. padding: 24px 0;
  2026. background: #fff;
  2027. position: fixed;
  2028. z-index: 1;
  2029. top: 46px;
  2030. right: calc((100% - 1450px) / 2);
  2031. height: calc(100% - 48px);
  2032. .config-box {
  2033. height: calc(100% - 110px);
  2034. overflow: auto;
  2035. padding: 0 24px;
  2036. }
  2037. h3 {
  2038. color: #2f3742;
  2039. font-size: 24px;
  2040. font-weight: 400;
  2041. line-height: 32px;
  2042. margin: 0;
  2043. padding: 0 24px;
  2044. .svg-icon {
  2045. width: 24px;
  2046. height: 24px;
  2047. margin-right: 8px;
  2048. }
  2049. }
  2050. }
  2051. }
  2052. }
  2053. .item-page {
  2054. display: flex;
  2055. padding-top: 24px;
  2056. > label {
  2057. color: #2f3742;
  2058. text-align: right;
  2059. font-size: 14px;
  2060. font-weight: 500;
  2061. line-height: 30px;
  2062. width: 72px;
  2063. margin-right: 16px;
  2064. flex-shrink: 0;
  2065. }
  2066. .el-select {
  2067. height: 32px;
  2068. border-radius: 2px;
  2069. width: 202px;
  2070. }
  2071. .el-button {
  2072. width: 70px;
  2073. padding: 8px 0;
  2074. color: rgba(0, 0, 0, 0.91);
  2075. font-size: 14px;
  2076. font-weight: 400;
  2077. line-height: 22px;
  2078. border-radius: 4px;
  2079. background: #ebebeb;
  2080. border: none;
  2081. }
  2082. .el-button--primary {
  2083. background: #3459d2;
  2084. color: #fff;
  2085. }
  2086. > b {
  2087. flex: 1;
  2088. text-align: right;
  2089. cursor: pointer;
  2090. line-height: 30px;
  2091. color: #175dff;
  2092. font-size: 14px;
  2093. font-weight: 400;
  2094. .svg-icon {
  2095. width: 12px;
  2096. margin-right: 4px;
  2097. }
  2098. }
  2099. }
  2100. .print-divider {
  2101. margin: 24px 0 0 0;
  2102. background-color: #f2f3f5;
  2103. }
  2104. #showWaterMark {
  2105. overflow: hidden;
  2106. position: relative;
  2107. z-index: 9999;
  2108. // width: 210mm;
  2109. }
  2110. .print-footer {
  2111. width: 100%;
  2112. min-height: 22px;
  2113. padding: 30px 96px;
  2114. color: #667180;
  2115. font-size: 14px;
  2116. font-weight: 700;
  2117. line-height: 22px;
  2118. display: flex;
  2119. justify-content: space-between;
  2120. span {
  2121. margin: 0 4px;
  2122. }
  2123. }
  2124. .ciyun-box {
  2125. width: 870px;
  2126. height: 720px;
  2127. border: none;
  2128. overflow: hidden;
  2129. }
  2130. @media print {
  2131. .no-print {
  2132. display: none;
  2133. }
  2134. body {
  2135. margin-top: 0;
  2136. margin-bottom: 0;
  2137. padding-top: 0;
  2138. padding-bottom: 0;
  2139. }
  2140. .printheader {
  2141. font-size: 50px;
  2142. color: green;
  2143. font-weight: bold;
  2144. position: fixed;
  2145. top: 0;
  2146. left: 0;
  2147. z-index: 10000;
  2148. }
  2149. .printFotter {
  2150. position: fixed;
  2151. left: 0;
  2152. bottom: 0;
  2153. z-index: 100000;
  2154. }
  2155. .print-footer {
  2156. position: fixed;
  2157. bottom: -30px;
  2158. left: 10px;
  2159. }
  2160. @page {
  2161. margin: 30px 30px 60px 30px;
  2162. }
  2163. }
  2164. </style>
  2165. <style lang="scss">
  2166. .item-page {
  2167. .el-input__inner {
  2168. height: 32px;
  2169. line-height: 32px;
  2170. background: #f2f3f5;
  2171. border: none;
  2172. }
  2173. .el-input__icon {
  2174. line-height: 32px;
  2175. }
  2176. .el-input-number {
  2177. line-height: 30px;
  2178. width: 202px;
  2179. }
  2180. .el-input-number__decrease,
  2181. .el-input-number__increase {
  2182. height: 30px;
  2183. width: 30px;
  2184. }
  2185. .el-checkbox {
  2186. margin-right: 12px;
  2187. line-height: 30px;
  2188. }
  2189. .el-checkbox__input.is-checked + .el-checkbox__label {
  2190. color: #2f3742;
  2191. }
  2192. .el-checkbox__input.is-checked .el-checkbox__inner,
  2193. .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  2194. background-color: #3459d2;
  2195. border-color: #3459d2;
  2196. }
  2197. }
  2198. </style>