| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780 |
- <template>
- <div class="choiceQuestionDetailDialog">
- <div class="content" @click="clickContent(true)" :style="{
- width: slideWidth + 'px',
- height: slideHeight + 'px',
- }">
- <span v-show="false" class="closeIcon" @click.stop="closeSlideIndex()">
- <img src="../../../assets/img/close.png" />
- </span>
- <!-- 选择题 -->
- <div class="c_t45" v-if="workDetail && workDetail.type === '45' && props.showData">
- <div class="c_t45_title">
- <div class="c_title" v-if="props.showData.choiceQuestionListData[props.showData.workIndex]">
- <span>{{
- props.showData.choiceQuestionListData[props.showData.workIndex]
- .teststitle
- }}</span>
- </div>
- <div class="c_t45_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <div v-if="correctRate !== null" class="c_t45_correct_rate">{{ lang.ssAccuracy2 }} {{ correctRate }}%</div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
- <div class="switch">
- <Switch :value="canValue" @update:value="handleCanChange" />
- <span>{{ lang.ssShowResult }}</span>
- </div>
- <!-- <div class="switch">
- <Switch :value="answerValue" @update:value="handleAnswerChange" />
- <span>{{ lang.ssShowAnswer }}</span>
- </div> -->
- </div>
- </div>
- <!--<span class="c_t45_t_btn" :class="{'c_t45_t_btn_noActive': props.showData.workIndex <= 0}" @click="changeWorkIndex(0)">{{ lang.ssPrevQ }}</span>-->
- <!--<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>-->
- </div>
- <img class="c_t45_img" :src="props.showData.choiceQuestionListData[props.showData.workIndex]
- .timuList[0].src
- " v-if="props.showData.choiceQuestionListData[props.showData.workIndex] &&
- props.showData.choiceQuestionListData[props.showData.workIndex]
- .timuList.length > 0
- " @click.stop="previewImageToolRef.previewImage(props.showData.choiceQuestionListData[props.showData.workIndex]
- .timuList[0].src)" />
- <!-- <span class="c_t45_type" v-if="
- props.showData.choiceQuestionListData[props.showData.workIndex]
- .type === '1'
- ">{{ lang.ssSingleSel }}</span>
- <span class="c_t45_type" v-if="
- props.showData.choiceQuestionListData[props.showData.workIndex]
- .type === '2'
- ">{{ lang.ssMultiOpt }}</span> -->
- <!-- <span class="c_t45_type">{{ lang.ssChoiceQuestion }}</span> -->
- <div class="c_t45_echarts" :style="{
- width: slideWidth - 40 + 'px',
- }">
- <div id="echartsArea1" ref="echartsArea1"></div>
- </div>
- <div class="aiAnalysis" v-if="props.workArray.length > 0 && props.roleType == 1">
- <div class="ai_header">
- <div class="ai_title">
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- <path
- 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">
- </path>
- </svg>{{ lang.ssAnalysis }}
- </div>
- <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
- @click.stop="aiAnalysisRefresh45()">
- {{ lang.ssAIGenerate }}
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- </svg>
- </div>
- </div>
- <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json">
- {{ currentAnalysis.json.text }}
- </div>
- <div class="ai_echartsData" v-if="currentAnalysis && currentAnalysis.json.keyword">
- {{ currentAnalysis.json.keyword }}
- </div>
- <div class="generatingContent" v-if="currentAnalysis && currentAnalysis.loading">
- {{ lang.ssGeneratingContent }}...</div>
- <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
- </div>
- </div>
- <div class="cq_changeBtn" v-if="props.showData.choiceQuestionListData.length > 1">
- <div :class="{ cq_cb_disabled: props.showData.workIndex <= 0 }" @click.stop="changeWorkIndex(0)">
- <svg style="transform: rotate(-90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
- <path
- 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"
- fill=""></path>
- </svg>
- </div>
- <span>{{ props.showData.workIndex + 1 }}/{{ props.showData.choiceQuestionListData.length }}</span>
- <div :class="{ cq_cb_disabled: props.showData.workIndex >= props.showData.choiceQuestionListData.length - 1 }"
- @click.stop="changeWorkIndex(1)">
- <svg style="transform: rotate(90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
- <path
- 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"
- fill=""></path>
- </svg>
- </div>
- </div>
- </div>
- <!-- 投票 -->
- <div class="c_t45" v-if="workDetail && workDetail.type === '78' && props.showData">
- <div class="c_t45_title">
- <div class="c_title" v-if="props.showData.choiceQuestionListData[props.showData.workIndex]">
- <span>{{
- props.showData.choiceQuestionListData[props.showData.workIndex]
- .teststitle
- }}</span>
- </div>
- <div class="c_t45_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
- <div class="switch">
- <Switch :value="canValue" @update:value="handleCanChange" />
- <span>{{ lang.ssShowResult }}</span>
- </div>
- <div class="switch">
- <Switch :value="anonymousValue" @update:value="handleAnonymousChange" />
- <span>{{ anonymousValue ? lang.ssAnonymous : lang.ssRealName }}</span>
- </div>
- </div>
- </div>
- <!--<span class="c_t45_t_btn" :class="{'c_t45_t_btn_noActive': props.showData.workIndex <= 0}" @click="changeWorkIndex(0)">{{ lang.ssPrevQ }}</span>-->
- <!--<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>-->
- </div>
- <img class="c_t45_img" :src="props.showData.choiceQuestionListData[props.showData.workIndex]
- .timuList[0].src
- " v-if="props.showData.choiceQuestionListData[props.showData.workIndex] &&
- props.showData.choiceQuestionListData[props.showData.workIndex]
- .timuList.length > 0
- " @click.stop="previewImageToolRef.previewImage(props.showData.choiceQuestionListData[props.showData.workIndex]
- .timuList[0].src)" />
- <!-- <span class="c_t45_type" v-if="
- props.showData.choiceQuestionListData[props.showData.workIndex]
- .type === '1'
- ">{{ lang.ssSingleSel }}</span>
- <span class="c_t45_type" v-if="
- props.showData.choiceQuestionListData[props.showData.workIndex]
- .type === '2'
- ">{{ lang.ssMultiOpt }}</span> -->
- <!-- <span class="c_t45_type">{{ lang.ssChoiceQuestion }}</span> -->
- <div class="c_t45_echarts" :style="{
- width: slideWidth - 40 + 'px',
- }">
- <div id="echartsArea1" ref="echartsArea1"></div>
- </div>
- <!-- v-if="props.workArray.length > 0" -->
- <div class="aiAnalysis" v-if="false">
- <div class="ai_header">
- <div class="ai_title">
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- <path
- 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">
- </path>
- </svg>{{ lang.ssAnalysis }}
- </div>
- <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
- @click.stop="aiAnalysisRefresh78()">
- {{ lang.ssAIGenerate }}
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- </svg>
- </div>
- </div>
- <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json">
- {{ currentAnalysis.json.text }}
- </div>
- <div class="ai_echartsData" v-if="currentAnalysis && currentAnalysis.json.keyword">
- {{ currentAnalysis.json.keyword }}
- </div>
- <div class="generatingContent" v-if="currentAnalysis && currentAnalysis.loading">
- {{ lang.ssGeneratingContent }}...</div>
- <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
- </div>
- </div>
- <div class="cq_changeBtn" v-if="props.showData.choiceQuestionListData.length > 1">
- <div :class="{ cq_cb_disabled: props.showData.workIndex <= 0 }" @click.stop="changeWorkIndex(0)">
- <svg style="transform: rotate(-90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
- <path
- 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"
- fill=""></path>
- </svg>
- </div>
- <span>{{ props.showData.workIndex + 1 }}/{{ props.showData.choiceQuestionListData.length }}</span>
- <div :class="{ cq_cb_disabled: props.showData.workIndex >= props.showData.choiceQuestionListData.length - 1 }"
- @click.stop="changeWorkIndex(1)">
- <svg style="transform: rotate(90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
- <path
- 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"
- fill=""></path>
- </svg>
- </div>
- </div>
- </div>
- <!-- 问答题 -->
- <div class="c_t15" v-if="workDetail && workDetail.type === '15' && props.showData">
- <div class="c_t15_title">
- <div class="c_title">
- <span>{{ workDetail.json.answerQ }}</span>
- </div>
- </div>
- <span class="c_t15_type">{{ lang.ssQATest }}</span>
- <div class="c_t15_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
- <div class="switch">
- <Switch :value="canValue" @update:value="handleCanChange" />
- <span>{{ lang.ssShowResult }}</span>
- </div>
- <div class="switch">
- <Switch :value="likeValue" @update:value="handleLikeChange" />
- <span>{{ lang.ssLike }}</span>
- </div>
- </div>
- </div>
- <div class="c_t15_content" v-show="!lookWorkData">
- <div class="c_t15_c_item" v-for="item in processedWorkArray" :key="item.id" @click.stop="lookWork(item.id)">
- <div class="c_t15_c_i_top">
- <span>{{ item.name.charAt(0) }}</span>
- <div>{{ item.name }}</div>
- <div class="cast_sreen_btn" @click.stop="castScreen(item)"
- v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
- <IconCastScreen />
- {{ lang.ssCastScreen }}
- </div>
- </div>
- <div class="c_t15_c_i_bottom">
- <span v-html="item.content.answer"></span>
- </div>
- <div class="bottom_btn" v-if="likeValue">
- <div class="bottom_like" :class="{ 'active': item.isLikes }" @click.stop="handleLikeClick(item)">
- <IconThumbsUp />
- <span>{{ item.likesCount }}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="aiAnalysis" style="margin-top:1rem ;"
- v-if="processedWorkArray.length > 0 && lookWorkData === null && workDetail.type === '15' && props.roleType == 1"
- @click.stop="clickContent(false)">
- <div class="ai_header">
- <div class="ai_title">
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- <path
- 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">
- </path>
- </svg>{{ lang.ssAnalysis }}
- </div>
- <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
- @click.stop="aiAnalysisRefresh15()">
- {{ lang.ssAIGenerate }}
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- </svg>
- </div>
- </div>
- <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json">
- {{ currentAnalysis.json.text }}
- </div>
- <div class="ai_echartsData" v-if="currentAnalysis && currentAnalysis.json.keyword">
- <div class="title">{{ lang.ssKeyword }}:</div>
- <span v-for="(item, index) in currentAnalysis.json.keyword" :key="index">{{ item }}</span>
- <div class="btn" @click.stop="openEchatsDialog()">{{ lang.ssViewKeywordCloud }}</div>
- </div>
- <div class="generatingContent" v-if="currentAnalysis && currentAnalysis.generatingContent">{{
- lang.ssGeneratingContent }}...</div>
- <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
- </div>
- </div>
- <div class="c_t15_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
- <div class="c_t15_wd_top">
- <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen" />
- <span>{{ lookWorkData.name.charAt(0) }}</span>
- <div>{{ lookWorkData.name }}</div>
- <div class="cast_sreen_btn" @click.stop="exitCastScreen"
- v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
- <IconCastScreen />
- {{ lang.ssExitCastScreen }}
- </div>
- </div>
- <div class="c_t15_wd_content">
- <span v-html="lookWorkData.content.answer"></span>
- <div class="c_t15_wd_c_imageList" v-if="lookWorkData.content.fileList.length > 0">
- <img v-for="item in lookWorkData.content.fileList" :src="item.url" :key="item.uploadTime"
- @click.stop="lookImage(item.url)" />
- </div>
- </div>
- </div>
- </div>
- <!-- 拍照 -->
- <div class="c_t15" v-if="workDetail && workDetail.type === '79' && props.showData">
- <div class="c_t15_title">
- <div class="c_title">
- <span>{{ workDetail.json.answerQ }}</span>
- </div>
- </div>
- <span class="c_t15_type">{{ lang.ssPhoto }}</span>
- <div class="c_t15_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
- <div class="switch">
- <Switch :value="canValue" @update:value="handleCanChange" />
- <span>{{ lang.ssShowResult }}</span>
- </div>
- <div class="switch">
- <Switch :value="likeValue" @update:value="handleLikeChange" />
- <span>{{ lang.ssLike }}</span>
- </div>
- </div>
- </div>
- <div class="downloadBtn" @click.stop="downloadAll" :class="{ disabled: downloadLoading }"
- v-if="props.roleType == 1">
- <IconDownload />
- <span>{{ downloadLoading ? lang.ssDownloadLoading : lang.ssBatchDownload }}</span>
- </div>
- <div class="c_t15_content" v-show="!lookWorkData">
- <div class="c_t15_c_item" v-for="item in processedWorkArray" :key="item.id"
- @click.stop="item.content && item.content.fileList.length > 0 ? lookWork(item.id) : ''">
- <div class="c_t15_c_i_top">
- <span>{{ item.name.charAt(0) }}</span>
- <div>{{ item.name }}</div>
- <div class="cast_sreen_btn" @click.stop="castScreen(item)"
- v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
- <IconCastScreen />
- {{ lang.ssCastScreen }}
- </div>
- </div>
- <div class="c_t73_c_i_bottom" v-if="item.content && item.content.fileList.length > 0">
- <img :src="item.content.fileList[0].url" />
- </div>
- <div class="c_t73_c_i_bottom" v-else>
- <span>{{ lang.ssNoPhoto }}</span>
- </div>
- <div class="bottom_btn" v-if="likeValue">
- <div class="bottom_like" :class="{ 'active': item.isLikes }" @click.stop="handleLikeClick(item)">
- <IconThumbsUp />
- <span>{{ item.likesCount }}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="c_t79_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
- <div class="c_t79_wd_top">
- <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen" />
- <span>{{ lookWorkData.name.charAt(0) }}</span>
- <div>{{ lookWorkData.name }}</div>
- <div class="cast_sreen_btn" @click.stop="exitCastScreen"
- v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
- <IconCastScreen />
- {{ lang.ssExitCastScreen }}
- </div>
- </div>
- <div class="c_t79_wd_content">
- <img :src="lookWorkData.content.fileList[lookWorkIndex].url"
- @click.stop="lookImage(lookWorkData.content.fileList[lookWorkIndex].url)" />
- </div>
- <!-- <div class="nextAndUpBtn" v-if="lookWorkData.content.fileList.length>1">
- <span :class="{no_active:lookWorkIndex==0}" @click="changelookWorkIndex(0)">{{ lang.ssPrevP }}</span>
- <span :class="{no_active:lookWorkData.content.fileList.length-1<=lookWorkIndex}" @click="changelookWorkIndex(1)">{{ lang.ssNextP }}</span>
- </div> -->
- <div class="cq_changeBtn" v-if="lookWorkData.content.fileList.length > 1">
- <div :class="{ cq_cb_disabled: lookWorkIndex <= 0 }" @click.stop="changelookWorkIndex(0)">
- <svg style="transform: rotate(-90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
- <path
- 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"
- fill=""></path>
- </svg>
- </div>
- <span>{{ lookWorkIndex + 1 }}/{{ lookWorkData.content.fileList.length }}</span>
- <div :class="{ cq_cb_disabled: lookWorkIndex >= lookWorkData.content.fileList.length - 1 }"
- @click.stop="changelookWorkIndex(1)">
- <svg style="transform: rotate(90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
- <path
- 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"
- fill=""></path>
- </svg>
- </div>
- </div>
- </div>
- </div>
- <!-- 文件上传 -->
- <div class="c_t15" v-if="workDetail && workDetail.type === '84' && props.showData">
- <div class="c_t15_title">
- <div class="c_title">
- <span>{{ workDetail.json.answerQ }}</span>
- </div>
- </div>
- <span class="c_t15_type">{{ lang.ssFile }}</span>
- <div class="c_t15_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
- <div class="switch">
- <Switch :value="canValue" @update:value="handleCanChange" />
- <span>{{ lang.ssShowResult }}</span>
- </div>
- <div class="switch">
- <Switch :value="likeValue" @update:value="handleLikeChange" />
- <span>{{ lang.ssLike }}</span>
- </div>
- </div>
- </div>
- <div class="downloadBtn" @click.stop="downloadAll" :class="{ disabled: downloadLoading }"
- v-if="props.roleType == 1">
- <IconDownload />
- <span>{{ downloadLoading ? lang.ssDownloadLoading : lang.ssBatchDownload }}</span>
- </div>
- <div class="c_t15_content" v-show="!lookWorkData">
- <div class="c_t15_c_item" v-for="item in processedWorkArray" :key="item.id"
- @click.stop="item.content && item.content.fileList.length > 0 ? lookWork(item.id) : ''">
- <div class="c_t15_c_i_top">
- <span>{{ item.name.charAt(0) }}</span>
- <div>{{ item.name }}</div>
- <div class="cast_sreen_btn" @click.stop="castScreen(item)"
- v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
- <IconCastScreen />
- {{ lang.ssCastScreen }}
- </div>
- </div>
- <div class="bottom_btn" v-if="likeValue">
- <div class="bottom_like" :class="{ 'active': item.isLikes }" @click.stop="handleLikeClick(item)">
- <IconThumbsUp />
- <span>{{ item.likesCount }}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="c_t79_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
- <div class="c_t79_wd_top">
- <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen" />
- <span>{{ lookWorkData.name.charAt(0) }}</span>
- <div>{{ lookWorkData.name }}</div>
- <div class="cast_sreen_btn" @click.stop="exitCastScreen"
- v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
- <IconCastScreen />
- {{ lang.ssExitCastScreen }}
- </div>
- </div>
- <div class="c_t79_wd_content">
- <!-- 图片 -->
- <img v-if="getFileType(lookWorkData.content.fileList[lookWorkIndex].url) === 'image'"
- :src="lookWorkData.content.fileList[lookWorkIndex].url"
- @click.stop="lookImage(lookWorkData.content.fileList[lookWorkIndex])" />
- <!-- 视频 -->
- <video v-else-if="getFileType(lookWorkData.content.fileList[lookWorkIndex].url) === 'video'"
- :src="lookWorkData.content.fileList[lookWorkIndex].url" controls
- @click.stop="lookImage(lookWorkData.content.fileList[lookWorkIndex])" />
- <!-- 文档/PDF/Office -->
- <div v-else class="file-preview-card" @click.stop="lookImage(lookWorkData.content.fileList[lookWorkIndex])">
- <div class="file-preview-icon">
- {{ getFileIcon(getFileType(lookWorkData.content.fileList[lookWorkIndex].url)) }}
- </div>
- <div class="file-preview-name">
- {{ lookWorkData.content.fileList[lookWorkIndex].name || '文件' }}
- </div>
- <div class="file-preview-action">{{ lang.ssClickToPreview }}</div>
- </div>
- </div>
- <!-- <div class="nextAndUpBtn" v-if="lookWorkData.content.fileList.length>1">
- <span :class="{no_active:lookWorkIndex==0}" @click="changelookWorkIndex(0)">{{ lang.ssPrevP }}</span>
- <span :class="{no_active:lookWorkData.content.fileList.length-1<=lookWorkIndex}" @click="changelookWorkIndex(1)">{{ lang.ssNextP }}</span>
- </div> -->
- <div class="cq_changeBtn" v-if="lookWorkData.content.fileList.length > 1">
- <div :class="{ cq_cb_disabled: lookWorkIndex <= 0 }" @click.stop="changelookWorkIndex(0)">
- <svg style="transform: rotate(-90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
- <path
- 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"
- fill=""></path>
- </svg>
- </div>
- <span>{{ lookWorkIndex + 1 }}/{{ lookWorkData.content.fileList.length }}</span>
- <div :class="{ cq_cb_disabled: lookWorkIndex >= lookWorkData.content.fileList.length - 1 }"
- @click.stop="changelookWorkIndex(1)">
- <svg style="transform: rotate(90deg);" viewBox="0 0 1024 1024" version="1.1" width="200" height="200">
- <path
- 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"
- fill=""></path>
- </svg>
- </div>
- </div>
- </div>
- </div>
- <!-- AI应用 -->
- <div class="c_t72" v-if="props.showData && props.showData.toolType === 72">
- <div class="c_t72_title">
- <div class="c_title">
- <span>{{ lang.ssAiApp }}</span>
- </div>
- </div>
- <span class="c_t72_type">{{ lang.ssAiApp }}</span>
- <div class="c_t72_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{ props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
- <div class="switch">
- <Switch :value="canValue" @update:value="handleCanChange" />
- <span>{{ lang.ssShowResult }}</span>
- </div>
- <div class="switch">
- <Switch :value="likeValue" @update:value="handleLikeChange" />
- <span>{{ lang.ssLike }}</span>
- </div>
- </div>
- </div>
- <div class="c_t72_content" v-show="!lookWorkData">
- <div class="c_t72_c_item" v-for="item in processedWorkArray" :key="item.id" @click.stop="lookWork(item.id)">
- <div class="c_t72_c_i_top">
- <span>{{ item.name.charAt(0) }}</span>
- <div>{{ item.name }}</div>
- <div class="cast_sreen_btn" @click.stop="castScreen(item)"
- v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
- <IconCastScreen />
- {{ lang.ssCastScreen }}
- </div>
- </div>
- <div class="bottom_btn" v-if="likeValue">
- <div class="bottom_like" :class="{ 'active': item.isLikes }" @click.stop="handleLikeClick(item)">
- <IconThumbsUp />
- <span>{{ item.likesCount }}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="aiAnalysis" style="margin-top:1rem ;"
- v-if="processedWorkArray.length > 0 && lookWorkData === null && props.showData.toolType === 72 && props.roleType == 1"
- @click.stop="clickContent(false)">
- <div class="ai_header">
- <div class="ai_title">
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- <path
- 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">
- </path>
- </svg>{{ lang.ssAnalysis }}
- </div>
- <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
- @click.stop="aiAnalysisRefresh72()">
- {{ lang.ssAIGenerate }}
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- </svg>
- </div>
- </div>
- <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json" v-html="currentAnalysis.json.text">
- </div>
- <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
- </div>
- </div>
- <div class="c_t72_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
- <div class="c_t72_wd_top">
- <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen" />
- <span>{{ lookWorkData.name.charAt(0) }}</span>
- <div>{{ lookWorkData.name }}</div>
- <div class="cast_sreen_btn" @click.stop="exitCastScreen"
- v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
- <IconCastScreen />
- {{ lang.ssExitCastScreen }}
- </div>
- </div>
- <div class="c_t72_wd_content">
- <template v-for="(item, index) in lookWorkData.content" :key="item.id">
- <div class="messageNodeArea" v-if="item.messages || item.imageUrls">
- <div class="messageNode">
- <div class="mn_title">{{ lang.ssNodeTitle.replace(/\*/g, String(index + 1)) }}</div>
- <div class="mn_content">
- <template v-for="(item2, index2) in item.messages" :key="`${index}-${index2}`">
- <div>
- <div class="na_m_item" v-if="item2.role == 'user' && item2.content">
- <div class="na_m_i_name">
- {{ item2.sender }}
- </div>
- <div class="na_m_i_content" v-html="item2.content"></div>
- </div>
- <div class="na_m_item" v-if="item2.role == 'assistant' && item2.content">
- <div class="na_m_i_name aiName">
- {{ item2.sender }}
- </div>
- <div class="na_m_i_content" v-html="item2.content"></div>
- </div>
- </div>
- </template>
- <template v-if="item.imageUrls" v-for="(item3, index3) in item.imageUrls"
- :key="`${index}-${index3}`">
- <div class="na_m_item">
- <div class="na_m_i_name">
- {{ item.type }}
- </div>
- <div class="na_m_i_content">
- <img @click.stop="lookImage(item3)" style="height: 100px;width: auto;cursor: pointer;"
- :src="item3" />
- </div>
- </div>
- </template>
- </div>
- </div>
- </div>
- </template>
- </div>
- </div>
- </div>
- <!-- H5页面 -->
- <div class="c_t73" v-if="props.showData && props.showData.toolType === 73">
- <div class="c_t73_title">
- <div class="c_title">
- <span>{{ lang.ssPageImage }}</span>
- </div>
- </div>
- <span class="c_t73_type">{{ lang.ssHPage }}</span>
- <div class="c_t73_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{
- props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- <div class="switch_btn" v-if="props.isCreator && props.roleType == 1">
- <div class="switch">
- <Switch :value="canValue" @update:value="handleCanChange" />
- <span>{{ lang.ssShowResult }}</span>
- </div>
- <div class="switch">
- <Switch :value="likeValue" @update:value="handleLikeChange" />
- <span>{{ lang.ssLike }}</span>
- </div>
- </div>
- </div>
- <div class="c_t73_content" v-show="!lookWorkData">
- <div class="c_t73_c_item" v-for="item in processedWorkArray" :key="item.id" @click.stop="lookWork(item.id)">
- <div class="c_t73_c_i_top">
- <span>{{ item.name.charAt(0) }}</span>
- <div>{{ item.name }}</div>
- <div class="cast_sreen_btn" @click.stop="castScreen(item)"
- v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
- <IconCastScreen />
- {{ lang.ssCastScreen }}
- </div>
- </div>
- <div class="c_t73_c_i_bottom">
- <img :src="item.content" />
- </div>
- <div class="bottom_btn" v-if="likeValue">
- <div class="bottom_like" :class="{ 'active': item.isLikes }" @click.stop="handleLikeClick(item)">
- <IconThumbsUp />
- <span>{{ item.likesCount }}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="c_t73_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
- <div class="c_t73_wd_top">
- <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen" />
- <span>{{ lookWorkData.name.charAt(0) }}</span>
- <div>{{ lookWorkData.name }}</div>
- <div class="cast_sreen_btn" @click.stop="exitCastScreen"
- v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
- <IconCastScreen />
- {{ lang.ssExitCastScreen }}
- </div>
- </div>
- <div class="c_t73_wd_content">
- <img :src="lookWorkData.content" />
- </div>
- </div>
- </div>
- <!-- kwl表格 -->
- <div class="c_t72" v-if="props.showData && props.showData.toolType === 831">
- <div class="c_t72_title">
- <div class="c_title">
- <span>{{ lang.ssKwlTitle }}</span>
- </div>
- </div>
- <span class="c_t72_type">{{ lang.ssKwlTitle }}</span>
- <div class="c_t72_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{
- props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- </div>
- <div class="c_t72_content" v-show="!lookWorkData">
- <div class="c_t72_c_item" v-for="item in processedWorkArray" :key="item.id" @click.stop="lookWork(item.id)">
- <div class="c_t72_c_i_top">
- <span>{{ item.name.charAt(0) }}</span>
- <div>{{ item.name }}</div>
- <div class="cast_sreen_btn" @click.stop="castScreen(item)"
- v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
- <IconCastScreen />
- {{ lang.ssCastScreen }}
- </div>
- </div>
- <div class="bottom_btn" v-if="likeValue">
- <div class="bottom_like" :class="{ 'active': item.isLikes }" @click.stop="handleLikeClick(item)">
- <IconThumbsUp />
- <span>{{ item.likesCount }}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="aiAnalysis" style="margin-top:1rem ;"
- v-if="processedWorkArray.length > 0 && lookWorkData === null && props.showData.toolType == '831' && props.roleType == 1"
- @click.stop="clickContent(false)">
- <div class="ai_header">
- <div class="ai_title">
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- <path
- 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">
- </path>
- </svg>{{ lang.ssAnalysis }}
- </div>
- <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
- @click.stop="aiAnalysisRefresh831()">
- {{ lang.ssAIGenerate }}
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- </svg>
- </div>
- </div>
- <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json" v-html="currentAnalysis.json.text">
- </div>
- <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
- </div>
- </div>
- <div class="c_t72_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
- <div class="c_t72_wd_top">
- <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen" />
- <span>{{ lookWorkData.name.charAt(0) }}</span>
- <div>{{ lookWorkData.name }}</div>
- <div class="cast_sreen_btn" @click.stop="exitCastScreen"
- v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
- <IconCastScreen />
- {{ lang.ssExitCastScreen }}
- </div>
- </div>
- <div class="c_t831_wd_content">
- <!-- KWL 三栏 -->
- <div class="kwl-grid" v-if="lookWorkData.content">
- <!-- K - 已知 -->
- <div class="kwl-col kwl-col--k">
- <div class="kwl-col__header">
- <span class="kwl-col__badge">K</span>
- <span class="kwl-col__label">{{ lang.ssKwlKnown }}</span>
- </div>
- <div class="kwl-col__body">
- <template v-if="lookWorkData.content.know.length">
- <div v-for="(item, idx) in lookWorkData.content.know" :key="'k-' + idx" class="kwl-item">{{ item }}
- </div>
- </template>
- <div v-else class="kwl-empty">{{ lang.ssNone }}</div>
- </div>
- </div>
- <!-- W - 想知 -->
- <div class="kwl-col kwl-col--w">
- <div class="kwl-col__header">
- <span class="kwl-col__badge">W</span>
- <span class="kwl-col__label">{{ lang.ssKwlWant }}</span>
- </div>
- <div class="kwl-col__body">
- <template v-if="lookWorkData.content.want.length">
- <div v-for="(item, idx) in lookWorkData.content.want" :key="'w-' + idx" class="kwl-item">{{ item }}
- </div>
- </template>
- <div v-else class="kwl-empty">{{ lang.ssNone }}</div>
- </div>
- </div>
- <!-- L - 已学 -->
- <div class="kwl-col kwl-col--l">
- <div class="kwl-col__header">
- <span class="kwl-col__badge">L</span>
- <span class="kwl-col__label">{{ lang.ssKwlLearned }}</span>
- </div>
- <div class="kwl-col__body">
- <template v-if="lookWorkData.content.learned.length">
- <div v-for="(item, idx) in lookWorkData.content.learned" :key="'l-' + idx" class="kwl-item">{{ item
- }}
- </div>
- </template>
- <div v-else class="kwl-empty">{{ lang.ssNone }}</div>
- </div>
- </div>
- </div>
- <!-- 学习反思 -->
- <div class="kwl-reflection">
- <div class="kwl-reflection__header">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
- <path d="M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z" />
- </svg>
- <span>{{ lang.ssKwlReflection }}</span>
- </div>
- <div class="kwl-reflection__body">
- {{ lookWorkData.content.reflection ? lookWorkData.content.reflection : lang.ssNone }}
- </div>
- </div>
- </div>
- </div>
-
- </div>
- <!-- 六顶思考帽 -->
- <div class="c_t72" v-if="props.showData && props.showData.toolType === 832">
- <div class="c_t72_title">
- <div class="c_title">
- <span>{{ lang.ssSixHatTitle }}</span>
- </div>
- </div>
- <span class="c_t72_type">{{ lang.ssSixHatTitle }}</span>
- <div class="c_t72_msg" v-if="props.roleType == 1">
- <div>{{ lang.ssAnswerCount }} {{ props.workArray.length }}<span
- v-if="props.unsubmittedStudents.length > 0">/{{
- props.workArray.length +
- props.unsubmittedStudents.length
- }}</span></div>
- <span v-if="props.unsubmittedStudents.length > 0" @click.stop="viewUnsubmittedStudents()">{{
- lang.ssViewSubmitStatus2 }}</span>
- </div>
- <div class="c_t72_content" v-show="!lookWorkData">
- <div class="c_t72_c_item" v-for="item in processedWorkArray" :key="item.id" @click.stop="lookWork(item.id)">
- <div class="c_t72_c_i_top">
- <span>{{ item.name.charAt(0) }}</span>
- <div>{{ item.name }}</div>
- <div class="cast_sreen_btn" @click.stop="castScreen(item)"
- v-if="props.isCreator && props.roleType == 1 && isFollowModeActive && canValue">
- <IconCastScreen />
- {{ lang.ssCastScreen }}
- </div>
- </div>
- <div class="bottom_btn" v-if="likeValue">
- <div class="bottom_like" :class="{ 'active': item.isLikes }" @click.stop="handleLikeClick(item)">
- <IconThumbsUp />
- <span>{{ item.likesCount }}</span>
- </div>
- </div>
- </div>
- </div>
- <!-- processedWorkArray.length > 0 && lookWorkData === null && props.showData.toolType == '832' && props.roleType == 1 -->
- <div class="aiAnalysis" style="margin-top:1rem ;"
- v-if="processedWorkArray.length > 0 && lookWorkData === null && props.showData.toolType == '832' && props.roleType == 1"
- @click.stop="clickContent(false)">
- <div class="ai_header">
- <div class="ai_title">
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- <path
- 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">
- </path>
- </svg>{{ lang.ssAnalysis }}
- </div>
- <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
- @click.stop="aiAnalysisRefresh832()">
- {{ lang.ssAIGenerate }}
- <svg viewBox="0 0 1024 1024" width="200" height="200">
- <path
- 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">
- </path>
- </svg>
- </div>
- </div>
- <div class="ai_content" v-if="currentAnalysis && currentAnalysis.json" v-html="currentAnalysis.json.text">
- </div>
- <div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
- </div>
- </div>
- <div class="c_t72_workDetail" v-if="lookWorkData" @click.stop="clickContent(false)">
- <div class="c_t72_wd_top">
- <img src="../../../assets/img/arrow_left.png" @click.stop="lookWork('')" v-if="!isCastScreen" />
- <span>{{ lookWorkData.name.charAt(0) }}</span>
- <div>{{ lookWorkData.name }}</div>
- <div class="cast_sreen_btn" @click.stop="exitCastScreen"
- v-if="(props.isCreator && props.roleType == 1 && isCastScreen) || (!isFollowModeActive && isCastScreen)">
- <IconCastScreen />
- {{ lang.ssExitCastScreen }}
- </div>
- </div>
- <div class="c_t832_wd_content" v-if="lookWorkData.content">
- <!-- 成员列表 -->
- <div class="sixhat-members" v-if="lookWorkData.content.members && lookWorkData.content.members.length">
- <div class="sixhat-members__header">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
- <path d="M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2" />
- <circle cx="9" cy="7" r="4" />
- <path d="M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75" />
- </svg>
- <span>{{ lang.ssSixHatGroupWork }}</span>
- </div>
- <div class="sixhat-members__list">
- <span v-for="(m, idx) in lookWorkData.content.members" :key="'m-' + idx" class="sixhat-member-chip">{{ m.name }}</span>
- </div>
- </div>
- <!-- 场景描述 -->
- <div class="sixhat-scenario" v-if="lookWorkData.content.scenario">
- <div class="sixhat-scenario__text">{{ lookWorkData.content.scenario }}</div>
- </div>
- <!-- 六顶思考帽内容 -->
- <div class="sixhat-grid">
- <div v-for="hat in sixHatList" :key="hat.key" class="sixhat-col" :class="'sixhat-col--' + hat.key">
- <div class="sixhat-col__header">
- <span class="sixhat-col__dot"></span>
- <span class="sixhat-col__label">{{ hat.label }}</span>
- </div>
- <div class="sixhat-col__body">
- <div v-if="hat.content" class="sixhat-item">{{ hat.content }}</div>
- <div v-else class="kwl-empty">{{ lang.ssNone }}</div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- <previewImageTool ref="previewImageToolRef" />
- <!-- 视频预览弹窗 -->
- <Teleport to="body">
- <div v-if="videoPreviewVisible" class="file-preview-modal" @click.self="closeVideoPreview">
- <div class="file-preview-close" @click="closeVideoPreview">
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
- <line x1="18" y1="6" x2="6" y2="18" />
- <line x1="6" y1="6" x2="18" y2="18" />
- </svg>
- </div>
- <video :src="videoPreviewUrl" controls autoplay class="file-preview-video"></video>
- </div>
- </Teleport>
- <!-- 文档预览弹窗 -->
- <Teleport to="body">
- <div v-if="docPreviewVisible" class="file-preview-modal" @click.self="closeDocPreview">
- <div class="file-preview-close" @click="closeDocPreview">
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
- <line x1="18" y1="6" x2="6" y2="18" />
- <line x1="6" y1="6" x2="18" y2="18" />
- </svg>
- </div>
- <iframe v-if="docPreviewType === 'pdf' || docPreviewType === 'office'"
- :src="getDocPreviewUrl(docPreviewType, docPreviewUrl)" class="file-preview-frame" frameborder="0"></iframe>
- <div v-else class="file-preview-office">
- <div class="file-preview-office-icon">📎</div>
- <div class="file-preview-office-name">{{ docPreviewUrl.split('/').pop() }}</div>
- <a :href="docPreviewUrl" target="_blank" class="file-preview-office-link">
- {{ lang.ssClickToOpen }}
- </a>
- </div>
- </div>
- </Teleport>
- <selectUserDialog ref="selectUserDialogRef" />
- <echartsDialog ref="echartsDialogRef" />
- </div>
- </template>
- <script setup lang="ts">
- import { computed, ref, watch, onUnmounted, nextTick, onMounted } from 'vue'
- import * as echarts from 'echarts'
- import previewImageTool from '../../components/tool/previewImageTool.vue'
- import MarkdownIt from 'markdown-it'
- import useImport from '@/hooks/useImport'
- import { lang } from '@/main'
- import selectUserDialog from './selectUserDialog.vue'
- import echartsDialog from './echartsDialog.vue'
- import { chat_stream, chat_no_stream } from '@/tools/aiChat'
- import axios from '@/services/config'
- import Switch from '@/components/Switch.vue'
- import { likeWork, addPPTOp2 } from '@/services/course'
- const props = defineProps<{
- visible: number[];
- workIndex: number;
- slideWidth: number;
- slideHeight: number;
- slideIndex: number;
- showData: any;
- workArray: any[];
- unsubmittedStudents: any[];
- courseDetail: any;
- userId: string;
- workId: string;
- cid: string;
- workUrl: string;
- roleType: number;
- resultArray: { [key: string]: any };
- isCreator: boolean;
- isFollowModeActive: boolean;
- courseid: string;
- }>()
- const emit = defineEmits<{
- (e: 'update:visible', v: number[]): void;
- (e: 'changeWorkIndex', v: number): void;
- (e: 'setIsResultArray', v: boolean, key: string): void;
- (e: 'successLike'): void;
- (e: 'sendMessage', v: any): void;
- }>()
- const visible = computed({
- get: () => props.visible,
- set: (v: number[]) => emit('update:visible', v),
- })
- const workDetail = computed(() => {
- if (props.showData) {
- return props.showData.workDetail
- }
- return null
- })
- const canValue = ref(props.resultArray?.can ?? false)
- // 选择题正确率
- const correctRate = computed(() => {
- if (!props.showData?.choiceQuestionListData?.length) return null
- const _work = props.showData.choiceQuestionListData[props.showData.workIndex]
- if (!_work?.choiceUser?.length) return null
- let total = 0
- let correct = 0
- _work.choiceUser.forEach((op: any) => {
- total += (op.user?.length || 0)
- if (op.isAnswer) correct += (op.user?.length || 0)
- })
- if (total === 0) return null
- return Math.round((correct / total) * 100)
- })
- watch(() => props.resultArray?.can, (newVal) => {
- canValue.value = newVal
- })
- const likeValue = ref(props.resultArray?.like ?? false)
- watch(() => props.resultArray?.like, (newVal) => {
- likeValue.value = newVal
- })
- const anonymousValue = ref(props.resultArray?.anonymous ?? false)
- watch(() => props.resultArray?.anonymous, (newVal) => {
- anonymousValue.value = newVal
- })
- const answerValue = ref(props.resultArray?.answer ?? false)
- watch(() => props.resultArray?.answer, (newVal) => {
- answerValue.value = newVal
- setEchartsArea1()
- })
- const handleCanChange = (value: boolean) => {
- console.log(value)
- console.log(props.resultArray)
- if (workDetail.value.type === '45') {
- handleAnswerChange(value)
- }
- emit('setIsResultArray', value, 'can')
- }
- const handleLikeChange = (value: boolean) => {
- if (value && !canValue.value) {
- emit('setIsResultArray', true, 'can')
- }
- console.log(value)
- console.log(props.resultArray)
- emit('setIsResultArray', value, 'like')
- }
- const handleAnonymousChange = (value: boolean) => {
- console.log(value)
- console.log(props.resultArray)
- emit('setIsResultArray', value, 'anonymous')
- }
- const handleAnswerChange = (value: boolean) => {
- console.log(value)
- console.log(props.resultArray)
- emit('setIsResultArray', value, 'answer')
- }
- import _ from 'lodash'
- import type { workerData } from 'worker_threads'
- const handleLikeClick = _.debounce((item: any) => {
- likeWork({
- wid: item.id,
- lid: props.userId,
- t: 1,
- c: ''
- })
- emit('successLike')
- }, 300)
- // 预览图片组件
- const previewImageToolRef = ref<any>(null)
- // 选择用户组件
- const selectUserDialogRef = ref<any>(null)
- // 词云图组件
- const echartsDialogRef = ref<any>(null)
- // ai分析数据
- const aiAnalysisData = ref<Array<any>>([])
- const md = new MarkdownIt({
- html: true,
- })
- const { getFile } = useImport()
- // 判断是否是 URL 链接
- const isUrl = (str: string): boolean => {
- try {
- const url = new URL(str)
- return (url.protocol === 'http:' || url.protocol === 'https:') && str.includes('json')
- }
- catch {
- return false
- }
- }
- // 从链接获取文件内容
- const loadContentFromUrl = async (url: string): Promise<string> => {
- try {
- const fileData = await getFile(url)
- if (fileData && fileData.data) {
- // 将 ArrayBuffer 转为字符串
- const uint8Array = new Uint8Array(fileData.data)
- const jsonStr = new TextDecoder('utf-8').decode(uint8Array)
- return jsonStr
- }
- return ''
- }
- catch (error) {
- console.error('获取文件内容失败:', error)
- return ''
- }
- }
- // 处理单个作业内容
- const processWorkContent = async (content: string, toolType: number): Promise<any> => {
- let contentToParse = content
- // 如果是链接,先获取文件内容
- if (isUrl(content)) {
- contentToParse = await loadContentFromUrl(content)
- }
- if (!contentToParse) {
- return null
- }
- try {
- if ([45, 15, 78, 79, 84, 831, 832].includes(toolType)) {
- return JSON.parse(decodeURIComponent(contentToParse))
- }
- else if (toolType === 72) {
- const parsed = JSON.parse(contentToParse)
- if (Array.isArray(parsed)) {
- parsed.forEach((item: any) => {
- if (item.messages && item.messages.length) {
- item.messages.forEach((item2: any) => {
- // 如果已经包含html标签则不再渲染
- if (
- !/^(\s*<[^>]+>.*<\/[^>]+>\s*|<[^>]+\/>\s*)$/s.test(
- item2.content.trim()
- )
- ) {
- item2.content = item2.content.replace(/</g, '<').replace(/"/g, '"').replace(/>/g, '>')
- item2.content = md.render(item2.content)
- }
- })
- }
- })
- }
- return parsed
- }
- return contentToParse
- }
- catch (error) {
- console.error('解析内容失败:', error)
- return null
- }
- }
- const processedWorkArray = ref<any[]>([])
- // 监听 workArray 和 showData 变化
- watch(
- () => [props.workArray, props.showData?.toolType],
- async () => {
- if (props.workArray && props.showData) {
- const _workArray = JSON.parse(JSON.stringify(props.workArray))
- // 处理每个作业内容
- for (const i of _workArray) {
- if (i.content) {
- const processedContent = await processWorkContent(i.content, props.showData.toolType)
- if (processedContent !== null) {
- i.content = processedContent
- }
- }
- }
- processedWorkArray.value = _workArray
- handleChartResize()
- }
- else {
- processedWorkArray.value = []
- }
- },
- { immediate: true, deep: true }
- )
- // 关闭对应的作业详细页面
- const closeSlideIndex = () => {
- visible.value = visible.value.filter((v) => v !== props.slideIndex)
- }
- // 切换题目
- const changeWorkIndex = (type: number) => {
- emit('changeWorkIndex', type)
- // console.log(props.workIndex, props.showData.choiceQuestionListData.length)
- // if (type === 0 && props.workIndex > 0) {
- // emit('changeWorkIndex', 0)
- // }
- // else if (type === 1 && props.workIndex < props.showData.choiceQuestionListData.length) {
- // emit('changeWorkIndex', props.workIndex + 1)
- // }
- }
- // 选择题图表div
- const echartsArea1 = ref<any>(null)
- // 查看的作业详细id
- const lookWorkDetail = ref<string>('')
- // 下载加载状态
- const downloadLoading = ref(false)
- // 查看作业详细的数据
- const lookWorkData = computed(() => {
- let _result = null
- if (lookWorkDetail.value && processedWorkArray.value.length > 0) {
- const _workFind = processedWorkArray.value.find(
- (i: any) => i.id === lookWorkDetail.value
- )
- if (_workFind) {
- _result = _workFind
- }
- }
- console.log(_result)
- return _result
- })
- // 六顶思考帽配置
- const hatConfig = [
- { key: 'white', label: lang.ssSixHatWhite, color: '#9ca3af', bg: '#f3f4f6' },
- { key: 'red', label: lang.ssSixHatRed, color: '#ef4444', bg: '#fef2f2' },
- { key: 'black', label: lang.ssSixHatBlack, color: '#1f2937', bg: '#374151' },
- { key: 'yellow', label: lang.ssSixHatYellow, color: '#f59e0b', bg: '#fffbeb' },
- { key: 'green', label: lang.ssSixHatGreen, color: '#22c55e', bg: '#f0fdf4' },
- { key: 'blue', label: lang.ssSixHatBlue, color: '#3b82f6', bg: '#eff6ff' },
- ]
- // 六顶思考帽内容列表(根据学生选择 hats 过滤)
- const sixHatList = computed(() => {
- if (!lookWorkData.value?.content) return []
- const hats = lookWorkData.value.content.hats || []
- const c = lookWorkData.value.content.hatContent || {}
- return hatConfig
- .filter(h => hats.includes(h.key))
- .map(h => ({ ...h, content: c[h.key] || '' }))
- })
- // 判断文件类型
- const getFileType = (url: string): 'image' | 'video' | 'pdf' | 'office' | 'other' => {
- if (!url) return 'other'
- const lower = url.toLowerCase().split('?')[0]
- if (/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/.test(lower)) return 'image'
- if (/\.(mp4|webm|ogg|mov|avi)$/.test(lower)) return 'video'
- if (/\.(pdf)$/.test(lower)) return 'pdf'
- if (/\.(doc|docx|xls|xlsx|ppt|pptx)$/.test(lower)) return 'office'
- return 'other'
- }
- const getFileIcon = (type: string) => {
- switch (type) {
- case 'pdf': return '📄'
- case 'office': return '📝'
- case 'video': return '🎬'
- default: return '📎'
- }
- }
- // 查看文件(图片/视频/文档)
- const videoPreviewVisible = ref(false)
- const videoPreviewUrl = ref('')
- const docPreviewVisible = ref(false)
- const docPreviewUrl = ref('')
- const docPreviewType = ref('')
- // 文档预览(PDF / Office 均使用 Microsoft Office Online Viewer)
- const getDocPreviewUrl = (type: string, url: string) => {
- if (type === 'office') {
- return `https://view.officeapps.live.com/op/view.aspx?src=${encodeURIComponent(url)}&time=${new Date().getTime()}`
- }
- else if (type === 'pdf') {
- return `https://cloud.cocorobo.cn/pdf.js/web/viewer.html?file=${encodeURIComponent(url)}&time=${new Date().getTime()}`
- }
- return url
- }
- const lookImage = (file: any) => {
- const url = typeof file === 'string' ? file : file?.url
- if (!url) return
- const type = getFileType(url)
- if (type === 'image') {
- if (previewImageToolRef.value) {
- previewImageToolRef.value.previewImage(url)
- }
- }
- else if (type === 'video') {
- videoPreviewUrl.value = url
- videoPreviewVisible.value = true
- document.body.style.overflow = 'hidden'
- }
- else if (type === 'pdf' || type === 'office') {
- docPreviewUrl.value = url
- docPreviewType.value = type
- docPreviewVisible.value = true
- document.body.style.overflow = 'hidden'
- }
- else {
- window.open(url, '_blank')
- }
- }
- const closeVideoPreview = () => {
- videoPreviewVisible.value = false
- document.body.style.overflow = ''
- }
- const closeDocPreview = () => {
- docPreviewVisible.value = false
- document.body.style.overflow = ''
- }
- const lookWorkIndex = ref<number>(0)
- // 查看作业
- const lookWork = (id: string) => {
- lookWorkIndex.value = 0
- lookWorkDetail.value = id
- if (isCastScreen.value && !id) {
- emit('sendMessage', {
- type: 'exit_cast_screen',
- courseid: props.courseid,
- })
- isCastScreen.value = false
- }
- }
- const isCastScreen = ref<boolean>(false)
- // 投屏
- const castScreen = (item: any) => {
- lookWorkIndex.value = 0
- lookWorkDetail.value = item.id
- isCastScreen.value = true
- addPPTOp2({
- id: props.courseid,
- userid: props.userid || '',
- type: '5',
- index: item.id, // 获取当前ppt页面iframe的id
- data: item.id, // 进入作业页面到提交的耗时(秒)
- }).then(res => {
- console.log('res', res)
- })
- emit('sendMessage', {
- type: 'cast_screen',
- courseid: props.courseid,
- workerData: item
- })
- console.log(item)
- }
- // 退出投屏
- const exitCastScreen = () => {
- if (props.roleType != 1) {
- isCastScreen.value = false
- }
- lookWork('')
- }
- // 暴露给父级(Student/index.vue)用 ref 调用
- defineExpose({ castScreen, exitCastScreen })
- // 切换查看作业图片
- const changelookWorkIndex = (type: number) => {
- if (type === 0 && lookWorkIndex.value > 0) {
- lookWorkIndex.value = lookWorkIndex.value - 1
- }
- else if (type === 1 && lookWorkIndex.value < lookWorkData.value.content.fileList.length - 1) {
- lookWorkIndex.value = lookWorkIndex.value + 1
- }
- }
- // 选择题图表实例
- const myChart = ref<any>(null)
- // resize防抖定时器
- let resizeTimer: ReturnType<typeof setTimeout> | null = null
- // 处理ECharts resize
- const handleChartResize = () => {
- // 清除之前的定时器
- if (resizeTimer) {
- clearTimeout(resizeTimer)
- }
- resizeTimer = setTimeout(() => {
- nextTick(() => {
- if (
- myChart.value &&
- typeof myChart.value.resize === 'function' &&
- !myChart.value.isDisposed()
- ) {
- try {
- myChart.value.resize()
- }
- catch (e) {
- // console.error('myChart resize error:', e)
- // 如果resize失败,重新初始化图表
- if (
- props.showData &&
- props.showData.workDetail &&
- (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
- ) {
- setEchartsArea1()
- }
- }
- }
- })
- }, 200) // 防抖延迟200ms
- }
- // 设置选择题图表
- const setEchartsArea1 = () => {
- // 如果已有实例且未销毁,先销毁
- if (myChart.value && !myChart.value.isDisposed()) {
- myChart.value.dispose()
- }
- if (echartsArea1.value) {
- myChart.value = echarts.init(echartsArea1.value)
- }
- else {
- myChart.value = null
- }
- if (myChart.value) {
- const _work =
- props.showData.choiceQuestionListData[props.showData.workIndex]
- console.log('_work', _work)
- // 修正版,处理xAxis.data内为图片对象的case,formatter始终只拿到src或自定义label,保证无[object Object]问题
- const option = {
- tooltip: {
- show: false, // 禁用鼠标移动到柱体时的内容显示
- },
- yAxis: {
- show: false, // 不显示最左边的y轴
- },
- xAxis: {
- data: [],
- axisLabel: {
- color: function(option: string, idx: number) {
- console.log(option)
- console.log('answerValue.value', answerValue.value)
- const item = _work.choiceUser[idx]
- if (item && item.isAnswer && answerValue.value) {
- // return '#21ee21'
- return '#29AE2B'
- }
- return 'rgba(0, 0, 0, 0.9)'
- },
- fontWeight: 600,
- fontSize: 17,
- lineHeight: 20,
- interval: 0,
- formatter: function(value: any, idx: number) {
- // 如果是字符串且格式为JSON(图片),则解析处理
- if (typeof value === 'string') {
- try {
- const obj = JSON.parse(value)
- if (obj && typeof obj === 'object' && obj.imgType && obj.src) {
- return '{img' + idx + '|}'
- }
- }
- catch (e) {
- // 非JSON字符串,直接返回
- // 如果文本文字超过8个字,换行
- if (typeof value === 'string') {
- // 判断value是否全是英文
- const isAllEnglish = /^[a-zA-Z0-9\s\p{P}]+$/u.test(value)
- let displayValue = value
- const maxLength = isAllEnglish ? 30 : 20
- const lineLength = isAllEnglish ? 16 : 8
- if (value.length > maxLength) {
- displayValue = value.substr(0, maxLength) + '...'
- }
- // 换行处理
- let output = ''
- for (let i = 0; i < displayValue.length; i += lineLength) {
- output += displayValue.substr(i, lineLength)
- if (i + lineLength < displayValue.length) {
- output += '\n'
- }
- }
- return output
- }
- return value
- }
- return value
- }
- // 兼容老格式(容错):value本身是对象,并有图片信息
- if (
- value &&
- typeof value === 'object' &&
- value.imgType &&
- value.src
- ) {
- return '{img' + idx + '|}'
- }
- // 其他类型直接空
- return ''
- },
- rich: (() => {
- // 动态生成所有图片的 rich 格式
- const richObj: any = {}
- _work.choiceUser.forEach((op: any, idx: number) => {
- if (
- op.option &&
- typeof op.option === 'object' &&
- op.option.imgType &&
- op.option.src
- ) {
- richObj['img' + idx] = {
- height: 40,
- width: 40,
- align: 'center',
- backgroundColor: {
- image: op.option.src,
- },
- }
- }
- })
- return richObj
- })(),
- },
- },
- series: [
- {
- name: '',
- type: 'bar',
- data: [],
- barMaxWidth: 80, // 柱体最宽80px,数量多则自适应
- itemStyle: {
- color: 'rgba(252, 207, 0, 1)',
- },
- label: {
- show: true,
- position: 'top',
- color: 'rgba(116, 139, 115, 1)',
- fontSize: 22,
- fontWeight: 500,
- lineHeight: 24,
- },
- },
- ],
- }
- _work.choiceUser.forEach((i: any, idx: number) => {
- // 如果是图片,存src对象,否则为字符串
- if (
- i.option &&
- typeof i.option === 'object' &&
- i.option.imgType &&
- i.option.src
- ) {
- (option.xAxis.data as any[]).push(
- JSON.stringify({ imgType: i.option.imgType, src: i.option.src })
- ) // 仅保留相关字段
- }
- else if (typeof i.option === 'string') {
- (option.xAxis.data as any[]).push(i.option)
- }
- else {
- (option.xAxis.data as any[]).push('')
- }
- const isCorrect = i.isAnswer && answerValue.value
- ; (option.series[0].data as any[]).push({
- value: i.user.length,
- itemStyle: {
- color: isCorrect ? '#29AE2B' : 'rgba(252, 207, 0, 1)',
- },
- label: {
- show: true,
- position: 'top',
- color: isCorrect ? '#29AE2B' : 'rgba(116, 139, 115, 1)',
- fontSize: 22,
- fontWeight: 500,
- lineHeight: 24,
- },
- })
- })
- // console.log(option)
- // {
- // title: {
- // text: 'ECharts 入门示例'
- // },
- // tooltip: {},
- // xAxis: {
- // data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
- // },
- // yAxis: {},
- // series: [
- // {
- // name: '销量',
- // type: 'bar',
- // data: [5, 20, 36, 10, 10, 20]
- // }
- // ]
- // }
- myChart.value.setOption(option)
- myChart.value.off('click')
- myChart.value.on('click', (params: any) => {
- const idx = params.dataIndex
- const selectedOption = _work.choiceUser[idx]
- if (selectedOption && selectUserDialogRef.value) {
- // console.log(selectedOption)
- console.log('selectedOption', selectedOption)
- const selectedOption2 = { ...selectedOption }
- if (anonymousValue.value) {
- selectedOption2.user = selectedOption2.user.map((item: any, index: number) => lang.ssAnonymousUser + (index + 1))
- }
- selectUserDialogRef.value.open(`${lang.ssSelectUser.replace('{a}', '<span>' + selectedOption2.index + '</span>')}`, selectedOption2)
- }
- })
- }
- }
- // 获取分析
- const getAnalysis = () => {
- if (!props.workId) {
- return
- }
- console.log('props.workId', props.workId)
- const params = {
- pid: props.workId + (props.cid ? ',' + props.cid : ''),
- }
- axios.get('https://pbl.cocorobo.cn/api/pbl/select_pptAnalysisByPid?pid=' + params.pid).then(res => {
- const data = res[0]
- if (data.length) {
- data.forEach((item: any) => {
- try {
- item.json = JSON.parse(item.json)
- }
- catch (error) {
- item.json = { text: item.json, echartsData: '' }
- }
- })
- aiAnalysisData.value = data
- }
- else {
- aiAnalysisData.value = []
- }
- }).catch(err => {
- console.log('get_pptAnalysis_err', err)
- })
- }
- // 监听选择题数据变化
- watch(
- () => props.showData,
- (newVal, oldVal) => {
- console.log('发生变化,showData')
- if (
- newVal &&
- newVal.choiceQuestionListData[newVal.workIndex] &&
- (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
- ) {
- if (
- oldVal &&
- newVal.choiceQuestionListData[newVal.workIndex] &&
- oldVal.choiceQuestionListData[oldVal.workIndex]
- ) {
- if (
- JSON.stringify(newVal.choiceQuestionListData[newVal.workIndex]) !==
- JSON.stringify(oldVal.choiceQuestionListData[oldVal.workIndex])
- ) {
- setEchartsArea1()
- }
- }
- }
- else {
- myChart.value = null
- }
- // console.log('newVal', newVal)
- // if(newVal && newVal.workDetail && newVal.workDetail.id){
- // getAnalysis()
- // }
- // getAnalysis()
- },
- { immediate: true, deep: true }
- )
- // 监听作业变化
- watch(
- () => props.showData?.choiceQuestionListData,
- (newVal, oldVal) => {
- console.log('choiceQuestionListData变化了')
- if (
- (newVal || newVal === 0) &&
- props.showData.workDetail &&
- (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
- ) {
- if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
- setEchartsArea1()
- }
- else {
- console.log('choiceQuestionListData没有变化')
- }
- }
- else {
- myChart.value = null
- }
- },
- { deep: true }
- )
- // 监听作业变化
- watch(
- () => props.showData?.workIndex,
- (newVal) => {
- if (
- (newVal || newVal === 0) &&
- props.showData.workDetail &&
- (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
- ) {
- setEchartsArea1()
- }
- else {
- myChart.value = null
- }
- }
- )
- // 监听echartsArea1变化
- watch(
- () => echartsArea1.value,
- (newVal) => {
- if (
- newVal &&
- props.showData &&
- props.showData.workDetail &&
- (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
- ) {
- setEchartsArea1()
- }
- else {
- myChart.value = null
- }
- }
- )
- // 监听页面宽度变化
- watch(
- () => props.slideWidth,
- (newVal) => {
- if (
- newVal &&
- props.showData &&
- props.showData.workDetail &&
- (props.showData.workDetail.type === '45' || props.showData.workDetail.type === '78')
- ) {
- handleChartResize()
- }
- }
- )
- // 查看未提交学生
- const viewUnsubmittedStudents = () => {
- 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) })
- // if (props.unsubmittedStudents.length > 0) {
- // unsubmittedStudentsDialogRef.value.open(props.unsubmittedStudents)
- // }
- }
- // ai生成选择题分析 选择题
- const aiAnalysisRefresh45 = () => {
- const _work = props.showData.choiceQuestionListData[props.showData.workIndex]
- const msg = `# CONTEXT #
- 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
- # OBJECTIVE #
- 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
- #INPUT#
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- 当前页面答题数据(选择题):【分析重点】
- - 选择题题目:${_work.teststitle}
- - 选项数据:${JSON.stringify(_work.choiceUser)}
- - 题目图片:${_work.timuList.lenght ? _work.timuList[0].src : ''}
- - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
- # ANALYSIS RULES #
- 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
- 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
- # RESPONSE #
- 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
- 1. 整体表现-1句话
- 2. 核心发现-1-2句,指出共性问题+典型案例
- 3. 改进建议-1句话,提出具体教学动作
- # EXAMPLES #
- 样例:
- 选择题正确率62%,核心概念“机器学习三步骤”(输入数据→训练模型→预测结果)掌握尚可,但“训练与预测区分”混淆率达38%;建议强化训练vs预测对比教学。`
- if (!currentAnalysis.value) {
- aiAnalysisData.value.push({
- pid: props.workId + (props.cid ? ',' + props.cid : ''),
- index: props.showData.workIndex,
- loading: true,
- generatingContent: true,
- json: { text: '', echartsData: '' },
- noEnd: true,
- update_at: '',
- create_at: '',
- })
- }
- else {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = true
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json = { text: '', echartsData: '' }
- }
- chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
- if (event.type === 'message') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = event.data
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = false
- }
- else if (event.type === 'messageEnd') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = event.data
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).noEnd = false
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).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, '-')
- saveAnalysis()
- }
- }).catch(err => {
- console.log('err', err)
- })
- }
- // ai生成投票分析 投票
- const aiAnalysisRefresh78 = () => {
- const _work = props.showData.choiceQuestionListData[props.showData.workIndex]
- const msg = `# CONTEXT #
- 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话/投票)进行智能分析。
- # OBJECTIVE #
- 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
- #INPUT#
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- 当前页面答题数据(投票):【分析重点】
- - 投票题目:${_work.teststitle}
- - 选项数据:${JSON.stringify(_work.choiceUser)}
- - 题目图片:${_work.timuList.lenght ? _work.timuList[0].src : ''}
- - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
- # ANALYSIS RULES #
- 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
- 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
- # RESPONSE #
- 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
- 1. 整体表现-1句话
- 2. 核心发现-1-2句,指出共性问题+典型案例
- 3. 改进建议-1句话,提出具体教学动作
- # EXAMPLES #
- 样例:
- 选择题正确率62%,核心概念“机器学习三步骤”(输入数据→训练模型→预测结果)掌握尚可,但“训练与预测区分”混淆率达38%;建议强化训练vs预测对比教学。`
- if (!currentAnalysis.value) {
- aiAnalysisData.value.push({
- pid: props.workId + (props.cid ? ',' + props.cid : ''),
- index: props.showData.workIndex,
- loading: true,
- generatingContent: true,
- json: { text: '', echartsData: '' },
- noEnd: true,
- update_at: '',
- create_at: '',
- })
- }
- else {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = true
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json = { text: '', echartsData: '' }
- }
- chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
- if (event.type === 'message') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = event.data
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = false
- }
- else if (event.type === 'messageEnd') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = event.data
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).noEnd = false
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).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, '-')
- saveAnalysis()
- }
- }).catch(err => {
- console.log('err', err)
- })
- }
- // 问答题
- const aiAnalysisRefresh15 = () => {
- let flag = 0
- const msg = `# CONTEXT #
- 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
- # OBJECTIVE #
- 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
- #INPUT#
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- 当前页面答题数据(问答题):【分析重点】
- - 问答题题目:${props.showData.workDetail.json.answerQ}
- - 回答数据:${JSON.stringify(processedWorkArray.value.map((i) => ({ user: i.name, answer: i.content.answer })))}
- - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
- # ANALYSIS RULES #
- 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
- 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
- # RESPONSE #
- 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
- 1. 整体表现-1句话
- 2. 核心发现-1-2句,指出共性问题+典型案例
- 3. 改进建议-1句话,提出具体教学动作
- # EXAMPLES #
- 样例:
- 30人中15人提交问答题(参与率50%),核心概念“同理心地图”掌握薄弱。发现学生13在智能体对话中6次答“不知道”,需单独辅导设计思维基础概念。建议课程增加POV框架实例演练,强化痛点识别能力训练。`
- if (!currentAnalysis.value) {
- aiAnalysisData.value.push({
- pid: props.workId + (props.cid ? ',' + props.cid : ''),
- index: props.showData.workIndex,
- loading: true,
- generatingContent: true,
- json: { text: '', echartsData: '' },
- noEnd: true,
- update_at: '',
- create_at: '',
- })
- }
- else {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = true
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json = { text: '', echartsData: '' }
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).generatingContent = true
- }
- getWordCloud15().then((res) => {
- flag += 1
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).generatingContent = false
- if (flag == 2) {
- saveAnalysis()
- }
- })
- chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
- console.log(event)
- if (event.type === 'message') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = event.data
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = false
- }
- else if (event.type === 'messageEnd') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = event.data
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).noEnd = false
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).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, '-')
- flag += 1
- if (flag == 2) {
- saveAnalysis()
- }
- }
- }).catch(err => {
- console.log('err', err)
- })
- }
- // 打开词云图弹窗
- const openEchatsDialog = () => {
- if (echartsDialogRef.value && currentAnalysis.value.json.echartsData) {
- echartsDialogRef.value.open(lang.ssKeywordCloud, currentAnalysis.value.json.echartsData)
- }
- }
- // 问答题获取词云图与关键词
- const getWordCloud15 = () => {
- return new Promise((resolve,) => {
- const msg = `## 任务
- 请针对文本中学生提交的问答题回答内容进行深度分析,提炼出 10 - 30 个核心关键词,用于绘制词云图。
- ## 提取准则
- 1. 聚焦内容主体:仅从学生的具体回答文本中提取关键词。
- 2. 严格排除杂质:禁止提取任何属于系统元数据或固定格式的词汇,包括但不限于:“课程数据”、“学生姓名”、“回答结果”、“课程标题”、“提交时间”、“作业名称”、“分数”等。
- 3. 语义去重:将意思相近的词进行合并(例如“高效”与“效率高”),保留最具代表性的词条。
- 4. 涵盖核心:关键词应准确反映学生回答中的核心观点、关键知识点、高频论据或情感倾向。
- ## 任务要求
- 1. 词频统计:计算每个有效关键字在回答内容中出现的频率。
- 2. 词汇大小:根据词频,确定每个关键字在词云中的权重。词频越高,数值越大,范围 1 - 100。
- 3. 输出格式:请严格按照 JSON 格式输出,包含关键词、词频及对应的词汇大小。
- ## 文本
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
- - 已提交人数:${props.showData.workArray.length}
- 当前页面答题数据(问答题):【分析重点】
- - 问答题题目:${props.showData.workDetail.json.answerQ}
- - 回答数据:${JSON.stringify(processedWorkArray.value.map((i) => ({ answer: i.content.answer })))}
- ## 输出示例
- {"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进制)"}}]}]}`
- chat_no_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang).promise.then((res) => {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.echartsData = JSON.parse(res)
- resolve(1)
- }).catch(err => {
- console.log('err', err)
- resolve(0)
- })
- })
- }
- // ai应用
- const aiAnalysisRefresh72 = async () => {
- let chatMsg = ``
- const agentId = 'a7741704-ba56-40b7-a6b8-62a423ef9376'
- console.log('processedWorkArray.value', processedWorkArray.value)
- processedWorkArray.value.forEach((i) => {
- if (typeof i.content === 'object') {
- i.content.forEach(j => {
- if (j.messages) {
- j.messages.forEach((a) => {
- chatMsg += `\n${a.sender}:
- ${a.content}\n`
- })
- }
- if (j.imageUrls) {
- j.imageUrls.forEach((a) => {
- chatMsg += `\n${a}\n`
- })
- }
- })
- }
- })
- // if(props.userId)
- // - 未提交学生:${JSON.stringify(props.showData.unsubmittedStudents.map((item: any) => item.name))}
- let msg = `# CONTEXT #
- 你是K-12阶段的AI教育课堂分析助手,基于上传的课件、逐字稿,以及当页的学生答题数据(选择题/问答题/智能体对话)进行智能分析。
- # OBJECTIVE #
- 输出当前学生答题的分析报告:整体表现、核心发现(共性问题/误区)、教学优化(改进方向),为教师提供教学策略的建议和支持。
- #INPUT#
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
- - 已提交人数:${props.showData.workArray.length}
- 当前页面答题数据(问答题):【分析重点】
- - AI应用
- - 对话数据:${chatMsg}
- # ANALYSIS RULES #
- 1. **问题定位**:明确指出哪个知识点/概念/步骤掌握不佳
- 2. **建议具体**:给出可执行的教学动作(如“增加XX实例演练”“补充XX对比图”)
- # RESPONSE #
- 采用段落叙述,数据量化呈现,突出可操作建议,严格控制输出为80词内。采用三段式论述:
- 1. 整体表现-1句话
- 2. 核心发现-1-2句,指出共性问题+典型案例
- 3. 改进建议-1句话,提出具体教学动作
- # EXAMPLES #
- 样例:
- 智能体对话显示学生对“模型训练”概念模糊,多次询问“为什么不能直接告诉机器答案”。针对概念混淆学生,补充“人类学习类比”相关解释,巩固“从数据中学习规律”核心认知。`
- if (['9c236d45-49cd-11f1-9985-005056924926'].includes(props.userId)) {
- msg = `你是K-12阶段的AI教育课堂分析助手,基于当前课程信息以及当页的学生与单/多智能体对话数据,进行深入的智能分析。
- ### 任务目标
- 1. **总体统计分析**:
- - 分析学生表现数据,例如全班学生互动数据,包括但不限于参与度、互动轮次、作文批改分布、作业完成情况等。
- - 提取核心统计指标,例如发现共性问题、互动模式、分层水平分布、关键评分、完成度、优秀或需关注的学生。
- 2. **洞察(Key Insights)**:
- - 不是所有模块都需要的
- - 输出的模块使用1~3句快速完成核心发现输出
- - 保持简短、直观、易快速理解。
- 3. **不输出教学建议或干预措施**。
- ### 输出格式
- 1. Markdown表格:展示关键统计指标(发言次数、互动频率、提问数量、主题分布)。
- 2. ASCII条形图(可选):展示各项指标对比情况(绝对不要ASCII条形图,应该显示指标名字)
- 3. 洞察与建议:分点呈现,每点对应具体统计指标或数据来源,保持精简,直观、易快速理解。
- **注意,不必输出多余的开场白(可以有非常简短的),转场,铺垫,形容词等,尽可能把输出留给有价值的发现**
- **对于重点要注意的内容,可以用 <span style="color:red"> 内容 </span> 以及 markdown的强调语法来highlight**
- ### 注意事项
- - 输出简洁明了,重点突出。
- - 所有数字列右对齐,必要时显示百分比。
- - 避免冗长文字和详细案例描述。
- - 保持专业、友好语气,可使用 Emoji 提示情绪、课堂氛围或学生表现状态。
- - 输出保持在600字左右
- #INPUT#
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- 当前页面答题数据(问答题):【分析重点】
- - AI应用
- - 对话数据:${chatMsg}
- `
- }
- else if (['6c56ec0e-2c74-11ef-bee5-005056b86db5', 'aea65da6-4399-11f1-9985-005056924926'].includes(props.userId)) {
- if (props.workUrl == 'https://knowledge.cocorobo.cn/zh-CN/story-telling/a1a339d4-f522-4336-9aa9-e8394bea9731') {
- msg = `# 角色定位
- 你是K-12阶段的AI课堂分析助手,负责基于学生对世界名画的英语宣传稿(promotional text)批改记录生成课堂学情分析报告。
- 本次分析的内容来自六年级英语Art课堂,学生选择一幅画作并完成英语宣传稿写作,由AI智能体完成批改,分为 Level A(独立完成)、Level B(信息辅助)、Level C(支架辅助)两个等级。
- ---
- # 重要:数据解读规则(必须在生成报告前完成)
- 在输出任何报告内容之前,必须先完成以下两步结构化提取。
- 所有报告数字必须来源于此,禁止前后矛盾。
- ---
- ## 第一步:逐学生提取数据
- (此步骤为内部处理步骤,不输出提取结果。)
- ### 有效作文判断
- 在提取每位学生数据之前,先判断该学生是否提交了有效作文:
- **有效作文:** AI批改记录中出现了完整的"作文批改报告"结构(包含信息完整性表格、表达鲜活度、文化小触角、语法小诊断中至少两项),视为学生已提交有效内容,正常提取数据。
- **无效提交:** 以下情况均视为无效提交,不纳入各维度统计,仅在总结部分单独列出:
- - AI输出"未检测到有效的写作内容"
- - AI批改记录缺失或仅有对话内容而无批改报告结构
- - 学生仅回复单个词语、符号或与写作任务完全无关的内容
- **注意:** 不得根据学生与AI的后续对话内容(如学生补充回复、追问等)判断写作有效性,仅以AI是否输出完整批改报告为准。
- ### 等级识别
- 从批改记录中识别学生选择的等级:
- - 选择"I can wtite. 我可以自己写。" → Level A
- - 选择"I need information. 我需要信息支持。" → Level B
- - 选择"I need structure. 我需要支架。" → Level C
- ### 信息完整与准确性提取
- 检查批改报告中的信息完整性表格,逐项记录每位学生的情况:
- | 信息点 | 是否正确 |
- |---|---|
- | 画名 | 是/否 |
- | 画家 | 是/否 |
- | 绘画种类 | 是/否 |
- | 画面描述(颜色/内容) | 是/否 |
- | 个人感受 | 是/否 |
- 对每位学生统计:
- - 全部正确的信息点数量(满分5项)
- - 有错误或遗漏的具体信息点
- ### 表达鲜活度提取
- 从批改记录的"表达鲜活度"部分,判断:
- - ✅ 表达生动:使用了形容词、比喻、比较句或个人联想
- - ⚠️ 表达平淡:仅使用简单句型,缺乏个人想法
- ### 文化小触角提取
- 从批改记录的"文化小触角"部分,判断:
- - ✅ 有涉及:自然提到中西艺术差异或文化感悟
- - — 未涉及:未提及任何文化对比
- ### 语法情况提取
- 从批改记录的"语法小诊断"部分,记录:
- - 是否存在明显语法错误
- - 错误类型(主谓一致 / 时态 / 冠词 / 其他)
- ---
- ## 第二步:汇总数据
- 将所有学生数据按等级分组汇总,形成统计表。
- **一旦汇总完成,报告中所有数字必须与汇总表严格一致,禁止前后矛盾。**
- ---
- # 输出格式
- ## 第一步输出
- 输出以下一句话,然后立即继续输出完整报告,不得停止:
- "正在逐个提取学生数据中,请稍候……"
- ## 第二步输出:完整报告
- 紧接上一句,输出以下完整报告内容:
- ---
- ## 英语写作 课堂学情分析报告
- **数据来源:** 批改记录 | **统计人数:** X 人
- ---
- ### 一、分层总览
- | 等级 | 人数 | 信息完整率均值 | 表达生动人数 | 文化触角人数 | 有语法问题人数 |
- |---|---|---|---|---|---|
- | Level A | X | XX% | X人(XX%) | X人(XX%) | X人(XX%) |
- | Level B | X | XX% | X人(XX%) | X人(XX%) | X人(XX%) |
- | Level C | X | XX% | X人(XX%) | X人(XX%) | X人(XX%) |
- ---
- ### 二、信息完整与准确性明细(A / B / C 合并)
- | 信息点 | 正确人数 | 正确率 |
- |---|---|---|
- | 画名 | X | XX% |
- | 画家 | X | XX% |
- | 绘画种类 | X | XX% |
- | 画面描述(颜色/内容) | X | XX% |
- | 个人感受 | X | XX% |
- [正确率最低项:<span style="color:red">⚠️ [信息点名称]正确率最低,仅 XX%,说明学生在该项普遍存在遗漏或错误。</span>]
- ---
- ### 三、表达与文化维度
- | 维度 | A 达成人数 | A 达成率 | B 达成人数 | B 达成率 | C 达成人数 | C 达成率 |
- |---|---|---|---|---|
- | 表达生动(含比喻/形容词/个人联想) | X | XX% | X | XX% | X | XX% |
- | 文化小触角(含中西艺术对比) | X | XX% | X | XX% | X | XX% |
- [若文化触角整体达成率低于50%:<span style="color:red">⚠️ 文化对比意识普遍薄弱,全班达成率仅 XX%。</span>]
- ---
- ### 四、语法问题汇总
- | 语法问题类型 | A 出现人次 | B 出现人次 | C 出现人次 |
- |---|---|---|
- | 主谓一致错误 | X | X | X |
- | 时态错误 | X | X | X |
- | 冠词错误 | X | X | X |
- | 其他 | X | X | X |
- *若无明显语法问题,写:"本次无明显高频语法问题。✅"*
- ---
- ### 五、亮点摘录
- **表达生动的例句:**
- [列出2–3句来自学生作文的优秀表达原文,注明等级和画作名称。]
- **文化感悟的例句:**
- [列出1–2句来自学生作文的文化对比原文,注明等级和画作名称。若无,写"本次暂无。"]
- ---
- ### 六、总结
- **整体:** [1句,简述全班整体写作完成情况。]
- **突出:** [1句,指出全班表现最好的维度,例如信息完整率高或表达生动人数较多。]
- **关注:** <span style="color:red">[1句,指出最薄弱的维度,例如文化触角普遍缺失或某信息点遗漏率高。]</span>
- **跟进:**
- - <span style="color:red">无效提交学生:[姓名列表],AI未能识别其提交内容,建议教师查看原图并确认是否需要重新上传。</span>
- - <span style="color:red">写作内容需关注的学生(有效提交中):[姓名及原因,例如信息缺失3项以上、存在多处语法问题等];若无,写"有效提交学生中暂无需特别跟进。"</span>
- *若全员有效提交且表现均衡,写:"本次全员提交有效内容,整体表现均衡,暂无需特别跟进。"*
- ---
- # 注意事项
- - 所有数字来源于结构化提取,输出前核对一致性,禁止前后矛盾。
- - 对需要教师重点关注的内容使用 <span style="color:red"> 内容 </span> 高亮。
- - 禁止输出"如需进一步生成"等对话式内容。
- - 不输出教学建议或干预措施。
- - 若某等级无学生数据,对应列填"—",不单独说明。
- #INPUT#
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
- - 已提交人数:${props.showData.workArray.length}
- 当前页面答题数据(AI应用):【分析重点】
- - AI应用
- - 对话数据:${chatMsg}`
- }
- else if (props.workUrl == 'https://knowledge.cocorobo.cn/zh-CN/story-telling/0d04cef1-876a-41b4-9768-6547088bc162') {
- msg = `# 角色定位
- 你是K-12阶段的AI课堂分析助手,负责基于学生词句训练对话记录生成课堂学情分析报告。
- 本次分析的环节为:学生与AI就画作内容进行词句问答训练,分为 Level A、Level B、Level C 三个等级。
- ---
- # 重要:数据解读规则(必须在生成报告前完成)
- 在输出任何报告内容之前,必须先完成以下两步结构化提取。
- 所有报告数字必须来源于此,禁止前后矛盾。
- ---
- ## 第一步:逐学生提取数据
- (此步骤为内部处理步骤,不输出提取结果。)
- ### 等级识别
- 从对话记录中的 sender 字段识别等级:
- - sender 含"Level A" → Level A
- - sender 含"Level B" → Level B
- - sender 含"Level C" → Level C
- ### 完成状态判断
- - **完整完成**:所有句子/问题均有学生回应记录
- - **部分完成**:至少一条学生回应,但未完成全部
- - **未完成**:对话记录中仅有 AI 开场消息,无任何学生回应内容
- ### Level A 提取项目
- **主题覆盖性:** 检查学生是否主动提问了以下 6 个主题:
- ① name ② artist ③ kind ④ scene ⑤ colours ⑥ why
- - ✅ 已提问 / — 未提问
- **问题准确性(语法):** 识别以下错误类型并记录人次:
- - 疑问句结构错误 / 主谓一致错误 / 时态错误 / 其他
- **创新性:** 6 个主题之外的问题,记录原文。
- ### Level B 提取项目
- **主题覆盖性:**(同 Level A,6个主题)
- **问题准确性(语法):**(同 Level A)
- ### Level C 提取项目
- **流程完成性:** 逐句核对学生是否跟读了全部 6 个问句。
- - ✅ 跟读基本正确 / ⚠️ 跟读明显偏差 / — 未跟读
- **创新亮点:** 学生是否有自发延伸表达,记录原文。
- ---
- ## 第二步:汇总数据
- 将所有学生数据按等级分组汇总。
- **报告中所有数字必须与汇总表严格一致,禁止前后矛盾。**
- ---
- # 输出格式
- ## 第一步输出
- 输出以下一句话,然后立即继续输出完整报告,不得停止:
- "正在逐个提取学生数据中,请稍候……"
- ## 第二步输出:完整报告
- 紧接上一句,输出以下完整报告内容:
- ---
- ## 词句问答训练 课堂学情分析报告
- **数据来源:** 学生对话记录 | **统计人数:** X 人
- ---
- ### 一、分层总览
- | 等级 | 人数 | 完整完成 | 主题覆盖率均值 | 语法问题人数 | 创新提问/亮点 |
- |---|---|---|---|---|---|
- | Level A | X | X人(XX%) | XX% | X人 | X人 |
- | Level B | X | X人(XX%) | XX% | X人 | — |
- | Level C | X | X人(XX%) | — | — | X人 |
- [若有未完成学生:<span style="color:red">⚠️ 未完成学生:[姓名列表]</span>]
- ---
- ### 二、主题覆盖明细(Level A / B)
- | 主题 | A 覆盖率 | B 覆盖率 |
- |---|---|---|
- | name | XX% | XX% |
- | artist | XX% | XX% |
- | kind | XX% | XX% |
- | scene | XX% | XX% |
- | colours | XX% | XX% |
- | why | XX% | XX% |
- *若本次无某等级学生,对应列填"—"。*
- ---
- ### 三、语法问题(Level A / B)
- | 问题类型 | A 出现人次 | B 出现人次 |
- |---|---|---|
- | 疑问句结构错误 | X | X |
- | 主谓一致错误 | X | X |
- | 时态错误 | X | X |
- | 其他 | X | X |
- *若无语法问题,写:"本次无明显语法问题。✅"*
- ---
- ### 四、创新与亮点
- **Level A 创新提问:**
- [列出学生姓名及原文;若无,写"本次暂无。"]
- **Level C 自发延伸:**
- [列出学生姓名及原文;若无,写"本次暂无。"]
- ---
- ### 五、总结
- **整体:** [1句,简述全班完成情况。]
- **突出:** [1句,指出表现最好的维度或等级。]
- **关注:** <span style="color:red">[1句,指出覆盖率最低的主题或问题最集中的点。]</span>
- **跟进:** <span style="color:red">[列出需个别跟进的学生姓名及原因;若无,写"全员表现均衡,暂无需特别跟进。"]</span>
- ---
- # 注意事项
- - 所有数字来源于结构化提取,输出前核对一致性,禁止前后矛盾。
- - 对需要教师重点关注的内容使用 <span style="color:red"> 内容 </span> 高亮。
- - 若某等级无学生数据,相关行/列填"—",不单独输出该等级报告。
- - 禁止输出"如需进一步生成"等对话式内容。
- - 不输出教学建议或干预措施。
- #INPUT#
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
- - 已提交人数:${props.showData.workArray.length}
- 当前页面答题数据(AI应用):【分析重点】
- - AI应用
- - 对话数据:${chatMsg}`
- }
- // msg = `# 角色定位
- // 你是K-12阶段的AI课堂分析助手,负责基于学生词句训练对话记录生成课堂学情分析报告。
- // 本次分析的环节为:学生与AI就画作内容进行词句问答训练,分为 Level A、Level B、Level C 三个等级。
- // ---
- // # 重要:数据解读规则(必须在生成报告前完成)
- // 在输出任何报告内容之前,必须先完成以下两步结构化提取。
- // 所有报告数字必须来源于此,禁止前后矛盾。
- // ---
- // ## 第一步:逐学生提取数据
- // (此步骤为内部处理步骤,不输出提取结果。)
- // ### 等级识别
- // 从对话记录中的 sender 字段识别等级:
- // - sender 含"Level A" → Level A
- // - sender 含"Level B" → Level B
- // - sender 含"Level C" → Level C
- // ### 完成状态判断
- // - **完整完成**:所有句子/问题均有学生回应记录
- // - **部分完成**:至少一条学生回应,但未完成全部
- // - **未完成**:对话记录中仅有 AI 开场消息,无任何学生回应内容
- // ### Level A 提取项目
- // **主题覆盖性:** 检查学生是否主动提问了以下 6 个主题:
- // ① name ② artist ③ kind ④ scene ⑤ colours ⑥ why
- // - ✅ 已提问 / — 未提问
- // **问题准确性(语法):** 识别以下错误类型并记录人次:
- // - 疑问句结构错误 / 主谓一致错误 / 时态错误 / 其他
- // **创新性:** 6 个主题之外的问题,记录原文。
- // ### Level B 提取项目
- // **主题覆盖性:**(同 Level A,6个主题)
- // **问题准确性(语法):**(同 Level A)
- // ### Level C 提取项目
- // **流程完成性:** 逐句核对学生是否跟读了全部 6 个问句。
- // - ✅ 跟读基本正确 / ⚠️ 跟读明显偏差 / — 未跟读
- // **创新亮点:** 学生是否有自发延伸表达,记录原文。
- // ---
- // ## 第二步:汇总数据
- // 将所有学生数据按等级分组汇总。
- // **报告中所有数字必须与汇总表严格一致,禁止前后矛盾。**
- // ---
- // # 输出格式
- // ## 第一步输出
- // 输出以下一句话,然后立即继续输出完整报告,不得停止:
- // "正在逐个提取学生数据中,请稍候……"
- // ## 第二步输出:完整报告
- // 紧接上一句,输出以下完整报告内容:
- // ---
- // ## 词句问答训练 课堂学情分析报告
- // **数据来源:** 学生对话记录 | **统计人数:** X 人
- // ---
- // ### 一、分层总览
- // | 等级 | 人数 | 完整完成 | 主题覆盖率均值 | 语法问题人数 | 创新提问/亮点 |
- // |---|---|---|---|---|---|
- // | Level A | X | X人(XX%) | XX% | X人 | X人 |
- // | Level B | X | X人(XX%) | XX% | X人 | — |
- // | Level C | X | X人(XX%) | — | — | X人 |
- // [若有未完成学生:<span style="color:red">⚠️ 未完成学生:[姓名列表]</span>]
- // ---
- // ### 二、主题覆盖明细(Level A / B)
- // | 主题 | A 覆盖率 | B 覆盖率 |
- // |---|---|---|
- // | name | XX% | XX% |
- // | artist | XX% | XX% |
- // | kind | XX% | XX% |
- // | scene | XX% | XX% |
- // | colours | XX% | XX% |
- // | why | XX% | XX% |
- // *若本次无某等级学生,对应列填"—"。*
- // ---
- // ### 三、语法问题(Level A / B)
- // | 问题类型 | A 出现人次 | B 出现人次 |
- // |---|---|---|
- // | 疑问句结构错误 | X | X |
- // | 主谓一致错误 | X | X |
- // | 时态错误 | X | X |
- // | 其他 | X | X |
- // *若无语法问题,写:"本次无明显语法问题。✅"*
- // ---
- // ### 四、创新与亮点
- // **Level A 创新提问:**
- // [列出学生姓名及原文;若无,写"本次暂无。"]
- // **Level C 自发延伸:**
- // [列出学生姓名及原文;若无,写"本次暂无。"]
- // ---
- // ### 五、总结
- // **整体:** [1句,简述全班完成情况。]
- // **突出:** [1句,指出表现最好的维度或等级。]
- // **关注:** <span style="color:red">[1句,指出覆盖率最低的主题或问题最集中的点。]</span>
- // **跟进:** <span style="color:red">[列出需个别跟进的学生姓名及原因;若无,写"全员表现均衡,暂无需特别跟进。"]</span>
- // ---
- // # 注意事项
- // - 所有数字来源于结构化提取,输出前核对一致性,禁止前后矛盾。
- // - 对需要教师重点关注的内容使用 <span style="color:red"> 内容 </span> 高亮。
- // - 若某等级无学生数据,相关行/列填"—",不单独输出该等级报告。
- // - 禁止输出"如需进一步生成"等对话式内容。
- // - 不输出教学建议或干预措施。
- // #INPUT#
- // 课程数据:
- // - 课程名称:${props.courseDetail.title}
- // - 课程学科:${props.courseDetail.name}
- // - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
- // - 已提交人数:${props.showData.workArray.length}
- // 当前页面答题数据(AI应用):【分析重点】
- // - AI应用
- // - 对话数据:${chatMsg}`
- }
- console.log('workUrl', props.workUrl)
- console.log('ai应用提示词', msg)
- if (!currentAnalysis.value) {
- aiAnalysisData.value.push({
- pid: props.workId + (props.cid ? ',' + props.cid : ''),
- index: props.showData.workIndex,
- loading: true,
- json: { text: '', echartsData: '' },
- noEnd: true,
- update_at: '',
- create_at: '',
- })
- }
- else {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = true
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json = { text: '', echartsData: '' }
- }
- chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
- if (event.type === 'message') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = md.render(event.data)
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = false
- }
- else if (event.type === 'messageEnd') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = md.render(event.data)
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).noEnd = false
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).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, '-')
- saveAnalysis()
- }
- }, '', [], 'open-qwen-plus-latest').catch(err => {
- console.log('err', err)
- })
- }
- // ai应用
- const aiAnalysisRefresh831 = () => {
- let chatMsg = ``
- console.log('processedWorkArray.value', processedWorkArray.value)
- processedWorkArray.value.forEach((i) => {
- if (typeof i.content === 'object') {
- const c = i.content
- const studentName = i.name || ''
- if (c.know && c.know.length) {
- chatMsg += `\n${studentName} - K|已知:\n${c.know.join(';')}\n`
- }
- if (c.want && c.want.length) {
- chatMsg += `\n${studentName} - W|想知:\n${c.want.join(';')}\n`
- }
- if (c.learned && c.learned.length) {
- chatMsg += `\n${studentName} - L|已学:\n${c.learned.join(';')}\n`
- }
- if (c.reflection) {
- chatMsg += `\n${studentName} - 学习反思:\n${c.reflection}\n`
- }
- }
- })
- const msg = `# CONTEXT #
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
- - 已提交人数:${props.showData.workArray.length}
- 你是一名教学分析助手。请根据全班学生提交的 KWL 表格与学习反思内容,从班级整体视角进行简洁分析,帮助教师在课堂中快速了解学生情况。
- 请按照以下 4 个维度分析:
- 1. K|已知(Know)
- 2. W|想知(Want to know)
- 3. L|已学(Learned)
- 4. 学习反思
- 分析要求:
- - 每个维度先统计实际有效作答人数及占全班比例。
- - 只分析实际有学生填写的维度;如果某个维度无人填写,则不要输出该维度。
- - 学生未填写某个维度,不代表“不知道”“没学会”或“没有反思”,禁止据此推断。
- - 将意思相近的回答合并归纳,优先呈现班级共性。
- - 如存在明显误解、集中困惑或值得教师关注的问题,可简短指出。
- - 不逐个学生罗列,不评价个人,不排名。
- - 不要为了填满表格而强行生成结论;没有明显发现的内容可以省略。
- - 输出必须简洁,每个单元格尽量控制在 1–2 句话。
- 请仅使用以下表格格式输出:
- | 维度 | 填写情况 | 班级主要情况 | 教师可关注 |
- |---|---|---|---|
- | K|已知 | X人,X% | 概括学生主要已有认知,最多2点 | 如有明显误解或差异则指出,否则写“-” |
- | W|想知 | X人,X% | 概括学生最集中的问题或兴趣,最多2点 | 值得后续回应的问题,最多1点 |
- | L|已学 | X人,X% | 概括学生主要学习收获,最多2点 | 未充分理解或存在混淆的内容,最多1点 |
- | 学习反思 | X人,X% | 概括主要收获、困难或学习感受,最多2点 | 后续教学可调整或跟进的重点,最多1点 |
- 注意:
- - 无人填写的维度整行删除。
- - 避免空泛表达,例如“学生学习情况较好”“总体表现不错”。
- - 尽量使用具体主题、概念或问题名称。
- # 学生提交数据 #
- ${chatMsg}`
- console.log('workUrl', props.workUrl)
- console.log('ai应用提示词', msg)
- if (!currentAnalysis.value) {
- aiAnalysisData.value.push({
- pid: props.workId + (props.cid ? ',' + props.cid : ''),
- index: props.showData.workIndex,
- loading: true,
- json: { text: '', echartsData: '' },
- noEnd: true,
- update_at: '',
- create_at: '',
- })
- }
- else {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = true
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json = { text: '', echartsData: '' }
- }
- chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
- if (event.type === 'message') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = md.render(event.data)
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = false
- }
- else if (event.type === 'messageEnd') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = md.render(event.data)
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).noEnd = false
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).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, '-')
- saveAnalysis()
- }
- }, '', [], 'open-qwen-plus-latest').catch(err => {
- console.log('err', err)
- })
- }
- // ai应用
- const aiAnalysisRefresh832 = () => {
- let chatMsg = ``
- console.log('processedWorkArray.value', processedWorkArray.value)
- const hatNames: Record<string, string> = {
- white: '白帽|事实与信息',
- red: '红帽|感受与直觉',
- black: '黑帽|风险与问题',
- yellow: '黄帽|价值与机会',
- green: '绿帽|创意与可能性',
- blue: '蓝帽|总结与推进',
- }
- processedWorkArray.value.forEach((i) => {
- if (typeof i.content === 'object') {
- const c = i.content
- const studentName = i.name || ''
- const isGroup = c.members && c.members.length > 0
- const memberNames = isGroup ? c.members.map((m: any) => typeof m === 'object' ? (m.name || '') : m) : []
- const submitter = isGroup ? `${studentName}(小组成员:${memberNames.join('、')})` : studentName
- if (c.scenario) {
- chatMsg += `\n${submitter} - 讨论场景:\n${c.scenario}\n`
- }
- const hats = c.hats || []
- const hatContent = c.hatContent || {}
- hats.forEach((hat: string) => {
- const label = hatNames[hat] || hat
- const content = hatContent[hat] || ''
- if (content) {
- chatMsg += `\n${submitter} - ${label}:\n${content}\n`
- }
- })
- }
- })
- const msg = `# CONTEXT #
- 课程数据:
- - 课程名称:${props.courseDetail.title}
- - 课程学科:${props.courseDetail.name}
- - 需要提交人数:${props.showData.workArray.length + props.showData.unsubmittedStudents.length}
- - 已提交人数:${props.showData.workArray.length}
- 你是一名教学分析助手。请根据全班学生或各小组提交的「六顶思考帽」讨论内容,从班级整体视角进行简洁分析,帮助教师快速了解学生在不同思考方式下的主要观点、分歧与值得继续讨论的问题。
- 本次活动不一定使用完整的六顶思考帽。教师可能只配置其中 3 顶、4 顶或其他组合。
- 你必须以本次活动实际配置和学生实际提交的思考帽为准,只分析本次活动中启用的思考帽,不要自行补充未启用的帽子。
- 提交内容可能有两种形式:
- 个人提交:每名学生分别填写本次活动配置的一个或多个思考帽。
- 小组提交:以小组为单位提交,内容中可能包含小组成员姓名、每位成员负责的思考帽,以及对应讨论内容。
- 六顶思考帽的含义如下,仅用于识别和分析本次实际启用的帽子:
- 白帽|事实与信息
- 关注学生提出的事实、数据、已知信息,以及认为仍需补充的信息。
- 红帽|感受与直觉
- 关注学生表达的感受、直觉、第一反应、喜欢或担忧。
- 黑帽|风险与问题
- 关注学生发现的问题、限制、风险、困难或可能失败的原因。
- 黄帽|价值与机会
- 关注学生发现的优点、价值、机会、积极影响或可行之处。
- 绿帽|创意与可能性
- 关注学生提出的新想法、替代方案、改进方式或不同可能性。
- 蓝帽|总结与推进
- 关注学生对讨论的总结、观点整合、下一步行动、需要进一步解决的问题。
- 分析要求:
- 只分析本次活动实际配置的思考帽。
- 未配置的思考帽不要输出,也不要视为“缺失”“未作答”或“思考不足”。
- 对于已经配置的思考帽,统计实际有效参与情况。
- 如果是个人提交,统计有效作答人数及占全班比例,例如“18人,75%”。
- 如果是小组提交,优先统计有效参与小组数及占全部提交小组比例,例如“5/6组,83%”;如数据中可以明确判断参与该帽子的学生人数,可补充人数,例如“5/6组,8人参与”。
- 如果某顶帽子已配置,但无人或无小组实际提交有效内容,则不要输出该帽子。
- 学生或小组未填写某顶已配置的帽子,不代表缺乏这种思维能力,禁止据此推断。
- 将意思相近的观点合并归纳,优先呈现班级或多个小组反复出现的共性观点。
- 如果不同学生或小组之间存在明显不同观点,可简短呈现主要分歧,不必强行形成统一结论。
- 区分“学生明确提出的内容”和你的推断,不要补充学生没有表达过的理由、风险、优势、情绪或创意。
- 不逐个学生罗列,不评价个人,不排名。
- 如果提交内容包含“小组成员—负责帽子—贡献内容”等信息,只用于判断参与情况和思考分工,不对个人能力进行评价。
- 如果不同已配置帽子的参与程度或内容丰富度存在明显差异,可以客观描述,但不要解释为学生“不会”某种思考。
- 不要为了让分析看起来完整而强行生成结论;没有明显发现的内容可以省略。
- 输出必须简洁,每个单元格尽量控制在 1–2 句话。
- 请仅使用以下表格格式输出:
- 思考帽
- 参与情况
- 班级 / 小组主要观点
- 教师可关注
- ⚪ 白帽|事实与信息
- X人,X% / X组,X%
- 概括反复出现的事实、信息或信息缺口,最多2点
- 如有事实混淆、证据不足或集中缺失的信息则指出,否则写“-”
- 🔴 红帽|感受与直觉
- X人,X% / X组,X%
- 概括主要感受、直觉或态度,最多2点
- 如存在明显情绪分化或值得进一步了解的感受则指出,否则写“-”
- ⚫ 黑帽|风险与问题
- X人,X% / X组,X%
- 概括最集中的问题、风险或限制,最多2点
- 值得后续讨论或验证的问题,最多1点
- 🟡 黄帽|价值与机会
- X人,X% / X组,X%
- 概括主要优势、价值或机会,最多2点
- 如有值得进一步验证的价值判断则指出,否则写“-”
- 🟢 绿帽|创意与可能性
- X人,X% / X组,X%
- 概括主要创意、方案或不同可能性,最多2点
- 值得继续展开或比较的想法,最多1点
- 🔵 蓝帽|总结与推进
- X人,X% / X组,X%
- 概括主要结论、共识或下一步行动,最多2点
- 尚未解决、需要继续讨论的问题,最多1点
- 注意:
- 表格只保留“本次活动已配置 + 实际有有效提交”的思考帽。
- 例如教师本次只配置白帽、黑帽、绿帽,则最终最多只输出这 3 行,不要出现红帽、黄帽、蓝帽。
- 如果已配置的某顶帽子无人有效填写,则该行也删除。
- 如果同一学生或小组提交了多个帽子,应分别计入对应帽子的参与统计。
- 同一帽子下重复表达相同观点时,应合并统计和概括,不重复罗列。
- 如果存在明显的多数观点与少数不同观点,可以表达为“多数小组认为……;另有少数组提出……”,不要逐组列举。
- 对小组任务,不要因为某位成员负责某一顶帽子,就推断该成员个人更擅长这种思考方式。
- 避免空泛表达,例如“学生思考比较全面”“大家讨论得很好”“学生参与积极”。
- 尽量直接使用学生实际讨论中的主题、方案、问题、证据或观点名称。
- # 学生提交数据 #
- ${chatMsg}`
- console.log('workUrl', props.workUrl)
- console.log('ai应用提示词', msg)
- if (!currentAnalysis.value) {
- aiAnalysisData.value.push({
- pid: props.workId + (props.cid ? ',' + props.cid : ''),
- index: props.showData.workIndex,
- loading: true,
- json: { text: '', echartsData: '' },
- noEnd: true,
- update_at: '',
- create_at: '',
- })
- }
- else {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = true
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json = { text: '', echartsData: '' }
- }
- chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
- if (event.type === 'message') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = md.render(event.data)
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).loading = false
- }
- else if (event.type === 'messageEnd') {
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).json.text = md.render(event.data)
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).noEnd = false
- aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- }).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, '-')
- saveAnalysis()
- }
- }, '', [], 'open-qwen-plus-latest').catch(err => {
- console.log('err', err)
- })
- }
- // 当前分析
- const currentAnalysis = computed(() => {
- const _result = aiAnalysisData.value.find((item: any) => {
- return item.pid === props.workId + (props.cid ? ',' + props.cid : '') && item.index === props.showData.workIndex
- })
- if (_result?.json?.echartsData) {
- _result.json.keyword = _result.json.echartsData?.series?.[0]?.data?.slice(0, 5).map((item: any) => item.name)
- }
- if (_result) {
- return _result
- }
- return null
- })
- // 保存分析
- const saveAnalysis = () => {
- if (!currentAnalysis.value) {
- return
- }
- const params = [{
- pid: props.workId + (props.cid ? ',' + props.cid : ''),
- idx: props.showData.workIndex,
- json: JSON.stringify(currentAnalysis.value.json),
- }]
- console.log(params)
- axios.post('https://pbl.cocorobo.cn/api/pbl/insert_pptAnalysis', params).then(res => {
- if (res == 1) {
- console.log('保存成功')
- }
- }).catch(err => {
- console.log('insert_pptAnalysis_err', err)
- })
- }
- // 点击边框
- const clickContent = (flag: boolean) => {
- if (flag && lookWorkDetail.value && workDetail.value?.type !== '45' && workDetail.value?.type !== '78') {
- if (props.roleType != 1 && isCastScreen.value) {
- return
- }
- lookWork('')
- }
- }
- // 监听 props.showData.workDetail.id 变化
- watch(
- () => props.showData?.workDetail,
- (newId, oldId) => {
- getAnalysis()
- },
- { immediate: true }
- )
- // 批量下载
- const downloadAll = async () => {
- if (!processedWorkArray.value || processedWorkArray.value.length === 0) {
- return
- }
- if (downloadLoading.value) {
- return
- }
- // 设置加载状态
- downloadLoading.value = true
- try {
- // 动态导入 JSZip
- const JSZip = (await import('jszip')).default
- const { saveAs } = await import('file-saver')
- const zip = new JSZip()
- // 遍历所有学生
- for (const student of processedWorkArray.value) {
- if (!student.content || !student.content.fileList || student.content.fileList.length === 0) {
- continue
- }
- // 遍历学生的所有照片
- for (let i = 0; i < student.content.fileList.length; i++) {
- const file = student.content.fileList[i]
- const ext = (file.url.split('?')[0].split('.').pop() || 'jpg').toLowerCase()
- const fileName = student.content.fileList.length > 1
- ? `${student.name}${String(i + 1).padStart(2, '0')}.${ext}`
- : `${student.name}.${ext}`
- try {
- // 获取图片数据
- const response = await fetch(file.url)
- const blob = await response.blob()
- zip.file(fileName, blob)
- }
- catch (error) {
- console.error(`下载 ${fileName} 失败:`, error)
- }
- }
- }
- // 生成压缩包并下载
- const content = await zip.generateAsync({ type: 'blob' })
- saveAs(content, `${lang.ssBatchDownload}.zip`)
- }
- catch (error) {
- console.error('批量下载失败:', error)
- }
- finally {
- // 重置加载状态
- downloadLoading.value = false
- }
- }
- // 组件卸载时清理ECharts实例
- onUnmounted(() => {
- // 清除定时器
- if (resizeTimer) {
- clearTimeout(resizeTimer)
- resizeTimer = null
- }
- // 销毁ECharts实例
- if (myChart.value && !myChart.value.isDisposed()) {
- myChart.value.dispose()
- myChart.value = null
- }
- })
- </script>
- <style lang="scss" scoped>
- .choiceQuestionDetailDialog {
- background: none;
- position: relative;
- width: 100%;
- height: 100%;
- z-index: 1;
- .content {
- width: 100%;
- height: 100%;
- position: relative;
- background: #fff;
- box-sizing: border-box;
- padding: 40px;
- overflow: auto;
- .closeIcon {
- position: absolute;
- right: 20px;
- top: 20px;
- cursor: pointer;
- width: 20px;
- height: 20px;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .c_t45 {
- width: 100%;
- min-height: 100%;
- display: flex;
- // align-items: center;
- flex-direction: column;
- height: auto;
- .c_t45_title {
- color: rgba(0, 0, 0, 0.9);
- font-weight: 600;
- font-size: 24px;
- line-height: 24px;
- position: relative;
- width: 100%;
- display: flex;
- flex-direction: column;
- // align-items: center;
- // justify-content: center;
- user-select: none;
- gap: .4rem;
- &>div {
- max-width: calc(100%);
- }
- &>span {
- position: absolute;
- top: 20px;
- cursor: pointer;
- &:nth-of-type(1) {
- left: 0;
- }
- &:nth-of-type(2) {
- right: 0;
- }
- }
- .c_t45_t_btn_noActive {
- color: #CCCCCC;
- }
- .c_t45_msg {
- display: flex;
- align-items: center;
- font-size: .9rem;
- font-weight: 400;
- gap: 1rem;
- &>span {
- text-decoration: underline;
- cursor: pointer;
- }
- .c_t45_correct_rate {
- color: #29AE2B;
- font-weight: 600;
- }
- }
- }
- .c_t45_img {
- max-width: 200px;
- max-height: 200px;
- object-fit: cover;
- margin-top: 20px;
- }
- .c_t45_type {
- font-weight: 400;
- font-size: 15px;
- line-height: 21px;
- letter-spacing: 0.5px;
- color: rgba(0, 0, 0, 1);
- opacity: 0.5;
- margin-top: 20px;
- }
- .c_t45_echarts {
- width: 100%;
- max-width: 100%;
- flex: 1;
- min-height: 400px;
- display: flex;
- align-items: center;
- box-sizing: border-box;
- &>div {
- width: 100%;
- height: 400px;
- }
- }
- .cq_changeBtn {
- display: flex;
- align-items: center;
- gap: 1.5rem;
- margin: 1rem auto;
- &>div {
- padding: .6rem;
- border-radius: .5rem;
- border: solid 2px #F6C82B;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- &>svg {
- fill: #F6C82D;
- width: 1rem;
- height: 1rem;
- }
- &.cq_cb_disabled {
- cursor: not-allowed !important;
- border-color: #FEF8E9 !important;
- }
- &.cq_cb_disabled>svg {
- fill: #A3A3A3 !important;
- }
- }
- &>span {
- font-weight: 500;
- }
- }
- }
- .c_t15 {
- width: 100%;
- min-height: 100%;
- display: flex;
- // align-items: center;
- flex-direction: column;
- height: auto;
- padding: 40px;
- .c_t15_title {
- color: rgba(0, 0, 0, 0.9);
- font-weight: 600;
- font-size: 24px;
- line-height: 24px;
- }
- .c_t15_msg {
- display: flex;
- align-items: center;
- font-size: .9rem;
- font-weight: 400;
- gap: 1rem;
- &>span {
- text-decoration: underline;
- cursor: pointer;
- }
- }
- .c_t15_type {
- font-weight: 400;
- font-size: 15px;
- line-height: 21px;
- letter-spacing: 0.5px;
- color: rgba(0, 0, 0, 1);
- opacity: 0.5;
- margin: 10px 0;
- }
- .c_t15_content {
- width: 100%;
- height: auto;
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 20px;
- margin-top: 40px;
- .c_t15_c_item {
- width: 100%;
- height: auto;
- box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
- box-sizing: border-box;
- border-radius: 12px;
- padding: 16px;
- background: rgba(255, 255, 255, 0.6);
- transition: 0.3s;
- cursor: pointer;
- overflow: hidden;
- &:hover {
- box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
- background: rgba(255, 255, 255, 0.6);
- }
- .c_t15_c_i_top {
- display: flex;
- align-items: center;
- gap: 10px;
- width: 100%;
- overflow: hidden;
- &>span {
- min-width: 25px;
- height: 25px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(252, 207, 0, 1);
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
- font-weight: bold;
- font-size: 14px;
- }
- &>div {
- color: rgba(0, 0, 0, 0.7);
- font-weight: 800;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- .c_t15_c_i_bottom {
- margin-top: 15px;
- font-weight: 300;
- font-size: 14px;
- height: 40px;
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .c_t73_c_i_bottom {
- margin-top: 15px;
- font-weight: 300;
- font-size: 14px;
- // height: 40px;
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- img {
- width: 100%;
- height: 200px;
- object-fit: cover;
- }
- span {
- width: 100%;
- height: 200px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- }
- }
- .c_t15_workDetail {
- width: 100%;
- height: auto;
- margin-top: 40px;
- box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
- box-sizing: border-box;
- padding: 16px;
- border-radius: 12px;
- display: flex;
- flex-direction: column;
- .c_t15_wd_top {
- width: 100%;
- display: flex;
- align-items: center;
- gap: 15px;
- &>img {
- width: 25px;
- height: 25px;
- cursor: pointer;
- }
- &>span {
- display: block;
- width: 30px;
- height: 30px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(252, 207, 0, 1);
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
- font-weight: bold;
- font-size: 16px;
- }
- &>div {
- color: rgba(0, 0, 0, 0.7);
- font-weight: 800;
- font-size: 18px;
- }
- }
- .c_t15_wd_content {
- width: 100%;
- margin-top: 20px;
- max-height: 100%;
- overflow: auto;
- flex-wrap: wrap;
- .c_t15_wd_c_imageList {
- width: 100%;
- gap: 20px;
- margin-top: 20px;
- &>img {
- width: 100px;
- height: auto;
- cursor: pointer;
- margin-right: 20px;
- object-fit: cover;
- }
- }
- }
- }
- .c_t79_workDetail {
- width: 100%;
- height: auto;
- margin-top: 40px;
- box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
- box-sizing: border-box;
- padding: 16px;
- border-radius: 12px;
- display: flex;
- flex-direction: column;
- .c_t79_wd_top {
- width: 100%;
- display: flex;
- align-items: center;
- gap: 15px;
- &>img {
- width: 25px;
- height: 25px;
- cursor: pointer;
- }
- &>span {
- display: block;
- width: 30px;
- height: 30px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(252, 207, 0, 1);
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
- font-weight: bold;
- font-size: 16px;
- }
- &>div {
- color: rgba(0, 0, 0, 0.7);
- font-weight: 800;
- font-size: 18px;
- }
- }
- .c_t79_wd_content {
- width: 100%;
- margin-top: 20px;
- max-height: 100%;
- overflow: auto;
- flex-wrap: wrap;
- display: flex;
- align-items: center;
- justify-content: center;
- &>img {
- max-width: 100%;
- height: 300px;
- object-fit: cover;
- }
- }
- }
- .cq_changeBtn {
- display: flex;
- align-items: center;
- gap: 1.5rem;
- margin: 1rem auto;
- &>div {
- padding: .6rem;
- border-radius: .5rem;
- border: solid 2px #F6C82B;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- &>svg {
- fill: #F6C82D;
- width: 1rem;
- height: 1rem;
- }
- &.cq_cb_disabled {
- cursor: not-allowed !important;
- border-color: #FEF8E9 !important;
- }
- &.cq_cb_disabled>svg {
- fill: #A3A3A3 !important;
- }
- }
- &>span {
- font-weight: 500;
- }
- }
- }
- .c_t72 {
- width: 100%;
- min-height: 100%;
- display: flex;
- // align-items: center;
- flex-direction: column;
- height: auto;
- padding: 40px;
- .c_t72_title {
- color: rgba(0, 0, 0, 0.9);
- font-weight: 600;
- font-size: 24px;
- line-height: 24px;
- }
- .c_t72_type {
- font-weight: 400;
- font-size: 15px;
- line-height: 21px;
- letter-spacing: 0.5px;
- color: rgba(0, 0, 0, 1);
- opacity: 0.5;
- margin: 10px 0;
- }
- .c_t72_msg {
- display: flex;
- align-items: center;
- font-size: .9rem;
- font-weight: 400;
- gap: 1rem;
- &>span {
- text-decoration: underline;
- cursor: pointer;
- }
- }
- .c_t72_content {
- width: 100%;
- height: auto;
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: 20px;
- margin-top: 40px;
- .c_t72_c_item {
- width: 100%;
- height: auto;
- box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
- box-sizing: border-box;
- border-radius: 12px;
- padding: 16px;
- background: rgba(255, 255, 255, 0.6);
- transition: 0.3s;
- cursor: pointer;
- overflow: hidden;
- &:hover {
- box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
- background: rgba(255, 255, 255, 0.6);
- }
- .c_t72_c_i_top {
- display: flex;
- align-items: center;
- gap: 10px;
- width: 100%;
- overflow: hidden;
- &>span {
- min-width: 25px;
- height: 25px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(252, 207, 0, 1);
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
- font-weight: bold;
- font-size: 14px;
- }
- &>div {
- color: rgba(0, 0, 0, 0.7);
- font-weight: 800;
- }
- }
- .c_t72_c_i_bottom {
- margin-top: 15px;
- font-weight: 300;
- font-size: 14px;
- // height: 40px;
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- img {
- width: 100%;
- max-height: 200px;
- object-fit: cover;
- }
- }
- }
- }
- .c_t72_workDetail {
- width: 100%;
- height: auto;
- margin-top: 40px;
- box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
- box-sizing: border-box;
- padding: 16px;
- border-radius: 12px;
- display: flex;
- flex-direction: column;
- .c_t72_wd_top {
- width: 100%;
- display: flex;
- align-items: center;
- gap: 15px;
- &>img {
- width: 25px;
- height: 25px;
- cursor: pointer;
- }
- &>span {
- display: block;
- width: 30px;
- height: 30px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(252, 207, 0, 1);
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
- font-weight: bold;
- font-size: 16px;
- }
- &>div {
- color: rgba(0, 0, 0, 0.7);
- font-weight: 800;
- font-size: 18px;
- }
- }
- .c_t72_wd_content {
- width: 100%;
- margin-top: 20px;
- max-height: 100%;
- overflow: auto;
- flex-wrap: wrap;
- display: flex;
- align-items: center;
- justify-content: center;
- .na_m_item {
- width: 100%;
- height: auto;
- margin: 10px 0;
- }
- .na_m_i_name {
- width: fit-content;
- max-width: 100%;
- height: auto;
- box-sizing: border-box;
- padding: 10px 10px;
- display: flex;
- align-items: center;
- border-radius: 10px 10px 0 0;
- background-color: #9747ff;
- color: #fff;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- .aiName {
- background-color: #0560fc;
- }
- .na_m_i_content {
- padding: 10px;
- border: solid 1px #e7e7e7;
- box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
- border-radius: 0 0 12px 12px;
- background-color: #fff;
- :deep(img) {
- max-width: 100%;
- }
- }
- .messageNode {
- width: 100%;
- height: auto;
- box-sizing: border-box;
- padding: 10px 10px;
- border: 0.5px solid #e7e7e7;
- border-radius: 12px;
- gap: 10px;
- margin-top: 20px;
- }
- .messageNodeArea {
- width: 100%;
- height: auto;
- }
- }
- }
- }
- .c_t73 {
- width: 100%;
- min-height: 100%;
- display: flex;
- // align-items: center;
- flex-direction: column;
- height: auto;
- padding: 40px;
- .c_t73_title {
- color: rgba(0, 0, 0, 0.9);
- font-weight: 600;
- font-size: 24px;
- line-height: 24px;
- }
- .c_t73_type {
- font-weight: 400;
- font-size: 15px;
- line-height: 21px;
- letter-spacing: 0.5px;
- color: rgba(0, 0, 0, 1);
- opacity: 0.5;
- margin: 10px 0;
- }
- .c_t73_msg {
- display: flex;
- align-items: center;
- font-size: .9rem;
- font-weight: 400;
- gap: 1rem;
- &>span {
- text-decoration: underline;
- cursor: pointer;
- }
- }
- .c_t73_content {
- width: 100%;
- height: auto;
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 20px;
- margin-top: 40px;
- .c_t73_c_item {
- width: 100%;
- height: auto;
- box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.2);
- box-sizing: border-box;
- border-radius: 12px;
- padding: 16px;
- background: rgba(255, 255, 255, 0.6);
- transition: 0.3s;
- cursor: pointer;
- overflow: hidden;
- &:hover {
- box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
- background: rgba(255, 255, 255, 0.6);
- }
- .c_t73_c_i_top {
- display: flex;
- align-items: center;
- gap: 10px;
- width: 100%;
- overflow: hidden;
- &>span {
- min-width: 25px;
- height: 25px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(252, 207, 0, 1);
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
- font-weight: bold;
- font-size: 14px;
- }
- &>div {
- color: rgba(0, 0, 0, 0.7);
- font-weight: 800;
- }
- }
- .c_t73_c_i_bottom {
- margin-top: 15px;
- font-weight: 300;
- font-size: 14px;
- // height: 40px;
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- img {
- width: 100%;
- max-height: 200px;
- object-fit: cover;
- }
- }
- }
- }
- .c_t73_workDetail {
- width: 100%;
- height: auto;
- margin-top: 40px;
- box-shadow: 4px 4px 14px 0px rgba(252, 207, 0, 0.5);
- box-sizing: border-box;
- padding: 16px;
- border-radius: 12px;
- display: flex;
- flex-direction: column;
- .c_t73_wd_top {
- width: 100%;
- display: flex;
- align-items: center;
- gap: 15px;
- &>img {
- width: 25px;
- height: 25px;
- cursor: pointer;
- }
- &>span {
- display: block;
- width: 30px;
- height: 30px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(252, 207, 0, 1);
- border-radius: 4px;
- color: rgba(255, 255, 255, 1);
- font-weight: bold;
- font-size: 16px;
- }
- &>div {
- color: rgba(0, 0, 0, 0.7);
- font-weight: 800;
- font-size: 18px;
- }
- }
- .c_t73_wd_content {
- width: 100%;
- margin-top: 20px;
- max-height: 100%;
- overflow: auto;
- flex-wrap: wrap;
- display: flex;
- align-items: center;
- justify-content: center;
- &>img {
- max-width: 100%;
- object-fit: cover;
- }
- }
- }
- }
- }
- }
- .aiAnalysis {
- width: 100%;
- height: auto;
- display: flex;
- flex-direction: column;
- padding: 1rem;
- border: solid 1px #F6C82B;
- border-left-width: 4px;
- border-radius: 1rem;
- gap: 1rem;
- &>.ai_header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 1rem;
- &>div {
- display: flex;
- align-items: center;
- gap: .5rem;
- &>svg {
- width: 1rem;
- height: 1rem;
- }
- }
- &>.ai_title {
- color: #F7CD49;
- font-weight: 500;
- &>svg {
- fill: #F7CD49;
- width: 1.2rem;
- height: 1.2rem;
- }
- }
- &>.ai_refresh {
- padding: .5rem 1rem;
- border-radius: .5rem;
- background: #F6C82B;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- color: #000;
- font-weight: bold;
- font-size: .8rem;
- gap: .5rem;
- &>svg {
- fill: #000;
- width: .8rem;
- height: .8rem;
- }
- &.disabled {
- cursor: not-allowed !important;
- background: #FEF8E9 !important;
- }
- }
- }
- &>.ai_content {
- font-size: 1rem;
- font-weight: 500;
- :deep(table) {
- border-collapse: collapse;
- width: 100%;
- margin: 0.5rem 0;
- th,
- td {
- border: 1px solid #ddd;
- padding: 0.5rem;
- text-align: left;
- }
- th {
- background: #f5f5f5;
- }
- }
- }
- &>.ai_echartsData {
- display: flex;
- flex-wrap: wrap;
- gap: .5rem;
- &>span {
- padding: .2rem .5rem;
- border-radius: .25rem;
- background: #E6F4FF;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #141517;
- font-size: .75rem;
- }
- &>.title {
- font-weight: 600;
- }
- &>.btn {
- font-size: .9rem;
- text-decoration: underline;
- color: #F6C82B;
- cursor: pointer;
- }
- }
- &>.ai_updateTime {
- font-size: .8rem;
- font-weight: 500;
- }
- }
- .nextAndUpBtn {
- width: 100%;
- height: auto;
- display: grid;
- grid-template-columns: 1fr 1fr;
- margin-top: 20px;
- gap: 15px;
- &>span {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 40px;
- border-radius: 5px;
- font-size: 14px;
- font-weight: 500;
- color: #fff;
- background: #f6c82b;
- cursor: pointer;
- }
- &>.no_active {
- background: #cccccc !important;
- color: #999999 !important;
- cursor: not-allowed !important;
- pointer-events: none !important;
- }
- }
- .c_title {
- display: flex;
- &>span {
- flex: 1;
- word-break: break-all;
- }
- }
- .switch_btn {
- display: flex;
- align-items: center;
- gap: .5rem;
- margin-left: auto;
- &>.switch {
- display: flex;
- align-items: center;
- gap: .5rem;
- font-size: .8rem;
- color: #141517;
- +.switch {
- margin-left: .5rem;
- }
- }
- }
- .bottom_btn {
- display: flex;
- align-items: center;
- gap: 5px;
- font-weight: 300;
- font-size: 14px;
- color: rgba(0, 0, 0, 0.7);
- .bottom_like {
- margin-left: auto;
- cursor: pointer;
- display: flex;
- align-items: center;
- gap: 5px;
- color: rgba(0, 0, 0, 0.7);
- &.active {
- color: rgba(252, 207, 0, 1);
- }
- }
- }
- .cast_sreen_btn {
- display: flex;
- align-items: center;
- gap: 5px;
- font-weight: 300;
- font-size: 14px;
- color: rgba(0, 0, 0, 0.7);
- cursor: pointer;
- margin-left: auto;
- border-radius: 5px;
- border: solid 1px rgba(252, 207, 0, .7);
- padding: .5rem 0.6rem;
- min-width: 65px;
- justify-content: center;
- }
- .downloadBtn {
- display: flex;
- align-items: center;
- gap: 5px;
- font-weight: 300;
- font-size: 14px;
- color: rgba(0, 0, 0, 0.7);
- cursor: pointer;
- margin-left: auto;
- border-radius: 5px;
- border: solid 1px rgba(252, 207, 0, .7);
- padding: .5rem 0.6rem;
- min-width: 65px;
- justify-content: center;
- margin-top: 15px;
- }
- /* KWL 展示样式 */
- .c_t831_wd_content {
- margin-top: 16px;
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .kwl-grid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 12px;
- }
- .kwl-col {
- border-radius: 12px;
- overflow: hidden;
- border: 1px solid #e5e7eb;
- background: #fff;
- display: flex;
- flex-direction: column;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
- transition: box-shadow 0.2s ease;
- &:hover {
- box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
- }
- &__header {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 10px 12px;
- color: #fff;
- font-weight: 600;
- font-size: 14px;
- }
- &__badge {
- width: 24px;
- height: 24px;
- border-radius: 6px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(255, 255, 255, 0.25);
- font-size: 13px;
- font-weight: 700;
- }
- &__label {
- font-size: 14px;
- }
- &__body {
- padding: 12px;
- flex: 1;
- min-height: 80px;
- max-height: 220px;
- overflow-y: auto;
- }
- }
- .kwl-col--k {
- .kwl-col__header {
- background: linear-gradient(135deg, #3b82f6, #2563eb);
- }
- }
- .kwl-col--w {
- .kwl-col__header {
- background: linear-gradient(135deg, #f59e0b, #d97706);
- }
- }
- .kwl-col--l {
- .kwl-col__header {
- background: linear-gradient(135deg, #10b981, #059669);
- }
- }
- .kwl-item {
- position: relative;
- padding: 6px 10px 6px 22px;
- margin-bottom: 6px;
- font-size: 13px;
- color: #374151;
- line-height: 1.5;
- background: #f9fafb;
- border-radius: 6px;
- transition: background 0.2s ease;
- word-break: break-word;
- &:last-child {
- margin-bottom: 0;
- }
- &::before {
- content: '';
- position: absolute;
- left: 10px;
- top: 13px;
- width: 5px;
- height: 5px;
- border-radius: 50%;
- background: #d1d5db;
- }
- &:hover {
- background: #f3f4f6;
- }
- }
- .kwl-col--k .kwl-item::before {
- background: #3b82f6;
- }
- .kwl-col--w .kwl-item::before {
- background: #f59e0b;
- }
- .kwl-col--l .kwl-item::before {
- background: #10b981;
- }
- .kwl-empty {
- text-align: center;
- color: #9ca3af;
- font-size: 13px;
- padding: 20px 0;
- font-style: italic;
- }
- /* 学习反思 */
- .kwl-reflection {
- border-radius: 12px;
- background: linear-gradient(135deg, #fef3c7, #fde68a);
- border: 1px solid #fcd34d;
- overflow: hidden;
- &__header {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 10px 14px;
- color: #92400e;
- font-weight: 600;
- font-size: 14px;
- background: rgba(255, 255, 255, 0.5);
- svg {
- color: #f59e0b;
- }
- }
- &__body {
- padding: 12px 14px;
- font-size: 13px;
- color: #78350f;
- line-height: 1.7;
- white-space: pre-wrap;
- }
- }
- /* 响应式:移动端单列 */
- @media (max-width: 480px) {
- .kwl-grid {
- grid-template-columns: 1fr;
- }
- .sixhat-grid {
- grid-template-columns: 1fr;
- }
- }
- /* 六顶思考帽内容 */
- .c_t832_wd_content {
- margin-top: 16px;
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .sixhat-members {
- &__header {
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 14px;
- font-weight: 600;
- color: #374151;
- margin-bottom: 8px;
- svg {
- color: #6b7280;
- }
- }
- &__list {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
- }
- .sixhat-member-chip {
- padding: 4px 12px;
- background: #f3f4f6;
- border: 1px solid #e5e7eb;
- border-radius: 999px;
- font-size: 12px;
- color: #4b5563;
- }
- .sixhat-scenario {
- padding: 12px 16px;
- background: #fffbeb;
- border: 1px solid #fde68a;
- border-radius: 10px;
- &__text {
- font-size: 13px;
- color: #78350f;
- line-height: 1.6;
- }
- }
- .sixhat-grid {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 12px;
- }
- .sixhat-col {
- border-radius: 12px;
- overflow: hidden;
- border: 1px solid #e5e7eb;
- background: #fff;
- display: flex;
- flex-direction: column;
- &__header {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 10px 14px;
- font-size: 14px;
- font-weight: 600;
- color: #fff;
- }
- &__dot {
- width: 12px;
- height: 12px;
- border-radius: 50%;
- flex-shrink: 0;
- }
- &__body {
- padding: 12px 14px;
- flex: 1;
- min-height: 60px;
- }
- }
- .sixhat-item {
- font-size: 13px;
- color: #374151;
- line-height: 1.7;
- white-space: pre-wrap;
- }
- /* 各帽子主题色 */
- .sixhat-col--white {
- .sixhat-col__header { background: linear-gradient(135deg, #d1d5db, #9ca3af); }
- .sixhat-col__dot { background: #fff; border: 1px solid #d1d5db; }
- }
- .sixhat-col--red {
- .sixhat-col__header { background: linear-gradient(135deg, #ef4444, #dc2626); }
- .sixhat-col__dot { background: #fca5a5; }
- }
- .sixhat-col--black {
- .sixhat-col__header { background: linear-gradient(135deg, #374151, #1f2937); }
- .sixhat-col__dot { background: #9ca3af; }
- }
- .sixhat-col--yellow {
- .sixhat-col__header { background: linear-gradient(135deg, #f59e0b, #d97706); }
- .sixhat-col__dot { background: #fde68a; }
- }
- .sixhat-col--green {
- .sixhat-col__header { background: linear-gradient(135deg, #22c55e, #16a34a); }
- .sixhat-col__dot { background: #bbf7d0; }
- }
- .sixhat-col--blue {
- .sixhat-col__header { background: linear-gradient(135deg, #3b82f6, #2563eb); }
- .sixhat-col__dot { background: #bfdbfe; }
- }
- /* 文件预览卡片 */
- .file-preview-card {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 24px;
- min-height: 200px;
- background: #f9fafb;
- border: 2px dashed #d1d5db;
- border-radius: 12px;
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- border-color: #FF9300;
- background: #fffbeb;
- }
- &--mini {
- width: 80px;
- height: 80px;
- padding: 0;
- min-height: unset;
- gap: 0;
- border-style: solid;
- flex-shrink: 0;
- }
- }
- .file-preview-icon {
- font-size: 48px;
- line-height: 1;
- }
- .file-preview-card--mini .file-preview-icon {
- font-size: 32px;
- }
- .file-preview-name {
- font-size: 13px;
- color: #374151;
- max-width: 200px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- text-align: center;
- }
- .file-preview-action {
- font-size: 12px;
- color: #3b82f6;
- font-weight: 500;
- }
- /* 文件预览弹窗 */
- .file-preview-modal {
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.85);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 9999;
- }
- .file-preview-close {
- position: absolute;
- top: 20px;
- right: 20px;
- width: 40px;
- height: 40px;
- border-radius: 50%;
- background: rgba(255, 255, 255, 0.15);
- display: flex;
- align-items: center;
- justify-content: center;
- color: #fff;
- cursor: pointer;
- transition: background 0.2s ease;
- &:hover {
- background: rgba(255, 255, 255, 0.25);
- }
- }
- .file-preview-video {
- max-width: 90vw;
- max-height: 85vh;
- border-radius: 8px;
- object-fit: contain;
- }
- .file-preview-frame {
- width: 90vw;
- height: 85vh;
- border-radius: 8px;
- border: none;
- background: #fff;
- }
- .file-preview-office {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 16px;
- padding: 40px;
- background: #fff;
- border-radius: 12px;
- min-width: 300px;
- }
- .file-preview-office-icon {
- font-size: 64px;
- }
- .file-preview-office-name {
- font-size: 16px;
- font-weight: 600;
- color: #374151;
- max-width: 300px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .file-preview-office-link {
- display: inline-block;
- padding: 10px 24px;
- background: #3b82f6;
- color: #fff;
- border-radius: 8px;
- text-decoration: none;
- font-size: 14px;
- font-weight: 500;
- transition: background 0.2s ease;
- &:hover {
- background: #2563eb;
- }
- }
- </style>
|