exportWorksDialog.vue 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826
  1. <template>
  2. <div class="pbl">
  3. <div class="pdfCon" ref="reportPdf" v-loading="loading">
  4. <div
  5. class="coverPage"
  6. :style="{
  7. backgroundColor: '#FFFBDC'
  8. }"
  9. >
  10. <div class="coverPageLogo">
  11. <img
  12. style="height: 50px;"
  13. :src="schoolImg.logo ? schoolImg.logo : ''"
  14. alt=""
  15. />
  16. </div>
  17. <div class="coverPageFrom" style="z-index: 10;">
  18. <div class="coverPageFromTit">{{ worksDialogCon2.course }}</div>
  19. <div
  20. style="
  21. font-size: 32px;
  22. font-weight: 600;
  23. color:rgba(176, 123, 0, 1);
  24. margin: 20px 0;
  25. "
  26. >
  27. 作业集
  28. </div>
  29. <div class="termC">
  30. <div><span>2023-2024</span>学年</div>
  31. <div style="width: 20px;"></div>
  32. <div>第<span>2</span>学期</div>
  33. </div>
  34. <div class="fromCss">
  35. <div>
  36. <span>姓名:</span>
  37. <div class="txt">{{ worksDialogCon2.sName }}</div>
  38. </div>
  39. <div>
  40. <span>班级:</span>
  41. <div class="txt">
  42. {{ worksDialogCon2.class ? worksDialogCon2.class : "——" }}
  43. </div>
  44. </div>
  45. <div>
  46. <span>学校:</span>
  47. <div class="txt">{{ worksDialogCon2.schName }}</div>
  48. </div>
  49. <div>
  50. <span>指导老师:</span>
  51. <div class="txt">
  52. <div style="transform: translate(-1em, 0px);">
  53. {{ worksDialogCon2.uname }}
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="coverPageFrom">
  60. <img
  61. style="z-index: 10;width: 70%;transform: translate(0px, -45px);"
  62. src="../../../assets/icon/exportPdfworks/ropt.svg"
  63. alt=""
  64. />
  65. </div>
  66. </div>
  67. <div
  68. class="coverPageCon"
  69. :style="{
  70. backgroundColor: '#FFFBDC'
  71. }"
  72. >
  73. <div
  74. style="
  75. font-size: 24px;
  76. font-weight: 600;
  77. color: rgba(92, 80, 70, 1);
  78. margin: 35px 0 20px;
  79. "
  80. >
  81. {{ worksDialogCon2.course }}
  82. </div>
  83. <div
  84. v-for="i in workList"
  85. :key="i.id"
  86. v-if="isStage(i.taskList)"
  87. class="stageCon"
  88. >
  89. <div v-if="CState != 5 && CState != 6" class="stageTit">
  90. 第{{ i.id * 1 + 1 }}阶段<span v-if="i.name">:{{ i.name }}</span>
  91. </div>
  92. <div
  93. v-for="k in i.taskList"
  94. :key="k.task + 'a'"
  95. style="margin-bottom: 15px"
  96. v-if="isTask(k.toolEList)"
  97. >
  98. <div
  99. style="
  100. width: 100%;
  101. display: flex;
  102. justify-content: space-between;
  103. margin-bottom: 10px;
  104. "
  105. >
  106. <div class="taskTitInd">
  107. <span>任务{{ k.task + 1 }}</span>
  108. <span>{{ k.taskTit }}</span>
  109. </div>
  110. <div>
  111. <!-- <span class="toolTit">文档工具</span> -->
  112. </div>
  113. </div>
  114. <div v-if="k.taskDetail" class="taskBri">
  115. <div v-html="k.taskDetail"></div>
  116. </div>
  117. <div
  118. class="WorksCon"
  119. v-for="(l, lind) in k.toolEList"
  120. :key="lind + 'l'"
  121. >
  122. <div v-if="l.content && l.content.length">
  123. <div v-if="l.tool[0] == 15">
  124. <div class="toolBlk">
  125. <img
  126. src="../../../assets/icon/thirdToolList/answer.png"
  127. alt=""
  128. />
  129. <div class="toolTit">
  130. <div>工具{{ lind + 1 }}:问答工具</div>
  131. <div>提问:{{ l.content[0][0].answerTitle }}</div>
  132. </div>
  133. </div>
  134. <div class="answerTxt">回答:{{ l.content[0][0].answer }}</div>
  135. </div>
  136. <div v-if="l.tool[0] == 52">
  137. <div class="toolBlk">
  138. <img
  139. src="../../../assets/icon/fourthToolList/text.png"
  140. alt=""
  141. />
  142. <div class="toolTit">
  143. <div>工具{{ lind + 1 }}:文档工具</div>
  144. <div>
  145. 根据前期的了解与实地调研对于项目的了解,进行思考与讨论提出问题。
  146. </div>
  147. </div>
  148. </div>
  149. <div class="answerTxt" v-html="l.content[0].text"></div>
  150. </div>
  151. <div v-if="l.tool[0] == 16 || l.tool[0] == 50">
  152. <div class="toolBlk">
  153. <img
  154. v-if="l.tool[0] == 16"
  155. src="../../../assets/icon/thirdToolList/work.png"
  156. alt=""
  157. />
  158. <img
  159. v-if="l.tool[0] == 50"
  160. src="../../../assets/icon/thirdToolList/plwork.png"
  161. alt=""
  162. />
  163. <div class="toolTit">
  164. <div>
  165. 工具{{ lind + 1 }}:{{
  166. l.tool[0] == 16 ? "作业提交" : "批量上传"
  167. }}
  168. </div>
  169. <div>
  170. 根据前期的了解与实地调研对于项目的了解,进行思考与讨论提出问题。
  171. </div>
  172. </div>
  173. </div>
  174. <div v-for="(i, codex) in l.content" :key="codex + 'co'">
  175. <div class="answerTxt" v-html="i"></div>
  176. </div>
  177. </div>
  178. <div v-if="l.tool[0] == 7 || l.tool[0] == 1 || l.tool[0] == 3">
  179. <div class="toolBlk">
  180. <img
  181. v-if="l.tool[0] == 1"
  182. src="../../../assets/icon/secondToolList/whiteBoard.png"
  183. alt=""
  184. />
  185. <img
  186. v-if="l.tool[0] == 3"
  187. src="../../../assets/icon/secondToolList/mindMapping.png"
  188. alt=""
  189. />
  190. <img
  191. v-if="l.tool[0] == 7"
  192. src="../../../assets/icon/secondToolList/mindNetwork.png"
  193. alt=""
  194. />
  195. <div class="toolTit">
  196. <div>
  197. 工具{{ lind + 1 }}:{{
  198. l.tool[0] == 1
  199. ? "电子白板"
  200. : l.tool[0] == 7
  201. ? "思维网格"
  202. : "思维导图"
  203. }}
  204. </div>
  205. <div>
  206. 根据前期的了解与实地调研对于项目的了解,进行思考与讨论提出问题。
  207. </div>
  208. </div>
  209. </div>
  210. <img style="max-width: 200px" :src="l.content[0]" alt="" />
  211. <div>{{ l.content[0] }}</div>
  212. </div>
  213. <div v-if="l.tool[0] == 48">
  214. <div class="toolBlk">
  215. <img
  216. src="../../../assets/icon/fourthToolList/table.png"
  217. alt=""
  218. />
  219. <div class="toolTit">
  220. <div>工具{{ lind + 1 }}:表格</div>
  221. <div>
  222. 根据前期的了解与实地调研对于项目的了解,进行思考与讨论提出问题。
  223. </div>
  224. </div>
  225. </div>
  226. <el-form>
  227. <div class="cont" v-html="l.content[0].text"></div>
  228. </el-form>
  229. </div>
  230. <div v-if="l.tool[0] == 4">
  231. <div class="toolBlk">
  232. <img
  233. src="../../../assets/icon/thirdToolList/ask.png"
  234. alt=""
  235. />
  236. <div class="toolTit">
  237. <div>工具{{ lind + 1 }}:问卷调查</div>
  238. <div>标题:{{ l.content[0][0].askJson.askTitle }}</div>
  239. </div>
  240. </div>
  241. <div
  242. style="margin-bottom: 5px"
  243. v-for="(i, index) in l.content[0][0].askJson.askJson"
  244. :key="index"
  245. >
  246. <div>题目:{{ i.askstitle }}</div>
  247. <el-radio-group
  248. v-if="!i.type"
  249. v-model="l.content[0][0].anwer[index]"
  250. >
  251. <el-radio
  252. v-for="(item2, checkIndex) in i.checkList"
  253. :key="checkIndex + 'b'"
  254. :label="checkIndex"
  255. disabled
  256. >
  257. {{ item2 }}
  258. </el-radio>
  259. </el-radio-group>
  260. <el-checkbox-group
  261. v-model="l.content[0][0].anwer[index]"
  262. v-else
  263. >
  264. <div class="radioBox">
  265. <el-checkbox
  266. v-for="(item2, checkIndex) in i.checkList"
  267. :key="checkIndex + 'c'"
  268. :label="checkIndex"
  269. disabled
  270. >
  271. {{ item2 }}
  272. </el-checkbox>
  273. </div>
  274. </el-checkbox-group>
  275. </div>
  276. </div>
  277. <div v-if="l.tool[0] == 45">
  278. <div class="toolBlk">
  279. <img
  280. src="../../../assets/icon/thirdToolList/choose.png"
  281. alt=""
  282. />
  283. <div class="toolTit">
  284. <div>工具{{ lind + 1 }}:选择题</div>
  285. <div>
  286. 根据前期的了解与实地调研对于项目的了解,进行思考与讨论提出问题。
  287. </div>
  288. </div>
  289. </div>
  290. <div
  291. v-for="(i, index) in l.content[0].testJson"
  292. :key="index + 'm'"
  293. >
  294. <div>
  295. 题目:{{ i.teststitle }}
  296. <span
  297. v-if="
  298. JSON.stringify(l.content[0].radio[index]) ==
  299. JSON.stringify(i.answer)
  300. "
  301. style="color: #868ce4"
  302. >回答正确</span
  303. >
  304. <span v-else style="color: red">回答错误</span>
  305. </div>
  306. <div
  307. v-if="i.type == 1"
  308. style="display: flex; flex-direction: column"
  309. >
  310. <el-radio-group v-model="l.content[0].radio[index]">
  311. <div class="radioBox">
  312. <el-radio
  313. v-for="(item2, checkIndex) in i.checkList"
  314. :key="checkIndex + 'b'"
  315. :label="checkIndex"
  316. disabled
  317. :class="[
  318. i.answer == checkIndex
  319. ? 'redioStyle5'
  320. : 'redioStyle2'
  321. ]"
  322. >
  323. <div
  324. v-if="
  325. item2 && item2.imgType && item2.imgType == 1
  326. "
  327. >
  328. <div
  329. class="inImg"
  330. @click.stop="previewImg(item2.src)"
  331. >
  332. <img
  333. style="display: block"
  334. :src="item2.src"
  335. alt=""
  336. />
  337. </div>
  338. </div>
  339. <span v-else v-html="item2"></span>
  340. </el-radio>
  341. </div>
  342. </el-radio-group>
  343. </div>
  344. <div class="radioBox">
  345. <el-checkbox-group
  346. v-model="l.content[0].radio[index]"
  347. v-if="i.type == '2'"
  348. >
  349. <div class="radioBox">
  350. <el-checkbox
  351. v-for="(item2, checkIndex) in i.checkList"
  352. :key="checkIndex + 'c'"
  353. :label="checkIndex"
  354. disabled
  355. :class="[
  356. i.answer.includes(checkIndex)
  357. ? 'redioStyle3'
  358. : 'redioStyle4'
  359. ]"
  360. >
  361. <div style="display: flex">
  362. <div
  363. v-if="
  364. item2 && item2.imgType && item2.imgType == 1
  365. "
  366. >
  367. <div
  368. class="inImg"
  369. @click.stop="previewImg(item2.src)"
  370. >
  371. <img
  372. style="display: block"
  373. :src="item2.src"
  374. alt=""
  375. />
  376. </div>
  377. </div>
  378. <span v-else v-html="item2"></span>
  379. </div>
  380. </el-checkbox>
  381. </div>
  382. </el-checkbox-group>
  383. </div>
  384. </div>
  385. </div>
  386. <!-- 选择匹配 -->
  387. <div v-if="l.tool[0] == 41">
  388. <div class="toolBlk">
  389. <img
  390. class="toolImg"
  391. src="../../../assets/icon/thirdToolList/select.png"
  392. alt=""
  393. />
  394. <div class="toolTit">
  395. <div>工具{{ lind + 1 }}:选择匹配</div>
  396. <div>
  397. 根据前期的了解与实地调研对于项目的了解,进行思考与讨论提出问题。
  398. </div>
  399. </div>
  400. </div>
  401. <img
  402. @click.stop="previewImg(l.selectJson.url)"
  403. style="max-width: 200px"
  404. :src="l.selectJson.url"
  405. alt=""
  406. />
  407. <div>
  408. <span style="margin-right: 10px">选项:</span
  409. ><span
  410. style="margin-right: 10px"
  411. v-for="(item, itInd) in l.selectJson.select"
  412. :key="itInd"
  413. >{{ item }}</span
  414. >
  415. </div>
  416. <div style="margin: 10px 0;">
  417. <span style="margin-right: 10px">回答:</span>
  418. <div
  419. style="margin-right: 10px"
  420. v-for="(item, itInd) in l.content[0]"
  421. :key="itInd"
  422. >
  423. 选项{{ itInd + 1 }}:{{ l.selectJson.select[item] }}
  424. <span
  425. v-if="l.selectJson.answer[itInd] == l.content[0][itInd]"
  426. style="color: #868ce4"
  427. >回答正确</span
  428. >
  429. <span v-else style="color: red">回答错误</span>
  430. </div>
  431. </div>
  432. <div>
  433. <span style="margin-right: 10px">答案:</span>
  434. <span
  435. style="margin-right: 10px"
  436. v-for="(item, itInd) in l.selectJson.answer"
  437. :key="itInd"
  438. >选项{{ itInd + 1 }}:{{
  439. l.selectJson.select[item]
  440. }}</span
  441. >
  442. </div>
  443. </div>
  444. <!-- <div v-if="l.tool[0] == 41">
  445. <div class="toolBlk">
  446. <img
  447. src="../../../assets/icon/thirdToolList/select.png"
  448. alt=""
  449. />
  450. <div class="toolTit">
  451. <div>工具{{ lind + 1 }}:选择匹配</div>
  452. <div>
  453. 根据前期的了解与实地调研对于项目的了解,进行思考与讨论提出问题。
  454. </div>
  455. </div>
  456. </div>
  457. <img
  458. @click.stop="previewImg(l.selectJson.url)"
  459. style="max-width: 200px"
  460. :src="l.selectJson.url"
  461. alt=""
  462. />
  463. <div>
  464. <span style="margin-right: 10px">选项:</span
  465. ><span
  466. style="margin-right: 10px"
  467. v-for="(item, itInd) in l.selectJson.select"
  468. :key="itInd"
  469. >{{ item }}</span
  470. >
  471. </div>
  472. <div>
  473. <span style="margin-right: 10px">学生回答:</span>
  474. <span
  475. style="margin-right: 10px"
  476. v-for="(item, itInd) in l.content[0]"
  477. :key="itInd"
  478. >{{ itInd + 1 }}、{{ l.selectJson.select[item] }}</span
  479. >
  480. </div>
  481. </div> -->
  482. <!-- 排序 -->
  483. <div v-if="l.tool[0] == 47">
  484. <div class="toolBlk">
  485. <img
  486. src="../../../assets/icon/fourthToolList/conSentences.png"
  487. alt=""
  488. />
  489. <div class="toolTit">
  490. <div>工具{{ lind + 1 }}:排序</div>
  491. <div>
  492. 根据前期的了解与实地调研对于项目的了解,进行思考与讨论提出问题。
  493. </div>
  494. </div>
  495. </div>
  496. <div
  497. v-for="(i, index) in l.content[0]"
  498. :key="index"
  499. style="margin-bottom: 10px"
  500. >
  501. <div
  502. style="
  503. height: 20px;
  504. display: flex;
  505. align-items: center;
  506. flex-wrap: wrap;
  507. "
  508. >
  509. 题目:
  510. <div
  511. class="sortTool"
  512. v-for="(i, index) in i.addSentence"
  513. :key="index"
  514. >
  515. {{ i }}
  516. </div>
  517. <span
  518. v-if="
  519. JSON.stringify(i.chooseSenList) ==
  520. JSON.stringify(i.addSentence)
  521. "
  522. style="color: #868ce4"
  523. >回答正确</span
  524. >
  525. <span v-else style="color: red">回答错误</span>
  526. </div>
  527. <div
  528. style="
  529. margin: 10px 0;
  530. display: flex;
  531. align-items: center;
  532. flex-wrap: wrap;
  533. "
  534. >
  535. 学生回答:
  536. <div
  537. class="sortTool"
  538. v-for="(i, index) in i.chooseSenList"
  539. :key="index"
  540. >
  541. {{ i }}
  542. </div>
  543. </div>
  544. <div>
  545. 答案:
  546. <span style="margin: 0 5px">{{
  547. i.addSentence.join(",")
  548. }}</span>
  549. </div>
  550. </div>
  551. </div>
  552. </div>
  553. <!-- ai作业得分 -->
  554. <div
  555. v-if="
  556. l.content &&
  557. l.content.length &&
  558. l.eList &&
  559. l.eList.length &&
  560. (CState == 5 || CState == 6)
  561. "
  562. class="taskSco"
  563. >
  564. <div class="taskScoTit">
  565. <div>
  566. 作业得分:<span style="color: rgba(242, 161, 75, 1)">{{
  567. totalScore(l.rate)
  568. }}</span>
  569. </div>
  570. <div>作业提交时间:{{ workTime(k.toolEList) }}</div>
  571. </div>
  572. <!-- 作业评分 -->
  573. <div class="taskScoCon">
  574. <!-- 分数详情与素养 -->
  575. <div style="flex: 1; display: flex; flex-wrap: wrap">
  576. <div style="width: 315px; margin:0 20px 10px 0">
  577. <div class="taskScoConTit">分数详情</div>
  578. <div
  579. v-for="(wItem, ind) in l.eList"
  580. :key="ind + 's'"
  581. class="score_box"
  582. style="width: 100%"
  583. >
  584. <div
  585. style="
  586. display: flex;
  587. justify-content: space-between;
  588. align-items: center;
  589. width: 100%;
  590. min-width: 48%;
  591. "
  592. >
  593. <div class="RootImgBlock">
  594. {{ wItem.detail }}
  595. </div>
  596. <el-rate
  597. class="rate_size"
  598. disabled-void-color="#ccc"
  599. disabled
  600. style="width: 130px"
  601. v-model="l.rate[wItem.detail]"
  602. ></el-rate>
  603. </div>
  604. </div>
  605. </div>
  606. <div style="flex: 1">
  607. <div class="taskScoConTit">素养</div>
  608. <div class="WorkConSY">
  609. <div v-for="(wItem, ind) in l.eList" :key="ind + 's'">
  610. <el-tooltip
  611. class="item"
  612. effect="dark"
  613. :content="wItem.detail"
  614. placement="top-start"
  615. >
  616. <div class="RootImgBlockSy">
  617. {{ wItem.target }}
  618. </div>
  619. </el-tooltip>
  620. </div>
  621. </div>
  622. </div>
  623. </div>
  624. <!-- 评语 -->
  625. <div
  626. style="
  627. flex: 1;
  628. flex-shrink: 0;
  629. display: flex;
  630. flex-direction: column;
  631. margin-left: 10px;
  632. "
  633. v-if="l.rate.content"
  634. >
  635. <div class="taskScoConTit">评语</div>
  636. <div class="WorkCon">
  637. {{ l.rate.content }}
  638. </div>
  639. </div>
  640. </div>
  641. </div>
  642. <!-- 阶段 -->
  643. <div
  644. v-if="
  645. l.eList &&
  646. l.eList.length &&
  647. CState != 5 &&
  648. CState != 6 &&
  649. lind == k.toolEList.length - 1
  650. "
  651. class="taskSco"
  652. >
  653. <div class="taskScoTit">
  654. <div>
  655. 作业得分:<span style="color: rgba(242, 161, 75, 1)">{{
  656. totalScore(k.toolEList[0].rate)
  657. }}</span>
  658. </div>
  659. <div>作业提交时间:{{ workTime(k.toolEList) }}</div>
  660. </div>
  661. <!-- 作业评分 -->
  662. <div class="taskScoCon">
  663. <!-- 分数详情与素养 -->
  664. <div style="flex: 1; display: flex; flex-wrap: wrap">
  665. <div style="width: 315px; margin:0 20px 10px 0">
  666. <div class="taskScoConTit">分数详情</div>
  667. <div
  668. v-for="(wItem, ind) in l.eList"
  669. :key="ind + 's'"
  670. class="score_box"
  671. style="width: 100%"
  672. >
  673. <div
  674. style="
  675. display: flex;
  676. justify-content: space-between;
  677. align-items: center;
  678. width: 100%;
  679. min-width: 48%;
  680. "
  681. >
  682. <div class="RootImgBlock">
  683. {{ wItem.value }}
  684. </div>
  685. <el-rate
  686. class="rate_size"
  687. disabled-void-color="#ccc"
  688. disabled
  689. style="width: 130px"
  690. v-model="k.toolEList[0].rate[wItem.value]"
  691. ></el-rate>
  692. </div>
  693. </div>
  694. </div>
  695. <div style="flex: 1">
  696. <div class="taskScoConTit">素养</div>
  697. <div class="WorkConSY">
  698. <div v-for="(wItem, ind) in l.eList" :key="ind + 's'">
  699. <!-- <el-tooltip
  700. class="item"
  701. effect="dark"
  702. :content="wItem.target[wItem.target.length - 1]"
  703. placement="top-start"
  704. > -->
  705. <div class="RootImgBlockSy">
  706. <span v-if="wItem.target && wItem.target.length">
  707. {{ wItem.target[wItem.target.length - 1] }}</span
  708. >
  709. <span v-else> {{ wItem.target }}</span>
  710. </div>
  711. <!-- </el-tooltip> -->
  712. </div>
  713. </div>
  714. </div>
  715. </div>
  716. <!-- 评语 -->
  717. <div
  718. style="
  719. flex: 1;
  720. flex-shrink: 0;
  721. display: flex;
  722. flex-direction: column;
  723. margin-left: 10px;
  724. "
  725. v-if="l.rate.content"
  726. >
  727. <div class="taskScoConTit">评语</div>
  728. <div class="WorkCon">
  729. {{ l.rate.content }}
  730. </div>
  731. </div>
  732. </div>
  733. </div>
  734. </div>
  735. <!-- 思维导图 -->
  736. <div v-if="CState == 5 || CState == 6" class="taskTitInd">
  737. <div></div>
  738. <span>任务评价体系</span>
  739. </div>
  740. <exjsmind
  741. v-if="CState == 5 || CState == 6"
  742. :treeData="k.treeData"
  743. :keyL="k.task.toString()"
  744. ></exjsmind>
  745. </div>
  746. </div>
  747. <div style="display: flex;justify-content: flex-end;width: 100%;">
  748. <img :src="schoolImg.bjLogo ? schoolImg.bjLogo : ''" alt="" />
  749. </div>
  750. </div>
  751. </div>
  752. </div>
  753. </template>
  754. <script>
  755. import html2canvas from "html2canvas";
  756. import jspdf from "jspdf";
  757. import JSZip from "jszip";
  758. import exjsmind from "./exjsmind";
  759. export default {
  760. props: [
  761. "uid",
  762. "cid",
  763. "worksDialog",
  764. "worksDialogCon",
  765. "digNum",
  766. "multipleSelection"
  767. ],
  768. components: {
  769. exjsmind
  770. },
  771. data() {
  772. return {
  773. workList: [],
  774. dyList: [],
  775. workEvaList: "",
  776. elist: [],
  777. CState: 0,
  778. oid: this.$route.query.oid,
  779. org: this.$route.query.org,
  780. uid2: this.uid,
  781. worksDialogCon2: this.worksDialogCon,
  782. courseName: "",
  783. loading: false,
  784. tableData: [],
  785. imgList: [
  786. {
  787. schoolId: "45facc0a-1211-11ec-80ad-005056b86db5",
  788. logo: require("../../../assets/icon/exportPdfworks/cocoroboLogo.svg"),
  789. conImg: require("../../../assets/icon/exportPdfworks/cocoroboCon.svg"),
  790. bjLogo: require("../../../assets/icon/exportPdfworks/logo2.svg"),
  791. bkColor: "#FFFBDC"
  792. }
  793. ],
  794. schoolImg: {}
  795. };
  796. },
  797. mounted() {
  798. if (this.digNum == 0) {
  799. this.downPdf();
  800. } else if (this.digNum == 1) {
  801. this.getWorks1();
  802. } else {
  803. this.batchPdf();
  804. }
  805. },
  806. computed: {
  807. isStage() {
  808. return function(val) {
  809. let isShow = false;
  810. val.forEach(e => {
  811. e.toolEList.forEach(i => {
  812. if (i.content.length) {
  813. isShow = true;
  814. }
  815. });
  816. });
  817. return isShow;
  818. };
  819. },
  820. isTask() {
  821. return function(val) {
  822. let isShow = false;
  823. val.forEach(e => {
  824. if (e.content.length) {
  825. isShow = true;
  826. }
  827. });
  828. return isShow;
  829. };
  830. },
  831. totalScore() {
  832. return function(val) {
  833. let valT = JSON.parse(JSON.stringify(val));
  834. if (!valT) return "0.0";
  835. delete valT.content;
  836. delete valT.comment;
  837. console.log("valT", JSON.parse(JSON.stringify(val)));
  838. let data = Object.values(valT);
  839. console.log("data", JSON.parse(JSON.stringify(data)));
  840. let new1 = data.reduce(function(pre, next, index) {
  841. return pre + next * 1;
  842. });
  843. if (new1 == 0) return "0.0";
  844. return (new1 / data.length).toFixed(1);
  845. };
  846. },
  847. workTime() {
  848. return function(val) {
  849. if (!val.length) return "";
  850. let TimeList = [];
  851. val.forEach(e => {
  852. if (e.time) {
  853. const timestamp = new Date(e.time).getTime();
  854. TimeList.push(timestamp);
  855. }
  856. });
  857. console.log("TimeList", TimeList);
  858. TimeList.sort(function(a, b) {
  859. return a - b; //从小到大排序
  860. });
  861. return this.convertToTimestamp(TimeList[0]);
  862. };
  863. }
  864. },
  865. methods: {
  866. // 时间戳转时间
  867. convertToTimestamp(val) {
  868. const date = new Date(val);
  869. // 使用Date对象的方法获取年、月、日、时、分、秒
  870. const year = date.getFullYear();
  871. const month = String(date.getMonth() + 1).padStart(2, "0"); // 月份从0开始,需要加1
  872. const day = String(date.getDate()).padStart(2, "0");
  873. const hours = String(date.getHours()).padStart(2, "0");
  874. const minutes = String(date.getMinutes()).padStart(2, "0");
  875. const seconds = String(date.getSeconds()).padStart(2, "0");
  876. // 格式化后的日期时间字符串
  877. const formattedDateTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  878. return formattedDateTime;
  879. },
  880. // 下载pdf文件
  881. getPdf() {
  882. const content = this.$refs.reportPdf;
  883. const dpi = 300;
  884. html2canvas(content, {
  885. dpi: dpi, // 设置截图的分辨率
  886. scale: dpi / 96 // 设置截图缩放比例,以适应pdf的dpi
  887. }).then(canvas => {
  888. var contentWidth = canvas.width;
  889. var contentHeight = canvas.height;
  890. //a4纸的尺寸[595.28,841.89],html页面生成的canvas在pdf中图片的宽高
  891. var imgWidth = 595.28;
  892. var imgHeight = (592.28 / contentWidth) * contentHeight;
  893. var imgData = canvas.toDataURL("image/jpeg", 1.0);
  894. const pdf = new jspdf("p", "pt", [imgWidth, imgHeight]);
  895. pdf.addImage(imgData, "PNG", 0, 0, imgWidth, imgHeight);
  896. pdf.save(
  897. this.worksDialogCon2.course +
  898. "-作业集-" +
  899. this.worksDialogCon2.sName +
  900. ".pdf"
  901. );
  902. });
  903. },
  904. // 压缩pdf
  905. async getPdf2() {
  906. const content = this.$refs.reportPdf;
  907. return new Promise((resolve, reject) => {
  908. const dpi = 300;
  909. html2canvas(content, {
  910. dpi: dpi, // 设置截图的分辨率
  911. scale: dpi / 96 // 设置截图缩放比例,以适应pdf的dpi
  912. })
  913. .then(canvas => {
  914. var contentWidth = canvas.width;
  915. var contentHeight = canvas.height;
  916. //a4纸的尺寸[595.28,841.89],html页面生成的canvas在pdf中图片的宽高
  917. var imgWidth = 595.28;
  918. var imgHeight = (592.28 / contentWidth) * contentHeight;
  919. var imgData = canvas.toDataURL("image/jpeg", 1.0);
  920. const pdf = new jspdf("p", "pt", [imgWidth, imgHeight]);
  921. pdf.addImage(imgData, "PNG", 0, 0, imgWidth, imgHeight);
  922. var pdfData = {
  923. pdfName:
  924. this.worksDialogCon2.course +
  925. "-作业集-" +
  926. this.worksDialogCon2.sName +
  927. ".pdf",
  928. pdfCon: pdf.output("blob")
  929. };
  930. // pdfArray.push(pdfData);
  931. return resolve(pdfData);
  932. })
  933. .catch(err => {
  934. console.log(err);
  935. });
  936. });
  937. },
  938. // 图片放大查看
  939. previewImg(url) {
  940. this.$hevueImgPreview(url);
  941. },
  942. // 获取处理作业信息
  943. async exportPdfSet(uid, con) {
  944. let params = {
  945. uid: this.uid2,
  946. cid: this.cid
  947. };
  948. return new Promise((resolve, reject) => {
  949. this.ajax
  950. .get(this.$store.state.api + "selectAllWorksDetail", params)
  951. .then(res => {
  952. var worksDetail = res.data[1];
  953. var askInfo = res.data[3]; //问卷
  954. var answerInfo = res.data[4]; //问答题
  955. var pptInfo = res.data[5];
  956. var chooseInfo = res.data[6]; //选择题
  957. var pjInfo = res.data[7]; //个人评价作业
  958. var xztkInfo = res.data[8]; //选择匹配作业
  959. var lccjInfo = res.data[9]; //排序作业
  960. var bgInfo = res.data[10]; //表格作业
  961. var cocopiInfo = res.data[11]; //cocopi或源码编辑作业
  962. var wordInfo = res.data[12]; //文档作业
  963. this.workEvaList = res.data[13];
  964. let framework = [];
  965. if (res.data[0].length) {
  966. let elistData = JSON.parse(res.data[0][0].chapters);
  967. console.log("elistData", JSON.parse(JSON.stringify(elistData)));
  968. elistData.forEach((e, i) => {
  969. framework[i] = {
  970. id: i,
  971. name: e.dyName ? e.dyName : "",
  972. taskList: []
  973. };
  974. e.chapterInfo[0].taskJson.forEach((k, kin) => {
  975. if (k.eList && k.eList.length) {
  976. k.toolChoose.forEach(y => {
  977. y.eList = k.eList;
  978. });
  979. }
  980. framework[i].taskList.push({
  981. stage: i,
  982. task: kin,
  983. taskTit: k.task ? k.task : "",
  984. taskDetail: k.taskDetail,
  985. toolEList: k.toolChoose,
  986. treeData: {
  987. id: "0",
  988. topic: k.task ? k.task : "任务" + i,
  989. children: []
  990. }
  991. });
  992. });
  993. });
  994. }
  995. res.data[3].forEach(e => {
  996. e.content = JSON.parse(e.content);
  997. });
  998. res.data[4].forEach(e => {
  999. e.content = JSON.parse(e.content);
  1000. });
  1001. res.data[6].forEach((k, i) => {
  1002. const element1 = JSON.parse(k.content)[0];
  1003. let t = JSON.parse(k.content)[0].testJson;
  1004. // 处理学生选择答案
  1005. let e = [];
  1006. t.testJson.forEach((i, y) => {
  1007. e.push(element1.anwer[y]);
  1008. });
  1009. t.radio = e;
  1010. // 处理选项
  1011. k.content = t;
  1012. });
  1013. res.data[8].forEach((k, i) => {
  1014. k.content = k.content.split(",");
  1015. });
  1016. res.data[9].forEach(e => {
  1017. e.content = JSON.parse(e.content);
  1018. });
  1019. res.data[12].forEach(e => {
  1020. e.content = JSON.parse(e.content);
  1021. });
  1022. res.data[10].forEach(e => {
  1023. e.content = JSON.parse(e.content);
  1024. });
  1025. let AreaAllWork = [
  1026. ...res.data[1],
  1027. ...res.data[3],
  1028. ...res.data[4],
  1029. ...res.data[5],
  1030. ...res.data[6],
  1031. ...res.data[7],
  1032. ...res.data[8],
  1033. ...res.data[9],
  1034. ...res.data[10],
  1035. ...res.data[11],
  1036. ...res.data[12]
  1037. ];
  1038. AreaAllWork.sort(function(a, b) {
  1039. return a.stage - b.stage; //从小到大排序
  1040. });
  1041. // console.log("AreaAllWork", JSON.parse(JSON.stringify(AreaAllWork)));
  1042. framework.forEach(e => {
  1043. e.taskList.forEach((k, kin) => {
  1044. k.toolEList.forEach((l, lIndex) => {
  1045. l.content = [];
  1046. l.rate = "";
  1047. l.time = "";
  1048. AreaAllWork.forEach((i, index) => {
  1049. i.tool = i.tool ? i.tool : 0;
  1050. if (
  1051. k.stage == i.stage &&
  1052. k.task == i.task &&
  1053. lIndex == i.tool
  1054. ) {
  1055. l.content.push(i.content);
  1056. l.time = i.tTime;
  1057. }
  1058. });
  1059. // 分数循环
  1060. this.workEvaList.forEach(p => {
  1061. p.tool = p.tool ? p.tool : 0;
  1062. if (
  1063. k.stage == p.stage &&
  1064. k.task == p.task &&
  1065. lIndex == p.tool
  1066. ) {
  1067. let rateCopy = JSON.parse(p.rate);
  1068. for (const key in rateCopy) {
  1069. if (key != "content" && key != "") {
  1070. rateCopy[key] = rateCopy[key] * 1;
  1071. }
  1072. }
  1073. l.rate = rateCopy;
  1074. }
  1075. });
  1076. // 将没有提交作业,但是有评分标准的数据填上数据,防止报错
  1077. if (
  1078. !l.rate &&
  1079. l.eList &&
  1080. l.eList.length &&
  1081. (this.CState == 5 || this.CState == 6)
  1082. ) {
  1083. l.rate = { content: "" };
  1084. l.eList.forEach(elp => {
  1085. l.rate[elp.detail] = 0;
  1086. });
  1087. } else if (
  1088. !l.rate &&
  1089. l.eList &&
  1090. l.eList.length &&
  1091. this.CState != 5 &&
  1092. this.CState != 6
  1093. ) {
  1094. l.rate = { content: "" };
  1095. l.eList.forEach(elp => {
  1096. l.rate[elp.value] = 0;
  1097. });
  1098. }
  1099. // 将素养添加进treeData中
  1100. if (l.eList && l.eList.length) {
  1101. l.eList.forEach((itemE, itemEInd) => {
  1102. let arr6 = k.treeData.children.some(
  1103. item => item.topic == itemE.target
  1104. );
  1105. if (!arr6) {
  1106. k.treeData.children.push({
  1107. id: kin + "+" + lIndex + "+" + itemEInd,
  1108. topic: itemE.target,
  1109. children: []
  1110. });
  1111. }
  1112. });
  1113. }
  1114. });
  1115. });
  1116. });
  1117. framework.forEach(e => {
  1118. e.taskList.forEach((k, kind) => {
  1119. k.treeData.children.forEach(l => {
  1120. k.toolEList.forEach((el, elind) => {
  1121. if (el.eList) {
  1122. el.eList.forEach((st, stind) => {
  1123. // console.log(l.topic, st.target, l.topic == st.target);
  1124. if (l.topic == st.target) {
  1125. let res3 = l.children.filter(function(item, index) {
  1126. return item.topic == st.detail;
  1127. });
  1128. if (!res3.length) {
  1129. l.children.push({
  1130. id: kind + "+" + elind + "+" + stind + "c",
  1131. topic: st.detail,
  1132. children: [
  1133. {
  1134. id: kind + "+" + elind + "+" + stind + "b",
  1135. topic: `工具${elind * 1 + 1}`
  1136. }
  1137. ]
  1138. });
  1139. } else {
  1140. l.children.forEach(lc => {
  1141. if (lc.topic == st.detail) {
  1142. lc.children.push({
  1143. id: kind + "+" + elind + "+" + stind + "b",
  1144. topic: `工具${elind * 1 + 1}`
  1145. });
  1146. }
  1147. });
  1148. }
  1149. }
  1150. });
  1151. }
  1152. });
  1153. });
  1154. });
  1155. });
  1156. console.log("framework", JSON.parse(JSON.stringify(framework)));
  1157. this.Kloading = false;
  1158. this.loading = false;
  1159. this.workList = framework;
  1160. setTimeout(() => {
  1161. return resolve();
  1162. }, 1500);
  1163. })
  1164. .catch(err => {
  1165. console.error(err);
  1166. });
  1167. });
  1168. },
  1169. // 获取作业阶段人物信息
  1170. getCourseDetail() {
  1171. this.loading = true;
  1172. let params = {
  1173. cid: this.cid,
  1174. choseClass: ""
  1175. };
  1176. return new Promise((resolve, reject) => {
  1177. this.ajax
  1178. .get(this.$store.state.api + "getCourseWorksReport2", params) //getCourseWorksReport
  1179. .then(res => {
  1180. this.CState = res.data[0][0].state;
  1181. this.worksDialogCon2.uname = res.data[0][0].username;
  1182. // let dyList = [];
  1183. // for (var i = 0; i < dyJSON.length; i++) {
  1184. // dyList.push({ name: dyJSON[i].dyName, id: i, taskList: [] });
  1185. // var a = dyJSON[i].chapterInfo[0].taskJson;
  1186. // for (var j = 0; j < a.length; j++) {
  1187. // dyList[i].taskList.push({ name: a[j].task, id: j });
  1188. // }
  1189. // }
  1190. // this.dyList = dyList;
  1191. this.imgList.forEach(e => {
  1192. if (e.schoolId == this.oid) {
  1193. this.schoolImg = e;
  1194. }
  1195. });
  1196. return resolve();
  1197. })
  1198. .catch(err => {
  1199. console.error(err);
  1200. });
  1201. });
  1202. },
  1203. // 一键打包所有作业
  1204. async circulatePdf() {
  1205. let _this = this;
  1206. var zip = new JSZip();
  1207. let pdfList = [];
  1208. for (let i = 0; i < this.tableData.length; i++) {
  1209. this.uid2 = this.tableData[i].userid;
  1210. this.worksDialogCon2 = this.tableData[i];
  1211. await this.getCourseDetail();
  1212. await this.exportPdfSet();
  1213. let a = await this.getPdf2();
  1214. pdfList.push(a);
  1215. }
  1216. pdfList.forEach((e, index) => {
  1217. zip.file(e.pdfName, e.pdfCon);
  1218. });
  1219. // 生成压缩包并提供下载链接
  1220. zip.generateAsync({ type: "blob" }).then(function(content) {
  1221. // 使用FileSaver保存压缩包
  1222. saveAs(content, _this.courseName + "-作业集汇总.zip");
  1223. });
  1224. this.$emit("update:worksDialog", false);
  1225. // this.worksDialog = false;
  1226. },
  1227. handleClose(done) {
  1228. done();
  1229. },
  1230. // 下载单个文件
  1231. async downPdf() {
  1232. await this.getCourseDetail();
  1233. await this.exportPdfSet();
  1234. this.getPdf();
  1235. },
  1236. // 获取所有作业然后一键打包压缩包
  1237. getWorks1() {
  1238. this.loading = true;
  1239. let params = {
  1240. cid: this.cid,
  1241. uname: "",
  1242. choseClass: "",
  1243. stage: "",
  1244. task: ""
  1245. };
  1246. this.ajax
  1247. .get(this.$store.state.api + "getCourseWorks6", params) //getCourseWorks4
  1248. .then(res => {
  1249. // this.isLoading = false;
  1250. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1251. this.tableData = res.data[0];
  1252. if (!this.tableData.length) {
  1253. this.loading = false;
  1254. return this.$message.info("课程下未有提交作业");
  1255. }
  1256. this.courseName = this.tableData[0].course;
  1257. this.circulatePdf();
  1258. // console.log(res.data[0]);
  1259. })
  1260. .catch(err => {
  1261. this.isLoading = false;
  1262. console.error(err);
  1263. });
  1264. },
  1265. // 批量导出作业
  1266. batchPdf() {
  1267. this.loading = true;
  1268. this.tableData = JSON.parse(JSON.stringify(this.multipleSelection));
  1269. this.courseName = this.tableData[0].course;
  1270. this.circulatePdf();
  1271. }
  1272. }
  1273. };
  1274. </script>
  1275. <style scoped>
  1276. .pbl {
  1277. width: 100%;
  1278. height: 100%;
  1279. box-sizing: border-box;
  1280. margin: auto;
  1281. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  1282. /* padding: 20px;
  1283. padding-top: 10px; */
  1284. overflow: auto;
  1285. border-radius: 10px;
  1286. font-family: PingFang SC;
  1287. position: relative;
  1288. }
  1289. .pdfCon {
  1290. width: 220mm;
  1291. margin: auto;
  1292. position: relative;
  1293. }
  1294. .pageTit {
  1295. width: 100%;
  1296. text-align: left;
  1297. font-size: 28px;
  1298. padding: 10px 0;
  1299. font-weight: bold;
  1300. border-bottom: 1px solid #ccc;
  1301. margin-bottom: 10px;
  1302. }
  1303. .full_diy {
  1304. min-width: 1200px !important;
  1305. }
  1306. .full_diy >>> .el-dialog {
  1307. height: 80%;
  1308. margin-top: 10vh !important;
  1309. display: flex;
  1310. flex-direction: column;
  1311. }
  1312. .full_diy >>> .el-dialog__body {
  1313. overflow: auto;
  1314. flex: 1;
  1315. padding: 0 !important;
  1316. }
  1317. .full_diy >>> .el-dialog__title {
  1318. color: #fff !important;
  1319. }
  1320. .full_diy >>> .el-dialog__header {
  1321. padding: 9px 20px 10px;
  1322. background: #32455b !important;
  1323. }
  1324. .coverPage {
  1325. /* height: 840pt; */
  1326. padding: 150px 8% 0;
  1327. background-color: #ccc;
  1328. box-sizing: border-box;
  1329. position: relative;
  1330. background-image: url("../../../assets/icon/exportPdfworks/bcg1.svg"),
  1331. url("../../../assets/icon/exportPdfworks/bcg2.svg");
  1332. /* 设置每个背景的位置和尺寸,可以使用关键字或者具体的像素值,用逗号分隔 */
  1333. background-position: top left, bottom;
  1334. background-size: 225px, contain;
  1335. /* 设置每个背景图片的重复方式,用逗号分隔 */
  1336. background-repeat: no-repeat, no-repeat;
  1337. }
  1338. .coverPageLogo {
  1339. /* padding: 40px;
  1340. height: 120px;
  1341. width: 100%;
  1342. display: flex;
  1343. justify-content: flex-end;
  1344. box-sizing: border-box;
  1345. margin-bottom: 45px; */
  1346. position: absolute;
  1347. top: 30px;
  1348. right: 6%;
  1349. }
  1350. .coverPageFrom {
  1351. display: flex;
  1352. flex-direction: column;
  1353. align-items: center;
  1354. width: 70%;
  1355. margin: 0 auto;
  1356. }
  1357. .coverPageFromTit {
  1358. font-size: 60px;
  1359. color: rgba(92, 80, 70, 1);
  1360. font-weight: 600;
  1361. text-align: center;
  1362. }
  1363. .fromCss {
  1364. border: 1.5px dashed rgba(158, 208, 255, 1);
  1365. border-radius: 16px;
  1366. background-color: #fff;
  1367. padding: 40px 32px;
  1368. width: 77%;
  1369. font-family: PingFang SC;
  1370. margin: 8px 0;
  1371. color: rgba(35, 99, 205, 1);
  1372. }
  1373. .fromCss > div {
  1374. margin-bottom: 28px;
  1375. display: flex;
  1376. }
  1377. .fromCss > div > span {
  1378. flex-shrink: 0;
  1379. margin-right: 5px;
  1380. font-size: 16px;
  1381. font-weight: 600;
  1382. color: rgba(92, 80, 70, 1);
  1383. }
  1384. .fromCss > div:last-child {
  1385. margin-bottom: 0;
  1386. }
  1387. .txt {
  1388. width: 100%;
  1389. border-bottom: 1px solid rgba(192, 210, 229, 1);
  1390. text-align: center;
  1391. color: #000;
  1392. overflow: hidden;
  1393. white-space: nowrap;
  1394. text-overflow: ellipsis;
  1395. }
  1396. .coverPageCon {
  1397. background-color: #e3edfe;
  1398. display: flex;
  1399. flex-direction: column;
  1400. padding: 0 60px;
  1401. padding-bottom: 100px;
  1402. box-sizing: border-box;
  1403. font-family: PingFang SC;
  1404. }
  1405. .stageCon {
  1406. background-color: #fff;
  1407. padding: 15px;
  1408. box-sizing: border-box;
  1409. margin-bottom: 10px;
  1410. border-radius: 8px;
  1411. width: 100%;
  1412. }
  1413. .a_addBox {
  1414. margin: 10px 0;
  1415. background: #fff;
  1416. padding: 0 15px;
  1417. /* max-height: 400px; */
  1418. /* max-height: 160px; */
  1419. /* overflow: auto; */
  1420. }
  1421. .redioStyle >>> .el-radio__label {
  1422. font-size: 18px;
  1423. }
  1424. .redioStyle5 >>> .el-radio__label {
  1425. font-size: 14px;
  1426. color: #06a7ff !important;
  1427. }
  1428. .redioStyle2 >>> .el-radio__label {
  1429. font-size: 14px;
  1430. }
  1431. .redioStyle3 >>> .el-checkbox__label {
  1432. font-size: 14px;
  1433. color: #06a7ff !important;
  1434. }
  1435. .redioStyle4 >>> .el-checkbox__label {
  1436. font-size: 14px;
  1437. }
  1438. .WorksCon >>> .el-checkbox-group {
  1439. margin: 0 5px;
  1440. }
  1441. .sortTool {
  1442. padding: 1px 3px;
  1443. border: 2px #5d89c4 solid;
  1444. margin: 0 5px;
  1445. min-width: 20px;
  1446. border-radius: 5px;
  1447. text-align: center;
  1448. }
  1449. /* table 样式 */
  1450. .cont >>> table {
  1451. border-top: 1px solid #ccc;
  1452. border-left: 1px solid #ccc;
  1453. }
  1454. .cont >>> table td,
  1455. .cont >>> table th {
  1456. border-bottom: 1px solid #ccc;
  1457. border-right: 1px solid #ccc;
  1458. padding: 15px 5px;
  1459. max-width: 0px;
  1460. }
  1461. .cont >>> table th {
  1462. border-bottom: 2px solid #ccc;
  1463. text-align: center;
  1464. }
  1465. .taskSco {
  1466. background-color: rgba(243, 247, 253, 1);
  1467. border-radius: 8px;
  1468. padding: 8px;
  1469. box-sizing: border-box;
  1470. margin: 8px 0;
  1471. }
  1472. .score_boxTit > span {
  1473. border-left: 3px solid rgba(54, 129, 252, 1);
  1474. padding-left: 5px;
  1475. }
  1476. .score_boxTit {
  1477. /* padding: 0 30px; */
  1478. box-sizing: border-box;
  1479. font-size: 14px;
  1480. font-weight: 600;
  1481. color: rgba(0, 0, 0, 0.9);
  1482. }
  1483. .inImg {
  1484. width: 100px;
  1485. }
  1486. .inImg > img {
  1487. width: 100%;
  1488. height: 100%;
  1489. object-fit: cover;
  1490. }
  1491. .radioBox {
  1492. display: flex;
  1493. flex-direction: column;
  1494. }
  1495. .WorksCon >>> .el-radio {
  1496. display: flex;
  1497. align-items: center;
  1498. margin: 5px;
  1499. }
  1500. .WorksCon >>> .el-checkbox {
  1501. display: flex;
  1502. align-items: center;
  1503. margin: 5px;
  1504. }
  1505. .RootImgBlock {
  1506. width: 50%;
  1507. white-space: wrap;
  1508. /* overflow: hidden;
  1509. text-overflow: ellipsis; */
  1510. font-size: 12px;
  1511. }
  1512. .score_box {
  1513. display: flex;
  1514. align-items: center;
  1515. font-size: 14px !important;
  1516. /* justify-content: flex-start; */
  1517. justify-content: space-between;
  1518. margin-bottom: 15px;
  1519. /* margin: 10px 0 0 30px; */
  1520. width: 100%;
  1521. margin: 5px 0;
  1522. position: relative;
  1523. }
  1524. .score_box:last-child {
  1525. margin-bottom: 0;
  1526. }
  1527. .worksTarget {
  1528. border-left: 3px solid rgba(54, 129, 252, 1);
  1529. font-size: 14px;
  1530. font-weight: 600;
  1531. color: rgba(0, 0, 0, 0.9);
  1532. }
  1533. .worksTarget > span {
  1534. margin-left: 5px;
  1535. }
  1536. .worksTargetCon {
  1537. background-color: #fff;
  1538. padding: 10px;
  1539. margin-top: 10px;
  1540. border-radius: 8px;
  1541. box-sizing: border-box;
  1542. font-size: 12px;
  1543. }
  1544. .worksTargetCon > div {
  1545. margin-bottom: 10px;
  1546. }
  1547. .worksTargetCon > div:last-child {
  1548. margin: 0 !important;
  1549. }
  1550. .dialog_diy >>> .el-dialog__header {
  1551. padding: 9px 20px 10px;
  1552. background: #32455b !important;
  1553. }
  1554. .worksDialogCSS >>> .el-dialog__header {
  1555. /* padding: 9px 20px 10px; */
  1556. background: #32455b !important;
  1557. }
  1558. .worksDialogCSS >>> .el-dialog__body {
  1559. width: 643px !important;
  1560. }
  1561. .worksDialogCSS >>> .el-dialog {
  1562. width: 683px !important;
  1563. }
  1564. .stageTit {
  1565. text-align: left;
  1566. font-weight: 600;
  1567. font-size: 22px;
  1568. margin-bottom: 20px;
  1569. color: rgba(242, 161, 75, 1);
  1570. border-left: 5px rgba(242, 161, 75, 1) solid;
  1571. padding-left: 5px;
  1572. }
  1573. .taskTitInd {
  1574. font-size: 14px;
  1575. display: flex;
  1576. align-items: center;
  1577. }
  1578. .taskTitInd span:nth-child(1) {
  1579. background-color: rgba(242, 161, 75, 1);
  1580. color: #fff;
  1581. padding: 3px 5px;
  1582. border-radius: 4px;
  1583. margin-right: 5px;
  1584. box-sizing: border-box;
  1585. font-size: 12px;
  1586. }
  1587. .taskTitInd div {
  1588. background-color: rgba(242, 161, 75, 1);
  1589. width: 15px;
  1590. height: 15px;
  1591. border-radius: 50%;
  1592. margin-right: 10px;
  1593. }
  1594. .taskTitInd span:nth-child(2) {
  1595. color: rgba(0, 0, 0, 0.9);
  1596. font-weight: 600;
  1597. }
  1598. .taskBri {
  1599. background-color: rgba(253, 247, 243, 1);
  1600. padding: 10px 12px;
  1601. line-height: 20px;
  1602. box-sizing: border-box;
  1603. font-weight: PingFang SC;
  1604. font-size: 12px;
  1605. font-weight: 400;
  1606. border-radius: 4px;
  1607. }
  1608. .toolBlk {
  1609. display: flex;
  1610. height: 44px;
  1611. margin: 15px 0;
  1612. }
  1613. .toolBlk img {
  1614. height: 100%;
  1615. margin-right: 8px;
  1616. }
  1617. .toolTit {
  1618. display: flex;
  1619. flex-direction: column;
  1620. justify-content: space-around;
  1621. }
  1622. .toolTit div:nth-child(1) {
  1623. font-family: PingFang SC;
  1624. font-size: 14px;
  1625. font-weight: 600;
  1626. text-align: left;
  1627. color: rgba(0, 0, 0, 0.9);
  1628. margin-right: 10px;
  1629. }
  1630. .toolTit div:nth-child(2) {
  1631. font-family: PingFang SC;
  1632. font-size: 11px;
  1633. font-weight: 400;
  1634. text-align: left;
  1635. color: rgba(0, 0, 0, 0.9);
  1636. }
  1637. .answerTxt {
  1638. font-size: 12px;
  1639. color: rgba(0, 0, 0, 0.6);
  1640. font-weight: 400;
  1641. line-height: 30px;
  1642. padding: 0 10px;
  1643. }
  1644. .taskSco {
  1645. background-color: rgba(253, 247, 243, 1);
  1646. border-radius: 8px;
  1647. padding: 10px 15px;
  1648. box-sizing: border-box;
  1649. margin: 8px 0;
  1650. width: 100%;
  1651. }
  1652. .taskScoTit {
  1653. display: flex;
  1654. justify-content: space-between;
  1655. margin: 0 0 20px;
  1656. }
  1657. .taskScoTit div:nth-child(1) {
  1658. color: rgba(0, 0, 0, 0.9);
  1659. font-family: PingFang SC;
  1660. font-size: 14px;
  1661. font-weight: 600;
  1662. text-align: left;
  1663. }
  1664. .taskScoTit div:nth-child(2) {
  1665. color: rgba(0, 0, 0, 0.6);
  1666. font-family: PingFang SC;
  1667. font-size: 12px;
  1668. font-weight: 400;
  1669. }
  1670. .taskScoCon {
  1671. display: flex;
  1672. justify-content: space-between;
  1673. }
  1674. .taskScoConTit {
  1675. text-align: left;
  1676. font-weight: 600;
  1677. font-size: 14px;
  1678. margin-bottom: 10px;
  1679. color: rgba(0, 0, 0, 0.9);
  1680. border-left: 5px rgba(242, 161, 75, 1) solid;
  1681. padding-left: 5px;
  1682. }
  1683. .WorkCon {
  1684. background-color: rgba(255, 255, 255, 0.9);
  1685. padding: 8px;
  1686. box-sizing: border-box;
  1687. border-radius: 8px;
  1688. font-family: PingFang SC;
  1689. font-size: 12px;
  1690. line-height: 20px;
  1691. font-weight: 400;
  1692. flex: 1;
  1693. }
  1694. .WorkConSY {
  1695. background-color: rgba(255, 255, 255, 0.9);
  1696. padding: 8px;
  1697. box-sizing: border-box;
  1698. border-radius: 8px;
  1699. font-family: PingFang SC;
  1700. font-size: 12px;
  1701. font-weight: 400;
  1702. flex: 1;
  1703. }
  1704. .WorkConSY div {
  1705. margin-bottom: 8px;
  1706. }
  1707. .WorkConSY div:last-child {
  1708. margin-bottom: 0;
  1709. }
  1710. .RootImgBlockSy {
  1711. width: 300px;
  1712. white-space: nowrap;
  1713. overflow: hidden;
  1714. font-size: 12px;
  1715. text-overflow: ellipsis;
  1716. }
  1717. .termC {
  1718. margin: 30px 0 45px;
  1719. font-size: 18px;
  1720. color: rgba(92, 80, 70, 1);
  1721. display: flex;
  1722. justify-content: space-between;
  1723. font-weight: 600;
  1724. }
  1725. .termC > div > span {
  1726. color: rgba(176, 123, 0, 1);
  1727. border-bottom: 2px solid rgba(242, 228, 213, 1);
  1728. padding: 3px 10px;
  1729. margin: 0 8px;
  1730. }
  1731. </style>