choiceQuestionDetailDialog.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928
  1. <template>
  2. <div class="choiceQuestionDetailDialog">
  3. <div class="content" :style="{
  4. width: slideWidth + 'px',
  5. height: slideHeight + 'px',
  6. }">
  7. <span v-show="false" class="closeIcon" @click="closeSlideIndex()">
  8. <img src="../../../assets/img/close.png" />
  9. </span>
  10. <!-- 选择题 -->
  11. <div class="c_t45" v-if="workDetail && workDetail.type === '45' && props.showData">
  12. <div class="c_t45_title">
  13. <div v-if="props.showData.choiceQuestionListData[props.showData.workIndex]">{{
  14. props.showData.choiceQuestionListData[props.showData.workIndex]
  15. .teststitle
  16. }}</div>
  17. <div class="c_t45_msg">
  18. <div>{{ lang.ssAnswerCount }} {{ props.showData.workArray.length }}<span
  19. v-if="props.showData.unsubmittedStudents.length > 0">/{{ props.showData.unsubmittedStudents.length
  20. }}</span></div>
  21. <span v-if="props.showData.unsubmittedStudents.length > 0" @click="viewUnsubmittedStudents()">{{
  22. lang.ssViewUnsubmittedStudents }}</span>
  23. </div>
  24. <!--<span class="c_t45_t_btn" :class="{'c_t45_t_btn_noActive': props.showData.workIndex <= 0}" @click="changeWorkIndex(0)">{{ lang.ssPrevQ }}</span>-->
  25. <!--<span class="c_t45_t_btn" :class="{'c_t45_t_btn_noActive': props.showData.workIndex >= props.showData.choiceQuestionListData.length - 1}" @click="changeWorkIndex(1)">{{ lang.ssNextQ }}</span>-->
  26. </div>
  27. <img class="c_t45_img" :src="props.showData.choiceQuestionListData[props.showData.workIndex]
  28. .timuList[0].src
  29. " v-if="props.showData.choiceQuestionListData[props.showData.workIndex] &&
  30. props.showData.choiceQuestionListData[props.showData.workIndex]
  31. .timuList.length > 0
  32. " @click="previewImageToolRef.previewImage(props.showData.choiceQuestionListData[props.showData.workIndex]
  33. .timuList[0].src)" />
  34. <!-- <span class="c_t45_type" v-if="
  35. props.showData.choiceQuestionListData[props.showData.workIndex]
  36. .type === '1'
  37. ">{{ lang.ssSingleSel }}</span>
  38. <span class="c_t45_type" v-if="
  39. props.showData.choiceQuestionListData[props.showData.workIndex]
  40. .type === '2'
  41. ">{{ lang.ssMultiOpt }}</span> -->
  42. <!-- <span class="c_t45_type">{{ lang.ssChoiceQuestion }}</span> -->
  43. <div class="c_t45_echarts" :style="{
  44. width: slideWidth - 40 + 'px',
  45. }">
  46. <div id="echartsArea1" ref="echartsArea1"></div>
  47. </div>
  48. <div class="aiAnalysis" v-if="props.workArray.length > 0">
  49. <div class="ai_header">
  50. <div class="ai_title">
  51. <svg viewBox="0 0 1024 1024" width="200" height="200">
  52. <path
  53. d="M512 170.666667C323.477333 170.666667 170.666667 323.477333 170.666667 512s152.810667 341.333333 341.333333 341.333333 341.333333-152.810667 341.333333-341.333333S700.522667 170.666667 512 170.666667zM85.333333 512C85.333333 276.352 276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512z">
  54. </path>
  55. <path
  56. d="M693.013333 330.986667a42.666667 42.666667 0 0 1 10.304 43.648l-75.413333 226.282666a42.666667 42.666667 0 0 1-26.986667 26.986667l-226.282666 75.413333a42.666667 42.666667 0 0 1-53.973334-53.973333l75.434667-226.261333a42.666667 42.666667 0 0 1 26.986667-26.986667l226.282666-75.413333a42.666667 42.666667 0 0 1 43.648 10.304z m-222.72 139.306666l-41.685333 125.098667 125.077333-41.706667 41.706667-125.077333-125.077333 41.706667z">
  57. </path>
  58. </svg>{{ lang.ssAnalysis }}
  59. </div>
  60. <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
  61. @click="aiAnalysisRefresh45()">
  62. {{ lang.ssAIGenerate }}
  63. <svg viewBox="0 0 1024 1024" width="200" height="200">
  64. <path
  65. d="M875 483c-33.4 0-60.5 27.1-60.5 60.5v0.1C814.4 710.3 678.8 846 512 846S209.5 710.3 209.5 543.5 345.2 241 512 241c36.8 0 71.7 7.6 104.4 19.7-32 3-57.4 29.1-57.4 61.9 0 34.8 28.2 63 63 63h201.9c34.8 0 63-28.2 63-63V120c0-34.8-28.2-63-63-63s-63 28.2-63 63v81.4C691 150.5 605.2 120 512 120 278.1 120 88.5 309.6 88.5 543.5S278.1 967 512 967s423.5-189.6 423.5-423.5c0-33.4-27.1-60.5-60.5-60.5z">
  66. </path>
  67. </svg>
  68. </div>
  69. </div>
  70. <div class="ai_content" v-if="currentAnalysis">
  71. {{ currentAnalysis.json }}
  72. </div>
  73. <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
  74. </div>
  75. </div>
  76. <div class="cq_changeBtn" v-if="props.showData.choiceQuestionListData.length > 1">
  77. <div :class="{ cq_cb_disabled: props.showData.workIndex <= 0 }" @click="changeWorkIndex(0)">
  78. <svg style="transform: rotate(-90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
  79. <path
  80. d="M512 330.666667c14.933333 0 29.866667 4.266667 40.533333 14.933333l277.33333399 234.666667c27.733333 23.466667 29.866667 64 8.53333301 89.6-23.466667 27.733333-64 29.866667-89.6 8.53333299L512 477.866667l-236.8 200.53333299c-27.733333 23.466667-68.266667 19.19999999-89.6-8.53333299-23.466667-27.733333-19.19999999-68.266667 8.53333301-89.6l277.33333399-234.666667c10.666667-10.666667 25.6-14.933333 40.533333-14.933333z"
  81. fill=""></path>
  82. </svg>
  83. </div>
  84. <span>{{ props.showData.workIndex + 1 }}/{{ props.showData.choiceQuestionListData.length }}</span>
  85. <div :class="{ cq_cb_disabled: props.showData.workIndex >= props.showData.choiceQuestionListData.length - 1 }"
  86. @click="changeWorkIndex(1)">
  87. <svg style="transform: rotate(90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
  88. <path
  89. d="M512 330.666667c14.933333 0 29.866667 4.266667 40.533333 14.933333l277.33333399 234.666667c27.733333 23.466667 29.866667 64 8.53333301 89.6-23.466667 27.733333-64 29.866667-89.6 8.53333299L512 477.866667l-236.8 200.53333299c-27.733333 23.466667-68.266667 19.19999999-89.6-8.53333299-23.466667-27.733333-19.19999999-68.266667 8.53333301-89.6l277.33333399-234.666667c10.666667-10.666667 25.6-14.933333 40.533333-14.933333z"
  90. fill=""></path>
  91. </svg>
  92. </div>
  93. </div>
  94. </div>
  95. <!-- 问答题 -->
  96. <div class="c_t15" v-if="workDetail && workDetail.type === '15' && props.showData">
  97. <div class="c_t15_title">{{ workDetail.json.answerQ }}</div>
  98. <span class="c_t15_type">{{ lang.ssQATest }}</span>
  99. <div class="c_t15_content" v-show="!lookWorkData">
  100. <div class="c_t15_c_item" v-for="item in processedWorkArray" :key="item.id" @click="lookWork(item.id)">
  101. <div class="c_t15_c_i_top">
  102. <span>S</span>
  103. <div>{{ item.name }}</div>
  104. </div>
  105. <div class="c_t15_c_i_bottom">
  106. <span v-html="item.content.answer"></span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="aiAnalysis" style="margin-top:1rem ;" v-if="processedWorkArray.length > 0 && lookWorkData===null && workDetail.type === '15'">
  111. <div class="ai_header">
  112. <div class="ai_title">
  113. <svg viewBox="0 0 1024 1024" width="200" height="200">
  114. <path
  115. d="M512 170.666667C323.477333 170.666667 170.666667 323.477333 170.666667 512s152.810667 341.333333 341.333333 341.333333 341.333333-152.810667 341.333333-341.333333S700.522667 170.666667 512 170.666667zM85.333333 512C85.333333 276.352 276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512z">
  116. </path>
  117. <path
  118. d="M693.013333 330.986667a42.666667 42.666667 0 0 1 10.304 43.648l-75.413333 226.282666a42.666667 42.666667 0 0 1-26.986667 26.986667l-226.282666 75.413333a42.666667 42.666667 0 0 1-53.973334-53.973333l75.434667-226.261333a42.666667 42.666667 0 0 1 26.986667-26.986667l226.282666-75.413333a42.666667 42.666667 0 0 1 43.648 10.304z m-222.72 139.306666l-41.685333 125.098667 125.077333-41.706667 41.706667-125.077333-125.077333 41.706667z">
  119. </path>
  120. </svg>{{ lang.ssAnalysis }}
  121. </div>
  122. <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
  123. @click="aiAnalysisRefresh15()">
  124. {{ lang.ssAIGenerate }}
  125. <svg viewBox="0 0 1024 1024" width="200" height="200">
  126. <path
  127. d="M875 483c-33.4 0-60.5 27.1-60.5 60.5v0.1C814.4 710.3 678.8 846 512 846S209.5 710.3 209.5 543.5 345.2 241 512 241c36.8 0 71.7 7.6 104.4 19.7-32 3-57.4 29.1-57.4 61.9 0 34.8 28.2 63 63 63h201.9c34.8 0 63-28.2 63-63V120c0-34.8-28.2-63-63-63s-63 28.2-63 63v81.4C691 150.5 605.2 120 512 120 278.1 120 88.5 309.6 88.5 543.5S278.1 967 512 967s423.5-189.6 423.5-423.5c0-33.4-27.1-60.5-60.5-60.5z">
  128. </path>
  129. </svg>
  130. </div>
  131. </div>
  132. <div class="ai_content" v-if="currentAnalysis">
  133. {{ currentAnalysis.json }}
  134. </div>
  135. <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
  136. </div>
  137. </div>
  138. <div class="c_t15_workDetail" v-if="lookWorkData">
  139. <div class="c_t15_wd_top">
  140. <img src="../../../assets/img/arrow_left.png" @click="lookWork('')" />
  141. <span>S</span>
  142. <div>{{ lookWorkData.name }}</div>
  143. </div>
  144. <div class="c_t15_wd_content">
  145. <span v-html="lookWorkData.content.answer"></span>
  146. <div class="c_t15_wd_c_imageList" v-if="lookWorkData.content.fileList.length > 0">
  147. <img v-for="item in lookWorkData.content.fileList" :src="item.url" :key="item.uploadTime"
  148. @click="lookImage(item.url)" />
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. <!-- AI应用 -->
  154. <div class="c_t72" v-if="props.showData && props.showData.toolType === 72">
  155. <div class="c_t72_title">{{ lang.ssAiApp }}</div>
  156. <span class="c_t72_type">{{ lang.ssAiApp }}</span>
  157. <div class="c_t72_content" v-show="!lookWorkData">
  158. <div class="c_t72_c_item" v-for="item in processedWorkArray" :key="item.id" @click="lookWork(item.id)">
  159. <div class="c_t72_c_i_top">
  160. <span>S</span>
  161. <div>{{ item.name }}</div>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="aiAnalysis" style="margin-top:1rem ;" v-if="processedWorkArray.length > 0 && lookWorkData===null && props.showData.toolType === 72">
  166. <div class="ai_header">
  167. <div class="ai_title">
  168. <svg viewBox="0 0 1024 1024" width="200" height="200">
  169. <path
  170. d="M512 170.666667C323.477333 170.666667 170.666667 323.477333 170.666667 512s152.810667 341.333333 341.333333 341.333333 341.333333-152.810667 341.333333-341.333333S700.522667 170.666667 512 170.666667zM85.333333 512C85.333333 276.352 276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512z">
  171. </path>
  172. <path
  173. d="M693.013333 330.986667a42.666667 42.666667 0 0 1 10.304 43.648l-75.413333 226.282666a42.666667 42.666667 0 0 1-26.986667 26.986667l-226.282666 75.413333a42.666667 42.666667 0 0 1-53.973334-53.973333l75.434667-226.261333a42.666667 42.666667 0 0 1 26.986667-26.986667l226.282666-75.413333a42.666667 42.666667 0 0 1 43.648 10.304z m-222.72 139.306666l-41.685333 125.098667 125.077333-41.706667 41.706667-125.077333-125.077333 41.706667z">
  174. </path>
  175. </svg>{{ lang.ssAnalysis }}
  176. </div>
  177. <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
  178. @click="aiAnalysisRefresh72()">
  179. {{ lang.ssAIGenerate }}
  180. <svg viewBox="0 0 1024 1024" width="200" height="200">
  181. <path
  182. d="M875 483c-33.4 0-60.5 27.1-60.5 60.5v0.1C814.4 710.3 678.8 846 512 846S209.5 710.3 209.5 543.5 345.2 241 512 241c36.8 0 71.7 7.6 104.4 19.7-32 3-57.4 29.1-57.4 61.9 0 34.8 28.2 63 63 63h201.9c34.8 0 63-28.2 63-63V120c0-34.8-28.2-63-63-63s-63 28.2-63 63v81.4C691 150.5 605.2 120 512 120 278.1 120 88.5 309.6 88.5 543.5S278.1 967 512 967s423.5-189.6 423.5-423.5c0-33.4-27.1-60.5-60.5-60.5z">
  183. </path>
  184. </svg>
  185. </div>
  186. </div>
  187. <div class="ai_content" v-if="currentAnalysis">
  188. {{ currentAnalysis.json }}
  189. </div>
  190. <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
  191. </div>
  192. </div>
  193. <div class="c_t72_workDetail" v-if="lookWorkData">
  194. <div class="c_t72_wd_top">
  195. <img src="../../../assets/img/arrow_left.png" @click="lookWork('')" />
  196. <span>S</span>
  197. <div>{{ lookWorkData.name }}</div>
  198. </div>
  199. <div class="c_t72_wd_content">
  200. <template v-for="(item, index) in lookWorkData.content" :key="item.id">
  201. <div class="messageNodeArea" v-if="item.messages || item.imageUrls">
  202. <div class="messageNode">
  203. <div class="mn_title">{{ lang.ssNodeTitle.replace(/\*/g, String(index + 1)) }}</div>
  204. <div class="mn_content">
  205. <template v-for="(item2, index2) in item.messages" :key="`${index}-${index2}`">
  206. <div>
  207. <div class="na_m_item" v-if="item2.role == 'user' && item2.content">
  208. <div class="na_m_i_name">
  209. {{ item2.sender }}
  210. </div>
  211. <div class="na_m_i_content" v-html="item2.content"></div>
  212. </div>
  213. <div class="na_m_item" v-if="item2.role == 'assistant' && item2.content">
  214. <div class="na_m_i_name aiName">
  215. {{ item2.sender }}
  216. </div>
  217. <div class="na_m_i_content" v-html="item2.content"></div>
  218. </div>
  219. </div>
  220. </template>
  221. <template v-if="item.imageUrls" v-for="(item3, index3) in item.imageUrls"
  222. :key="`${index}-${index3}`">
  223. <div class="na_m_item">
  224. <div class="na_m_i_name">
  225. {{ item.type }}
  226. </div>
  227. <div class="na_m_i_content">
  228. <img style="height: 100px;width: auto;" :src="item3" />
  229. </div>
  230. </div>
  231. </template>
  232. </div>
  233. </div>
  234. </div>
  235. </template>
  236. </div>
  237. </div>
  238. </div>
  239. <!-- H5页面 -->
  240. <div class="c_t73" v-if="props.showData && props.showData.toolType === 73">
  241. <div class="c_t73_title">{{ lang.ssPageImage }}</div>
  242. <span class="c_t73_type">{{ lang.ssHPage }}</span>
  243. <div class="c_t73_content" v-show="!lookWorkData">
  244. <div class="c_t73_c_item" v-for="item in processedWorkArray" :key="item.id" @click="lookWork(item.id)">
  245. <div class="c_t73_c_i_top">
  246. <span>S</span>
  247. <div>{{ item.name }}</div>
  248. </div>
  249. <div class="c_t73_c_i_bottom">
  250. <img :src="item.content" />
  251. </div>
  252. </div>
  253. </div>
  254. <div class="c_t73_workDetail" v-if="lookWorkData">
  255. <div class="c_t73_wd_top">
  256. <img src="../../../assets/img/arrow_left.png" @click="lookWork('')" />
  257. <span>S</span>
  258. <div>{{ lookWorkData.name }}</div>
  259. </div>
  260. <div class="c_t73_wd_content">
  261. <img :src="lookWorkData.content" />
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. <previewImageTool ref="previewImageToolRef" />
  267. <selectUserDialog ref="selectUserDialogRef" />
  268. </div>
  269. </template>
  270. <script setup lang="ts">
  271. import { computed, ref, watch, onUnmounted, nextTick, onMounted } from 'vue'
  272. import * as echarts from 'echarts'
  273. import previewImageTool from '../../components/tool/previewImageTool.vue'
  274. import MarkdownIt from 'markdown-it'
  275. import useImport from '@/hooks/useImport'
  276. import { lang } from '@/main'
  277. import selectUserDialog from './selectUserDialog.vue'
  278. import { chat_stream } from '@/tools/aiChat'
  279. import axios from '@/services/config'
  280. const props = defineProps<{
  281. visible: number[];
  282. workIndex: number;
  283. slideWidth: number;
  284. slideHeight: number;
  285. slideIndex: number;
  286. showData: any;
  287. workArray: any[];
  288. courseDetail: any;
  289. userId: string;
  290. workId: string;
  291. }>()
  292. const emit = defineEmits<{
  293. (e: 'update:visible', v: number[]): void;
  294. (e: 'changeWorkIndex', v: number): void;
  295. }>()
  296. const visible = computed({
  297. get: () => props.visible,
  298. set: (v: number[]) => emit('update:visible', v),
  299. })
  300. const workDetail = computed(() => {
  301. if (props.showData) {
  302. return props.showData.workDetail
  303. }
  304. return null
  305. })
  306. // 预览图片组件
  307. const previewImageToolRef = ref<any>(null)
  308. // 选择用户组件
  309. const selectUserDialogRef = ref<any>(null)
  310. // ai分析数据
  311. const aiAnalysisData = ref<Array<any>>([])
  312. const md = new MarkdownIt()
  313. const { getFile } = useImport()
  314. // 判断是否是 URL 链接
  315. const isUrl = (str: string): boolean => {
  316. try {
  317. const url = new URL(str)
  318. return (url.protocol === 'http:' || url.protocol === 'https:') && str.includes('json')
  319. }
  320. catch {
  321. return false
  322. }
  323. }
  324. // 从链接获取文件内容
  325. const loadContentFromUrl = async (url: string): Promise<string> => {
  326. try {
  327. const fileData = await getFile(url)
  328. if (fileData && fileData.data) {
  329. // 将 ArrayBuffer 转为字符串
  330. const uint8Array = new Uint8Array(fileData.data)
  331. const jsonStr = new TextDecoder('utf-8').decode(uint8Array)
  332. return jsonStr
  333. }
  334. return ''
  335. }
  336. catch (error) {
  337. console.error('获取文件内容失败:', error)
  338. return ''
  339. }
  340. }
  341. // 处理单个作业内容
  342. const processWorkContent = async (content: string, toolType: number): Promise<any> => {
  343. let contentToParse = content
  344. // 如果是链接,先获取文件内容
  345. if (isUrl(content)) {
  346. contentToParse = await loadContentFromUrl(content)
  347. }
  348. if (!contentToParse) {
  349. return null
  350. }
  351. try {
  352. if ([45, 15].includes(toolType)) {
  353. return JSON.parse(decodeURIComponent(contentToParse))
  354. }
  355. else if (toolType === 72) {
  356. const parsed = JSON.parse(contentToParse)
  357. if (Array.isArray(parsed)) {
  358. parsed.forEach((item: any) => {
  359. if (item.messages && item.messages.length) {
  360. item.messages.forEach((item2: any) => {
  361. // 如果已经包含html标签则不再渲染
  362. if (
  363. !/^(\s*<[^>]+>.*<\/[^>]+>\s*|<[^>]+\/>\s*)$/s.test(
  364. item2.content.trim()
  365. )
  366. ) {
  367. item2.content = item2.content.replace(/&lt;/g, '<').replace(/&quot;/g, '"').replace(/&gt;/g, '>')
  368. item2.content = md.render(item2.content)
  369. }
  370. })
  371. }
  372. })
  373. }
  374. return parsed
  375. }
  376. return contentToParse
  377. }
  378. catch (error) {
  379. console.error('解析内容失败:', error)
  380. return null
  381. }
  382. }
  383. const processedWorkArray = ref<any[]>([])
  384. // 监听 workArray 和 showData 变化
  385. watch(
  386. () => [props.workArray, props.showData?.toolType],
  387. async () => {
  388. if (props.workArray && props.showData) {
  389. const _workArray = JSON.parse(JSON.stringify(props.workArray))
  390. // 处理每个作业内容
  391. for (const i of _workArray) {
  392. if (i.content) {
  393. const processedContent = await processWorkContent(i.content, props.showData.toolType)
  394. if (processedContent !== null) {
  395. i.content = processedContent
  396. }
  397. }
  398. }
  399. processedWorkArray.value = _workArray
  400. }
  401. else {
  402. processedWorkArray.value = []
  403. }
  404. },
  405. { immediate: true, deep: true }
  406. )
  407. // 关闭对应的作业详细页面
  408. const closeSlideIndex = () => {
  409. visible.value = visible.value.filter((v) => v !== props.slideIndex)
  410. }
  411. // 切换题目
  412. const changeWorkIndex = (type: number) => {
  413. emit('changeWorkIndex', type)
  414. // console.log(props.workIndex, props.showData.choiceQuestionListData.length)
  415. // if (type === 0 && props.workIndex > 0) {
  416. // emit('changeWorkIndex', 0)
  417. // }
  418. // else if (type === 1 && props.workIndex < props.showData.choiceQuestionListData.length) {
  419. // emit('changeWorkIndex', props.workIndex + 1)
  420. // }
  421. }
  422. // 选择题图表div
  423. const echartsArea1 = ref<any>(null)
  424. // 查看的作业详细id
  425. const lookWorkDetail = ref<string>('')
  426. // 查看作业详细的数据
  427. const lookWorkData = computed(() => {
  428. let _result = null
  429. if (lookWorkDetail.value && processedWorkArray.value.length > 0) {
  430. const _workFind = processedWorkArray.value.find(
  431. (i: any) => i.id === lookWorkDetail.value
  432. )
  433. if (_workFind) {
  434. _result = _workFind
  435. }
  436. }
  437. return _result
  438. })
  439. // 查看图片
  440. const lookImage = (url: string) => {
  441. if (previewImageToolRef.value) {
  442. previewImageToolRef.value.previewImage(url)
  443. }
  444. }
  445. // 查看作业
  446. const lookWork = (id: string) => {
  447. lookWorkDetail.value = id
  448. }
  449. // 选择题图表实例
  450. const myChart = ref<any>(null)
  451. // resize防抖定时器
  452. let resizeTimer: ReturnType<typeof setTimeout> | null = null
  453. // 处理ECharts resize
  454. const handleChartResize = () => {
  455. // 清除之前的定时器
  456. if (resizeTimer) {
  457. clearTimeout(resizeTimer)
  458. }
  459. resizeTimer = setTimeout(() => {
  460. nextTick(() => {
  461. if (
  462. myChart.value &&
  463. typeof myChart.value.resize === 'function' &&
  464. !myChart.value.isDisposed()
  465. ) {
  466. try {
  467. myChart.value.resize()
  468. }
  469. catch (e) {
  470. // console.error('myChart resize error:', e)
  471. // 如果resize失败,重新初始化图表
  472. if (
  473. props.showData &&
  474. props.showData.workDetail &&
  475. props.showData.workDetail.type === '45'
  476. ) {
  477. setEchartsArea1()
  478. }
  479. }
  480. }
  481. })
  482. }, 200) // 防抖延迟200ms
  483. }
  484. // 设置选择题图表
  485. const setEchartsArea1 = () => {
  486. // 如果已有实例且未销毁,先销毁
  487. if (myChart.value && !myChart.value.isDisposed()) {
  488. myChart.value.dispose()
  489. }
  490. if (echartsArea1.value) {
  491. myChart.value = echarts.init(echartsArea1.value)
  492. }
  493. else {
  494. myChart.value = null
  495. }
  496. if (myChart.value) {
  497. const _work =
  498. props.showData.choiceQuestionListData[props.showData.workIndex]
  499. console.log('_work', _work)
  500. // 修正版,处理xAxis.data内为图片对象的case,formatter始终只拿到src或自定义label,保证无[object Object]问题
  501. const option = {
  502. tooltip: {
  503. show: false, // 禁用鼠标移动到柱体时的内容显示
  504. },
  505. yAxis: {
  506. show: false, // 不显示最左边的y轴
  507. },
  508. xAxis: {
  509. data: [],
  510. axisLabel: {
  511. color: 'rgba(0, 0, 0, 0.9)',
  512. fontWeight: 600,
  513. fontSize: 17,
  514. lineHeight: 20,
  515. interval: 0,
  516. formatter: function (value: any, idx: number) {
  517. // 如果是字符串且格式为JSON(图片),则解析处理
  518. if (typeof value === 'string') {
  519. try {
  520. const obj = JSON.parse(value)
  521. if (obj && typeof obj === 'object' && obj.imgType && obj.src) {
  522. return '{img' + idx + '|}'
  523. }
  524. }
  525. catch (e) {
  526. // 非JSON字符串,直接返回
  527. // 如果文本文字超过8个字,换行
  528. if (typeof value === 'string') {
  529. // 判断value是否全是英文
  530. const isAllEnglish = /^[a-zA-Z0-9\s\p{P}]+$/u.test(value)
  531. let displayValue = value
  532. const maxLength = isAllEnglish ? 30 : 20
  533. const lineLength = isAllEnglish ? 16 : 8
  534. if (value.length > maxLength) {
  535. displayValue = value.substr(0, maxLength) + '...'
  536. }
  537. // 换行处理
  538. let output = ''
  539. for (let i = 0; i < displayValue.length; i += lineLength) {
  540. output += displayValue.substr(i, lineLength)
  541. if (i + lineLength < displayValue.length) {
  542. output += '\n'
  543. }
  544. }
  545. return output
  546. }
  547. return value
  548. }
  549. return value
  550. }
  551. // 兼容老格式(容错):value本身是对象,并有图片信息
  552. if (
  553. value &&
  554. typeof value === 'object' &&
  555. value.imgType &&
  556. value.src
  557. ) {
  558. return '{img' + idx + '|}'
  559. }
  560. // 其他类型直接空
  561. return ''
  562. },
  563. rich: (() => {
  564. // 动态生成所有图片的 rich 格式
  565. const richObj: any = {}
  566. _work.choiceUser.forEach((op: any, idx: number) => {
  567. if (
  568. op.option &&
  569. typeof op.option === 'object' &&
  570. op.option.imgType &&
  571. op.option.src
  572. ) {
  573. richObj['img' + idx] = {
  574. height: 40,
  575. width: 40,
  576. align: 'center',
  577. backgroundColor: {
  578. image: op.option.src,
  579. },
  580. }
  581. }
  582. })
  583. return richObj
  584. })(),
  585. },
  586. },
  587. series: [
  588. {
  589. name: '',
  590. type: 'bar',
  591. data: [],
  592. barWidth: '50%', // 柱体宽度缩小40%
  593. itemStyle: {
  594. color: 'rgba(252, 207, 0, 1)',
  595. },
  596. label: {
  597. show: true,
  598. position: 'top',
  599. color: 'rgba(116, 139, 115, 1)',
  600. fontSize: 22,
  601. fontWeight: 500,
  602. lineHeight: 24,
  603. },
  604. },
  605. ],
  606. }
  607. _work.choiceUser.forEach((i: any, idx: number) => {
  608. // 如果是图片,存src对象,否则为字符串
  609. if (
  610. i.option &&
  611. typeof i.option === 'object' &&
  612. i.option.imgType &&
  613. i.option.src
  614. ) {
  615. (option.xAxis.data as any[]).push(
  616. JSON.stringify({ imgType: i.option.imgType, src: i.option.src })
  617. ) // 仅保留相关字段
  618. }
  619. else if (typeof i.option === 'string') {
  620. (option.xAxis.data as any[]).push(i.option)
  621. }
  622. else {
  623. (option.xAxis.data as any[]).push('')
  624. }
  625. (option.series[0].data as any[]).push(i.user.length)
  626. })
  627. // console.log(option)
  628. // {
  629. // title: {
  630. // text: 'ECharts 入门示例'
  631. // },
  632. // tooltip: {},
  633. // xAxis: {
  634. // data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
  635. // },
  636. // yAxis: {},
  637. // series: [
  638. // {
  639. // name: '销量',
  640. // type: 'bar',
  641. // data: [5, 20, 36, 10, 10, 20]
  642. // }
  643. // ]
  644. // }
  645. myChart.value.setOption(option)
  646. myChart.value.off('click')
  647. myChart.value.on('click', (params: any) => {
  648. const idx = params.dataIndex
  649. const selectedOption = _work.choiceUser[idx]
  650. if (selectedOption && selectUserDialogRef.value) {
  651. // console.log(selectedOption)
  652. console.log('selectedOption', selectedOption)
  653. selectUserDialogRef.value.open(`${lang.ssSelectUser.replace('{a}', '<span>' + selectedOption.index + '</span>')}`, selectedOption)
  654. }
  655. })
  656. }
  657. }
  658. // 获取分析
  659. const getAnalysis = () => {
  660. if (!props.workId) {
  661. return
  662. }
  663. console.log('props.workId', props.workId)
  664. const params = {
  665. pid: props.workId,
  666. }
  667. axios.get('https://pbl.cocorobo.cn/api/pbl/select_pptAnalysisByPid?pid=' + params.pid).then(res => {
  668. const data = res[0]
  669. if (data.length) {
  670. aiAnalysisData.value = data
  671. }
  672. else {
  673. aiAnalysisData.value = []
  674. }
  675. }).catch(err => {
  676. console.log('get_pptAnalysis_err', err)
  677. })
  678. }
  679. // 监听选择题数据变化
  680. watch(
  681. () => props.showData,
  682. (newVal, oldVal) => {
  683. console.log('发生变化,showData')
  684. if (
  685. newVal &&
  686. newVal.choiceQuestionListData[newVal.workIndex] &&
  687. props.showData.workDetail.type === '45'
  688. ) {
  689. if (
  690. oldVal &&
  691. newVal.choiceQuestionListData[newVal.workIndex] &&
  692. oldVal.choiceQuestionListData[oldVal.workIndex]
  693. ) {
  694. if (
  695. JSON.stringify(newVal.choiceQuestionListData[newVal.workIndex]) !==
  696. JSON.stringify(oldVal.choiceQuestionListData[oldVal.workIndex])
  697. ) {
  698. setEchartsArea1()
  699. }
  700. }
  701. }
  702. else {
  703. myChart.value = null
  704. }
  705. // console.log('newVal', newVal)
  706. // if(newVal && newVal.workDetail && newVal.workDetail.id){
  707. // getAnalysis()
  708. // }
  709. // getAnalysis()
  710. },
  711. { immediate: true, deep: true }
  712. )
  713. // 监听作业变化
  714. watch(
  715. () => props.showData?.choiceQuestionListData,
  716. (newVal, oldVal) => {
  717. console.log('choiceQuestionListData变化了')
  718. if (
  719. (newVal || newVal === 0) &&
  720. props.showData.workDetail &&
  721. props.showData.workDetail.type === '45'
  722. ) {
  723. if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
  724. setEchartsArea1()
  725. }
  726. else {
  727. console.log('choiceQuestionListData没有变化')
  728. }
  729. }
  730. else {
  731. myChart.value = null
  732. }
  733. },
  734. { deep: true }
  735. )
  736. // 监听作业变化
  737. watch(
  738. () => props.showData?.workIndex,
  739. (newVal) => {
  740. if (
  741. (newVal || newVal === 0) &&
  742. props.showData.workDetail &&
  743. props.showData.workDetail.type === '45'
  744. ) {
  745. setEchartsArea1()
  746. }
  747. else {
  748. myChart.value = null
  749. }
  750. }
  751. )
  752. // 监听echartsArea1变化
  753. watch(
  754. () => echartsArea1.value,
  755. (newVal) => {
  756. if (
  757. newVal &&
  758. props.showData &&
  759. props.showData.workDetail &&
  760. props.showData.workDetail.type === '45'
  761. ) {
  762. setEchartsArea1()
  763. }
  764. else {
  765. myChart.value = null
  766. }
  767. }
  768. )
  769. // 监听页面宽度变化
  770. watch(
  771. () => props.slideWidth,
  772. (newVal) => {
  773. if (
  774. newVal &&
  775. props.showData &&
  776. props.showData.workDetail &&
  777. props.showData.workDetail.type === '45'
  778. ) {
  779. handleChartResize()
  780. }
  781. }
  782. )
  783. // 查看未提交学生
  784. const viewUnsubmittedStudents = () => {
  785. selectUserDialogRef.value.open(lang.ssUnsubmittedStudents, { user: props.showData.unsubmittedStudents.map((item: any) => item.name) })
  786. // if (props.unsubmittedStudents.length > 0) {
  787. // unsubmittedStudentsDialogRef.value.open(props.unsubmittedStudents)
  788. // }
  789. }
  790. // ai生成选择题分析 选择题
  791. const aiAnalysisRefresh45 = () => {
  792. const _work = props.showData.choiceQuestionListData[props.showData.workIndex]
  793. const msg = `# CONTEXT #
  794. 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
  795. # OBJECTIVE #
  796. 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
  797. #INPUT#
  798. 课程数据:
  799. - 课程名称:${props.courseDetail.title}
  800. - 课程学科:${props.courseDetail.name}
  801. 当前页面答题数据(选择题):【分析重点】
  802. - 选择题题目:${_work.teststitle}
  803. - 选项数据:${JSON.stringify(_work.choiceUser)}
  804. - 题目图片:${_work.timuList.lenght ? _work.timuList[0].src : ''}
  805. - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
  806. # ANALYSIS RULES #
  807. 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
  808. 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
  809. # RESPONSE #
  810. 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
  811. 1. 整体表现-1句话
  812. 2. 核心发现-1-2句,指出共性问题+典型案例
  813. 3. 改进建议-1句话,提出具体教学动作
  814. # EXAMPLES #
  815. 样例:
  816. 选择题正确率62%,核心概念“机器学习三步骤”(输入数据→训练模型→预测结果)掌握尚可,但“训练与预测区分”混淆率达38%;建议强化训练vs预测对比教学。`
  817. if (!currentAnalysis.value) {
  818. aiAnalysisData.value.push({
  819. pid: props.workId,
  820. index: props.showData.workIndex,
  821. loading: true,
  822. json: '',
  823. noEnd: true,
  824. update_at: '',
  825. create_at: '',
  826. })
  827. }
  828. else {
  829. aiAnalysisData.value.find((item: any) => {
  830. return item.pid === props.workId && item.index === props.showData.workIndex
  831. }).loading = true
  832. aiAnalysisData.value.find((item: any) => {
  833. return item.pid === props.workId && item.index === props.showData.workIndex
  834. }).json = ''
  835. }
  836. chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
  837. if (event.type === 'message') {
  838. aiAnalysisData.value.find((item: any) => {
  839. return item.pid === props.workId && item.index === props.showData.workIndex
  840. }).json = event.data
  841. aiAnalysisData.value.find((item: any) => {
  842. return item.pid === props.workId && item.index === props.showData.workIndex
  843. }).loading = false
  844. }
  845. else if (event.type === 'messageEnd') {
  846. aiAnalysisData.value.find((item: any) => {
  847. return item.pid === props.workId && item.index === props.showData.workIndex
  848. }).json = event.data
  849. aiAnalysisData.value.find((item: any) => {
  850. return item.pid === props.workId && item.index === props.showData.workIndex
  851. }).noEnd = false
  852. aiAnalysisData.value.find((item: any) => {
  853. return item.pid === props.workId && item.index === props.showData.workIndex
  854. }).update_at = new Date().toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }).replace(/\//g, '-')
  855. saveAnalysis()
  856. }
  857. }).catch(err => {
  858. console.log('err', err)
  859. })
  860. }
  861. // 问答题
  862. const aiAnalysisRefresh15 = () => {
  863. const msg = `# CONTEXT #
  864. 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
  865. # OBJECTIVE #
  866. 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
  867. #INPUT#
  868. 课程数据:
  869. - 课程名称:${props.courseDetail.title}
  870. - 课程学科:${props.courseDetail.name}
  871. 当前页面答题数据(问答题):【分析重点】
  872. - 问答题题目:${props.showData.workDetail.json.answerQ}
  873. - 回答数据:${JSON.stringify(processedWorkArray.value.map((i) => ({ user: i.name, answer: i.content.answer })))}
  874. - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
  875. # ANALYSIS RULES #
  876. 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
  877. 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
  878. # RESPONSE #
  879. 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
  880. 1. 整体表现-1句话
  881. 2. 核心发现-1-2句,指出共性问题+典型案例
  882. 3. 改进建议-1句话,提出具体教学动作
  883. # EXAMPLES #
  884. 样例:
  885. 30人中15人提交问答题(参与率50%),核心概念“同理心地图”掌握薄弱。发现学生13在智能体对话中6次答“不知道”,需单独辅导设计思维基础概念。建议课程增加POV框架实例演练,强化痛点识别能力训练。`
  886. if (!currentAnalysis.value) {
  887. aiAnalysisData.value.push({
  888. pid: props.workId,
  889. index: props.showData.workIndex,
  890. loading: true,
  891. json: '',
  892. noEnd: true,
  893. update_at: '',
  894. create_at: '',
  895. })
  896. }
  897. else {
  898. aiAnalysisData.value.find((item: any) => {
  899. return item.pid === props.workId && item.index === props.showData.workIndex
  900. }).loading = true
  901. aiAnalysisData.value.find((item: any) => {
  902. return item.pid === props.workId && item.index === props.showData.workIndex
  903. }).json = ''
  904. }
  905. chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
  906. if (event.type === 'message') {
  907. aiAnalysisData.value.find((item: any) => {
  908. return item.pid === props.workId && item.index === props.showData.workIndex
  909. }).json = event.data
  910. aiAnalysisData.value.find((item: any) => {
  911. return item.pid === props.workId && item.index === props.showData.workIndex
  912. }).loading = false
  913. }
  914. else if (event.type === 'messageEnd') {
  915. aiAnalysisData.value.find((item: any) => {
  916. return item.pid === props.workId && item.index === props.showData.workIndex
  917. }).json = event.data
  918. aiAnalysisData.value.find((item: any) => {
  919. return item.pid === props.workId && item.index === props.showData.workIndex
  920. }).noEnd = false
  921. aiAnalysisData.value.find((item: any) => {
  922. return item.pid === props.workId && item.index === props.showData.workIndex
  923. }).update_at = new Date().toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }).replace(/\//g, '-')
  924. saveAnalysis()
  925. }
  926. }).catch(err => {
  927. console.log('err', err)
  928. })
  929. }
  930. // ai应用
  931. const aiAnalysisRefresh72 = async () => {
  932. let chatMsg = ``
  933. processedWorkArray.value.forEach((i) => {
  934. i.content.forEach(j => {
  935. j.messages.forEach((a) => {
  936. chatMsg += `\n${a.sender}:
  937. ${a.content}\n`
  938. })
  939. })
  940. })
  941. // - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
  942. const msg = `# CONTEXT #
  943. 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
  944. # OBJECTIVE #
  945. 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
  946. #INPUT#
  947. 课程数据:
  948. - 课程名称:${props.courseDetail.title}
  949. - 课程学科:${props.courseDetail.name}
  950. 当前页面答题数据(问答题):【分析重点】
  951. - AI应用
  952. - 对话数据:${chatMsg}
  953. # ANALYSIS RULES #
  954. 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
  955. 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
  956. # RESPONSE #
  957. 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
  958. 1. 整体表现-1句话
  959. 2. 核心发现-1-2句,指出共性问题+典型案例
  960. 3. 改进建议-1句话,提出具体教学动作
  961. # EXAMPLES #
  962. 样例:
  963. 智能体对话显示学生对“模型训练”概念模糊,多次询问“为什么不能直接告诉机器答案”。针对概念混淆学生,补充“人类学习类比”相关解释,巩固“从数据中学习规律”核心认知。`
  964. console.log("cs",msg)
  965. if (!currentAnalysis.value) {
  966. aiAnalysisData.value.push({
  967. pid: props.workId,
  968. index: props.showData.workIndex,
  969. loading: true,
  970. json: '',
  971. noEnd: true,
  972. update_at: '',
  973. create_at: '',
  974. })
  975. }
  976. else {
  977. aiAnalysisData.value.find((item: any) => {
  978. return item.pid === props.workId && item.index === props.showData.workIndex
  979. }).loading = true
  980. aiAnalysisData.value.find((item: any) => {
  981. return item.pid === props.workId && item.index === props.showData.workIndex
  982. }).json = ''
  983. }
  984. chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
  985. if (event.type === 'message') {
  986. aiAnalysisData.value.find((item: any) => {
  987. return item.pid === props.workId && item.index === props.showData.workIndex
  988. }).json = event.data
  989. aiAnalysisData.value.find((item: any) => {
  990. return item.pid === props.workId && item.index === props.showData.workIndex
  991. }).loading = false
  992. }
  993. else if (event.type === 'messageEnd') {
  994. aiAnalysisData.value.find((item: any) => {
  995. return item.pid === props.workId && item.index === props.showData.workIndex
  996. }).json = event.data
  997. aiAnalysisData.value.find((item: any) => {
  998. return item.pid === props.workId && item.index === props.showData.workIndex
  999. }).noEnd = false
  1000. aiAnalysisData.value.find((item: any) => {
  1001. return item.pid === props.workId && item.index === props.showData.workIndex
  1002. }).update_at = new Date().toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }).replace(/\//g, '-')
  1003. saveAnalysis()
  1004. }
  1005. }).catch(err => {
  1006. console.log('err', err)
  1007. })
  1008. }
  1009. // 当前分析
  1010. const currentAnalysis = computed(() => {
  1011. return aiAnalysisData.value.find((item: any) => {
  1012. return item.pid === props.workId && item.index === props.showData.workIndex
  1013. })
  1014. })
  1015. // 保存分析
  1016. const saveAnalysis = () => {
  1017. if (!currentAnalysis.value) {
  1018. return
  1019. }
  1020. const params = [{
  1021. pid: props.workId,
  1022. idx: props.showData.workIndex,
  1023. json: currentAnalysis.value.json,
  1024. }]
  1025. axios.post('https://pbl.cocorobo.cn/api/pbl/insert_pptAnalysis', params).then(res => {
  1026. if (res == 1) {
  1027. console.log('保存成功')
  1028. }
  1029. }).catch(err => {
  1030. console.log('insert_pptAnalysis_err', err)
  1031. })
  1032. }
  1033. // 监听 props.showData.workDetail.id 变化
  1034. watch(
  1035. () => props.showData?.workDetail,
  1036. (newId, oldId) => {
  1037. if (newId && newId !== oldId) {
  1038. getAnalysis()
  1039. }
  1040. },
  1041. { immediate: true }
  1042. )
  1043. // onMounted(()=>{
  1044. // getAnalysis()
  1045. // })
  1046. // 组件卸载时清理ECharts实例
  1047. onUnmounted(() => {
  1048. // 清除定时器
  1049. if (resizeTimer) {
  1050. clearTimeout(resizeTimer)
  1051. resizeTimer = null
  1052. }
  1053. // 销毁ECharts实例
  1054. if (myChart.value && !myChart.value.isDisposed()) {
  1055. myChart.value.dispose()
  1056. myChart.value = null
  1057. }
  1058. })
  1059. </script>
  1060. <style lang="scss" scoped>
  1061. .choiceQuestionDetailDialog {
  1062. background: none;
  1063. position: relative;
  1064. width: 100%;
  1065. height: 100%;
  1066. z-index: 1;
  1067. .content {
  1068. width: 100%;
  1069. height: 100%;
  1070. position: relative;
  1071. background: #fff;
  1072. box-sizing: border-box;
  1073. padding: 40px;
  1074. overflow: auto;
  1075. .closeIcon {
  1076. position: absolute;
  1077. right: 20px;
  1078. top: 20px;
  1079. cursor: pointer;
  1080. width: 20px;
  1081. height: 20px;
  1082. img {
  1083. width: 100%;
  1084. height: 100%;
  1085. }
  1086. }
  1087. .c_t45 {
  1088. width: 100%;
  1089. min-height: 100%;
  1090. display: flex;
  1091. // align-items: center;
  1092. flex-direction: column;
  1093. height: auto;
  1094. .c_t45_title {
  1095. color: rgba(0, 0, 0, 0.9);
  1096. font-weight: 600;
  1097. font-size: 24px;
  1098. line-height: 24px;
  1099. position: relative;
  1100. width: 100%;
  1101. display: flex;
  1102. flex-direction: column;
  1103. // align-items: center;
  1104. // justify-content: center;
  1105. user-select: none;
  1106. gap: .4rem;
  1107. &>div {
  1108. max-width: calc(100%);
  1109. }
  1110. &>span {
  1111. position: absolute;
  1112. top: 20px;
  1113. cursor: pointer;
  1114. &:nth-of-type(1) {
  1115. left: 0;
  1116. }
  1117. &:nth-of-type(2) {
  1118. right: 0;
  1119. }
  1120. }
  1121. .c_t45_t_btn_noActive {
  1122. color: #CCCCCC;
  1123. }
  1124. .c_t45_msg {
  1125. display: flex;
  1126. align-items: center;
  1127. font-size: .9rem;
  1128. font-weight: 400;
  1129. gap: 1rem;
  1130. &>span {
  1131. text-decoration: underline;
  1132. cursor: pointer;
  1133. }
  1134. }
  1135. }
  1136. .c_t45_img {
  1137. max-width: 200px;
  1138. max-height: 200px;
  1139. object-fit: cover;
  1140. margin-top: 20px;
  1141. }
  1142. .c_t45_type {
  1143. font-weight: 400;
  1144. font-size: 15px;
  1145. line-height: 21px;
  1146. letter-spacing: 0.5px;
  1147. color: rgba(0, 0, 0, 1);
  1148. opacity: 0.5;
  1149. margin-top: 20px;
  1150. }
  1151. .c_t45_echarts {
  1152. width: 100%;
  1153. max-width: 100%;
  1154. flex: 1;
  1155. min-height: 400px;
  1156. display: flex;
  1157. align-items: center;
  1158. box-sizing: border-box;
  1159. &>div {
  1160. width: 100%;
  1161. height: 400px;
  1162. }
  1163. }
  1164. .cq_changeBtn {
  1165. display: flex;
  1166. align-items: center;
  1167. gap: 1.5rem;
  1168. margin: 1rem auto;
  1169. &>div {
  1170. padding: .6rem;
  1171. border-radius: .5rem;
  1172. border: solid 2px #F6C82B;
  1173. display: flex;
  1174. justify-content: center;
  1175. align-items: center;
  1176. cursor: pointer;
  1177. &>svg {
  1178. fill: #F6C82D;
  1179. width: 1rem;
  1180. height: 1rem;
  1181. }
  1182. &.cq_cb_disabled {
  1183. cursor: not-allowed !important;
  1184. border-color: #FEF8E9 !important;
  1185. }
  1186. &.cq_cb_disabled>svg {
  1187. fill: #A3A3A3 !important;
  1188. }
  1189. }
  1190. &>span {
  1191. font-weight: 500;
  1192. }
  1193. }
  1194. }
  1195. .c_t15 {
  1196. width: 100%;
  1197. min-height: 100%;
  1198. display: flex;
  1199. align-items: center;
  1200. flex-direction: column;
  1201. height: auto;
  1202. padding: 40px;
  1203. .c_t15_title {
  1204. color: rgba(0, 0, 0, 0.9);
  1205. font-weight: 600;
  1206. font-size: 24px;
  1207. line-height: 24px;
  1208. }
  1209. .c_t15_type {
  1210. font-weight: 400;
  1211. font-size: 15px;
  1212. line-height: 21px;
  1213. letter-spacing: 0.5px;
  1214. color: rgba(0, 0, 0, 1);
  1215. opacity: 0.5;
  1216. margin-top: 20px;
  1217. }
  1218. .c_t15_content {
  1219. width: 100%;
  1220. height: auto;
  1221. display: grid;
  1222. grid-template-columns: repeat(3, 1fr);
  1223. gap: 20px;
  1224. margin-top: 40px;
  1225. .c_t15_c_item {
  1226. width: 100%;
  1227. height: auto;
  1228. box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
  1229. box-sizing: border-box;
  1230. border-radius: 12px;
  1231. padding: 16px;
  1232. background: rgba(255, 255, 255, 0.6);
  1233. transition: 0.3s;
  1234. cursor: pointer;
  1235. &:hover {
  1236. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  1237. background: rgba(255, 255, 255, 0.6);
  1238. }
  1239. .c_t15_c_i_top {
  1240. display: flex;
  1241. align-items: center;
  1242. gap: 10px;
  1243. &>span {
  1244. display: block;
  1245. width: 25px;
  1246. height: 25px;
  1247. display: flex;
  1248. align-items: center;
  1249. justify-content: center;
  1250. background: rgba(252, 207, 0, 1);
  1251. border-radius: 4px;
  1252. color: rgba(255, 255, 255, 1);
  1253. font-weight: bold;
  1254. font-size: 14px;
  1255. }
  1256. &>div {
  1257. color: rgba(0, 0, 0, 0.7);
  1258. font-weight: 800;
  1259. }
  1260. }
  1261. .c_t15_c_i_bottom {
  1262. margin-top: 15px;
  1263. font-weight: 300;
  1264. font-size: 14px;
  1265. height: 40px;
  1266. max-width: 100%;
  1267. overflow: hidden;
  1268. text-overflow: ellipsis;
  1269. display: -webkit-box;
  1270. -webkit-line-clamp: 2;
  1271. -webkit-box-orient: vertical;
  1272. }
  1273. }
  1274. }
  1275. .c_t15_workDetail {
  1276. width: 100%;
  1277. height: auto;
  1278. margin-top: 40px;
  1279. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  1280. box-sizing: border-box;
  1281. padding: 16px;
  1282. border-radius: 12px;
  1283. display: flex;
  1284. flex-direction: column;
  1285. .c_t15_wd_top {
  1286. width: 100%;
  1287. display: flex;
  1288. align-items: center;
  1289. gap: 15px;
  1290. &>img {
  1291. width: 25px;
  1292. height: 25px;
  1293. cursor: pointer;
  1294. }
  1295. &>span {
  1296. display: block;
  1297. width: 30px;
  1298. height: 30px;
  1299. display: flex;
  1300. align-items: center;
  1301. justify-content: center;
  1302. background: rgba(252, 207, 0, 1);
  1303. border-radius: 4px;
  1304. color: rgba(255, 255, 255, 1);
  1305. font-weight: bold;
  1306. font-size: 16px;
  1307. }
  1308. &>div {
  1309. color: rgba(0, 0, 0, 0.7);
  1310. font-weight: 800;
  1311. font-size: 18px;
  1312. }
  1313. }
  1314. .c_t15_wd_content {
  1315. width: 100%;
  1316. margin-top: 20px;
  1317. max-height: 100%;
  1318. overflow: auto;
  1319. flex-wrap: wrap;
  1320. .c_t15_wd_c_imageList {
  1321. width: 100%;
  1322. gap: 20px;
  1323. margin-top: 20px;
  1324. &>img {
  1325. width: 100px;
  1326. height: auto;
  1327. cursor: pointer;
  1328. margin-right: 20px;
  1329. object-fit: cover;
  1330. }
  1331. }
  1332. }
  1333. }
  1334. }
  1335. .c_t72 {
  1336. width: 100%;
  1337. min-height: 100%;
  1338. display: flex;
  1339. align-items: center;
  1340. flex-direction: column;
  1341. height: auto;
  1342. padding: 40px;
  1343. .c_t72_title {
  1344. color: rgba(0, 0, 0, 0.9);
  1345. font-weight: 600;
  1346. font-size: 24px;
  1347. line-height: 24px;
  1348. }
  1349. .c_t72_type {
  1350. font-weight: 400;
  1351. font-size: 15px;
  1352. line-height: 21px;
  1353. letter-spacing: 0.5px;
  1354. color: rgba(0, 0, 0, 1);
  1355. opacity: 0.5;
  1356. margin-top: 20px;
  1357. }
  1358. .c_t72_content {
  1359. width: 100%;
  1360. height: auto;
  1361. display: grid;
  1362. grid-template-columns: repeat(4, 1fr);
  1363. gap: 20px;
  1364. margin-top: 40px;
  1365. .c_t72_c_item {
  1366. width: 100%;
  1367. height: auto;
  1368. box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
  1369. box-sizing: border-box;
  1370. border-radius: 12px;
  1371. padding: 16px;
  1372. background: rgba(255, 255, 255, 0.6);
  1373. transition: 0.3s;
  1374. cursor: pointer;
  1375. &:hover {
  1376. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  1377. background: rgba(255, 255, 255, 0.6);
  1378. }
  1379. .c_t72_c_i_top {
  1380. display: flex;
  1381. align-items: center;
  1382. gap: 10px;
  1383. &>span {
  1384. display: block;
  1385. width: 25px;
  1386. height: 25px;
  1387. display: flex;
  1388. align-items: center;
  1389. justify-content: center;
  1390. background: rgba(252, 207, 0, 1);
  1391. border-radius: 4px;
  1392. color: rgba(255, 255, 255, 1);
  1393. font-weight: bold;
  1394. font-size: 14px;
  1395. }
  1396. &>div {
  1397. color: rgba(0, 0, 0, 0.7);
  1398. font-weight: 800;
  1399. }
  1400. }
  1401. .c_t72_c_i_bottom {
  1402. margin-top: 15px;
  1403. font-weight: 300;
  1404. font-size: 14px;
  1405. // height: 40px;
  1406. max-width: 100%;
  1407. overflow: hidden;
  1408. text-overflow: ellipsis;
  1409. display: -webkit-box;
  1410. -webkit-line-clamp: 2;
  1411. -webkit-box-orient: vertical;
  1412. img {
  1413. width: 100%;
  1414. max-height: 200px;
  1415. object-fit: cover;
  1416. }
  1417. }
  1418. }
  1419. }
  1420. .c_t72_workDetail {
  1421. width: 100%;
  1422. height: auto;
  1423. margin-top: 40px;
  1424. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  1425. box-sizing: border-box;
  1426. padding: 16px;
  1427. border-radius: 12px;
  1428. display: flex;
  1429. flex-direction: column;
  1430. .c_t72_wd_top {
  1431. width: 100%;
  1432. display: flex;
  1433. align-items: center;
  1434. gap: 15px;
  1435. &>img {
  1436. width: 25px;
  1437. height: 25px;
  1438. cursor: pointer;
  1439. }
  1440. &>span {
  1441. display: block;
  1442. width: 30px;
  1443. height: 30px;
  1444. display: flex;
  1445. align-items: center;
  1446. justify-content: center;
  1447. background: rgba(252, 207, 0, 1);
  1448. border-radius: 4px;
  1449. color: rgba(255, 255, 255, 1);
  1450. font-weight: bold;
  1451. font-size: 16px;
  1452. }
  1453. &>div {
  1454. color: rgba(0, 0, 0, 0.7);
  1455. font-weight: 800;
  1456. font-size: 18px;
  1457. }
  1458. }
  1459. .c_t72_wd_content {
  1460. width: 100%;
  1461. margin-top: 20px;
  1462. max-height: 100%;
  1463. overflow: auto;
  1464. flex-wrap: wrap;
  1465. display: flex;
  1466. align-items: center;
  1467. justify-content: center;
  1468. .na_m_item {
  1469. width: 100%;
  1470. height: auto;
  1471. margin: 10px 0;
  1472. }
  1473. .na_m_i_name {
  1474. width: fit-content;
  1475. max-width: 100%;
  1476. height: auto;
  1477. box-sizing: border-box;
  1478. padding: 10px 10px;
  1479. display: flex;
  1480. align-items: center;
  1481. border-radius: 10px 10px 0 0;
  1482. background-color: #9747ff;
  1483. color: #fff;
  1484. text-overflow: ellipsis;
  1485. overflow: hidden;
  1486. white-space: nowrap;
  1487. }
  1488. .aiName {
  1489. background-color: #0560fc;
  1490. }
  1491. .na_m_i_content {
  1492. padding: 10px;
  1493. border: solid 1px #e7e7e7;
  1494. box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
  1495. border-radius: 0 0 12px 12px;
  1496. background-color: #fff;
  1497. :deep(img) {
  1498. max-width: 100%;
  1499. }
  1500. }
  1501. .messageNode {
  1502. width: 100%;
  1503. height: auto;
  1504. box-sizing: border-box;
  1505. padding: 10px 10px;
  1506. border: 0.5px solid #e7e7e7;
  1507. border-radius: 12px;
  1508. gap: 10px;
  1509. margin-top: 20px;
  1510. }
  1511. .messageNodeArea {
  1512. width: 100%;
  1513. height: auto;
  1514. }
  1515. }
  1516. }
  1517. }
  1518. .c_t73 {
  1519. width: 100%;
  1520. min-height: 100%;
  1521. display: flex;
  1522. align-items: center;
  1523. flex-direction: column;
  1524. height: auto;
  1525. padding: 40px;
  1526. .c_t73_title {
  1527. color: rgba(0, 0, 0, 0.9);
  1528. font-weight: 600;
  1529. font-size: 24px;
  1530. line-height: 24px;
  1531. }
  1532. .c_t73_type {
  1533. font-weight: 400;
  1534. font-size: 15px;
  1535. line-height: 21px;
  1536. letter-spacing: 0.5px;
  1537. color: rgba(0, 0, 0, 1);
  1538. opacity: 0.5;
  1539. margin-top: 20px;
  1540. }
  1541. .c_t73_content {
  1542. width: 100%;
  1543. height: auto;
  1544. display: grid;
  1545. grid-template-columns: repeat(4, 1fr);
  1546. gap: 20px;
  1547. margin-top: 40px;
  1548. .c_t73_c_item {
  1549. width: 100%;
  1550. height: auto;
  1551. box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
  1552. box-sizing: border-box;
  1553. border-radius: 12px;
  1554. padding: 16px;
  1555. background: rgba(255, 255, 255, 0.6);
  1556. transition: 0.3s;
  1557. cursor: pointer;
  1558. &:hover {
  1559. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  1560. background: rgba(255, 255, 255, 0.6);
  1561. }
  1562. .c_t73_c_i_top {
  1563. display: flex;
  1564. width: 100%;
  1565. align-items: center;
  1566. gap: 10px;
  1567. &>span {
  1568. display: block;
  1569. width: 25px;
  1570. height: 25px;
  1571. display: flex;
  1572. align-items: center;
  1573. justify-content: center;
  1574. background: rgba(252, 207, 0, 1);
  1575. border-radius: 4px;
  1576. color: rgba(255, 255, 255, 1);
  1577. font-weight: bold;
  1578. font-size: 14px;
  1579. }
  1580. &>div {
  1581. color: rgba(0, 0, 0, 0.7);
  1582. font-weight: 800;
  1583. }
  1584. }
  1585. .c_t73_c_i_bottom {
  1586. margin-top: 15px;
  1587. font-weight: 300;
  1588. font-size: 14px;
  1589. // height: 40px;
  1590. max-width: 100%;
  1591. overflow: hidden;
  1592. text-overflow: ellipsis;
  1593. display: -webkit-box;
  1594. -webkit-line-clamp: 2;
  1595. -webkit-box-orient: vertical;
  1596. img {
  1597. width: 100%;
  1598. max-height: 200px;
  1599. object-fit: cover;
  1600. }
  1601. }
  1602. }
  1603. }
  1604. .c_t73_workDetail {
  1605. width: 100%;
  1606. height: auto;
  1607. margin-top: 40px;
  1608. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  1609. box-sizing: border-box;
  1610. padding: 16px;
  1611. border-radius: 12px;
  1612. display: flex;
  1613. flex-direction: column;
  1614. .c_t73_wd_top {
  1615. width: 100%;
  1616. display: flex;
  1617. align-items: center;
  1618. gap: 15px;
  1619. &>img {
  1620. width: 25px;
  1621. height: 25px;
  1622. cursor: pointer;
  1623. }
  1624. &>span {
  1625. display: block;
  1626. width: 30px;
  1627. height: 30px;
  1628. display: flex;
  1629. align-items: center;
  1630. justify-content: center;
  1631. background: rgba(252, 207, 0, 1);
  1632. border-radius: 4px;
  1633. color: rgba(255, 255, 255, 1);
  1634. font-weight: bold;
  1635. font-size: 16px;
  1636. }
  1637. &>div {
  1638. color: rgba(0, 0, 0, 0.7);
  1639. font-weight: 800;
  1640. font-size: 18px;
  1641. }
  1642. }
  1643. .c_t73_wd_content {
  1644. width: 100%;
  1645. margin-top: 20px;
  1646. max-height: 100%;
  1647. overflow: auto;
  1648. flex-wrap: wrap;
  1649. display: flex;
  1650. align-items: center;
  1651. justify-content: center;
  1652. &>img {
  1653. max-width: 100%;
  1654. object-fit: cover;
  1655. }
  1656. }
  1657. }
  1658. }
  1659. }
  1660. }
  1661. .aiAnalysis {
  1662. width: 100%;
  1663. height: auto;
  1664. display: flex;
  1665. flex-direction: column;
  1666. padding: 1rem;
  1667. border: solid 1px #F6C82B;
  1668. border-left-width: 4px;
  1669. border-radius: 1rem;
  1670. gap: 1rem;
  1671. &>.ai_header {
  1672. display: flex;
  1673. align-items: center;
  1674. justify-content: space-between;
  1675. gap: 1rem;
  1676. &>div {
  1677. display: flex;
  1678. align-items: center;
  1679. gap: .5rem;
  1680. &>svg {
  1681. width: 1rem;
  1682. height: 1rem;
  1683. }
  1684. }
  1685. &>.ai_title {
  1686. color: #F7CD49;
  1687. font-weight: 500;
  1688. &>svg {
  1689. fill: #F7CD49;
  1690. width: 1.2rem;
  1691. height: 1.2rem;
  1692. }
  1693. }
  1694. &>.ai_refresh {
  1695. padding: .5rem 1rem;
  1696. border-radius: .5rem;
  1697. background: #F6C82B;
  1698. display: flex;
  1699. justify-content: center;
  1700. align-items: center;
  1701. cursor: pointer;
  1702. color: #000;
  1703. font-weight: bold;
  1704. font-size: .8rem;
  1705. gap: .5rem;
  1706. &>svg {
  1707. fill: #000;
  1708. width: .8rem;
  1709. height: .8rem;
  1710. }
  1711. &.disabled {
  1712. cursor: not-allowed !important;
  1713. background: #FEF8E9 !important;
  1714. }
  1715. }
  1716. }
  1717. &>.ai_content {
  1718. font-size: 1rem;
  1719. font-weight: 500;
  1720. }
  1721. &>.ai_updateTime {
  1722. font-size: .8rem;
  1723. font-weight: 500;
  1724. }
  1725. }
  1726. </style>