index.vue 181 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5" v-loading="loading">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop" >
  6. <div class="stepsNav" v-if="!examineId">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item
  9. v-if="!back"
  10. :to="{
  11. path:
  12. '/test?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }"
  21. >表单管理</el-breadcrumb-item
  22. >
  23. <el-breadcrumb-item v-else-if="back=='sass'" :to="{
  24. path:
  25. '/sassPlatform?userid=' +
  26. userid +
  27. '&oid=' +
  28. oid +
  29. '&org=' +
  30. org +
  31. '&role=' +
  32. role,
  33. }">sass平台</el-breadcrumb-item>
  34. <el-breadcrumb-item>
  35. <span style="color: rgb(15, 126, 255)">查看表单</span>
  36. </el-breadcrumb-item>
  37. </el-breadcrumb>
  38. </div>
  39. <div
  40. v-if="!peopleId"
  41. class="r_pub_button_retrun"
  42. @click="retrunCourse"
  43. >
  44. 返回
  45. </div>
  46. </div>
  47. <div class="step_box" ref="stepBox" v-loading="pdfLoading">
  48. <div class="boxSticky" ref="boxSticky">
  49. <div
  50. class="test_title"
  51. :style="!isDesktop ? 'justify-content: center;' : ''"
  52. >
  53. <div class="left">
  54. <div class="title">{{ testJson.title }}</div>
  55. <div class="info" v-if="isDesktop">
  56. <div class="info_box" v-if="testJson.typeN">
  57. <span>类型:</span>
  58. <span>{{ testJson.typeN }}</span>
  59. </div>
  60. <div class="info_box">
  61. <span>填写范围:</span>
  62. <span>{{
  63. testJson.juriP ? testJson.juriP : "所有人"
  64. }}</span>
  65. </div>
  66. <div class="info_box" v-if="testJson.overtime">
  67. <span>截止时间:</span>
  68. <span>{{ testJson.overtime }}</span>
  69. </div>
  70. </div>
  71. </div>
  72. <div v-if="!peopleId">
  73. <div class="right" v-if="isDesktop">
  74. <div class="data_box">
  75. <span>提交数量</span>
  76. <!-- <span><span class="big">{{ works.length }}</span>份</span> -->
  77. <span
  78. ><span class="big">{{ worksArray.length }}</span
  79. >份</span
  80. >
  81. </div>
  82. <div class="data_box" v-if="testJson.juriP">
  83. <span>表单完成率</span>
  84. <span
  85. ><span class="big">{{
  86. ((iscount / pcount) * 100).toFixed(0)
  87. }}</span
  88. >%</span
  89. >
  90. </div>
  91. <div class="data_box" v-if="testJson.juriP">
  92. <span>未完成人数</span>
  93. <span
  94. ><span class="big">{{ pcount - iscount }}</span></span
  95. >
  96. </div>
  97. <div class="btn_box" @click="dialogVisibleShare = true">
  98. <span></span>
  99. <span>提醒</span>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <!-- pc端 查看切换 isDesktop-->
  105. <div class="search_nav" v-if="isDesktop">
  106. <div class="right">
  107. <span
  108. :class="{ active: stype == 1 }"
  109. @click="checkDataType(1)"
  110. v-if="!peopleId"
  111. >按题目查看</span
  112. >
  113. <span :class="{ active: stype == 2 }" @click="checkDataType(2)"
  114. >按人员查看</span
  115. >
  116. <span
  117. :class="{ active: stype == 3 }"
  118. @click="checkDataType(3)"
  119. v-show="false"
  120. >按数量查看</span
  121. >
  122. </div>
  123. <div class="left" v-if="isDesktop">
  124. <!-- <div style="margin-right: 10px;position: relative;" v-if="stype == 2 || stype == 3"> -->
  125. <!-- <div style="margin-right: 10px;position: relative;">
  126. <el-select v-model="TeachingValue" @change="searchCourse" placeholder="按教研室">
  127. <el-option
  128. label="全部"
  129. value="">
  130. </el-option>
  131. <el-option
  132. v-for="item in TeachingOptions"
  133. :key="item.id"
  134. :label="item.name"
  135. :value="item.id">
  136. </el-option>
  137. </el-select>
  138. </div> -->
  139. <div
  140. style="margin-right: 10px; position: relative"
  141. v-if="stype == 2 || stype == 3"
  142. >
  143. <!-- <el-date-picker
  144. v-model="SubmitTime"
  145. type="date"
  146. @change="searchCourse"
  147. value-format="yyyy-MM-dd"
  148. placeholder="选择日期"
  149. >
  150. </el-date-picker> -->
  151. <!-- <el-select v-model="SubmitTime" placeholder="按提交时间筛选">
  152. <el-option
  153. label="全部"
  154. value="">
  155. </el-option>
  156. <el-option
  157. v-for="item in SubmitTimeOptions"
  158. :key="item.id"
  159. :label="item.name"
  160. :value="item.id">
  161. </el-option>
  162. </el-select> -->
  163. </div>
  164. <div
  165. style="margin-right: 10px; position: relative"
  166. v-if="stype == 2 || stype == 3"
  167. >
  168. <el-input
  169. v-model="courseName"
  170. class="student_input"
  171. :disabled="!!peopleId"
  172. placeholder="请输入需要搜索的姓名"
  173. ></el-input>
  174. <span class="serach_icon" @click="searchCourse"></span>
  175. </div>
  176. <div
  177. class="btnA"
  178. v-if="stype == 1 && !pdfLoading"
  179. @click="exportPDF"
  180. >
  181. 导出PDF
  182. </div>
  183. <div
  184. class="btnA"
  185. v-if="stype == 2"
  186. @mouseenter="btnDisplay = true"
  187. @mouseleave="btnDisplay = false"
  188. >
  189. 导出数据
  190. <div v-show="btnDisplay" class="buttonBox">
  191. <div type="primary" @click="exportExcel">下载汇总表格</div>
  192. <div type="primary" @click="exportAllWord">
  193. 导出人员数据
  194. </div>
  195. <div
  196. type="primary"
  197. v-if="stype == 2"
  198. @click="exportWordData"
  199. >
  200. word导出
  201. </div>
  202. </div>
  203. </div>
  204. <div class="btnA" v-if="stype == 3" @click="exportAllWord2">
  205. 导出人员数据
  206. </div>
  207. <div
  208. class="btnA"
  209. @click="openChat"
  210. v-if="this.worksArray.length && !peopleId"
  211. >
  212. AI分析
  213. </div>
  214. <el-popover
  215. v-if="stype == 2"
  216. placement="top-start"
  217. width="320"
  218. ref="popover1"
  219. :visible-arrow="false"
  220. trigger="click"
  221. >
  222. <div class="openCeBox" v-loading="aiscoLoading">
  223. <div style="display: flex;justify-content: space-between;align-items: center;">
  224. <div class="TopTit">智能分析列</div>
  225. <el-popover
  226. placement="bottom"
  227. @click.native.stop
  228. :visible-arrow="false"
  229. width="300"
  230. ref="popover2"
  231. v-model="opQvisible"
  232. trigger="click">
  233. <div>
  234. <div style="display: flex;align-items: center;margin-bottom: 10px;">
  235. <img src="../../../../assets/delicon.svg" alt="">是否确认清空
  236. </div>
  237. <div style="padding: 0 20px;box-sizing: border-box;">清空会删除所有配置信息,并同步删除已经生成完成的数据列。请谨慎操作!</div>
  238. <div style="display: flex;justify-content: flex-end;margin-top: 10px;">
  239. <el-button class="BtnOPC" @click="opQvisible = false"> 取消</el-button>
  240. <el-button class="BtnOPC" @click="cleancueWord" style="background: #1456F0;" type="primary">确定</el-button>
  241. </div>
  242. </div>
  243. <div class="Topkong" slot="reference">
  244. <img src="../../../../assets/clear.svg" alt="">
  245. 清空
  246. </div>
  247. </el-popover>
  248. </div>
  249. <div style="font-size: 12px;color: #6E6B6B;">标题</div>
  250. <div>
  251. <el-input v-model="cueWord.openCeTit" placeholder="输入列标题"></el-input>
  252. </div>
  253. <div style="font-size: 12px;color: #6E6B6B;">配置</div>
  254. <div style="background: #F5F6F7;padding: 10px;box-sizing: border-box;border-radius: 5px;">
  255. <div style="display: flex;justify-content: space-between;align-items: center;margin-bottom: 5px;">
  256. <div style="font-size: 12px;color: #6E6B6B;">输入指令*</div>
  257. <div style="position: relative;font-size: 12px;color: #3992EA;" >
  258. <div style="cursor: pointer;" @click="quoteShow">
  259. <i class="el-icon-circle-plus-outline"></i>
  260. 引用字段
  261. </div>
  262. <div class="quoteBlock" v-if="quoteV">
  263. <el-input v-model="opcInp" placeholder="请输入内容">
  264. <i slot="prefix" class="el-input__icon el-icon-search"></i>
  265. </el-input>
  266. <div class="quoteBlockCon">
  267. <div v-if="!opcInp.trim() ? true : '序号'.includes(opcInp)" :class="[cueWord.fieldList.indexOf('序号') != -1 ? 'selCss' :'']"
  268. @click="addfield('序号')">序号</div>
  269. <div v-if="!opcInp.trim() ? true :'提交人'.includes(opcInp)" :class="[cueWord.fieldList.indexOf('提交人') != -1 ? 'selCss' :'']"
  270. @click="addfield('提交人')">提交人</div>
  271. <template v-for="(i,index) in teaType">
  272. <div v-if="!opcInp.trim() ? true : i.name.includes(opcInp)" :class="[cueWord.fieldList.indexOf(i.name) != -1 ? 'selCss' :'']"
  273. @click="addfield(i.name)" :key="index+'a'">
  274. {{ i.name }}
  275. </div>
  276. </template>
  277. <div v-if="!opcInp.trim() ? true : '提交时间'.includes(opcInp)" :class="[cueWord.fieldList.indexOf('提交时间') != -1 ? 'selCss' :'']"
  278. @click="addfield('提交时间')">提交时间</div>
  279. <template v-for="(i,index) in fie(chapters)">
  280. <div :class="[cueWord.fieldList.indexOf(i.json.title) != -1 ? 'selCss' :'']"
  281. v-if="!opcInp.trim() ? true :i.json.title.includes(opcInp)" @click="addfield(i.json.title)"
  282. :key="index+'b'">
  283. {{ i.json.title }}
  284. </div>
  285. </template>
  286. </div>
  287. </div>
  288. <div class="maskCss" v-if="quoteV" @click.stop="quoteV = false,opcInp=''"></div>
  289. </div>
  290. </div>
  291. <div style="display: flex;gap: 8px;margin-bottom: 5px;flex-wrap: wrap;">
  292. <span class="SPCE" v-for="(i,index) in cueWord.fieldList" :key="index+'c'">
  293. {{ i }} <i @click="addfield(i)" class="el-icon-close" style="cursor: pointer;"></i>
  294. </span>
  295. </div>
  296. <div>
  297. <el-input
  298. resize="none"
  299. type="textarea"
  300. :rows="8"
  301. placeholder="请输入内容"
  302. v-model="cueWord.openCeCon">
  303. </el-input>
  304. </div>
  305. </div>
  306. <!-- <div style="display: flex;justify-content: flex-start;align-items: center;gap: 5px;">
  307. <el-switch
  308. v-model="openCeVal"
  309. >
  310. </el-switch>
  311. <span>自动更新
  312. <el-tooltip class="item" effect="dark" content="开启后,当前字段将跟随配置内容的变化同步更新" placement="top">
  313. <i class="el-icon-warning-outline"></i>
  314. </el-tooltip>
  315. </span>
  316. </div> -->
  317. <div style="margin-top: 10px;display: flex;justify-content: flex-end;">
  318. <el-button @click="opQvisible0 = false">取消</el-button>
  319. <el-button style="background: #1456F0;" @click="markSco()" type="primary">确定</el-button>
  320. </div>
  321. </div>
  322. <div
  323. slot="reference"
  324. class="btnA"
  325. >
  326. 智能分析列
  327. </div>
  328. </el-popover>
  329. <!--v-if="this.worksArray.length"-->
  330. </div>
  331. </div>
  332. <!-- 手机端 查看切换 isDesktop-->
  333. <div
  334. class="search_nav"
  335. style="display: flex; justify-content: space-evenly; border: none"
  336. v-if="!isDesktop"
  337. >
  338. <div class="right">
  339. <span :class="{ active2: stype == 1 }" @click="checkDataType(1)"
  340. >按题目查看</span
  341. >
  342. <span :class="{ active2: stype == 2 }" @click="checkDataType(2)"
  343. >按人员查看</span
  344. >
  345. <span
  346. :class="{ active2: stype == 3 }"
  347. @click="checkDataType(3)"
  348. v-show="false"
  349. >按数量查看</span
  350. >
  351. </div>
  352. </div>
  353. </div>
  354. <!-- 按题目pc端 isDesktop-->
  355. <div
  356. class="title_content"
  357. v-if="stype == 1 && isDesktop"
  358. v-loading="isLoading"
  359. >
  360. <div
  361. class="title_box"
  362. v-if="!testArray.length"
  363. style="
  364. display: flex;
  365. align-items: center;
  366. justify-content: center;
  367. height: 500px;
  368. "
  369. >
  370. 暂无内容
  371. </div>
  372. <div
  373. class="title_box"
  374. v-for="(item, index) in testArray"
  375. :key="index"
  376. >
  377. <div class="title">
  378. <el-tooltip
  379. :content="selectType(item)"
  380. placement="top"
  381. effect="dark"
  382. >
  383. <span
  384. class="test_icon"
  385. :class="{
  386. test_icon_check: item.type == 1 && item.atype == 2,
  387. test_icon_checkO: item.type == 1 && item.atype == 1,
  388. test_icon_gap: item.type == 3,
  389. test_icon_file: item.type == 5,
  390. test_course_file: item.type == 6 || item.type == 11,
  391. test_eva_file: item.type == 7,
  392. test_icon_time: item.type == 8,
  393. test_icon_sweep:item.type == 12,
  394. test_icon_number:item.type == 13,
  395. test_icon_clockIn:item.type == 14
  396. }"
  397. ></span>
  398. </el-tooltip>
  399. <span style="line-height: 25px">{{ item.title }}</span>
  400. <el-button
  401. v-if="item.type == 5 && item.array.length > 0"
  402. class="title_downBtn"
  403. type="primary"
  404. size="small"
  405. @click.stop="downloadFileType5(item.array, item.title, index)"
  406. >批量下载附件</el-button
  407. >
  408. <div v-if="item.type == 7" style="right: 0; position: absolute">
  409. 平均分:{{ getAverageScore(index) }}
  410. </div>
  411. </div>
  412. <div class="detail" v-if="item.detail">{{ item.detail }}</div>
  413. <div class="content1" v-if="item.type == 1">
  414. <div class="left">
  415. <div class="title">
  416. <span>选项</span>
  417. <span>小计</span>
  418. <span>比例</span>
  419. </div>
  420. <div
  421. class="data"
  422. v-for="(data, index2) in item.array"
  423. :key="index + '-' + index2"
  424. >
  425. <span>
  426. <el-tooltip
  427. :content="data.name"
  428. placement="top"
  429. effect="dark"
  430. >
  431. <!-- content to trigger tooltip here -->
  432. <span>{{ data.name }}</span>
  433. </el-tooltip>
  434. </span>
  435. <span>{{ data.count }}</span>
  436. <span>
  437. <el-progress
  438. style="display: flex; align-items: center"
  439. :stroke-width="12"
  440. color="#3681fc"
  441. :percentage="
  442. data.count
  443. ? parseFloat(
  444. ((data.count / item.count) * 100).toFixed(2)
  445. )
  446. : 0
  447. "
  448. ></el-progress>
  449. </span>
  450. </div>
  451. </div>
  452. <div class="right">
  453. <checkPie :dataJ="item.array"></checkPie>
  454. </div>
  455. </div>
  456. <div class="content2" v-if="item.type == 3">
  457. <div class="left" style="min-height: 482px;">
  458. <div class="title">
  459. <span>序号</span>
  460. <span>词频</span>
  461. <span>答案文本</span>
  462. </div>
  463. <div
  464. class="data"
  465. v-for="(data, index3) in item.showArray"
  466. :key="index + '-' + index3"
  467. >
  468. <span>{{ index3 + 1 }}</span>
  469. <span>{{ data.count }}次</span>
  470. <el-tooltip
  471. :content="data.name"
  472. placement="top"
  473. effect="dark"
  474. >
  475. <!-- content to trigger tooltip here -->
  476. <span>{{ data.name }}</span>
  477. </el-tooltip>
  478. </div>
  479. <div class="paging" v-if="item.limit">
  480. <el-pagination
  481. background
  482. :hide-on-single-page="true"
  483. :page-size="item.limit"
  484. @current-change="textPagingChange($event,item,index)"
  485. :current-page="item.nowPage"
  486. layout="prev, pager, next"
  487. :total="item.total">
  488. </el-pagination>
  489. </div>
  490. </div>
  491. <div class="right">
  492. <div class="noWordCloud" v-if="!item.wordCloutData">
  493. <el-button v-if="!item.loadingWordCloud" type="primary" @click="getWordCloutData(item,index)">生成词云图</el-button>
  494. <div v-else>
  495. <span>小可努力生成中,请稍等片刻</span>
  496. <img src="../../../../assets/KekeLoading.gif">
  497. </div>
  498. </div>
  499. <wordcloud
  500. v-else
  501. :data="item.wordCloutData"
  502. nameKey="name"
  503. valueKey="count"
  504. :showTooltip="false"
  505. :wordClick="wordClickHandler"
  506. >
  507. </wordcloud>
  508. </div>
  509. </div>
  510. <div
  511. class="content3"
  512. :style="{
  513. position: 'relative',
  514. overflow: fileLoading[index].bool ? 'hidden' : 'auto',
  515. }"
  516. v-if="item.type == 5"
  517. >
  518. <div
  519. class="file"
  520. v-for="(file, index2) in item.array"
  521. :key="index + '-' + index2"
  522. @click.stop="checkFile(file)"
  523. >
  524. <img
  525. class="download"
  526. src="../../../../assets/icon/fileIcon/download.png"
  527. @click.stop="downloadFile(file)"
  528. :style="{ right: '10px' }"
  529. />
  530. <img
  531. class="img"
  532. :src="wordIcon"
  533. alt=""
  534. v-if="file.type == 1"
  535. />
  536. <img
  537. class="img"
  538. :src="videoIcon"
  539. alt=""
  540. v-if="file.type == 2"
  541. />
  542. <img
  543. class="img"
  544. :src="file.url"
  545. alt=""
  546. v-if="file.type == 3"
  547. />
  548. <img
  549. class="img"
  550. :src="wordIcon"
  551. alt=""
  552. v-if="file.type == 4"
  553. />
  554. <img
  555. class="img"
  556. :src="fileIcon"
  557. alt=""
  558. v-if="file.type == 5"
  559. />
  560. <div class="name">
  561. <el-tooltip
  562. :content="file.name"
  563. placement="top"
  564. effect="dark"
  565. >
  566. <span>{{ file.name }}</span>
  567. </el-tooltip>
  568. </div>
  569. </div>
  570. <div v-if="fileLoading[index].bool" class="mask">
  571. <div class="progressBox">
  572. <div class="lbox">
  573. <img src="../../../../assets/loading.gif" />打包中,请稍后
  574. </div>
  575. <div style="margin-bottom: 10px">
  576. <span>{{ fileLoading[index].load }}</span>
  577. /
  578. <span>{{ fileLoading[index].count }}</span>
  579. </div>
  580. <el-progress
  581. :text-inside="true"
  582. :stroke-width="20"
  583. :percentage="
  584. fileLoading[index].progress
  585. ? fileLoading[index].progress
  586. : 0
  587. "
  588. style="width: 80%"
  589. ></el-progress>
  590. </div>
  591. </div>
  592. </div>
  593. <div class="content4" v-if="item.type == 6">
  594. <div
  595. class="out_box"
  596. v-for="(item, index) in item.courseArray"
  597. :key="index + '-' + index2"
  598. >
  599. <div class="tup">
  600. <img
  601. :src="
  602. item.cover != null && item.cover != ''
  603. ? JSON.parse(item.cover).length > 0
  604. ? JSON.parse(item.cover)[0].url
  605. : mr
  606. : mr
  607. "
  608. alt
  609. />
  610. <div class="bottom_box">
  611. <div>
  612. <el-tooltip
  613. :content="item.title"
  614. popper-class="text_tooltip"
  615. placement="top"
  616. effect="dark"
  617. >
  618. <span>{{ item.title }}</span>
  619. </el-tooltip>
  620. </div>
  621. <div class="kc_t">
  622. <span>{{ item.username }}</span>
  623. <span>{{
  624. item.state == 1
  625. ? "阶段模式"
  626. : item.state == 2
  627. ? "任务模式"
  628. : "极简模式"
  629. }}</span>
  630. </div>
  631. <div class="kc_time">
  632. <span style="color: #717c8d">创建日期:</span
  633. >{{ item.time }}
  634. </div>
  635. <div class="kc_time">
  636. <span style="color: #717c8d">修改日期:</span
  637. >{{ item.update_at }}
  638. </div>
  639. </div>
  640. </div>
  641. </div>
  642. <!-- <div class="courses" v-for="(courses, index2) in item.array" :key="index + '-' + index2">
  643. {{ courses }}
  644. </div> -->
  645. </div>
  646. <div class="content1" v-if="item.type == 7">
  647. <div class="left">
  648. <div class="title">
  649. <span>评分</span>
  650. <span>小计</span>
  651. <span>比例</span>
  652. </div>
  653. <div
  654. class="data"
  655. v-for="(data, index2) in item.array"
  656. :key="index + '-' + index2"
  657. >
  658. <span>
  659. <span>{{ data.name }}</span>
  660. </span>
  661. <span>{{ data.count }}</span>
  662. <span>
  663. <el-progress
  664. style="display: flex; align-items: center"
  665. :stroke-width="12"
  666. color="#3681fc"
  667. :percentage="
  668. data.count
  669. ? parseFloat(
  670. ((data.count / item.count) * 100).toFixed(2)
  671. )
  672. : 0
  673. "
  674. ></el-progress>
  675. </span>
  676. </div>
  677. </div>
  678. <div class="right">
  679. <checkPie :dataJ="item.array"></checkPie>
  680. </div>
  681. </div>
  682. <div class="content2" v-if="item.type == 8">
  683. <div class="left">
  684. <div class="title">
  685. <span>序号</span>
  686. <span>词频</span>
  687. <span>日期</span>
  688. </div>
  689. <div
  690. class="data"
  691. v-for="(data, index2) in item.array"
  692. :key="index + '-' + index2"
  693. >
  694. <span>{{ index2 + 1 }}</span>
  695. <span>{{ data.count }}次</span>
  696. <el-tooltip
  697. :content="data.name"
  698. placement="top"
  699. effect="dark"
  700. >
  701. <!-- content to trigger tooltip here -->
  702. <span>{{ data.name }}</span>
  703. </el-tooltip>
  704. </div>
  705. </div>
  706. <div class="right">
  707. <wordcloud
  708. :data="item.array"
  709. nameKey="name"
  710. valueKey="count"
  711. :showTooltip="false"
  712. :wordClick="wordClickHandler"
  713. >
  714. </wordcloud>
  715. </div>
  716. </div>
  717. <div class="content4" v-if="item.type == 11">
  718. <div
  719. class="out_box"
  720. v-for="(item, index) in item.courseArray"
  721. :key="index + '-' + index2"
  722. >
  723. <div class="tup">
  724. <img
  725. :src="
  726. item.cover != null && item.cover != ''
  727. ? JSON.parse(item.cover).length > 0
  728. ? JSON.parse(item.cover)[0].url
  729. : mr
  730. : mr
  731. "
  732. alt
  733. />
  734. <div class="bottom_box">
  735. <div>
  736. <el-tooltip
  737. :content="item.title"
  738. popper-class="text_tooltip"
  739. placement="top"
  740. effect="dark"
  741. >
  742. <span>{{ item.title }}</span>
  743. </el-tooltip>
  744. </div>
  745. <div class="kc_t">
  746. <span>{{ item.username }}</span>
  747. <span>{{
  748. item.state == 1
  749. ? "阶段模式"
  750. : item.state == 2
  751. ? "任务模式"
  752. : "极简模式"
  753. }}</span>
  754. </div>
  755. <div class="kc_time">
  756. <span style="color: #717c8d">创建日期:</span
  757. >{{ item.time }}
  758. </div>
  759. <div class="kc_time">
  760. <span style="color: #717c8d">修改日期:</span
  761. >{{ item.update_at }}
  762. </div>
  763. </div>
  764. </div>
  765. </div>
  766. <!-- <div class="courses" v-for="(courses, index2) in item.array" :key="index + '-' + index2">
  767. {{ courses }}
  768. </div> -->
  769. </div>
  770. <div class="content1" v-if="item.type == 13">
  771. <div class="left">
  772. <div class="title">
  773. <span>数字</span>
  774. <span>次数</span>
  775. <span>比例</span>
  776. </div>
  777. <div
  778. class="data"
  779. v-for="(data, index2) in item.array"
  780. :key="index + '-' + index2"
  781. >
  782. <span>
  783. <span>{{ data.name }}</span>
  784. </span>
  785. <span>{{ data.count }}</span>
  786. <span>
  787. <el-progress
  788. style="display: flex; align-items: center"
  789. :stroke-width="12"
  790. color="#3681fc"
  791. :percentage="
  792. data.count
  793. ? parseFloat(
  794. ((data.count / item.count) * 100).toFixed(2)
  795. )
  796. : 0
  797. "
  798. ></el-progress>
  799. </span>
  800. </div>
  801. </div>
  802. <div class="right">
  803. <checkPie :dataJ="item.array"></checkPie>
  804. </div>
  805. </div>
  806. </div>
  807. </div>
  808. <!-- 按题目手机端 !isDesktop-->
  809. <div
  810. class="title_content"
  811. v-if="stype == 1 && !isDesktop"
  812. v-loading="isLoading"
  813. >
  814. <div
  815. class="title_box"
  816. v-if="!testArray.length"
  817. style="
  818. display: flex;
  819. align-items: center;
  820. justify-content: center;
  821. height: 500px;
  822. "
  823. >
  824. 暂无内容
  825. </div>
  826. <div
  827. class="title_box"
  828. v-for="(item, index) in testArray"
  829. :key="index"
  830. >
  831. <div
  832. class="title"
  833. style="
  834. font-size: 16px;
  835. display: flex;
  836. justify-content: space-between;
  837. align-items: center;
  838. "
  839. >
  840. <!-- <el-tooltip :content="selectType(item)" placement="top" effect="dark">
  841. <span class="test_icon"
  842. :class="{ test_icon_check: item.type == 1 && item.atype == 2, test_icon_checkO: item.type == 1 && item.atype == 1, test_icon_gap: item.type == 3, test_icon_file: item.type == 5, test_course_file: item.type == 6, test_eva_file: item.type == 7,test_icon_time: item.type == 8 }"></span>
  843. </el-tooltip> -->
  844. <div style="display: flex">
  845. <div class="topicTitCss">第{{ index + 1 }}题:</div>
  846. <el-tooltip
  847. :content="item.title"
  848. placement="top"
  849. effect="dark"
  850. >
  851. <div
  852. style="
  853. width: 100px;
  854. overflow: hidden;
  855. white-space: nowrap;
  856. text-overflow: ellipsis;
  857. "
  858. >
  859. {{ item.title }}
  860. </div>
  861. </el-tooltip>
  862. </div>
  863. <div style="display: flex">
  864. <!-- <div v-if="item.type==7" style="right:0;position: absolute;">平均分:{{ getAverageScore(index) }}</div> -->
  865. <div
  866. style="
  867. color: rgba(0, 0, 0, 0.4);
  868. display: flex;
  869. align-items: center;
  870. "
  871. >
  872. [{{ selectType(item) }}]
  873. </div>
  874. <!-- <el-button style="padding: 5px;" v-if="item.type == 5 && item.array.length>0" class="title_downBtn" type="primary" size="small" @click.stop="downloadFileType5(item.array,item.title)">批量下载附件</el-button> -->
  875. </div>
  876. </div>
  877. <div class="detail" v-if="item.detail">{{ item.detail }}</div>
  878. <div
  879. class="content1"
  880. style="width: 100%; display: block"
  881. v-if="item.type == 1"
  882. >
  883. <div class="left" style="width: 100%" v-if="!item.cut">
  884. <div class="isDesktopTitle">
  885. <div>选项</div>
  886. <div>小计</div>
  887. <div>比例</div>
  888. </div>
  889. <div
  890. class="isDesktopTitle"
  891. v-for="(data, index2) in item.array"
  892. :key="index + '-' + index2"
  893. >
  894. <!-- <span> -->
  895. <el-tooltip
  896. :content="data.name"
  897. placement="top"
  898. effect="dark"
  899. >
  900. <!-- content to trigger tooltip here -->
  901. <div>{{ data.name }}</div>
  902. </el-tooltip>
  903. <!-- </span> -->
  904. <div>{{ data.count }}</div>
  905. <div>
  906. {{
  907. data.count
  908. ? parseFloat(
  909. ((data.count / item.count) * 100).toFixed(2)
  910. )
  911. : 0
  912. }}
  913. <!-- <el-progress style="display: flex;align-items: center;" :stroke-width="12" color="#3681fc"
  914. :percentage="data.count ? parseFloat(((data.count / item.count) * 100).toFixed(2)) : 0"></el-progress> -->
  915. </div>
  916. </div>
  917. </div>
  918. <div class="right isDesktopRight" v-if="item.cut">
  919. <checkPie :dataJ="item.array"></checkPie>
  920. </div>
  921. <div class="cutBtnBlockCss">
  922. <div class="cutBtnCss" @click="item.cut = !item.cut">
  923. {{ item.cut ? "查看详情" : "查看视图" }}
  924. </div>
  925. </div>
  926. </div>
  927. <div
  928. class="content2"
  929. style="width: 100%; display: block"
  930. v-if="item.type == 3"
  931. >
  932. <div class="left" style="width: 100%" v-if="!item.cut">
  933. <div class="title">
  934. <span>序号</span>
  935. <span>词频</span>
  936. <span>答案文本</span>
  937. </div>
  938. <div
  939. class="data"
  940. v-for="(data, index2) in item.array"
  941. :key="index + '-' + index2"
  942. >
  943. <span>{{ index2 + 1 }}</span>
  944. <span>{{ data.count }}次</span>
  945. <el-tooltip
  946. :content="data.name"
  947. placement="top"
  948. effect="dark"
  949. >
  950. <!-- content to trigger tooltip here -->
  951. <span>{{ data.name }}</span>
  952. </el-tooltip>
  953. </div>
  954. </div>
  955. <div class="right isDesktopRight" v-if="item.cut">
  956. <wordcloud
  957. :data="item.array"
  958. nameKey="name"
  959. valueKey="count"
  960. :showTooltip="false"
  961. :wordClick="wordClickHandler"
  962. >
  963. </wordcloud>
  964. </div>
  965. <div class="cutBtnBlockCss">
  966. <div class="cutBtnCss" @click="item.cut = !item.cut">
  967. {{ item.cut ? "查看详情" : "查看视图" }}
  968. </div>
  969. </div>
  970. </div>
  971. <div class="content3" v-if="item.type == 5">
  972. <div
  973. class="file"
  974. v-for="(file, index2) in item.array"
  975. :key="index + '-' + index2"
  976. @click.stop="checkFile(file)"
  977. >
  978. <img
  979. class="download"
  980. src="../../../../assets/icon/fileIcon/download.png"
  981. @click.stop="downloadFile(file)"
  982. :style="{ right: '10px' }"
  983. />
  984. <img
  985. class="img"
  986. :src="wordIcon"
  987. alt=""
  988. v-if="file.type == 1"
  989. />
  990. <img
  991. class="img"
  992. :src="videoIcon"
  993. alt=""
  994. v-if="file.type == 2"
  995. />
  996. <img
  997. class="img"
  998. :src="file.url"
  999. alt=""
  1000. v-if="file.type == 3"
  1001. />
  1002. <img
  1003. class="img"
  1004. :src="wordIcon"
  1005. alt=""
  1006. v-if="file.type == 4"
  1007. />
  1008. <img
  1009. class="img"
  1010. :src="fileIcon"
  1011. alt=""
  1012. v-if="file.type == 5"
  1013. />
  1014. <div class="name">
  1015. <el-tooltip
  1016. :content="file.name"
  1017. placement="top"
  1018. effect="dark"
  1019. >
  1020. <span>{{ file.name }}</span>
  1021. </el-tooltip>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div class="content4" v-if="item.type == 6">
  1026. <div
  1027. class="out_box"
  1028. v-for="(item, index) in item.courseArray"
  1029. :key="index + '-' + index2"
  1030. >
  1031. <div class="tup">
  1032. <img
  1033. :src="
  1034. item.cover != null && item.cover != ''
  1035. ? JSON.parse(item.cover).length > 0
  1036. ? JSON.parse(item.cover)[0].url
  1037. : mr
  1038. : mr
  1039. "
  1040. alt
  1041. />
  1042. <div class="bottom_box">
  1043. <div>
  1044. <el-tooltip
  1045. :content="item.title"
  1046. popper-class="text_tooltip"
  1047. placement="top"
  1048. effect="dark"
  1049. >
  1050. <span>{{ item.title }}</span>
  1051. </el-tooltip>
  1052. </div>
  1053. <div class="kc_t">
  1054. <span>{{ item.username }}</span>
  1055. <span>{{
  1056. item.state == 1
  1057. ? "阶段模式"
  1058. : item.state == 2
  1059. ? "任务模式"
  1060. : "极简模式"
  1061. }}</span>
  1062. </div>
  1063. <div class="kc_time">
  1064. <span style="color: #717c8d">创建日期:</span
  1065. >{{ item.time }}
  1066. </div>
  1067. <div class="kc_time">
  1068. <span style="color: #717c8d">修改日期:</span
  1069. >{{ item.update_at }}
  1070. </div>
  1071. </div>
  1072. </div>
  1073. </div>
  1074. <!-- <div class="courses" v-for="(courses, index2) in item.array" :key="index + '-' + index2">
  1075. {{ courses }}
  1076. </div> -->
  1077. </div>
  1078. <div
  1079. class="content1"
  1080. style="width: 100%; display: block"
  1081. v-if="item.type == 7"
  1082. >
  1083. <div class="left" style="width: 100%" v-if="!item.cut">
  1084. <div class="isDesktopTitle">
  1085. <div>评分</div>
  1086. <div>小计</div>
  1087. <div style="width: 120px">比例</div>
  1088. </div>
  1089. <div
  1090. class="isDesktopTitle"
  1091. v-for="(data, index2) in item.array"
  1092. :key="index + '-' + index2"
  1093. >
  1094. <!-- <span> -->
  1095. <div>{{ data.name }}</div>
  1096. <!-- </span> -->
  1097. <div>{{ data.count }}</div>
  1098. <div style="width: 120px">
  1099. {{
  1100. data.count
  1101. ? parseFloat(
  1102. ((data.count / item.count) * 100).toFixed(2)
  1103. )
  1104. : 0
  1105. }}
  1106. <!-- <el-progress style="display: flex;align-items: center;" :stroke-width="12" color="#3681fc"
  1107. :percentage="data.count ? parseFloat(((data.count / item.count) * 100).toFixed(2)) : 0"></el-progress> -->
  1108. </div>
  1109. </div>
  1110. </div>
  1111. <div class="right isDesktopRight" v-if="item.cut">
  1112. <checkPie :dataJ="item.array"></checkPie>
  1113. </div>
  1114. <div class="cutBtnBlockCss">
  1115. <div class="cutBtnCss" @click="item.cut = !item.cut">
  1116. {{ item.cut ? "查看详情" : "查看视图" }}
  1117. </div>
  1118. </div>
  1119. </div>
  1120. <div
  1121. class="content2"
  1122. style="width: 100%; display: block"
  1123. v-if="item.type == 8"
  1124. >
  1125. <div class="left" style="width: 100%" v-if="!item.cut">
  1126. <div class="title">
  1127. <span>序号</span>
  1128. <span>词频</span>
  1129. <span>日期</span>
  1130. </div>
  1131. <div
  1132. class="data"
  1133. v-for="(data, index2) in item.array"
  1134. :key="index + '-' + index2"
  1135. >
  1136. <span>{{ index2 + 1 }}</span>
  1137. <span>{{ data.count }}次</span>
  1138. <el-tooltip
  1139. :content="data.name"
  1140. placement="top"
  1141. effect="dark"
  1142. >
  1143. <!-- content to trigger tooltip here -->
  1144. <span>{{ data.name }}</span>
  1145. </el-tooltip>
  1146. </div>
  1147. </div>
  1148. <div class="right isDesktopRight" v-if="item.cut">
  1149. <wordcloud
  1150. :data="item.array"
  1151. nameKey="name"
  1152. valueKey="count"
  1153. :showTooltip="false"
  1154. :wordClick="wordClickHandler"
  1155. >
  1156. </wordcloud>
  1157. </div>
  1158. <div class="cutBtnBlockCss">
  1159. <div class="cutBtnCss" @click="item.cut = !item.cut">
  1160. {{ item.cut ? "查看详情" : "查看视图" }}
  1161. </div>
  1162. </div>
  1163. </div>
  1164. <div class="content4" v-if="item.type == 11">
  1165. <div
  1166. class="out_box"
  1167. v-for="(item, index) in item.courseArray"
  1168. :key="index + '-' + index2"
  1169. >
  1170. <div class="tup">
  1171. <img
  1172. :src="
  1173. item.cover != null && item.cover != ''
  1174. ? JSON.parse(item.cover).length > 0
  1175. ? JSON.parse(item.cover)[0].url
  1176. : mr
  1177. : mr
  1178. "
  1179. alt
  1180. />
  1181. <div class="bottom_box">
  1182. <div>
  1183. <el-tooltip
  1184. :content="item.title"
  1185. popper-class="text_tooltip"
  1186. placement="top"
  1187. effect="dark"
  1188. >
  1189. <span>{{ item.title }}</span>
  1190. </el-tooltip>
  1191. </div>
  1192. <div class="kc_t">
  1193. <span>{{ item.username }}</span>
  1194. <span>{{
  1195. item.state == 1
  1196. ? "阶段模式"
  1197. : item.state == 2
  1198. ? "任务模式"
  1199. : "极简模式"
  1200. }}</span>
  1201. </div>
  1202. <div class="kc_time">
  1203. <span style="color: #717c8d">创建日期:</span
  1204. >{{ item.time }}
  1205. </div>
  1206. <div class="kc_time">
  1207. <span style="color: #717c8d">修改日期:</span
  1208. >{{ item.update_at }}
  1209. </div>
  1210. </div>
  1211. </div>
  1212. </div>
  1213. <!-- <div class="courses" v-for="(courses, index2) in item.array" :key="index + '-' + index2">
  1214. {{ courses }}
  1215. </div> -->
  1216. </div>
  1217. </div>
  1218. </div>
  1219. <div
  1220. class="aiBoxRight"
  1221. ref="aiBoxRightDivRef"
  1222. v-show="aiChatV && isDesktop"
  1223. v-if="!peopleId"
  1224. >
  1225. <aiBoxRight
  1226. :courseId="cid"
  1227. :worksArray="[{ name: testJson.title, worksArray: worksArray }]"
  1228. ref="aiChat"
  1229. ></aiBoxRight>
  1230. </div>
  1231. <!-- 按人员pc端 isDesktop-->
  1232. <div class="table_content" v-if="stype == 2 && isDesktop">
  1233. <el-table
  1234. class="el-table"
  1235. ref="table"
  1236. :data="tableWorksArray"
  1237. border
  1238. :fit="true"
  1239. :key="2"
  1240. v-loading="isLoading"
  1241. style="width: 100%"
  1242. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  1243. @filter-change="handleFilterChange"
  1244. @selection-change="handleSelectionChange"
  1245. >
  1246. <el-table-column label="序号" type="selection" width="55">
  1247. </el-table-column>
  1248. <el-table-column fixed label="序号" width="80px" align="left">
  1249. <template slot-scope="scope">
  1250. {{ scope.$index + 1 }}
  1251. </template>
  1252. </el-table-column>
  1253. <el-table-column
  1254. fixed
  1255. prop="name"
  1256. label="提交人"
  1257. width="120px"
  1258. align="left"
  1259. >
  1260. </el-table-column>
  1261. <el-table-column
  1262. v-for="item in teaType"
  1263. :key="item.id"
  1264. :label="item.name"
  1265. width="120px"
  1266. align="left"
  1267. :filters="getNameTTypeFiler(item)"
  1268. :filter-method="getNameTTypeFiler(item) ? (value, row) => {
  1269. return filterTType(value, row, index);
  1270. } : null"
  1271. >
  1272. <template slot-scope="scope">
  1273. {{ getTType(item.id, scope.row.cclassid) }}
  1274. </template>
  1275. </el-table-column>
  1276. <el-table-column
  1277. prop="time"
  1278. label="提交时间"
  1279. width="170px"
  1280. align="left"
  1281. >
  1282. <template slot="header">
  1283. <div
  1284. style="display: flex; align-items: center"
  1285. >
  1286. <span :class="{timePickerActive:(submissionTimePicker && submissionTimePicker.length>0)}">提交时间</span>
  1287. <div class="tableDatePicker">
  1288. <el-date-picker
  1289. v-model="submissionTimePicker"
  1290. @change="submissionTimePickerChange"
  1291. type="daterange"
  1292. range-separator="▼"
  1293. >
  1294. </el-date-picker>
  1295. </div>
  1296. </div>
  1297. </template>
  1298. <template slot-scope="scope">
  1299. <span
  1300. :style="`${
  1301. testJson.overtime &&
  1302. new Date(testJson.overtime) < new Date(scope.row.time)
  1303. ? 'color:#d12920'
  1304. : ''
  1305. }`"
  1306. >{{ scope.row.time }}</span
  1307. >
  1308. </template>
  1309. </el-table-column>
  1310. <el-table-column
  1311. v-for="(item, index) in chapters"
  1312. :key="index"
  1313. :label="item.json.title"
  1314. :min-width="item.type == 5 ? 200 : 150"
  1315. align="left"
  1316. :filters="
  1317. item.type == 1
  1318. ? item.nameFilters
  1319. : item.type == 6 || item.type == 11
  1320. ? item.nameFilters
  1321. : null
  1322. "
  1323. :filter-method="
  1324. item.type == 1
  1325. ? (value, row) => {
  1326. return filterName(value, row, index);
  1327. }
  1328. : item.type == 6 || item.type == 11
  1329. ? (value, row) => {
  1330. return filterCourse(value, row, index);
  1331. }
  1332. : null
  1333. "
  1334. :filter-placement="
  1335. item.type == 1 || item.type == 6 || item.type == 11
  1336. ? filterPlacement
  1337. : null
  1338. "
  1339. >
  1340. <!-- item.type==8?getTimeFilterText(item,index): item.type==8?(value,row)=>{return filterTime(value,row,index)}: item.type == 8 ||-->
  1341. <template slot="header">
  1342. <div
  1343. v-if="item.type == 8"
  1344. style="display: flex; align-items: center"
  1345. >
  1346. <span :class="{timePickerActive:(tableDatePicker[index] && tableDatePicker[index].length>0)}">{{ item.json.title }}</span>
  1347. <div class="tableDatePicker">
  1348. <el-date-picker
  1349. v-model="tableDatePicker[index]"
  1350. @change="tableDataPickerChange"
  1351. type="daterange"
  1352. range-separator="▼"
  1353. :picker-options="pickerOptions(item.json.timeSort)"
  1354. >
  1355. </el-date-picker>
  1356. </div>
  1357. </div>
  1358. <div v-else style="float: left">
  1359. {{ item.json.title }}
  1360. </div>
  1361. </template>
  1362. <template slot-scope="scope">
  1363. <div
  1364. v-if="scope.row.array[index].type == 1"
  1365. style="display: flex; flex-wrap: wrap"
  1366. >
  1367. <span
  1368. class="answer_type"
  1369. v-for="(answer2, index2) in scope.row.array[index].json
  1370. .answer2"
  1371. :key="index + '-' + index2"
  1372. >{{
  1373. scope.row.array[index].json.array[answer2].option
  1374. }}</span
  1375. >
  1376. </div>
  1377. <div
  1378. v-if="
  1379. scope.row.array[index].type == 3 ||
  1380. scope.row.array[index].type == 8
  1381. "
  1382. style="display: flex; flex-wrap: wrap"
  1383. >
  1384. {{ scope.row.array[index].json.answer2 }}
  1385. </div>
  1386. <div
  1387. v-if="scope.row.array[index].type == 5"
  1388. style="display: flex; flex-wrap: wrap"
  1389. class="table_file"
  1390. >
  1391. <div
  1392. class="file"
  1393. v-for="(file, index2) in scope.row.array[index].json.file"
  1394. :key="index + '-' + index2"
  1395. @click.stop="checkFile(file)"
  1396. >
  1397. <img
  1398. class="download"
  1399. src="../../../../assets/icon/fileIcon/download.png"
  1400. @click.stop="downloadFile(file)"
  1401. :style="{ right: '10px' }"
  1402. />
  1403. <img
  1404. class="img"
  1405. :src="wordIcon"
  1406. alt=""
  1407. v-if="file.type == 1"
  1408. />
  1409. <img
  1410. class="img"
  1411. :src="videoIcon"
  1412. alt=""
  1413. v-if="file.type == 2"
  1414. />
  1415. <img
  1416. class="img"
  1417. :src="file.url"
  1418. alt=""
  1419. v-if="file.type == 3"
  1420. />
  1421. <img
  1422. class="img"
  1423. :src="wordIcon"
  1424. alt=""
  1425. v-if="file.type == 4"
  1426. />
  1427. <img
  1428. class="img"
  1429. :src="fileIcon"
  1430. alt=""
  1431. v-if="file.type == 5"
  1432. />
  1433. <div class="name">
  1434. <el-tooltip
  1435. :content="file.name"
  1436. placement="top"
  1437. effect="dark"
  1438. >
  1439. <span>{{ file.name }}</span>
  1440. </el-tooltip>
  1441. </div>
  1442. </div>
  1443. </div>
  1444. <div
  1445. v-if="scope.row.array[index].type == 6"
  1446. style="display: flex; flex-wrap: wrap"
  1447. >
  1448. {{ scope.row.array[index].json.answer2 }}
  1449. </div>
  1450. <div
  1451. v-if="scope.row.array[index].type == 7"
  1452. style="display: flex; flex-wrap: wrap"
  1453. >
  1454. {{ getScore(scope.row.array[index].json) }}
  1455. </div>
  1456. <div
  1457. v-if="scope.row.array[index].type == 11"
  1458. style="display: flex; flex-wrap: wrap"
  1459. >
  1460. {{ scope.row.array[index].json.answer2 }}
  1461. </div>
  1462. <div
  1463. v-if="scope.row.array[index].type == 12"
  1464. style="display: flex; flex-wrap: wrap"
  1465. >
  1466. {{ scope.row.array[index].json.answer2 }}
  1467. </div>
  1468. <div
  1469. v-if="scope.row.array[index].type == 13"
  1470. style="display: flex; flex-wrap: wrap"
  1471. >
  1472. {{ scope.row.array[index].json.answer2 }}<span>{{ scope.row.array[index].json.type=='4'?'%':'' }}</span>
  1473. </div>
  1474. <div
  1475. v-if="scope.row.array[index].type == 14"
  1476. style="display: flex; flex-wrap: wrap"
  1477. >
  1478. {{ scope.row.array[index].json.answer2 }}
  1479. </div>
  1480. </template>
  1481. </el-table-column>
  1482. <el-table-column
  1483. label="dee"
  1484. width="150px"
  1485. fixed="right"
  1486. v-if="scoList.length"
  1487. >
  1488. <template #header>
  1489. <div>
  1490. <span>{{ cueWordCopy.openCeTit }} <span class="proBar" v-if="aiscoLoading">AI生成中{{ LoadingProgress }}%</span></span>
  1491. </div>
  1492. </template>
  1493. <template slot-scope="scope">
  1494. <span>{{ userSco(scope.row.userid) }}</span>
  1495. </template>
  1496. </el-table-column>
  1497. <el-table-column
  1498. label="操作"
  1499. width="200px"
  1500. fixed="right"
  1501. v-if="isN != 1"
  1502. >
  1503. <template slot-scope="scope">
  1504. <el-button
  1505. @click="getTest(scope.row)"
  1506. type="primary"
  1507. v-if="(examineData && examineData.type == 1) || !examineData"
  1508. size="small"
  1509. >查看</el-button
  1510. >
  1511. <!-- <el-button @click="setWordHtml(scope.row)" type="primary" size="small">导出答题信息</el-button>
  1512. <el-button @click="setWordTemplate(scope.row)" type="primary" size="small">word导出</el-button> -->
  1513. <el-button
  1514. @click="deleteTest(scope.row.id)"
  1515. type="primary"
  1516. size="small"
  1517. v-if="(examineData && examineData.type == 1) || !examineData"
  1518. >删除</el-button
  1519. >
  1520. </template>
  1521. </el-table-column>
  1522. </el-table>
  1523. </div>
  1524. <!-- 按人员手机端 !isDesktop-->
  1525. <div class="table_content" v-if="stype == 2 && !isDesktop">
  1526. <div
  1527. v-for="(i, index) in worksArray"
  1528. :key="i.id"
  1529. class="isDesktopTable_content"
  1530. >
  1531. <div class="isDTitle CutCss">
  1532. <div style="font-size: 16px; font-weight: 600">
  1533. {{ i.name }}
  1534. </div>
  1535. <div
  1536. :style="
  1537. 'font-size: 14px' + i.cut
  1538. ? 'color:rgba(54, 129, 252, 1)'
  1539. : 'color: rgba(0, 0, 0, 0.6);'
  1540. "
  1541. >
  1542. {{ i.time }}
  1543. </div>
  1544. <div @click="i.cut = !i.cut">
  1545. <img
  1546. v-if="!i.cut"
  1547. src="../../../../assets/icon/fileIcon/downImg.png"
  1548. alt=""
  1549. />
  1550. <img
  1551. v-else
  1552. src="../../../../assets/icon/fileIcon/upImg.png"
  1553. alt=""
  1554. />
  1555. </div>
  1556. </div>
  1557. <div v-if="i.cut">
  1558. <div class="isDBri">
  1559. <div>序号:{{ i.time }}</div>
  1560. <div>提交时间:{{ i.time }}</div>
  1561. <div>评课人:{{ i.uteaName }}</div>
  1562. </div>
  1563. <div
  1564. style="
  1565. height: 1px;
  1566. background-color: #717c8d;
  1567. width: 100%;
  1568. margin-bottom: 10px;
  1569. "
  1570. ></div>
  1571. <div>
  1572. <div
  1573. v-for="(k, kin) in chapters"
  1574. :key="k.id"
  1575. class="isCTiBlc"
  1576. >
  1577. <div v-if="k.type == 1">
  1578. <div class="isDTitle2">
  1579. <div
  1580. style="display: flex; justify-content: space-between"
  1581. >
  1582. <div style="display: flex">
  1583. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1584. <div class="isDTitle2JsonTit">
  1585. {{ k.json.title }}
  1586. </div>
  1587. </div>
  1588. <div style="color: rgba(0, 0, 0, 0.4)">
  1589. [{{ selectType2(k.type, k.json.type) }}]
  1590. </div>
  1591. </div>
  1592. <div class="IsDAnswer">
  1593. <div
  1594. v-for="(r, index2) in i.array[kin].json.answer2"
  1595. :key="index + '-' + index2"
  1596. >
  1597. {{ i.array[kin].json.array[r].option }}
  1598. </div>
  1599. </div>
  1600. </div>
  1601. </div>
  1602. <div v-if="k.type == 3 || k.type == 8">
  1603. <div class="isDTitle2">
  1604. <div
  1605. style="display: flex; justify-content: space-between"
  1606. >
  1607. <div style="display: flex">
  1608. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1609. <div class="isDTitle2JsonTit">
  1610. {{ k.json.title }}
  1611. </div>
  1612. </div>
  1613. <div style="color: rgba(0, 0, 0, 0.4)">
  1614. [{{ selectType2(k.type, k.json.type) }}]
  1615. </div>
  1616. </div>
  1617. <div class="IsDAnswer">
  1618. {{ i.array[kin].json.answer2 }}
  1619. </div>
  1620. </div>
  1621. </div>
  1622. <div v-if="k.type == 5">
  1623. <div class="isDTitle2">
  1624. <div
  1625. style="display: flex; justify-content: space-between"
  1626. >
  1627. <div style="display: flex">
  1628. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1629. <div class="isDTitle2JsonTit">
  1630. {{ k.json.title }}
  1631. </div>
  1632. </div>
  1633. <div style="color: rgba(0, 0, 0, 0.4)">
  1634. [{{ selectType2(k.type, k.json.type) }}]
  1635. </div>
  1636. </div>
  1637. <div class="IsDAnswer">
  1638. <div
  1639. class="IsDFile"
  1640. v-for="(file, index2) in i.array[kin].json.file"
  1641. :key="index + '-' + index2"
  1642. @click.stop="checkFile(file)"
  1643. >
  1644. <img
  1645. class="IsDownload"
  1646. src="../../../../assets/icon/fileIcon/download.png"
  1647. @click.stop="downloadFile(file)"
  1648. :style="{ right: '10px' }"
  1649. />
  1650. <img
  1651. class="IsDImg"
  1652. :src="wordIcon"
  1653. alt=""
  1654. v-if="file.type == 1"
  1655. />
  1656. <img
  1657. class="IsDImg"
  1658. :src="videoIcon"
  1659. alt=""
  1660. v-if="file.type == 2"
  1661. />
  1662. <img
  1663. class="IsDImg"
  1664. :src="file.url"
  1665. alt=""
  1666. v-if="file.type == 3"
  1667. />
  1668. <img
  1669. class="IsDImg"
  1670. :src="wordIcon"
  1671. alt=""
  1672. v-if="file.type == 4"
  1673. />
  1674. <img
  1675. class="IsDImg"
  1676. :src="fileIcon"
  1677. alt=""
  1678. v-if="file.type == 5"
  1679. />
  1680. <div
  1681. class="name"
  1682. style="
  1683. height: 30px;
  1684. background-color: #f9f9f9;
  1685. overflow: hidden;
  1686. white-space: nowrap;
  1687. text-overflow: ellipsis;
  1688. "
  1689. >
  1690. <!-- <el-tooltip :content="file.name" placement="top" effect="dark"> -->
  1691. {{ file.name }}
  1692. <!-- </el-tooltip> -->
  1693. </div>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div v-if="k.type.type == 6">
  1699. <div class="isDTitle2">
  1700. <div
  1701. style="display: flex; justify-content: space-between"
  1702. >
  1703. <div style="display: flex">
  1704. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1705. <div class="isDTitle2JsonTit">
  1706. {{ k.json.title }}
  1707. </div>
  1708. </div>
  1709. <div style="color: rgba(0, 0, 0, 0.4)">
  1710. [{{ selectType2(k.type, k.json.type) }}]
  1711. </div>
  1712. </div>
  1713. <div class="IsDAnswer">
  1714. {{ i.array[kin].json.answer2 }}
  1715. </div>
  1716. </div>
  1717. </div>
  1718. <div v-if="k.type == 7">
  1719. <div class="isDTitle2">
  1720. <div
  1721. style="display: flex; justify-content: space-between"
  1722. >
  1723. <div style="display: flex">
  1724. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1725. <div class="isDTitle2JsonTit">
  1726. {{ k.json.title }}
  1727. </div>
  1728. </div>
  1729. <div style="color: rgba(0, 0, 0, 0.4)">
  1730. [{{ selectType2(k.type, k.json.type) }}]
  1731. </div>
  1732. </div>
  1733. <div class="IsDAnswer">
  1734. {{ getScore(i.array[index].json) }}
  1735. </div>
  1736. </div>
  1737. </div>
  1738. <div v-if="k.type.type == 11">
  1739. <div class="isDTitle2">
  1740. <div
  1741. style="display: flex; justify-content: space-between"
  1742. >
  1743. <div style="display: flex">
  1744. <span class="topicTitCss">第{{ kin + 1 }}题:</span>
  1745. <div class="isDTitle2JsonTit">
  1746. {{ k.json.title }}
  1747. </div>
  1748. </div>
  1749. <div style="color: rgba(0, 0, 0, 0.4)">
  1750. [{{ selectType2(k.type, k.json.type) }}]
  1751. </div>
  1752. </div>
  1753. <div class="IsDAnswer">
  1754. {{ i.array[kin].json.answer2 }}
  1755. </div>
  1756. </div>
  1757. </div>
  1758. </div>
  1759. </div>
  1760. <div style="width: 100%; display: flex; justify-content: end">
  1761. <div
  1762. @click="i.cut = !i.cut"
  1763. style="
  1764. display: flex;
  1765. flex-direction: column;
  1766. align-items: center;
  1767. "
  1768. >
  1769. <img
  1770. src="../../../../assets/icon/fileIcon/retractImg.png"
  1771. alt=""
  1772. />
  1773. <div style="color: rgba(0, 0, 0, 0.4); font-size: 16px">
  1774. 收起
  1775. </div>
  1776. </div>
  1777. </div>
  1778. </div>
  1779. <div
  1780. style="
  1781. height: 1px;
  1782. background-color: #717c8d;
  1783. width: 100%;
  1784. margin-bottom: 10px;
  1785. "
  1786. ></div>
  1787. </div>
  1788. <!-- <el-table class="el-table" ref="table" :data="worksArray" border :fit="true" :key="2" v-loading="isLoading"
  1789. style="width: 100%" :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  1790. @filter-change="handleFilterChange">
  1791. <el-table-column fixed label="序号" width="80px" align="left">
  1792. <template slot-scope="scope">
  1793. {{ scope.$index + 1 }}
  1794. </template>
  1795. </el-table-column>
  1796. <el-table-column fixed prop="name" label="提交人" width="120px" align="left">
  1797. </el-table-column>
  1798. <el-table-column prop="time" label="提交时间" width="170px" align="left">
  1799. <template slot-scope="scope">
  1800. <span :style="`${testJson.overtime&&new Date(testJson.overtime)<new Date(scope.row.time)?'color:#d12920':''}`">{{ scope.row.time }}</span>
  1801. </template>
  1802. </el-table-column>
  1803. <el-table-column v-for="(item, index) in chapters" :key="index" :label="item.json.title"
  1804. :min-width="item.type == 5 ? 200 : 150" align="left" :filters="item.type == 1 ? item.nameFilters : item.type == 6? item.nameFilters : null"
  1805. :filter-method="item.type == 1 ? (value, row) => { return filterName(value, row, index) } : item.type == 6?(value, row) => { return filterCourse(value, row, index)}:null"
  1806. :filter-placement="item.type == 1 || item.type ==6 ? filterPlacement : null">
  1807. <template slot-scope="scope">
  1808. <div v-if="scope.row.array[index].type == 1" style="display: flex; flex-wrap: wrap;">
  1809. <span class="answer_type" v-for="(answer2, index2) in scope.row.array[index].json.answer2"
  1810. :key="index + '-' + index2">{{ scope.row.array[index].json.array[answer2].option }}</span>
  1811. </div>
  1812. <div v-if="scope.row.array[index].type == 3 || scope.row.array[index].type == 8" style="display: flex; flex-wrap: wrap;">
  1813. {{ scope.row.array[index].json.answer2 }}
  1814. </div>
  1815. <div v-if="scope.row.array[index].type == 5" style="display: flex; flex-wrap: wrap;"
  1816. class="table_file">
  1817. <div class="file" v-for="(file, index2) in scope.row.array[index].json.file"
  1818. :key="index + '-' + index2" @click.stop="checkFile(file)">
  1819. <img class="download" src="../../../../assets/icon/fileIcon/download.png"
  1820. @click.stop="downloadFile(file)" :style="{ right: '10px' }" />
  1821. <img class="img" :src="wordIcon" alt="" v-if="file.type == 1" />
  1822. <img class="img" :src="videoIcon" alt="" v-if="file.type == 2" />
  1823. <img class="img" :src="file.url" alt="" v-if="file.type == 3" />
  1824. <img class="img" :src="wordIcon" alt="" v-if="file.type == 4" />
  1825. <img class="img" :src="fileIcon" alt="" v-if="file.type == 5" />
  1826. <div class="name">
  1827. <el-tooltip :content="file.name" placement="top" effect="dark">
  1828. <span>{{ file.name }}</span>
  1829. </el-tooltip>
  1830. </div>
  1831. </div>
  1832. </div>
  1833. <div v-if="scope.row.array[index].type == 6" style="display: flex; flex-wrap: wrap;">
  1834. {{ scope.row.array[index].json.answer2}}
  1835. </div>
  1836. <div v-if="scope.row.array[index].type == 7" style="display: flex; flex-wrap: wrap;">
  1837. {{ getScore(scope.row.array[index].json) }}
  1838. </div>
  1839. </template>
  1840. </el-table-column>
  1841. <el-table-column label="操作" width="300px" fixed="right" v-if="isN!=1">
  1842. <template slot-scope="scope">
  1843. <el-button @click="getTest(scope.row)" type="primary" size="small">查看</el-button>
  1844. <el-button @click="setWordHtml(scope.row)" type="primary" size="small">导出答题信息</el-button>
  1845. <el-button @click="deleteTest(scope.row.id)" type="primary" size="small">删除</el-button>
  1846. </template>
  1847. </el-table-column>
  1848. </el-table> -->
  1849. </div>
  1850. <div class="table_content" v-if="stype == 3">
  1851. <div class="student_table">
  1852. <el-table
  1853. ref="table"
  1854. :data="tableData"
  1855. border
  1856. :fit="true"
  1857. v-loading="isLoading"
  1858. style="width: 100%"
  1859. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  1860. :row-class-name="tableRowClassName"
  1861. >
  1862. <el-table-column
  1863. prop="username"
  1864. label="提交人"
  1865. min-width="15"
  1866. align="center"
  1867. >
  1868. </el-table-column>
  1869. <el-table-column
  1870. prop="time"
  1871. label="提交时间"
  1872. min-width="15"
  1873. align="center"
  1874. >
  1875. </el-table-column>
  1876. <el-table-column label="是否批改" min-width="15" align="center">
  1877. <template slot-scope="scope">
  1878. <div>{{ scope.row.type == 3 ? "是" : "否" }}</div>
  1879. </template>
  1880. </el-table-column>
  1881. <el-table-column label="操作" width="300px" v-if="isDesktop">
  1882. <template slot-scope="scope">
  1883. <el-button
  1884. @click="getTest(scope.row)"
  1885. type="primary"
  1886. size="small"
  1887. >查看</el-button
  1888. >
  1889. <el-button
  1890. @click="setWordHtml2(scope.row)"
  1891. type="primary"
  1892. size="small"
  1893. >导出答题信息</el-button
  1894. >
  1895. <el-button
  1896. @click="deleteTest(scope.row.id)"
  1897. type="primary"
  1898. size="small"
  1899. >删除</el-button
  1900. >
  1901. </template>
  1902. </el-table-column>
  1903. </el-table>
  1904. </div>
  1905. <div class="student_page">
  1906. <el-pagination
  1907. background
  1908. layout="prev, pager, next"
  1909. :page-size="pageSize"
  1910. :total="total"
  1911. @current-change="handleCurrentChange"
  1912. >
  1913. </el-pagination>
  1914. </div>
  1915. </div>
  1916. </div>
  1917. </div>
  1918. </div>
  1919. <share-box
  1920. :testJson="testJson"
  1921. :TeachingValue="TeachingValue"
  1922. :TeachName="TeachNameCpt"
  1923. :dialogVisibleShare.sync="dialogVisibleShare"
  1924. ></share-box>
  1925. <wpdf :dialogVisiblePdf.sync="dialogVisiblePdf" :url="wurl"></wpdf>
  1926. <wVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :url="wurl"></wVideo>
  1927. <wOffice
  1928. :dialogVisibleOffice.sync="dialogVisibleOffice"
  1929. :url="wurl"
  1930. ></wOffice>
  1931. <docxTemplateDialog
  1932. ref="docxTemplateDialogRef"
  1933. @changeCover="changeCover"
  1934. />
  1935. </div>
  1936. </template>
  1937. <script>
  1938. import shareBox from "../shareBox/index.vue";
  1939. import videoIcon from "../../../../assets/icon/fileIcon/isVideo.png";
  1940. import wordIcon from "../../../../assets/icon/fileIcon/isWord.png";
  1941. import fileIcon from "../../../../assets/icon/fileIcon/word2.png";
  1942. import wVideo from "../file/wVideo.vue";
  1943. import wpdf from "../file/wPdf2.vue";
  1944. import wOffice from "../file/wOffice.vue";
  1945. import wordcloud from "vue-wordcloud";
  1946. import checkPie from "../data/checkPie.vue";
  1947. import { downloadPDF } from "../../../tools/pdf";
  1948. import JSZip from "jszip";
  1949. import FileSaver from "file-saver";
  1950. import XLSX from "xlsx-js-style";
  1951. import aiBoxRight from "./aiBoxRight.vue";
  1952. import { v4 as uuidv4 } from "uuid";
  1953. // word模板
  1954. import docxTemplateDialog from "./docxTemplateDialog";
  1955. const getFile = (url) => {
  1956. return new Promise((resolve, reject) => {
  1957. var credentials = {
  1958. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1959. secretAccessKey: "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",
  1960. }; //秘钥形式的登录上传
  1961. window.AWS.config.update(credentials);
  1962. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1963. let url2 = url;
  1964. let _url2 = "";
  1965. if (
  1966. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  1967. ) {
  1968. _url2 = url2.split(
  1969. "https://view.officeapps.live.com/op/view.aspx?src="
  1970. )[1];
  1971. } else {
  1972. _url2 = url2;
  1973. }
  1974. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  1975. let name = decodeURIComponent(
  1976. _url2
  1977. .split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  1978. .replace(/\+/g, " ")
  1979. );
  1980. var params = {
  1981. Bucket: "ccrb",
  1982. Key: name,
  1983. };
  1984. s3.getObject(params, function (err, data) {
  1985. if (err) {
  1986. console.log(err, err.stack);
  1987. resolve({ data: 1 });
  1988. } else {
  1989. resolve({ data: data.Body });
  1990. console.log(data);
  1991. } // sxuccessful response
  1992. });
  1993. // axios({
  1994. });
  1995. };
  1996. export default {
  1997. components: {
  1998. shareBox,
  1999. wVideo,
  2000. wpdf,
  2001. wOffice,
  2002. checkPie,
  2003. wordcloud,
  2004. aiBoxRight,
  2005. docxTemplateDialog,
  2006. },
  2007. data() {
  2008. return {
  2009. aiscoId:'',
  2010. aiscoLoading:true,
  2011. cueWord:{
  2012. openCeCon:'', //指令
  2013. openCeTit:'', //标题
  2014. fieldList:[]
  2015. },
  2016. cueWordCopy:{
  2017. openCeCon:'', //指令
  2018. openCeTit:'', //标题
  2019. fieldList:[]
  2020. },
  2021. scoList:[],
  2022. quoteV:false,
  2023. openCeVal:false,
  2024. LoadingProgress:0,
  2025. opQvisible:false,
  2026. opQvisible2:false,
  2027. opcInp:'',
  2028. languageSetting: 0,
  2029. userid: this.$route.query.userid,
  2030. oid: this.$route.query.oid,
  2031. org: this.$route.query.org,
  2032. role: this.$route.query.role,
  2033. cid: this.$route.query.cid,
  2034. isN: this.$route.query.isN,
  2035. peopleId: this.$route.query.peopleId,
  2036. back:this.$route.query.back,
  2037. screenWidth: window.innerWidth,
  2038. examineId: this.$route.query.examineId,
  2039. tType: this.$route.query.tType,
  2040. isDesktop: false,
  2041. aiChatV: false,
  2042. title: "",
  2043. testType: [],
  2044. see: false,
  2045. cJson: [],
  2046. loading: false,
  2047. look: "",
  2048. TeachingOptions: [],
  2049. TeachingValue: "",
  2050. SubmitTimeOptions: [],
  2051. SubmitTime: "",
  2052. tableHeight: 500,
  2053. isLoading: false,
  2054. pageSize: 10,
  2055. total: 0,
  2056. page: 1,
  2057. tableData: [],
  2058. testJson: {},
  2059. works: [],
  2060. iscount: 0,
  2061. pcount: 0,
  2062. stype: 1,
  2063. courseName: "",
  2064. dialogVisibleShare: false,
  2065. worksArray: [],
  2066. tableWorksArray: [],
  2067. testArray: [],
  2068. options2: {
  2069. 1: "选择题",
  2070. // 2: "问答题",
  2071. 3: "问答题",
  2072. 4: "添加文档",
  2073. 5: "附件",
  2074. },
  2075. videoIcon: videoIcon,
  2076. wordIcon: wordIcon,
  2077. fileIcon: fileIcon,
  2078. dialogVisiblePdf: false,
  2079. dialogVisibleVideo: false,
  2080. dialogVisibleOffice: false,
  2081. wurl: "",
  2082. chapters: [],
  2083. filterPlacement: "bottom-end",
  2084. pdfLoading: false,
  2085. btnDisplay: false,
  2086. fileLoading: [],
  2087. selectWorkList: [],
  2088. tableDatePicker: [],
  2089. submissionTimePicker:[],
  2090. // fileLoadCount: [],
  2091. // fileLoadNum: [],
  2092. // infoprogress: [],
  2093. teaType: [],
  2094. examineData:null,
  2095. };
  2096. },
  2097. watch: {},
  2098. computed: {
  2099. // 去除不能评分的指令
  2100. fie(){
  2101. return function (val) {
  2102. console.log('fie',val);
  2103. const con = val.filter(e => [12,11,6,14].indexOf(e.type) == -1)
  2104. return con
  2105. }
  2106. },
  2107. // ai评分分数
  2108. userSco(){
  2109. return function (val) {
  2110. const con = this.scoList.find(u => u.uid === val);
  2111. // console.log('con',con);
  2112. return con ? con.sco : '';
  2113. }
  2114. },
  2115. TeachNameCpt: function () {
  2116. // `this` 指向 vm 实例
  2117. return this.TeachingOptions.filter((i) => {
  2118. return i.id == this.TeachingValue;
  2119. });
  2120. },
  2121. // vcWords() {
  2122. // return function (array) {
  2123. // let _array = [];
  2124. // if (array.length) {
  2125. // for (var i = 0; i < array.length; i++) {
  2126. // _array.push(
  2127. // {
  2128. // text: array[i].name,
  2129. // weight: array[i].count,
  2130. // }
  2131. // )
  2132. // }
  2133. // }
  2134. // console.log(_array);
  2135. // return array.length ? _array : [];
  2136. // };
  2137. // },
  2138. getScore() {
  2139. return function (item) {
  2140. let array = [];
  2141. for (var i = parseInt(item.small); i <= parseInt(item.big); i++) {
  2142. array.push(i);
  2143. }
  2144. return item.answer2 ? array[item.answer2] : "";
  2145. };
  2146. },
  2147. selectType() {
  2148. return function (item) {
  2149. if (item.type == 1 && item.atype == 2) {
  2150. return "多选题";
  2151. } else if (item.type == 1 && item.atype == 1) {
  2152. return "单选题";
  2153. } else if (item.type == 3) {
  2154. return "问答题";
  2155. } else if (item.type == 5) {
  2156. return "附件";
  2157. } else if (item.type == 6 || item.type == 11) {
  2158. return "课程";
  2159. } else if (item.type == 7) {
  2160. return "评分";
  2161. } else if (item.type == 8) {
  2162. return "日期";
  2163. }
  2164. };
  2165. },
  2166. selectType2() {
  2167. return function (val1, val2) {
  2168. if (val1 == 1 && val2 == 2) {
  2169. return "多选题";
  2170. } else if (val1 == 1 && val2 == 1) {
  2171. return "单选题";
  2172. } else if (val1 == 3) {
  2173. return "问答题";
  2174. } else if (val1 == 5) {
  2175. return "附件";
  2176. } else if (val1 == 6) {
  2177. return "课程";
  2178. } else if (val1 == 7) {
  2179. return "评分";
  2180. } else if (val1 == 8) {
  2181. return "日期";
  2182. }
  2183. };
  2184. },
  2185. // 获取评分的平均分
  2186. getAverageScore() {
  2187. return (_index) => {
  2188. let _result = 0;
  2189. let _sum = 0;
  2190. this.worksArray.forEach((i1) => {
  2191. _result += i1.array[_index].json.answer2;
  2192. _sum += 1;
  2193. });
  2194. _result = _sum ? (_result / _sum).toFixed(2) : 0;
  2195. return _result ? _result : 0;
  2196. };
  2197. },
  2198. getTimeFilterText() {
  2199. return (item, index) => {
  2200. let _result = [];
  2201. if (item.type == 8) {
  2202. let array = [];
  2203. this.worksArray.forEach((i) => {
  2204. if (i.array[index].type == 8) {
  2205. let _data = i.array[index].json.answer2;
  2206. if (!array.map((r) => r.value).includes(_data)) {
  2207. array.push({ text: _data, value: _data });
  2208. }
  2209. }
  2210. });
  2211. array.sort((a, b) => {
  2212. const dateA = new Date(
  2213. a.value.replace(/年|月/g, "-").replace(/日/g, "")
  2214. );
  2215. const dateB = new Date(
  2216. b.value.replace(/年|月/g, "-").replace(/日/g, "")
  2217. );
  2218. return dateB - dateA; // 从小到大排序
  2219. });
  2220. console.log("👉排序:", array);
  2221. _result = array;
  2222. }
  2223. return _result;
  2224. };
  2225. },
  2226. getTType() {
  2227. return function (pid, cclassid) {
  2228. if(cclassid){
  2229. let string = [];
  2230. this.teaType.forEach((e) => {
  2231. if (e.id == pid) {
  2232. for (var i = 0; i < e.child.length; i++) {
  2233. if (cclassid.includes(e.child[i].id)) {
  2234. string.push(e.child[i].name);
  2235. }
  2236. }
  2237. }
  2238. });
  2239. return string.length ? string.join(",") : "-";
  2240. }else{
  2241. return "-";
  2242. }
  2243. };
  2244. },
  2245. getNameTTypeFiler() {
  2246. return (item) => {
  2247. return item.child.length ? item.child.map(child => ({
  2248. text: child.name,
  2249. value: child.id
  2250. })) : null;
  2251. };
  2252. },
  2253. pickerOptions(){
  2254. return (dataList)=>{
  2255. let _result = {
  2256. // shortcuts:[]
  2257. }
  2258. if(dataList && dataList.length>0){
  2259. _result.shortcuts = [];
  2260. for(let i = 0;i<dataList.length;i++){
  2261. if(dataList[i].time.length<=0)continue;
  2262. _result.shortcuts.push({
  2263. text:dataList[i].title?dataList[i].title:"-",
  2264. onClick(picker){
  2265. let startTime = dataList[i].time[0];
  2266. let endTime = dataList[i].time[1]
  2267. picker.$emit('pick', [startTime, endTime]);
  2268. }
  2269. })
  2270. }
  2271. }
  2272. return _result;
  2273. }
  2274. }
  2275. },
  2276. methods: {
  2277. // 清除分数
  2278. cleancueWord(){
  2279. if (!this.aiscoId) return
  2280. let params = [{
  2281. tid:this.cid
  2282. }]
  2283. console.log('params',params);
  2284. this.ajax
  2285. .post(this.$store.state.api + "deltestAisco", params)
  2286. .then((res) => {
  2287. console.log(res);
  2288. this.$message({
  2289. message: "删除成功",
  2290. type: "success"
  2291. });
  2292. this.getAiSco()
  2293. })
  2294. .catch((err) => {
  2295. this.$message({
  2296. message: "删除失败",
  2297. type: "error"
  2298. });
  2299. console.error(err);
  2300. });
  2301. this.opQvisible = false
  2302. },
  2303. // 点击开始评分
  2304. async markSco(){
  2305. if (!this.cueWord.openCeTit.trim()) return this.$message.error('请输入标题')
  2306. if (!this.cueWord.openCeCon.trim()) return this.$message.error('请输入指令')
  2307. if (this.cueWord.fieldList.length == 0) return this.$message.error('请选择引用字段')
  2308. this.aiscoLoading = true
  2309. let forAllList = [];
  2310. // this.scoList = []
  2311. for (let index = 0; index < this.tableWorksArray.length; index++) {
  2312. let mkAwit = this.loopSco(this.tableWorksArray[index],index)
  2313. forAllList.push(mkAwit);
  2314. }
  2315. Promise.all(forAllList)
  2316. .then(values => {
  2317. console.log("values", values);
  2318. this.uploadSCo()
  2319. setTimeout(() => {
  2320. this.LoadingProgress = 0
  2321. }, 1000);
  2322. })
  2323. .catch(reason => {
  2324. this.aiscoLoading = false
  2325. this.$message({
  2326. message: "评价失败",
  2327. type: "error"
  2328. });
  2329. console.error("reasonreasonreasonreasonreason", reason);
  2330. // 输出“失败原因”
  2331. });
  2332. },
  2333. // ai评分循环
  2334. async loopSco(val){
  2335. console.log('6666',val);
  2336. let userWork =[]
  2337. let _fileid = ''
  2338. for (let index = 0; index < val.array.length; index++) {
  2339. if (val.array[index].type == 3) {
  2340. userWork.push( {
  2341. // type:'文本',
  2342. tit: val.array[index].json.title,
  2343. con: val.array[index].json.answer2
  2344. })
  2345. }
  2346. if (val.array[index].type == 5) {
  2347. if (val.array[index].json.file && val.array[index].json.file[0].url && this.cueWord.fieldList.indexOf('附件') != -1) {
  2348. _fileid = await this.createFileid(val.array[index].json.file[0].url)
  2349. }
  2350. userWork.push( {
  2351. // type:"附件",
  2352. detail:val.array[index].json.detail,
  2353. tit: val.array[index].json.title,
  2354. con: _fileid
  2355. })
  2356. }
  2357. if (val.array[index].type == 7) {
  2358. userWork.push( {
  2359. // type:"评分",
  2360. rule:`${val.array[index].json.small}分-${val.array[index].json.big}分`,
  2361. detail:val.array[index].json.detail,
  2362. tit: val.array[index].json.title,
  2363. con: val.array[index].json.answer2
  2364. })
  2365. }
  2366. if (val.array[index].type == 1) {
  2367. let kk = []
  2368. val.array[index].json.answer2.forEach((e)=>{
  2369. kk.push(val.array[index].json.array[e].option)
  2370. })
  2371. userWork.push( {
  2372. tit: val.array[index].json.title,
  2373. con: kk.join(','),
  2374. type: val.array[index].json.type == 1?"单选题": "多选题",
  2375. })
  2376. }
  2377. }
  2378. return new Promise((resolve, reject) => {
  2379. const result = userWork.filter(item => this.cueWord.fieldList.includes(item.tit));
  2380. let messages = `NOTICE
  2381. Role: 你是一个资深的教师,你要根据评分标准,对用户回答进行评分
  2382. Language: ${this.getLang()}
  2383. #目标
  2384. 作业内容中,tit是题目,con是用户回答。
  2385. #评分资料#
  2386. 用户信息:
  2387. ${this.cueWord.fieldList.includes('提交人') ? '提交人:' +val.name :''}
  2388. ${this.cueWord.fieldList.includes('学段') ? '学段:' +this.getTType(this.teaType[0].id,val.cclassid) :''}
  2389. ${this.cueWord.fieldList.includes('年级') ? '年级:' +this.getTType(this.teaType[1].id,val.cclassid) :''}
  2390. ${this.cueWord.fieldList.includes('学科') ? '学科:' +this.getTType(this.teaType[2].id,val.cclassid) :''}
  2391. ${this.cueWord.fieldList.includes('职务') ? '职务:' +this.getTType(this.teaType[3].id,val.cclassid) :''}
  2392. ${this.cueWord.fieldList.includes('教龄') ? '教龄:' +this.getTType(this.teaType[4].id,val.cclassid) :''}
  2393. ${this.cueWord.fieldList.includes('作业提交时间') ? '作业提交时间:' +val.time :''}
  2394. 评价标准:${this.cueWord.openCeCon}
  2395. 作业内容 :${_fileid ? "知识库中上传的文件内容与"+JSON.stringify(result) : JSON.stringify(result)}
  2396. #输出要求#
  2397. 未找到评价内容或相关信息的评为0分。
  2398. 直接输出分数!不要输入任何其他无关内容!
  2399. #输出格式#
  2400. 0
  2401. `;
  2402. // console.log('messages',messages);
  2403. let _this = this;
  2404. let params = {
  2405. assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
  2406. message: [
  2407. {
  2408. type: "text",
  2409. text: messages.replaceAll("\n", " ").replaceAll("*", "")
  2410. }
  2411. ],
  2412. session_name: uuidv4(),
  2413. userId: this.userid,
  2414. file_ids: _fileid ? [_fileid] : [],
  2415. isImage: "",
  2416. model: "gpt-4o-2024-11-20"
  2417. };
  2418. this.ajax
  2419. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  2420. .then(response => {
  2421. let data = response.data.FunctionResponse;
  2422. console.log("data", data);
  2423. try {
  2424. // const prompt = [
  2425. // {
  2426. // role: 'user',
  2427. // content: `输出一个json格式的格式如下:{uid:${ val.userid },sco: ${data.message}}}`,
  2428. // },
  2429. // ];
  2430. // this.chat_no_stream(prompt, { type: 'json_object' }).then((res) => {
  2431. // // this.suggestList = JSON.parse(res).suggest;
  2432. // console.log(res);
  2433. // });
  2434. let ind = this.scoList.findIndex(e=> e.uid == val.userid )
  2435. console.log('ind',ind);
  2436. if (ind != -1) {
  2437. this.scoList.splice(ind,1,{uid: val.userid ,sco: data.message})
  2438. }else{
  2439. this.scoList.push({uid: val.userid ,sco: data.message})
  2440. }
  2441. } catch (error) {
  2442. let ind = this.scoList.findIndex(e=> e.uid == val.userid )
  2443. console.log('ind',ind);
  2444. if (ind != -1) {
  2445. this.scoList.splice(ind,1,{uid: val.userid ,sco: ''})
  2446. }else{
  2447. this.scoList.push({uid: val.userid ,sco: ''})
  2448. }
  2449. // this.scoList.push({uid: val.userid ,sco: data.message})
  2450. this.$message.error( val.name + '评分失败')
  2451. }
  2452. this.LoadingProgress = ((this.scoList.length / this.tableWorksArray.length) * 100).toFixed(0)
  2453. return resolve(1)
  2454. })
  2455. .catch(error => {
  2456. this.aiscoLoading = false
  2457. this.$message.error('评分失败')
  2458. reject(error)
  2459. console.log(error);
  2460. });
  2461. })
  2462. },
  2463. // 获取评分
  2464. async getAiSco(){
  2465. return new Promise((resolve, reject) => {
  2466. this.aiscoLoading = true
  2467. let params = {
  2468. tid: this.cid,
  2469. };
  2470. this.ajax
  2471. .get(this.$store.state.api + "getTestAiSco", params)
  2472. .then((res) => {
  2473. if (res.data[0].length) {
  2474. this.aiscoId = res.data[0][0].id
  2475. this.cueWord = JSON.parse(res.data[0][0].cueWord)
  2476. this.cueWordCopy = JSON.parse(res.data[0][0].cueWord)
  2477. this.scoList = JSON.parse(res.data[0][0].json)
  2478. }else{
  2479. this.cueWord={
  2480. openCeCon:'', //指令
  2481. openCeTit:'', //标题
  2482. fieldList:[]
  2483. }
  2484. this.cueWordCopy={
  2485. openCeCon:'', //指令
  2486. openCeTit:'', //标题
  2487. fieldList:[]
  2488. }
  2489. this.scoList=[]
  2490. }
  2491. this.aiscoLoading = false
  2492. console.log('8888888888',res.data[0]);
  2493. resolve(1)
  2494. })
  2495. .catch((err) => {
  2496. reject(err)
  2497. this.aiscoLoading = false
  2498. console.error(err);
  2499. });
  2500. })
  2501. },
  2502. // 上传评分
  2503. uploadSCo(){
  2504. this.aiscoLoading = true
  2505. let params = [{
  2506. tid:this.cid,
  2507. uid:'6063369f-289a-11ef-8bf4-12e77c4cb76b',
  2508. json:JSON.stringify(this.scoList),
  2509. cw: JSON.stringify(this.cueWord)
  2510. }]
  2511. console.log('params',params);
  2512. this.ajax
  2513. .post(this.$store.state.api + "addtestAiSco", params)
  2514. .then((res) => {
  2515. console.log(res);
  2516. this.$message({
  2517. message: "评价成功",
  2518. type: "success"
  2519. });
  2520. this.getAiSco()
  2521. })
  2522. .catch((err) => {
  2523. this.aiscoLoading = false
  2524. this.$message({
  2525. message: "评价失败",
  2526. type: "error"
  2527. });
  2528. console.error(err);
  2529. });
  2530. },
  2531. // 获取文档id
  2532. createFileid(url) {
  2533. let _this = this;
  2534. return new Promise((resolve, reject) => {
  2535. try {
  2536. _this.ajax
  2537. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  2538. url: url
  2539. })
  2540. .then(res => {
  2541. let _data = res.data.FunctionResponse;
  2542. if (_data.result && _data.result.id) {
  2543. resolve(_data.result.id);
  2544. } else {
  2545. resolve(1);
  2546. }
  2547. })
  2548. .catch(function(error) {
  2549. resolve(1);
  2550. });
  2551. } catch (e) {
  2552. resolve(1);
  2553. }
  2554. });
  2555. },
  2556. getLang() {
  2557. let lang = "";
  2558. if (this.languageSetting == 0) {
  2559. lang = "Chinese.";
  2560. } else if (this.languageSetting == 1) {
  2561. lang = "Traditional Chinese.";
  2562. } else if (this.languageSetting == 2) {
  2563. lang = "English.";
  2564. }
  2565. return lang;
  2566. },
  2567. // 打开引用字段弹框
  2568. quoteShow(){
  2569. this.quoteV = !this.quoteV
  2570. },
  2571. // 添加指令字段
  2572. addfield(val){
  2573. if (this.cueWord.fieldList.indexOf(val) != -1) {
  2574. const index = this.cueWord.fieldList.indexOf(val)
  2575. this.cueWord.fieldList.splice(index, 1)
  2576. }else{
  2577. this.cueWord.fieldList.push(val)
  2578. }
  2579. },
  2580. openChat() {
  2581. this.aiChatV = !this.aiChatV;
  2582. this.$nextTick(() => {
  2583. const boxStickyHeight = this.$refs.boxSticky
  2584. ? this.$refs.boxSticky.offsetHeight
  2585. : 0;
  2586. const chatHeight = `calc(100% - ${boxStickyHeight}px - 46px)`;
  2587. // this.$refs.aiChat.$el.style.height = chatHeight;
  2588. this.$refs.aiBoxRightDivRef.style.height = chatHeight;
  2589. });
  2590. },
  2591. fileClose(done) {
  2592. done();
  2593. },
  2594. //获取教研室列表
  2595. getClass2() {
  2596. let params = {
  2597. oid: this.oid,
  2598. };
  2599. this.ajax
  2600. .get(this.$store.state.api + "selectTeacherOfficeBySchool", params)
  2601. .then((res) => {
  2602. console.log("this.TeachingOptions", this.TeachingOptions);
  2603. console.log(res.data);
  2604. let data = res.data[0];
  2605. this.TeachingOptions.forEach((e) => {
  2606. data.forEach((i) => {
  2607. if (e.id == i.id) {
  2608. e.name = i.name;
  2609. }
  2610. });
  2611. });
  2612. })
  2613. .catch((err) => {
  2614. this.isLoading = false;
  2615. console.error(err);
  2616. });
  2617. },
  2618. getClass3() {
  2619. let params = {
  2620. oid: this.oid,
  2621. };
  2622. this.ajax
  2623. .get(this.$store.state.api + "selectTeacherOfficeBySchool", params)
  2624. .then((res) => {
  2625. console.log(res.data);
  2626. this.TeachingOptions = res.data[0].filter((item) => {
  2627. return item.parentid == "6";
  2628. });
  2629. // console.log('this.TeachingOptions',this.TeachingOptions);
  2630. })
  2631. .catch((err) => {
  2632. this.isLoading = false;
  2633. console.error(err);
  2634. });
  2635. },
  2636. filterName(value, row, index) {
  2637. let name = [];
  2638. for (var i = 0; i < row.array[index].json.answer2.length; i++) {
  2639. name.push(
  2640. row.array[index].json.array[row.array[index].json.answer2[i]].option
  2641. );
  2642. }
  2643. console.log(name.indexOf(value) != -1);
  2644. return name.indexOf(value) != -1;
  2645. },
  2646. // 筛选课程
  2647. filterCourse(value, row, index) {
  2648. return row.array[index].json.answer2.indexOf(value) != -1;
  2649. },
  2650. //筛选日期
  2651. filterTime(value, row, index) {
  2652. return row.array[index].json.answer2.indexOf(value) != -1;
  2653. },
  2654. filterTType(value, row, index) {
  2655. return row.cclassid && row.cclassid.indexOf(value) != -1;
  2656. },
  2657. wordClickHandler(name, value) {
  2658. // this.$notify({
  2659. // title: name,
  2660. // message: "数量:"+value
  2661. // });
  2662. },
  2663. retrunCourse() {
  2664. if(!this.back){
  2665. this.goTo(
  2666. "/test?userid=" +
  2667. this.userid +
  2668. "&oid=" +
  2669. this.oid +
  2670. "&org=" +
  2671. this.org +
  2672. "&role=" +
  2673. this.role
  2674. );
  2675. }else if(this.back=="sass"){
  2676. this.goTo(
  2677. "/sassPlatform?userid=" +
  2678. this.userid +
  2679. "&oid=" +
  2680. this.oid +
  2681. "&org=" +
  2682. this.org +
  2683. "&role=" +
  2684. this.role
  2685. );
  2686. }
  2687. },
  2688. goTo(path) {
  2689. this.$router.push(path);
  2690. },
  2691. tableRowClassName({ row, rowIndex }) {
  2692. if ((rowIndex + 1) % 2 === 0) {
  2693. return "even_row";
  2694. } else {
  2695. return "";
  2696. }
  2697. },
  2698. changeHeight() {
  2699. if (this.stype == 1) {
  2700. return;
  2701. }
  2702. this.tableHeight = this.$refs.stepBox.offsetHeight - 120;
  2703. if (this.tableHeight <= 530) {
  2704. this.tableHeight = 530;
  2705. }
  2706. // 监听窗口大小变化
  2707. let self = this;
  2708. window.onresize = function () {
  2709. if (self.stype == 1) {
  2710. return;
  2711. }
  2712. self.tableHeight = this.$refs.stepBox.offsetHeight - 120;
  2713. if (self.tableHeight <= 530) {
  2714. self.tableHeight = 530;
  2715. }
  2716. };
  2717. // this.$refs.table.$el.offsetTop:表格距离浏览器的高度 //200表示你想要调整的表格距离底部的高度(你可以自己随意调整),因为我们一般都有放分页组件的,所以需要给它留一个高度
  2718. },
  2719. handleCurrentChange(val) {
  2720. this.page = val;
  2721. this.getData2();
  2722. },
  2723. getTest(row) {
  2724. this.$router.push(
  2725. "/checkTest2?cid=" +
  2726. row.courseid +
  2727. "&userid=" +
  2728. this.userid +
  2729. "&userid2=" +
  2730. row.userid +
  2731. "&tid=" +
  2732. row.id +
  2733. "&oid=" +
  2734. this.oid +
  2735. "&org=" +
  2736. this.org +
  2737. "&type=2" +
  2738. "&role=" +
  2739. this.role
  2740. );
  2741. },
  2742. checkDataType(type) {
  2743. this.TeachingValue = "";
  2744. if (this.stype != type) {
  2745. this.stype = type;
  2746. this.courseName = "";
  2747. if (type == 3) {
  2748. this.getData2();
  2749. } else {
  2750. this.getData();
  2751. }
  2752. this.changeHeight();
  2753. }
  2754. },
  2755. searchCourse() {
  2756. if (this.stype == 3) {
  2757. this.getData2();
  2758. } else {
  2759. this.getData();
  2760. }
  2761. },
  2762. async getData() {
  2763. this.isLoading = true;
  2764. await this.getAiSco()
  2765. let params = [
  2766. {
  2767. cid: this.cid,
  2768. cn: this.courseName,
  2769. tim: !this.SubmitTime ? "" : this.SubmitTime,
  2770. tea: this.TeachingValue,
  2771. },
  2772. ];
  2773. this.ajax
  2774. .post(this.$store.state.api + "getTestWorksNoPageCopy2", params)
  2775. .then(async (res) => {
  2776. this.testJson = res.data[0][0];
  2777. console.log(
  2778. "this.testJson",
  2779. JSON.parse(JSON.stringify(this.testJson))
  2780. );
  2781. let a = "";
  2782. if (this.testJson.juriP) {
  2783. a = this.testJson.juriP;
  2784. }
  2785. if (this.testJson.juriP2) {
  2786. if (a) {
  2787. a = this.testJson.juriP + "," + this.testJson.juriP2;
  2788. } else {
  2789. a = this.testJson.juriP2;
  2790. }
  2791. }
  2792. this.testJson.juriP = a;
  2793. if (this.testJson.juriP) {
  2794. let ajuri2 = this.testJson.juri2.split(",");
  2795. this.TeachingOptions = ajuri2.map((key, index) => ({
  2796. id: key,
  2797. name: "",
  2798. }));
  2799. this.getClass2();
  2800. } else {
  2801. this.getClass3();
  2802. }
  2803. // console.log('dddd',this.TeachingOptions);
  2804. this.works = res.data[1];
  2805. this.iscount = res.data[2][0].count;
  2806. this.pcount = res.data[3][0].count;
  2807. let chapters = this.setJSON(
  2808. this.setJson2(
  2809. JSON.parse(JSON.stringify(JSON.parse(res.data[0][0].chapters)))
  2810. )
  2811. );
  2812. this.chapters = this.setFilter(
  2813. this.JSONSetting(
  2814. JSON.parse(JSON.stringify(JSON.parse(res.data[0][0].chapters)))
  2815. )
  2816. );
  2817. let courseCount11 = [];
  2818. let testArray = [];
  2819. let array = [];
  2820. let courseIds = []; // 初始化一个空数组来存储所有的courseId
  2821. for (let i = 0; i < this.works.length; i++) {
  2822. let cJson = this.setJSON(
  2823. JSON.parse(JSON.stringify(JSON.parse(this.works[i].courseJson)))
  2824. );
  2825. if (JSON.stringify(cJson) == JSON.stringify(chapters)) {
  2826. let _json = this.JSONSetting(
  2827. JSON.parse(JSON.stringify(JSON.parse(this.works[i].courseJson)))
  2828. );
  2829. for (var ja = 0; ja < _json.length; ja++) {
  2830. let _json2 = _json[ja].json;
  2831. if (_json[ja].type == 6) {
  2832. let courseId = _json2.answer2;
  2833. courseIds.push(courseId); // 将type为6的courseId添加到数组中
  2834. }
  2835. if (_json[ja].type == 11) {
  2836. let _answer = _json2.answer2;
  2837. _answer.length
  2838. ? (courseCount11 = courseCount11.concat(_answer))
  2839. : "";
  2840. _json[ja].json.courseId = _answer ? _answer : [];
  2841. courseIds = courseIds.concat(_answer); // 将type为11的courseId添加到数组中
  2842. }
  2843. }
  2844. }
  2845. }
  2846. // 将所有的courseId去重
  2847. courseIds = Array.from(new Set(courseIds));
  2848. // 使用一个数组来存储所有的courseId后,执行getCourseInfoTestAll
  2849. let courseTitles = {}; // 初始化一个空对象来存储所有的courseTitles
  2850. let params2 = [
  2851. {
  2852. cid: courseIds.join(","),
  2853. },
  2854. ];
  2855. let data2 = await this.ajax.post(
  2856. this.$store.state.api + "getCourseInfoTestAll2",
  2857. params2
  2858. );
  2859. let result2 = data2.data[0];
  2860. result2.forEach((i) => {
  2861. // _title.push(i.title);
  2862. courseTitles[i.courseId] = i.title;
  2863. });
  2864. for (let i = 0; i < this.works.length; i++) {
  2865. let cJson = this.setJSON(
  2866. JSON.parse(JSON.stringify(JSON.parse(this.works[i].courseJson)))
  2867. );
  2868. console.log(cJson,'===',chapters)
  2869. if (JSON.stringify(cJson) == JSON.stringify(chapters)) {
  2870. let _json = this.JSONSetting(
  2871. JSON.parse(JSON.stringify(JSON.parse(this.works[i].courseJson)))
  2872. );
  2873. _json.forEach((item) => {
  2874. if (item.type == 11) {
  2875. let cid = item.json.answer2;
  2876. let _title = [];
  2877. for (var i = 0; i < cid.length; i++) {
  2878. _title.push(courseTitles[cid[i]]);
  2879. }
  2880. item.json.answer2 = _title.length ? _title.join(",") : "";
  2881. }
  2882. if (item.type == 6) {
  2883. let courseId = item.json.answer2;
  2884. item.json.answer2 = courseTitles[courseId] || "";
  2885. }
  2886. });
  2887. // 更新对应的_json对象的answer2
  2888. array.push({
  2889. courseid: this.works[i].courseid,
  2890. cclassid: this.works[i].cclassid,
  2891. id: this.works[i].id,
  2892. userid: this.works[i].userid,
  2893. name: this.works[i].username ? this.works[i].username : "匿名",
  2894. time: this.works[i].time,
  2895. array: _json,
  2896. cut: 0,
  2897. uteaName: this.works[i].uteaName,
  2898. courseJson: JSON.parse(this.works[i].courseJson),
  2899. });
  2900. }
  2901. }
  2902. let allCourseIds = [];
  2903. for (var i = 0; i < this.chapters.length; i++) {
  2904. let el = this.chapters[i];
  2905. let topic = {
  2906. type: el.type,
  2907. cut: 0,
  2908. title: el.json ? el.json.title : "",
  2909. detail: el.json ? el.json.detail : "",
  2910. atype: el.json ? el.json.type : "",
  2911. choice: el.json ? el.json.array : "",
  2912. array: [],
  2913. answer: el.json ? el.json.answer : "",
  2914. answer2: "",
  2915. count: 0,
  2916. courses: el.json ? el.json.courses : [],
  2917. small: el.json ? el.json.small : "",
  2918. big: el.json ? el.json.big : "",
  2919. };
  2920. if (topic.type == 1) {
  2921. for (var t = 0; t < topic.choice.length; t++) {
  2922. topic.array.push({
  2923. name: topic.choice[t].option,
  2924. count: 0,
  2925. });
  2926. }
  2927. } else if (topic.type == 3) {
  2928. } else if (topic.type == 5) {
  2929. } else if (topic.type == 6) {
  2930. let _answer = topic.array;
  2931. allCourseIds = allCourseIds.concat(_answer);
  2932. } else if (topic.type == 7) {
  2933. for (
  2934. var t = parseInt(topic.small);
  2935. t <= parseInt(topic.big);
  2936. t++
  2937. ) {
  2938. topic.array.push({
  2939. name: t,
  2940. count: 0,
  2941. });
  2942. }
  2943. } else if (topic.type == 11) {
  2944. const uniqueArray = courseCount11.filter(
  2945. (item, index) => courseCount11.indexOf(item) === index
  2946. );
  2947. let _answer = uniqueArray;
  2948. allCourseIds = allCourseIds.concat(_answer);
  2949. }
  2950. for (var j = 0; j < array.length; j++) {
  2951. let el2 = array[j];
  2952. console.log("==>",el2)
  2953. if (topic.type == 1) {
  2954. let _answer = el2.array[i].json.answer2;
  2955. for (var k = 0; k < _answer.length; k++) {
  2956. topic.array[_answer[k]].count++;
  2957. topic.count++;
  2958. }
  2959. } else if (topic.type == 3 || topic.type == 8) {
  2960. let type3 = 1;
  2961. let _answer = el2.array[i].json.answer2;
  2962. if (_answer) {
  2963. for (var k = 0; k < topic.array.length; k++) {
  2964. if (topic.array[k].name == _answer) {
  2965. topic.array[k].count++;
  2966. type3 = 2;
  2967. topic.count++;
  2968. break;
  2969. }
  2970. }
  2971. if (type3 == 1) {
  2972. topic.array.push({
  2973. name: _answer,
  2974. count: 1,
  2975. });
  2976. }
  2977. let limit = 10;
  2978. if(topic.array.length>limit){
  2979. topic.showArray = topic.array.slice(0,limit)
  2980. topic.nowPage = 1;
  2981. topic.total = topic.array.length;
  2982. topic.limit = limit;
  2983. }else{
  2984. topic.showArray = topic.array;
  2985. }
  2986. topic.loadingWordCloud = false;
  2987. topic.wordCloutData = null;
  2988. }
  2989. } else if (topic.type == 5) {
  2990. let _answer = el2.array[i].json.file
  2991. ? el2.array[i].json.file
  2992. : [];
  2993. let _user = { userid: el2.userid, username: el2.name };
  2994. for (var k = 0; k < _answer.length; k++) {
  2995. topic.array.push({ ..._answer[k], ..._user });
  2996. }
  2997. } else if (topic.type == 7) {
  2998. if (el2.array[i].json.answer2) {
  2999. let _answer = el2.array[i].json.answer2;
  3000. topic.array[_answer].count++;
  3001. topic.count++;
  3002. }
  3003. } else if (topic.type == 6) {
  3004. if (el2.array[i].json.courses) {
  3005. let _answer = el2.array[i].json.courses.length
  3006. ? el2.array[i].json.courses.join(",")
  3007. : "";
  3008. topic.answer2 = _answer;
  3009. }
  3010. } else if (topic.type == 11) {
  3011. const uniqueArray = courseCount11.filter(
  3012. (item, index) => courseCount11.indexOf(item) === index
  3013. );
  3014. let _answer = uniqueArray;
  3015. topic.answer2 = _answer;
  3016. }else if(topic.type == 13){
  3017. if (el2.array[i].json.answer2!=='') {
  3018. let _answer = String(el2.array[i].json.answer2);
  3019. let _type = el2.array[i].json.type;
  3020. console.log("👉",el2.array[i].json)
  3021. if(_type=='4')_answer+='%';
  3022. if(!topic.array)topic.array=[];
  3023. if(topic.array.findIndex(i=>i.name==_answer)!=-1){
  3024. topic.array.find(i=>i.name==_answer).count++;
  3025. }else{
  3026. topic.array.push({
  3027. name:_answer,
  3028. count:1
  3029. })
  3030. }
  3031. topic.count++;
  3032. }
  3033. }else if(topic.type==14){
  3034. console.log("===",el2)
  3035. }
  3036. }
  3037. console.log("topictopictopictopic", topic);
  3038. testArray.push(topic);
  3039. this.fileLoading.push({
  3040. bool: false,
  3041. count: 0,
  3042. load: 0,
  3043. progress: 0,
  3044. });
  3045. }
  3046. // 去重courseId
  3047. allCourseIds = Array.from(new Set(allCourseIds));
  3048. let params = [
  3049. {
  3050. cid: allCourseIds.join(","),
  3051. },
  3052. ];
  3053. let data = await this.ajax.post(
  3054. this.$store.state.api + "getCourseInfoTestAll2",
  3055. params
  3056. );
  3057. let result = data.data[0];
  3058. for (var i = 0; i < this.chapters.length; i++) {
  3059. let el = this.chapters[i];
  3060. let topic = testArray[i];
  3061. if (topic.type == 6 || topic.type == 11) {
  3062. result.forEach((i) => {
  3063. i.update_at = new Date(i.update_at)
  3064. .toLocaleString("zh-CN", {
  3065. year: "numeric",
  3066. month: "2-digit",
  3067. day: "2-digit",
  3068. hour: "2-digit",
  3069. minute: "2-digit",
  3070. second: "2-digit",
  3071. hour12: false,
  3072. })
  3073. .replace(/\//g, "-");
  3074. });
  3075. if (topic.type == 6) {
  3076. result.forEach((elc) => {
  3077. if (
  3078. this.chapters
  3079. .find((f) => f.type == 6)
  3080. .nameFilters.find((c) => c.value == elc.title) ==
  3081. undefined &&
  3082. topic.answer2.includes(elc.courseId)
  3083. ) {
  3084. this.chapters
  3085. .find((c) => c.type == 6)
  3086. .nameFilters.push({ text: elc.title, value: elc.title });
  3087. }
  3088. });
  3089. } else if (topic.type == 11) {
  3090. result.forEach((elc) => {
  3091. if (
  3092. this.chapters
  3093. .find((f, index) => index == i)
  3094. .nameFilters.find((c) => c.value == elc.title) ==
  3095. undefined &&
  3096. topic.answer2.includes(elc.courseId)
  3097. ) {
  3098. this.chapters
  3099. .find((c, index) => index == i)
  3100. .nameFilters.push({ text: elc.title, value: elc.title });
  3101. }
  3102. });
  3103. }
  3104. // this.chapters.find(i=>i.type==6 || i.type==11).nameFilters = result.map(r=>{return{text:r.title,value:r.courseId}})
  3105. if (topic.answer2.length) {
  3106. let _answer = topic.answer2;
  3107. topic.courseArray = result.filter((el) => {
  3108. return _answer.includes(el.courseId);
  3109. });
  3110. } else {
  3111. topic.courseArray = [];
  3112. }
  3113. // topic.courseArray = result
  3114. }
  3115. }
  3116. this.testArray = testArray;
  3117. this.worksArray = array;
  3118. this.tableWorksArray = array;
  3119. this.isLoading = false;
  3120. this.teaType = res.data[5];
  3121. let typeInfo = res.data[6];
  3122. this.teaType.forEach((e) => {
  3123. e.child = [];
  3124. e.value = [];
  3125. typeInfo.forEach((i) => {
  3126. if (e.id == i.parentid) {
  3127. e.child.push({ id: i.id, name: i.name });
  3128. }
  3129. });
  3130. });
  3131. console.log(this.teaType, "teaType");
  3132. })
  3133. .catch((err) => {
  3134. console.error(err);
  3135. });
  3136. },
  3137. getData2() {
  3138. this.isLoading = true;
  3139. let params = {
  3140. cid: this.cid,
  3141. page: this.page,
  3142. pageSize: this.pageSize,
  3143. cn: this.courseName,
  3144. };
  3145. this.ajax
  3146. .get(this.$store.state.api + "getTestWorksPage3", params)
  3147. .then((res) => {
  3148. this.isLoading = false;
  3149. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  3150. this.tableData = res.data[0];
  3151. })
  3152. .catch((err) => {
  3153. console.error(err);
  3154. });
  3155. },
  3156. setJSON(json) {
  3157. return json.filter((item) => {
  3158. if (item.array) {
  3159. item.array = item.array.filter((item2) => {
  3160. if (item2.ttype == 1 && item2.json) {
  3161. delete item2.json.answer2;
  3162. delete item2.json.score2;
  3163. delete item2.json.file;
  3164. delete item2.json.codeScanningTime;
  3165. delete item2.json.timeSort;
  3166. }
  3167. if (item2.array) {
  3168. item2.array = item2.array.filter((item3) => {
  3169. if (item3.ttype == 1 && item3.json) {
  3170. delete item3.json.answer2;
  3171. delete item3.json.score2;
  3172. delete item3.json.file;
  3173. delete item3.json.codeScanningTime;
  3174. delete item3.json.timeSort;
  3175. }
  3176. return item3;
  3177. });
  3178. }
  3179. return item2;
  3180. });
  3181. } else if (item.ttype == 1 && item.json) {
  3182. delete item.json.answer2;
  3183. delete item.json.score2;
  3184. delete item.json.file;
  3185. delete item.json.codeScanningTime;
  3186. delete item.json.timeSort;
  3187. }
  3188. return item;
  3189. console.log(item.array);
  3190. });
  3191. },
  3192. setJson2(json) {
  3193. let _json = json;
  3194. // this.type = _json[0].ttype;
  3195. let checkArray = _json.filter((item) => {
  3196. if (item.array) {
  3197. item.array = item.array.filter((item2) => {
  3198. if (item2.ttype == 1 && item2.json && !item2.json.answer2) {
  3199. item2.json.answer2 = [];
  3200. }
  3201. if (item2.array) {
  3202. item2.array = item2.array.filter((item3) => {
  3203. if (item3.ttype == 1 && item3.json && !item3.json.answer2) {
  3204. item3.json.answer2 = [];
  3205. }
  3206. return item3;
  3207. });
  3208. }
  3209. return (
  3210. (item2.ttype != 1 && item2.array.length > 0) || item2.ttype == 1
  3211. );
  3212. });
  3213. }
  3214. if (item.ttype == 1 && item.json && !item.json.answer2) {
  3215. item.json.answer2 = [];
  3216. }
  3217. console.log(item.array);
  3218. return (item.ttype != 1 && item.array.length > 0) || item.ttype == 1;
  3219. });
  3220. console.log(checkArray);
  3221. return checkArray;
  3222. },
  3223. JSONSetting(json) {
  3224. let _json = json;
  3225. let array = [];
  3226. _json.filter((item) => {
  3227. if (item.array) {
  3228. item.array = item.array.filter((item2) => {
  3229. if (item2.ttype == 1 && item2.json) {
  3230. array.push(item2);
  3231. }
  3232. if (item2.array) {
  3233. item2.array = item2.array.filter((item3) => {
  3234. if (item3.ttype == 1 && item3.json) {
  3235. array.push(item3);
  3236. }
  3237. return item3;
  3238. });
  3239. }
  3240. return item2;
  3241. });
  3242. }
  3243. if (item.ttype == 1 && item.json) {
  3244. array.push(item);
  3245. }
  3246. console.log(item.array);
  3247. return item;
  3248. });
  3249. console.log(array);
  3250. return array;
  3251. },
  3252. setFilter(json) {
  3253. let _json = json;
  3254. let array = [];
  3255. _json.filter((item) => {
  3256. (item.nameFilters = []),
  3257. (item.filterParams = {
  3258. name: [],
  3259. });
  3260. if (item.type == 1) {
  3261. for (var i = 0; i < item.json.array.length; i++) {
  3262. item.nameFilters.push({
  3263. text: item.json.array[i].option,
  3264. value: item.json.array[i].option,
  3265. });
  3266. }
  3267. }
  3268. array.push(item);
  3269. return item;
  3270. });
  3271. return array;
  3272. },
  3273. checkFile(item) {
  3274. if (item.type == 3) {
  3275. this.$hevueImgPreview(item.url);
  3276. } else if (item.type == 5) {
  3277. this.downloadFile(item);
  3278. } else if (item.type == 1) {
  3279. this.dialogVisibleOffice = true;
  3280. this.wurl = item.url;
  3281. } else if (item.type == 2) {
  3282. this.dialogVisibleVideo = true;
  3283. this.wurl = item.url;
  3284. } else if (item.type == 4) {
  3285. this.dialogVisiblePdf = true;
  3286. this.wurl = item.url;
  3287. }
  3288. },
  3289. downloadFile(f) {
  3290. var credentials = {
  3291. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3292. secretAccessKey: "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",
  3293. }; //秘钥形式的登录上传
  3294. window.AWS.config.update(credentials);
  3295. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3296. let url2 = f.url;
  3297. let _url2 = "";
  3298. if (
  3299. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  3300. ) {
  3301. _url2 = url2.split(
  3302. "https://view.officeapps.live.com/op/view.aspx?src="
  3303. )[1];
  3304. } else {
  3305. _url2 = url2;
  3306. }
  3307. let _this = this;
  3308. _this.downLoading = _url2;
  3309. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  3310. let name = decodeURIComponent(
  3311. _url2
  3312. .split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  3313. .replace(/\+/g, " ")
  3314. );
  3315. var params = {
  3316. Bucket: "ccrb",
  3317. Key: name,
  3318. };
  3319. s3.getObject(params, function (err, data) {
  3320. _this.downLoading = "";
  3321. if (err) console.log(err, err.stack); // an error occurred
  3322. else {
  3323. let url = window.URL.createObjectURL(new Blob([data.Body]));
  3324. let a = document.createElement("a");
  3325. a.name = f.name;
  3326. a.href = url;
  3327. a.download = f.name;
  3328. a.click();
  3329. console.log(data);
  3330. } // sxuccessful response
  3331. });
  3332. },
  3333. deleteTest(tid) {
  3334. let _this = this;
  3335. _this
  3336. .$confirm("确定删除此提交的表单么?", "提示", {
  3337. confirmButtonText: "确定",
  3338. cancelButtonText: "取消",
  3339. type: "warning",
  3340. })
  3341. .then(() => {
  3342. let params = [
  3343. {
  3344. tid: tid,
  3345. },
  3346. ];
  3347. _this.ajax
  3348. .post(_this.$store.state.api + "deleteTestCourseWorks", params)
  3349. .then((res) => {
  3350. _this.$message.success("删除成功");
  3351. if (_this.stype == 3) {
  3352. _this.getData2();
  3353. } else {
  3354. _this.getData();
  3355. }
  3356. })
  3357. .catch((err) => {
  3358. console.error(err);
  3359. });
  3360. })
  3361. .catch(() => {
  3362. return;
  3363. });
  3364. },
  3365. exportPDF() {
  3366. this.pdfLoading = true;
  3367. var a = document.getElementsByTagName("img");
  3368. for (var i = 0; i < a.length; i++) {
  3369. a[i].crossOrigin = "*";
  3370. }
  3371. downloadPDF(this.$refs.stepBox, this.testJson.title, () => {
  3372. var _a = document.getElementsByTagName("img");
  3373. for (var i = 0; i < _a.length; i++) {
  3374. _a[i].removeAttribute("crossorigin");
  3375. }
  3376. setTimeout(() => {
  3377. this.pdfLoading = false;
  3378. }, 2000);
  3379. });
  3380. },
  3381. score(json) {
  3382. let score = 0;
  3383. json.forEach((el) => {
  3384. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  3385. el.array.forEach((item) => {
  3386. if (item.ttype == 2 && item.array.length > 0) {
  3387. item.array.forEach((item2) => {
  3388. if (item2.ttype == 1 && item2.json) {
  3389. score += item2.json.score ? parseFloat(item2.json.score) : 0;
  3390. }
  3391. });
  3392. } else if (item.ttype == 1 && item.json) {
  3393. score += item.json.score ? parseFloat(item.json.score) : 0;
  3394. }
  3395. });
  3396. } else if (el.ttype == 1 && el.json) {
  3397. score += el.json.score ? parseFloat(el.json.score) : 0;
  3398. }
  3399. });
  3400. return score > 0 ? score + "分" : "";
  3401. },
  3402. score2(json) {
  3403. let score = 0;
  3404. // let type = 1
  3405. json.forEach((el) => {
  3406. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  3407. el.array.forEach((item) => {
  3408. if (item.ttype == 2 && item.array.length > 0) {
  3409. item.array.forEach((item2) => {
  3410. if (item2.ttype == 1 && item2.json) {
  3411. score += item2.json.score2
  3412. ? parseFloat(item2.json.score2)
  3413. : 0;
  3414. }
  3415. });
  3416. } else if (item.ttype == 1 && item.json) {
  3417. score += item.json.score2 ? parseFloat(item.json.score2) : 0;
  3418. }
  3419. });
  3420. } else if (el.ttype == 1 && el.json) {
  3421. score += el.json.score2 ? parseFloat(el.json.score2) : 0;
  3422. }
  3423. });
  3424. return score + "分";
  3425. },
  3426. setWordHtml(data) {
  3427. let _data = data;
  3428. let _title = `<div style="font-size:30px;font-weight:bold;text-align:center;">${this.testJson.title}</div>`;
  3429. let score = this.score(data.courseJson);
  3430. let isScore = this.score2(data.courseJson);
  3431. let scoreContent = score ? `<b>(得分/总分)${isScore}/${score}</b>` : "";
  3432. let _content = `<div style="text-align:center;margin-top: 20px;"><b style="margin-right:40px">(答题人)${
  3433. _data.name
  3434. }</b>${scoreContent}(填写范围)${
  3435. this.testJson.juriP ? this.testJson.juriP : "所有人"
  3436. }(提交时间)${_data.time}</div>`;
  3437. let _detail = this.testJson.brief
  3438. ? `<div style="text-align:center;margin-top: 20px;">${this.testJson.brief}</div>`
  3439. : "";
  3440. let _test = `<div style='margin-top:40px;'>`;
  3441. for (let i = 0; i < _data.array.length; i++) {
  3442. let item = _data.array[i];
  3443. let _div = `<div style='margin-top:20px;font-weight:bold;'>${i + 1}、${
  3444. item.json.title
  3445. }</div>`;
  3446. _test += _div;
  3447. if (item.type == 1) {
  3448. for (let j = 0; j < item.json.array.length; j++) {
  3449. let check = item.json.array[j];
  3450. let _option = `<div style='margin:10px 0 0 40px;'>${
  3451. item.json.answer2 && item.json.answer2.indexOf(j) !== -1
  3452. ? "☑"
  3453. : "☐"
  3454. } ${check.option}</div>`;
  3455. _test += _option;
  3456. }
  3457. } else if (item.type == 3 && item.json.answer2) {
  3458. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3459. _test += _option;
  3460. } else if (item.type == 5 && item.json.file) {
  3461. for (let j = 0; j < item.json.file.length; j++) {
  3462. let check = item.json.file[j];
  3463. let _option = `<div style='margin:10px 0 0 40px;'>${check.name} <a href='${check.url}'>${check.url}</a></div>`;
  3464. _test += _option;
  3465. }
  3466. } else if (item.type == 6 && item.json.answer2) {
  3467. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3468. _test += _option;
  3469. } else if (item.type == 7 && item.json.answer2) {
  3470. let _score = this.getScore2(item.json);
  3471. let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`;
  3472. _test += _option;
  3473. } else if (item.type == 8 && item.json.answer2) {
  3474. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3475. _test += _option;
  3476. } else if (item.type == 11 && item.json.answer2) {
  3477. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3478. _test += _option;
  3479. }
  3480. }
  3481. _test += `</div>`;
  3482. let _html = _title + _content + _detail + _test;
  3483. this.exportToWord(_data.name + "-" + _data.time, _html);
  3484. },
  3485. setWordHtml2(data) {
  3486. let _data = data;
  3487. _data.array = this.JSONSetting(
  3488. JSON.parse(JSON.stringify(JSON.parse(data.courseJson)))
  3489. );
  3490. let _title = `<div style="font-size:30px;font-weight:bold;text-align:center;">${this.testJson.title}</div>`;
  3491. let score = this.score(JSON.parse(data.courseJson));
  3492. let isScore = this.score2(JSON.parse(data.courseJson));
  3493. let scoreContent = score ? `<b>(得分/总分)${isScore}/${score}</b>` : "";
  3494. let _content = `<div style="text-align:center;margin-top: 20px;"><b style="margin-right:40px">(答题人)${
  3495. _data.username ? _data.username : "匿名"
  3496. }</b>${scoreContent}(填写范围)${
  3497. this.testJson.juriP ? this.testJson.juriP : "所有人"
  3498. }(提交时间)${_data.time}</div>`;
  3499. let _detail = this.testJson.brief
  3500. ? `<div style="text-align:center;margin-top: 20px;">${this.testJson.brief}</div>`
  3501. : "";
  3502. let _test = `<div style='margin-top:40px;'>`;
  3503. for (let i = 0; i < _data.array.length; i++) {
  3504. let item = _data.array[i];
  3505. let _div = `<div style='margin-top:20px;font-weight:bold;'>${i + 1}、${
  3506. item.json.title
  3507. }</div>`;
  3508. _test += _div;
  3509. if (item.type == 1) {
  3510. for (let j = 0; j < item.json.array.length; j++) {
  3511. let check = item.json.array[j];
  3512. let _option = `<div style='margin:10px 0 0 40px;'>${
  3513. item.json.answer2 && item.json.answer2.indexOf(j) !== -1
  3514. ? "☑"
  3515. : "☐"
  3516. } ${check.option}</div>`;
  3517. _test += _option;
  3518. }
  3519. } else if (item.type == 3 && item.json.answer2) {
  3520. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3521. _test += _option;
  3522. } else if (item.type == 5 && item.json.file) {
  3523. for (let j = 0; j < item.json.file.length; j++) {
  3524. let check = item.json.file[j];
  3525. let _option = `<div style='margin:10px 0 0 40px;'>${check.name} <a href='${check.url}'>${check.url}</a></div>`;
  3526. _test += _option;
  3527. }
  3528. } else if (item.type == 6 && item.json.answer2) {
  3529. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3530. _test += _option;
  3531. } else if (item.type == 7 && item.json.answer2) {
  3532. let _score = this.getScore2(item.json);
  3533. let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`;
  3534. _test += _option;
  3535. } else if (item.type == 8 && item.json.answer2) {
  3536. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3537. _test += _option;
  3538. } else if (item.type == 11 && item.json.answer2) {
  3539. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3540. _test += _option;
  3541. }
  3542. }
  3543. _test += `</div>`;
  3544. let _html = _title + _content + _detail + _test;
  3545. this.exportToWord(
  3546. _data.username ? _data.username : "匿名" + "-" + _data.time,
  3547. _html
  3548. );
  3549. },
  3550. async exportToWord(a, html) {
  3551. // 将html文件中需要用到的数据挂载到store上
  3552. const content = `<!DOCTYPE html>
  3553. <html lang="en">
  3554. <head>
  3555. <meta charset="UTF-8">
  3556. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  3557. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  3558. <title>${a}</title>
  3559. <style>
  3560. </style>
  3561. </head>
  3562. <body>
  3563. ${html}
  3564. </body>
  3565. </html>`;
  3566. // debugger
  3567. // 生成报告
  3568. const link = document.createElement("a");
  3569. let dname = a + ".doc";
  3570. // link.download = "报告.html"; // 文件名
  3571. link.download = dname; // 文件名
  3572. link.style.display = "none";
  3573. // 创建文件流
  3574. // 创建bolb实例时,内容一定要放在[]中
  3575. const blob = new Blob([content], {
  3576. type: "text/plain;charset='utf-8'",
  3577. });
  3578. link.href = window.URL.createObjectURL(blob);
  3579. document.body.appendChild(link);
  3580. link.click();
  3581. document.body.removeChild(link);
  3582. },
  3583. setWordHtmlAll(data) {
  3584. let _data = data;
  3585. let _title = `<div style="font-size:30px;font-weight:bold;text-align:center;">${this.testJson.title}</div>`;
  3586. let score = this.score(data.courseJson);
  3587. let isScore = this.score2(data.courseJson);
  3588. let scoreContent = score ? `<b>(得分/总分)${isScore}/${score}</b>` : "";
  3589. let _content = `<div style="text-align:center;margin-top: 20px;"><b style="margin-right:40px">(答题人)${
  3590. _data.name
  3591. }</b>${scoreContent}(填写范围)${
  3592. this.testJson.juriP ? this.testJson.juriP : "所有人"
  3593. }(提交时间)${_data.time}</div>`;
  3594. let _detail = this.testJson.brief
  3595. ? `<div style="text-align:center;margin-top: 20px;">${this.testJson.brief}</div>`
  3596. : "";
  3597. let _test = `<div style='margin-top:40px;'>`;
  3598. for (let i = 0; i < _data.array.length; i++) {
  3599. let item = _data.array[i];
  3600. let _div = `<div style='margin-top:20px;font-weight:bold;'>${i + 1}、${
  3601. item.json.title
  3602. }</div>`;
  3603. _test += _div;
  3604. if (item.type == 1) {
  3605. for (let j = 0; j < item.json.array.length; j++) {
  3606. let check = item.json.array[j];
  3607. let _option = `<div style='margin:10px 0 0 40px;'>${
  3608. item.json.answer2 && item.json.answer2.indexOf(j) !== -1
  3609. ? "☑"
  3610. : "☐"
  3611. } ${check.option}</div>`;
  3612. _test += _option;
  3613. }
  3614. } else if (item.type == 3 && item.json.answer2) {
  3615. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3616. _test += _option;
  3617. } else if (item.type == 5 && item.json.file) {
  3618. for (let j = 0; j < item.json.file.length; j++) {
  3619. let check = item.json.file[j];
  3620. let _option = `<div style='margin:10px 0 0 40px;'>${check.name} <a href='${check.url}'>${check.url}</a></div>`;
  3621. _test += _option;
  3622. }
  3623. } else if (item.type == 6 && item.json.answer2) {
  3624. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3625. _test += _option;
  3626. } else if (item.type == 7 && item.json.answer2) {
  3627. let _score = this.getScore2(item.json);
  3628. let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`;
  3629. _test += _option;
  3630. } else if (item.type == 8 && item.json.answer2) {
  3631. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3632. _test += _option;
  3633. } else if (item.type == 11 && item.json.answer2) {
  3634. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${item.json.answer2}</div>`;
  3635. _test += _option;
  3636. }
  3637. }
  3638. _test += `</div>`;
  3639. let _html = _title + _content + _detail + _test;
  3640. return this.exportToWordAll(_data.name + "-" + _data.time, _html);
  3641. },
  3642. async setWordHtmlAll2(data) {
  3643. let _data = data;
  3644. _data.array = this.JSONSetting(
  3645. JSON.parse(JSON.stringify(JSON.parse(data.courseJson)))
  3646. );
  3647. let _title = `<div style="font-size:30px;font-weight:bold;text-align:center;">${this.testJson.title}</div>`;
  3648. let score = this.score(JSON.parse(data.courseJson));
  3649. let isScore = this.score2(JSON.parse(data.courseJson));
  3650. let scoreContent = score ? `<b>(得分/总分)${isScore}/${score}</b>` : "";
  3651. let _content = `<div style="text-align:center;margin-top: 20px;"><b style="margin-right:40px">(答题人)${
  3652. _data.username ? _data.username : "匿名"
  3653. }</b>${scoreContent}(填写范围)${
  3654. this.testJson.juriP ? this.testJson.juriP : "所有人"
  3655. }(提交时间)${_data.time}</div>`;
  3656. let _detail = this.testJson.brief
  3657. ? `<div style="text-align:center;margin-top: 20px;">${this.testJson.brief}</div>`
  3658. : "";
  3659. let _test = `<div style='margin-top:40px;'>`;
  3660. for (let i = 0; i < _data.array.length; i++) {
  3661. let item = _data.array[i];
  3662. let _div = `<div style='margin-top:20px;font-weight:bold;'>${i + 1}、${
  3663. item.json.title
  3664. }</div>`;
  3665. _test += _div;
  3666. if (item.type == 1) {
  3667. for (let j = 0; j < item.json.array.length; j++) {
  3668. let check = item.json.array[j];
  3669. let _option = `<div style='margin:10px 0 0 40px;'>${
  3670. item.json.answer2 && item.json.answer2.indexOf(j) !== -1
  3671. ? "☑"
  3672. : "☐"
  3673. } ${check.option}</div>`;
  3674. _test += _option;
  3675. }
  3676. } else if (item.type == 3 && item.json.answer2) {
  3677. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3678. _test += _option;
  3679. } else if (item.type == 5 && item.json.file) {
  3680. for (let j = 0; j < item.json.file.length; j++) {
  3681. let check = item.json.file[j];
  3682. let _option = `<div style='margin:10px 0 0 40px;'>${check.name} <a href='${check.url}'>${check.url}</a></div>`;
  3683. _test += _option;
  3684. }
  3685. } else if (item.type == 6 && item.json.answer2) {
  3686. let _cjson = await this.getCourse(item.json.answer2);
  3687. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${
  3688. _cjson ? _cjson.title : ""
  3689. }</div>`;
  3690. _test += _option;
  3691. } else if (item.type == 7 && item.json.answer2) {
  3692. let _score = this.getScore2(item.json);
  3693. let _option = `<div style='margin:10px 0 0 40px;'>打分:${_score}分</div>`;
  3694. _test += _option;
  3695. } else if (item.type == 8 && item.json.answer2) {
  3696. let _option = `<div style='margin:10px 0 0 40px;'>${item.json.answer2}</div>`;
  3697. _test += _option;
  3698. } else if (
  3699. item.type == 11 &&
  3700. item.json.answer2 &&
  3701. item.json.answer2.length
  3702. ) {
  3703. let _answer = item.json.answer2;
  3704. _answer.length ? (courseCount11 = courseCount11.concat(_answer)) : "";
  3705. _json[ja].json.courseId = _answer ? _answer : [];
  3706. let params = [
  3707. {
  3708. cid: _answer.length ? _answer.join(",") : "",
  3709. },
  3710. ];
  3711. let data = await this.ajax.post(
  3712. this.$store.state.api + "getCourseInfoTestAll2",
  3713. params
  3714. );
  3715. let result = data.data[0];
  3716. let _title = [];
  3717. // this.chapters.find(i=>i.type==6).nameFilters = result.map(r=>{return{text:r.title,value:r.courseId}})
  3718. result.forEach((i) => {
  3719. _title.push(i.title);
  3720. });
  3721. let _option = `<div style='margin:10px 0 0 40px;'>打分课程:${
  3722. _title.length ? _title.join(",") : ""
  3723. }</div>`;
  3724. _test += _option;
  3725. }
  3726. }
  3727. _test += `</div>`;
  3728. let _html = _title + _content + _detail + _test;
  3729. return this.exportToWordAll(
  3730. _data.username ? _data.username : "匿名" + "-" + _data.time,
  3731. _html
  3732. );
  3733. },
  3734. async exportToWordAll(a, html) {
  3735. // 将html文件中需要用到的数据挂载到store上
  3736. const content = `<!DOCTYPE html>
  3737. <html lang="en">
  3738. <head>
  3739. <meta charset="UTF-8">
  3740. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  3741. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  3742. <title>${a}</title>
  3743. <style>
  3744. </style>
  3745. </head>
  3746. <body>
  3747. ${html}
  3748. </body>
  3749. </html>`;
  3750. // debugger
  3751. // 生成报告
  3752. const link = document.createElement("a");
  3753. let dname = a + ".doc";
  3754. // link.download = "报告.html"; // 文件名
  3755. link.download = dname; // 文件名
  3756. link.style.display = "none";
  3757. // 创建文件流
  3758. // 创建bolb实例时,内容一定要放在[]中
  3759. const blob = new Blob([content], {
  3760. type: "text/plain;charset='utf-8'",
  3761. });
  3762. return blob;
  3763. },
  3764. exportAllWord() {
  3765. if (this.selectWorkList.length <= 0)
  3766. return this.$message.info("请先选择需要导出的表单数据");
  3767. this.pdfLoading = true;
  3768. const _chapInfo = this.selectWorkList; //this.worksArray
  3769. let url = [];
  3770. for (let i = 0; i < _chapInfo.length; i++) {
  3771. url.push({
  3772. name: _chapInfo[i].name + "-" + _chapInfo[i].time,
  3773. blob: this.setWordHtmlAll(_chapInfo[i]),
  3774. });
  3775. }
  3776. console.log(url);
  3777. this.downLoadAll(url);
  3778. },
  3779. exportAllWord2() {
  3780. this.pdfLoading = true;
  3781. let params = {
  3782. cid: this.cid,
  3783. page: 1,
  3784. pageSize: 999,
  3785. cn: this.courseName,
  3786. };
  3787. this.ajax
  3788. .get(this.$store.state.api + "getTestWorksPage3", params)
  3789. .then((res) => {
  3790. const _chapInfo = res.data[0];
  3791. let url = [];
  3792. for (let i = 0; i < _chapInfo.length; i++) {
  3793. url.push({
  3794. name: _chapInfo[i].username + "-" + _chapInfo[i].time,
  3795. blob: this.setWordHtmlAll2(_chapInfo[i]),
  3796. });
  3797. }
  3798. console.log(url);
  3799. this.downLoadAll(url);
  3800. })
  3801. .catch((err) => {
  3802. console.error(err);
  3803. });
  3804. },
  3805. downLoadAll(url) {
  3806. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  3807. const zip = new JSZip();
  3808. const cache = {};
  3809. data.forEach((item) => {
  3810. // 下载文件, 并存成ArrayBuffer对象
  3811. const file_name = item.name; // 获取文件名
  3812. zip.file(file_name + ".doc", item.blob, { binary: true }); // 逐个添加文件
  3813. cache[file_name] = item.blob;
  3814. });
  3815. zip.generateAsync({ type: "blob" }).then((content) => {
  3816. // 生成二进制流
  3817. FileSaver.saveAs(content, this.testJson.title + ".zip"); // 利用file-saver保存文件 自定义文件名
  3818. setTimeout(() => {
  3819. this.pdfLoading = false;
  3820. }, 2000);
  3821. });
  3822. },
  3823. handleFilterChange() {
  3824. console.log(this.$refs.table.store.states.data);
  3825. },
  3826. exportExcel() {
  3827. let res = this.$refs.table.store.states.data;
  3828. if (!res.length) {
  3829. this.$message.error("无导出数据");
  3830. return;
  3831. }
  3832. this.isLoading = true;
  3833. let chapters = this.chapters;
  3834. var array = [];
  3835. for (var i = 0; i < res.length; i++) {
  3836. var _json = {};
  3837. _json["序号"] = i + 1;
  3838. _json["提交人"] = res[i].name ? res[i].name : "匿名";
  3839. _json["提交时间"] = res[i].time;
  3840. for (var j = 0; j < chapters.length; j++) {
  3841. _json[j + 1 + "." + chapters[j].json.title] = "";
  3842. if (res[i].array[j].type == 1 && res[i].array[j].json.answer2) {
  3843. let a = [];
  3844. for (
  3845. var answer2 = 0;
  3846. answer2 < res[i].array[j].json.answer2.length;
  3847. answer2++
  3848. ) {
  3849. a.push(
  3850. res[i].array[j].json.array[
  3851. res[i].array[j].json.answer2[answer2]
  3852. ].option
  3853. );
  3854. }
  3855. _json[j + 1 + "." + chapters[j].json.title] = a.join("、");
  3856. } else if (
  3857. res[i].array[j].type == 3 &&
  3858. res[i].array[j].json.answer2
  3859. ) {
  3860. _json[j + 1 + "." + chapters[j].json.title] =
  3861. res[i].array[j].json.answer2;
  3862. } else if (res[i].array[j].type == 5 && res[i].array[j].json.file) {
  3863. let files = [];
  3864. for (
  3865. let file = 0;
  3866. file < res[i].array[j].json.file.length;
  3867. file++
  3868. ) {
  3869. let check = res[i].array[j].json.file[file];
  3870. files.push(file + 1 + "." + check.name + "----" + check.url);
  3871. }
  3872. _json[j + 1 + "." + chapters[j].json.title] = files.join("\n");
  3873. } else if (
  3874. res[i].array[j].type == 6 &&
  3875. res[i].array[j].json.answer2
  3876. ) {
  3877. _json[j + 1 + "." + chapters[j].json.title] =
  3878. res[i].array[j].json.answer2;
  3879. } else if (
  3880. res[i].array[j].type == 7 &&
  3881. res[i].array[j].json.answer2
  3882. ) {
  3883. let _score = this.getScore2(res[i].array[j].json);
  3884. _json[j + 1 + "." + chapters[j].json.title] = _score;
  3885. } else if (
  3886. res[i].array[j].type == 8 &&
  3887. res[i].array[j].json.answer2
  3888. ) {
  3889. _json[j + 1 + "." + chapters[j].json.title] =
  3890. res[i].array[j].json.answer2;
  3891. } else if (
  3892. res[i].array[j].type == 11 &&
  3893. res[i].array[j].json.answer2
  3894. ) {
  3895. _json[j + 1 + "." + chapters[j].json.title] =
  3896. res[i].array[j].json.answer2;
  3897. }
  3898. }
  3899. array.push(_json);
  3900. }
  3901. let widthJson = [];
  3902. let widthArray = Object.keys(array[0]);
  3903. for (let i = 0; i < widthArray.length; i++) {
  3904. if (i == 0) {
  3905. widthJson.push({ wch: 5 });
  3906. } else {
  3907. widthJson.push({ wch: 30 });
  3908. }
  3909. }
  3910. const workbook = XLSX.utils.book_new(); //创建一个新的工作簿对象
  3911. let ws = XLSX.utils.json_to_sheet(array); //将json对象数组转化成工作表
  3912. ws["!cols"] = widthJson;
  3913. const styleObj = {
  3914. alignment: {
  3915. horizontal: "center",
  3916. vertical: "center", // 设置垂直居中
  3917. },
  3918. }; // 设置居中对齐和加粗样式
  3919. for (let cell in ws) {
  3920. if (!cell[0].startsWith("!")) {
  3921. ws[cell]["s"] = styleObj;
  3922. }
  3923. }
  3924. XLSX.utils.book_append_sheet(workbook, ws, "sheet1"); //把sheet添加到workbook里,第三个参数是sheet名
  3925. XLSX.writeFile(workbook, this.testJson.title + ".xlsx");
  3926. this.isLoading = false;
  3927. this.$message({
  3928. message: "导出成功",
  3929. type: "success",
  3930. });
  3931. },
  3932. async getCourse(id) {
  3933. let params = {
  3934. cid: id,
  3935. };
  3936. let res = await this.ajax.get(
  3937. this.$store.state.api + "getCourseInfoTest",
  3938. params
  3939. );
  3940. return res.data[0][0];
  3941. },
  3942. getScore2(item) {
  3943. let array = [];
  3944. for (var i = parseInt(item.small); i <= parseInt(item.big); i++) {
  3945. array.push(i);
  3946. }
  3947. return item.answer2 ? array[item.answer2] : "";
  3948. },
  3949. checkScreenSize() {
  3950. this.screenWidth = window.innerWidth;
  3951. this.isDesktop = this.screenWidth > 750; // 你可以根据需要调整这个阈值
  3952. },
  3953. downloadFileType5(fileData, title = "附件", index) {
  3954. this.fileLoading[index].bool = true;
  3955. this.fileLoading[index].count = 0;
  3956. this.fileLoading[index].load = 0;
  3957. this.fileLoading[index].progress = 0;
  3958. let data = fileData;
  3959. const zip = new JSZip();
  3960. let downFileArray = [];
  3961. let uniqueArr = data.filter(
  3962. (v, i, a) => a.map((mb) => mb.userid).indexOf(v.userid) == i
  3963. );
  3964. uniqueArr.forEach((i) => {
  3965. downFileArray.push({
  3966. userid: i.userid,
  3967. username: i.username ? i.username : "匿名",
  3968. urlList: data.filter((d) => d.userid == i.userid).map((m) => m),
  3969. });
  3970. });
  3971. let promises = [];
  3972. console.log("downFileArray", downFileArray);
  3973. downFileArray.forEach((e) => {
  3974. this.fileLoading[index].count += e.urlList.length;
  3975. });
  3976. if (downFileArray.length == 1) {
  3977. //只有一位老师的情况
  3978. if (downFileArray[0].urlList.length > 1) {
  3979. //多个文件的情况
  3980. const folder = zip.folder(`${downFileArray[0].username}`);
  3981. downFileArray[0].urlList.forEach((i) => {
  3982. const promise = getFile(i.url).then((data) => {
  3983. if (data.data != 1) {
  3984. // 下载文件, 并存成ArrayBuffer对象
  3985. const file_name = i.name; // 获取文件名
  3986. folder.file(file_name, data.data, { binary: true }); // 逐个添加文件
  3987. }
  3988. this.fileLoading[index].load += 1;
  3989. this.fileLoading[index].progress = parseInt(
  3990. (this.fileLoading[index].load / this.fileLoading[index].count) *
  3991. 100
  3992. );
  3993. if (
  3994. this.fileLoading[index].load == this.fileLoading[index].count
  3995. ) {
  3996. this.fileLoading[index].bool = false;
  3997. }
  3998. });
  3999. promises.push(promise);
  4000. });
  4001. } else {
  4002. //只有一个文件的情况
  4003. promises.push(
  4004. getFile(downFileArray[0].urlList[0].url).then((data) => {
  4005. if (data.data != 1) {
  4006. // 下载文件, 并存成ArrayBuffer对象
  4007. const file_name = `${downFileArray[0].username}-${downFileArray[0].urlList[0].name}`; // 获取文件名
  4008. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  4009. }
  4010. this.fileLoading[index].load += 1;
  4011. this.fileLoading[index].progress = parseInt(
  4012. (this.fileLoading[index].load / this.fileLoading[index].count) *
  4013. 100
  4014. );
  4015. if (
  4016. this.fileLoading[index].load == this.fileLoading[index].count
  4017. ) {
  4018. this.fileLoading[index].bool = false;
  4019. }
  4020. })
  4021. );
  4022. }
  4023. } else if (downFileArray.length > 1) {
  4024. //有多位老师的情况
  4025. downFileArray.forEach((i) => {
  4026. if (i.urlList.length == 1) {
  4027. //只有一个文件的情况
  4028. promises.push(
  4029. getFile(i.urlList[0].url).then((data) => {
  4030. if (data.data != 1) {
  4031. // 下载文件, 并存成ArrayBuffer对象
  4032. const file_name = `${i.username ? i.username : "匿名"}-${
  4033. i.urlList[0].name
  4034. }`; // 获取文件名
  4035. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  4036. }
  4037. this.fileLoading[index].load += 1;
  4038. this.fileLoading[index].progress = parseInt(
  4039. (this.fileLoading[index].load /
  4040. this.fileLoading[index].count) *
  4041. 100
  4042. );
  4043. if (
  4044. this.fileLoading[index].load == this.fileLoading[index].count
  4045. ) {
  4046. this.fileLoading[index].bool = false;
  4047. }
  4048. })
  4049. );
  4050. } else if (i.urlList.length > 1) {
  4051. //有多个文件的
  4052. const folder = zip.folder(`${i.username ? i.username : "匿名"}`);
  4053. i.urlList.forEach((ui) => {
  4054. const promise = getFile(ui.url).then((data) => {
  4055. if (data.data != 1) {
  4056. // 下载文件, 并存成ArrayBuffer对象
  4057. const file_name = ui.name; // 获取文件名
  4058. folder.file(file_name, data.data, { binary: true }); // 逐个添加文件
  4059. }
  4060. this.fileLoading[index].load += 1;
  4061. this.fileLoading[index].progress = parseInt(
  4062. (this.fileLoading[index].load /
  4063. this.fileLoading[index].count) *
  4064. 100
  4065. );
  4066. if (
  4067. this.fileLoading[index].load == this.fileLoading[index].count
  4068. ) {
  4069. this.fileLoading[index].bool = false;
  4070. }
  4071. });
  4072. promises.push(promise);
  4073. });
  4074. }
  4075. });
  4076. }
  4077. Promise.all(promises).then(() => {
  4078. zip.generateAsync({ type: "blob" }).then((content) => {
  4079. // 生成二进制流
  4080. FileSaver.saveAs(content, `${this.testJson.title}-${title}.zip`); // 利用file-saver保存文件 自定义文件名
  4081. });
  4082. });
  4083. },
  4084. getUserInfo() {
  4085. let params = {
  4086. uid: this.peopleId,
  4087. };
  4088. this.ajax
  4089. .get(this.$store.state.api + "selectTestUser", params)
  4090. .then((res) => {
  4091. console.log("111111111111111111111", res.data[0][0]);
  4092. // 用于存储归类后的数据的对象
  4093. // this.checkDataType(2)
  4094. this.stype = 2;
  4095. this.courseName = res.data[0][0].name;
  4096. this.searchCourse();
  4097. })
  4098. .catch((err) => {
  4099. console.error(err);
  4100. });
  4101. },
  4102. setWordTemplate(item) {
  4103. this.$refs.docxTemplateDialogRef.open({
  4104. fileData: this.testJson.cover ? JSON.parse(this.testJson.cover) : null,
  4105. testJson: this.testJson,
  4106. courseId: this.testJson.courseId,
  4107. formData: [item],
  4108. }); //这里可以传数据
  4109. },
  4110. changeCover(data) {
  4111. this.testJson.cover = data;
  4112. },
  4113. exportWordData() {
  4114. if (this.selectWorkList.length <= 0)
  4115. return this.$message.info("请先选择需要导出的表单数据");
  4116. this.$refs.docxTemplateDialogRef.open({
  4117. fileData: this.testJson.cover ? JSON.parse(this.testJson.cover) : null,
  4118. testJson: this.testJson,
  4119. courseId: this.testJson.courseId,
  4120. formData: this.selectWorkList,
  4121. }); //这里可以传数据this.worksArray
  4122. },
  4123. handleSelectionChange(value) {
  4124. this.selectWorkList = value;
  4125. },
  4126. tableDataPickerChange() {
  4127. let _copyData = JSON.parse(JSON.stringify(this.worksArray));
  4128. this.tableDatePicker.forEach((i, index) => {
  4129. /*[null,["2024-12-05T00:00:00.000","2025-01-12T00:00:00.000"],["2024-12-04T00:00:00.000","2025-01-24T00:00:00.000"]] */
  4130. if (i && i.length > 0) {
  4131. let _startDate = new Date(i[0]);
  4132. let _endDate = new Date(i[1]);
  4133. _copyData = _copyData.filter((f) => {
  4134. let _answer = f.array[index].json.answer2
  4135. .replace(/日/g, "")
  4136. .replace(/年|月/g, "-");
  4137. let _answerDate = new Date(_answer);
  4138. return _answerDate >= _startDate && _answerDate <= _endDate;
  4139. });
  4140. }
  4141. });
  4142. this.tableWorksArray = _copyData;
  4143. },
  4144. submissionTimePickerChange(){
  4145. let _copyData = JSON.parse(JSON.stringify(this.worksArray));
  4146. console.log(this.submissionTimePicker)
  4147. if(!this.submissionTimePicker)return this.tableWorksArray = _copyData;
  4148. _copyData = _copyData.filter(i=>{
  4149. let _startDate = new Date(this.submissionTimePicker[0]);
  4150. let _endDate = new Date(this.submissionTimePicker[1]);
  4151. let time = i.time.replace(/日/g, "").replace(/年|月/g, "-");
  4152. let _answerDate = new Date(time);
  4153. return _answerDate >= _startDate && _answerDate <= _endDate;
  4154. })
  4155. this.tableWorksArray = _copyData;
  4156. // this.submissionTimePicker.forEach((i, index) => {
  4157. // /*[null,["2024-12-05T00:00:00.000","2025-01-12T00:00:00.000"],["2024-12-04T00:00:00.000","2025-01-24T00:00:00.000"]] */
  4158. // if (i && i.length > 0) {
  4159. // let _startDate = new Date(i[0]);
  4160. // let _endDate = new Date(i[1]);
  4161. // _copyData = _copyData.filter((f) => {
  4162. // let _answer = f.array[index].json.answer2
  4163. // .replace(/日/g, "")
  4164. // .replace(/年|月/g, "-");
  4165. // let _answerDate = new Date(_answer);
  4166. // return _answerDate >= _startDate && _answerDate <= _endDate;
  4167. // });
  4168. // }
  4169. // });
  4170. },
  4171. textPagingChange(event,item,index){
  4172. this.testArray[index].nowPage = event;
  4173. let _nowPage = this.testArray[index].nowPage;
  4174. let _limit = this.testArray[index].limit;
  4175. this.testArray[index].showArray = this.testArray[index].array.slice(((_nowPage==0?1:_nowPage)-1)*_limit,((_nowPage==0?1:_nowPage)-1)*_limit+_limit);
  4176. },
  4177. getWordCloutData(item,index){
  4178. console.log(item,index);
  4179. this.testArray[index].loadingWordCloud = true;
  4180. const _msg = `NOTICE
  4181. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  4182. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  4183. Instruction: Based on the context, follow "Format example", write content.
  4184. ## 任务
  4185. 请基于以下表单文本,提炼出多个关键词,用于绘制词云图。请给出相应的关键词,关键词出现的频次。请确保输出的关键字准确反映表单文本的主要内容和主题。
  4186. ## 要求
  4187. 1. **提取关键词**:从提供的课堂实录文本中提取出多个最具代表性的关键字。关键词应该涵盖表单文本中的主要概念、重要术语和核心主题。尽量选择多样化的关键词,避免过于集中在某一个主题或概念上。
  4188. 2. **词频统计**:计算每个关键字在文本中出现的频率。
  4189. 3. **输出格式**:输出结果应包含每个关键字、对应的词频数量。
  4190. ## 输出格式
  4191. ### 输出格式
  4192. [
  4193. {"count":1,"name":"氯化钠"},
  4194. {"count":2,"name":"溶液"},
  4195. {"count":1,"name":"实验"},
  4196. {"count":3,"name":"质量分数"},
  4197. {"count":1,"name":"溶质"},
  4198. {"count":2,"name":"氢氧化钠"},
  4199. {"count":1,"name":"溶解度"},
  4200. {"count":4,"name":"饱和溶液"}
  4201. ]
  4202. 请仅仅输出表头,输出关键词和相应的内容,无需其它任何说明文字。
  4203. 冒号、逗号等符号均使用英文字符。
  4204. ### Format example
  4205. [
  4206. {"count":1,"name":"氯化钠"},
  4207. {"count":2,"name":"溶液"},
  4208. {"count":1,"name":"实验"},
  4209. {"count":3,"name":"质量分数"},
  4210. {"count":1,"name":"溶质"},
  4211. {"count":2,"name":"氢氧化钠"},
  4212. {"count":1,"name":"溶解度"},
  4213. {"count":4,"name":"饱和溶液"}
  4214. ]
  4215. ## 表单文本
  4216. ${JSON.stringify(item.array)}
  4217. `;
  4218. const _uuid = uuidv4();
  4219. let params = {
  4220. // model: "gpt-3.5-turbo",
  4221. temperature: 0,
  4222. max_tokens: 4096,
  4223. top_p: 1,
  4224. frequency_penalty: 0,
  4225. presence_penalty: 0,
  4226. messages: [{ role: "user", content: _msg }],
  4227. uid: _uuid,
  4228. mind_map_question: "",
  4229. stream: false,
  4230. model: "gpt-4o-2024-11-20",
  4231. };
  4232. this.ajax
  4233. .post("https://gpt4.cocorobo.cn/chat", params)
  4234. .then((res) => {
  4235. let _data = res.data.FunctionResponse.choices[0];
  4236. let _jsonData = _data.message.content;
  4237. _jsonData = _jsonData.replaceAll("```json", "").replaceAll("```", "");
  4238. let _result = JSON.parse(_jsonData);
  4239. this.testArray[index].wordCloutData = _result;
  4240. this.testArray[index].loadingWordCloud = false;
  4241. console.log(_result);
  4242. }).catch(e=>{
  4243. console.log(e);
  4244. this.testArray[index].loadingWordCloud = false;
  4245. this.testArray[index].wordCloutData = null;
  4246. this.$message.error("生成词云图失败")
  4247. })
  4248. },
  4249. getExamineData(){
  4250. let params = {
  4251. uid: this.peopleId,
  4252. type:this.tType,
  4253. tid:this.examineId,
  4254. }
  4255. this.ajax.get(this.$store.state.api +"getTestExamineByUserId2",params).then(res=>{
  4256. // this.examineData = res.data[0][0];
  4257. if(res.data[0].length>0){
  4258. this.examineData = res.data[0][0];
  4259. }
  4260. }).catch(e=>{
  4261. console.log(e);
  4262. this.examineData = null;
  4263. })
  4264. },
  4265. },
  4266. beforeDestroy() {
  4267. document.getElementsByTagName("html")[0].style.overflow = "";
  4268. window.removeEventListener("resize", this.checkScreenSize);
  4269. },
  4270. mounted() {
  4271. this.checkScreenSize();
  4272. window.addEventListener("resize", this.checkScreenSize);
  4273. document.getElementsByTagName("html")[0].scrollTop = 0;
  4274. document.getElementsByTagName("html")[0].style.overflow = "hidden";
  4275. this.$nextTick(function () {
  4276. if (this.peopleId) {
  4277. this.getUserInfo();
  4278. } else {
  4279. this.getData();
  4280. }
  4281. if(this.examineId){
  4282. this.getExamineData();
  4283. }
  4284. // this.getClass2()
  4285. this.changeHeight();
  4286. });
  4287. },
  4288. };
  4289. </script>
  4290. <style scoped>
  4291. .pb_content {
  4292. height: 100% !important;
  4293. /* margin: 0 20px 0 20px; */
  4294. }
  4295. .cutBtnBlockCss {
  4296. width: 100%;
  4297. display: flex;
  4298. justify-content: end;
  4299. }
  4300. .cutBtnCss {
  4301. width: 68px;
  4302. height: 27px;
  4303. font-size: 14px;
  4304. border-radius: 5px;
  4305. display: flex;
  4306. color: rgba(54, 129, 252, 1);
  4307. justify-content: center;
  4308. align-items: center;
  4309. margin-top: 10px;
  4310. border: 1px rgba(54, 129, 252, 1) solid;
  4311. }
  4312. .isDesktopRight {
  4313. width: 100% !important;
  4314. margin: 0 !important;
  4315. height: 300px !important;
  4316. border: none !important;
  4317. }
  4318. .isDTitle2JsonTit {
  4319. width: 130px;
  4320. color: rgba(0, 0, 0, 0.9);
  4321. overflow: hidden;
  4322. white-space: nowrap;
  4323. text-overflow: ellipsis;
  4324. }
  4325. .IsDAnswer {
  4326. margin: 20px 0 30px;
  4327. color: rgba(0, 0, 0, 0.6);
  4328. }
  4329. .CutCss {
  4330. height: 60px;
  4331. line-height: 60px;
  4332. }
  4333. .topicTitCss {
  4334. color: rgba(0, 0, 0, 0.9);
  4335. font-weight: 600;
  4336. margin-right: 5px;
  4337. }
  4338. .IsDFile {
  4339. width: 150px;
  4340. height: 120px;
  4341. border-radius: 10px;
  4342. position: relative;
  4343. display: flex;
  4344. flex-direction: column;
  4345. overflow: hidden;
  4346. margin-bottom: 5px;
  4347. }
  4348. .IsDownload {
  4349. position: absolute;
  4350. width: 30px;
  4351. top: 5px;
  4352. right: 5px;
  4353. }
  4354. .IsDImg {
  4355. width: 100%;
  4356. height: 70px;
  4357. flex: 1;
  4358. }
  4359. .pb_content_body {
  4360. width: 100% !important;
  4361. height: 100%;
  4362. }
  4363. .pb_content_body > .right {
  4364. height: 100%;
  4365. width: 100%;
  4366. display: flex;
  4367. overflow: hidden;
  4368. flex-direction: column;
  4369. }
  4370. .basic_box {
  4371. margin: 0 auto;
  4372. position: relative;
  4373. padding: 0 20px 0 20px;
  4374. }
  4375. .courseTop {
  4376. display: flex;
  4377. flex-direction: row;
  4378. justify-content: space-between;
  4379. align-items: center;
  4380. width: calc(100% - 40px);
  4381. margin: 0 auto;
  4382. padding: 10px 0;
  4383. }
  4384. .stepsNav {
  4385. display: flex;
  4386. flex-direction: row;
  4387. justify-content: flex-start;
  4388. align-items: center;
  4389. }
  4390. .step_box {
  4391. width: calc(100% - 40px);
  4392. margin: 0 auto;
  4393. height: calc(100% - 50px);
  4394. overflow: auto;
  4395. background: #ffff;
  4396. border-radius: 5px;
  4397. }
  4398. .el-table >>> .even_row {
  4399. background-color: #f1f1f1 !important;
  4400. }
  4401. .student_page {
  4402. margin-top: 10px;
  4403. }
  4404. .test_title {
  4405. display: flex;
  4406. padding: 15px 15px;
  4407. width: 100%;
  4408. box-sizing: border-box;
  4409. justify-content: space-between;
  4410. align-items: center;
  4411. flex-wrap: wrap;
  4412. margin-bottom: 10px;
  4413. }
  4414. .test_title .left {
  4415. max-width: 100%;
  4416. margin-top: 10px;
  4417. }
  4418. .test_title .left .title {
  4419. width: 100%;
  4420. font-size: 24px;
  4421. font-weight: 700;
  4422. overflow: hidden;
  4423. text-overflow: ellipsis;
  4424. white-space: nowrap;
  4425. }
  4426. .test_title .left .info {
  4427. display: flex;
  4428. margin-top: 15px;
  4429. }
  4430. .test_title .left .info .info_box {
  4431. font-size: 14px;
  4432. }
  4433. .test_title .left .info .info_box + .info_box {
  4434. margin-left: 20px;
  4435. padding-left: 20px;
  4436. border-left: 1px solid #e7e7e7;
  4437. }
  4438. .test_title .left .info .info_box span:nth-child(1) {
  4439. color: #00000099;
  4440. }
  4441. /* .test_title .left .info .info_box span:nth-child(2) {
  4442. } */
  4443. .test_title .right {
  4444. display: flex;
  4445. align-items: center;
  4446. margin-top: 10px;
  4447. max-width: 100%;
  4448. }
  4449. .test_title .right .data_box {
  4450. margin-right: 15px;
  4451. width: 150px;
  4452. border: 1px solid #e7e7e7;
  4453. border-radius: 5px;
  4454. padding: 0 10px;
  4455. height: 57px;
  4456. font-size: 14px;
  4457. color: #00000099;
  4458. display: flex;
  4459. justify-content: space-between;
  4460. align-items: center;
  4461. }
  4462. /* .test_title .right .data_box span:nth-child(1) {
  4463. }
  4464. .test_title .right .data_box span:nth-child(2) {
  4465. } */
  4466. .test_title .right .data_box span:nth-child(2) .big {
  4467. font-size: 22px;
  4468. }
  4469. .test_title .right .btn_box {
  4470. display: flex;
  4471. flex-direction: column;
  4472. width: 57px;
  4473. height: 57px;
  4474. background: #3681fc;
  4475. border-radius: 5px;
  4476. font-size: 14px;
  4477. cursor: pointer;
  4478. align-items: center;
  4479. justify-content: center;
  4480. color: #fff;
  4481. }
  4482. .test_title .right .btn_box span:nth-child(1) {
  4483. display: block;
  4484. width: 12px;
  4485. height: 14px;
  4486. margin-bottom: 5px;
  4487. background-image: url("../../../../assets/icon/test/icon_share.png");
  4488. background-size: 100% 100%;
  4489. }
  4490. /* .test_title .right .btn_box span:nth-child(2) {
  4491. } */
  4492. .search_nav {
  4493. border-bottom: 1px solid #e7e7e7;
  4494. width: 100%;
  4495. box-sizing: border-box;
  4496. padding: 0 15px 10px;
  4497. display: flex;
  4498. align-items: flex-end;
  4499. height: 50px;
  4500. }
  4501. .search_nav > .right {
  4502. display: flex;
  4503. align-items: center;
  4504. }
  4505. .search_nav > .right > span {
  4506. height: 24px;
  4507. font-size: 14px;
  4508. color: #000;
  4509. cursor: pointer;
  4510. position: relative;
  4511. }
  4512. .search_nav > .isDesktopRightCut {
  4513. display: flex;
  4514. justify-content: space-between;
  4515. width: 60%;
  4516. }
  4517. .search_nav > .right > span + span {
  4518. margin-left: 35px;
  4519. }
  4520. .search_nav > .right > span.active {
  4521. color: #3681fc;
  4522. font-weight: 600;
  4523. }
  4524. .search_nav > .right > span.active::before {
  4525. content: "";
  4526. position: absolute;
  4527. bottom: -10px;
  4528. width: 15px;
  4529. height: 3px;
  4530. background: #3681fc;
  4531. left: 50%;
  4532. transform: translateX(-50%);
  4533. }
  4534. .search_nav > .left {
  4535. display: flex;
  4536. align-items: center;
  4537. margin-left: auto;
  4538. }
  4539. .search_nav > .right > span.active2 {
  4540. color: #3681fc;
  4541. font-weight: 600;
  4542. }
  4543. .search_nav > .right > span.active2::before {
  4544. content: "";
  4545. position: absolute;
  4546. bottom: -10px;
  4547. width: 100%;
  4548. height: 3px;
  4549. background: #3681fc;
  4550. left: 50%;
  4551. transform: translateX(-50%);
  4552. }
  4553. .student_input >>> .el-input__inner {
  4554. height: 40px;
  4555. width: 190px;
  4556. font-size: 13px;
  4557. padding: 0 35px 0 10px;
  4558. }
  4559. .serach_icon {
  4560. position: absolute;
  4561. right: 12px;
  4562. top: 50%;
  4563. transform: translateY(-50%);
  4564. width: 13px;
  4565. height: 13px;
  4566. background: url("../../../../assets/icon/test/test_search.png") no-repeat;
  4567. background-size: 100% 100%;
  4568. cursor: pointer;
  4569. }
  4570. .title_content {
  4571. padding-bottom: 10px;
  4572. }
  4573. .title_content > .title_box {
  4574. width: calc(100% - 48px);
  4575. margin: 20px auto 0;
  4576. }
  4577. .title_content > .title_box > .title {
  4578. font-size: 18px;
  4579. display: flex;
  4580. min-height: 35px;
  4581. white-space: pre-line;
  4582. position: relative;
  4583. }
  4584. .title_content > .title_box > .title > .test_icon {
  4585. min-width: 20px;
  4586. height: 20px;
  4587. }
  4588. .title_content > .title_box > .detail {
  4589. font-size: 14px;
  4590. color: #00000099;
  4591. margin-top: 8px;
  4592. white-space: pre-line;
  4593. }
  4594. .title_content > .title_box > .content1 {
  4595. display: flex;
  4596. width: 100%;
  4597. margin-top: 10px;
  4598. }
  4599. .title_content > .title_box > .content1 >>> .el-progress__text {
  4600. color: #3681fc;
  4601. min-width: 55px;
  4602. font-size: 16px !important;
  4603. }
  4604. .title_content > .title_box > .content1 > .left {
  4605. width: calc(100% - 620px);
  4606. border: 1px solid #e7e7e7;
  4607. }
  4608. .title_content > .title_box > .content1 > .left > div + div {
  4609. border-top: 1px solid #e7e7e7;
  4610. }
  4611. .title_content > .title_box > .content1 > .left > .title,
  4612. .title_content > .title_box > .content1 > .left > .data {
  4613. display: flex;
  4614. height: 40px;
  4615. align-items: center;
  4616. width: 100%;
  4617. padding: 0 15px;
  4618. box-sizing: border-box;
  4619. line-height: 16px;
  4620. }
  4621. .title_content > .title_box > .content1 > .left > .title > span,
  4622. .title_content > .title_box > .content1 > .left > .data > span {
  4623. overflow: hidden;
  4624. text-overflow: ellipsis;
  4625. white-space: nowrap;
  4626. }
  4627. .title_content > .title_box > .content1 > .left > .title > span:nth-child(1),
  4628. .title_content > .title_box > .content1 > .left > .data > span:nth-child(1) {
  4629. width: calc(100% - 320px - 110px);
  4630. }
  4631. .title_content > .title_box > .content1 > .left > .title > span:nth-child(2),
  4632. .title_content > .title_box > .content1 > .left > .data > span:nth-child(2) {
  4633. width: 110px;
  4634. }
  4635. .title_content > .title_box > .content1 > .left > .title > span:nth-child(3),
  4636. .title_content > .title_box > .content1 > .left > .data > span:nth-child(3) {
  4637. width: 320px;
  4638. }
  4639. .isDesktopTitle {
  4640. display: flex;
  4641. justify-content: space-around;
  4642. }
  4643. .isDesktopTitle > div {
  4644. width: 60px;
  4645. height: 30px;
  4646. line-height: 30px;
  4647. overflow: hidden;
  4648. white-space: nowrap;
  4649. text-overflow: ellipsis;
  4650. }
  4651. /* .isDesktopTitle:nth-child(1){
  4652. width: 60px;
  4653. }
  4654. .isDesktopTitle:nth-child(2){
  4655. width: 60px;
  4656. }
  4657. .isDesktopTitle:nth-child(3){
  4658. flex: 1;
  4659. } */
  4660. .title_content > .title_box > .content1 > .left > .title {
  4661. font-weight: 700;
  4662. background: #f9fafb;
  4663. }
  4664. .title_content > .title_box > .content1 > .right {
  4665. width: 600px;
  4666. margin-left: 20px;
  4667. border: 1px solid #e7e7e7;
  4668. min-height: 300px;
  4669. box-sizing: border-box;
  4670. }
  4671. .title_content > .title_box > .content2 {
  4672. display: flex;
  4673. width: 100%;
  4674. margin-top: 10px;
  4675. }
  4676. .title_content > .title_box > .content2 > .left {
  4677. width: calc(100% - 620px);
  4678. border: 1px solid #e7e7e7;
  4679. box-sizing: border-box;
  4680. }
  4681. .title_content > .title_box > .content2 > .left > div + div {
  4682. border-top: 1px solid #e7e7e7;
  4683. }
  4684. .title_content > .title_box > .content2 > .left > .title,
  4685. .title_content > .title_box > .content2 > .left > .data {
  4686. display: flex;
  4687. height: 40px;
  4688. align-items: center;
  4689. width: 100%;
  4690. padding: 0 15px;
  4691. box-sizing: border-box;
  4692. line-height: 16px;
  4693. }
  4694. .title_content > .title_box > .content2 > .left > .title > span,
  4695. .title_content > .title_box > .content2 > .left > .data > span {
  4696. overflow: hidden;
  4697. text-overflow: ellipsis;
  4698. white-space: nowrap;
  4699. }
  4700. .title_content > .title_box > .content2 > .left > .title > span:nth-child(1),
  4701. .title_content > .title_box > .content2 > .left > .data > span:nth-child(1) {
  4702. width: 55px;
  4703. }
  4704. .title_content > .title_box > .content2 > .left > .title > span:nth-child(2),
  4705. .title_content > .title_box > .content2 > .left > .data > span:nth-child(2) {
  4706. width: 110px;
  4707. }
  4708. .title_content > .title_box > .content2 > .left > .title > span:nth-child(3),
  4709. .title_content > .title_box > .content2 > .left > .data > span:nth-child(3) {
  4710. max-width: calc(100% - 110px - 55px);
  4711. }
  4712. .title_content > .title_box > .content2 > .left > .title {
  4713. font-weight: 700;
  4714. background: #f9fafb;
  4715. }
  4716. .title_content > .title_box > .content2 > .right {
  4717. width: 600px;
  4718. margin-left: 20px;
  4719. border: 1px solid #e7e7e7;
  4720. box-sizing: border-box;
  4721. }
  4722. .title_content > .title_box > .content2 > .right >>> .wordCloud {
  4723. height: auto;
  4724. min-height: 300px;
  4725. }
  4726. .title_content > .title_box > .content3 {
  4727. display: flex;
  4728. width: 100%;
  4729. overflow: auto;
  4730. }
  4731. .title_content > .title_box > .content3 > .file {
  4732. min-width: 200px;
  4733. width: 200px;
  4734. height: 140px;
  4735. margin: 10px 10px 10px 0px;
  4736. border-radius: 15px;
  4737. box-shadow: rgb(223, 218, 218) 0px 0px 6px 1px;
  4738. overflow: hidden;
  4739. margin-right: 15px;
  4740. position: relative;
  4741. display: flex;
  4742. flex-direction: column;
  4743. }
  4744. .title_content > .title_box > .content3 > .file > .img {
  4745. width: 100%;
  4746. height: calc(100% - 35px);
  4747. object-fit: cover;
  4748. cursor: pointer;
  4749. }
  4750. .title_content > .title_box > .content3 > .file > .del {
  4751. position: absolute;
  4752. width: 25px;
  4753. top: 10px;
  4754. right: 10px;
  4755. cursor: pointer;
  4756. }
  4757. .title_content > .title_box > .content3 > .file > .download {
  4758. position: absolute;
  4759. width: 25px;
  4760. top: 10px;
  4761. right: 35px;
  4762. cursor: pointer;
  4763. opacity: 0.8;
  4764. }
  4765. .title_content > .title_box > .content3 > .file > .name {
  4766. height: 35px;
  4767. width: 100%;
  4768. background: #f9f9f9;
  4769. display: flex;
  4770. align-items: center;
  4771. padding: 0 10px;
  4772. box-sizing: border-box;
  4773. }
  4774. .title_content > .title_box > .content3 > .file > .name > span {
  4775. display: block;
  4776. text-overflow: ellipsis;
  4777. max-width: 100%;
  4778. white-space: nowrap;
  4779. overflow: hidden;
  4780. }
  4781. .table_content {
  4782. /* width: calc(100% - 48px);
  4783. margin: 20px auto 0; */
  4784. padding: 20px 24px;
  4785. width: 100%;
  4786. box-sizing: border-box;
  4787. }
  4788. .table_content >>> .el-table td {
  4789. padding: 5px 0;
  4790. }
  4791. .isDesktopTable_content {
  4792. width: 100%;
  4793. }
  4794. .isDTitle {
  4795. display: flex;
  4796. justify-content: space-between;
  4797. }
  4798. .isDBri {
  4799. display: flex;
  4800. padding: 15px 0;
  4801. font-size: 14px;
  4802. color: rgba(0, 0, 0, 0.4);
  4803. flex-direction: column;
  4804. height: 80px;
  4805. justify-content: space-between;
  4806. }
  4807. .answer_type {
  4808. background: #f0f2f5;
  4809. padding: 5px 10px;
  4810. display: block;
  4811. border-radius: 3px;
  4812. margin: 5px;
  4813. }
  4814. .table_file > .file {
  4815. min-width: 100px;
  4816. width: 100px;
  4817. height: 70px;
  4818. margin: 10px 10px 10px 0px;
  4819. border-radius: 5px;
  4820. box-shadow: rgb(223, 218, 218) 0px 0px 6px 1px;
  4821. overflow: hidden;
  4822. margin-right: 15px;
  4823. position: relative;
  4824. display: flex;
  4825. flex-direction: column;
  4826. }
  4827. .table_file > .file > .img {
  4828. width: 100%;
  4829. height: calc(100% - 20px);
  4830. object-fit: cover;
  4831. cursor: pointer;
  4832. }
  4833. .table_file > .file > .del {
  4834. position: absolute;
  4835. width: 25px;
  4836. top: 10px;
  4837. right: 10px;
  4838. cursor: pointer;
  4839. }
  4840. .table_file > .file > .download {
  4841. position: absolute;
  4842. width: 25px;
  4843. top: 10px;
  4844. right: 35px;
  4845. cursor: pointer;
  4846. opacity: 0.8;
  4847. }
  4848. .table_file > .file > .name {
  4849. height: 20px;
  4850. width: 100%;
  4851. background: #f9f9f9;
  4852. display: flex;
  4853. align-items: center;
  4854. padding: 0 10px;
  4855. box-sizing: border-box;
  4856. font-size: 12px;
  4857. }
  4858. .table_file > .file > .name > span {
  4859. display: block;
  4860. text-overflow: ellipsis;
  4861. max-width: 100%;
  4862. white-space: nowrap;
  4863. overflow: hidden;
  4864. }
  4865. .btnA {
  4866. color: #fff;
  4867. background-color: #0061ff;
  4868. padding: 0 24px;
  4869. font-size: 14px;
  4870. min-width: 64px;
  4871. font-weight: 500;
  4872. border-radius: 4px;
  4873. box-sizing: border-box;
  4874. border: none;
  4875. cursor: pointer;
  4876. transition: all 0.2s ease-in-out;
  4877. height: 36px;
  4878. display: flex;
  4879. align-items: center;
  4880. justify-content: center;
  4881. line-height: 1;
  4882. margin-right: 10px;
  4883. position: relative;
  4884. }
  4885. .buttonBox {
  4886. position: absolute;
  4887. bottom: -0;
  4888. transform: translateY(100%);
  4889. background: #fff;
  4890. border-radius: 5px;
  4891. box-shadow: 0 0 3px 1px #e3e3e3;
  4892. width: 100%;
  4893. z-index: 999;
  4894. }
  4895. .buttonBox > div {
  4896. height: 40px;
  4897. line-height: 40px;
  4898. width: 100%;
  4899. text-align: center;
  4900. color: #000;
  4901. box-sizing: border-box;
  4902. }
  4903. .buttonBox > div + div {
  4904. border-top: 1px solid #e0e0e0;
  4905. }
  4906. .buttonBox > div:hover {
  4907. background: #f6f8ff;
  4908. }
  4909. .content4 {
  4910. width: 100%;
  4911. height: auto;
  4912. display: flex;
  4913. flex-wrap: nowrap;
  4914. overflow: auto;
  4915. }
  4916. .out_box {
  4917. display: flex;
  4918. flex-direction: column;
  4919. flex-wrap: nowrap;
  4920. /* width: 200px; */
  4921. min-width: 280px;
  4922. width: 280px;
  4923. background: #fff;
  4924. /* background-color: white; */
  4925. margin-right: 15px;
  4926. /* border: 1px solid #ccc; */
  4927. height: fit-content;
  4928. box-sizing: border-box;
  4929. border-radius: 0px 0px 5px 5px;
  4930. /* overflow: hidden; */
  4931. margin-bottom: 15px;
  4932. position: relative;
  4933. border-radius: 8px;
  4934. box-sizing: border-box;
  4935. overflow: hidden;
  4936. border: 1px solid #3682fc00;
  4937. cursor: pointer;
  4938. border: 1px solid #6a9ff5;
  4939. height: auto;
  4940. }
  4941. .out_boxActive {
  4942. box-sizing: border-box;
  4943. border: 3px solid #3681fc !important;
  4944. }
  4945. .out_box:hover {
  4946. border: 1px solid #3681fc;
  4947. }
  4948. .bottom_box {
  4949. width: 100%;
  4950. display: flex;
  4951. padding: 10px;
  4952. flex-direction: column;
  4953. box-sizing: border-box;
  4954. height: 121px;
  4955. flex-wrap: nowrap;
  4956. justify-content: space-evenly;
  4957. }
  4958. .bottom_box > div:nth-child(1) {
  4959. width: 100%;
  4960. /* overflow: hidden;
  4961. text-overflow: ellipsis;
  4962. white-space: nowrap;
  4963. font-weight: bold; */
  4964. display: flex;
  4965. align-items: center;
  4966. justify-content: space-between;
  4967. }
  4968. .bottom_box > div:nth-child(1) > span:nth-child(1) {
  4969. max-width: 100%;
  4970. overflow: hidden;
  4971. text-overflow: ellipsis;
  4972. white-space: nowrap;
  4973. font-weight: bold;
  4974. }
  4975. .bottom_box > div:nth-child(1) > span:nth-child(2) {
  4976. min-width: fit-content;
  4977. font-size: 14px;
  4978. color: #8c8c8c;
  4979. }
  4980. .tup {
  4981. width: 100%;
  4982. height: auto;
  4983. margin: 0 auto;
  4984. overflow: hidden;
  4985. display: flex;
  4986. flex-direction: column;
  4987. align-items: center;
  4988. padding: 10px;
  4989. box-sizing: border-box;
  4990. }
  4991. .tup > img {
  4992. width: 100%;
  4993. /* height: 100%; */
  4994. height: 150px;
  4995. /* object-fit: cover; */
  4996. object-fit: contain;
  4997. }
  4998. .kc_time {
  4999. margin-top: 8px;
  5000. font-size: 14px;
  5001. color: #717c8d;
  5002. }
  5003. .kc_time + .kc_time {
  5004. margin-top: 0;
  5005. }
  5006. .kc_t {
  5007. margin-top: 5px;
  5008. width: 100%;
  5009. white-space: nowrap;
  5010. overflow: hidden;
  5011. text-overflow: ellipsis;
  5012. display: flex;
  5013. align-items: center;
  5014. justify-content: space-between;
  5015. }
  5016. .kc_t > span:nth-child(1) {
  5017. max-width: 100%;
  5018. overflow: hidden;
  5019. text-overflow: ellipsis;
  5020. white-space: nowrap;
  5021. }
  5022. .kc_t > span:nth-child(2) {
  5023. min-width: fit-content;
  5024. font-size: 14px;
  5025. color: #8c8c8c;
  5026. }
  5027. .title_box > .title > .title_downBtn {
  5028. position: absolute;
  5029. right: 10px;
  5030. top: 0;
  5031. }
  5032. .fileLoadDiv >>> .el-dialog__header {
  5033. display: none;
  5034. }
  5035. .fileLoadDiv >>> .el-dialog__body {
  5036. display: flex;
  5037. justify-content: center;
  5038. }
  5039. .fileLoadDiv >>> .el-dialog {
  5040. margin-top: 60vh !important;
  5041. width: 200px !important;
  5042. height: 80px;
  5043. display: flex;
  5044. justify-content: center;
  5045. align-items: center;
  5046. border-radius: 15px;
  5047. }
  5048. .mask {
  5049. background-color: rgb(0 0 0 / 30%);
  5050. /* position: fixed; */
  5051. position: absolute;
  5052. top: 0;
  5053. left: 0;
  5054. width: 100%;
  5055. height: 100%;
  5056. z-index: 90;
  5057. display: flex;
  5058. align-items: center;
  5059. justify-content: center;
  5060. }
  5061. .progressBox {
  5062. width: 300px;
  5063. height: 150px;
  5064. background: #fff;
  5065. border-radius: 10px;
  5066. box-shadow: 0 0 6px 1px #bfbfbf;
  5067. display: flex;
  5068. align-items: center;
  5069. justify-content: center;
  5070. flex-direction: column;
  5071. position: relative;
  5072. color: #6c6c6c;
  5073. }
  5074. .progressBox >>> .el-progress-bar__outer {
  5075. background-color: #d1dfff !important;
  5076. }
  5077. .progressBox .lbox {
  5078. height: 50px;
  5079. font-size: 19px;
  5080. display: flex;
  5081. align-items: center;
  5082. color: #747474;
  5083. }
  5084. .progressBox .lbox img {
  5085. width: 40px;
  5086. margin-right: 20px;
  5087. }
  5088. .boxSticky {
  5089. position: sticky;
  5090. top: 0;
  5091. z-index: 999;
  5092. background: #fff;
  5093. }
  5094. .aiBoxRight {
  5095. height: calc(100% - 158px - 46px);
  5096. width: 500px;
  5097. margin: 0 auto;
  5098. position: fixed;
  5099. z-index: 999;
  5100. right: 30px;
  5101. bottom: 10px;
  5102. box-shadow: 0 0 5px 2px #00000045;
  5103. border-radius: 5px;
  5104. overflow: hidden;
  5105. }
  5106. .tableDatePicker {
  5107. width: 20px;
  5108. height: 20px;
  5109. margin-left: 5px;
  5110. }
  5111. .tableDatePicker >>> .el-date-editor {
  5112. width: 100% !important;
  5113. height: 100% !important;
  5114. padding: 0 !important;
  5115. cursor: pointer;
  5116. background: none;
  5117. border: none;
  5118. }
  5119. .tableDatePicker >>> .el-date-editor > i {
  5120. display: none;
  5121. }
  5122. .tableDatePicker >>> .el-date-editor > input {
  5123. display: none;
  5124. }
  5125. .tableDatePicker >>> .el-date-editor > span {
  5126. width: 100%;
  5127. height: 100%;
  5128. display: flex;
  5129. justify-content: center;
  5130. align-items: center;
  5131. color: #9095a7;
  5132. }
  5133. .tableDatePicker >>> .el-date-editor > .el-range__close-icon {
  5134. display: block;
  5135. position: relative;
  5136. top: -6px;
  5137. color: red;
  5138. }
  5139. .paging{
  5140. width: 100%;
  5141. height: 40px;
  5142. display: flex;
  5143. justify-content: flex-end;
  5144. align-items: center;
  5145. margin-top:auto ;
  5146. }
  5147. .noWordCloud{
  5148. width: 100%;
  5149. height: 100%;
  5150. min-height: 300px;
  5151. display: flex;
  5152. justify-content: center;
  5153. align-items: center;
  5154. }
  5155. .noWordCloud>div{
  5156. display: flex;
  5157. align-items: center;
  5158. }
  5159. .noWordCloud>div>img{
  5160. width: 40px;
  5161. height: 40px;
  5162. margin-left: 5px;
  5163. }
  5164. .timePickerActive{
  5165. color: #409EFF;
  5166. }
  5167. .openCeBox{
  5168. width: 320px;
  5169. display: flex;
  5170. flex-direction: column;
  5171. gap: 10px;
  5172. font-size: 14px !important;
  5173. padding: 10px;
  5174. box-sizing: border-box;
  5175. }
  5176. .TopTit{
  5177. font-family: PingFang SC;
  5178. font-weight: 600;
  5179. font-size: 16px;
  5180. line-height: 24px;
  5181. color: #000;
  5182. }
  5183. .Topkong{
  5184. font-family: PingFang SC;
  5185. font-weight: 400;
  5186. font-size: 12px;
  5187. color: #000;
  5188. display: flex;
  5189. align-items: center;
  5190. gap: 5px;
  5191. cursor: pointer;
  5192. }
  5193. .BtnOPC{
  5194. width: 50px;height: 30px;font-size: 14px;display: flex;
  5195. justify-content: center;
  5196. align-items: center;
  5197. background: #E7E7E7;
  5198. }
  5199. .quoteBlock{
  5200. position: absolute;
  5201. right: 0;
  5202. width: 220px;
  5203. background: #fff;
  5204. border-radius: 10px;
  5205. color: #000;
  5206. z-index: 100001;
  5207. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 浅灰色阴影 */
  5208. border-radius: 5px;overflow: hidden;
  5209. }
  5210. .quoteBlock >>> .el-input__inner{
  5211. border-radius: 0 !important;
  5212. border: none !important;
  5213. box-shadow: none !important;
  5214. resize: none !important;
  5215. border-bottom: 1px #DCDFE6 solid !important;
  5216. }
  5217. .quoteBlockCon{
  5218. padding: 10px 10px;box-sizing: border-box;
  5219. display: flex;
  5220. flex-direction: column;
  5221. gap: 8px;
  5222. font-size: 14px;
  5223. height: 200px;
  5224. overflow: auto;
  5225. }
  5226. .quoteBlockCon > div{
  5227. height: 25px;line-height: 25px;
  5228. cursor: pointer;
  5229. padding: 0 5px;
  5230. box-sizing: border-box;
  5231. border-radius: 5px;
  5232. }
  5233. .maskCss{
  5234. /* background: #000; */
  5235. position: fixed;
  5236. top: 0;
  5237. left: 0;
  5238. width: 100%;
  5239. height: 100%;
  5240. z-index: 10000;
  5241. opacity: .5;
  5242. }
  5243. .SPCE{
  5244. font-size: 12px;
  5245. background: #fff;
  5246. padding: 2px 5px;box-sizing: border-box;
  5247. border-radius: 3px;
  5248. }
  5249. .selCss{
  5250. background: #e7e7e7;
  5251. color:#0061ff;
  5252. }
  5253. .proBar{
  5254. background: #dae0f0;
  5255. font-size: 14px;
  5256. font-weight: normal;
  5257. color: #6f93ea;
  5258. padding: 4px;
  5259. border-radius: 3px;
  5260. }
  5261. </style>