choiceQuestionDetailDialog.vue 117 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384
  1. <template>
  2. <div class="choiceQuestionDetailDialog">
  3. <div class="content" @click="clickContent(true)" :style="{
  4. width: slideWidth + 'px',
  5. height: slideHeight + 'px',
  6. }">
  7. <span v-show="false" class="closeIcon" @click.stop="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 class="c_title" v-if="props.showData.choiceQuestionListData[props.showData.workIndex]">
  14. <span>{{
  15. props.showData.choiceQuestionListData[props.showData.workIndex]
  16. .teststitle
  17. }}</span>
  18. <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
  19. <div class="switch">
  20. <Switch :value="canValue" @update:value="handleCanChange" />
  21. <span>{{ lang.ssShowResult }}</span>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="c_t45_msg" v-if="props.roleType == 1">
  26. <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
  27. v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
  28. props.unsubmittedStudents.length
  29. }}</span></div>
  30. <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
  31. lang.ssViewSubmitStatus2 }}</span>
  32. </div>
  33. <!--<span class="c_t45_t_btn" :class="{'c_t45_t_btn_noActive': props.showData.workIndex <= 0}" @click="changeWorkIndex(0)">{{ lang.ssPrevQ }}</span>-->
  34. <!--<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>-->
  35. </div>
  36. <img class="c_t45_img" :src="props.showData.choiceQuestionListData[props.showData.workIndex]
  37. .timuList[0].src
  38. " v-if="props.showData.choiceQuestionListData[props.showData.workIndex] &&
  39. props.showData.choiceQuestionListData[props.showData.workIndex]
  40. .timuList.length > 0
  41. " @click.stop="previewImageToolRef.previewImage(props.showData.choiceQuestionListData[props.showData.workIndex]
  42. .timuList[0].src)" />
  43. <!-- <span class="c_t45_type" v-if="
  44. props.showData.choiceQuestionListData[props.showData.workIndex]
  45. .type === '1'
  46. ">{{ lang.ssSingleSel }}</span>
  47. <span class="c_t45_type" v-if="
  48. props.showData.choiceQuestionListData[props.showData.workIndex]
  49. .type === '2'
  50. ">{{ lang.ssMultiOpt }}</span> -->
  51. <!-- <span class="c_t45_type">{{ lang.ssChoiceQuestion }}</span> -->
  52. <div class="c_t45_echarts" :style="{
  53. width: slideWidth - 40 + 'px',
  54. }">
  55. <div id="echartsArea1" ref="echartsArea1"></div>
  56. </div>
  57. <div class="aiAnalysis" v-if="props.workArray.length > 0 && props.roleType == 1">
  58. <div class="ai_header">
  59. <div class="ai_title">
  60. <svg viewBox="0 0 1024 1024" width="200" height="200">
  61. <path
  62. 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">
  63. </path>
  64. <path
  65. 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">
  66. </path>
  67. </svg>{{ lang.ssAnalysis }}
  68. </div>
  69. <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
  70. @click.stop="aiAnalysisRefresh45()">
  71. {{ lang.ssAIGenerate }}
  72. <svg viewBox="0 0 1024 1024" width="200" height="200">
  73. <path
  74. 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">
  75. </path>
  76. </svg>
  77. </div>
  78. </div>
  79. <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json">
  80. {{ currentAnalysis.json.text }}
  81. </div>
  82. <div class="ai_echartsData" v-if="currentAnalysis && currentAnalysis.json.keyword">
  83. {{ currentAnalysis.json.keyword }}
  84. </div>
  85. <div class="generatingContent" v-if="currentAnalysis && currentAnalysis.loading">
  86. {{ lang.ssGeneratingContent }}...</div>
  87. <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
  88. </div>
  89. </div>
  90. <div class="cq_changeBtn" v-if="props.showData.choiceQuestionListData.length > 1">
  91. <div :class="{ cq_cb_disabled: props.showData.workIndex <= 0 }" @click.stop="changeWorkIndex(0)">
  92. <svg style="transform: rotate(-90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
  93. <path
  94. 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"
  95. fill=""></path>
  96. </svg>
  97. </div>
  98. <span>{{ props.showData.workIndex + 1 }}/{{ props.showData.choiceQuestionListData.length }}</span>
  99. <div :class="{ cq_cb_disabled: props.showData.workIndex >= props.showData.choiceQuestionListData.length - 1 }"
  100. @click.stop="changeWorkIndex(1)">
  101. <svg style="transform: rotate(90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
  102. <path
  103. 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"
  104. fill=""></path>
  105. </svg>
  106. </div>
  107. </div>
  108. </div>
  109. <!-- 投票 -->
  110. <div class="c_t45" v-if="workDetail && workDetail.type === '78' && props.showData">
  111. <div class="c_t45_title">
  112. <div class="c_title" v-if="props.showData.choiceQuestionListData[props.showData.workIndex]">
  113. <span>{{
  114. props.showData.choiceQuestionListData[props.showData.workIndex]
  115. .teststitle
  116. }}</span>
  117. <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
  118. <div class="switch">
  119. <Switch :value="canValue" @update:value="handleCanChange" />
  120. <span>{{ lang.ssShowResult }}</span>
  121. </div>
  122. <div class="switch">
  123. <Switch :value="anonymousValue" @update:value="handleAnonymousChange" />
  124. <span>{{anonymousValue ? lang.ssAnonymous : lang.ssRealName}}</span>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="c_t45_msg" v-if="props.roleType == 1">
  129. <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
  130. v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
  131. props.unsubmittedStudents.length
  132. }}</span></div>
  133. <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
  134. lang.ssViewSubmitStatus2 }}</span>
  135. </div>
  136. <!--<span class="c_t45_t_btn" :class="{'c_t45_t_btn_noActive': props.showData.workIndex <= 0}" @click="changeWorkIndex(0)">{{ lang.ssPrevQ }}</span>-->
  137. <!--<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>-->
  138. </div>
  139. <img class="c_t45_img" :src="props.showData.choiceQuestionListData[props.showData.workIndex]
  140. .timuList[0].src
  141. " v-if="props.showData.choiceQuestionListData[props.showData.workIndex] &&
  142. props.showData.choiceQuestionListData[props.showData.workIndex]
  143. .timuList.length > 0
  144. " @click.stop="previewImageToolRef.previewImage(props.showData.choiceQuestionListData[props.showData.workIndex]
  145. .timuList[0].src)" />
  146. <!-- <span class="c_t45_type" v-if="
  147. props.showData.choiceQuestionListData[props.showData.workIndex]
  148. .type === '1'
  149. ">{{ lang.ssSingleSel }}</span>
  150. <span class="c_t45_type" v-if="
  151. props.showData.choiceQuestionListData[props.showData.workIndex]
  152. .type === '2'
  153. ">{{ lang.ssMultiOpt }}</span> -->
  154. <!-- <span class="c_t45_type">{{ lang.ssChoiceQuestion }}</span> -->
  155. <div class="c_t45_echarts" :style="{
  156. width: slideWidth - 40 + 'px',
  157. }">
  158. <div id="echartsArea1" ref="echartsArea1"></div>
  159. </div>
  160. <!-- v-if="props.workArray.length > 0" -->
  161. <div class="aiAnalysis" v-if="false">
  162. <div class="ai_header">
  163. <div class="ai_title">
  164. <svg viewBox="0 0 1024 1024" width="200" height="200">
  165. <path
  166. 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">
  167. </path>
  168. <path
  169. 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">
  170. </path>
  171. </svg>{{ lang.ssAnalysis }}
  172. </div>
  173. <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
  174. @click.stop="aiAnalysisRefresh78()">
  175. {{ lang.ssAIGenerate }}
  176. <svg viewBox="0 0 1024 1024" width="200" height="200">
  177. <path
  178. 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">
  179. </path>
  180. </svg>
  181. </div>
  182. </div>
  183. <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json">
  184. {{ currentAnalysis.json.text }}
  185. </div>
  186. <div class="ai_echartsData" v-if="currentAnalysis && currentAnalysis.json.keyword">
  187. {{ currentAnalysis.json.keyword }}
  188. </div>
  189. <div class="generatingContent" v-if="currentAnalysis && currentAnalysis.loading">
  190. {{ lang.ssGeneratingContent }}...</div>
  191. <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
  192. </div>
  193. </div>
  194. <div class="cq_changeBtn" v-if="props.showData.choiceQuestionListData.length > 1">
  195. <div :class="{ cq_cb_disabled: props.showData.workIndex <= 0 }" @click.stop="changeWorkIndex(0)">
  196. <svg style="transform: rotate(-90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
  197. <path
  198. 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"
  199. fill=""></path>
  200. </svg>
  201. </div>
  202. <span>{{ props.showData.workIndex + 1 }}/{{ props.showData.choiceQuestionListData.length }}</span>
  203. <div :class="{ cq_cb_disabled: props.showData.workIndex >= props.showData.choiceQuestionListData.length - 1 }"
  204. @click.stop="changeWorkIndex(1)">
  205. <svg style="transform: rotate(90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
  206. <path
  207. 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"
  208. fill=""></path>
  209. </svg>
  210. </div>
  211. </div>
  212. </div>
  213. <!-- 问答题 -->
  214. <div class="c_t15" v-if="workDetail && workDetail.type === '15' && props.showData">
  215. <div class="c_t15_title">
  216. <div class="c_title">
  217. <span>{{ workDetail.json.answerQ }}</span>
  218. <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
  219. <div class="switch">
  220. <Switch :value="canValue" @update:value="handleCanChange" />
  221. <span>{{ lang.ssShowResult }}</span>
  222. </div>
  223. <div class="switch">
  224. <Switch :value="likeValue" @update:value="handleLikeChange" />
  225. <span>{{ lang.ssLike }}</span>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. <span class="c_t15_type">{{ lang.ssQATest }}</span>
  231. <div class="c_t15_msg" v-if="props.roleType == 1">
  232. <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
  233. v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
  234. props.unsubmittedStudents.length
  235. }}</span></div>
  236. <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
  237. lang.ssViewSubmitStatus2 }}</span>
  238. </div>
  239. <div class="c_t15_content" v-show="!lookWorkData">
  240. <div class="c_t15_c_item" v-for="item in processedWorkArray" :key="item.id" @click.stop="lookWork(item.id)">
  241. <div class="c_t15_c_i_top">
  242. <span>{{ item.name.charAt(0) }}</span>
  243. <div>{{ item.name }}</div>
  244. <div class="cast_sreen_btn" @click.stop="castScreen(item)" v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
  245. <IconCastScreen />
  246. {{ lang.ssCastScreen }}
  247. </div>
  248. </div>
  249. <div class="c_t15_c_i_bottom">
  250. <span v-html="item.content.answer"></span>
  251. </div>
  252. <div class="bottom_btn" v-if="likeValue">
  253. <div class="bottom_like" :class="{'active': item.isLikes}" @click.stop="handleLikeClick(item)">
  254. <IconThumbsUp />
  255. <span>{{ item.likesCount }}</span>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. <div class="aiAnalysis" style="margin-top:1rem ;"
  261. v-if="processedWorkArray.length > 0 && lookWorkData === null && workDetail.type === '15' && props.roleType == 1"
  262. @click.stop="clickContent(false)">
  263. <div class="ai_header">
  264. <div class="ai_title">
  265. <svg viewBox="0 0 1024 1024" width="200" height="200">
  266. <path
  267. 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">
  268. </path>
  269. <path
  270. 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">
  271. </path>
  272. </svg>{{ lang.ssAnalysis }}
  273. </div>
  274. <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
  275. @click.stop="aiAnalysisRefresh15()">
  276. {{ lang.ssAIGenerate }}
  277. <svg viewBox="0 0 1024 1024" width="200" height="200">
  278. <path
  279. 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">
  280. </path>
  281. </svg>
  282. </div>
  283. </div>
  284. <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json">
  285. {{ currentAnalysis.json.text }}
  286. </div>
  287. <div class="ai_echartsData" v-if="currentAnalysis && currentAnalysis.json.keyword">
  288. <div class="title">{{ lang.ssKeyword }}:</div>
  289. <span v-for="(item, index) in currentAnalysis.json.keyword" :key="index">{{ item }}</span>
  290. <div class="btn" @click.stop="openEchatsDialog()">{{ lang.ssViewKeywordCloud }}</div>
  291. </div>
  292. <div class="generatingContent" v-if="currentAnalysis && currentAnalysis.generatingContent">{{
  293. lang.ssGeneratingContent }}...</div>
  294. <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
  295. </div>
  296. </div>
  297. <div class="c_t15_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
  298. <div class="c_t15_wd_top">
  299. <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen"/>
  300. <span>{{ lookWorkData.name.charAt(0) }}</span>
  301. <div>{{ lookWorkData.name }}</div>
  302. <div class="cast_sreen_btn" @click.stop="exitCastScreen" v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
  303. <IconCastScreen />
  304. {{ lang.ssExitCastScreen }}
  305. </div>
  306. </div>
  307. <div class="c_t15_wd_content">
  308. <span v-html="lookWorkData.content.answer"></span>
  309. <div class="c_t15_wd_c_imageList" v-if="lookWorkData.content.fileList.length > 0">
  310. <img v-for="item in lookWorkData.content.fileList" :src="item.url" :key="item.uploadTime"
  311. @click.stop="lookImage(item.url)" />
  312. </div>
  313. </div>
  314. </div>
  315. </div>
  316. <!-- 拍照 -->
  317. <div class="c_t15" v-if="workDetail && workDetail.type === '79' && props.showData">
  318. <div class="c_t15_title">
  319. <div class="c_title">
  320. <span>{{ workDetail.json.answerQ }}</span>
  321. <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
  322. <div class="switch">
  323. <Switch :value="canValue" @update:value="handleCanChange" />
  324. <span>{{ lang.ssShowResult }}</span>
  325. </div>
  326. <div class="switch">
  327. <Switch :value="likeValue" @update:value="handleLikeChange" />
  328. <span>{{ lang.ssLike }}</span>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. <span class="c_t15_type">{{ lang.ssPhoto }}</span>
  334. <div class="c_t15_msg" v-if="props.roleType == 1">
  335. <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
  336. v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
  337. props.unsubmittedStudents.length
  338. }}</span></div>
  339. <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
  340. lang.ssViewSubmitStatus2 }}</span>
  341. </div>
  342. <div class="c_t15_content" v-show="!lookWorkData">
  343. <div class="c_t15_c_item" v-for="item in processedWorkArray" :key="item.id"
  344. @click.stop="item.content && item.content.fileList.length > 0 ? lookWork(item.id) : ''">
  345. <div class="c_t15_c_i_top">
  346. <span>{{ item.name.charAt(0) }}</span>
  347. <div>{{ item.name }}</div>
  348. <div class="cast_sreen_btn" @click.stop="castScreen(item)" v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
  349. <IconCastScreen />
  350. {{ lang.ssCastScreen }}
  351. </div>
  352. </div>
  353. <div class="c_t73_c_i_bottom" v-if="item.content && item.content.fileList.length > 0">
  354. <img :src="item.content.fileList[0].url" />
  355. </div>
  356. <div class="c_t73_c_i_bottom" v-else>
  357. <span>{{ lang.ssNoPhoto }}</span>
  358. </div>
  359. <div class="bottom_btn" v-if="likeValue">
  360. <div class="bottom_like" :class="{'active': item.isLikes}" @click.stop="handleLikeClick(item)">
  361. <IconThumbsUp />
  362. <span>{{ item.likesCount }}</span>
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. <div class="c_t79_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
  368. <div class="c_t79_wd_top">
  369. <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen"/>
  370. <span>{{ lookWorkData.name.charAt(0) }}</span>
  371. <div>{{ lookWorkData.name }}</div>
  372. <div class="cast_sreen_btn" @click.stop="exitCastScreen" v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
  373. <IconCastScreen />
  374. {{ lang.ssExitCastScreen }}
  375. </div>
  376. </div>
  377. <div class="c_t79_wd_content">
  378. <img :src="lookWorkData.content.fileList[lookWorkIndex].url"
  379. @click.stop="lookImage(lookWorkData.content.fileList[lookWorkIndex].url)" />
  380. </div>
  381. <!-- <div class="nextAndUpBtn" v-if="lookWorkData.content.fileList.length>1">
  382. <span :class="{no_active:lookWorkIndex==0}" @click="changelookWorkIndex(0)">{{ lang.ssPrevP }}</span>
  383. <span :class="{no_active:lookWorkData.content.fileList.length-1<=lookWorkIndex}" @click="changelookWorkIndex(1)">{{ lang.ssNextP }}</span>
  384. </div> -->
  385. <div class="cq_changeBtn" v-if="lookWorkData.content.fileList.length > 1">
  386. <div :class="{ cq_cb_disabled: lookWorkIndex <= 0 }" @click.stop="changelookWorkIndex(0)">
  387. <svg style="transform: rotate(-90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
  388. <path
  389. 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"
  390. fill=""></path>
  391. </svg>
  392. </div>
  393. <span>{{ lookWorkIndex + 1 }}/{{ lookWorkData.content.fileList.length }}</span>
  394. <div :class="{ cq_cb_disabled: lookWorkIndex >= lookWorkData.content.fileList.length - 1 }"
  395. @click.stop="changelookWorkIndex(1)">
  396. <svg style="transform: rotate(90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
  397. <path
  398. 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"
  399. fill=""></path>
  400. </svg>
  401. </div>
  402. </div>
  403. </div>
  404. </div>
  405. <!-- AI应用 -->
  406. <div class="c_t72" v-if="props.showData && props.showData.toolType === 72">
  407. <div class="c_t72_title">
  408. <div class="c_title">
  409. <span>{{ lang.ssAiApp }}</span>
  410. <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
  411. <div class="switch">
  412. <Switch :value="canValue" @update:value="handleCanChange" />
  413. <span>{{ lang.ssShowResult }}</span>
  414. </div>
  415. <div class="switch">
  416. <Switch :value="likeValue" @update:value="handleLikeChange" />
  417. <span>{{ lang.ssLike }}</span>
  418. </div>
  419. </div>
  420. </div>
  421. </div>
  422. <span class="c_t72_type">{{ lang.ssAiApp }}</span>
  423. <div class="c_t72_msg" v-if="props.roleType == 1">
  424. <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
  425. v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
  426. props.unsubmittedStudents.length
  427. }}</span></div>
  428. <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
  429. lang.ssViewSubmitStatus2 }}</span>
  430. </div>
  431. <div class="c_t72_content" v-show="!lookWorkData">
  432. <div class="c_t72_c_item" v-for="item in processedWorkArray" :key="item.id" @click.stop="lookWork(item.id)">
  433. <div class="c_t72_c_i_top">
  434. <span>{{ item.name.charAt(0) }}</span>
  435. <div>{{ item.name }}</div>
  436. <div class="cast_sreen_btn" @click.stop="castScreen(item)" v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
  437. <IconCastScreen />
  438. {{ lang.ssCastScreen }}
  439. </div>
  440. </div>
  441. <div class="bottom_btn" v-if="likeValue">
  442. <div class="bottom_like" :class="{'active': item.isLikes}" @click.stop="handleLikeClick(item)">
  443. <IconThumbsUp />
  444. <span>{{ item.likesCount }}</span>
  445. </div>
  446. </div>
  447. </div>
  448. </div>
  449. <div class="aiAnalysis" style="margin-top:1rem ;"
  450. v-if="processedWorkArray.length > 0 && lookWorkData === null && props.showData.toolType === 72 && props.roleType == 1"
  451. @click.stop="clickContent(false)">
  452. <div class="ai_header">
  453. <div class="ai_title">
  454. <svg viewBox="0 0 1024 1024" width="200" height="200">
  455. <path
  456. 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">
  457. </path>
  458. <path
  459. 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">
  460. </path>
  461. </svg>{{ lang.ssAnalysis }}
  462. </div>
  463. <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
  464. @click.stop="aiAnalysisRefresh72()">
  465. {{ lang.ssAIGenerate }}
  466. <svg viewBox="0 0 1024 1024" width="200" height="200">
  467. <path
  468. 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">
  469. </path>
  470. </svg>
  471. </div>
  472. </div>
  473. <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json" v-html="currentAnalysis.json.text">
  474. </div>
  475. <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
  476. </div>
  477. </div>
  478. <div class="c_t72_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
  479. <div class="c_t72_wd_top">
  480. <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen"/>
  481. <span>{{ lookWorkData.name.charAt(0) }}</span>
  482. <div>{{ lookWorkData.name }}</div>
  483. <div class="cast_sreen_btn" @click.stop="exitCastScreen" v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
  484. <IconCastScreen />
  485. {{ lang.ssExitCastScreen }}
  486. </div>
  487. </div>
  488. <div class="c_t72_wd_content">
  489. <template v-for="(item, index) in lookWorkData.content" :key="item.id">
  490. <div class="messageNodeArea" v-if="item.messages || item.imageUrls">
  491. <div class="messageNode">
  492. <div class="mn_title">{{ lang.ssNodeTitle.replace(/\*/g, String(index + 1)) }}</div>
  493. <div class="mn_content">
  494. <template v-for="(item2, index2) in item.messages" :key="`${index}-${index2}`">
  495. <div>
  496. <div class="na_m_item" v-if="item2.role == 'user' && item2.content">
  497. <div class="na_m_i_name">
  498. {{ item2.sender }}
  499. </div>
  500. <div class="na_m_i_content" v-html="item2.content"></div>
  501. </div>
  502. <div class="na_m_item" v-if="item2.role == 'assistant' && item2.content">
  503. <div class="na_m_i_name aiName">
  504. {{ item2.sender }}
  505. </div>
  506. <div class="na_m_i_content" v-html="item2.content"></div>
  507. </div>
  508. </div>
  509. </template>
  510. <template v-if="item.imageUrls" v-for="(item3, index3) in item.imageUrls"
  511. :key="`${index}-${index3}`">
  512. <div class="na_m_item">
  513. <div class="na_m_i_name">
  514. {{ item.type }}
  515. </div>
  516. <div class="na_m_i_content">
  517. <img @click.stop="lookImage(item3)" style="height: 100px;width: auto;cursor: pointer;"
  518. :src="item3" />
  519. </div>
  520. </div>
  521. </template>
  522. </div>
  523. </div>
  524. </div>
  525. </template>
  526. </div>
  527. </div>
  528. </div>
  529. <!-- H5页面 -->
  530. <div class="c_t73" v-if="props.showData && props.showData.toolType === 73">
  531. <div class="c_t73_title">
  532. <div class="c_title">
  533. <span>{{ lang.ssPageImage }}</span>
  534. <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
  535. <div class="switch">
  536. <Switch :value="canValue" @update:value="handleCanChange" />
  537. <span>{{ lang.ssShowResult }}</span>
  538. </div>
  539. <div class="switch">
  540. <Switch :value="likeValue" @update:value="handleLikeChange" />
  541. <span>{{ lang.ssLike }}</span>
  542. </div>
  543. </div>
  544. </div>
  545. </div>
  546. <span class="c_t73_type">{{ lang.ssHPage }}</span>
  547. <div class="c_t73_msg" v-if="props.roleType == 1">
  548. <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
  549. v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
  550. props.unsubmittedStudents.length
  551. }}</span></div>
  552. <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
  553. lang.ssViewSubmitStatus2 }}</span>
  554. </div>
  555. <div class="c_t73_content" v-show="!lookWorkData">
  556. <div class="c_t73_c_item" v-for="item in processedWorkArray" :key="item.id" @click.stop="lookWork(item.id)">
  557. <div class="c_t73_c_i_top">
  558. <span>{{ item.name.charAt(0) }}</span>
  559. <div>{{ item.name }}</div>
  560. <div class="cast_sreen_btn" @click.stop="castScreen(item)" v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
  561. <IconCastScreen />
  562. {{ lang.ssCastScreen }}
  563. </div>
  564. </div>
  565. <div class="c_t73_c_i_bottom">
  566. <img :src="item.content" />
  567. </div>
  568. <div class="bottom_btn" v-if="likeValue">
  569. <div class="bottom_like" :class="{'active': item.isLikes}" @click.stop="handleLikeClick(item)">
  570. <IconThumbsUp />
  571. <span>{{ item.likesCount }}</span>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. <div class="c_t73_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
  577. <div class="c_t73_wd_top">
  578. <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen"/>
  579. <span>{{ lookWorkData.name.charAt(0) }}</span>
  580. <div>{{ lookWorkData.name }}</div>
  581. <div class="cast_sreen_btn" @click.stop="exitCastScreen" v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
  582. <IconCastScreen />
  583. {{ lang.ssExitCastScreen }}
  584. </div>
  585. </div>
  586. <div class="c_t73_wd_content">
  587. <img :src="lookWorkData.content" />
  588. </div>
  589. </div>
  590. </div>
  591. </div>
  592. <previewImageTool ref="previewImageToolRef" />
  593. <selectUserDialog ref="selectUserDialogRef" />
  594. <echartsDialog ref="echartsDialogRef" />
  595. </div>
  596. </template>
  597. <script setup lang="ts">
  598. import { computed, ref, watch, onUnmounted, nextTick, onMounted } from 'vue'
  599. import * as echarts from 'echarts'
  600. import previewImageTool from '../../components/tool/previewImageTool.vue'
  601. import MarkdownIt from 'markdown-it'
  602. import useImport from '@/hooks/useImport'
  603. import { lang } from '@/main'
  604. import selectUserDialog from './selectUserDialog.vue'
  605. import echartsDialog from './echartsDialog.vue'
  606. import { chat_stream, chat_no_stream } from '@/tools/aiChat'
  607. import axios from '@/services/config'
  608. import Switch from '@/components/Switch.vue'
  609. import { likeWork } from '@/services/course'
  610. const props = defineProps<{
  611. visible: number[];
  612. workIndex: number;
  613. slideWidth: number;
  614. slideHeight: number;
  615. slideIndex: number;
  616. showData: any;
  617. workArray: any[];
  618. unsubmittedStudents: any[];
  619. courseDetail: any;
  620. userId: string;
  621. workId: string;
  622. cid: string;
  623. workUrl: string;
  624. roleType: number;
  625. resultArray: { [key: string]: any };
  626. isCreator: boolean;
  627. isFollowModeActive: boolean;
  628. courseid: string;
  629. }>()
  630. const emit = defineEmits<{
  631. (e: 'update:visible', v: number[]): void;
  632. (e: 'changeWorkIndex', v: number): void;
  633. (e: 'setIsResultArray', v: boolean, key: string): void;
  634. (e: 'successLike'): void;
  635. (e: 'sendMessage', v: any): void;
  636. }>()
  637. const visible = computed({
  638. get: () => props.visible,
  639. set: (v: number[]) => emit('update:visible', v),
  640. })
  641. const workDetail = computed(() => {
  642. if (props.showData) {
  643. return props.showData.workDetail
  644. }
  645. return null
  646. })
  647. const canValue = ref(props.resultArray?.can ?? false)
  648. watch(() => props.resultArray?.can, (newVal) => {
  649. canValue.value = newVal
  650. })
  651. const likeValue = ref(props.resultArray?.like ?? false)
  652. watch(() => props.resultArray?.like, (newVal) => {
  653. likeValue.value = newVal
  654. })
  655. const anonymousValue = ref(props.resultArray?.anonymous ?? false)
  656. watch(() => props.resultArray?.anonymous, (newVal) => {
  657. anonymousValue.value = newVal
  658. })
  659. const handleCanChange = (value: boolean) => {
  660. console.log(value)
  661. console.log(props.resultArray)
  662. emit('setIsResultArray', value, 'can')
  663. }
  664. const handleLikeChange = (value: boolean) => {
  665. if (value && !canValue.value) {
  666. emit('setIsResultArray', true, 'can')
  667. }
  668. console.log(value)
  669. console.log(props.resultArray)
  670. emit('setIsResultArray', value, 'like')
  671. }
  672. const handleAnonymousChange = (value: boolean) => {
  673. console.log(value)
  674. console.log(props.resultArray)
  675. emit('setIsResultArray', value, 'anonymous')
  676. }
  677. import _ from 'lodash'
  678. import type { workerData } from 'worker_threads'
  679. const handleLikeClick = _.debounce((item: any) => {
  680. likeWork({
  681. wid: item.id,
  682. lid: props.userId,
  683. t: 1,
  684. c: ''
  685. })
  686. emit('successLike')
  687. }, 300)
  688. // 预览图片组件
  689. const previewImageToolRef = ref<any>(null)
  690. // 选择用户组件
  691. const selectUserDialogRef = ref<any>(null)
  692. // 词云图组件
  693. const echartsDialogRef = ref<any>(null)
  694. // ai分析数据
  695. const aiAnalysisData = ref<Array<any>>([])
  696. const md = new MarkdownIt({
  697. html: true,
  698. })
  699. const { getFile } = useImport()
  700. // 判断是否是 URL 链接
  701. const isUrl = (str: string): boolean => {
  702. try {
  703. const url = new URL(str)
  704. return (url.protocol === 'http:' || url.protocol === 'https:') && str.includes('json')
  705. }
  706. catch {
  707. return false
  708. }
  709. }
  710. // 从链接获取文件内容
  711. const loadContentFromUrl = async (url: string): Promise<string> => {
  712. try {
  713. const fileData = await getFile(url)
  714. if (fileData && fileData.data) {
  715. // 将 ArrayBuffer 转为字符串
  716. const uint8Array = new Uint8Array(fileData.data)
  717. const jsonStr = new TextDecoder('utf-8').decode(uint8Array)
  718. return jsonStr
  719. }
  720. return ''
  721. }
  722. catch (error) {
  723. console.error('获取文件内容失败:', error)
  724. return ''
  725. }
  726. }
  727. // 处理单个作业内容
  728. const processWorkContent = async (content: string, toolType: number): Promise<any> => {
  729. let contentToParse = content
  730. // 如果是链接,先获取文件内容
  731. if (isUrl(content)) {
  732. contentToParse = await loadContentFromUrl(content)
  733. }
  734. if (!contentToParse) {
  735. return null
  736. }
  737. try {
  738. if ([45, 15, 78, 79].includes(toolType)) {
  739. return JSON.parse(decodeURIComponent(contentToParse))
  740. }
  741. else if (toolType === 72) {
  742. const parsed = JSON.parse(contentToParse)
  743. if (Array.isArray(parsed)) {
  744. parsed.forEach((item: any) => {
  745. if (item.messages && item.messages.length) {
  746. item.messages.forEach((item2: any) => {
  747. // 如果已经包含html标签则不再渲染
  748. if (
  749. !/^(\s*<[^>]+>.*<\/[^>]+>\s*|<[^>]+\/>\s*)$/s.test(
  750. item2.content.trim()
  751. )
  752. ) {
  753. item2.content = item2.content.replace(/&lt;/g, '<').replace(/&quot;/g, '"').replace(/&gt;/g, '>')
  754. item2.content = md.render(item2.content)
  755. }
  756. })
  757. }
  758. })
  759. }
  760. return parsed
  761. }
  762. return contentToParse
  763. }
  764. catch (error) {
  765. console.error('解析内容失败:', error)
  766. return null
  767. }
  768. }
  769. const processedWorkArray = ref<any[]>([])
  770. // 监听 workArray 和 showData 变化
  771. watch(
  772. () => [props.workArray, props.showData?.toolType],
  773. async () => {
  774. if (props.workArray && props.showData) {
  775. const _workArray = JSON.parse(JSON.stringify(props.workArray))
  776. // 处理每个作业内容
  777. for (const i of _workArray) {
  778. if (i.content) {
  779. const processedContent = await processWorkContent(i.content, props.showData.toolType)
  780. if (processedContent !== null) {
  781. i.content = processedContent
  782. }
  783. }
  784. }
  785. processedWorkArray.value = _workArray
  786. }
  787. else {
  788. processedWorkArray.value = []
  789. }
  790. },
  791. { immediate: true, deep: true }
  792. )
  793. // 关闭对应的作业详细页面
  794. const closeSlideIndex = () => {
  795. visible.value = visible.value.filter((v) => v !== props.slideIndex)
  796. }
  797. // 切换题目
  798. const changeWorkIndex = (type: number) => {
  799. emit('changeWorkIndex', type)
  800. // console.log(props.workIndex, props.showData.choiceQuestionListData.length)
  801. // if (type === 0 && props.workIndex > 0) {
  802. // emit('changeWorkIndex', 0)
  803. // }
  804. // else if (type === 1 && props.workIndex < props.showData.choiceQuestionListData.length) {
  805. // emit('changeWorkIndex', props.workIndex + 1)
  806. // }
  807. }
  808. // 选择题图表div
  809. const echartsArea1 = ref<any>(null)
  810. // 查看的作业详细id
  811. const lookWorkDetail = ref<string>('')
  812. // 查看作业详细的数据
  813. const lookWorkData = computed(() => {
  814. let _result = null
  815. if (lookWorkDetail.value && processedWorkArray.value.length > 0) {
  816. const _workFind = processedWorkArray.value.find(
  817. (i: any) => i.id === lookWorkDetail.value
  818. )
  819. if (_workFind) {
  820. _result = _workFind
  821. }
  822. }
  823. return _result
  824. })
  825. // 查看图片
  826. const lookImage = (url: string) => {
  827. if (previewImageToolRef.value) {
  828. previewImageToolRef.value.previewImage(url)
  829. }
  830. }
  831. const lookWorkIndex = ref<number>(0)
  832. // 查看作业
  833. const lookWork = (id: string) => {
  834. lookWorkIndex.value = 0
  835. lookWorkDetail.value = id
  836. if (isCastScreen.value && !id) {
  837. emit('sendMessage', {
  838. type: 'exit_cast_screen',
  839. courseid: props.courseid,
  840. })
  841. isCastScreen.value = false
  842. }
  843. }
  844. const isCastScreen = ref<boolean>(false)
  845. // 投屏
  846. const castScreen = (item: any) => {
  847. lookWorkIndex.value = 0
  848. lookWorkDetail.value = item.id
  849. isCastScreen.value = true
  850. emit('sendMessage', {
  851. type: 'cast_screen',
  852. courseid: props.courseid,
  853. workerData: item
  854. })
  855. console.log(item)
  856. }
  857. // 退出投屏
  858. const exitCastScreen = () => {
  859. if (props.roleType != 1) {
  860. isCastScreen.value = false
  861. }
  862. lookWork('')
  863. }
  864. // 暴露给父级(Student/index.vue)用 ref 调用
  865. defineExpose({ castScreen, exitCastScreen })
  866. // 切换查看作业图片
  867. const changelookWorkIndex = (type: number) => {
  868. if (type === 0 && lookWorkIndex.value > 0) {
  869. lookWorkIndex.value = lookWorkIndex.value - 1
  870. }
  871. else if (type === 1 && lookWorkIndex.value < lookWorkData.value.content.fileList.length - 1) {
  872. lookWorkIndex.value = lookWorkIndex.value + 1
  873. }
  874. }
  875. // 选择题图表实例
  876. const myChart = ref<any>(null)
  877. // resize防抖定时器
  878. let resizeTimer: ReturnType<typeof setTimeout> | null = null
  879. // 处理ECharts resize
  880. const handleChartResize = () => {
  881. // 清除之前的定时器
  882. if (resizeTimer) {
  883. clearTimeout(resizeTimer)
  884. }
  885. resizeTimer = setTimeout(() => {
  886. nextTick(() => {
  887. if (
  888. myChart.value &&
  889. typeof myChart.value.resize === 'function' &&
  890. !myChart.value.isDisposed()
  891. ) {
  892. try {
  893. myChart.value.resize()
  894. }
  895. catch (e) {
  896. // console.error('myChart resize error:', e)
  897. // 如果resize失败,重新初始化图表
  898. if (
  899. props.showData &&
  900. props.showData.workDetail &&
  901. (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
  902. ) {
  903. setEchartsArea1()
  904. }
  905. }
  906. }
  907. })
  908. }, 200) // 防抖延迟200ms
  909. }
  910. // 设置选择题图表
  911. const setEchartsArea1 = () => {
  912. // 如果已有实例且未销毁,先销毁
  913. if (myChart.value && !myChart.value.isDisposed()) {
  914. myChart.value.dispose()
  915. }
  916. if (echartsArea1.value) {
  917. myChart.value = echarts.init(echartsArea1.value)
  918. }
  919. else {
  920. myChart.value = null
  921. }
  922. if (myChart.value) {
  923. const _work =
  924. props.showData.choiceQuestionListData[props.showData.workIndex]
  925. console.log('_work', _work)
  926. // 修正版,处理xAxis.data内为图片对象的case,formatter始终只拿到src或自定义label,保证无[object Object]问题
  927. const option = {
  928. tooltip: {
  929. show: false, // 禁用鼠标移动到柱体时的内容显示
  930. },
  931. yAxis: {
  932. show: false, // 不显示最左边的y轴
  933. },
  934. xAxis: {
  935. data: [],
  936. axisLabel: {
  937. color: 'rgba(0, 0, 0, 0.9)',
  938. fontWeight: 600,
  939. fontSize: 17,
  940. lineHeight: 20,
  941. interval: 0,
  942. formatter: function(value: any, idx: number) {
  943. // 如果是字符串且格式为JSON(图片),则解析处理
  944. if (typeof value === 'string') {
  945. try {
  946. const obj = JSON.parse(value)
  947. if (obj && typeof obj === 'object' && obj.imgType && obj.src) {
  948. return '{img' + idx + '|}'
  949. }
  950. }
  951. catch (e) {
  952. // 非JSON字符串,直接返回
  953. // 如果文本文字超过8个字,换行
  954. if (typeof value === 'string') {
  955. // 判断value是否全是英文
  956. const isAllEnglish = /^[a-zA-Z0-9\s\p{P}]+$/u.test(value)
  957. let displayValue = value
  958. const maxLength = isAllEnglish ? 30 : 20
  959. const lineLength = isAllEnglish ? 16 : 8
  960. if (value.length > maxLength) {
  961. displayValue = value.substr(0, maxLength) + '...'
  962. }
  963. // 换行处理
  964. let output = ''
  965. for (let i = 0; i < displayValue.length; i += lineLength) {
  966. output += displayValue.substr(i, lineLength)
  967. if (i + lineLength < displayValue.length) {
  968. output += '\n'
  969. }
  970. }
  971. return output
  972. }
  973. return value
  974. }
  975. return value
  976. }
  977. // 兼容老格式(容错):value本身是对象,并有图片信息
  978. if (
  979. value &&
  980. typeof value === 'object' &&
  981. value.imgType &&
  982. value.src
  983. ) {
  984. return '{img' + idx + '|}'
  985. }
  986. // 其他类型直接空
  987. return ''
  988. },
  989. rich: (() => {
  990. // 动态生成所有图片的 rich 格式
  991. const richObj: any = {}
  992. _work.choiceUser.forEach((op: any, idx: number) => {
  993. if (
  994. op.option &&
  995. typeof op.option === 'object' &&
  996. op.option.imgType &&
  997. op.option.src
  998. ) {
  999. richObj['img' + idx] = {
  1000. height: 40,
  1001. width: 40,
  1002. align: 'center',
  1003. backgroundColor: {
  1004. image: op.option.src,
  1005. },
  1006. }
  1007. }
  1008. })
  1009. return richObj
  1010. })(),
  1011. },
  1012. },
  1013. series: [
  1014. {
  1015. name: '',
  1016. type: 'bar',
  1017. data: [],
  1018. barMaxWidth: 80, // 柱体最宽80px,数量多则自适应
  1019. itemStyle: {
  1020. color: 'rgba(252, 207, 0, 1)',
  1021. },
  1022. label: {
  1023. show: true,
  1024. position: 'top',
  1025. color: 'rgba(116, 139, 115, 1)',
  1026. fontSize: 22,
  1027. fontWeight: 500,
  1028. lineHeight: 24,
  1029. },
  1030. },
  1031. ],
  1032. }
  1033. _work.choiceUser.forEach((i: any, idx: number) => {
  1034. // 如果是图片,存src对象,否则为字符串
  1035. if (
  1036. i.option &&
  1037. typeof i.option === 'object' &&
  1038. i.option.imgType &&
  1039. i.option.src
  1040. ) {
  1041. (option.xAxis.data as any[]).push(
  1042. JSON.stringify({ imgType: i.option.imgType, src: i.option.src })
  1043. ) // 仅保留相关字段
  1044. }
  1045. else if (typeof i.option === 'string') {
  1046. (option.xAxis.data as any[]).push(i.option)
  1047. }
  1048. else {
  1049. (option.xAxis.data as any[]).push('')
  1050. }
  1051. (option.series[0].data as any[]).push(i.user.length)
  1052. })
  1053. // console.log(option)
  1054. // {
  1055. // title: {
  1056. // text: 'ECharts 入门示例'
  1057. // },
  1058. // tooltip: {},
  1059. // xAxis: {
  1060. // data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
  1061. // },
  1062. // yAxis: {},
  1063. // series: [
  1064. // {
  1065. // name: '销量',
  1066. // type: 'bar',
  1067. // data: [5, 20, 36, 10, 10, 20]
  1068. // }
  1069. // ]
  1070. // }
  1071. myChart.value.setOption(option)
  1072. myChart.value.off('click')
  1073. myChart.value.on('click', (params: any) => {
  1074. const idx = params.dataIndex
  1075. const selectedOption = _work.choiceUser[idx]
  1076. if (selectedOption && selectUserDialogRef.value) {
  1077. // console.log(selectedOption)
  1078. console.log('selectedOption', selectedOption)
  1079. const selectedOption2 = {...selectedOption}
  1080. if (anonymousValue.value) {
  1081. selectedOption2.user = selectedOption2.user.map((item: any, index: number) => lang.ssAnonymousUser + (index + 1))
  1082. }
  1083. selectUserDialogRef.value.open(`${lang.ssSelectUser.replace('{a}', '<span>' + selectedOption2.index + '</span>')}`, selectedOption2)
  1084. }
  1085. })
  1086. }
  1087. }
  1088. // 获取分析
  1089. const getAnalysis = () => {
  1090. if (!props.workId) {
  1091. return
  1092. }
  1093. console.log('props.workId', props.workId)
  1094. const params = {
  1095. pid: props.workId + (props.cid ? ',' + props.cid : ''),
  1096. }
  1097. axios.get('https://pbl.cocorobo.cn/api/pbl/select_pptAnalysisByPid?pid=' + params.pid).then(res => {
  1098. const data = res[0]
  1099. if (data.length) {
  1100. data.forEach((item: any) => {
  1101. try {
  1102. item.json = JSON.parse(item.json)
  1103. }
  1104. catch (error) {
  1105. item.json = { text: item.json, echartsData: '' }
  1106. }
  1107. })
  1108. aiAnalysisData.value = data
  1109. }
  1110. else {
  1111. aiAnalysisData.value = []
  1112. }
  1113. }).catch(err => {
  1114. console.log('get_pptAnalysis_err', err)
  1115. })
  1116. }
  1117. // 监听选择题数据变化
  1118. watch(
  1119. () => props.showData,
  1120. (newVal, oldVal) => {
  1121. console.log('发生变化,showData')
  1122. if (
  1123. newVal &&
  1124. newVal.choiceQuestionListData[newVal.workIndex] &&
  1125. (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
  1126. ) {
  1127. if (
  1128. oldVal &&
  1129. newVal.choiceQuestionListData[newVal.workIndex] &&
  1130. oldVal.choiceQuestionListData[oldVal.workIndex]
  1131. ) {
  1132. if (
  1133. JSON.stringify(newVal.choiceQuestionListData[newVal.workIndex]) !==
  1134. JSON.stringify(oldVal.choiceQuestionListData[oldVal.workIndex])
  1135. ) {
  1136. setEchartsArea1()
  1137. }
  1138. }
  1139. }
  1140. else {
  1141. myChart.value = null
  1142. }
  1143. // console.log('newVal', newVal)
  1144. // if(newVal && newVal.workDetail && newVal.workDetail.id){
  1145. // getAnalysis()
  1146. // }
  1147. // getAnalysis()
  1148. },
  1149. { immediate: true, deep: true }
  1150. )
  1151. // 监听作业变化
  1152. watch(
  1153. () => props.showData?.choiceQuestionListData,
  1154. (newVal, oldVal) => {
  1155. console.log('choiceQuestionListData变化了')
  1156. if (
  1157. (newVal || newVal === 0) &&
  1158. props.showData.workDetail &&
  1159. (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
  1160. ) {
  1161. if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
  1162. setEchartsArea1()
  1163. }
  1164. else {
  1165. console.log('choiceQuestionListData没有变化')
  1166. }
  1167. }
  1168. else {
  1169. myChart.value = null
  1170. }
  1171. },
  1172. { deep: true }
  1173. )
  1174. // 监听作业变化
  1175. watch(
  1176. () => props.showData?.workIndex,
  1177. (newVal) => {
  1178. if (
  1179. (newVal || newVal === 0) &&
  1180. props.showData.workDetail &&
  1181. (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
  1182. ) {
  1183. setEchartsArea1()
  1184. }
  1185. else {
  1186. myChart.value = null
  1187. }
  1188. }
  1189. )
  1190. // 监听echartsArea1变化
  1191. watch(
  1192. () => echartsArea1.value,
  1193. (newVal) => {
  1194. if (
  1195. newVal &&
  1196. props.showData &&
  1197. props.showData.workDetail &&
  1198. (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
  1199. ) {
  1200. setEchartsArea1()
  1201. }
  1202. else {
  1203. myChart.value = null
  1204. }
  1205. }
  1206. )
  1207. // 监听页面宽度变化
  1208. watch(
  1209. () => props.slideWidth,
  1210. (newVal) => {
  1211. if (
  1212. newVal &&
  1213. props.showData &&
  1214. props.showData.workDetail &&
  1215. (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
  1216. ) {
  1217. handleChartResize()
  1218. }
  1219. }
  1220. )
  1221. // 查看未提交学生
  1222. const viewUnsubmittedStudents = () => {
  1223. selectUserDialogRef.value.open(lang.ssSubmitStatus, { user: props.unsubmittedStudents.map((item: any) => item.name), notFiledUser: props.unsubmittedStudents.map((item: any) => item.name), isSubmitUser: props.workArray.map((item: any) => item.name) })
  1224. // if (props.unsubmittedStudents.length > 0) {
  1225. // unsubmittedStudentsDialogRef.value.open(props.unsubmittedStudents)
  1226. // }
  1227. }
  1228. // ai生成选择题分析 选择题
  1229. const aiAnalysisRefresh45 = () => {
  1230. const _work = props.showData.choiceQuestionListData[props.showData.workIndex]
  1231. const msg = `# CONTEXT #
  1232. 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
  1233. # OBJECTIVE #
  1234. 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
  1235. #INPUT#
  1236. 课程数据:
  1237. - 课程名称:${props.courseDetail.title}
  1238. - 课程学科:${props.courseDetail.name}
  1239. 当前页面答题数据(选择题):【分析重点】
  1240. - 选择题题目:${_work.teststitle}
  1241. - 选项数据:${JSON.stringify(_work.choiceUser)}
  1242. - 题目图片:${_work.timuList.lenght ? _work.timuList[0].src : ''}
  1243. - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
  1244. # ANALYSIS RULES #
  1245. 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
  1246. 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
  1247. # RESPONSE #
  1248. 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
  1249. 1. 整体表现-1句话
  1250. 2. 核心发现-1-2句,指出共性问题+典型案例
  1251. 3. 改进建议-1句话,提出具体教学动作
  1252. # EXAMPLES #
  1253. 样例:
  1254. 选择题正确率62%,核心概念“机器学习三步骤”(输入数据→训练模型→预测结果)掌握尚可,但“训练与预测区分”混淆率达38%;建议强化训练vs预测对比教学。`
  1255. if (!currentAnalysis.value) {
  1256. aiAnalysisData.value.push({
  1257. pid: props.workId + (props.cid ? ',' + props.cid : ''),
  1258. index: props.showData.workIndex,
  1259. loading: true,
  1260. generatingContent: true,
  1261. json: { text: '', echartsData: '' },
  1262. noEnd: true,
  1263. update_at: '',
  1264. create_at: '',
  1265. })
  1266. }
  1267. else {
  1268. aiAnalysisData.value.find((item: any) => {
  1269. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1270. }).loading = true
  1271. aiAnalysisData.value.find((item: any) => {
  1272. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1273. }).json = { text: '', echartsData: '' }
  1274. }
  1275. chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
  1276. if (event.type === 'message') {
  1277. aiAnalysisData.value.find((item: any) => {
  1278. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1279. }).json.text = event.data
  1280. aiAnalysisData.value.find((item: any) => {
  1281. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1282. }).loading = false
  1283. }
  1284. else if (event.type === 'messageEnd') {
  1285. aiAnalysisData.value.find((item: any) => {
  1286. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1287. }).json.text = event.data
  1288. aiAnalysisData.value.find((item: any) => {
  1289. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1290. }).noEnd = false
  1291. aiAnalysisData.value.find((item: any) => {
  1292. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1293. }).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, '-')
  1294. saveAnalysis()
  1295. }
  1296. }).catch(err => {
  1297. console.log('err', err)
  1298. })
  1299. }
  1300. // ai生成投票分析 投票
  1301. const aiAnalysisRefresh78 = () => {
  1302. const _work = props.showData.choiceQuestionListData[props.showData.workIndex]
  1303. const msg = `# CONTEXT #
  1304. 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话/投票)进行智能分析。
  1305. # OBJECTIVE #
  1306. 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
  1307. #INPUT#
  1308. 课程数据:
  1309. - 课程名称:${props.courseDetail.title}
  1310. - 课程学科:${props.courseDetail.name}
  1311. 当前页面答题数据(投票):【分析重点】
  1312. - 投票题目:${_work.teststitle}
  1313. - 选项数据:${JSON.stringify(_work.choiceUser)}
  1314. - 题目图片:${_work.timuList.lenght ? _work.timuList[0].src : ''}
  1315. - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
  1316. # ANALYSIS RULES #
  1317. 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
  1318. 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
  1319. # RESPONSE #
  1320. 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
  1321. 1. 整体表现-1句话
  1322. 2. 核心发现-1-2句,指出共性问题+典型案例
  1323. 3. 改进建议-1句话,提出具体教学动作
  1324. # EXAMPLES #
  1325. 样例:
  1326. 选择题正确率62%,核心概念“机器学习三步骤”(输入数据→训练模型→预测结果)掌握尚可,但“训练与预测区分”混淆率达38%;建议强化训练vs预测对比教学。`
  1327. if (!currentAnalysis.value) {
  1328. aiAnalysisData.value.push({
  1329. pid: props.workId + (props.cid ? ',' + props.cid : ''),
  1330. index: props.showData.workIndex,
  1331. loading: true,
  1332. generatingContent: true,
  1333. json: { text: '', echartsData: '' },
  1334. noEnd: true,
  1335. update_at: '',
  1336. create_at: '',
  1337. })
  1338. }
  1339. else {
  1340. aiAnalysisData.value.find((item: any) => {
  1341. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1342. }).loading = true
  1343. aiAnalysisData.value.find((item: any) => {
  1344. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1345. }).json = { text: '', echartsData: '' }
  1346. }
  1347. chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
  1348. if (event.type === 'message') {
  1349. aiAnalysisData.value.find((item: any) => {
  1350. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1351. }).json.text = event.data
  1352. aiAnalysisData.value.find((item: any) => {
  1353. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1354. }).loading = false
  1355. }
  1356. else if (event.type === 'messageEnd') {
  1357. aiAnalysisData.value.find((item: any) => {
  1358. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1359. }).json.text = event.data
  1360. aiAnalysisData.value.find((item: any) => {
  1361. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1362. }).noEnd = false
  1363. aiAnalysisData.value.find((item: any) => {
  1364. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1365. }).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, '-')
  1366. saveAnalysis()
  1367. }
  1368. }).catch(err => {
  1369. console.log('err', err)
  1370. })
  1371. }
  1372. // 问答题
  1373. const aiAnalysisRefresh15 = () => {
  1374. let flag = 0
  1375. const msg = `# CONTEXT #
  1376. 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
  1377. # OBJECTIVE #
  1378. 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
  1379. #INPUT#
  1380. 课程数据:
  1381. - 课程名称:${props.courseDetail.title}
  1382. - 课程学科:${props.courseDetail.name}
  1383. 当前页面答题数据(问答题):【分析重点】
  1384. - 问答题题目:${props.showData.workDetail.json.answerQ}
  1385. - 回答数据:${JSON.stringify(processedWorkArray.value.map((i) => ({ user: i.name, answer: i.content.answer })))}
  1386. - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
  1387. # ANALYSIS RULES #
  1388. 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
  1389. 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
  1390. # RESPONSE #
  1391. 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
  1392. 1. 整体表现-1句话
  1393. 2. 核心发现-1-2句,指出共性问题+典型案例
  1394. 3. 改进建议-1句话,提出具体教学动作
  1395. # EXAMPLES #
  1396. 样例:
  1397. 30人中15人提交问答题(参与率50%),核心概念“同理心地图”掌握薄弱。发现学生13在智能体对话中6次答“不知道”,需单独辅导设计思维基础概念。建议课程增加POV框架实例演练,强化痛点识别能力训练。`
  1398. if (!currentAnalysis.value) {
  1399. aiAnalysisData.value.push({
  1400. pid: props.workId + (props.cid ? ',' + props.cid : ''),
  1401. index: props.showData.workIndex,
  1402. loading: true,
  1403. generatingContent: true,
  1404. json: { text: '', echartsData: '' },
  1405. noEnd: true,
  1406. update_at: '',
  1407. create_at: '',
  1408. })
  1409. }
  1410. else {
  1411. aiAnalysisData.value.find((item: any) => {
  1412. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1413. }).loading = true
  1414. aiAnalysisData.value.find((item: any) => {
  1415. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1416. }).json = { text: '', echartsData: '' }
  1417. aiAnalysisData.value.find((item: any) => {
  1418. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1419. }).generatingContent = true
  1420. }
  1421. getWordCloud15().then((res) => {
  1422. flag += 1
  1423. aiAnalysisData.value.find((item: any) => {
  1424. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1425. }).generatingContent = false
  1426. if (flag == 2) {
  1427. saveAnalysis()
  1428. }
  1429. })
  1430. chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
  1431. console.log(event)
  1432. if (event.type === 'message') {
  1433. aiAnalysisData.value.find((item: any) => {
  1434. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1435. }).json.text = event.data
  1436. aiAnalysisData.value.find((item: any) => {
  1437. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1438. }).loading = false
  1439. }
  1440. else if (event.type === 'messageEnd') {
  1441. aiAnalysisData.value.find((item: any) => {
  1442. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1443. }).json.text = event.data
  1444. aiAnalysisData.value.find((item: any) => {
  1445. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1446. }).noEnd = false
  1447. aiAnalysisData.value.find((item: any) => {
  1448. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1449. }).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, '-')
  1450. flag += 1
  1451. if (flag == 2) {
  1452. saveAnalysis()
  1453. }
  1454. }
  1455. }).catch(err => {
  1456. console.log('err', err)
  1457. })
  1458. }
  1459. // 打开词云图弹窗
  1460. const openEchatsDialog = () => {
  1461. if (echartsDialogRef.value && currentAnalysis.value.json.echartsData) {
  1462. echartsDialogRef.value.open(lang.ssKeywordCloud, currentAnalysis.value.json.echartsData)
  1463. }
  1464. }
  1465. // 问答题获取词云图与关键词
  1466. const getWordCloud15 = () => {
  1467. return new Promise((resolve,) => {
  1468. const msg = `## 任务
  1469. 请针对文本中学生提交的问答题回答内容进行深度分析,提炼出 10 - 30 个核心关键词,用于绘制词云图。
  1470. ## 提取准则
  1471. 1. 聚焦内容主体:仅从学生的具体回答文本中提取关键词。
  1472. 2. 严格排除杂质:禁止提取任何属于系统元数据或固定格式的词汇,包括但不限于:“课程数据”、“学生姓名”、“回答结果”、“课程标题”、“提交时间”、“作业名称”、“分数”等。
  1473. 3. 语义去重:将意思相近的词进行合并(例如“高效”与“效率高”),保留最具代表性的词条。
  1474. 4. 涵盖核心:关键词应准确反映学生回答中的核心观点、关键知识点、高频论据或情感倾向。
  1475. ## 任务要求
  1476. 1. 词频统计:计算每个有效关键字在回答内容中出现的频率。
  1477. 2. 词汇大小:根据词频,确定每个关键字在词云中的权重。词频越高,数值越大,范围 1 - 100。
  1478. 3. 输出格式:请严格按照 JSON 格式输出,包含关键词、词频及对应的词汇大小。
  1479. ## 文本
  1480. 课程数据:
  1481. - 课程名称:${props.courseDetail.title}
  1482. - 课程学科:${props.courseDetail.name}
  1483. - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
  1484. - 已提交人数:${props.showData.workArray.length}
  1485. 当前页面答题数据(问答题):【分析重点】
  1486. - 问答题题目:${props.showData.workDetail.json.answerQ}
  1487. - 回答数据:${JSON.stringify(processedWorkArray.value.map((i) => ({ answer: i.content.answer })))}
  1488. ## 输出示例
  1489. {"tooltip":{"show":false},"series":[{"type":"wordCloud","sizeRange":[14,38],"rotationRange":[0,0],"keepAspect":false,"shape":"circle","left":"center","top":"center","right":null,"bottom":null,"width":"100%","height":"100%","rotationStep":20,"data":[{"value":"词汇大小,数值范围1-100","name":"词汇","textStyle":{"color":"词汇颜色(16进制)"}},{"value":"词汇大小,数值范围1-100","name":"词汇","textStyle":{"color":"(16进制)"}}]}]}`
  1490. chat_no_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang).promise.then((res) => {
  1491. aiAnalysisData.value.find((item: any) => {
  1492. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1493. }).json.echartsData = JSON.parse(res)
  1494. resolve(1)
  1495. }).catch(err => {
  1496. console.log('err', err)
  1497. resolve(0)
  1498. })
  1499. })
  1500. }
  1501. // ai应用
  1502. const aiAnalysisRefresh72 = async () => {
  1503. let chatMsg = ``
  1504. const agentId = 'a7741704-ba56-40b7-a6b8-62a423ef9376'
  1505. console.log('processedWorkArray.value', processedWorkArray.value)
  1506. processedWorkArray.value.forEach((i) => {
  1507. if (typeof i.content === 'object') {
  1508. i.content.forEach(j => {
  1509. if (j.messages) {
  1510. j.messages.forEach((a) => {
  1511. chatMsg += `\n${a.sender}:
  1512. ${a.content}\n`
  1513. })
  1514. }
  1515. if (j.imageUrls) {
  1516. j.imageUrls.forEach((a) => {
  1517. chatMsg += `\n${a}\n`
  1518. })
  1519. }
  1520. })
  1521. }
  1522. })
  1523. // if(props.userId)
  1524. // - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
  1525. let msg = `# CONTEXT #
  1526. 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
  1527. # OBJECTIVE #
  1528. 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
  1529. #INPUT#
  1530. 课程数据:
  1531. - 课程名称:${props.courseDetail.title}
  1532. - 课程学科:${props.courseDetail.name}
  1533. - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
  1534. - 已提交人数:${props.showData.workArray.length}
  1535. 当前页面答题数据(问答题):【分析重点】
  1536. - AI应用
  1537. - 对话数据:${chatMsg}
  1538. # ANALYSIS RULES #
  1539. 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
  1540. 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
  1541. # RESPONSE #
  1542. 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
  1543. 1. 整体表现-1句话
  1544. 2. 核心发现-1-2句,指出共性问题+典型案例
  1545. 3. 改进建议-1句话,提出具体教学动作
  1546. # EXAMPLES #
  1547. 样例:
  1548. 智能体对话显示学生对“模型训练”概念模糊,多次询问“为什么不能直接告诉机器答案”。针对概念混淆学生,补充“人类学习类比”相关解释,巩固“从数据中学习规律”核心认知。`
  1549. if (['9c236d45-49cd-11f1-9985-005056924926'].includes(props.userId)) {
  1550. msg = `你是K-12阶段的AI教育课堂分析助手,基于当前课程信息以及当页的学生与单/多智能体对话数据,进行深入的智能分析。
  1551. ### 任务目标
  1552. 1. **总体统计分析**:
  1553. - 分析学生表现数据,例如全班学生互动数据,包括但不限于参与度、互动轮次、作文批改分布、作业完成情况等。
  1554. - 提取核心统计指标,例如发现共性问题、互动模式、分层水平分布、关键评分、完成度、优秀或需关注的学生。
  1555. 2. **洞察(Key Insights)**:
  1556. - 不是所有模块都需要的
  1557. - 输出的模块使用1~3句快速完成核心发现输出
  1558. - 保持简短、直观、易快速理解。
  1559. 3. **不输出教学建议或干预措施**。
  1560. ### 输出格式
  1561. 1. Markdown表格:展示关键统计指标(发言次数、互动频率、提问数量、主题分布)。
  1562. 2. ASCII条形图(可选):展示各项指标对比情况(绝对不要ASCII条形图,应该显示指标名字)
  1563. 3. 洞察与建议:分点呈现,每点对应具体统计指标或数据来源,保持精简,直观、易快速理解。
  1564. **注意,不必输出多余的开场白(可以有非常简短的),转场,铺垫,形容词等,尽可能把输出留给有价值的发现**
  1565. **对于重点要注意的内容,可以用 <span style="color:red"> 内容 </span> 以及 markdown的强调语法来highlight**
  1566. ### 注意事项
  1567. - 输出简洁明了,重点突出。
  1568. - 所有数字列右对齐,必要时显示百分比。
  1569. - 避免冗长文字和详细案例描述。
  1570. - 保持专业、友好语气,可使用 Emoji 提示情绪、课堂氛围或学生表现状态。
  1571. - 输出保持在600字左右
  1572. #INPUT#
  1573. 课程数据:
  1574. - 课程名称:${props.courseDetail.title}
  1575. - 课程学科:${props.courseDetail.name}
  1576. 当前页面答题数据(问答题):【分析重点】
  1577. - AI应用
  1578. - 对话数据:${chatMsg}
  1579. `
  1580. }
  1581. else if (['6c56ec0e-2c74-11ef-bee5-005056b86db5', 'aea65da6-4399-11f1-9985-005056924926'].includes(props.userId)) {
  1582. if (props.workUrl == 'https://knowledge.cocorobo.cn/zh-CN/story-telling/a1a339d4-f522-4336-9aa9-e8394bea9731') {
  1583. msg = `# 角色定位
  1584. 你是K-12阶段的AI课堂分析助手,负责基于学生对世界名画的英语宣传稿(promotional text)批改记录生成课堂学情分析报告。
  1585. 本次分析的内容来自六年级英语Art课堂,学生选择一幅画作并完成英语宣传稿写作,由AI智能体完成批改,分为 Level A(独立完成)、Level B(信息辅助)、Level C(支架辅助)两个等级。
  1586. ---
  1587. # 重要:数据解读规则(必须在生成报告前完成)
  1588. 在输出任何报告内容之前,必须先完成以下两步结构化提取。
  1589. 所有报告数字必须来源于此,禁止前后矛盾。
  1590. ---
  1591. ## 第一步:逐学生提取数据
  1592. (此步骤为内部处理步骤,不输出提取结果。)
  1593. ### 有效作文判断
  1594. 在提取每位学生数据之前,先判断该学生是否提交了有效作文:
  1595. **有效作文:** AI批改记录中出现了完整的"作文批改报告"结构(包含信息完整性表格、表达鲜活度、文化小触角、语法小诊断中至少两项),视为学生已提交有效内容,正常提取数据。
  1596. **无效提交:** 以下情况均视为无效提交,不纳入各维度统计,仅在总结部分单独列出:
  1597. - AI输出"未检测到有效的写作内容"
  1598. - AI批改记录缺失或仅有对话内容而无批改报告结构
  1599. - 学生仅回复单个词语、符号或与写作任务完全无关的内容
  1600. **注意:** 不得根据学生与AI的后续对话内容(如学生补充回复、追问等)判断写作有效性,仅以AI是否输出完整批改报告为准。
  1601. ### 等级识别
  1602. 从批改记录中识别学生选择的等级:
  1603. - 选择"I can wtite. 我可以自己写。" → Level A
  1604. - 选择"I need information. 我需要信息支持。" → Level B
  1605. - 选择"I need structure. 我需要支架。" → Level C
  1606. ### 信息完整与准确性提取
  1607. 检查批改报告中的信息完整性表格,逐项记录每位学生的情况:
  1608. | 信息点 | 是否正确 |
  1609. |---|---|
  1610. | 画名 | 是/否 |
  1611. | 画家 | 是/否 |
  1612. | 绘画种类 | 是/否 |
  1613. | 画面描述(颜色/内容) | 是/否 |
  1614. | 个人感受 | 是/否 |
  1615. 对每位学生统计:
  1616. - 全部正确的信息点数量(满分5项)
  1617. - 有错误或遗漏的具体信息点
  1618. ### 表达鲜活度提取
  1619. 从批改记录的"表达鲜活度"部分,判断:
  1620. - ✅ 表达生动:使用了形容词、比喻、比较句或个人联想
  1621. - ⚠️ 表达平淡:仅使用简单句型,缺乏个人想法
  1622. ### 文化小触角提取
  1623. 从批改记录的"文化小触角"部分,判断:
  1624. - ✅ 有涉及:自然提到中西艺术差异或文化感悟
  1625. - — 未涉及:未提及任何文化对比
  1626. ### 语法情况提取
  1627. 从批改记录的"语法小诊断"部分,记录:
  1628. - 是否存在明显语法错误
  1629. - 错误类型(主谓一致 / 时态 / 冠词 / 其他)
  1630. ---
  1631. ## 第二步:汇总数据
  1632. 将所有学生数据按等级分组汇总,形成统计表。
  1633. **一旦汇总完成,报告中所有数字必须与汇总表严格一致,禁止前后矛盾。**
  1634. ---
  1635. # 输出格式
  1636. ## 第一步输出
  1637. 输出以下一句话,然后立即继续输出完整报告,不得停止:
  1638. "正在逐个提取学生数据中,请稍候……"
  1639. ## 第二步输出:完整报告
  1640. 紧接上一句,输出以下完整报告内容:
  1641. ---
  1642. ## 英语写作 课堂学情分析报告
  1643. **数据来源:** 批改记录 | **统计人数:** X 人
  1644. ---
  1645. ### 一、分层总览
  1646. | 等级 | 人数 | 信息完整率均值 | 表达生动人数 | 文化触角人数 | 有语法问题人数 |
  1647. |---|---|---|---|---|---|
  1648. | Level A | X | XX% | X人(XX%) | X人(XX%) | X人(XX%) |
  1649. | Level B | X | XX% | X人(XX%) | X人(XX%) | X人(XX%) |
  1650. | Level C | X | XX% | X人(XX%) | X人(XX%) | X人(XX%) |
  1651. ---
  1652. ### 二、信息完整与准确性明细(A / B / C 合并)
  1653. | 信息点 | 正确人数 | 正确率 |
  1654. |---|---|---|
  1655. | 画名 | X | XX% |
  1656. | 画家 | X | XX% |
  1657. | 绘画种类 | X | XX% |
  1658. | 画面描述(颜色/内容) | X | XX% |
  1659. | 个人感受 | X | XX% |
  1660. [正确率最低项:<span style="color:red">⚠️ [信息点名称]正确率最低,仅 XX%,说明学生在该项普遍存在遗漏或错误。</span>]
  1661. ---
  1662. ### 三、表达与文化维度
  1663. | 维度 | A 达成人数 | A 达成率 | B 达成人数 | B 达成率 | C 达成人数 | C 达成率 |
  1664. |---|---|---|---|---|
  1665. | 表达生动(含比喻/形容词/个人联想) | X | XX% | X | XX% | X | XX% |
  1666. | 文化小触角(含中西艺术对比) | X | XX% | X | XX% | X | XX% |
  1667. [若文化触角整体达成率低于50%:<span style="color:red">⚠️ 文化对比意识普遍薄弱,全班达成率仅 XX%。</span>]
  1668. ---
  1669. ### 四、语法问题汇总
  1670. | 语法问题类型 | A 出现人次 | B 出现人次 | C 出现人次 |
  1671. |---|---|---|
  1672. | 主谓一致错误 | X | X | X |
  1673. | 时态错误 | X | X | X |
  1674. | 冠词错误 | X | X | X |
  1675. | 其他 | X | X | X |
  1676. *若无明显语法问题,写:"本次无明显高频语法问题。✅"*
  1677. ---
  1678. ### 五、亮点摘录
  1679. **表达生动的例句:**
  1680. [列出2–3句来自学生作文的优秀表达原文,注明等级和画作名称。]
  1681. **文化感悟的例句:**
  1682. [列出1–2句来自学生作文的文化对比原文,注明等级和画作名称。若无,写"本次暂无。"]
  1683. ---
  1684. ### 六、总结
  1685. **整体:** [1句,简述全班整体写作完成情况。]
  1686. **突出:** [1句,指出全班表现最好的维度,例如信息完整率高或表达生动人数较多。]
  1687. **关注:** <span style="color:red">[1句,指出最薄弱的维度,例如文化触角普遍缺失或某信息点遗漏率高。]</span>
  1688. **跟进:**
  1689. - <span style="color:red">无效提交学生:[姓名列表],AI未能识别其提交内容,建议教师查看原图并确认是否需要重新上传。</span>
  1690. - <span style="color:red">写作内容需关注的学生(有效提交中):[姓名及原因,例如信息缺失3项以上、存在多处语法问题等];若无,写"有效提交学生中暂无需特别跟进。"</span>
  1691. *若全员有效提交且表现均衡,写:"本次全员提交有效内容,整体表现均衡,暂无需特别跟进。"*
  1692. ---
  1693. # 注意事项
  1694. - 所有数字来源于结构化提取,输出前核对一致性,禁止前后矛盾。
  1695. - 对需要教师重点关注的内容使用 <span style="color:red"> 内容 </span> 高亮。
  1696. - 禁止输出"如需进一步生成"等对话式内容。
  1697. - 不输出教学建议或干预措施。
  1698. - 若某等级无学生数据,对应列填"—",不单独说明。
  1699. #INPUT#
  1700. 课程数据:
  1701. - 课程名称:${props.courseDetail.title}
  1702. - 课程学科:${props.courseDetail.name}
  1703. - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
  1704. - 已提交人数:${props.showData.workArray.length}
  1705. 当前页面答题数据(AI应用):【分析重点】
  1706. - AI应用
  1707. - 对话数据:${chatMsg}`
  1708. }
  1709. else if (props.workUrl == 'https://knowledge.cocorobo.cn/zh-CN/story-telling/0d04cef1-876a-41b4-9768-6547088bc162') {
  1710. msg = `# 角色定位
  1711. 你是K-12阶段的AI课堂分析助手,负责基于学生词句训练对话记录生成课堂学情分析报告。
  1712. 本次分析的环节为:学生与AI就画作内容进行词句问答训练,分为 Level A、Level B、Level C 三个等级。
  1713. ---
  1714. # 重要:数据解读规则(必须在生成报告前完成)
  1715. 在输出任何报告内容之前,必须先完成以下两步结构化提取。
  1716. 所有报告数字必须来源于此,禁止前后矛盾。
  1717. ---
  1718. ## 第一步:逐学生提取数据
  1719. (此步骤为内部处理步骤,不输出提取结果。)
  1720. ### 等级识别
  1721. 从对话记录中的 sender 字段识别等级:
  1722. - sender 含"Level A" → Level A
  1723. - sender 含"Level B" → Level B
  1724. - sender 含"Level C" → Level C
  1725. ### 完成状态判断
  1726. - **完整完成**:所有句子/问题均有学生回应记录
  1727. - **部分完成**:至少一条学生回应,但未完成全部
  1728. - **未完成**:对话记录中仅有 AI 开场消息,无任何学生回应内容
  1729. ### Level A 提取项目
  1730. **主题覆盖性:** 检查学生是否主动提问了以下 6 个主题:
  1731. ① name ② artist ③ kind ④ scene ⑤ colours ⑥ why
  1732. - ✅ 已提问 / — 未提问
  1733. **问题准确性(语法):** 识别以下错误类型并记录人次:
  1734. - 疑问句结构错误 / 主谓一致错误 / 时态错误 / 其他
  1735. **创新性:** 6 个主题之外的问题,记录原文。
  1736. ### Level B 提取项目
  1737. **主题覆盖性:**(同 Level A,6个主题)
  1738. **问题准确性(语法):**(同 Level A)
  1739. ### Level C 提取项目
  1740. **流程完成性:** 逐句核对学生是否跟读了全部 6 个问句。
  1741. - ✅ 跟读基本正确 / ⚠️ 跟读明显偏差 / — 未跟读
  1742. **创新亮点:** 学生是否有自发延伸表达,记录原文。
  1743. ---
  1744. ## 第二步:汇总数据
  1745. 将所有学生数据按等级分组汇总。
  1746. **报告中所有数字必须与汇总表严格一致,禁止前后矛盾。**
  1747. ---
  1748. # 输出格式
  1749. ## 第一步输出
  1750. 输出以下一句话,然后立即继续输出完整报告,不得停止:
  1751. "正在逐个提取学生数据中,请稍候……"
  1752. ## 第二步输出:完整报告
  1753. 紧接上一句,输出以下完整报告内容:
  1754. ---
  1755. ## 词句问答训练 课堂学情分析报告
  1756. **数据来源:** 学生对话记录 | **统计人数:** X 人
  1757. ---
  1758. ### 一、分层总览
  1759. | 等级 | 人数 | 完整完成 | 主题覆盖率均值 | 语法问题人数 | 创新提问/亮点 |
  1760. |---|---|---|---|---|---|
  1761. | Level A | X | X人(XX%) | XX% | X人 | X人 |
  1762. | Level B | X | X人(XX%) | XX% | X人 | — |
  1763. | Level C | X | X人(XX%) | — | — | X人 |
  1764. [若有未完成学生:<span style="color:red">⚠️ 未完成学生:[姓名列表]</span>]
  1765. ---
  1766. ### 二、主题覆盖明细(Level A / B)
  1767. | 主题 | A 覆盖率 | B 覆盖率 |
  1768. |---|---|---|
  1769. | name | XX% | XX% |
  1770. | artist | XX% | XX% |
  1771. | kind | XX% | XX% |
  1772. | scene | XX% | XX% |
  1773. | colours | XX% | XX% |
  1774. | why | XX% | XX% |
  1775. *若本次无某等级学生,对应列填"—"。*
  1776. ---
  1777. ### 三、语法问题(Level A / B)
  1778. | 问题类型 | A 出现人次 | B 出现人次 |
  1779. |---|---|---|
  1780. | 疑问句结构错误 | X | X |
  1781. | 主谓一致错误 | X | X |
  1782. | 时态错误 | X | X |
  1783. | 其他 | X | X |
  1784. *若无语法问题,写:"本次无明显语法问题。✅"*
  1785. ---
  1786. ### 四、创新与亮点
  1787. **Level A 创新提问:**
  1788. [列出学生姓名及原文;若无,写"本次暂无。"]
  1789. **Level C 自发延伸:**
  1790. [列出学生姓名及原文;若无,写"本次暂无。"]
  1791. ---
  1792. ### 五、总结
  1793. **整体:** [1句,简述全班完成情况。]
  1794. **突出:** [1句,指出表现最好的维度或等级。]
  1795. **关注:** <span style="color:red">[1句,指出覆盖率最低的主题或问题最集中的点。]</span>
  1796. **跟进:** <span style="color:red">[列出需个别跟进的学生姓名及原因;若无,写"全员表现均衡,暂无需特别跟进。"]</span>
  1797. ---
  1798. # 注意事项
  1799. - 所有数字来源于结构化提取,输出前核对一致性,禁止前后矛盾。
  1800. - 对需要教师重点关注的内容使用 <span style="color:red"> 内容 </span> 高亮。
  1801. - 若某等级无学生数据,相关行/列填"—",不单独输出该等级报告。
  1802. - 禁止输出"如需进一步生成"等对话式内容。
  1803. - 不输出教学建议或干预措施。
  1804. #INPUT#
  1805. 课程数据:
  1806. - 课程名称:${props.courseDetail.title}
  1807. - 课程学科:${props.courseDetail.name}
  1808. - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
  1809. - 已提交人数:${props.showData.workArray.length}
  1810. 当前页面答题数据(AI应用):【分析重点】
  1811. - AI应用
  1812. - 对话数据:${chatMsg}`
  1813. }
  1814. // msg = `# 角色定位
  1815. // 你是K-12阶段的AI课堂分析助手,负责基于学生词句训练对话记录生成课堂学情分析报告。
  1816. // 本次分析的环节为:学生与AI就画作内容进行词句问答训练,分为 Level A、Level B、Level C 三个等级。
  1817. // ---
  1818. // # 重要:数据解读规则(必须在生成报告前完成)
  1819. // 在输出任何报告内容之前,必须先完成以下两步结构化提取。
  1820. // 所有报告数字必须来源于此,禁止前后矛盾。
  1821. // ---
  1822. // ## 第一步:逐学生提取数据
  1823. // (此步骤为内部处理步骤,不输出提取结果。)
  1824. // ### 等级识别
  1825. // 从对话记录中的 sender 字段识别等级:
  1826. // - sender 含"Level A" → Level A
  1827. // - sender 含"Level B" → Level B
  1828. // - sender 含"Level C" → Level C
  1829. // ### 完成状态判断
  1830. // - **完整完成**:所有句子/问题均有学生回应记录
  1831. // - **部分完成**:至少一条学生回应,但未完成全部
  1832. // - **未完成**:对话记录中仅有 AI 开场消息,无任何学生回应内容
  1833. // ### Level A 提取项目
  1834. // **主题覆盖性:** 检查学生是否主动提问了以下 6 个主题:
  1835. // ① name ② artist ③ kind ④ scene ⑤ colours ⑥ why
  1836. // - ✅ 已提问 / — 未提问
  1837. // **问题准确性(语法):** 识别以下错误类型并记录人次:
  1838. // - 疑问句结构错误 / 主谓一致错误 / 时态错误 / 其他
  1839. // **创新性:** 6 个主题之外的问题,记录原文。
  1840. // ### Level B 提取项目
  1841. // **主题覆盖性:**(同 Level A,6个主题)
  1842. // **问题准确性(语法):**(同 Level A)
  1843. // ### Level C 提取项目
  1844. // **流程完成性:** 逐句核对学生是否跟读了全部 6 个问句。
  1845. // - ✅ 跟读基本正确 / ⚠️ 跟读明显偏差 / — 未跟读
  1846. // **创新亮点:** 学生是否有自发延伸表达,记录原文。
  1847. // ---
  1848. // ## 第二步:汇总数据
  1849. // 将所有学生数据按等级分组汇总。
  1850. // **报告中所有数字必须与汇总表严格一致,禁止前后矛盾。**
  1851. // ---
  1852. // # 输出格式
  1853. // ## 第一步输出
  1854. // 输出以下一句话,然后立即继续输出完整报告,不得停止:
  1855. // "正在逐个提取学生数据中,请稍候……"
  1856. // ## 第二步输出:完整报告
  1857. // 紧接上一句,输出以下完整报告内容:
  1858. // ---
  1859. // ## 词句问答训练 课堂学情分析报告
  1860. // **数据来源:** 学生对话记录 | **统计人数:** X 人
  1861. // ---
  1862. // ### 一、分层总览
  1863. // | 等级 | 人数 | 完整完成 | 主题覆盖率均值 | 语法问题人数 | 创新提问/亮点 |
  1864. // |---|---|---|---|---|---|
  1865. // | Level A | X | X人(XX%) | XX% | X人 | X人 |
  1866. // | Level B | X | X人(XX%) | XX% | X人 | — |
  1867. // | Level C | X | X人(XX%) | — | — | X人 |
  1868. // [若有未完成学生:<span style="color:red">⚠️ 未完成学生:[姓名列表]</span>]
  1869. // ---
  1870. // ### 二、主题覆盖明细(Level A / B)
  1871. // | 主题 | A 覆盖率 | B 覆盖率 |
  1872. // |---|---|---|
  1873. // | name | XX% | XX% |
  1874. // | artist | XX% | XX% |
  1875. // | kind | XX% | XX% |
  1876. // | scene | XX% | XX% |
  1877. // | colours | XX% | XX% |
  1878. // | why | XX% | XX% |
  1879. // *若本次无某等级学生,对应列填"—"。*
  1880. // ---
  1881. // ### 三、语法问题(Level A / B)
  1882. // | 问题类型 | A 出现人次 | B 出现人次 |
  1883. // |---|---|---|
  1884. // | 疑问句结构错误 | X | X |
  1885. // | 主谓一致错误 | X | X |
  1886. // | 时态错误 | X | X |
  1887. // | 其他 | X | X |
  1888. // *若无语法问题,写:"本次无明显语法问题。✅"*
  1889. // ---
  1890. // ### 四、创新与亮点
  1891. // **Level A 创新提问:**
  1892. // [列出学生姓名及原文;若无,写"本次暂无。"]
  1893. // **Level C 自发延伸:**
  1894. // [列出学生姓名及原文;若无,写"本次暂无。"]
  1895. // ---
  1896. // ### 五、总结
  1897. // **整体:** [1句,简述全班完成情况。]
  1898. // **突出:** [1句,指出表现最好的维度或等级。]
  1899. // **关注:** <span style="color:red">[1句,指出覆盖率最低的主题或问题最集中的点。]</span>
  1900. // **跟进:** <span style="color:red">[列出需个别跟进的学生姓名及原因;若无,写"全员表现均衡,暂无需特别跟进。"]</span>
  1901. // ---
  1902. // # 注意事项
  1903. // - 所有数字来源于结构化提取,输出前核对一致性,禁止前后矛盾。
  1904. // - 对需要教师重点关注的内容使用 <span style="color:red"> 内容 </span> 高亮。
  1905. // - 若某等级无学生数据,相关行/列填"—",不单独输出该等级报告。
  1906. // - 禁止输出"如需进一步生成"等对话式内容。
  1907. // - 不输出教学建议或干预措施。
  1908. // #INPUT#
  1909. // 课程数据:
  1910. // - 课程名称:${props.courseDetail.title}
  1911. // - 课程学科:${props.courseDetail.name}
  1912. // - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
  1913. // - 已提交人数:${props.showData.workArray.length}
  1914. // 当前页面答题数据(AI应用):【分析重点】
  1915. // - AI应用
  1916. // - 对话数据:${chatMsg}`
  1917. }
  1918. console.log('workUrl', props.workUrl)
  1919. console.log('ai应用提示词', msg)
  1920. if (!currentAnalysis.value) {
  1921. aiAnalysisData.value.push({
  1922. pid: props.workId + (props.cid ? ',' + props.cid : ''),
  1923. index: props.showData.workIndex,
  1924. loading: true,
  1925. json: { text: '', echartsData: '' },
  1926. noEnd: true,
  1927. update_at: '',
  1928. create_at: '',
  1929. })
  1930. }
  1931. else {
  1932. aiAnalysisData.value.find((item: any) => {
  1933. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1934. }).loading = true
  1935. aiAnalysisData.value.find((item: any) => {
  1936. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1937. }).json = { text: '', echartsData: '' }
  1938. }
  1939. chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
  1940. if (event.type === 'message') {
  1941. aiAnalysisData.value.find((item: any) => {
  1942. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1943. }).json.text = md.render(event.data)
  1944. aiAnalysisData.value.find((item: any) => {
  1945. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1946. }).loading = false
  1947. }
  1948. else if (event.type === 'messageEnd') {
  1949. aiAnalysisData.value.find((item: any) => {
  1950. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1951. }).json.text = md.render(event.data)
  1952. aiAnalysisData.value.find((item: any) => {
  1953. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1954. }).noEnd = false
  1955. aiAnalysisData.value.find((item: any) => {
  1956. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1957. }).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, '-')
  1958. saveAnalysis()
  1959. }
  1960. }, '', [], 'open-qwen-plus-latest').catch(err => {
  1961. console.log('err', err)
  1962. })
  1963. }
  1964. // 当前分析
  1965. const currentAnalysis = computed(() => {
  1966. const _result = aiAnalysisData.value.find((item: any) => {
  1967. return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
  1968. })
  1969. if (_result?.json?.echartsData) {
  1970. _result.json.keyword = _result.json.echartsData?.series?.[0]?.data?.slice(0, 5).map((item: any) => item.name)
  1971. }
  1972. if (_result) {
  1973. return _result
  1974. }
  1975. return null
  1976. })
  1977. // 保存分析
  1978. const saveAnalysis = () => {
  1979. if (!currentAnalysis.value) {
  1980. return
  1981. }
  1982. const params = [{
  1983. pid: props.workId + (props.cid ? ',' + props.cid : ''),
  1984. idx: props.showData.workIndex,
  1985. json: JSON.stringify(currentAnalysis.value.json),
  1986. }]
  1987. console.log(params)
  1988. axios.post('https://pbl.cocorobo.cn/api/pbl/insert_pptAnalysis', params).then(res => {
  1989. if (res == 1) {
  1990. console.log('保存成功')
  1991. }
  1992. }).catch(err => {
  1993. console.log('insert_pptAnalysis_err', err)
  1994. })
  1995. }
  1996. // 点击边框
  1997. const clickContent = (flag: boolean) => {
  1998. if (flag && lookWorkDetail.value && workDetail.value?.type !== '45' && workDetail.value?.type !== '78') {
  1999. if (props.roleType != 1 && isCastScreen.value) {
  2000. return
  2001. }
  2002. lookWork('')
  2003. }
  2004. }
  2005. // 监听 props.showData.workDetail.id 变化
  2006. watch(
  2007. () => props.showData?.workDetail,
  2008. (newId, oldId) => {
  2009. getAnalysis()
  2010. },
  2011. { immediate: true }
  2012. )
  2013. // 组件卸载时清理ECharts实例
  2014. onUnmounted(() => {
  2015. // 清除定时器
  2016. if (resizeTimer) {
  2017. clearTimeout(resizeTimer)
  2018. resizeTimer = null
  2019. }
  2020. // 销毁ECharts实例
  2021. if (myChart.value && !myChart.value.isDisposed()) {
  2022. myChart.value.dispose()
  2023. myChart.value = null
  2024. }
  2025. })
  2026. </script>
  2027. <style lang="scss" scoped>
  2028. .choiceQuestionDetailDialog {
  2029. background: none;
  2030. position: relative;
  2031. width: 100%;
  2032. height: 100%;
  2033. z-index: 1;
  2034. .content {
  2035. width: 100%;
  2036. height: 100%;
  2037. position: relative;
  2038. background: #fff;
  2039. box-sizing: border-box;
  2040. padding: 40px;
  2041. overflow: auto;
  2042. .closeIcon {
  2043. position: absolute;
  2044. right: 20px;
  2045. top: 20px;
  2046. cursor: pointer;
  2047. width: 20px;
  2048. height: 20px;
  2049. img {
  2050. width: 100%;
  2051. height: 100%;
  2052. }
  2053. }
  2054. .c_t45 {
  2055. width: 100%;
  2056. min-height: 100%;
  2057. display: flex;
  2058. // align-items: center;
  2059. flex-direction: column;
  2060. height: auto;
  2061. .c_t45_title {
  2062. color: rgba(0, 0, 0, 0.9);
  2063. font-weight: 600;
  2064. font-size: 24px;
  2065. line-height: 24px;
  2066. position: relative;
  2067. width: 100%;
  2068. display: flex;
  2069. flex-direction: column;
  2070. // align-items: center;
  2071. // justify-content: center;
  2072. user-select: none;
  2073. gap: .4rem;
  2074. &>div {
  2075. max-width: calc(100%);
  2076. }
  2077. &>span {
  2078. position: absolute;
  2079. top: 20px;
  2080. cursor: pointer;
  2081. &:nth-of-type(1) {
  2082. left: 0;
  2083. }
  2084. &:nth-of-type(2) {
  2085. right: 0;
  2086. }
  2087. }
  2088. .c_t45_t_btn_noActive {
  2089. color: #CCCCCC;
  2090. }
  2091. .c_t45_msg {
  2092. display: flex;
  2093. align-items: center;
  2094. font-size: .9rem;
  2095. font-weight: 400;
  2096. gap: 1rem;
  2097. &>span {
  2098. text-decoration: underline;
  2099. cursor: pointer;
  2100. }
  2101. }
  2102. }
  2103. .c_t45_img {
  2104. max-width: 200px;
  2105. max-height: 200px;
  2106. object-fit: cover;
  2107. margin-top: 20px;
  2108. }
  2109. .c_t45_type {
  2110. font-weight: 400;
  2111. font-size: 15px;
  2112. line-height: 21px;
  2113. letter-spacing: 0.5px;
  2114. color: rgba(0, 0, 0, 1);
  2115. opacity: 0.5;
  2116. margin-top: 20px;
  2117. }
  2118. .c_t45_echarts {
  2119. width: 100%;
  2120. max-width: 100%;
  2121. flex: 1;
  2122. min-height: 400px;
  2123. display: flex;
  2124. align-items: center;
  2125. box-sizing: border-box;
  2126. &>div {
  2127. width: 100%;
  2128. height: 400px;
  2129. }
  2130. }
  2131. .cq_changeBtn {
  2132. display: flex;
  2133. align-items: center;
  2134. gap: 1.5rem;
  2135. margin: 1rem auto;
  2136. &>div {
  2137. padding: .6rem;
  2138. border-radius: .5rem;
  2139. border: solid 2px #F6C82B;
  2140. display: flex;
  2141. justify-content: center;
  2142. align-items: center;
  2143. cursor: pointer;
  2144. &>svg {
  2145. fill: #F6C82D;
  2146. width: 1rem;
  2147. height: 1rem;
  2148. }
  2149. &.cq_cb_disabled {
  2150. cursor: not-allowed !important;
  2151. border-color: #FEF8E9 !important;
  2152. }
  2153. &.cq_cb_disabled>svg {
  2154. fill: #A3A3A3 !important;
  2155. }
  2156. }
  2157. &>span {
  2158. font-weight: 500;
  2159. }
  2160. }
  2161. }
  2162. .c_t15 {
  2163. width: 100%;
  2164. min-height: 100%;
  2165. display: flex;
  2166. // align-items: center;
  2167. flex-direction: column;
  2168. height: auto;
  2169. padding: 40px;
  2170. .c_t15_title {
  2171. color: rgba(0, 0, 0, 0.9);
  2172. font-weight: 600;
  2173. font-size: 24px;
  2174. line-height: 24px;
  2175. }
  2176. .c_t15_msg {
  2177. display: flex;
  2178. align-items: center;
  2179. font-size: .9rem;
  2180. font-weight: 400;
  2181. gap: 1rem;
  2182. &>span {
  2183. text-decoration: underline;
  2184. cursor: pointer;
  2185. }
  2186. }
  2187. .c_t15_type {
  2188. font-weight: 400;
  2189. font-size: 15px;
  2190. line-height: 21px;
  2191. letter-spacing: 0.5px;
  2192. color: rgba(0, 0, 0, 1);
  2193. opacity: 0.5;
  2194. margin: 10px 0;
  2195. }
  2196. .c_t15_content {
  2197. width: 100%;
  2198. height: auto;
  2199. display: grid;
  2200. grid-template-columns: repeat(3, 1fr);
  2201. gap: 20px;
  2202. margin-top: 40px;
  2203. .c_t15_c_item {
  2204. width: 100%;
  2205. height: auto;
  2206. box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
  2207. box-sizing: border-box;
  2208. border-radius: 12px;
  2209. padding: 16px;
  2210. background: rgba(255, 255, 255, 0.6);
  2211. transition: 0.3s;
  2212. cursor: pointer;
  2213. overflow: hidden;
  2214. &:hover {
  2215. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  2216. background: rgba(255, 255, 255, 0.6);
  2217. }
  2218. .c_t15_c_i_top {
  2219. display: flex;
  2220. align-items: center;
  2221. gap: 10px;
  2222. width: 100%;
  2223. overflow: hidden;
  2224. &>span {
  2225. min-width: 25px;
  2226. height: 25px;
  2227. display: flex;
  2228. align-items: center;
  2229. justify-content: center;
  2230. background: rgba(252, 207, 0, 1);
  2231. border-radius: 4px;
  2232. color: rgba(255, 255, 255, 1);
  2233. font-weight: bold;
  2234. font-size: 14px;
  2235. }
  2236. &>div {
  2237. color: rgba(0, 0, 0, 0.7);
  2238. font-weight: 800;
  2239. overflow: hidden;
  2240. text-overflow: ellipsis;
  2241. white-space: nowrap;
  2242. }
  2243. }
  2244. .c_t15_c_i_bottom {
  2245. margin-top: 15px;
  2246. font-weight: 300;
  2247. font-size: 14px;
  2248. height: 40px;
  2249. max-width: 100%;
  2250. overflow: hidden;
  2251. text-overflow: ellipsis;
  2252. display: -webkit-box;
  2253. -webkit-line-clamp: 2;
  2254. -webkit-box-orient: vertical;
  2255. }
  2256. .c_t73_c_i_bottom {
  2257. margin-top: 15px;
  2258. font-weight: 300;
  2259. font-size: 14px;
  2260. // height: 40px;
  2261. max-width: 100%;
  2262. overflow: hidden;
  2263. text-overflow: ellipsis;
  2264. display: -webkit-box;
  2265. -webkit-line-clamp: 2;
  2266. -webkit-box-orient: vertical;
  2267. img {
  2268. width: 100%;
  2269. height: 200px;
  2270. object-fit: cover;
  2271. }
  2272. span {
  2273. width: 100%;
  2274. height: 200px;
  2275. display: flex;
  2276. align-items: center;
  2277. justify-content: center;
  2278. }
  2279. }
  2280. }
  2281. }
  2282. .c_t15_workDetail {
  2283. width: 100%;
  2284. height: auto;
  2285. margin-top: 40px;
  2286. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  2287. box-sizing: border-box;
  2288. padding: 16px;
  2289. border-radius: 12px;
  2290. display: flex;
  2291. flex-direction: column;
  2292. .c_t15_wd_top {
  2293. width: 100%;
  2294. display: flex;
  2295. align-items: center;
  2296. gap: 15px;
  2297. &>img {
  2298. width: 25px;
  2299. height: 25px;
  2300. cursor: pointer;
  2301. }
  2302. &>span {
  2303. display: block;
  2304. width: 30px;
  2305. height: 30px;
  2306. display: flex;
  2307. align-items: center;
  2308. justify-content: center;
  2309. background: rgba(252, 207, 0, 1);
  2310. border-radius: 4px;
  2311. color: rgba(255, 255, 255, 1);
  2312. font-weight: bold;
  2313. font-size: 16px;
  2314. }
  2315. &>div {
  2316. color: rgba(0, 0, 0, 0.7);
  2317. font-weight: 800;
  2318. font-size: 18px;
  2319. }
  2320. }
  2321. .c_t15_wd_content {
  2322. width: 100%;
  2323. margin-top: 20px;
  2324. max-height: 100%;
  2325. overflow: auto;
  2326. flex-wrap: wrap;
  2327. .c_t15_wd_c_imageList {
  2328. width: 100%;
  2329. gap: 20px;
  2330. margin-top: 20px;
  2331. &>img {
  2332. width: 100px;
  2333. height: auto;
  2334. cursor: pointer;
  2335. margin-right: 20px;
  2336. object-fit: cover;
  2337. }
  2338. }
  2339. }
  2340. }
  2341. .c_t79_workDetail {
  2342. width: 100%;
  2343. height: auto;
  2344. margin-top: 40px;
  2345. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  2346. box-sizing: border-box;
  2347. padding: 16px;
  2348. border-radius: 12px;
  2349. display: flex;
  2350. flex-direction: column;
  2351. .c_t79_wd_top {
  2352. width: 100%;
  2353. display: flex;
  2354. align-items: center;
  2355. gap: 15px;
  2356. &>img {
  2357. width: 25px;
  2358. height: 25px;
  2359. cursor: pointer;
  2360. }
  2361. &>span {
  2362. display: block;
  2363. width: 30px;
  2364. height: 30px;
  2365. display: flex;
  2366. align-items: center;
  2367. justify-content: center;
  2368. background: rgba(252, 207, 0, 1);
  2369. border-radius: 4px;
  2370. color: rgba(255, 255, 255, 1);
  2371. font-weight: bold;
  2372. font-size: 16px;
  2373. }
  2374. &>div {
  2375. color: rgba(0, 0, 0, 0.7);
  2376. font-weight: 800;
  2377. font-size: 18px;
  2378. }
  2379. }
  2380. .c_t79_wd_content {
  2381. width: 100%;
  2382. margin-top: 20px;
  2383. max-height: 100%;
  2384. overflow: auto;
  2385. flex-wrap: wrap;
  2386. display: flex;
  2387. align-items: center;
  2388. justify-content: center;
  2389. &>img {
  2390. max-width: 100%;
  2391. height: 300px;
  2392. object-fit: cover;
  2393. }
  2394. }
  2395. }
  2396. .cq_changeBtn {
  2397. display: flex;
  2398. align-items: center;
  2399. gap: 1.5rem;
  2400. margin: 1rem auto;
  2401. &>div {
  2402. padding: .6rem;
  2403. border-radius: .5rem;
  2404. border: solid 2px #F6C82B;
  2405. display: flex;
  2406. justify-content: center;
  2407. align-items: center;
  2408. cursor: pointer;
  2409. &>svg {
  2410. fill: #F6C82D;
  2411. width: 1rem;
  2412. height: 1rem;
  2413. }
  2414. &.cq_cb_disabled {
  2415. cursor: not-allowed !important;
  2416. border-color: #FEF8E9 !important;
  2417. }
  2418. &.cq_cb_disabled>svg {
  2419. fill: #A3A3A3 !important;
  2420. }
  2421. }
  2422. &>span {
  2423. font-weight: 500;
  2424. }
  2425. }
  2426. }
  2427. .c_t72 {
  2428. width: 100%;
  2429. min-height: 100%;
  2430. display: flex;
  2431. // align-items: center;
  2432. flex-direction: column;
  2433. height: auto;
  2434. padding: 40px;
  2435. .c_t72_title {
  2436. color: rgba(0, 0, 0, 0.9);
  2437. font-weight: 600;
  2438. font-size: 24px;
  2439. line-height: 24px;
  2440. }
  2441. .c_t72_type {
  2442. font-weight: 400;
  2443. font-size: 15px;
  2444. line-height: 21px;
  2445. letter-spacing: 0.5px;
  2446. color: rgba(0, 0, 0, 1);
  2447. opacity: 0.5;
  2448. margin: 10px 0;
  2449. }
  2450. .c_t72_msg {
  2451. display: flex;
  2452. align-items: center;
  2453. font-size: .9rem;
  2454. font-weight: 400;
  2455. gap: 1rem;
  2456. &>span {
  2457. text-decoration: underline;
  2458. cursor: pointer;
  2459. }
  2460. }
  2461. .c_t72_content {
  2462. width: 100%;
  2463. height: auto;
  2464. display: grid;
  2465. grid-template-columns: repeat(4, 1fr);
  2466. gap: 20px;
  2467. margin-top: 40px;
  2468. .c_t72_c_item {
  2469. width: 100%;
  2470. height: auto;
  2471. box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
  2472. box-sizing: border-box;
  2473. border-radius: 12px;
  2474. padding: 16px;
  2475. background: rgba(255, 255, 255, 0.6);
  2476. transition: 0.3s;
  2477. cursor: pointer;
  2478. overflow: hidden;
  2479. &:hover {
  2480. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  2481. background: rgba(255, 255, 255, 0.6);
  2482. }
  2483. .c_t72_c_i_top {
  2484. display: flex;
  2485. align-items: center;
  2486. gap: 10px;
  2487. width: 100%;
  2488. overflow: hidden;
  2489. &>span {
  2490. min-width: 25px;
  2491. height: 25px;
  2492. display: flex;
  2493. align-items: center;
  2494. justify-content: center;
  2495. background: rgba(252, 207, 0, 1);
  2496. border-radius: 4px;
  2497. color: rgba(255, 255, 255, 1);
  2498. font-weight: bold;
  2499. font-size: 14px;
  2500. }
  2501. &>div {
  2502. color: rgba(0, 0, 0, 0.7);
  2503. font-weight: 800;
  2504. }
  2505. }
  2506. .c_t72_c_i_bottom {
  2507. margin-top: 15px;
  2508. font-weight: 300;
  2509. font-size: 14px;
  2510. // height: 40px;
  2511. max-width: 100%;
  2512. overflow: hidden;
  2513. text-overflow: ellipsis;
  2514. display: -webkit-box;
  2515. -webkit-line-clamp: 2;
  2516. -webkit-box-orient: vertical;
  2517. img {
  2518. width: 100%;
  2519. max-height: 200px;
  2520. object-fit: cover;
  2521. }
  2522. }
  2523. }
  2524. }
  2525. .c_t72_workDetail {
  2526. width: 100%;
  2527. height: auto;
  2528. margin-top: 40px;
  2529. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  2530. box-sizing: border-box;
  2531. padding: 16px;
  2532. border-radius: 12px;
  2533. display: flex;
  2534. flex-direction: column;
  2535. .c_t72_wd_top {
  2536. width: 100%;
  2537. display: flex;
  2538. align-items: center;
  2539. gap: 15px;
  2540. &>img {
  2541. width: 25px;
  2542. height: 25px;
  2543. cursor: pointer;
  2544. }
  2545. &>span {
  2546. display: block;
  2547. width: 30px;
  2548. height: 30px;
  2549. display: flex;
  2550. align-items: center;
  2551. justify-content: center;
  2552. background: rgba(252, 207, 0, 1);
  2553. border-radius: 4px;
  2554. color: rgba(255, 255, 255, 1);
  2555. font-weight: bold;
  2556. font-size: 16px;
  2557. }
  2558. &>div {
  2559. color: rgba(0, 0, 0, 0.7);
  2560. font-weight: 800;
  2561. font-size: 18px;
  2562. }
  2563. }
  2564. .c_t72_wd_content {
  2565. width: 100%;
  2566. margin-top: 20px;
  2567. max-height: 100%;
  2568. overflow: auto;
  2569. flex-wrap: wrap;
  2570. display: flex;
  2571. align-items: center;
  2572. justify-content: center;
  2573. .na_m_item {
  2574. width: 100%;
  2575. height: auto;
  2576. margin: 10px 0;
  2577. }
  2578. .na_m_i_name {
  2579. width: fit-content;
  2580. max-width: 100%;
  2581. height: auto;
  2582. box-sizing: border-box;
  2583. padding: 10px 10px;
  2584. display: flex;
  2585. align-items: center;
  2586. border-radius: 10px 10px 0 0;
  2587. background-color: #9747ff;
  2588. color: #fff;
  2589. text-overflow: ellipsis;
  2590. overflow: hidden;
  2591. white-space: nowrap;
  2592. }
  2593. .aiName {
  2594. background-color: #0560fc;
  2595. }
  2596. .na_m_i_content {
  2597. padding: 10px;
  2598. border: solid 1px #e7e7e7;
  2599. box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
  2600. border-radius: 0 0 12px 12px;
  2601. background-color: #fff;
  2602. :deep(img) {
  2603. max-width: 100%;
  2604. }
  2605. }
  2606. .messageNode {
  2607. width: 100%;
  2608. height: auto;
  2609. box-sizing: border-box;
  2610. padding: 10px 10px;
  2611. border: 0.5px solid #e7e7e7;
  2612. border-radius: 12px;
  2613. gap: 10px;
  2614. margin-top: 20px;
  2615. }
  2616. .messageNodeArea {
  2617. width: 100%;
  2618. height: auto;
  2619. }
  2620. }
  2621. }
  2622. }
  2623. .c_t73 {
  2624. width: 100%;
  2625. min-height: 100%;
  2626. display: flex;
  2627. // align-items: center;
  2628. flex-direction: column;
  2629. height: auto;
  2630. padding: 40px;
  2631. .c_t73_title {
  2632. color: rgba(0, 0, 0, 0.9);
  2633. font-weight: 600;
  2634. font-size: 24px;
  2635. line-height: 24px;
  2636. }
  2637. .c_t73_type {
  2638. font-weight: 400;
  2639. font-size: 15px;
  2640. line-height: 21px;
  2641. letter-spacing: 0.5px;
  2642. color: rgba(0, 0, 0, 1);
  2643. opacity: 0.5;
  2644. margin: 10px 0;
  2645. }
  2646. .c_t73_msg {
  2647. display: flex;
  2648. align-items: center;
  2649. font-size: .9rem;
  2650. font-weight: 400;
  2651. gap: 1rem;
  2652. &>span {
  2653. text-decoration: underline;
  2654. cursor: pointer;
  2655. }
  2656. }
  2657. .c_t73_content {
  2658. width: 100%;
  2659. height: auto;
  2660. display: grid;
  2661. grid-template-columns: repeat(4, 1fr);
  2662. gap: 20px;
  2663. margin-top: 40px;
  2664. .c_t73_c_item {
  2665. width: 100%;
  2666. height: auto;
  2667. box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
  2668. box-sizing: border-box;
  2669. border-radius: 12px;
  2670. padding: 16px;
  2671. background: rgba(255, 255, 255, 0.6);
  2672. transition: 0.3s;
  2673. cursor: pointer;
  2674. overflow: hidden;
  2675. &:hover {
  2676. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  2677. background: rgba(255, 255, 255, 0.6);
  2678. }
  2679. .c_t73_c_i_top {
  2680. display: flex;
  2681. align-items: center;
  2682. gap: 10px;
  2683. width: 100%;
  2684. overflow: hidden;
  2685. &>span {
  2686. min-width: 25px;
  2687. height: 25px;
  2688. display: flex;
  2689. align-items: center;
  2690. justify-content: center;
  2691. background: rgba(252, 207, 0, 1);
  2692. border-radius: 4px;
  2693. color: rgba(255, 255, 255, 1);
  2694. font-weight: bold;
  2695. font-size: 14px;
  2696. }
  2697. &>div {
  2698. color: rgba(0, 0, 0, 0.7);
  2699. font-weight: 800;
  2700. }
  2701. }
  2702. .c_t73_c_i_bottom {
  2703. margin-top: 15px;
  2704. font-weight: 300;
  2705. font-size: 14px;
  2706. // height: 40px;
  2707. max-width: 100%;
  2708. overflow: hidden;
  2709. text-overflow: ellipsis;
  2710. display: -webkit-box;
  2711. -webkit-line-clamp: 2;
  2712. -webkit-box-orient: vertical;
  2713. img {
  2714. width: 100%;
  2715. max-height: 200px;
  2716. object-fit: cover;
  2717. }
  2718. }
  2719. }
  2720. }
  2721. .c_t73_workDetail {
  2722. width: 100%;
  2723. height: auto;
  2724. margin-top: 40px;
  2725. box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
  2726. box-sizing: border-box;
  2727. padding: 16px;
  2728. border-radius: 12px;
  2729. display: flex;
  2730. flex-direction: column;
  2731. .c_t73_wd_top {
  2732. width: 100%;
  2733. display: flex;
  2734. align-items: center;
  2735. gap: 15px;
  2736. &>img {
  2737. width: 25px;
  2738. height: 25px;
  2739. cursor: pointer;
  2740. }
  2741. &>span {
  2742. display: block;
  2743. width: 30px;
  2744. height: 30px;
  2745. display: flex;
  2746. align-items: center;
  2747. justify-content: center;
  2748. background: rgba(252, 207, 0, 1);
  2749. border-radius: 4px;
  2750. color: rgba(255, 255, 255, 1);
  2751. font-weight: bold;
  2752. font-size: 16px;
  2753. }
  2754. &>div {
  2755. color: rgba(0, 0, 0, 0.7);
  2756. font-weight: 800;
  2757. font-size: 18px;
  2758. }
  2759. }
  2760. .c_t73_wd_content {
  2761. width: 100%;
  2762. margin-top: 20px;
  2763. max-height: 100%;
  2764. overflow: auto;
  2765. flex-wrap: wrap;
  2766. display: flex;
  2767. align-items: center;
  2768. justify-content: center;
  2769. &>img {
  2770. max-width: 100%;
  2771. object-fit: cover;
  2772. }
  2773. }
  2774. }
  2775. }
  2776. }
  2777. }
  2778. .aiAnalysis {
  2779. width: 100%;
  2780. height: auto;
  2781. display: flex;
  2782. flex-direction: column;
  2783. padding: 1rem;
  2784. border: solid 1px #F6C82B;
  2785. border-left-width: 4px;
  2786. border-radius: 1rem;
  2787. gap: 1rem;
  2788. &>.ai_header {
  2789. display: flex;
  2790. align-items: center;
  2791. justify-content: space-between;
  2792. gap: 1rem;
  2793. &>div {
  2794. display: flex;
  2795. align-items: center;
  2796. gap: .5rem;
  2797. &>svg {
  2798. width: 1rem;
  2799. height: 1rem;
  2800. }
  2801. }
  2802. &>.ai_title {
  2803. color: #F7CD49;
  2804. font-weight: 500;
  2805. &>svg {
  2806. fill: #F7CD49;
  2807. width: 1.2rem;
  2808. height: 1.2rem;
  2809. }
  2810. }
  2811. &>.ai_refresh {
  2812. padding: .5rem 1rem;
  2813. border-radius: .5rem;
  2814. background: #F6C82B;
  2815. display: flex;
  2816. justify-content: center;
  2817. align-items: center;
  2818. cursor: pointer;
  2819. color: #000;
  2820. font-weight: bold;
  2821. font-size: .8rem;
  2822. gap: .5rem;
  2823. &>svg {
  2824. fill: #000;
  2825. width: .8rem;
  2826. height: .8rem;
  2827. }
  2828. &.disabled {
  2829. cursor: not-allowed !important;
  2830. background: #FEF8E9 !important;
  2831. }
  2832. }
  2833. }
  2834. &>.ai_content {
  2835. font-size: 1rem;
  2836. font-weight: 500;
  2837. :deep(table) {
  2838. border-collapse: collapse;
  2839. width: 100%;
  2840. margin: 0.5rem 0;
  2841. th,
  2842. td {
  2843. border: 1px solid #ddd;
  2844. padding: 0.5rem;
  2845. text-align: left;
  2846. }
  2847. th {
  2848. background: #f5f5f5;
  2849. }
  2850. }
  2851. }
  2852. &>.ai_echartsData {
  2853. display: flex;
  2854. flex-wrap: wrap;
  2855. gap: .5rem;
  2856. &>span {
  2857. padding: .2rem .5rem;
  2858. border-radius: .25rem;
  2859. background: #E6F4FF;
  2860. display: flex;
  2861. justify-content: center;
  2862. align-items: center;
  2863. color: #141517;
  2864. font-size: .75rem;
  2865. }
  2866. &>.title {
  2867. font-weight: 600;
  2868. }
  2869. &>.btn {
  2870. font-size: .9rem;
  2871. text-decoration: underline;
  2872. color: #F6C82B;
  2873. cursor: pointer;
  2874. }
  2875. }
  2876. &>.ai_updateTime {
  2877. font-size: .8rem;
  2878. font-weight: 500;
  2879. }
  2880. }
  2881. .nextAndUpBtn {
  2882. width: 100%;
  2883. height: auto;
  2884. display: grid;
  2885. grid-template-columns: 1fr 1fr;
  2886. margin-top: 20px;
  2887. gap: 15px;
  2888. &>span {
  2889. display: flex;
  2890. justify-content: center;
  2891. align-items: center;
  2892. width: 100%;
  2893. height: 40px;
  2894. border-radius: 5px;
  2895. font-size: 14px;
  2896. font-weight: 500;
  2897. color: #fff;
  2898. background: #f6c82b;
  2899. cursor: pointer;
  2900. }
  2901. &>.no_active {
  2902. background: #cccccc !important;
  2903. color: #999999 !important;
  2904. cursor: not-allowed !important;
  2905. pointer-events: none !important;
  2906. }
  2907. }
  2908. .c_title{
  2909. display: flex;
  2910. &>span {
  2911. flex: 1;
  2912. word-break: break-all;
  2913. }
  2914. }
  2915. .switch_btn{
  2916. display: flex;
  2917. align-items: center;
  2918. gap: .5rem;
  2919. &>.switch{
  2920. display: flex;
  2921. align-items: center;
  2922. gap: .5rem;
  2923. font-size: .8rem;
  2924. color: #141517;
  2925. +.switch{
  2926. margin-left: .5rem;
  2927. }
  2928. }
  2929. }
  2930. .bottom_btn{
  2931. display: flex;
  2932. align-items: center;
  2933. gap: 5px;
  2934. font-weight: 300;
  2935. font-size: 14px;
  2936. color: rgba(0, 0, 0, 0.7);
  2937. .bottom_like{
  2938. margin-left: auto;
  2939. cursor: pointer;
  2940. display: flex;
  2941. align-items: center;
  2942. gap: 5px;
  2943. color: rgba(0, 0, 0, 0.7);
  2944. &.active{
  2945. color: rgba(252, 207, 0, 1);
  2946. }
  2947. }
  2948. }
  2949. .cast_sreen_btn{
  2950. display: flex;
  2951. align-items: center;
  2952. gap: 5px;
  2953. font-weight: 300;
  2954. font-size: 14px;
  2955. color: rgba(0, 0, 0, 0.7);
  2956. cursor: pointer;
  2957. margin-left: auto;
  2958. border-radius: 5px;
  2959. border: solid 1px rgba(252, 207, 0, .7);
  2960. padding: .5rem 0.6rem;
  2961. min-width: 65px;
  2962. justify-content: center;
  2963. }
  2964. </style>