addCourse3.vue 633 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933
  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" :style="{width:promptShow ? 'calc(100% - 300px)' : '100%'}">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <!-- @mouseenter="stepDisplay(true)"
  28. @mouseleave="stepDisplay(false)" -->
  29. <div ref="stepBox" class="stepBox">
  30. <div class="stepBg" v-if="false">
  31. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }">
  32. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  33. <div>
  34. <img src="../../../assets/icon/first.png" alt />
  35. </div>
  36. <div>填写基本信息</div>
  37. </div>
  38. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  39. <div>
  40. <img src="../../../assets/icon/firstNo.png" alt />
  41. </div>
  42. <div>填写基本信息</div>
  43. </div>
  44. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay">
  45. </div>
  46. <!-- <div
  47. v-if="steps > 1 && cidType === 0 && isStepDisplay"
  48. class="second"
  49. @click="navSteps(2)"
  50. >
  51. <div style="margin: 5px 10px 0 0; width: 2rem">
  52. <img src="../../../assets/icon/second.png" alt />
  53. </div>
  54. <div>选择课程模板</div>
  55. </div>
  56. <div
  57. v-else-if="cidType === 0 && isStepDisplay"
  58. class="secondNo"
  59. @click="navSteps(2)"
  60. >
  61. <div>
  62. <img src="../../../assets/icon/secondNo.png" alt />
  63. </div>
  64. <div>选择课程模板</div>
  65. </div> -->
  66. <!-- <div
  67. v-if="isStepDisplay"
  68. class="stepBorder"
  69. :class="{ 'border-active': steps > 2 }"
  70. ></div> -->
  71. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  72. <div>
  73. <img src="../../../assets/icon/third.png" alt />
  74. </div>
  75. <div>上传课程内容</div>
  76. </div>
  77. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  78. <div>
  79. <img src="../../../assets/icon/thirdNo.png" alt />
  80. </div>
  81. <div>上传课程内容</div>
  82. </div>
  83. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  84. <div v-if="steps > 3 && isStepDisplay" class="four">
  85. <div>
  86. <img src="../../../assets/icon/four.png" alt />
  87. </div>
  88. <div>上传完成</div>
  89. </div>
  90. <div v-else-if="isStepDisplay" class="fourNo">
  91. <div>
  92. <img src="../../../assets/icon/fourNo.png" alt />
  93. </div>
  94. <div>上传完成</div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="rightBox" :key="updateKey" ref='scrollContainer' v-if="steps == 1" @mousewheel="scrollChange"
  99. style="padding: 0" :style="{
  100. height:
  101. !isStepDisplay && !isBtnDisplay
  102. ? 'calc(100% - 20px)'
  103. : 'calc(100% - 100px)',
  104. }">
  105. <div class="updateMask" :style="{
  106. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  107. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  108. <div class="whiteBg" style="background: unset; padding: 0">
  109. <div>
  110. <div class="basic_box" style="padding: 0">
  111. <div class="big_box">
  112. <div class="left_first">
  113. <div :class="{
  114. updateTips:
  115. cid && userid != courseUserid && role != '1',
  116. }">
  117. <div style="width: 100%">
  118. <div class="course_input_box">
  119. <div class="bb_courseIcon">
  120. <img src="../../../assets/icon/new/course.png" />
  121. </div>
  122. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" style="
  123. border: 1.5px solid rgb(202, 209, 220);
  124. margin: 0px 10px 0px 0px;
  125. border-radius: 5px;
  126. font-weight: 600;
  127. padding: 12px 14px 12px 71px;
  128. " />
  129. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  130. style="justify-content: center; width: 200px"></el-switch>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  135. <span>类型</span>
  136. <!-- 学科+ 主题+ 未来+ -->
  137. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  138. style="display: flex; align-items: center">
  139. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2"
  140. :key="index">
  141. <el-radio :label="item.name">{{
  142. item.name
  143. }}</el-radio>
  144. </div>
  145. </el-radio-group>
  146. </div>
  147. <div class="both">
  148. <div class="choose">
  149. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  150. <span v-if="
  151. CourseTypeJson[item.id].length > 0 &&
  152. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  153. ? pTypeCheck.indexOf(item.id) != -1
  154. : true)
  155. ">{{ item.name }}:</span>
  156. <el-checkbox-group v-model="courseTypeId" v-if="
  157. CourseTypeJson[item.id].length > 0 &&
  158. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  159. ? pTypeCheck.indexOf(item.id) != -1
  160. : true)
  161. ">
  162. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  163. item1.name }}</el-checkbox>
  164. </el-checkbox-group>
  165. <!-- <div
  166. v-else
  167. style="font-size: 14px; margin-left: -8px"
  168. >
  169. 暂无
  170. </div> -->
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="right_first">
  176. <!-- <div class="ai_box">
  177. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  178. </div> -->
  179. <div class="c_info_title" style="padding: 0 0 15px; margin: 0 auto 0 0">
  180. 上传封面
  181. </div>
  182. <div style="width: 100%">
  183. <div class="uploadFm" @click="choosePicVisible = true" :class="{ uploadFm2: cover.length }">
  184. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0" />
  185. <img :src="cover[0].url" alt="" class="cover_p" v-else />
  186. <div v-if="cover.length == 0">点击添加封面</div>
  187. <div class="cover_mask">
  188. <img src="../../../assets/icon/new/cover_update.png" /><span
  189. style="margin-top: 5px">修改封面</span>
  190. </div>
  191. </div>
  192. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  193. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  194. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  195. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  196. <i class="el-icon-plus"></i>
  197. </el-upload> -->
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="whiteBg" style="background: #fff; margin: 10px 0;padding: 0 0 15px;">
  205. <div class="whiteBg" style="border-radius: 0">
  206. <div class="c_info_title">
  207. 课程权限设置
  208. </div>
  209. <div class="wb_j_box">
  210. <div class="wb_j_box_content">
  211. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  212. (dialogVisibleClass = true),
  213. (classSearch = ''),
  214. (gradeId = ''),
  215. getClass()
  216. ">添加班级</button>
  217. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  218. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  219. getClassC(tc) }}</span>
  220. </div> -->
  221. <div class="wb_j_box_btn" @click="
  222. (dialogVisibleClass = true),
  223. (classSearch = ''),
  224. (gradeId = ''),
  225. getClass()
  226. ">
  227. <div class="wb_j_box_title">授课班级</div>
  228. <div class="wb_j_box_btn_c">
  229. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  230. v-if="checkboxList2.length" popper-class="text_tooltip2">
  231. <div class="wb_j_box_span">
  232. {{ getListClassC(checkboxList2) }}
  233. </div>
  234. </el-tooltip>
  235. <div v-else class="wb_j_box_span">请选择授课班级</div>
  236. <div class="wb_j_box_arrow"></div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="wb_j_box_content">
  241. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  242. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  243. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  244. checkBoolean
  245. ? checkboxList3
  246. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  247. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  248. </div> -->
  249. <div class="wb_j_box_btn" @click="openMember">
  250. <div class="wb_j_box_title">协同人员</div>
  251. <div class="wb_j_box_btn_c">
  252. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  253. v-if="checkboxList3.length" popper-class="text_tooltip2">
  254. <div class="wb_j_box_span">
  255. {{ getListMan2(checkboxList3) }}
  256. </div>
  257. </el-tooltip>
  258. <div v-else class="wb_j_box_span">请选择协同人员</div>
  259. <div class="wb_j_box_arrow"></div>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px" v-if="false">
  266. <div class="c_info_title">目标管理</div>
  267. <div style="margin: 0 auto; padding: 0 20px">
  268. <div style="
  269. width: 95%;
  270. min-height: 200px;
  271. border: 1px solid #cad1dc;
  272. border-radius: 4px;
  273. position: relative;
  274. ">
  275. <div class="e_add_top">
  276. <div class="e_add_title">
  277. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()" v-if="evalua">
  278. 清除
  279. </button>
  280. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">
  281. 添加
  282. </button>
  283. <!-- <span>当前使用目标管理</span>
  284. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  285. <img
  286. src="../../../assets/line.png"
  287. class="cru_line"
  288. style="
  289. width: 125px;
  290. height: 20px;
  291. bottom: -10px;
  292. left: 155px;
  293. "
  294. /> -->
  295. </div>
  296. <div style="
  297. display: flex;
  298. flex-direction: row;
  299. align-items: center;
  300. ">
  301. <!-- <el-button
  302. type="primary"
  303. size="small"
  304. @click="dialogVisiblemb = true"
  305. >添加目标管理</el-button
  306. >
  307. <el-button
  308. type="primary"
  309. size="small"
  310. @click="deleteEva()"
  311. >清除内容</el-button
  312. > -->
  313. <!-- <div class="e_add_delete" @click="deleteEva()">
  314. <img src="../../../assets/icon/delete.png" alt="" />
  315. </div> -->
  316. </div>
  317. </div>
  318. <div v-if="evalua == ''">
  319. <div class="noneBox">
  320. <img src="../../../assets/icon/new/eva_none.png" />
  321. <span>请添加目标管理</span>
  322. </div>
  323. </div>
  324. <div class="e_add_content" v-else>
  325. <div class="e_add_list_pbox">
  326. <div class="e_add_list_pbox_title">
  327. <span class="type_title">切换模式</span>
  328. <div class="type_content">
  329. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  330. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  331. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  332. </div>
  333. </div>
  334. <div class="e_add_list_pbox_content">
  335. <Mind :showBar="false" :mindData="data" v-if="typeMode == 1"></Mind>
  336. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  337. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  338. v-if="typeMode == 3">
  339. </SeeBoard>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. </div>
  346. </div>
  347. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="textLoading">
  348. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  349. <div class="c_info_title">
  350. 课程简要描述
  351. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
  352. @contextmenu.prevent="openAiDialog(1, 'aiDetail')"
  353. @click="openAiDialog(2, 'aiDetail')">AI优化</button>
  354. </div>
  355. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  356. <div style="width: calc(100%)">
  357. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
  358. placeholder="请输入课程简要描述"></textarea>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;">
  364. <!-- <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  365. <div class="c_info_title">
  366. 补充资料
  367. <button class="c_pub_button_add pub_btn_add_img" style="margin: 0 20px 0 auto;">上传补充资料</button>
  368. </div>
  369. <div class="buchong_box">
  370. <span>暂时还没有内容,快去添加吧~</span>
  371. </div>
  372. </div> -->
  373. <div style="position: relative;
  374. background: #fff;
  375. box-sizing: border-box;
  376. padding: 1px 20px 10px;
  377. width: 100%;
  378. border-radius: 10px;">
  379. <div style="
  380. display: flex;
  381. flex-direction: row;
  382. justify-content: space-between;
  383. align-items: center;
  384. " :style="{
  385. margin: true
  386. ? '20px 0 10px'
  387. : '20px 0 0',
  388. }">
  389. <div style="margin-bottom: 10px;width:100%" class="lineTitle">
  390. 补充资料
  391. <div class="add_info_box" style="margin: 0 0 0 auto">
  392. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  393. 上传补充资料
  394. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  395. beforeUploadInfo2(
  396. $event,
  397. 13
  398. )
  399. " />
  400. </button>
  401. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  402. 图文
  403. </button>
  404. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  405. 链接
  406. </button>
  407. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  408. 代码
  409. </button>
  410. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  411. 资源
  412. </button> -->
  413. </div>
  414. </div>
  415. </div>
  416. <div>
  417. <div class="add_chapters_box add_c_none" v-if="
  418. infoData &&
  419. infoData.length == 0
  420. ">
  421. <img src="../../../assets/icon/new/c_none.png" alt /><span>暂时还没有内容,快去添加吧</span>
  422. </div>
  423. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  424. <div @dragstart="
  425. dragStart(item1, index1, 0)
  426. " @dragover.prevent="
  427. dragOver(index1, 0)
  428. " @dragend="dragEnd()" :draggable="isdrag ==
  429. 'chapter-' + 0 + '-' + index1
  430. " class="chapter_upload" v-for="(item1, index1) in infoData" :key="item1.id" @click="
  431. getChapterData(
  432. $event,
  433. index1,
  434. item1.type
  435. )
  436. " :class="{
  437. dragOverTop2:
  438. newIndex === index1 &&
  439. typeIndex ==
  440. 'chapter-' +
  441. 0 +
  442. '-' +
  443. index1 &&
  444. oldIndex > index1 &&
  445. dragType == 'drag',
  446. dragOverBottom2:
  447. newIndex === index1 &&
  448. typeIndex ==
  449. 'chapter-' +
  450. 0 +
  451. '-' +
  452. index1 &&
  453. oldIndex < index1 &&
  454. dragType == 'drag',
  455. }">
  456. <!-- <div @mousedown="
  457. isdrag =
  458. 'chapter-' + 0 + '-' + index1
  459. " @mouseup="isdrag = ''" @touchstart="
  460. isdrag =
  461. 'chapter-' + 0 + '-' + index1
  462. " @touchend="isdrag = ''" class="chapter_upload_drag"></div> -->
  463. <div class="chapter_upload_o" style="
  464. position: relative;
  465. display: flex;
  466. align-items: center;
  467. ">
  468. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  469. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  470. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  471. </div>
  472. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  473. </div>
  474. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  475. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  476. </div>
  477. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  478. </div>
  479. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  480. </div>
  481. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  482. </div>
  483. </div>
  484. <div class="chapter_upload_n">
  485. <input readonly="true" v-if="
  486. item1.type == 2 ||
  487. item1.type == 3 ||
  488. item1.type == 12 ||
  489. item1.type == 13 ||
  490. item1.type == 7
  491. " :placeholder="item1.name" @click="
  492. updataVideoT(
  493. $event,
  494. index1
  495. )
  496. " style="
  497. border: none;
  498. outline: none;
  499. width: 80%;
  500. minwidth: 215px;
  501. z-index: 99;
  502. font-size: 14px;
  503. white-space: nowrap;
  504. overflow: hidden;
  505. text-overflow: ellipsis;
  506. " />
  507. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  508. border: none;
  509. outline: none;
  510. width: 80%;
  511. white-space: nowrap;
  512. overflow: hidden;
  513. text-overflow: ellipsis;
  514. " readonly="true" @click="
  515. selectAttText(index1)
  516. " />
  517. <input :placeholder="item1.title ? item1.title : '链接'
  518. " v-if="item1.type == 8" style="
  519. border: none;
  520. outline: none;
  521. width: 80%;
  522. white-space: nowrap;
  523. overflow: hidden;
  524. text-overflow: ellipsis;
  525. " readonly="true" @click="selectLine(index1)" />
  526. <input :placeholder="item1.title ? item1.title : '链接'
  527. " v-if="item1.type == 14" style="
  528. border: none;
  529. outline: none;
  530. width: 80%;
  531. white-space: nowrap;
  532. overflow: hidden;
  533. text-overflow: ellipsis;
  534. " readonly="true" @click="
  535. openUpdateSource(index1)
  536. " />
  537. </div>
  538. <div class="chapter_upload_ic">
  539. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  540. <!-- <div class="chapter_upload_ud" style="z-index: 99">
  541. <div class="chapter_upload_up" @click="
  542. upCd(
  543. $event,
  544. index1
  545. )
  546. "></div>
  547. <div class="chapter_upload_down" @click="
  548. downCd(
  549. $event,
  550. index1
  551. )
  552. "></div>
  553. </div>
  554. <div class="chapter_upload_ic_edit" v-if="
  555. item1.type == 2 ||
  556. item1.type == 3 ||
  557. item1.type == 12 ||
  558. item1.type == 13 ||
  559. item1.type == 7
  560. " @click.stop="
  561. updataVideoT(
  562. $event,
  563. index1
  564. )
  565. ">
  566. <div></div>
  567. </div>
  568. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  569. selectAttText(index1)
  570. ">
  571. <div></div>
  572. </div>
  573. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  574. @click="selectLine(index1)">
  575. <div></div>
  576. </div>
  577. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  578. openUpdateSource(index1)
  579. ">
  580. <div></div>
  581. </div> -->
  582. <div class="chapter_upload_ic_r" @click.stop="
  583. deleteInfoData(
  584. $event,
  585. index1
  586. )
  587. ">
  588. <div></div>
  589. </div>
  590. </div>
  591. </div>
  592. </div>
  593. </div>
  594. </div>
  595. <div v-if="
  596. infoproVisible
  597. " class="mask">
  598. <div class="progressBox">
  599. <!-- <div id="closePro" class="closeCss">
  600. <img src="../../../../assets/icon/close.png" alt />
  601. </div> -->
  602. <div class="lbox">
  603. <img src="../../../assets/loading.gif" />上传中,请稍后
  604. </div>
  605. <div style="margin-bottom: 10px">
  606. <span>{{
  607. infoisFinishSize
  608. }}M</span>
  609. /
  610. <span>{{
  611. infoisAllSize
  612. }}M</span>
  613. </div>
  614. <el-progress :text-inside="true" :stroke-width="20" :percentage="infoprogress
  615. ? infoprogress
  616. : 0
  617. " style="width: 80%"></el-progress>
  618. </div>
  619. </div>
  620. </div>
  621. </div>
  622. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="false">
  623. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  624. <div class="c_info_title">
  625. 补充描述
  626. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  627. </div>
  628. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  629. <div style="width: calc(100%)">
  630. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText2"
  631. placeholder="请输入课程补充描述:例如您期望的课程时长、任务数量、任务难度、任务类型等。"></textarea>
  632. </div>
  633. </div>
  634. </div>
  635. </div>
  636. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="isOutline">
  637. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  638. <div class="c_info_title">
  639. 课程大纲
  640. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  641. </div>
  642. <div class="task_outline">
  643. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  644. <div class="outline_task">
  645. <div class="title">任务{{ index + 1 }}</div>
  646. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  647. v-model="item.task" />
  648. </div>
  649. <div class="outline_detail" v-loading="taskDetailLoading.indexOf('task-' + index) !== -1">
  650. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  651. placeholder="请输入任务描述" v-model="item.taskDetail2"></textarea>
  652. <div class="op_box">
  653. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  654. <div class="r_pub_button_op"
  655. @contextmenu.prevent="openAiDialog(1, 'aiDetail1', item.taskDetail2, index)"
  656. @click="openAiDialog(2, 'aiDetail1', item.taskDetail2, index)">智能优化</div>
  657. </div>
  658. </div>
  659. </div>
  660. </div>
  661. </div>
  662. </div>
  663. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="isOutline2">
  664. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  665. <div class="c_info_title">
  666. 教案
  667. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  668. </div>
  669. <div class="task_outline">
  670. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  671. <div class="outline_task">
  672. <div class="title">任务{{ index + 1 }}</div>
  673. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  674. v-model="item.task" />
  675. </div>
  676. <div class="outline_detail" v-loading="taskDetailLoading5.indexOf('task-' + index) !== -1">
  677. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入教案"
  678. v-model="item.taskDetail3"></textarea>
  679. <div class="op_box">
  680. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  681. <div class="r_pub_button_op"
  682. @contextmenu.prevent="openAiDialog(1, 'teacherDetail', item.taskDetail3, index)"
  683. @click="openAiDialog(2, 'teacherDetail', item.taskDetail3, index)">智能优化</div>
  684. </div>
  685. </div>
  686. </div>
  687. </div>
  688. </div>
  689. </div>
  690. <div class="info_btnBox3">
  691. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  692. goTo(
  693. '/course?userid=' +
  694. userid +
  695. '&oid=' +
  696. oid +
  697. '&org=' +
  698. org +
  699. '&role=' +
  700. role
  701. )
  702. ">
  703. 返回课程
  704. </button>
  705. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  706. {{ steps == 4 ? "返回课程" : "上一步" }}
  707. </button>
  708. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps(2)"
  709. @contextmenu.prevent="nextSteps(1)" :class="{
  710. pub_btn_next_img: steps != 3,
  711. pub_btn_finish_img: steps == 3,
  712. }">
  713. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : !isOutline2 ? "生成教案" : "下一步" }}
  714. </button>
  715. </div>
  716. </div>
  717. <div class="rightBox" v-if="steps == 2" :style="{
  718. height:
  719. !isStepDisplay && !isBtnDisplay
  720. ? 'calc(100% - 40px)'
  721. : 'calc(100% - 100px)',
  722. }">
  723. <div class="basic_box" style="
  724. padding: 20px 30px 0px !important;
  725. box-sizing: border-box;
  726. height: calc(100% - 80px);
  727. overflow: auto;
  728. background: #fff;
  729. ">
  730. <!-- <div
  731. style="
  732. color: #b8b8b8;
  733. background: #fff;
  734. width: 26%;
  735. height: 40px;
  736. border-radius: 15px;
  737. padding-left: 20px;
  738. line-height: 40px;
  739. font-size: 17px;
  740. box-shadow: 0px 1px 2px 2px #e0e0e0;
  741. "
  742. >-->
  743. <div class="right_title" style="border: none; margin: 0; padding: 0">
  744. 请选择合适的课程模板
  745. </div>
  746. <div class="wordbox">
  747. <div class="wordTeacher" @click="checkTemplate2()">
  748. <div class="wordPic">
  749. <img src="../../../assets/icon/new/template_none.png" alt />
  750. </div>
  751. <div style="
  752. margin-top: 10px;
  753. line-height: 19px;
  754. overflow: hidden;
  755. text-overflow: ellipsis;
  756. white-space: nowrap;
  757. padding: 0 20px;
  758. ">
  759. 空白模板
  760. </div>
  761. </div>
  762. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  763. <div class="wordPic">
  764. <img src="../../../assets/icon/new/template.png" alt />
  765. </div>
  766. <div style="
  767. margin-top: 10px;
  768. line-height: 19px;
  769. overflow: hidden;
  770. text-overflow: ellipsis;
  771. white-space: nowrap;
  772. padding: 0 20px;
  773. ">
  774. {{ aa.title }}
  775. </div>
  776. </div>
  777. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  778. <div class="wordPic">
  779. <img src="../../../assets/icon/new/template.png" alt />
  780. </div>
  781. <div style="
  782. margin-top: 10px;
  783. line-height: 19px;
  784. overflow: hidden;
  785. text-overflow: ellipsis;
  786. white-space: nowrap;
  787. padding: 0 20px;
  788. ">
  789. 简易模板
  790. </div>
  791. </div>
  792. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  793. <div class="wordPic">
  794. <img src="../../../assets/icon/new/template.png" alt />
  795. </div>
  796. <div style="
  797. margin-top: 10px;
  798. line-height: 19px;
  799. overflow: hidden;
  800. text-overflow: ellipsis;
  801. white-space: nowrap;
  802. padding: 0 20px;
  803. ">
  804. 智能粘贴模式
  805. </div>
  806. </div>
  807. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  808. <div class="wordPic">
  809. <img src="../../../assets/icon/wordMub.png" alt />
  810. </div>
  811. <div style="
  812. margin-top: 10px;
  813. line-height: 19px;
  814. overflow: hidden;
  815. text-overflow: ellipsis;
  816. white-space: nowrap;
  817. padding: 0 20px;
  818. ">
  819. 未来小学课程设计
  820. </div>
  821. </div> -->
  822. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  823. <div class="wordPic">
  824. <img src="../../../assets/icon/wordMub.png" alt />
  825. </div>
  826. <div style="
  827. margin-top: 10px;
  828. line-height: 19px;
  829. overflow: hidden;
  830. text-overflow: ellipsis;
  831. white-space: nowrap;
  832. padding: 0 20px;
  833. ">
  834. 我的课程
  835. </div>
  836. </div> -->
  837. </div>
  838. </div>
  839. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  840. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  841. goTo(
  842. '/course?userid=' +
  843. userid +
  844. '&oid=' +
  845. oid +
  846. '&org=' +
  847. org +
  848. '&role=' +
  849. role
  850. )
  851. ">
  852. 返回课程
  853. </button>
  854. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  855. {{ steps == 4 ? "返回课程" : "上一步" }}
  856. </button>
  857. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  858. pub_btn_next_img: steps != 3,
  859. pub_btn_finish_img: steps == 3,
  860. }">
  861. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : "下一步" }}
  862. </button>
  863. </div>
  864. </div>
  865. <div class="rightBox" v-if="steps == 3" ref="rightboxR" :style="{
  866. height:
  867. !isStepDisplay && !isBtnDisplay
  868. ? 'calc(100% - 40px)'
  869. : 'calc(100% - 100px)',
  870. }">
  871. <div class="rb_c_box">
  872. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  873. <div class="rb_c_nav">
  874. <span :class="{ active: stepsNav == 1 }" @click="stepsNav = 1">目录</span>
  875. <span :class="{ active: stepsNav == 2 }" @click="stepsNav = 2">AI助手</span>
  876. </div>
  877. <div class="stepsBottom" v-if="stepsNav == 1">
  878. <!-- <div class="navTop">辅助导航</div> -->
  879. <div class="navBottom" v-if="courseState == 4">
  880. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  881. <div class="nt_taskBox" style="width: 100%;">
  882. <div class="nt_taskTitle"
  883. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  884. unitIndex + 1 }}</div>
  885. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  886. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  887. <span>{{ unitJson[unitIndex].dyName }}</span>
  888. </el-tooltip>
  889. </div>
  890. </div>
  891. </div> -->
  892. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  893. .taskJson" :key="tIndex" :class="{
  894. dragOverTop:
  895. newIndex === tIndex &&
  896. typeIndex == 'task-' + tIndex &&
  897. oldIndex > tIndex &&
  898. dragType == 'task',
  899. dragOverBottom:
  900. newIndex === tIndex &&
  901. typeIndex == 'task-' + tIndex &&
  902. oldIndex < tIndex &&
  903. dragType == 'task',
  904. }">
  905. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  906. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + tIndex" @click="goToTask(tIndex)"
  907. class="navTask" :class="{
  908. isNavTask:
  909. isClickColor > 0 && isClickColor == tIndex + 1,
  910. isNavOpen: t.toolOpen,
  911. }">
  912. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  913. <div @mousedown="isdrag = 'task-' + tIndex" @mouseup="isdrag = ''"
  914. @touchstart="isdrag = 'task-' + tIndex" @touchend="isdrag = ''" style="left: 8px"
  915. class="chapter_upload_drag"></div>
  916. <div class="nt_taskBox">
  917. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  918. <div class="nt_taskName">
  919. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  920. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  921. </el-tooltip>
  922. </div>
  923. </div>
  924. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  925. 1
  926. ">
  927. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  928. @click.stop="taskMove(1, tIndex)"></div>
  929. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  930. @click.stop="taskMove(2, tIndex)"></div>
  931. </div> -->
  932. </div>
  933. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  934. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  935. @click="jumpGj(tIndex, toolIndex2)">
  936. <div class="gjCss" :class="{
  937. isGjCss:
  938. toolIndexType == `gj${tIndex}${toolIndex2}`,
  939. }">
  940. <div>工具{{ toolIndex2 + 1 }}:</div>
  941. <div>
  942. {{
  943. toolsData[tool.tool[0]] &&
  944. toolsData[tool.tool[0]].name
  945. }}
  946. </div>
  947. </div>
  948. </div>
  949. </div>
  950. </div>
  951. </div>
  952. <div class="navBottom" v-if="courseState == 1">
  953. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  954. dragOverTop:
  955. newIndex === stageIndex &&
  956. typeIndex == 'Unit-' + stageIndex &&
  957. oldIndex > stageIndex &&
  958. dragType == 'Unit',
  959. dragOverBottom:
  960. newIndex === stageIndex &&
  961. typeIndex == 'Unit-' + stageIndex &&
  962. oldIndex < stageIndex &&
  963. dragType == 'Unit',
  964. }">
  965. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  966. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-' + stageIndex"
  967. @click="unitSet2(stageIndex)" class="navStage" :class="{
  968. isNavStage: stageIndex == unitIndex,
  969. isNavStageOpen: stage.toolOpen,
  970. }">
  971. <div @mousedown="isdrag = 'unit-' + stageIndex" @mouseup="isdrag = ''"
  972. @touchstart="isdrag = 'unit-' + stageIndex" @touchend="isdrag = ''" style="left: 8px"
  973. class="chapter_upload_drag"></div>
  974. <div class="nt_taskBox">
  975. <div class="nt_taskTitle">
  976. 第{{ stageIndex + 1 }}阶段:
  977. </div>
  978. <div class="nt_taskName">
  979. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'
  980. " placement="top">
  981. <span>{{
  982. stage.dyName ? stage.dyName : "未命名阶段"
  983. }}</span>
  984. </el-tooltip>
  985. </div>
  986. </div>
  987. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  988. </div>
  989. <div v-for="(t, tIndex) in unitJson[stageIndex]
  990. .chapterInfo[0].taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  991. dragOverTop:
  992. newIndex === tIndex &&
  993. typeIndex == 'task-' + tIndex &&
  994. ((oldIndex > tIndex &&
  995. stageIndex == checkUnitIndex) ||
  996. (oldIndex == tIndex &&
  997. stageIndex == checkUnitIndex &&
  998. checkUnitIndex != oldUnitIndex)) &&
  999. dragType == 'task',
  1000. dragOverBottom:
  1001. newIndex === tIndex &&
  1002. typeIndex == 'task-' + tIndex &&
  1003. oldIndex < tIndex &&
  1004. stageIndex == checkUnitIndex &&
  1005. dragType == 'task',
  1006. }" :style="{ display: stage.toolOpen ? 'block' : 'none' }">
  1007. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  1008. @dragover.prevent="dragTaskOver(tIndex, stageIndex)" @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + stageIndex + '-' + tIndex
  1009. " @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px" :class="{
  1010. isNavTask:
  1011. isClickColor > 0 &&
  1012. isClickColor == tIndex + 1 &&
  1013. stageIndex == unitIndex,
  1014. isNavOpen: t.toolOpen,
  1015. }">
  1016. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  1017. <div @mousedown="
  1018. isdrag = 'task-' + stageIndex + '-' + tIndex
  1019. " @mouseup="isdrag = ''" @touchstart="
  1020. isdrag = 'task-' + stageIndex + '-' + tIndex
  1021. " @touchend="isdrag = ''" style="left: 20px" class="chapter_upload_drag"></div>
  1022. <div class="nt_taskBox" style="width: calc(100% - 52px)">
  1023. <div class="nt_taskTitle">
  1024. 任务{{ tIndex + 1 }}:
  1025. </div>
  1026. <div class="nt_taskName">
  1027. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  1028. <span>{{
  1029. t.task ? t.task : "未命名任务"
  1030. }}</span>
  1031. </el-tooltip>
  1032. </div>
  1033. </div>
  1034. </div>
  1035. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  1036. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  1037. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  1038. <div class="gjCss" :class="{
  1039. isGjCss:
  1040. toolIndexType ==
  1041. `gj${tIndex}${toolIndex2}${stageIndex}`,
  1042. }">
  1043. <div>工具{{ toolIndex2 + 1 }}:</div>
  1044. <div>
  1045. {{
  1046. toolsData[tool.tool[0]] &&
  1047. toolsData[tool.tool[0]].name
  1048. }}
  1049. </div>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. </div>
  1054. </div>
  1055. </div>
  1056. </div>
  1057. <div class="rb_c_ai_box" v-if="stepsNav == 2">
  1058. <aiBox @setUnitJson="setUnitJson" :courseId="courseId" :unitJson="unitJson"></aiBox>
  1059. </div>
  1060. </div>
  1061. <div class="rb_c_box_right">
  1062. <!-- <div class="rb_c_box_btn">
  1063. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  1064. </div> -->
  1065. <div class="basic_box" ref="unitBox">
  1066. <div v-if="false" style="
  1067. display: flex;
  1068. flex-direction: row;
  1069. align-items: center;
  1070. position: sticky;
  1071. top: 0;
  1072. z-index: 99;
  1073. width: 100%;
  1074. padding: 0 20px 0 20px;
  1075. box-sizing: border-box;
  1076. background: #fff;
  1077. border-radius: 8px;
  1078. ">
  1079. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  1080. <div class="cru_selectBox" :style="{
  1081. maxWidth: isPasteTask
  1082. ? 'calc(100% - 335px)'
  1083. : 'calc(100% - 190px)',
  1084. }" v-if="courseState == 1">
  1085. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1086. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1087. <!-- item.dyName ? item.dyName : -->
  1088. <span v-if="
  1089. unitJson[unitJson.length - 1].easy == 4 ||
  1090. unitJson[unitJson.length - 1].easy == 6
  1091. ">{{
  1092. item.dyName
  1093. ? item.dyName
  1094. : "第" + (index + 1) + "阶段"
  1095. }}</span>
  1096. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  1097. </div>
  1098. <div class="cru_line" :style="{
  1099. left: offsetLetfPx + 'px',
  1100. }"></div>
  1101. </div>
  1102. <div class="addStageImg" @click="addunit()" v-if="
  1103. !(unitJson[unitJson.length - 1].easy == 4) &&
  1104. !(unitJson[unitJson.length - 1].easy == 6) &&
  1105. courseState == 1
  1106. ">
  1107. <img src="../../../assets/icon/new/addStage.png" alt />
  1108. </div>
  1109. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)"
  1110. v-if="courseState == 2" style="margin: 15px 0">
  1111. 新建阶段
  1112. </button>
  1113. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  1114. <button class="c_pub_button_add" @click="openStageBox" v-show="false" style="margin: 0 0 0 auto">
  1115. 阶段顺序
  1116. </button>
  1117. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask()"
  1118. v-if="steps == 3 && isPasteTask" style="margin: 0 0 0 auto">
  1119. 智能粘贴
  1120. </button>
  1121. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate" :style="{
  1122. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  1123. }" style="padding: 0 12px">
  1124. 选择课程模板
  1125. </button>
  1126. </div>
  1127. <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  1128. :key="index">
  1129. <div style="position: relative;
  1130. background: #fff;
  1131. box-sizing: border-box;
  1132. padding: 1px 20px 10px;
  1133. width: 100%;
  1134. border-radius: 10px;">
  1135. <div style="
  1136. display: flex;
  1137. flex-direction: row;
  1138. justify-content: space-between;
  1139. align-items: center;
  1140. " :style="{
  1141. margin: !item.taskJson[0].isFoldchapter
  1142. ? '20px 0 10px'
  1143. : '20px 0 0',
  1144. }">
  1145. <div style="margin-bottom: 10px" class="lineTitle">
  1146. 学习内容
  1147. </div>
  1148. </div>
  1149. <div>
  1150. <div class="add_chapters_box add_c_none" v-if="
  1151. item.taskJson[0].chapterData &&
  1152. item.taskJson[0].chapterData.length == 0
  1153. ">
  1154. <img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span>
  1155. </div>
  1156. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1157. <div @dragstart="
  1158. dragStart(item1, index1, 0)
  1159. " @dragover.prevent="
  1160. dragOver(index1, 0)
  1161. " @dragend="dragEnd()" :draggable="isdrag ==
  1162. 'chapter-' + 0 + '-' + index1
  1163. " class="chapter_upload" v-for="(item1, index1) in item.taskJson[0].chapterData"
  1164. :key="item1.id" @click="
  1165. getChapterData(
  1166. $event,
  1167. unitIndex,
  1168. index,
  1169. index1,
  1170. item1.type
  1171. )
  1172. " :class="{
  1173. dragOverTop2:
  1174. newIndex === index1 &&
  1175. typeIndex ==
  1176. 'chapter-' +
  1177. 0 +
  1178. '-' +
  1179. index1 &&
  1180. oldIndex > index1 &&
  1181. dragType == 'drag',
  1182. dragOverBottom2:
  1183. newIndex === index1 &&
  1184. typeIndex ==
  1185. 'chapter-' +
  1186. 0 +
  1187. '-' +
  1188. index1 &&
  1189. oldIndex < index1 &&
  1190. dragType == 'drag',
  1191. }">
  1192. <div @mousedown="
  1193. isdrag =
  1194. 'chapter-' + 0 + '-' + index1
  1195. " @mouseup="isdrag = ''" @touchstart="
  1196. isdrag =
  1197. 'chapter-' + 0 + '-' + index1
  1198. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1199. <div class="chapter_upload_o" style="
  1200. position: relative;
  1201. display: flex;
  1202. align-items: center;
  1203. ">
  1204. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1205. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1206. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1207. </div>
  1208. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1209. </div>
  1210. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1211. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1212. </div>
  1213. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1214. </div>
  1215. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1216. </div>
  1217. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1218. </div>
  1219. </div>
  1220. <div class="chapter_upload_n">
  1221. <input readonly="true" v-if="
  1222. item1.type == 2 ||
  1223. item1.type == 3 ||
  1224. item1.type == 12 ||
  1225. item1.type == 13 ||
  1226. item1.type == 7
  1227. " :placeholder="item1.name" @click="
  1228. updataVideoT(
  1229. $event,
  1230. unitIndex,
  1231. 0,
  1232. index1
  1233. )
  1234. " style="
  1235. border: none;
  1236. outline: none;
  1237. width: 80%;
  1238. minwidth: 215px;
  1239. z-index: 99;
  1240. font-size: 14px;
  1241. white-space: nowrap;
  1242. overflow: hidden;
  1243. text-overflow: ellipsis;
  1244. " />
  1245. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1246. border: none;
  1247. outline: none;
  1248. width: 80%;
  1249. white-space: nowrap;
  1250. overflow: hidden;
  1251. text-overflow: ellipsis;
  1252. " readonly="true" @click="
  1253. selectAttText(0, index1)
  1254. " />
  1255. <input :placeholder="item1.title ? item1.title : '链接'
  1256. " v-if="item1.type == 8" style="
  1257. border: none;
  1258. outline: none;
  1259. width: 80%;
  1260. white-space: nowrap;
  1261. overflow: hidden;
  1262. text-overflow: ellipsis;
  1263. " readonly="true" @click="selectLine(0, index1)" />
  1264. <input :placeholder="item1.title ? item1.title : '链接'
  1265. " v-if="item1.type == 14" style="
  1266. border: none;
  1267. outline: none;
  1268. width: 80%;
  1269. white-space: nowrap;
  1270. overflow: hidden;
  1271. text-overflow: ellipsis;
  1272. " readonly="true" @click="
  1273. openUpdateSource(0, index1)
  1274. " />
  1275. </div>
  1276. <div class="chapter_upload_ic">
  1277. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1278. <div class="chapter_upload_ud" style="z-index: 99">
  1279. <div class="chapter_upload_up" @click="
  1280. upCd(
  1281. $event,
  1282. unitIndex,
  1283. index,
  1284. 0,
  1285. index1
  1286. )
  1287. "></div>
  1288. <div class="chapter_upload_down" @click="
  1289. downCd(
  1290. $event,
  1291. unitIndex,
  1292. index,
  1293. 0,
  1294. index1
  1295. )
  1296. "></div>
  1297. </div>
  1298. <div class="chapter_upload_ic_edit" v-if="
  1299. item1.type == 2 ||
  1300. item1.type == 3 ||
  1301. item1.type == 12 ||
  1302. item1.type == 13 ||
  1303. item1.type == 7
  1304. " @click.stop="
  1305. updataVideoT(
  1306. $event,
  1307. unitIndex,
  1308. 0,
  1309. index1
  1310. )
  1311. ">
  1312. <div></div>
  1313. </div>
  1314. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1315. selectAttText(0, index1)
  1316. ">
  1317. <div></div>
  1318. </div>
  1319. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1320. @click="selectLine(0, index1)">
  1321. <div></div>
  1322. </div>
  1323. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1324. openUpdateSource(0, index1)
  1325. ">
  1326. <div></div>
  1327. </div>
  1328. <div class="chapter_upload_ic_r" @click.stop="
  1329. deleteChapterData(
  1330. $event,
  1331. unitIndex,
  1332. index,
  1333. index1,
  1334. 0
  1335. )
  1336. ">
  1337. <div></div>
  1338. </div>
  1339. </div>
  1340. </div>
  1341. </div>
  1342. </div>
  1343. </div>
  1344. <div class="add_info_box" style="margin: 10px 0 0">
  1345. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1346. 文件
  1347. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  1348. beforeUpload2(
  1349. $event,
  1350. unitIndex,
  1351. 13,
  1352. 0
  1353. )
  1354. " />
  1355. </button>
  1356. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  1357. 图文
  1358. </button>
  1359. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  1360. 链接
  1361. </button>
  1362. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  1363. 代码
  1364. </button>
  1365. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  1366. 资源
  1367. </button>
  1368. </div>
  1369. <div v-if="
  1370. unitJson[unitIndex].chapterInfo[0].taskJson[
  1371. 0
  1372. ].proVisible
  1373. " class="mask">
  1374. <div class="progressBox">
  1375. <!-- <div id="closePro" class="closeCss">
  1376. <img src="../../../../assets/icon/close.png" alt />
  1377. </div> -->
  1378. <div class="lbox">
  1379. <img src="../../../assets/loading.gif" />上传中,请稍后
  1380. </div>
  1381. <div style="margin-bottom: 10px">
  1382. <span>{{
  1383. unitJson[unitIndex].chapterInfo[0].taskJson[
  1384. 0
  1385. ].isFinishSize
  1386. }}M</span>
  1387. /
  1388. <span>{{
  1389. unitJson[unitIndex].chapterInfo[0].taskJson[
  1390. 0
  1391. ].isAllSize
  1392. }}M</span>
  1393. </div>
  1394. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1395. 0
  1396. ].progress
  1397. ? unitJson[unitIndex].chapterInfo[0]
  1398. .taskJson[0].progress
  1399. : 0
  1400. " style="width: 80%"></el-progress>
  1401. </div>
  1402. </div>
  1403. </div>
  1404. <div class="chapter_box" v-if="courseState == 1">
  1405. <div class="chapter_contentbox">
  1406. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  1407. <div class="cc_input">
  1408. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  1409. v-model="unitJson[unitIndex].dyName" />
  1410. </div>
  1411. <div class="remove" v-if="
  1412. (unitJson.length > 1 || courseState != 2) &&
  1413. !(unitJson[unitJson.length - 1].easy == 4) &&
  1414. !(unitJson[unitJson.length - 1].easy == 6)
  1415. " @click="deleteUnit(unitIndex)"></div>
  1416. </div>
  1417. </div>
  1418. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  1419. margin: 50px 0px 10px;
  1420. font-size: 1.5em;
  1421. font-weight: 700;
  1422. color: #0f7eff;
  1423. ">
  1424. 添加任务
  1425. </div> -->
  1426. <div class="taskBorder" :style="{
  1427. minHeight: unitJson[unitIndex].easy && 'unset',
  1428. }" :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  1429. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1430. <div style="background: #fff; border-radius: 5px">
  1431. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  1432. <!-- padding: 20px; -->
  1433. <div v-if="unitJson[unitIndex].easy != 1">
  1434. <div :style="{
  1435. marginBottom:
  1436. unitJson[unitIndex].easy == 3 ||
  1437. (unitJson[unitIndex].easy == 5 &&
  1438. itemTask.taskType == 1)
  1439. ? '75px'
  1440. : '0',
  1441. }">
  1442. <div style="
  1443. display: flex;
  1444. margin: 0px 0 20px;
  1445. flex-direction: row;
  1446. justify-content: flex-start;
  1447. align-items: center;
  1448. ">
  1449. <div class="lineTitle">任务概述</div>
  1450. </div>
  1451. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  1452. flex-direction: row;
  1453. justify-content: flex-start;
  1454. align-items: center;
  1455. margin: 0;
  1456. ">
  1457. <!-- <div class="cc_title">
  1458. 任务{{ itemTaskIndex + 1 }}
  1459. </div> -->
  1460. <div class="cc_input">
  1461. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  1462. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1463. itemTaskIndex
  1464. ].task
  1465. " />
  1466. </div>
  1467. <div class="remove" v-if="
  1468. item.taskJson.length > 1 &&
  1469. (!unitJson[unitIndex].easy ||
  1470. unitJson[unitIndex].easy == 6)
  1471. " @click="deleteTask(itemTaskIndex)"></div>
  1472. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1473. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1474. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1475. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1476. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1477. </div> -->
  1478. </div>
  1479. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1480. display: flex;
  1481. margin: 20px 0;
  1482. flex-direction: row;
  1483. justify-content: flex-start;
  1484. align-items: center;
  1485. ">
  1486. <div class="lineTitle">任务描述</div>
  1487. </div> && !itemTask.isFold2-->
  1488. <div v-if="
  1489. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1490. -1
  1491. " style="margin-top: 20px" class="op_task_box"
  1492. v-loading="taskDetailLoading2.indexOf('task-' + itemTaskIndex) !== -1">
  1493. <!-- <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1494. itemTaskIndex
  1495. ].taskDetail
  1496. " @change="change"></editor-bar> -->
  1497. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  1498. placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1499. itemTaskIndex
  1500. ].taskDetail
  1501. "></textarea>
  1502. <!-- <textarea rows="6" class="binfo_input" placeholder="请输入任务描述" cols
  1503. style="width: 70.5% !important; height: 120px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1504. itemTaskIndex
  1505. ].taskDetail
  1506. "></textarea> -->
  1507. <div class="op_box">
  1508. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  1509. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
  1510. itemTaskIndex
  1511. ], itemTaskIndex)" @click="openAiDialog(2, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
  1512. itemTaskIndex
  1513. ], itemTaskIndex)">智能优化</div>
  1514. </div>
  1515. </div>
  1516. </div>
  1517. </div>
  1518. <div v-if="
  1519. unitJson[unitIndex].easy == 1 ||
  1520. (unitJson[unitIndex].easy == 5 &&
  1521. itemTask.taskType == 2)
  1522. ">
  1523. <div>
  1524. <div class="add_chapters_box add_c_none" v-if="
  1525. itemTask.chapterData &&
  1526. itemTask.chapterData.length == 0
  1527. ">
  1528. <img src="../../../assets/icon/new/c_none.png" alt />
  1529. </div>
  1530. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1531. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="
  1532. dragOver(index1, itemTaskIndex)
  1533. " @dragend="dragEnd()" :draggable="isdrag ==
  1534. 'chapter-' + itemTaskIndex + '-' + index1
  1535. " class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData"
  1536. :key="item1.id" @click="
  1537. getChapterData(
  1538. $event,
  1539. unitIndex,
  1540. index,
  1541. index1,
  1542. item1.type
  1543. )
  1544. " :class="{
  1545. dragOverTop2:
  1546. newIndex === index1 &&
  1547. typeIndex ==
  1548. 'chapter-' +
  1549. itemTaskIndex +
  1550. '-' +
  1551. index1 &&
  1552. oldIndex > index1,
  1553. dragOverBottom2:
  1554. newIndex === index1 &&
  1555. typeIndex ==
  1556. 'chapter-' +
  1557. itemTaskIndex +
  1558. '-' +
  1559. index1 &&
  1560. oldIndex < index1,
  1561. }">
  1562. <div @mousedown="
  1563. isdrag =
  1564. 'chapter-' + itemTaskIndex + '-' + index1
  1565. " @mouseup="isdrag = ''" @touchstart="
  1566. isdrag =
  1567. 'chapter-' + itemTaskIndex + '-' + index1
  1568. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1569. <div class="chapter_upload_t" style="width: 100%"></div>
  1570. <div class="chapter_upload_o" style="
  1571. position: relative;
  1572. display: flex;
  1573. align-items: center;
  1574. ">
  1575. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1576. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1577. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1578. </div>
  1579. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1580. </div>
  1581. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1582. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1583. </div>
  1584. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1585. </div>
  1586. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1587. </div>
  1588. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1589. </div>
  1590. </div>
  1591. <div class="chapter_upload_n">
  1592. <span style="
  1593. font-size: 14px;
  1594. color: rgb(109, 109, 109);
  1595. height: 14px;
  1596. line-height: 14px;
  1597. " v-if="
  1598. item1.type == 2 ||
  1599. item1.type == 3 ||
  1600. item1.type == 7
  1601. ">{{ item1.text }}-</span>
  1602. <input readonly="true" v-if="
  1603. item1.type == 2 ||
  1604. item1.type == 3 ||
  1605. item1.type == 7
  1606. " :placeholder="item1.name" @click="
  1607. updataVideoT(
  1608. $event,
  1609. unitIndex,
  1610. itemTaskIndex,
  1611. index1
  1612. )
  1613. " style="
  1614. border: none;
  1615. outline: none;
  1616. width: 80%;
  1617. minwidth: 215px;
  1618. z-index: 99;
  1619. font-size: 14px;
  1620. white-space: nowrap;
  1621. overflow: hidden;
  1622. text-overflow: ellipsis;
  1623. " />
  1624. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1625. border: none;
  1626. outline: none;
  1627. width: 80%;
  1628. white-space: nowrap;
  1629. overflow: hidden;
  1630. text-overflow: ellipsis;
  1631. " readonly="true" @click="
  1632. selectAttText(itemTaskIndex, index1)
  1633. " />
  1634. <input :placeholder="item1.title ? item1.title : '链接'
  1635. " v-if="item1.type == 8 || item1.type == 14" style="
  1636. border: none;
  1637. outline: none;
  1638. width: 80%;
  1639. white-space: nowrap;
  1640. overflow: hidden;
  1641. text-overflow: ellipsis;
  1642. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1643. </div>
  1644. <div class="chapter_upload_ic">
  1645. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1646. <div class="chapter_upload_ud" style="z-index: 99">
  1647. <div class="chapter_upload_up" @click="
  1648. upCd(
  1649. $event,
  1650. unitIndex,
  1651. index,
  1652. itemTaskIndex,
  1653. index1
  1654. )
  1655. "></div>
  1656. <div class="chapter_upload_down" @click="
  1657. downCd(
  1658. $event,
  1659. unitIndex,
  1660. index,
  1661. itemTaskIndex,
  1662. index1
  1663. )
  1664. "></div>
  1665. </div>
  1666. <div class="chapter_upload_ic_edit" v-if="
  1667. item1.type == 2 ||
  1668. item1.type == 3 ||
  1669. item1.type == 12 ||
  1670. item1.type == 13 ||
  1671. item1.type == 7
  1672. " @click.stop="
  1673. updataVideoT(
  1674. $event,
  1675. unitIndex,
  1676. itemTaskIndex,
  1677. index1
  1678. )
  1679. ">
  1680. <div></div>
  1681. </div>
  1682. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1683. selectAttText(itemTaskIndex, index1)
  1684. ">
  1685. <div></div>
  1686. </div>
  1687. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1688. @click="selectLine(itemTaskIndex, index1)">
  1689. <div></div>
  1690. </div>
  1691. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1692. openUpdateSource(itemTaskIndex, index1)
  1693. ">
  1694. <div></div>
  1695. </div>
  1696. <div class="chapter_upload_ic_r" @click.stop="
  1697. deleteChapterData(
  1698. $event,
  1699. unitIndex,
  1700. index,
  1701. index1,
  1702. itemTaskIndex
  1703. )
  1704. ">
  1705. <div></div>
  1706. </div>
  1707. </div>
  1708. </div>
  1709. </div>
  1710. </div>
  1711. </div>
  1712. <div class="add_info_box" style="margin: 10px 0 0">
  1713. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1714. <span style="color: red">*</span>
  1715. 教学设计
  1716. <input type="file"
  1717. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1718. style="display: none" v-if="inputShow" @change="
  1719. beforeUpload3(
  1720. $event,
  1721. unitIndex,
  1722. 3,
  1723. itemTaskIndex,
  1724. '教学设计'
  1725. )
  1726. " />
  1727. </button>
  1728. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1729. <span style="color: red">*</span>
  1730. 教学课件
  1731. <input type="file"
  1732. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1733. style="display: none" v-if="inputShow" @change="
  1734. beforeUpload3(
  1735. $event,
  1736. unitIndex,
  1737. 3,
  1738. itemTaskIndex,
  1739. '教学课件'
  1740. )
  1741. " />
  1742. </button>
  1743. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1744. 教学视频
  1745. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1746. style="display: none" v-if="inputShow" @change="
  1747. beforeUpload3(
  1748. $event,
  1749. unitIndex,
  1750. 2,
  1751. itemTaskIndex,
  1752. '教学视频'
  1753. )
  1754. " />
  1755. </button>
  1756. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1757. 教学音频
  1758. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1759. beforeUpload3(
  1760. $event,
  1761. unitIndex,
  1762. 2,
  1763. itemTaskIndex,
  1764. '教学音频'
  1765. )
  1766. " />
  1767. </button>
  1768. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1769. 学习单
  1770. <input type="file"
  1771. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1772. style="display: none" v-if="inputShow" @change="
  1773. beforeUpload3(
  1774. $event,
  1775. unitIndex,
  1776. 3,
  1777. itemTaskIndex,
  1778. '学习单'
  1779. )
  1780. " />
  1781. </button>
  1782. </div>
  1783. <div v-if="
  1784. unitJson[unitIndex].chapterInfo[0].taskJson[
  1785. itemTaskIndex
  1786. ].proVisible
  1787. " class="mask">
  1788. <div class="progressBox">
  1789. <!-- <div id="closePro" class="closeCss">
  1790. <img src="../../../../assets/icon/close.png" alt />
  1791. </div> -->
  1792. <div class="lbox">
  1793. <img src="../../../assets/loading.gif" />上传中,请稍后
  1794. </div>
  1795. <div style="margin-bottom: 10px">
  1796. <span>{{
  1797. unitJson[unitIndex].chapterInfo[0].taskJson[
  1798. itemTaskIndex
  1799. ].isFinishSize
  1800. }}M</span>
  1801. /
  1802. <span>{{
  1803. unitJson[unitIndex].chapterInfo[0].taskJson[
  1804. itemTaskIndex
  1805. ].isAllSize
  1806. }}M</span>
  1807. </div>
  1808. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1809. itemTaskIndex
  1810. ].progress
  1811. ? unitJson[unitIndex].chapterInfo[0]
  1812. .taskJson[itemTaskIndex].progress
  1813. : 0
  1814. " style="width: 80%"></el-progress>
  1815. </div>
  1816. </div>
  1817. </div>
  1818. </div>
  1819. <!-- padding: 20px; -->
  1820. <div style="
  1821. background: #fff;
  1822. border-radius: 5px;
  1823. margin-top: 15px;
  1824. ">
  1825. <div v-if="
  1826. unitJson[unitIndex].easy != 3 &&
  1827. !(
  1828. unitJson[unitIndex].easy == 5 &&
  1829. itemTask.taskType == 1
  1830. )
  1831. " style="
  1832. flex-direction: row;
  1833. justify-content: flex-start;
  1834. align-items: center;
  1835. ">
  1836. <div style="
  1837. display: flex;
  1838. flex-direction: row;
  1839. align-items: center;
  1840. margin: 5px 0 20px;
  1841. ">
  1842. <div class="lineTitle clineTitle">
  1843. {{
  1844. !unitJson[unitIndex].easy ||
  1845. unitJson[unitIndex].easy == 6 ||
  1846. easyArray.indexOf(unitJson[unitIndex].easy) !=
  1847. -1
  1848. ? "练习内容"
  1849. : "评价内容"
  1850. }}
  1851. </div>
  1852. <!-- <div class="line" style="width: 90%"></div> -->
  1853. </div>
  1854. </div>
  1855. <div v-if="
  1856. unitJson[unitIndex].easy == 6 ||
  1857. !unitJson[unitIndex].easy
  1858. " class="toolChoose">
  1859. <div class="tools">
  1860. <div class="leftTools" style="width: 100%" v-for="(
  1861. itemTool, toolIndex
  1862. ) in itemTask.toolChoose" :key="toolIndex">
  1863. <div style="
  1864. display: flex;
  1865. flex-direction: row;
  1866. align-items: baseline;
  1867. flex-wrap: nowrap;
  1868. justify-content: flex-start;
  1869. position: relative;
  1870. ">
  1871. <div style="margin-right: 20px; font-weight: bold"
  1872. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1873. 工具 {{ toolIndex + 1 }} :
  1874. </div>
  1875. <div class="chooseWho">
  1876. <div :class="itemTool.toolType == 0
  1877. ? 'isChooseActive'
  1878. : ''
  1879. " @click="
  1880. (itemTool.toolType = 0),
  1881. (itemTool.isFold3 = false),
  1882. $forceUpdate()
  1883. ">
  1884. 互动类
  1885. </div>
  1886. <div :class="itemTool.toolType == 1
  1887. ? 'isChooseActive'
  1888. : ''
  1889. " @click="
  1890. (itemTool.toolType = 1),
  1891. (itemTool.isFold3 = false),
  1892. $forceUpdate()
  1893. ">
  1894. 思维类
  1895. </div>
  1896. <div :class="itemTool.toolType == 6
  1897. ? 'isChooseActive'
  1898. : ''
  1899. " @click="
  1900. (itemTool.toolType = 6),
  1901. (itemTool.isFold3 = false),
  1902. $forceUpdate()
  1903. ">
  1904. 协作类
  1905. </div>
  1906. <div :class="itemTool.toolType == 2
  1907. ? 'isChooseActive'
  1908. : ''
  1909. " @click="
  1910. (itemTool.toolType = 2),
  1911. (itemTool.isFold3 = false),
  1912. $forceUpdate()
  1913. ">
  1914. 测评类
  1915. </div>
  1916. <div :class="itemTool.toolType == 7
  1917. ? 'isChooseActive'
  1918. : ''
  1919. " @click="
  1920. (itemTool.toolType = 7),
  1921. (itemTool.isFold3 = false),
  1922. $forceUpdate()
  1923. ">
  1924. 评价类
  1925. </div>
  1926. <div :class="itemTool.toolType == 3
  1927. ? 'isChooseActive'
  1928. : ''
  1929. " @click="
  1930. (itemTool.toolType = 3),
  1931. (itemTool.isFold3 = false),
  1932. $forceUpdate()
  1933. ">
  1934. 编程类
  1935. </div>
  1936. <div :class="itemTool.toolType == 5
  1937. ? 'isChooseActive'
  1938. : ''
  1939. " @click="
  1940. (itemTool.toolType = 5),
  1941. (itemTool.isFold3 = false),
  1942. $forceUpdate()
  1943. ">
  1944. 学科类
  1945. </div>
  1946. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1947. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1948. 其他
  1949. </div> -->
  1950. </div>
  1951. <div class="chapter_upload_ud2" style="z-index: 9; margin: 0 0 0 auto" :style="{
  1952. margin:
  1953. itemTask.toolChoose.length > 1
  1954. ? '0px 35px 0px auto'
  1955. : '0 0 0 auto',
  1956. }" v-if="itemTask.toolChoose.length > 1">
  1957. <div class="chapter_upload_up2" @click.stop="
  1958. upTool(
  1959. $event,
  1960. unitIndex,
  1961. itemTaskIndex,
  1962. toolIndex
  1963. )
  1964. ">
  1965. 上移
  1966. </div>
  1967. <div class="chapter_upload_down2" @click.stop="
  1968. downTool(
  1969. $event,
  1970. unitIndex,
  1971. itemTaskIndex,
  1972. toolIndex
  1973. )
  1974. ">
  1975. 下移
  1976. </div>
  1977. </div>
  1978. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1979. @click="fold3(itemTaskIndex, toolIndex)"
  1980. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1981. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1982. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1983. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1984. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1985. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1986. v-if="itemTask.toolChoose.length > 1" style="
  1987. position: absolute;
  1988. right: 0;
  1989. top: -5px;
  1990. "></div>
  1991. </div>
  1992. <!-- v-show="!itemTool.isFold3" -->
  1993. <div style="min-height: 163px">
  1994. <div class="toolSort" v-if="itemTool.toolType == 0">
  1995. <!-- <div class="tool">
  1996. <div
  1997. class="whiteBIcon"
  1998. @click="addTools(8, itemTaskIndex, toolIndex)"
  1999. >
  2000. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2001. <div style="margin: 5px 0">素材库</div>
  2002. </div>
  2003. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2004. <img
  2005. src="../../../assets/icon/checkNo.png"
  2006. alt
  2007. v-if="itemTool.tool.indexOf(8) == -1"
  2008. />
  2009. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2010. alt /><span>已选择</span></div>
  2011. </div>
  2012. </div>-->
  2013. <!-- <div class="tool">
  2014. <div
  2015. class="whiteBIcon"
  2016. @click="addTools(17, itemTaskIndex, toolIndex)"
  2017. >
  2018. <img
  2019. src="../../../assets/icon/secondToolList/library.png"
  2020. alt
  2021. />
  2022. <div style="margin: 5px 0">学习资料</div>
  2023. </div>
  2024. <div
  2025. class="check"
  2026. @click="addTools(17, itemTaskIndex, toolIndex)"
  2027. >
  2028. <img
  2029. src="../../../assets/icon/checkNo.png"
  2030. alt
  2031. v-if="itemTool.tool.indexOf(17) == -1"
  2032. />
  2033. <img
  2034. src="../../../assets/icon/checkedIs.png"
  2035. alt
  2036. v-else
  2037. />
  2038. </div>10
  2039. </div> -->
  2040. <div class="tool" :class="{
  2041. isToolChoose:
  2042. itemTool.tool.indexOf(10) != -1,
  2043. }" @click="
  2044. addTools(10, itemTaskIndex, toolIndex)
  2045. ">
  2046. <div class="whiteBIcon" @click.stop="
  2047. openTools(itemTaskIndex, 10, toolIndex)
  2048. ">
  2049. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2050. <div style="margin: 5px 0">倒计时</div>
  2051. </div>
  2052. <div class="noCTool">
  2053. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2054. </div>
  2055. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1">
  2056. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2057. </div>
  2058. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2059. <img src="../../../assets/icon/checkNo.png" alt
  2060. v-if="itemTool.tool.indexOf(10) == -1" />
  2061. <div class="checkDiv" v-else>
  2062. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2063. </div>
  2064. </div> -->
  2065. </div>
  2066. <div class="tool" :class="{
  2067. isToolChoose:
  2068. itemTool.tool.indexOf(65) != -1,
  2069. }" @click="
  2070. addTools(65, itemTaskIndex, toolIndex)
  2071. ">
  2072. <div class="whiteBIcon" @click.stop="
  2073. addTools(65, itemTaskIndex, toolIndex)
  2074. ">
  2075. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  2076. <div style="margin: 5px 0">挑人</div>
  2077. </div>
  2078. <div class="noCTool">
  2079. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2080. </div>
  2081. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1">
  2082. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2083. </div>
  2084. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2085. <img src="../../../assets/icon/checkNo.png" alt
  2086. v-if="itemTool.tool.indexOf(65) == -1" />
  2087. <div class="checkDiv" v-else>
  2088. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2089. </div>
  2090. </div> -->
  2091. </div>
  2092. <!-- <div class="tool">
  2093. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2094. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2095. <div style="margin: 5px 0">学生分组</div>
  2096. </div>
  2097. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2098. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2099. <div class="checkDiv" v-else>
  2100. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2101. </div>
  2102. </div>
  2103. </div> -->
  2104. <!-- <div class="tool">
  2105. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2106. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2107. <div style="margin: 5px 0">交互视频</div>
  2108. </div>
  2109. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2110. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2111. <div class="checkDiv" v-else>
  2112. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2113. </div>
  2114. </div>
  2115. </div> -->
  2116. </div>
  2117. <div class="toolSort" v-if="itemTool.toolType == 1">
  2118. <div class="tool" :class="{
  2119. isToolChoose:
  2120. itemTool.tool.indexOf(7) != -1,
  2121. }" @click="
  2122. addTools(7, itemTaskIndex, toolIndex)
  2123. ">
  2124. <div class="whiteBIcon" @click.stop="
  2125. addTools(7, itemTaskIndex, toolIndex)
  2126. ">
  2127. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2128. <div style="margin: 5px 0">思维网格</div>
  2129. </div>
  2130. <div class="noCTool">
  2131. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2132. </div>
  2133. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1">
  2134. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2135. </div>
  2136. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2137. <img src="../../../assets/icon/checkNo.png" alt
  2138. v-if="itemTool.tool.indexOf(7) == -1" />
  2139. <div class="checkDiv" v-else>
  2140. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2141. </div>
  2142. </div> -->
  2143. </div>
  2144. <div class="tool" :class="{
  2145. isToolChoose:
  2146. itemTool.tool.indexOf(1) != -1,
  2147. }" @click="
  2148. addTools(1, itemTaskIndex, toolIndex)
  2149. ">
  2150. <div class="whiteBIcon" @click.stop="
  2151. openTools(itemTaskIndex, 1, toolIndex)
  2152. ">
  2153. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2154. <div style="margin: 5px 0">电子白板</div>
  2155. </div>
  2156. <div class="noCTool">
  2157. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2158. </div>
  2159. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1">
  2160. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2161. </div>
  2162. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2163. <img src="../../../assets/icon/checkNo.png" alt
  2164. v-if="itemTool.tool.indexOf(1) == -1" />
  2165. <div class="checkDiv" v-else>
  2166. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2167. </div>
  2168. </div> -->
  2169. </div>
  2170. <!-- <div class="tool">
  2171. <div
  2172. class="whiteBIcon"
  2173. @click="addTools(2, itemTaskIndex, toolIndex)"
  2174. >
  2175. <img
  2176. src="../../../assets/icon/secondToolList/note.png"
  2177. alt
  2178. />
  2179. <div style="margin: 5px 0">便签</div>
  2180. </div>
  2181. <div
  2182. class="check"
  2183. @click="addTools(2, itemTaskIndex, toolIndex)"
  2184. >
  2185. <img
  2186. src="../../../assets/icon/checkNo.png"
  2187. alt
  2188. v-if="itemTool.tool.indexOf(2) == -1"
  2189. />
  2190. <div class="checkDiv" v-else>
  2191. <img
  2192. src="../../../assets/icon/checkedIs.png"
  2193. alt
  2194. /><span>已选择</span>
  2195. </div>
  2196. </div>
  2197. </div> -->
  2198. <!-- <div class="tool">
  2199. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2200. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2201. <div style="margin: 5px 0">协同文档</div>
  2202. </div>
  2203. <div
  2204. class="check"
  2205. @click="addTools(6, itemTaskIndex, toolIndex)"
  2206. >
  2207. <img
  2208. src="../../../assets/icon/checkNo.png"
  2209. alt
  2210. v-if="itemTool.tool.indexOf(6) == -1"
  2211. />
  2212. <div class="checkDiv" v-else>
  2213. <img
  2214. src="../../../assets/icon/checkedIs.png"
  2215. alt
  2216. /><span>已选择</span>
  2217. </div>
  2218. </div>
  2219. </div> -->
  2220. <div class="tool" :class="{
  2221. isToolChoose:
  2222. itemTool.tool.indexOf(52) != -1,
  2223. }" @click="
  2224. addTools(52, itemTaskIndex, toolIndex)
  2225. ">
  2226. <div class="whiteBIcon" @click.stop="
  2227. openTools(itemTaskIndex, 52, toolIndex)
  2228. ">
  2229. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2230. <div style="margin: 5px 0">文档</div>
  2231. </div>
  2232. <div class="noCTool">
  2233. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2234. </div>
  2235. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1">
  2236. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2237. </div>
  2238. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2239. <img src="../../../assets/icon/checkNo.png" alt
  2240. v-if="itemTool.tool.indexOf(52) == -1" />
  2241. <div class="checkDiv" v-else>
  2242. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2243. </div>
  2244. </div> -->
  2245. </div>
  2246. <div class="tool" :class="{
  2247. isToolChoose:
  2248. itemTool.tool.indexOf(3) != -1,
  2249. }" @click="
  2250. addTools(3, itemTaskIndex, toolIndex)
  2251. ">
  2252. <div class="whiteBIcon" @click.stop="
  2253. openTools(itemTaskIndex, 3, toolIndex)
  2254. ">
  2255. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2256. <div style="margin: 5px 0">思维导图</div>
  2257. </div>
  2258. <div class="noCTool">
  2259. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2260. </div>
  2261. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1">
  2262. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2263. </div>
  2264. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2265. <img src="../../../assets/icon/checkNo.png" alt
  2266. v-if="itemTool.tool.indexOf(3) == -1" />
  2267. <div class="checkDiv" v-else>
  2268. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2269. </div>
  2270. </div> -->
  2271. </div>
  2272. <div class="tool" :class="{
  2273. isToolChoose:
  2274. itemTool.tool.indexOf(48) != -1,
  2275. }" @click="
  2276. addTools(48, itemTaskIndex, toolIndex)
  2277. ">
  2278. <div class="whiteBIcon" @click.stop="
  2279. openTools(itemTaskIndex, 48, toolIndex)
  2280. ">
  2281. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2282. <div style="margin: 5px 0">表格</div>
  2283. </div>
  2284. <div class="noCTool">
  2285. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2286. </div>
  2287. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1">
  2288. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2289. </div>
  2290. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2291. <img src="../../../assets/icon/checkNo.png" alt
  2292. v-if="itemTool.tool.indexOf(48) == -1" />
  2293. <div class="checkDiv" v-else>
  2294. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2295. </div>
  2296. </div> -->
  2297. </div>
  2298. </div>
  2299. <div class="toolSort" v-if="itemTool.toolType == 6">
  2300. <div class="tool" :class="{
  2301. isToolChoose:
  2302. itemTool.tool.indexOf(49) != -1,
  2303. }" @click="
  2304. addTools(49, itemTaskIndex, toolIndex)
  2305. ">
  2306. <div class="whiteBIcon" @click.stop="
  2307. openTools(itemTaskIndex, 49, toolIndex)
  2308. ">
  2309. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2310. <div style="margin: 5px 0">学生分组</div>
  2311. </div>
  2312. <div class="noCTool">
  2313. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2314. </div>
  2315. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1">
  2316. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2317. </div>
  2318. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2319. <img src="../../../assets/icon/checkNo.png" alt
  2320. v-if="itemTool.tool.indexOf(49) == -1" />
  2321. <div class="checkDiv" v-else>
  2322. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2323. </div>
  2324. </div> -->
  2325. </div>
  2326. </div>
  2327. <div class="toolSort" v-if="itemTool.toolType == 2">
  2328. <!-- <div class="tool">
  2329. <div
  2330. class="whiteBIcon"
  2331. @click="addTools(5, itemTaskIndex, toolIndex)"
  2332. >
  2333. <img
  2334. src="../../../assets/icon/thirdToolList/score.png"
  2335. alt
  2336. />
  2337. <div style="margin: 5px 0">量规评分</div>
  2338. </div>
  2339. <div
  2340. class="check"
  2341. @click="addTools(5, itemTaskIndex, toolIndex)"
  2342. >
  2343. <img
  2344. src="../../../assets/icon/checkNo.png"
  2345. alt
  2346. v-if="itemTool.tool.indexOf(5) == -1"
  2347. />
  2348. <img
  2349. src="../../../assets/icon/checkedIs.png"
  2350. alt
  2351. v-else
  2352. />
  2353. </div>
  2354. </div>-->
  2355. <div class="tool" :class="{
  2356. isToolChoose:
  2357. itemTool.tool.indexOf(4) != -1,
  2358. }" @click="
  2359. addTools(4, itemTaskIndex, toolIndex)
  2360. ">
  2361. <div class="whiteBIcon" @click.stop="
  2362. openTools(itemTaskIndex, 4, toolIndex)
  2363. ">
  2364. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2365. <div style="margin: 5px 0">问卷调查</div>
  2366. </div>
  2367. <div class="noCTool">
  2368. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2369. </div>
  2370. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1">
  2371. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2372. </div>
  2373. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2374. <img src="../../../assets/icon/checkNo.png" alt
  2375. v-if="itemTool.tool.indexOf(4) == -1" />
  2376. <div class="checkDiv" v-else>
  2377. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2378. </div>
  2379. </div> -->
  2380. </div>
  2381. <div class="tool" :class="{
  2382. isToolChoose:
  2383. itemTool.tool.indexOf(45) != -1,
  2384. }" @click="
  2385. addTools(45, itemTaskIndex, toolIndex)
  2386. ">
  2387. <div class="whiteBIcon" @click="
  2388. openTools(itemTaskIndex, 45, toolIndex)
  2389. ">
  2390. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2391. <div style="margin: 5px 0">选择题</div>
  2392. </div>
  2393. <div class="noCTool">
  2394. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2395. </div>
  2396. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1">
  2397. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2398. </div>
  2399. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2400. <img src="../../../assets/icon/checkNo.png" alt
  2401. v-if="itemTool.tool.indexOf(45) == -1" />
  2402. <div class="checkDiv" v-else>
  2403. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2404. </div>
  2405. </div> -->
  2406. </div>
  2407. <div class="tool" :class="{
  2408. isToolChoose:
  2409. itemTool.tool.indexOf(15) != -1,
  2410. }" @click="
  2411. addTools(15, itemTaskIndex, toolIndex)
  2412. ">
  2413. <div class="whiteBIcon" @click.stop="
  2414. openTools(itemTaskIndex, 15, toolIndex)
  2415. ">
  2416. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2417. <div style="margin: 5px 0">问答</div>
  2418. </div>
  2419. <div class="noCTool">
  2420. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2421. </div>
  2422. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1">
  2423. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2424. </div>
  2425. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2426. <img src="../../../assets/icon/checkNo.png" alt
  2427. v-if="itemTool.tool.indexOf(15) == -1" />
  2428. <div class="checkDiv" v-else>
  2429. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2430. </div>
  2431. </div> -->
  2432. </div>
  2433. <div class="tool" :class="{
  2434. isToolChoose:
  2435. itemTool.tool.indexOf(16) != -1,
  2436. }" @click="
  2437. addTools(16, itemTaskIndex, toolIndex)
  2438. ">
  2439. <div class="whiteBIcon" @click.stop="
  2440. addTools(16, itemTaskIndex, toolIndex)
  2441. ">
  2442. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2443. <div style="margin: 5px 0">作业提交</div>
  2444. </div>
  2445. <div class="noCTool">
  2446. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2447. </div>
  2448. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1">
  2449. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2450. </div>
  2451. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2452. <img src="../../../assets/icon/checkNo.png" alt
  2453. v-if="itemTool.tool.indexOf(16) == -1" />
  2454. <div class="checkDiv" v-else>
  2455. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2456. </div>
  2457. </div> -->
  2458. </div>
  2459. <div class="tool" :class="{
  2460. isToolChoose:
  2461. itemTool.tool.indexOf(50) != -1,
  2462. }" @click="
  2463. addTools(50, itemTaskIndex, toolIndex)
  2464. ">
  2465. <div class="whiteBIcon" @click.stop="
  2466. addTools(50, itemTaskIndex, toolIndex)
  2467. ">
  2468. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2469. <div style="margin: 5px 0">批量上传</div>
  2470. </div>
  2471. <div class="noCTool">
  2472. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2473. </div>
  2474. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1">
  2475. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2476. </div>
  2477. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2478. <img src="../../../assets/icon/checkNo.png" alt
  2479. v-if="itemTool.tool.indexOf(50) == -1" />
  2480. <div class="checkDiv" v-else>
  2481. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2482. </div>
  2483. </div> -->
  2484. </div>
  2485. <!-- <div class="tool">
  2486. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2487. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2488. <div style="margin: 5px 0">个人评价</div>
  2489. </div>
  2490. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2491. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2492. <div class="checkDiv" v-else>
  2493. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2494. </div>
  2495. </div>
  2496. </div> -->
  2497. <div class="tool" :class="{
  2498. isToolChoose:
  2499. itemTool.tool.indexOf(41) != -1,
  2500. }" @click="
  2501. addTools(41, itemTaskIndex, toolIndex)
  2502. ">
  2503. <div class="whiteBIcon" @click.stop="
  2504. openTools(itemTaskIndex, 41, toolIndex)
  2505. ">
  2506. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2507. <div style="margin: 5px 0">选择匹配</div>
  2508. </div>
  2509. <div class="noCTool">
  2510. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2511. </div>
  2512. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1">
  2513. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2514. </div>
  2515. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2516. <img src="../../../assets/icon/checkNo.png" alt
  2517. v-if="itemTool.tool.indexOf(41) == -1" />
  2518. <div class="checkDiv" v-else>
  2519. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2520. </div>
  2521. </div> -->
  2522. </div>
  2523. <div class="tool" :class="{
  2524. isToolChoose:
  2525. itemTool.tool.indexOf(47) != -1,
  2526. }" @click="
  2527. addTools(47, itemTaskIndex, toolIndex)
  2528. ">
  2529. <div class="whiteBIcon" @click.stop="
  2530. openTools(itemTaskIndex, 47, toolIndex)
  2531. ">
  2532. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2533. <div style="margin: 5px 0">排序</div>
  2534. </div>
  2535. <div class="noCTool">
  2536. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2537. </div>
  2538. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1">
  2539. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2540. </div>
  2541. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2542. <img src="../../../assets/icon/checkNo.png" alt
  2543. v-if="itemTool.tool.indexOf(47) == -1" />
  2544. <div class="checkDiv" v-else>
  2545. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2546. </div>
  2547. </div> -->
  2548. </div>
  2549. <!-- <div class="tool">
  2550. <div
  2551. class="whiteBIcon"
  2552. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2553. >
  2554. <img
  2555. src="../../../assets/icon/thirdToolList/mp3.png"
  2556. alt
  2557. />
  2558. <div style="margin: 5px 0">上传音频</div>
  2559. </div>
  2560. <div
  2561. class="check"
  2562. @click="addTools(42, itemTaskIndex, toolIndex)"
  2563. >
  2564. <img
  2565. src="../../../assets/icon/checkNo.png"
  2566. alt
  2567. v-if="itemTool.tool.indexOf(42) == -1"
  2568. />
  2569. <img
  2570. src="../../../assets/icon/checkedIs.png"
  2571. alt
  2572. v-else
  2573. />
  2574. </div>
  2575. </div> -->
  2576. </div>
  2577. <div class="toolSort" v-if="itemTool.toolType == 3">
  2578. <div class="tool" :class="{
  2579. isToolChoose:
  2580. itemTool.tool.indexOf(18) != -1,
  2581. }" @click="
  2582. addTools(18, itemTaskIndex, toolIndex)
  2583. ">
  2584. <div class="whiteBIcon" @click.stop="
  2585. addTools(18, itemTaskIndex, toolIndex)
  2586. ">
  2587. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2588. <div style="margin: 5px 0">训练平台</div>
  2589. </div>
  2590. <div class="noCTool">
  2591. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2592. </div>
  2593. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1">
  2594. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2595. </div>
  2596. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2597. <img src="../../../assets/icon/checkNo.png" alt
  2598. v-if="itemTool.tool.indexOf(18) == -1" />
  2599. <div class="checkDiv" v-else>
  2600. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2601. </div>
  2602. </div> -->
  2603. </div>
  2604. <div class="tool" :class="{
  2605. isToolChoose:
  2606. itemTool.tool.indexOf(21) != -1,
  2607. }" @click="
  2608. addTools(21, itemTaskIndex, toolIndex)
  2609. ">
  2610. <div class="whiteBIcon" @click.stop="
  2611. addTools(21, itemTaskIndex, toolIndex)
  2612. ">
  2613. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2614. <div style="margin: 5px 0">
  2615. AIoT Blockly
  2616. </div>
  2617. </div>
  2618. <div class="noCTool">
  2619. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2620. </div>
  2621. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1">
  2622. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2623. </div>
  2624. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2625. <img src="../../../assets/icon/checkNo.png" alt
  2626. v-if="itemTool.tool.indexOf(21) == -1" />
  2627. <div class="checkDiv" v-else>
  2628. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2629. </div>
  2630. </div> -->
  2631. </div>
  2632. <!-- <div class="tool">
  2633. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2634. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2635. <div style="margin: 5px 0">AI体验</div>
  2636. </div>
  2637. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2638. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2639. <div class="checkDiv" v-else>
  2640. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2641. </div>
  2642. </div>
  2643. </div> -->
  2644. <div class="tool" :class="{
  2645. isToolChoose:
  2646. itemTool.tool.indexOf(23) != -1,
  2647. }" @click="
  2648. addTools(23, itemTaskIndex, toolIndex)
  2649. ">
  2650. <div class="whiteBIcon" @click.stop="
  2651. addTools(23, itemTaskIndex, toolIndex)
  2652. ">
  2653. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2654. <div style="margin: 5px 0">AI Python</div>
  2655. </div>
  2656. <div class="noCTool">
  2657. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2658. </div>
  2659. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1">
  2660. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2661. </div>
  2662. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2663. <img src="../../../assets/icon/checkNo.png" alt
  2664. v-if="itemTool.tool.indexOf(23) == -1" />
  2665. <div class="checkDiv" v-else>
  2666. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2667. </div>
  2668. </div> -->
  2669. </div>
  2670. <div class="tool" :class="{
  2671. isToolChoose:
  2672. itemTool.tool.indexOf(24) != -1,
  2673. }" @click="
  2674. addTools(24, itemTaskIndex, toolIndex)
  2675. ">
  2676. <div class="whiteBIcon" @click.stop="
  2677. addTools(24, itemTaskIndex, toolIndex)
  2678. ">
  2679. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2680. <div style="margin: 5px 0">
  2681. AI Blockly
  2682. </div>
  2683. </div>
  2684. <div class="noCTool">
  2685. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2686. </div>
  2687. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1">
  2688. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2689. </div>
  2690. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2691. <img src="../../../assets/icon/checkNo.png" alt
  2692. v-if="itemTool.tool.indexOf(24) == -1" />
  2693. <div class="checkDiv" v-else>
  2694. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2695. </div>
  2696. </div> -->
  2697. </div>
  2698. <div class="tool" :class="{
  2699. isToolChoose:
  2700. itemTool.tool.indexOf(32) != -1,
  2701. }" @click="
  2702. addTools(32, itemTaskIndex, toolIndex)
  2703. ">
  2704. <div class="whiteBIcon" @click.stop="
  2705. addTools(32, itemTaskIndex, toolIndex)
  2706. ">
  2707. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2708. <div style="margin: 5px 0">源码编辑</div>
  2709. </div>
  2710. <div class="noCTool">
  2711. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2712. </div>
  2713. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1">
  2714. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2715. </div>
  2716. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2717. <img src="../../../assets/icon/checkNo.png" alt
  2718. v-if="itemTool.tool.indexOf(32) == -1" />
  2719. <div class="checkDiv" v-else>
  2720. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2721. </div>
  2722. </div> -->
  2723. </div>
  2724. <div class="tool" :class="{
  2725. isToolChoose:
  2726. itemTool.tool.indexOf(57) != -1,
  2727. }" @click="
  2728. addTools(57, itemTaskIndex, toolIndex)
  2729. ">
  2730. <div class="whiteBIcon" @click.stop="
  2731. openTools(itemTaskIndex, 57, toolIndex)
  2732. ">
  2733. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2734. <div style="margin: 5px 0">CocoPi</div>
  2735. </div>
  2736. <div class="noCTool">
  2737. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2738. </div>
  2739. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1">
  2740. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2741. </div>
  2742. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2743. <img src="../../../assets/icon/checkNo.png" alt
  2744. v-if="itemTool.tool.indexOf(57) == -1" />
  2745. <div class="checkDiv" v-else>
  2746. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2747. </div>
  2748. </div> -->
  2749. </div>
  2750. <div class="tool" :class="{
  2751. isToolChoose:
  2752. itemTool.tool.indexOf(63) != -1,
  2753. }" @click="
  2754. addTools(63, itemTaskIndex, toolIndex)
  2755. ">
  2756. <div class="whiteBIcon" @click.stop="
  2757. addTools(63, itemTaskIndex, toolIndex)
  2758. ">
  2759. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2760. <div style="margin: 5px 0">海龟编程</div>
  2761. </div>
  2762. <div class="noCTool">
  2763. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2764. </div>
  2765. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1">
  2766. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2767. </div>
  2768. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2769. <img src="../../../assets/icon/checkNo.png" alt
  2770. v-if="itemTool.tool.indexOf(63) == -1" />
  2771. <div class="checkDiv" v-else>
  2772. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2773. </div>
  2774. </div> -->
  2775. </div>
  2776. <div class="tool" :class="{
  2777. isToolChoose:
  2778. itemTool.tool.indexOf(71) != -1,
  2779. }" @click="
  2780. addTools(71, itemTaskIndex, toolIndex)
  2781. ">
  2782. <div class="whiteBIcon" @click.stop="
  2783. addTools(71, itemTaskIndex, toolIndex)
  2784. ">
  2785. <img src="../../../assets/icon/fourthToolList/chatgpt.png" alt />
  2786. <div style="margin: 5px 0">AI智能体</div>
  2787. </div>
  2788. <div class="noCTool">
  2789. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2790. </div>
  2791. <div class="isCTool" v-if="itemTool.tool.indexOf(71) != -1">
  2792. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2793. </div>
  2794. </div>
  2795. </div>
  2796. <div class="toolSort" v-if="itemTool.toolType == 7">
  2797. <div class="tool" :class="{
  2798. isToolChoose:
  2799. itemTool.tool.indexOf(40) != -1,
  2800. }" @click.stop="
  2801. addTools(40, itemTaskIndex, toolIndex)
  2802. ">
  2803. <div class="whiteBIcon" @click.stop="
  2804. openTools(itemTaskIndex, 40, toolIndex)
  2805. ">
  2806. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2807. <div style="margin: 5px 0">个人评价</div>
  2808. </div>
  2809. <div class="noCTool">
  2810. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2811. </div>
  2812. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1">
  2813. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2814. </div>
  2815. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2816. <img src="../../../assets/icon/checkNo.png" alt
  2817. v-if="itemTool.tool.indexOf(40) == -1" />
  2818. <div class="checkDiv" v-else>
  2819. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2820. </div>
  2821. </div> -->
  2822. </div>
  2823. </div>
  2824. <div class="toolSort" v-if="itemTool.toolType == 5">
  2825. <div class="tool" :class="{
  2826. isToolChoose:
  2827. itemTool.tool.indexOf(28) != -1,
  2828. }" @click="
  2829. addTools(28, itemTaskIndex, toolIndex)
  2830. ">
  2831. <div class="whiteBIcon" @click.stop="
  2832. addTools(28, itemTaskIndex, toolIndex)
  2833. ">
  2834. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2835. <div style="margin: 5px 0">翻译</div>
  2836. </div>
  2837. <div class="noCTool">
  2838. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2839. </div>
  2840. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1">
  2841. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2842. </div>
  2843. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2844. <img src="../../../assets/icon/checkNo.png" alt
  2845. v-if="itemTool.tool.indexOf(28) == -1" />
  2846. <div class="checkDiv" v-else>
  2847. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2848. </div>
  2849. </div> -->
  2850. </div>
  2851. <div class="tool" :class="{
  2852. isToolChoose:
  2853. itemTool.tool.indexOf(31) != -1,
  2854. }" @click="
  2855. addTools(31, itemTaskIndex, toolIndex)
  2856. ">
  2857. <div class="whiteBIcon" @click.stop="
  2858. addTools(31, itemTaskIndex, toolIndex)
  2859. ">
  2860. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2861. <div style="margin: 5px 0">数字画板</div>
  2862. </div>
  2863. <div class="noCTool">
  2864. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2865. </div>
  2866. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1">
  2867. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2868. </div>
  2869. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2870. <img src="../../../assets/icon/checkNo.png" alt
  2871. v-if="itemTool.tool.indexOf(31) == -1" />
  2872. <div class="checkDiv" v-else>
  2873. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2874. </div>
  2875. </div> -->
  2876. </div>
  2877. <div class="tool" :class="{
  2878. isToolChoose:
  2879. itemTool.tool.indexOf(39) != -1,
  2880. }" @click="
  2881. addTools(39, itemTaskIndex, toolIndex)
  2882. ">
  2883. <div class="whiteBIcon" @click.stop="
  2884. addTools(39, itemTaskIndex, toolIndex)
  2885. ">
  2886. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  2887. <div style="margin: 5px 0">GeoGebra</div>
  2888. </div>
  2889. <div class="noCTool">
  2890. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2891. </div>
  2892. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1">
  2893. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2894. </div>
  2895. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2896. <img src="../../../assets/icon/checkNo.png" alt
  2897. v-if="itemTool.tool.indexOf(39) == -1" />
  2898. <div class="checkDiv" v-else>
  2899. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2900. </div>
  2901. </div> -->
  2902. </div>
  2903. <div class="tool" :class="{
  2904. isToolChoose:
  2905. itemTool.tool.indexOf(66) != -1,
  2906. }" @click="
  2907. addTools(66, itemTaskIndex, toolIndex)
  2908. ">
  2909. <div class="whiteBIcon" @click.stop="
  2910. addTools(66, itemTaskIndex, toolIndex)
  2911. ">
  2912. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  2913. <div style="margin: 5px 0">公式编辑</div>
  2914. </div>
  2915. <div class="noCTool">
  2916. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2917. </div>
  2918. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1">
  2919. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2920. </div>
  2921. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  2922. <img src="../../../assets/icon/checkNo.png" alt
  2923. v-if="itemTool.tool.indexOf(66) == -1" />
  2924. <div class="checkDiv" v-else>
  2925. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2926. </div>
  2927. </div> -->
  2928. </div>
  2929. <!-- <div class="tool">
  2930. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  2931. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  2932. <div style="margin: 5px 0">分子结构</div>
  2933. </div>
  2934. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  2935. <img src="../../../assets/icon/checkNo.png" alt
  2936. v-if="itemTool.tool.indexOf(67) == -1" />
  2937. <div class="checkDiv" v-else>
  2938. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2939. </div>
  2940. </div>
  2941. </div> -->
  2942. <div class="tool" :class="{
  2943. isToolChoose:
  2944. itemTool.tool.indexOf(68) != -1,
  2945. }" @click="
  2946. addTools(68, itemTaskIndex, toolIndex)
  2947. ">
  2948. <div class="whiteBIcon" @click.stop="
  2949. addTools(68, itemTaskIndex, toolIndex)
  2950. ">
  2951. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  2952. <div style="margin: 5px 0">时间轴</div>
  2953. </div>
  2954. <div class="noCTool">
  2955. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2956. </div>
  2957. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1">
  2958. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2959. </div>
  2960. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  2961. <img src="../../../assets/icon/checkNo.png" alt
  2962. v-if="itemTool.tool.indexOf(68) == -1" />
  2963. <div class="checkDiv" v-else>
  2964. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2965. </div>
  2966. </div> -->
  2967. </div>
  2968. <div class="tool" :class="{
  2969. isToolChoose:
  2970. itemTool.tool.indexOf(69) != -1,
  2971. }" @click="
  2972. addTools(69, itemTaskIndex, toolIndex)
  2973. ">
  2974. <div class="whiteBIcon" @click.stop="
  2975. openTools(itemTaskIndex, 69, toolIndex)
  2976. ">
  2977. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  2978. <div style="margin: 5px 0">英语写作</div>
  2979. </div>
  2980. <div class="noCTool">
  2981. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2982. </div>
  2983. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1">
  2984. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2985. </div>
  2986. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2987. <img src="../../../assets/icon/checkNo.png" alt
  2988. v-if="itemTool.tool.indexOf(4) == -1" />
  2989. <div class="checkDiv" v-else>
  2990. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2991. </div>
  2992. </div> -->
  2993. </div>
  2994. <div class="tool" :class="{
  2995. isToolChoose:
  2996. itemTool.tool.indexOf(70) != -1,
  2997. }" @click="
  2998. addTools(70, itemTaskIndex, toolIndex)
  2999. ">
  3000. <div class="whiteBIcon" @click.stop="
  3001. openTools(itemTaskIndex, 70, toolIndex)
  3002. ">
  3003. <img src="../../../assets/icon/thirdToolList/englishVoice.png" alt />
  3004. <div style="margin: 5px 0">英语口语</div>
  3005. </div>
  3006. <div class="noCTool">
  3007. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3008. </div>
  3009. <div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1">
  3010. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3011. </div>
  3012. </div>
  3013. <!-- <div class="tool">
  3014. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3015. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3016. <div style="margin: 5px 0">翻译</div>
  3017. </div>
  3018. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3019. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3020. <div class="checkDiv" v-else>
  3021. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3022. </div>
  3023. </div>
  3024. </div>
  3025. <div class="tool">
  3026. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3027. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3028. <div style="margin: 5px 0">魔盒识字</div>
  3029. </div>
  3030. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3031. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3032. <div class="checkDiv" v-else>
  3033. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3034. </div>
  3035. </div>
  3036. </div>
  3037. <div class="tool">
  3038. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3039. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3040. <div style="margin: 5px 0">24点</div>
  3041. </div>
  3042. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3043. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3044. <div class="checkDiv" v-else>
  3045. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3046. </div>
  3047. </div>
  3048. </div>
  3049. <div class="tool">
  3050. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3051. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3052. <div style="margin: 5px 0">数学画板</div>
  3053. </div>
  3054. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3055. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3056. <div class="checkDiv" v-else>
  3057. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3058. </div>
  3059. </div>
  3060. </div>
  3061. <div class="tool">
  3062. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3063. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3064. <div style="margin: 5px 0">GeoGebra</div>
  3065. </div>
  3066. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3067. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3068. <div class="checkDiv" v-else>
  3069. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3070. </div>
  3071. </div>
  3072. </div>
  3073. <div class="tool">
  3074. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3075. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3076. <div style="margin: 5px 0">模拟驾驶</div>
  3077. </div>
  3078. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3079. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3080. <div class="checkDiv" v-else>
  3081. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3082. </div>
  3083. </div>
  3084. </div>
  3085. <div class="tool">
  3086. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3087. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3088. <div style="margin: 5px 0">路径搜索</div>
  3089. </div>
  3090. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3091. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3092. <div class="checkDiv" v-else>
  3093. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3094. </div>
  3095. </div>
  3096. </div>
  3097. <div class="tool">
  3098. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3099. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3100. <div style="margin: 5px 0">深度学习</div>
  3101. </div>
  3102. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3103. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3104. <div class="checkDiv" v-else>
  3105. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3106. </div>
  3107. </div>
  3108. </div>
  3109. <div class="tool">
  3110. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3111. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3112. <div style="margin: 5px 0">全历史</div>
  3113. </div>
  3114. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3115. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3116. <div class="checkDiv" v-else>
  3117. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3118. </div>
  3119. </div>
  3120. </div>
  3121. </div>
  3122. <div class="toolSort" v-if="itemTool.toolType == 4">
  3123. <div class="tool">
  3124. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3125. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3126. <div style="margin: 5px 0">课程设计</div>
  3127. </div>
  3128. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3129. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3130. <div class="checkDiv" v-else>
  3131. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3132. </div>
  3133. </div>
  3134. </div>
  3135. <div class="tool">
  3136. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3137. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3138. <div style="margin: 5px 0">目标管理</div>
  3139. </div>
  3140. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3141. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3142. <div class="checkDiv" v-else>
  3143. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3144. </div>
  3145. </div>
  3146. </div> -->
  3147. <!-- <div class="tool">
  3148. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3149. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3150. <div style="margin: 5px 0">汉字宫</div>
  3151. </div>
  3152. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3153. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3154. <div class="checkDiv" v-else>
  3155. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3156. </div>
  3157. </div>
  3158. </div> -->
  3159. </div>
  3160. </div>
  3161. <!-- v-show="!itemTool.isFold3" -->
  3162. <div class="op_tool_box"
  3163. v-loading="taskDetailLoading3.indexOf('task-' + itemTaskIndex + toolIndex) !== -1">
  3164. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述"
  3165. class="binfo_input" style="
  3166. margin: 0 0 20px 0;
  3167. width: 100% !important;
  3168. " v-model="itemTool.toolDetail"></textarea>
  3169. <div class="op_box">
  3170. <div class="op_remark">*可以将需要优化的建议添加在工具描述后,点击“智能优化”,自动进行修改</div>
  3171. <div class="r_pub_button_op"
  3172. @contextmenu.prevent="openAiDialog(1, 'aiDetail3', itemTool, itemTaskIndex, toolIndex)"
  3173. @click="openAiDialog(2, 'aiDetail3', itemTool.toolDetail, itemTaskIndex, toolIndex)">
  3174. 智能优化</div>
  3175. </div>
  3176. </div>
  3177. </div>
  3178. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  3179. <div class="addToolImg">
  3180. <img src="../../../assets/icon/add.png" alt />
  3181. </div>
  3182. <div>添加工具</div>
  3183. </div> -->
  3184. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="
  3185. margin: 0 auto;
  3186. padding: 0 30px;
  3187. height: 45px;
  3188. ">
  3189. 添加工具
  3190. </button>
  3191. </div>
  3192. </div>
  3193. <div v-else-if="
  3194. unitJson[unitIndex].easy == 2 ||
  3195. unitJson[unitIndex].easy == 4
  3196. " class="toolChoose" style="padding: 0 0 40px">
  3197. <div class="tools">
  3198. <div class="leftTools" style="width: 100%" v-for="(
  3199. itemTool, toolIndex
  3200. ) in itemTask.toolChoose" :key="toolIndex">
  3201. <div>
  3202. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  3203. margin: 0 0 20px 0;
  3204. width: 100% !important;
  3205. " v-model="itemTool.toolDetail"></textarea>
  3206. </div>
  3207. <div style="
  3208. display: flex;
  3209. flex-direction: row;
  3210. align-items: baseline;
  3211. flex-wrap: nowrap;
  3212. justify-content: flex-start;
  3213. position: relative;
  3214. ">
  3215. <div style="margin-right: 20px; font-weight: bold"
  3216. :id="'gj' + itemTaskIndex + '' + toolIndex">
  3217. 工具 {{ toolIndex + 1 }} :
  3218. </div>
  3219. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3220. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  3221. </div>
  3222. <div style="min-height: 163px">
  3223. <div class="toolSort">
  3224. <div class="tool">
  3225. <div class="whiteBIcon" @click="
  3226. openTools(itemTaskIndex, 1, toolIndex)
  3227. ">
  3228. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3229. <div style="margin: 5px 0">电子白板</div>
  3230. </div>
  3231. <div class="check" @click="
  3232. addTools(1, itemTaskIndex, toolIndex)
  3233. ">
  3234. <img src="../../../assets/icon/checkNo.png" alt
  3235. v-if="itemTool.tool.indexOf(1) == -1" />
  3236. <div class="checkDiv" v-else>
  3237. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3238. </div>
  3239. </div>
  3240. </div>
  3241. <div class="tool">
  3242. <div class="whiteBIcon" @click="
  3243. openTools(itemTaskIndex, 52, toolIndex)
  3244. ">
  3245. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3246. <div style="margin: 5px 0">文档</div>
  3247. </div>
  3248. <div class="check" @click="
  3249. addTools(52, itemTaskIndex, toolIndex)
  3250. ">
  3251. <img src="../../../assets/icon/checkNo.png" alt
  3252. v-if="itemTool.tool.indexOf(52) == -1" />
  3253. <div class="checkDiv" v-else>
  3254. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3255. </div>
  3256. </div>
  3257. </div>
  3258. <div class="tool">
  3259. <div class="whiteBIcon" @click="
  3260. openTools(itemTaskIndex, 3, toolIndex)
  3261. ">
  3262. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3263. <div style="margin: 5px 0">思维导图</div>
  3264. </div>
  3265. <div class="check" @click="
  3266. addTools(3, itemTaskIndex, toolIndex)
  3267. ">
  3268. <img src="../../../assets/icon/checkNo.png" alt
  3269. v-if="itemTool.tool.indexOf(3) == -1" />
  3270. <div class="checkDiv" v-else>
  3271. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3272. </div>
  3273. </div>
  3274. </div>
  3275. <div class="tool">
  3276. <div class="whiteBIcon" @click="
  3277. openTools(itemTaskIndex, 4, toolIndex)
  3278. ">
  3279. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3280. <div style="margin: 5px 0">问卷调查</div>
  3281. </div>
  3282. <div class="check" @click="
  3283. addTools(4, itemTaskIndex, toolIndex)
  3284. ">
  3285. <img src="../../../assets/icon/checkNo.png" alt
  3286. v-if="itemTool.tool.indexOf(4) == -1" />
  3287. <div class="checkDiv" v-else>
  3288. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3289. </div>
  3290. </div>
  3291. </div>
  3292. <div class="tool">
  3293. <div class="whiteBIcon" @click="
  3294. openTools(itemTaskIndex, 45, toolIndex)
  3295. ">
  3296. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3297. <div style="margin: 5px 0">选择题</div>
  3298. </div>
  3299. <div class="check" @click="
  3300. addTools(45, itemTaskIndex, toolIndex)
  3301. ">
  3302. <img src="../../../assets/icon/checkNo.png" alt
  3303. v-if="itemTool.tool.indexOf(45) == -1" />
  3304. <div class="checkDiv" v-else>
  3305. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3306. </div>
  3307. </div>
  3308. </div>
  3309. <div class="tool">
  3310. <div class="whiteBIcon" @click="
  3311. openTools(itemTaskIndex, 15, toolIndex)
  3312. ">
  3313. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3314. <div style="margin: 5px 0">问答</div>
  3315. </div>
  3316. <div class="check" @click="
  3317. addTools(15, itemTaskIndex, toolIndex)
  3318. ">
  3319. <img src="../../../assets/icon/checkNo.png" alt
  3320. v-if="itemTool.tool.indexOf(15) == -1" />
  3321. <div class="checkDiv" v-else>
  3322. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. <div class="tool">
  3327. <div class="whiteBIcon" @click="
  3328. addTools(16, itemTaskIndex, toolIndex)
  3329. ">
  3330. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3331. <div style="margin: 5px 0">作业提交</div>
  3332. </div>
  3333. <div class="check" @click="
  3334. addTools(16, itemTaskIndex, toolIndex)
  3335. ">
  3336. <img src="../../../assets/icon/checkNo.png" alt
  3337. v-if="itemTool.tool.indexOf(16) == -1" />
  3338. <div class="checkDiv" v-else>
  3339. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3340. </div>
  3341. </div>
  3342. </div>
  3343. <div class="tool">
  3344. <div class="whiteBIcon" @click="
  3345. openTools(itemTaskIndex, 50, toolIndex)
  3346. ">
  3347. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3348. <div style="margin: 5px 0">批量上传</div>
  3349. </div>
  3350. <div class="check" @click="
  3351. addTools(50, itemTaskIndex, toolIndex)
  3352. ">
  3353. <img src="../../../assets/icon/checkNo.png" alt
  3354. v-if="itemTool.tool.indexOf(50) == -1" />
  3355. <div class="checkDiv" v-else>
  3356. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3357. </div>
  3358. </div>
  3359. </div>
  3360. <div class="tool">
  3361. <div class="whiteBIcon" @click="
  3362. openTools(itemTaskIndex, 41, toolIndex)
  3363. ">
  3364. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3365. <div style="margin: 5px 0">选择匹配</div>
  3366. </div>
  3367. <div class="check" @click="
  3368. addTools(41, itemTaskIndex, toolIndex)
  3369. ">
  3370. <img src="../../../assets/icon/checkNo.png" alt
  3371. v-if="itemTool.tool.indexOf(41) == -1" />
  3372. <div class="checkDiv" v-else>
  3373. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3374. </div>
  3375. </div>
  3376. </div>
  3377. <div class="tool">
  3378. <div class="whiteBIcon" @click="
  3379. openTools(itemTaskIndex, 47, toolIndex)
  3380. ">
  3381. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3382. <div style="margin: 5px 0">排序</div>
  3383. </div>
  3384. <div class="check" @click="
  3385. addTools(47, itemTaskIndex, toolIndex)
  3386. ">
  3387. <img src="../../../assets/icon/checkNo.png" alt
  3388. v-if="itemTool.tool.indexOf(47) == -1" />
  3389. <div class="checkDiv" v-else>
  3390. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. <div class="tool">
  3395. <div class="whiteBIcon" @click="
  3396. openTools(itemTaskIndex, 48, toolIndex)
  3397. ">
  3398. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3399. <div style="margin: 5px 0">表格</div>
  3400. </div>
  3401. <div class="check" @click="
  3402. addTools(48, itemTaskIndex, toolIndex)
  3403. ">
  3404. <img src="../../../assets/icon/checkNo.png" alt
  3405. v-if="itemTool.tool.indexOf(48) == -1" />
  3406. <div class="checkDiv" v-else>
  3407. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3408. </div>
  3409. </div>
  3410. </div>
  3411. </div>
  3412. </div>
  3413. </div>
  3414. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3415. <div class="addToolImg">
  3416. <img src="../../../assets/icon/add.png" alt />
  3417. </div>
  3418. <div>添加工具</div>
  3419. </div> -->
  3420. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  3421. style="margin: 35px auto 20px">
  3422. 添加工具
  3423. </button>
  3424. </div>
  3425. </div>
  3426. <div v-else-if="
  3427. unitJson[unitIndex].easy == 1 ||
  3428. (unitJson[unitIndex].easy == 5 &&
  3429. itemTask.taskType == 2)
  3430. " class="toolChoose" style="padding: 0 0 40px">
  3431. <div class="tools">
  3432. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0" v-for="(
  3433. itemTool, toolIndex
  3434. ) in itemTask.toolChoose" :key="toolIndex">
  3435. <div style="min-height: 163px">
  3436. <div class="toolSort">
  3437. <div class="tool">
  3438. <div class="whiteBIcon" @click="
  3439. openTools(itemTaskIndex, 50, toolIndex)
  3440. ">
  3441. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3442. <div style="margin: 5px 0">批量上传</div>
  3443. </div>
  3444. <div class="check" @click="
  3445. addTools(50, itemTaskIndex, toolIndex)
  3446. ">
  3447. <img src="../../../assets/icon/checkNo.png" alt
  3448. v-if="itemTool.tool.indexOf(50) == -1" />
  3449. <div class="checkDiv" v-else>
  3450. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3451. </div>
  3452. </div>
  3453. </div>
  3454. </div>
  3455. </div>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  3460. v-loading="taskDetailLoading4.indexOf('task-' + itemTaskIndex) !== -1">
  3461. <div class="elist_title">
  3462. <div style="
  3463. display: flex;
  3464. flex-direction: row;
  3465. align-items: center;
  3466. margin: 20px 0;
  3467. ">
  3468. <div class="lineTitle clineTitle">评价设置</div>
  3469. <div class="r_pub_button_op" style="margin-left:auto;"
  3470. @contextmenu.prevent="openAiDialog(1, 'aiDetail4', itemTask.eList, itemTaskIndex)"
  3471. @click="openAiDialog(2, 'aiDetail4', itemTask.eList, itemTaskIndex)">智能优化</div>
  3472. <!-- <div class="line" style="width: 90%"></div> -->
  3473. </div>
  3474. </div>
  3475. <div class="mbCss">
  3476. <div class="pjCss" :style="{
  3477. width: itemTask.isEvaFold
  3478. ? 'calc(100% - 55%)'
  3479. : 'calc(100% - 120px)',
  3480. }">
  3481. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3482. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3483. <span>评价维度:</span>
  3484. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  3485. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
  3486. <!-- </el-tooltip> -->
  3487. <!-- <span>评星等级:</span>
  3488. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  3489. disabled></el-rate> -->
  3490. <div class="remove" @click="
  3491. deletEList(
  3492. unitIndex,
  3493. itemTaskIndex,
  3494. eIndex
  3495. )
  3496. "></div>
  3497. <div class="elist_inptu_text">
  3498. <span>维度描述:</span>
  3499. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  3500. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
  3501. <!-- </el-tooltip> -->
  3502. </div>
  3503. <div class="elist_inptu_text" v-if="evalua">
  3504. <span>目标:</span>
  3505. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  3506. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3507. @change="forceUpdate()">
  3508. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3509. :value="e.name">
  3510. </el-option>
  3511. </el-select> -->
  3512. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3513. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3514. </div>
  3515. </div>
  3516. </div>
  3517. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  3518. style="margin: 35px 35px 0 0">
  3519. <div class="addToolImg">
  3520. <img src="../../../assets/icon/add.png" alt />
  3521. </div>
  3522. <div>添加</div>
  3523. </div> -->
  3524. <div class="eva_btn_box">
  3525. <div class="eva_btn_left_box">
  3526. <button class="c_pub_button_add pub_btn_eval_img"
  3527. @click="addEList(unitIndex, itemTaskIndex)">
  3528. 添加
  3529. </button>
  3530. <button class="c_pub_button_add pub_btn_eval_source_img"
  3531. @click="openEList(unitIndex, itemTaskIndex)">
  3532. 资源
  3533. </button>
  3534. </div>
  3535. <button class="c_pub_button_add" @click="addCET(unitIndex, itemTaskIndex)"
  3536. v-if="itemTask.eList && itemTask.eList.length">
  3537. 添加资源模板
  3538. </button>
  3539. </div>
  3540. </div>
  3541. <div v-if="evalua" style="
  3542. border: 1px solid #e5e5e5;
  3543. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3544. " :style="{
  3545. width: itemTask.isEvaFold ? '55%' : '116px',
  3546. }" class="evaCss">
  3547. <!-- <div class="e_add_top">
  3548. <div class="e_add_title">
  3549. <span>当前使用目标管理</span>
  3550. <span>{{ eTitle }}</span>
  3551. <img src="../../../assets/line.png" class="cru_line" style="
  3552. width: 125px;
  3553. height: 20px;
  3554. bottom: -10px;
  3555. left: 155px;
  3556. " />
  3557. </div>
  3558. </div> -->
  3559. <div class="e_add_content" style="width: 100%">
  3560. <div class="e_add_list_pbox" style="width: 100%">
  3561. <div class="e_add_list_pbox_title">
  3562. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  3563. <div class="type_content" v-if="itemTask.isEvaFold">
  3564. <span :class="{ active: typeMode == 1 }"
  3565. @click="OtherMb(1, itemTaskIndex)">目标树</span>
  3566. <span :class="{ active: typeMode == 2 }"
  3567. @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  3568. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  3569. </div>
  3570. <div v-if="itemTask.isEvaFold" class="show_taskD show" style="margin: 0 0 0 auto"
  3571. @click="foldEva(itemTaskIndex)">
  3572. <img src="../../../assets/icon/new/icon-slide.png" />收起目标
  3573. </div>
  3574. <div v-else style="margin: 0 0 0 auto" class="show_taskD"
  3575. @click="foldEva(itemTaskIndex)">
  3576. <img src="../../../assets/icon/new/icon-slide.png" />展开目标
  3577. </div>
  3578. </div>
  3579. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold"
  3580. style="min-height: 200px">
  3581. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3582. " v-if="typeMode == 1"></Mind>
  3583. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3584. </Sunburst>
  3585. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3586. v-if="typeMode == 3"></SeeBoard>
  3587. </div>
  3588. </div>
  3589. </div>
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <div class="funBlock" style="padding: 0">
  3594. <div class="fold" @click="fold(itemTaskIndex, $event)">
  3595. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }"></div>
  3596. <div>
  3597. {{
  3598. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  3599. }}
  3600. </div>
  3601. </div>
  3602. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3603. <div>展开</div>
  3604. <div class="arrow">
  3605. <img src="../../../assets/icon/expand.png" alt />
  3606. </div>
  3607. </div> -->
  3608. </div>
  3609. </div>
  3610. </div>
  3611. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3612. <!-- <div>
  3613. <img src="../../../../assets/icon/new/addStage.png" alt />
  3614. <span>添加任务</span>
  3615. </div> -->
  3616. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  3617. 添加任务
  3618. </button>
  3619. </div>
  3620. </div>
  3621. <div class="info_btnBox3">
  3622. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  3623. goTo(
  3624. '/course?userid=' +
  3625. userid +
  3626. '&oid=' +
  3627. oid +
  3628. '&org=' +
  3629. org +
  3630. '&role=' +
  3631. role
  3632. )
  3633. ">
  3634. 返回课程
  3635. </button>
  3636. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5"
  3637. @click="lastSteps" style="background: #dbdbdb">
  3638. {{ steps == 4 ? "返回课程" : "上一步" }}
  3639. </button>
  3640. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  3641. pub_btn_next_img: steps != 3,
  3642. pub_btn_finish_img: steps == 3,
  3643. }">
  3644. {{ steps == 3 ? "确认上传" : "下一步" }}
  3645. </button>
  3646. <button class="c_pub_button_confirm" v-if="steps < 4" @click="openSaveTips">保存模板</button>
  3647. </div>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. </div>
  3652. <div style="
  3653. width: calc(100% - 20px);
  3654. background: rgb(255, 255, 255);
  3655. border-radius: 10px;
  3656. " v-if="steps == 4">
  3657. <div class="basic_box_success">
  3658. <div class="right_img">
  3659. <img src="../../../assets/icon/right.png" alt />
  3660. </div>
  3661. <div style="font-weight: bold">成功</div>
  3662. <!-- <div>您的课程编号</div>
  3663. <div class="number">{{ number }}</div>-->
  3664. <!-- <div class="success_button">
  3665. <div class="look_course" @click="isNoFinsh">
  3666. 邀请老师协同编辑
  3667. </div>
  3668. <div class="attend_others" @click="goCourse">预览课程</div>
  3669. </div> -->
  3670. </div>
  3671. </div>
  3672. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3673. @mouseleave="btnDisplay(false)" v-if="false">
  3674. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  3675. goTo(
  3676. '/course?userid=' +
  3677. userid +
  3678. '&oid=' +
  3679. oid +
  3680. '&org=' +
  3681. org +
  3682. '&role=' +
  3683. role
  3684. )
  3685. ">
  3686. 返回课程
  3687. </button>
  3688. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  3689. @click="lastSteps">
  3690. {{ steps == 4 ? "返回课程" : "上一步" }}
  3691. </button>
  3692. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps" :class="{
  3693. pub_btn_next_img: steps != 3,
  3694. pub_btn_finish_img: steps == 3,
  3695. }">
  3696. {{ steps == 3 ? "确认上传" : "下一步" }}
  3697. </button>
  3698. </div>
  3699. </div>
  3700. </div>
  3701. <div class="leftBar" v-if="promptShow">
  3702. <aiTips ttitle="基础资料" title="课程描述优化" :detail="aiJson.aiDetail" pan="aiDetail" @setAiJson="setAiJson"/>
  3703. <aiTips ttitle="基础资料" title="生成大纲按钮" :detail="aiJson.aiOutline" pan="aiOutline" @setAiJson="setAiJson"/>
  3704. <aiTips ttitle="课程大纲" title="大纲描述优化" :detail="aiJson.aiDetail1" pan="aiDetail1" @setAiJson="setAiJson"/>
  3705. <aiTips ttitle="课程大纲" title="生成教案按钮" :detail="aiJson.aiTeacher" pan="aiTeacher" @setAiJson="setAiJson"/>
  3706. <aiTips ttitle="生成教案" title="教案描述优化" :detail="aiJson.teacherDetail" pan="teacherDetail" @setAiJson="setAiJson"/>
  3707. <aiTips ttitle="生成教案" title="生成任务按钮" :detail="aiJson.aiTask" pan="aiTask" @setAiJson="setAiJson"/>
  3708. <aiTips ttitle="任务详情" title="任务描述优化" :detail="aiJson.aiDetail2" pan="aiDetail2" @setAiJson="setAiJson"/>
  3709. <aiTips ttitle="任务详情" title="工具描述优化" :detail="aiJson.aiDetail3" pan="aiDetail3" @setAiJson="setAiJson"/>
  3710. <aiTips ttitle="任务详情" title="任务评价优化" :detail="aiJson.aiDetail4" pan="aiDetail4" @setAiJson="setAiJson"/>
  3711. </div>
  3712. </div>
  3713. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3714. class="dialog_diy2 customWidth">
  3715. <div>请复制该链接邀请协同编辑</div>
  3716. <div>http://www.boomyon.com/index-zhang.com</div>
  3717. <span slot="footer" class="dialog-footer">
  3718. <el-button type="primary">复制链接分享</el-button>
  3719. <el-button @click="dialogVisible = false">取消</el-button>
  3720. </span>
  3721. </el-dialog>
  3722. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true"
  3723. width="25%" :before-close="handleClose" class="dialog_diy2 customWidth">
  3724. <el-form>
  3725. <el-form-item label="文档标题">
  3726. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3727. </el-form-item>
  3728. <div>文档简介</div>
  3729. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3730. </el-form>
  3731. <span slot="footer" class="dialog-footer">
  3732. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3733. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3734. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3735. </span>
  3736. </el-dialog>
  3737. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3738. :before-close="handleClose" class="dialog_diy">
  3739. <el-form>
  3740. <el-form-item label="文档标题">
  3741. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3742. </el-form-item>
  3743. <div>文档内容</div>
  3744. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3745. </el-form>
  3746. <span slot="footer" class="dialog-footer">
  3747. <el-button @click="clearChoose">取 消</el-button>
  3748. <el-button type="primary" @click="wordNext()">确定</el-button>
  3749. </span>
  3750. </el-dialog>
  3751. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3752. :before-close="handleClose" class="dialog_diy">
  3753. <el-form>
  3754. <el-form-item label="文本标题">
  3755. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3756. placeholder="请输入文本标题..."></el-input>
  3757. </el-form-item>
  3758. <!-- <div>富文本内容</div> -->
  3759. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3760. </el-form>
  3761. <span slot="footer" class="dialog-footer">
  3762. <el-button @click="clearAttText">取 消</el-button>
  3763. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3764. </span>
  3765. </el-dialog>
  3766. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3767. :before-close="handleClose" class="dialog_diy lineCss">
  3768. <el-form>
  3769. <el-form-item label="标题" :label-width="formLabelWidth">
  3770. <span>
  3771. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3772. </span>
  3773. </el-form-item>
  3774. <el-form-item label="链接" :label-width="formLabelWidth">
  3775. <span>
  3776. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3777. </span>
  3778. </el-form-item>
  3779. </el-form>
  3780. <span slot="footer" class="dialog-footer">
  3781. <el-button @click="clearLine">取 消</el-button>
  3782. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3783. </span>
  3784. </el-dialog>
  3785. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3786. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3787. <div>
  3788. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3789. </div>
  3790. <span slot="footer" class="dialog-footer">
  3791. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3792. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3793. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3794. </span>
  3795. </el-dialog>
  3796. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3797. :before-close="handleClose" class="addNewPP customWidth">
  3798. <div class="people">
  3799. <div class="people_top">
  3800. <div class="people_nav">选择成员</div>
  3801. <div class="people_top_right">
  3802. <div class="people_search">
  3803. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3804. <div class="search_img" @click="searchStudent">
  3805. <img src="../../../assets/icon/search.png" alt />
  3806. </div>
  3807. </div>
  3808. </div>
  3809. </div>
  3810. <el-checkbox-group v-model="checkboxList" class="people_name">
  3811. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3812. "暂无学生可选" }}</el-checkbox>
  3813. </el-checkbox-group>
  3814. </div>
  3815. <span slot="footer" class="dialog-footer">
  3816. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3817. <el-button type="primary" @click="isAddPP">确定</el-button>
  3818. </span>
  3819. </el-dialog>
  3820. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3821. :before-close="handleClose" class="addNewPP2">
  3822. <div class="check_classBox">
  3823. <div class="check_class_right">
  3824. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="(gradeId = ''), getClass()">
  3825. 全部
  3826. </div>
  3827. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3828. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="(gradeId = item.id), getClass()">
  3829. {{ item.name }}
  3830. </div>
  3831. </el-tooltip>
  3832. </div>
  3833. <div class="check_class_left">
  3834. <div class="check_class_all_box">
  3835. <div class="check_class_left_title">选择班级</div>
  3836. <div style="display: flex; align-items: center; margin-left: auto">
  3837. <el-checkbox v-model="checkAll" @change="handleCheckAllChange" class="all_check">全选</el-checkbox>
  3838. </div>
  3839. </div>
  3840. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3841. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3842. </div> -->
  3843. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  3844. v-if="grade2.length">
  3845. <div v-for="item in grade2" :key="item.id" class="class_item">
  3846. <el-checkbox :label="item.id">
  3847. {{ item.name }}
  3848. </el-checkbox>
  3849. </div>
  3850. </el-checkbox-group>
  3851. <div v-if="!grade2.length">暂无数据</div>
  3852. </div>
  3853. </div>
  3854. <span slot="footer" class="dialog-footer">
  3855. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3856. <el-button type="primary" @click="isAddClass">确定</el-button>
  3857. </span>
  3858. </el-dialog>
  3859. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3860. :before-close="handleClose" class="addNewPP customWidth">
  3861. <div style="display: flex;justify-content: space-between;">
  3862. <div style="width: 100px;overflow: auto;overflow-x: hidden; height: 350px;flex-shrink:0;padding-right: 10px;">
  3863. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == ''}" @click="getTeacher('')">
  3864. 全部
  3865. </div>
  3866. <div class="CollaborativeCss" :class="{CollaborativeCss2:i.id == collid}" @click="getTeacher(i.id)" v-for="(i) in CollaborativeTeaList" :key="i.id">
  3867. <el-tooltip
  3868. placement="top"
  3869. :content="i.name"
  3870. >
  3871. <span>{{i.name}}</span>
  3872. </el-tooltip>
  3873. </div>
  3874. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == '1xpz'}" @click="getTeacherCopy()">
  3875. 其他
  3876. </div>
  3877. </div>
  3878. <div style="flex:1" v-loading="CollLoading">
  3879. <div class="people">
  3880. <div class="people_top">
  3881. <div class="people_top_right">
  3882. <div class="people_search">
  3883. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher(collid)"></el-input>
  3884. <div class="search_img" @click="getTeacher(collid)">
  3885. <img src="../../../assets/icon/search.png" alt />
  3886. </div>
  3887. </div>
  3888. </div>
  3889. <div class="people_nav" style="display: flex; align-items: center">
  3890. <div class="check_class_left_title">选择成员</div>
  3891. <div style="display: flex; align-items: center; margin-left: auto">
  3892. <el-checkbox v-model="checkAll2" @change="handleCheckAllChange2" class="all_check">全选</el-checkbox>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length"
  3897. @change="InviteChange2">
  3898. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3899. <div class="t_j_box">
  3900. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3901. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3902. </el-tooltip>
  3903. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  3904. <span>{{ item.username.split('@')[0] }}</span>
  3905. </el-tooltip>
  3906. <el-tooltip placement="top" :content="item.school">
  3907. <span>{{ item.school }}</span>
  3908. </el-tooltip>
  3909. </div>
  3910. </el-checkbox>
  3911. </el-checkbox-group>
  3912. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3913. </div>
  3914. </div>
  3915. </div>
  3916. <span slot="footer" class="dialog-footer">
  3917. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3918. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3919. </span>
  3920. </el-dialog>
  3921. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px" :before-close="(done) => {
  3922. closePan(4);
  3923. }
  3924. " class="dialog_diy fullStyle">
  3925. <div style="height: 100%">
  3926. <div class="a_add_title" style="
  3927. display: flex;
  3928. flex-direction: row;
  3929. align-items: center;
  3930. justify-content: center;
  3931. ">
  3932. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3933. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3934. </div>
  3935. <div class="a_addBox" style="height: calc(100% - 50px)">
  3936. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3937. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3938. <div class="a_add_checkType">
  3939. <span :class="{
  3940. active:
  3941. askJson.askJson[index1].type == '1' ||
  3942. !askJson.askJson[index1].type,
  3943. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3944. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3945. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3946. </div>
  3947. <div class="a_add_head">
  3948. <div style="
  3949. display: flex;
  3950. align-items: center;
  3951. width: 100%;
  3952. margin-right: 20px;
  3953. ">
  3954. <span style="min-width: fit-content">{{
  3955. index1 + 1 + "、"
  3956. }}</span>
  3957. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3958. v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目" @change="() => {
  3959. $forceUpdate();
  3960. }
  3961. "></textarea>
  3962. </div>
  3963. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px" v-if="askJson.askCount != 1">
  3964. <div class="chapter_upload_up" @click.stop="askMove(1, index1)"></div>
  3965. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3966. </div>
  3967. <div class="a_add_head_div">
  3968. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3969. </el-button>
  3970. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3971. </div>
  3972. </div>
  3973. <div class="a_add_body">
  3974. <div class="a_add_input" style="flex-direction: column">
  3975. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style="
  3976. margin: 20px 10px 0 0;
  3977. display: flex;
  3978. align-items: center;
  3979. position: relative;
  3980. ">
  3981. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  3982. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3983. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项" style="width: 300px"
  3984. @change="() => {
  3985. $forceUpdate();
  3986. }
  3987. "></textarea>
  3988. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px"
  3989. v-if="askJson.askJson[index1].askItem != 1">
  3990. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)"></div>
  3991. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3992. </div>
  3993. <div class="a_add_body_div">
  3994. <el-button type="primary" size="small"
  3995. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3996. <el-button type="primary" size="small" @click="
  3997. deletecheckList(askJson.askJson[index1], checkIndex)
  3998. " v-if="askJson.askJson[index1].askItem != 1">删除
  3999. </el-button>
  4000. </div>
  4001. </div>
  4002. </div>
  4003. <!-- <div class="a_add_body_div">
  4004. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  4005. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  4006. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  4007. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  4008. </el-button>
  4009. </div> -->
  4010. </div>
  4011. </div>
  4012. </div>
  4013. </div>
  4014. <span slot="footer" class="dialog-footer">
  4015. <el-button @click="closePan(4)">取 消</el-button>
  4016. <el-button type="primary" @click="addAsk">确 定</el-button>
  4017. </span>
  4018. </el-dialog>
  4019. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px" :before-close="(done) => {
  4020. closePan(45);
  4021. }
  4022. " class="dialog_diy fullStyle">
  4023. <div style="height: 100%">
  4024. <!-- <div class="a_add_title" style="
  4025. display: flex;
  4026. flex-direction: row;
  4027. align-items: center;
  4028. justify-content: center;
  4029. ">
  4030. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4031. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4032. </div> -->
  4033. <div class="a_addBox" style="height: 100%">
  4034. <div style="
  4035. font-size: 16px;
  4036. color: #c7c7c7;
  4037. display: flex;
  4038. align-items: center;
  4039. ">
  4040. <!-- 请输入题目内容 -->
  4041. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  4042. v-if="isPasteChoice">
  4043. 智能粘贴
  4044. </button>
  4045. </div>
  4046. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4047. <div class="a_add_checkType">
  4048. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  4049. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  4050. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  4051. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  4052. </div>
  4053. <div class="a_add_head">
  4054. <div class="timuUpImg">
  4055. <div style="display: flex; align-items: center">
  4056. <span style="min-width: fit-content">{{
  4057. index1 + 1 + "、"
  4058. }}</span>
  4059. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  4060. placeholder="请输入题目">
  4061. </el-input> -->
  4062. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4063. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目" @change="() => {
  4064. $forceUpdate();
  4065. }
  4066. "></textarea>
  4067. </div>
  4068. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  4069. <div class="chapter_upload_up" @click.stop="testMove(1, index1)"></div>
  4070. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  4071. </div>
  4072. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px">
  4073. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4074. <input type="file" accept="image/*" style="display: none"
  4075. @change="beforeUploadTiMu($event, index1)" />
  4076. </div>
  4077. </div>
  4078. <div class="a_add_head_div">
  4079. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4080. </el-button>
  4081. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4082. </div>
  4083. </div>
  4084. <div class="timuImgBox" v-if="
  4085. testJson.testJson[index1].timuList &&
  4086. testJson.testJson[index1].timuList.length
  4087. ">
  4088. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4089. @click.stop="previewImg(timg.src)">
  4090. <img :src="timg.src" alt="" />
  4091. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4092. <img src="../../../assets/icon/delete.png" alt="" />
  4093. </div>
  4094. </div>
  4095. </div>
  4096. <div class="a_add_body">
  4097. <div class="a_add_input a_add_input_choice">
  4098. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4099. @change="() => {
  4100. $forceUpdate();
  4101. }
  4102. ">
  4103. <div class="radioBox">
  4104. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4105. .testItem" :key="checkIndex" :label="checkIndex">
  4106. <div style="margin-right: 10px">
  4107. 选项{{ checkIndex + 1 }}
  4108. </div>
  4109. <div style="margin-right: 10px; width: 300px" v-if="
  4110. testJson.testJson[index1].checkList[checkIndex] &&
  4111. testJson.testJson[index1].checkList[checkIndex]
  4112. .imgType &&
  4113. testJson.testJson[index1].checkList[checkIndex]
  4114. .imgType == 1
  4115. ">
  4116. <div class="inImg" @click.stop="
  4117. previewImg(
  4118. testJson.testJson[index1].checkList[checkIndex]
  4119. .src
  4120. )
  4121. ">
  4122. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4123. .src
  4124. " lazy />
  4125. <!-- <img :src="
  4126. testJson.testJson[index1].checkList[checkIndex]
  4127. .src
  4128. " alt="" /> -->
  4129. </div>
  4130. </div>
  4131. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4132. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4133. $forceUpdate();
  4134. }
  4135. "></textarea>
  4136. <div class="xzUpImg" @click.stop="addImg($event)">
  4137. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4138. <input type="file" accept="image/*" style="display: none"
  4139. @change="beforeUploadTi($event, index1, checkIndex)" />
  4140. </div>
  4141. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4142. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)"></div>
  4143. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4144. </div>
  4145. <div class="a_add_body_div">
  4146. <el-button type="primary" size="small" @click.stop="
  4147. addTcheckList(testJson.testJson[index1], checkIndex)
  4148. ">添加</el-button>
  4149. <el-button type="primary" size="small" @click.stop="
  4150. deleteTcheckList(
  4151. testJson.testJson[index1],
  4152. checkIndex
  4153. )
  4154. " v-if="testJson.testJson[index1].testItem != 1">删除
  4155. </el-button>
  4156. </div>
  4157. </el-radio>
  4158. </div>
  4159. </el-radio-group>
  4160. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  4161. v-if="testJson.testJson[index1].type == '2'" @change="() => {
  4162. $forceUpdate();
  4163. }
  4164. ">
  4165. <div class="radioBox">
  4166. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4167. .testItem" :key="checkIndex1" :label="checkIndex1">
  4168. <div style="margin-right: 10px">
  4169. 选项{{ checkIndex1 + 1 }}
  4170. </div>
  4171. <div style="margin-right: 10px; width: 300px" v-if="
  4172. testJson.testJson[index1].checkList[checkIndex1] &&
  4173. testJson.testJson[index1].checkList[checkIndex1]
  4174. .imgType &&
  4175. testJson.testJson[index1].checkList[checkIndex1]
  4176. .imgType == 1
  4177. ">
  4178. <div class="inImg" @click.stop="
  4179. previewImg(
  4180. testJson.testJson[index1].checkList[checkIndex1]
  4181. .src
  4182. )
  4183. ">
  4184. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4185. .src
  4186. " lazy />
  4187. <!-- <img :src="
  4188. testJson.testJson[index1].checkList[checkIndex1]
  4189. .src
  4190. " alt="" /> -->
  4191. </div>
  4192. </div>
  4193. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4194. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4195. $forceUpdate();
  4196. }
  4197. "></textarea>
  4198. <div class="xzUpImg" @click.stop="addImg($event)">
  4199. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4200. <input type="file" accept="image/*" style="display: none"
  4201. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4202. </div>
  4203. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4204. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)"></div>
  4205. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4206. </div>
  4207. <div class="a_add_body_div">
  4208. <el-button type="primary" size="small" @click.stop="
  4209. addTcheckList(
  4210. testJson.testJson[index1],
  4211. checkIndex1
  4212. )
  4213. ">添加</el-button>
  4214. <el-button type="primary" size="small" @click.stop="
  4215. deleteTcheckList(
  4216. testJson.testJson[index1],
  4217. checkIndex1
  4218. )
  4219. " v-if="testJson.testJson[index1].testItem != 1">删除
  4220. </el-button>
  4221. </div>
  4222. </el-checkbox>
  4223. </div>
  4224. </el-checkbox-group>
  4225. </div>
  4226. <!-- <div class="a_add_body_div">
  4227. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  4228. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  4229. v-if="testJson.testJson[index1].testItem != 1">删除
  4230. </el-button>
  4231. </div> -->
  4232. </div>
  4233. </div>
  4234. </div>
  4235. </div>
  4236. <span slot="footer" class="dialog-footer">
  4237. <el-button @click="closePan(45)">取 消</el-button>
  4238. <el-button type="primary" @click="addTest">确 定</el-button>
  4239. </span>
  4240. </el-dialog>
  4241. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4242. :before-close="handleClose" class="dialog_diy addToolsDia">
  4243. <div class="toolChoose">
  4244. <div class="tools">
  4245. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0"
  4246. v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4247. <div style="
  4248. display: flex;
  4249. flex-direction: row;
  4250. align-items: baseline;
  4251. flex-wrap: nowrap;
  4252. justify-content: flex-start;
  4253. position: relative;
  4254. ">
  4255. <div class="chooseWho">
  4256. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4257. 互动类
  4258. </div>
  4259. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4260. 思维类
  4261. </div>
  4262. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4263. 评价类
  4264. </div>
  4265. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4266. 其他
  4267. </div>
  4268. </div>
  4269. </div>
  4270. <div style="min-height: 163px">
  4271. <div class="toolSort" v-if="chapToolsType == 0">
  4272. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  4273. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  4274. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4275. <div style="margin: 5px 0">素材库</div>
  4276. </div>
  4277. <div class="noCTool">
  4278. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4279. </div>
  4280. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  4281. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4282. </div>
  4283. <!-- <div class="check" @click="chapAddTools(8)">
  4284. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4285. <div class="checkDiv" v-else>
  4286. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4287. </div>
  4288. </div> -->
  4289. </div>
  4290. </div>
  4291. <div class="toolSort" v-if="chapToolsType == 1">
  4292. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  4293. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  4294. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4295. <div style="margin: 5px 0">思维网格</div>
  4296. </div>
  4297. <div class="noCTool">
  4298. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4299. </div>
  4300. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  4301. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4302. </div>
  4303. <!-- <div class="check" @click="chapAddTools(7)">
  4304. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4305. <div class="checkDiv" v-else>
  4306. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4307. </div>
  4308. </div> -->
  4309. </div>
  4310. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  4311. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  4312. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4313. <div style="margin: 5px 0">电子白板</div>
  4314. </div>
  4315. <div class="noCTool">
  4316. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4317. </div>
  4318. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  4319. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4320. </div>
  4321. <!-- <div class="check" @click="chapAddTools(1)">
  4322. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4323. <div class="checkDiv" v-else>
  4324. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4325. </div>
  4326. </div> -->
  4327. </div>
  4328. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  4329. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  4330. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4331. <div style="margin: 5px 0">便签</div>
  4332. </div>
  4333. <div class="noCTool">
  4334. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4335. </div>
  4336. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  4337. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4338. </div>
  4339. <!-- <div class="check" @click="chapAddTools(2)">
  4340. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4341. <div class="checkDiv" v-else>
  4342. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4343. </div>
  4344. </div> -->
  4345. </div>
  4346. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  4347. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  4348. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4349. <div style="margin: 5px 0">协同文档</div>
  4350. </div>
  4351. <div class="noCTool">
  4352. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4353. </div>
  4354. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  4355. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4356. </div>
  4357. <!-- <div class="check" @click="chapAddTools(6)">
  4358. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4359. <div class="checkDiv" v-else>
  4360. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4361. </div>
  4362. </div> -->
  4363. </div>
  4364. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  4365. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  4366. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4367. <div style="margin: 5px 0">思维导图</div>
  4368. </div>
  4369. <div class="noCTool">
  4370. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4371. </div>
  4372. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  4373. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4374. </div>
  4375. <!-- <div class="check" @click="chapAddTools(3)">
  4376. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4377. <div class="checkDiv" v-else>
  4378. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4379. </div>
  4380. </div> -->
  4381. </div>
  4382. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  4383. @click="chapAddTools(31)">
  4384. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  4385. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4386. <div style="margin: 5px 0">数学画板</div>
  4387. </div>
  4388. <div class="noCTool">
  4389. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4390. </div>
  4391. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  4392. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4393. </div>
  4394. <!-- <div class="check" @click="chapAddTools(31)">
  4395. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4396. <div class="checkDiv" v-else>
  4397. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4398. </div>
  4399. </div> -->
  4400. </div>
  4401. </div>
  4402. <div class="toolSort" v-if="chapToolsType == 2">
  4403. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  4404. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  4405. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4406. <div style="margin: 5px 0">量规评分</div>
  4407. </div>
  4408. <div class="noCTool">
  4409. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4410. </div>
  4411. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  4412. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4413. </div>
  4414. <!-- <div class="check" @click="chapAddTools(5)">
  4415. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4416. <div class="checkDiv" v-else>
  4417. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4418. </div>
  4419. </div> -->
  4420. </div>
  4421. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  4422. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  4423. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4424. <div style="margin: 5px 0">问卷调查</div>
  4425. </div>
  4426. <div class="noCTool">
  4427. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4428. </div>
  4429. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  4430. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4431. </div>
  4432. <!-- <div class="check" @click="chapAddTools(4)">
  4433. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4434. <div class="checkDiv" v-else>
  4435. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4436. </div>
  4437. </div> -->
  4438. </div>
  4439. </div>
  4440. </div>
  4441. <div>
  4442. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  4443. v-model="itemTools.toolDetail" />
  4444. </div>
  4445. </div>
  4446. </div>
  4447. </div>
  4448. <span slot="footer" class="dialog-footer">
  4449. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4450. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4451. </span>
  4452. </el-dialog>
  4453. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px" :before-close="(done) => {
  4454. closePan(15);
  4455. }
  4456. " class="dialog_diy">
  4457. <div>
  4458. <div class="a_add_title" style="
  4459. display: flex;
  4460. flex-direction: column;
  4461. align-items: flex-start;
  4462. justify-content: center;
  4463. ">
  4464. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4465. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4466. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4467. style="width: 100% !important; border: 1px solid #dcdfe6" v-model="answerQ"></textarea>
  4468. </div>
  4469. </div>
  4470. <span slot="footer" class="dialog-footer">
  4471. <el-button @click="closePan(15)">取 消</el-button>
  4472. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4473. </span>
  4474. </el-dialog>
  4475. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4476. :before-close="handleClose" class="dialog_diy">
  4477. <div>
  4478. <div class="a_add_title" style="
  4479. display: flex;
  4480. flex-direction: column;
  4481. align-items: flex-start;
  4482. justify-content: center;
  4483. ">
  4484. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4485. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4486. </div>
  4487. </div>
  4488. <span slot="footer" class="dialog-footer">
  4489. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4490. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4491. </span>
  4492. </el-dialog>
  4493. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4494. :before-close="handleClose" class="dialog_diy">
  4495. <div>
  4496. <div class="fileCss" style="padding-top: 20px">
  4497. <div>
  4498. <button class="info_btn" @click="addImg($event)">
  4499. 选择本地文件
  4500. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4501. </button>
  4502. <div class="spanName">选择本地文件</div>
  4503. </div>
  4504. <!-- <div>
  4505. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4506. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4507. <img :src="cover[0].url" alt="" />
  4508. <div class="deletePic" @click="deleteSysPic">
  4509. <img src="../../../assets/icon/delete.png" alt="" />
  4510. </div>
  4511. </div>
  4512. <div class="spanName">选择系统文件</div>
  4513. </div> -->
  4514. <div>
  4515. <el-button @click="(searchImageValue = courseName), resetImage()"
  4516. v-if="isSysPic2 == false">选择网络文件</el-button>
  4517. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4518. <img :src="cover[0].url" alt="" />
  4519. <div class="deletePic" @click="deleteSysPic">
  4520. <img src="../../../assets/icon/delete.png" alt="" />
  4521. </div>
  4522. </div>
  4523. <div class="spanName">选择网络文件</div>
  4524. </div>
  4525. </div>
  4526. <!-- <div class="fileCss">
  4527. </div> -->
  4528. </div>
  4529. <span slot="footer" class="dialog-footer">
  4530. <el-button @click="choosePicVisible = false">取 消</el-button>
  4531. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4532. </span>
  4533. </el-dialog>
  4534. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4535. :before-close="handleClose" class="dialog_diy">
  4536. <div class="cru_selectBox" style="margin: 0">
  4537. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4538. 绘画
  4539. </div>
  4540. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4541. 科技
  4542. </div>
  4543. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4544. 人文
  4545. </div>
  4546. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4547. 艺术
  4548. </div>
  4549. </div>
  4550. <div class="sysPicBox">
  4551. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4552. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4553. </div>
  4554. </div>
  4555. </el-dialog>
  4556. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4557. :before-close="handleClose" class="dialog_diy">
  4558. <div>
  4559. <div class="people_top_right" style="display: flex; align-items: center">
  4560. <div style="position: relative; width: 100%">
  4561. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4562. @keyup.enter.native="resetImage()"></el-input>
  4563. <div class="search_img" @click="resetImage" style="right: 10px">
  4564. <img src="../../../assets/icon/search.png" alt />
  4565. </div>
  4566. </div>
  4567. <el-button type="primary" size="default" style="margin-left: 10px" @click="changePicture">换一组</el-button>
  4568. </div>
  4569. <div class="sysPicBox" v-loading="imageloading">
  4570. <div class="picNone" v-if="!imageList.length">
  4571. 请输入关键词搜索图片
  4572. </div>
  4573. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4574. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4575. </div>
  4576. </div>
  4577. </div>
  4578. </el-dialog>
  4579. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px" :before-close="(done) => {
  4580. closePan(41);
  4581. }
  4582. " class="dialog_diy dialog_diy3 fullStyle">
  4583. <div v-if="selectJson" style="height: 100%">
  4584. <div class="select_box1" v-if="selectSteps == 1">
  4585. <div class="select_box1_img">
  4586. <div class="select_box1_title">
  4587. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4588. </div>
  4589. <div class="select_box1_add_img">
  4590. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4591. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4592. <img src="../../../assets/icon/addPoster.png" alt="" />
  4593. </div>
  4594. <div class="isSysPic" v-else>
  4595. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4596. <div class="deletePic" @click="deleteSelectPic">
  4597. <img src="../../../assets/icon/delete.png" alt="" />
  4598. </div>
  4599. </div>
  4600. </div>
  4601. </div>
  4602. <div class="select_box1_select">
  4603. <div class="select_box1_title">
  4604. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4605. </div>
  4606. <div class="select_box1_select_box">
  4607. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4608. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4609. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4610. <div class="select_box1_select_box_add">
  4611. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4612. 添加</el-button>
  4613. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4614. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4615. </div>
  4616. </div>
  4617. </div>
  4618. </div>
  4619. <div v-if="selectSteps == 2" style="height: 100%">
  4620. <div class="select_box2">
  4621. <div class="select_box2_title">设置每道题目的正确选项</div>
  4622. <div class="select_box2_box">
  4623. <div class="select_box2_img">
  4624. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4625. </div>
  4626. <div class="select_box2_answer">
  4627. <div class="select_answer_title">根据题目选择对应答案</div>
  4628. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4629. <span>{{ checkIndex + 1 }}、</span>
  4630. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4631. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4632. </el-option>
  4633. </el-select>
  4634. </div>
  4635. </div>
  4636. </div>
  4637. </div>
  4638. </div>
  4639. </div>
  4640. <span slot="footer" class="dialog-footer">
  4641. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4642. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4643. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4644. </span>
  4645. </el-dialog>
  4646. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4647. :before-close="handleClose" class="dialog_diy">
  4648. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4649. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4650. <div class="pjCss" style="width: 100%">
  4651. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4652. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4653. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4654. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  4655. <div class="remove" @click="deletRateList(eIndex)"></div>
  4656. <div style="width: 100%; display: flex">
  4657. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4658. <el-rate v-model="eItem.score" disabled></el-rate>
  4659. </div>
  4660. <div class="elist_inptu_text" style="align-items: flex-start">
  4661. <span style="min-width: 100px; text-align: right">描述:</span>
  4662. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  4663. </div>
  4664. </div>
  4665. </div>
  4666. <div class="addToolFun" @click="addRateList()">
  4667. <div class="addToolImg">
  4668. <img src="../../../assets/icon/add.png" alt />
  4669. </div>
  4670. <div>添加</div>
  4671. </div>
  4672. </div>
  4673. </div>
  4674. <span slot="footer" class="dialog-footer">
  4675. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4676. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4677. </span>
  4678. </el-dialog>
  4679. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px" :before-close="(done) => {
  4680. closePan(47);
  4681. }
  4682. " class="dialog_diy dialog_diy3 fullStyle">
  4683. <div style="height: 100%">
  4684. <div class="sentenBox" style="height: 100%">
  4685. <div class="addSen" @click="addSt">添加题目</div>
  4686. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4687. <div class="sentenTopBox">
  4688. <div class="sentenTop" :index="stIndex + 1">
  4689. <div>题目设置</div>
  4690. <div>
  4691. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4692. </div>
  4693. <div @click="addSen(stIndex)">添加</div>
  4694. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4695. </div>
  4696. </div>
  4697. <div class="cardList">
  4698. <div v-if="st.addSentence.length > 0" class="cardBox">
  4699. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4700. @click="setRightAnswer(s, stIndex, sIndex)">
  4701. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4702. <div>{{ s }}</div>
  4703. </el-tooltip>
  4704. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4705. <img src="../../../assets/icon/delete.png" alt="" />
  4706. </div>
  4707. </div>
  4708. </div>
  4709. <div class="card">
  4710. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4711. </div>
  4712. </div>
  4713. <div class="rightCardBox">
  4714. <div>正确顺序</div>
  4715. <div class="rightCardList">
  4716. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4717. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4718. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4719. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4720. <div>{{ r }}</div>
  4721. </el-tooltip>
  4722. </div>
  4723. <div>{{ rIndex + 1 }}</div>
  4724. </div>
  4725. </div>
  4726. <div class="card" v-if="st.rightAnswer.length == 0">
  4727. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4728. </div>
  4729. <div class="card" v-else>
  4730. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4731. </div>
  4732. </div>
  4733. </div>
  4734. </div>
  4735. </div>
  4736. </div>
  4737. <span slot="footer" class="dialog-footer">
  4738. <el-button @click="closePan(47)">取 消</el-button>
  4739. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4740. </span>
  4741. </el-dialog>
  4742. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4743. :before-close="handleClose" class="dialog_diy">
  4744. <el-form>
  4745. <!-- <el-form-item label="文本标题">
  4746. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4747. </el-form-item> -->
  4748. <div>表格内容</div>
  4749. <Table v-model="tableJson.text" @change="change"></Table>
  4750. </el-form>
  4751. <span slot="footer" class="dialog-footer">
  4752. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4753. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4754. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4755. </span>
  4756. </el-dialog>
  4757. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%"
  4758. :before-close="handleClose" class="dialog_diy">
  4759. <el-form>
  4760. <!-- <el-form-item label="文本标题">
  4761. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4762. </el-form-item> -->
  4763. <div>文档内容</div>
  4764. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  4765. </el-form>
  4766. <span slot="footer" class="dialog-footer">
  4767. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4768. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4769. </span>
  4770. </el-dialog>
  4771. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4772. :before-close="handleClose" class="dialog_diy">
  4773. <div style="
  4774. width: 100%;
  4775. display: flex;
  4776. flex-direction: row;
  4777. flex-wrap: nowrap;
  4778. align-items: center;
  4779. justify-content: center;
  4780. ">
  4781. <div>班级:</div>
  4782. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4783. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4784. </el-option>
  4785. </el-select>
  4786. </div>
  4787. <span slot="footer" class="dialog-footer">
  4788. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4789. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4790. </span>
  4791. </el-dialog>
  4792. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4793. :before-close="handleClose" class="dialog_diy">
  4794. <div style="
  4795. width: 100%;
  4796. display: flex;
  4797. flex-direction: row;
  4798. flex-wrap: nowrap;
  4799. align-items: center;
  4800. justify-content: center;
  4801. ">
  4802. <div>随机码:</div>
  4803. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4804. </div>
  4805. <span slot="footer" class="dialog-footer">
  4806. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4807. <el-button type="primary" @click="addInvite">确定</el-button>
  4808. </span>
  4809. </el-dialog>
  4810. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4811. :before-close="handleClose" class="dialog_diy">
  4812. <div>
  4813. <div style="margin-bottom: 20px; color: #999">
  4814. 提示:点击“+”或“-”修改倒计时时长。
  4815. </div>
  4816. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4817. </div>
  4818. <span slot="footer" class="dialog-footer">
  4819. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4820. <el-button type="primary" @click="addPreTime">确定</el-button>
  4821. </span>
  4822. </el-dialog>
  4823. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%"
  4824. :before-close="handleClose" class="dialog_diy">
  4825. <div>
  4826. <div style="
  4827. width: 100%;
  4828. display: flex;
  4829. flex-direction: row;
  4830. flex-wrap: nowrap;
  4831. align-content: center;
  4832. align-items: center;
  4833. justify-content: space-between;
  4834. ">
  4835. <div style="
  4836. display: flex;
  4837. flex-flow: row nowrap;
  4838. align-items: flex-start;
  4839. width: 100%;
  4840. flex-direction: column;
  4841. flex-wrap: nowrap;
  4842. position: relative;
  4843. ">
  4844. <div class="e_box">
  4845. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4846. <div class="e_card_picture">
  4847. <img src="../../../assets/e_picture.png" />
  4848. </div>
  4849. <div class="e_card_name">
  4850. <span>{{ item.title }}</span>
  4851. </div>
  4852. <div class="e_card_btn">
  4853. <span @click="checkEva(item.id, 2)">导入</span>
  4854. </div>
  4855. </div> -->
  4856. <!-- <div class="addEva" @click="openT">
  4857. <img src="../../../assets/icon/addEva.png" alt="" />
  4858. </div> -->
  4859. <div style="
  4860. display: flex;
  4861. justify-content: flex-end;
  4862. margin-bottom: 10px;
  4863. ">
  4864. <el-button @click="openT" type="primary" size="small">添加目标</el-button>
  4865. </div>
  4866. <el-table v-if="evaJuri.length" ref="table" :data="evaJuri" border :fit="true" style="width: 100%"
  4867. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }" :row-class-name="tableRowClassName">
  4868. <el-table-column label="目标名称" min-width="15" align="center" prop="title">
  4869. </el-table-column>
  4870. <el-table-column prop="username" label="负责人" min-width="15" align="center">
  4871. </el-table-column>
  4872. <el-table-column label="操作" width="250px">
  4873. <template slot-scope="scope">
  4874. <div class="btnBox">
  4875. <el-button type="primary" size="small" @click="checkEva(scope.row.id, 2)">导入</el-button>
  4876. </div>
  4877. </template>
  4878. </el-table-column>
  4879. </el-table>
  4880. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4881. 暂无数据
  4882. </div>
  4883. </div>
  4884. </div>
  4885. </div>
  4886. </div>
  4887. <span slot="footer" class="dialog-footer">
  4888. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4889. </span>
  4890. </el-dialog>
  4891. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4892. :before-close="handleClose" class="dialog_diy">
  4893. <div class="groupBox">
  4894. <div v-if="groupJson.group" class="groupContent">
  4895. <div class="groupTitle">请设置小组数量及名称</div>
  4896. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4897. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4898. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4899. <div class="groupBtn">
  4900. <el-button type="primary" size="small" @click="addGroup(index)"
  4901. v-if="groupJson.group.length - 1 == index">
  4902. 添加</el-button>
  4903. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4904. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4905. </div>
  4906. </div>
  4907. </div>
  4908. <div class="groupContent">
  4909. <div class="groupTitle">请设置每组人数</div>
  4910. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4911. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4912. <el-input v-model="groupJson.number" style="width: 150px" placeholder="请输入2-10的数字"
  4913. @change="numberPan"></el-input>
  4914. </div>
  4915. </div>
  4916. <span slot="footer" class="dialog-footer">
  4917. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4918. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4919. </span>
  4920. </el-dialog>
  4921. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4922. :before-close="handleClose" class="dialog_diy">
  4923. <div style="
  4924. width: 100%;
  4925. display: flex;
  4926. flex-direction: row;
  4927. flex-wrap: nowrap;
  4928. align-items: center;
  4929. justify-content: center;
  4930. ">
  4931. <div style="min-width: fit-content">文件名称:</div>
  4932. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4933. </div>
  4934. <span slot="footer" class="dialog-footer">
  4935. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4936. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4937. </span>
  4938. </el-dialog>
  4939. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px" :before-close="(done) => {
  4940. closePan(69);
  4941. }
  4942. " class="dialog_diy fullStyle fullStyle1">
  4943. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  4944. <span slot="footer" class="dialog-footer">
  4945. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4946. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4947. </span>
  4948. </el-dialog>
  4949. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  4950. :before-close="handleClose" class="dialog_diy">
  4951. <div class="template_box">
  4952. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  4953. :class="{ wordTeacherA: ctJson.id == aa.id }">
  4954. <div class="wordPic">
  4955. <img src="../../../assets/icon/new/course_template.png" alt />
  4956. </div>
  4957. <el-tooltip effect="dark" :content="aa.title" placement="top">
  4958. <div style="
  4959. margin-top: 10px;
  4960. line-height: 19px;
  4961. overflow: hidden;
  4962. text-overflow: ellipsis;
  4963. white-space: nowrap;
  4964. padding: 0 10px;
  4965. box-sizing: border-box;
  4966. width: 100%;
  4967. ">
  4968. {{ aa.title }}
  4969. </div>
  4970. </el-tooltip>
  4971. </div>
  4972. <div class="wordTeacher" @click="checkctJson({ id: 1 })" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  4973. :class="{ wordTeacherA: ctJson.id == 1 }">
  4974. <div class="wordPic">
  4975. <img src="../../../assets/icon/new/course_template.png" alt />
  4976. </div>
  4977. <div style="
  4978. margin-top: 10px;
  4979. line-height: 19px;
  4980. overflow: hidden;
  4981. text-overflow: ellipsis;
  4982. white-space: nowrap;
  4983. padding: 0 20px;
  4984. ">
  4985. 简易模板
  4986. </div>
  4987. </div>
  4988. <div class="wordTeacher" @click="checkctJson({ id: 2 })" v-if="isPasteStage"
  4989. :class="{ wordTeacherA: ctJson.id == 2 }">
  4990. <div class="wordPic">
  4991. <img src="../../../assets/icon/new/course_template.png" alt />
  4992. </div>
  4993. <div style="
  4994. margin-top: 10px;
  4995. line-height: 19px;
  4996. overflow: hidden;
  4997. text-overflow: ellipsis;
  4998. white-space: nowrap;
  4999. padding: 0 20px;
  5000. ">
  5001. 智能粘贴模式
  5002. </div>
  5003. </div>
  5004. </div>
  5005. <span slot="footer" class="dialog-footer">
  5006. <el-button @click="templateDialog = false">取 消</el-button>
  5007. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  5008. </span>
  5009. </el-dialog>
  5010. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  5011. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  5012. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  5013. <div class="change_stageBox">
  5014. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  5015. <div class="nt_taskBox">
  5016. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  5017. <div class="nt_taskName">
  5018. <el-tooltip effect="light" :content="t.dyName" placement="top">
  5019. <span>{{ t.dyName }}</span>
  5020. </el-tooltip>
  5021. </div>
  5022. </div>
  5023. <div class="moveBtn" v-if="unitJson3.length > 1">
  5024. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)"></div>
  5025. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  5026. </div>
  5027. </div>
  5028. </div>
  5029. <span slot="footer" class="dialog-footer">
  5030. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  5031. <el-button type="primary" @click="updateChange">确定</el-button>
  5032. </span>
  5033. </el-dialog>
  5034. <el-dialog title="添加资源模板" :visible.sync="cetBoxDialog" :append-to-body="true" width="400px"
  5035. :before-close="handleClose" class="dialog_diy">
  5036. <div class="addTypeChoose" style="justify-content: center">
  5037. <div style="min-width: 100px">模板名称:</div>
  5038. <el-input v-model="templateName" style="width: 200px"></el-input>
  5039. </div>
  5040. <div class="addTypeBox">
  5041. <div class="addTypeChoose">
  5042. <div style="min-width: 100px">选择一级分类:</div>
  5043. <el-select v-model="setTypeJson.one" placeholder="请选择" @change="getTwoType(setTypeJson.one)"
  5044. style="width: 200px">
  5045. <el-option v-for="(item, index) in oneJson" :key="index" :label="item.name" :value="item.id">
  5046. </el-option>
  5047. </el-select>
  5048. </div>
  5049. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  5050. <div style="min-width: 100px">选择二级分类:</div>
  5051. <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px">
  5052. <el-option v-for="(item1, index1) in twoJson" :key="index1" :label="item1.name" :value="item1.id">
  5053. </el-option>
  5054. </el-select>
  5055. </div>
  5056. </div>
  5057. <span slot="footer" class="dialog-footer">
  5058. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  5059. <el-button @click="close()">关 闭</el-button>
  5060. </span>
  5061. </el-dialog>
  5062. <evaBox :userid="userid" :oid="oid" :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson">
  5063. </evaBox>
  5064. <EnglishVoice :oid="oid" :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  5065. :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  5066. <aiDialog :dialogVisibleAiD.sync="dialogVisibleAiD" :aiText="aiText" @aiConfirm="aiConfirm" :clickType="clickType">
  5067. </aiDialog>
  5068. <tipsDialog :dialogVisibleTips.sync="dialogVisibleTips" :tipsJson.sync="tipsJson" :aiJson="aiJson" :userid="userid"></tipsDialog>
  5069. </div>
  5070. </template>
  5071. <script>
  5072. import "../../../common/aws-sdk-2.235.1.min.js";
  5073. import { tools as toolsData } from "../../../common/tools.js";
  5074. // import "../../../common/aws-sdk-2.99.0.min.js";
  5075. import $ from "jquery";
  5076. import EditorBar from "../../../components/tools/wangEnduit";
  5077. import Table from "../../../components/tools/table";
  5078. import Mind from "../../tools/jsmind2";
  5079. import Time from "../../tools/time.vue";
  5080. import Sunburst from "../../tools/sunburst";
  5081. import SeeBoard from "../../tools/seeBoard";
  5082. import weilaiData from "../components/weilai.js";
  5083. import sourceDialog from "../teacherSource/dialog.vue";
  5084. import interVideo from "../interVideo/index.vue";
  5085. import englishRight from "../components/englishRight.vue";
  5086. import evaBox from "../evaBox/index.vue";
  5087. import EnglishVoice from "../EnglishVoice/index.vue";
  5088. import aiBox from './aiBox.vue'
  5089. import aiDialog from './aiDialog'
  5090. import aiTips from './aiTips.vue'
  5091. import tipsDialog from './tipsDialog.vue'
  5092. import { v4 as uuidv4 } from "uuid";
  5093. export default {
  5094. components: {
  5095. EditorBar,
  5096. Mind,
  5097. Time,
  5098. Sunburst,
  5099. SeeBoard,
  5100. Table,
  5101. sourceDialog,
  5102. interVideo,
  5103. englishRight,
  5104. evaBox,
  5105. EnglishVoice,
  5106. aiBox,
  5107. aiDialog,
  5108. aiTips,
  5109. tipsDialog
  5110. },
  5111. data() {
  5112. return {
  5113. checkAll: false,
  5114. checkAll2: false,
  5115. chooseType: 1,
  5116. checkedCities: [],
  5117. isIndeterminate: true,
  5118. isIndeterminate2: true,
  5119. isSysPic: false,
  5120. isSysPic2: false,
  5121. steps: 1,
  5122. stepsNav: 1,
  5123. nbOrder: 0,
  5124. courseId: "",
  5125. chapToolsType: 0,
  5126. chapTools: [
  5127. {
  5128. tools: [],
  5129. toolDetail: "",
  5130. },
  5131. ],
  5132. line: "",
  5133. lineTitle: "",
  5134. sysPic: [],
  5135. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5136. sentenceList2: [],
  5137. isPushTitleList: [],
  5138. lineCount: 0,
  5139. lineType: 0,
  5140. chapCount: 0,
  5141. courseName: "",
  5142. isTeacherSee: false,
  5143. courseText: "",
  5144. textLoading: false,
  5145. ttextLoading: false,
  5146. courseText2: "",
  5147. preTime: 0,
  5148. formLabelWidth: "100px",
  5149. choosePicVisible: false,
  5150. sysPicVisible: false,
  5151. sysPicVisible2: false,
  5152. uploadLoading1: false,
  5153. noneBtnImg: false,
  5154. updateBoolean2: false,
  5155. unitIndex: 0,
  5156. taskCount: 0,
  5157. dialogVisible: false,
  5158. dialogVisible1: false,
  5159. dialogVisible2: false,
  5160. dialogVisible3: false,
  5161. dialogVisible4: false,
  5162. dialogVisible5: false,
  5163. dialogVisible6: false,
  5164. dialogVisible7: false,
  5165. dialogVisible8: false,
  5166. dialogVisible9: false,
  5167. dialogVisibleClass: false,
  5168. dialogVisibleMember: false,
  5169. dialogVisibleMp3: false,
  5170. dialogVisibleSelect: false,
  5171. dialogVisibleSentence: false,
  5172. dialogVisibleRate: false,
  5173. dialogVisibleChoice: false,
  5174. dialogVisiblemb: false,
  5175. dialogVisibleInvite: false,
  5176. dialogVisibleSource: false,
  5177. dialogVisibleVideo: false,
  5178. dialogVisibleStageChange: false,
  5179. dialogVisibleupdataVideoT: false,
  5180. englishDialogVisible: false,
  5181. templateDialog: false,
  5182. ctJson: {},
  5183. isClickColor: 1,
  5184. toolIndexType: "",
  5185. publicTool: 0,
  5186. searchPeople: "",
  5187. searchTN: "",
  5188. collid: '',
  5189. CollLoading: false,
  5190. userid: this.$route.query.userid,
  5191. oid: this.$route.query.oid,
  5192. org: this.$route.query.org,
  5193. role: this.$route.query.role,
  5194. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5195. dialogVisibleTable: false,
  5196. dialogVisibleWord: false,
  5197. tableJson: { text: "" },
  5198. wordJson: { text: "" },
  5199. dialogVisibleMoreUpload: false,
  5200. dialogVisiblePreTime: false,
  5201. uploadJson: [],
  5202. classJuri: [],
  5203. gradeList: [],
  5204. cover: [], //课程封面
  5205. myWord: [],
  5206. evaJuri: [],
  5207. evalua: "",
  5208. targetArray: [],
  5209. eTitle: "",
  5210. eJson: {},
  5211. fid: "", //一级
  5212. sid: "", //二级
  5213. tid: "", //二级
  5214. typeMode: 1,
  5215. eJSONNum: 0,
  5216. data: {
  5217. meta: {
  5218. name: "example",
  5219. author: "dd@163.com",
  5220. version: "0.2",
  5221. },
  5222. format: "node_array",
  5223. data: [{ id: "root", isroot: true, topic: "" }],
  5224. },
  5225. askJson: {
  5226. askCount: 1,
  5227. askTitle: "",
  5228. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5229. },
  5230. askJson2: {},
  5231. testJson: {},
  5232. testJson2: {},
  5233. selectJson: {},
  5234. selectJson2: {},
  5235. rateJson: [],
  5236. unitJson2: [],
  5237. unitJson3: [],
  5238. unitJson: [
  5239. {
  5240. dyName: "", //单元标题
  5241. chapterInfo: [
  5242. {
  5243. isread: false,
  5244. chapterid: this.guid(),
  5245. title: "",
  5246. courseName: "",
  5247. taskJson: [
  5248. {
  5249. task: "",
  5250. taskDetail: "",
  5251. chapterData: [],
  5252. toolText: "",
  5253. toolChoose: [
  5254. {
  5255. tool: [],
  5256. toolDetail: "",
  5257. toolType: 0,
  5258. askCount: 1,
  5259. askTitle: "",
  5260. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5261. },
  5262. ],
  5263. isShowTools: false,
  5264. askCount: 1,
  5265. isFold: 1,
  5266. askTitle: "",
  5267. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5268. checkJson: [{ checkCount: [], checkPerent: [] }],
  5269. homeworkList: [],
  5270. },
  5271. ],
  5272. itemCount: 1,
  5273. fileList1: [],
  5274. video: [],
  5275. testData: [],
  5276. pData: [],
  5277. templateArray: [],
  5278. },
  5279. ],
  5280. },
  5281. ],
  5282. templateArray: [],
  5283. studentJuri: [],
  5284. teacherJuri: [],
  5285. CollaborativeTeaList: [],
  5286. checkboxList: [],
  5287. checkboxList2: [],
  5288. checkboxList3: [],
  5289. classSearch: "",
  5290. gradeId: "",
  5291. number: "",
  5292. tTitle: "",
  5293. tdetail: "",
  5294. templateC: {},
  5295. AttText: {},
  5296. AttTextType: 0,
  5297. AttTextIndex: 0,
  5298. cTemplate: "",
  5299. CourseType: [],
  5300. CourseType1: [],
  5301. CourseType2: [],
  5302. CourseTypeJson: {},
  5303. CourseTypeJson1: {},
  5304. courseTypeId: [],
  5305. courseTypeId1: [],
  5306. courseTypeSon: [],
  5307. clearArray: [],
  5308. pTypeCheck: [],
  5309. pTypeCheckName: [],
  5310. loading: false,
  5311. toolType: 0,
  5312. inputShow: true,
  5313. inputShow2: true,
  5314. toolIndex: 0,
  5315. cidType: 0,
  5316. answerQ: "",
  5317. answerQ2: "",
  5318. grade: [],
  5319. grade2: [],
  5320. courseUserid: "",
  5321. timer: null,
  5322. timer2: null,
  5323. pasteTimer: null,
  5324. checkId: "",
  5325. isDelete: 1,
  5326. addindex: 0,
  5327. selectSteps: 1,
  5328. groupJson: {},
  5329. dialogVisibleGroup: false,
  5330. rightBoxHeight: 0,
  5331. ManAarray: [],
  5332. checkBoolean: false,
  5333. inviteCode: [],
  5334. inviteId: "",
  5335. icode: "",
  5336. easyArray: [2, 4],
  5337. sourceData: {},
  5338. updateSourcePan: false,
  5339. videoJson: {},
  5340. isBtnDisplay: false,
  5341. isStepDisplay: false,
  5342. isPasteStage: false,
  5343. isPasteTask: false,
  5344. isPasteChoice: false,
  5345. imageList: [],
  5346. imageloading: false,
  5347. searchImageValue: "",
  5348. ppage: 1,
  5349. toolsData: toolsData,
  5350. oldIndex: 0,
  5351. dragType: "",
  5352. oldUnitIndex: 0,
  5353. oldData: null,
  5354. newIndex: "",
  5355. englishList: {},
  5356. typeIndex: "",
  5357. courseState: 2,
  5358. taskJSONa: [
  5359. {
  5360. task: "",
  5361. taskDetail: "",
  5362. chapterData: [],
  5363. toolText: "",
  5364. toolChoose: [
  5365. {
  5366. tool: [],
  5367. toolDetail: "",
  5368. toolType: 0,
  5369. askCount: 1,
  5370. askTitle: "",
  5371. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5372. },
  5373. ],
  5374. isShowTools: false,
  5375. askCount: 1,
  5376. isFold: 1,
  5377. askTitle: "",
  5378. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5379. checkJson: [{ checkCount: [], checkPerent: [] }],
  5380. homeworkList: [],
  5381. },
  5382. ],
  5383. checkUnitIndex: 0,
  5384. isdrag: "",
  5385. evaIndex: "",
  5386. evatIndex: "",
  5387. evaBoxDialog: false,
  5388. EnglishVoiceDialog: false,
  5389. englishVoiceJson: {},
  5390. cetIndex: "",
  5391. cettIndex: "",
  5392. cetBoxDialog: false,
  5393. templateName: "",
  5394. setTypeJson: {
  5395. one: "",
  5396. two: "",
  5397. },
  5398. twoJson: [],
  5399. oneJson: [],
  5400. updateKey: 1,
  5401. isOutline: false,
  5402. isOutline2: false,
  5403. infoData: [],
  5404. infoproVisible: false,
  5405. infoisFinishSize: 0,
  5406. infoisAllSize: 0,
  5407. infoprogress: 0,
  5408. taskDetailLoading: [],
  5409. ttaskDetailLoading: [],
  5410. taskDetailLoading2: [],
  5411. ttaskDetailLoading2: [],
  5412. taskDetailLoading3: [],
  5413. ttaskDetailLoading3: [],
  5414. taskDetailLoading4: [],
  5415. taskDetailLoading5: [],
  5416. ttaskDetailLoading5: [],
  5417. dArray: {},
  5418. dialogVisibleAiD: false,
  5419. aitype: "",
  5420. aiJson: {
  5421. aiDetail:"请根据<课程简要描述>设计一个名为<课程名字>的<课程学科>学科的,面向<面向年级>的项目式学习课程。",
  5422. aiOutline:`请为这个名为<课程名字>的<课程学科>学科的,面向<面向年级>学生,时长为<课堂时长>一堂课来设计课堂教学任务(每个任务都需要至少50个token的详细描述)。该课堂的课堂简要描述为<课程简要描述>。每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`,
  5423. aiTask:"请根据<教学任务教案>。",
  5424. aiDetail1:"请根据<课程描述>,重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准。",
  5425. aiDetail2:"请你在考虑到整个课程的情况下,优化该任务描述和任务名:<任务名>:<任务描述>",
  5426. aiDetail3:"请你在考虑到整个课程的情况下,**重点考虑该任务及工具名和工具内容的情况下**,优化工具指引。",
  5427. aiDetail4:"请你在考虑到整个课程的情况下,**重点考虑该任务详情**以及工具的情况下,优化评价标准。",
  5428. aiTeacher:"请根据<任务大纲>为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。",
  5429. teacherDetail:"请根据<教案描述>重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。",
  5430. },
  5431. aiText: "",
  5432. aiCallBack: "",
  5433. aiIndex: "",
  5434. clickType: 1,
  5435. promptShow: true,
  5436. templateid: this.$route.query.templateid != undefined ? this.$route.query.templateid : "",
  5437. dialogVisibleTips: false,
  5438. tipsJson: {}
  5439. };
  5440. },
  5441. directives: {
  5442. autoHeight: {
  5443. update(el, binding) {
  5444. const { value } = binding;
  5445. if (value && typeof value === "number") {
  5446. el.style.height = `${value}px`;
  5447. } else {
  5448. el.style.height = "auto";
  5449. }
  5450. },
  5451. componentUpdated(el) {
  5452. el.style.height = `${el.scrollHeight + 25}px`;
  5453. },
  5454. },
  5455. },
  5456. computed: {
  5457. // rightBoxHeight: function () {
  5458. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5459. // },
  5460. offsetLetfPx: function () {
  5461. //addnum可以直接在模板语法里面用,相当于data内的值
  5462. return (
  5463. $(".cru_select")[this.unitIndex] &&
  5464. $(".cru_select")[this.unitIndex].offsetLeft + 5
  5465. );
  5466. },
  5467. getMan2() {
  5468. return function (people) {
  5469. let _people = people;
  5470. let _people2 = "";
  5471. if (this.ManAarray.length) {
  5472. for (var i = 0; i < this.ManAarray.length; i++) {
  5473. if (this.ManAarray[i].userid == people) {
  5474. _people2 = this.ManAarray[i].name;
  5475. break;
  5476. }
  5477. }
  5478. }
  5479. if (people == this.courseUserid) {
  5480. return "";
  5481. }
  5482. return this.ManAarray.length ? _people2 : "";
  5483. };
  5484. },
  5485. getListMan2() {
  5486. return function (list) {
  5487. let _people2 = [];
  5488. if (this.ManAarray.length) {
  5489. for (var j = 0; j < list.length; j++) {
  5490. let people = list[j];
  5491. for (var i = 0; i < this.ManAarray.length; i++) {
  5492. if (
  5493. this.ManAarray[i].userid == people &&
  5494. people != this.courseUserid
  5495. ) {
  5496. _people2.push(this.ManAarray[i].name);
  5497. break;
  5498. }
  5499. }
  5500. }
  5501. }
  5502. return this.ManAarray.length ? _people2.join("、") : "";
  5503. };
  5504. },
  5505. isInvite() {
  5506. return function (cid) {
  5507. let array = [];
  5508. for (var i = 0; i < this.inviteCode.length; i++) {
  5509. array.push(this.inviteCode[i].cid);
  5510. }
  5511. return array.indexOf(cid) != -1;
  5512. };
  5513. },
  5514. getInviteCodeC() {
  5515. return function (cid) {
  5516. let array = [];
  5517. for (var i = 0; i < this.inviteCode.length; i++) {
  5518. array.push(this.inviteCode[i].cid);
  5519. }
  5520. return this.inviteCode[array.indexOf(cid)].ic;
  5521. };
  5522. },
  5523. getClassC() {
  5524. return function (c) {
  5525. let _c2 = "";
  5526. if (this.grade.length) {
  5527. for (var i = 0; i < this.grade.length; i++) {
  5528. if (this.grade[i].id == c) {
  5529. _c2 = this.grade[i].name;
  5530. break;
  5531. }
  5532. }
  5533. }
  5534. return this.grade.length ? _c2 : "";
  5535. };
  5536. },
  5537. getListClassC() {
  5538. return function (list) {
  5539. let _c2 = [];
  5540. if (this.grade.length) {
  5541. for (var j = 0; j < list.length; j++) {
  5542. let c = list[j];
  5543. for (var i = 0; i < this.grade.length; i++) {
  5544. if (this.grade[i].id == c) {
  5545. _c2.push(this.grade[i].name);
  5546. break;
  5547. }
  5548. }
  5549. }
  5550. }
  5551. return this.grade.length ? _c2.join("、") : "";
  5552. };
  5553. },
  5554. },
  5555. watch: {
  5556. unitIndex(newValue, oldValue) {
  5557. // return;
  5558. if (this.isDelete == 2) {
  5559. this.isDelete = 1;
  5560. return;
  5561. }
  5562. if (this.cid != "") {
  5563. let _unitIndex = oldValue;
  5564. if (
  5565. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5566. JSON.stringify(this.unitJson[_unitIndex])
  5567. ) {
  5568. this.$refs.rightboxR.scrollTop = 0;
  5569. return;
  5570. }
  5571. let cPan = 1;
  5572. for (
  5573. var j = 0;
  5574. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5575. j++
  5576. ) {
  5577. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5578. j
  5579. ].proVisible = false;
  5580. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5581. j
  5582. ].proVisible2 = false;
  5583. if (
  5584. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5585. .length > 1
  5586. ) {
  5587. for (
  5588. var z = 0;
  5589. z <
  5590. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5591. .length;
  5592. z++
  5593. ) {
  5594. if (
  5595. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5596. .toolChoose[z].tool.length
  5597. ) {
  5598. this.$message.error("请把工具添加完整");
  5599. cPan = 2;
  5600. break;
  5601. }
  5602. }
  5603. }
  5604. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5605. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5606. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5607. (ele) => {
  5608. return ele.value != "";
  5609. }
  5610. );
  5611. }
  5612. }
  5613. if (cPan == 2) {
  5614. this.unitIndex = oldValue;
  5615. return;
  5616. }
  5617. for (var i = 0; i < this.unitJson.length; i++) {
  5618. if (this.addindex != i) {
  5619. delete this.unitJson[i].isUpdate;
  5620. }
  5621. }
  5622. this.$refs.rightboxR.scrollTop = 0;
  5623. this.addindex = -1;
  5624. let params = [
  5625. {
  5626. cid: this.cid,
  5627. chapters: JSON.stringify(this.unitJson),
  5628. uid: this.userid,
  5629. unitIndex: _unitIndex,
  5630. },
  5631. ];
  5632. this.ajax
  5633. .post(this.$store.state.api + "updateWorkNew4", params)
  5634. .then((res) => {
  5635. // this.$message({
  5636. // message: "修改成功",
  5637. // type: "success",
  5638. // });
  5639. // this.courseId = this.cid;
  5640. this.addtips()
  5641. })
  5642. .catch((err) => {
  5643. this.$message.error("网络不佳");
  5644. console.error(err);
  5645. });
  5646. }
  5647. },
  5648. steps(newValue, old) {
  5649. if (newValue == 4) {
  5650. let cPan = 1;
  5651. for (var i = 0; i < this.unitJson.length; i++) {
  5652. for (
  5653. var j = 0;
  5654. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5655. j++
  5656. ) {
  5657. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5658. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5659. if (
  5660. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5661. ) {
  5662. for (
  5663. var z = 0;
  5664. z <
  5665. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5666. z++
  5667. ) {
  5668. if (
  5669. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  5670. .tool.length
  5671. ) {
  5672. this.$message.error("请把工具添加完整");
  5673. cPan = 2;
  5674. break;
  5675. }
  5676. }
  5677. }
  5678. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5679. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5680. i
  5681. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5682. return ele.value != "";
  5683. });
  5684. }
  5685. }
  5686. }
  5687. this.inputShow = true;
  5688. if (cPan == 2) {
  5689. this.steps = old;
  5690. return;
  5691. }
  5692. this.goTo(
  5693. "/course?userid=" +
  5694. this.userid +
  5695. "&oid=" +
  5696. this.oid +
  5697. "&org=" +
  5698. this.org +
  5699. "&role=" +
  5700. this.role
  5701. );
  5702. }
  5703. },
  5704. },
  5705. methods: {
  5706. tableRowClassName({ row, rowIndex }) {
  5707. if ((rowIndex + 1) % 2 === 0) {
  5708. return "even_row";
  5709. } else {
  5710. return "";
  5711. }
  5712. },
  5713. close() {
  5714. this.cetIndex = "";
  5715. this.cettIndex = "";
  5716. this.templateName = "";
  5717. this.cetBoxDialog = false;
  5718. },
  5719. openAI() {
  5720. top.postMessage({ tools: "64" }, "*");
  5721. },
  5722. setMan() {
  5723. // let teacherJuri = this.teacherJuri2;
  5724. this.ManAarray = [];
  5725. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5726. if (_user.indexOf(this.userid) == -1) {
  5727. _user.push(this.userid);
  5728. }
  5729. if (_user.indexOf(this.courseUserid) == -1) {
  5730. _user.push(this.courseUserid);
  5731. }
  5732. let params = {
  5733. uid: _user.join(","),
  5734. };
  5735. this.ajax
  5736. .get(this.$store.state.api + "getAllUserById", params)
  5737. .then((res) => {
  5738. let teacherJuri = res.data[0];
  5739. this.ManAarray = teacherJuri;
  5740. })
  5741. .catch((err) => {
  5742. console.error(err);
  5743. });
  5744. },
  5745. previewImg(url) {
  5746. this.$hevueImgPreview(url);
  5747. },
  5748. btnDisplay(bool) {
  5749. this.isBtnDisplay = bool;
  5750. },
  5751. stepDisplay(bool) {
  5752. this.isStepDisplay = bool;
  5753. },
  5754. scrollChange() {
  5755. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5756. },
  5757. addHw(e) {
  5758. var el = e.currentTarget;
  5759. el.getElementsByTagName("input")[0].click();
  5760. },
  5761. change(val) {
  5762. if (this.dialogVisible1) {
  5763. this.tdetail = val;
  5764. } else if (this.dialogVisible6) {
  5765. this.AttText.text = val;
  5766. } else if (this.dialogVisible2) {
  5767. this.cTemplate = val;
  5768. } else if (this.dialogVisibleTable) {
  5769. this.tableJson.text = val;
  5770. }
  5771. this.$forceUpdate();
  5772. console.log(val);
  5773. },
  5774. change2(val) {
  5775. console.log(val);
  5776. this.$forceUpdate();
  5777. },
  5778. handleClose(done) {
  5779. done();
  5780. },
  5781. closePan(tool) {
  5782. if (tool == 15) {
  5783. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5784. this.dialogVisible8 = false;
  5785. } else {
  5786. this.closeConfirm(tool);
  5787. }
  5788. } else if (tool == 4) {
  5789. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5790. this.dialogVisible5 = false;
  5791. } else {
  5792. this.closeConfirm(tool);
  5793. }
  5794. } else if (tool == 45) {
  5795. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5796. this.dialogVisibleChoice = false;
  5797. } else {
  5798. this.closeConfirm(tool);
  5799. }
  5800. } else if (tool == 41) {
  5801. if (
  5802. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  5803. ) {
  5804. this.dialogVisibleSelect = false;
  5805. } else {
  5806. this.closeConfirm(tool);
  5807. }
  5808. } else if (tool == 47) {
  5809. if (
  5810. JSON.stringify(this.sentenceList) ==
  5811. JSON.stringify(this.sentenceList2)
  5812. ) {
  5813. this.dialogVisibleSentence = false;
  5814. } else {
  5815. this.closeConfirm(tool);
  5816. }
  5817. } else if (tool == 69) {
  5818. if (
  5819. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  5820. ) {
  5821. this.englishDialogVisible = false;
  5822. } else {
  5823. this.closeConfirm(tool);
  5824. }
  5825. }
  5826. },
  5827. closeConfirm(tool) {
  5828. this.$confirm("是否保存已编辑内容?", "提示", {
  5829. confirmButtonText: "保存",
  5830. cancelButtonText: "不保存",
  5831. type: "warning",
  5832. })
  5833. .then(() => {
  5834. if (tool == 15) {
  5835. this.addAnswer();
  5836. } else if (tool == 4) {
  5837. this.addAsk();
  5838. } else if (tool == 45) {
  5839. this.addTest();
  5840. } else if (tool == 41) {
  5841. this.addSelectAnswer();
  5842. } else if (tool == 47) {
  5843. this.addSentenceTool();
  5844. } else if (tool == 69) {
  5845. this.addEnglish();
  5846. }
  5847. })
  5848. .catch(() => {
  5849. if (tool == 15) {
  5850. this.dialogVisible8 = false;
  5851. } else if (tool == 4) {
  5852. this.dialogVisible5 = false;
  5853. } else if (tool == 45) {
  5854. this.dialogVisibleChoice = false;
  5855. } else if (tool == 41) {
  5856. this.dialogVisibleSelect = false;
  5857. } else if (tool == 47) {
  5858. this.dialogVisibleSentence = false;
  5859. } else if (tool == 69) {
  5860. this.englishDialogVisible = false;
  5861. }
  5862. });
  5863. },
  5864. addEnglish(jsonType) {
  5865. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  5866. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  5867. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  5868. if (
  5869. this.englishList.engTitle == "" ||
  5870. this.englishList.englishText == ""
  5871. ) {
  5872. this.$message.error("请将内容填写完整!");
  5873. return;
  5874. }
  5875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5876. this.taskCount
  5877. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5878. this.englishList = {};
  5879. if (jsonType && jsonType == 1) {
  5880. this.englishDialogVisible = true;
  5881. } else {
  5882. this.englishDialogVisible = false;
  5883. }
  5884. if (
  5885. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5886. .toolChoose[this.toolIndex].tool != 69
  5887. ) {
  5888. this.addTools(69, this.taskCount, this.toolIndex);
  5889. }
  5890. },
  5891. imgChange2(i, j) {
  5892. var _tmp = this.testJson.testJson[i].checkList[j];
  5893. this.noneBtnImg = _tmp.length >= 1;
  5894. },
  5895. imgChange3(i) {
  5896. var _tmp = this.testJson.testJson[i];
  5897. this.noneBtnImg = _tmp.length >= 1;
  5898. },
  5899. imgChange1(file, fileList, type, itemTaskIndex) {
  5900. if (type == 1) {
  5901. var _tmp = this.cover;
  5902. } else if (
  5903. type == 2 ||
  5904. type == 3 ||
  5905. type == 6 ||
  5906. type == 7 ||
  5907. type == 8
  5908. ) {
  5909. var _tmp =
  5910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5911. .chapterData;
  5912. } else if (type == 4) {
  5913. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5914. } else {
  5915. var _tmp =
  5916. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5917. .homeworkList;
  5918. }
  5919. this.noneBtnImg = _tmp.length >= 1;
  5920. },
  5921. goTo(path) {
  5922. this.$router.push(path);
  5923. },
  5924. guid() {
  5925. var _num,
  5926. i,
  5927. _guid = "";
  5928. for (i = 0; i < 32; i++) {
  5929. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5930. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5931. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5932. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5933. _guid += "-";
  5934. }
  5935. }
  5936. return _guid;
  5937. },
  5938. retrunCourse() {
  5939. this.$confirm("是否保存已编辑内容?", "提示", {
  5940. confirmButtonText: "保存",
  5941. cancelButtonText: "不保存",
  5942. distinguishCancelAndClose: true,
  5943. type: "warning",
  5944. })
  5945. .then(() => {
  5946. if (this.cid == "" || this.cid == undefined) {
  5947. if (this.courseName == "") {
  5948. this.$message.error("请补充填写课程名称");
  5949. return;
  5950. } else {
  5951. this.addWork();
  5952. }
  5953. this.steps = 4;
  5954. } else {
  5955. if (this.courseName == "") {
  5956. this.$message.error("请补充填写课程名称");
  5957. return;
  5958. } else {
  5959. if (this.userid != this.courseUserid && this.role != "1") {
  5960. this.updateWork2();
  5961. } else {
  5962. this.updateWork();
  5963. }
  5964. this.steps = 4;
  5965. }
  5966. }
  5967. })
  5968. .catch((v) => {
  5969. console.log(v);
  5970. if (v == "cancel") {
  5971. this.goTo(
  5972. "/course?userid=" +
  5973. this.userid +
  5974. "&oid=" +
  5975. this.oid +
  5976. "&org=" +
  5977. this.org +
  5978. "&role=" +
  5979. this.role
  5980. );
  5981. }
  5982. });
  5983. },
  5984. lastSteps() {
  5985. if (this.steps == 4) {
  5986. this.goTo(
  5987. "/course?userid=" +
  5988. this.userid +
  5989. "&oid=" +
  5990. this.oid +
  5991. "&org=" +
  5992. this.org +
  5993. "&role=" +
  5994. this.role
  5995. );
  5996. } else {
  5997. // if (this.cidType == 0) {
  5998. // this.steps--;
  5999. // if (this.steps == 1) {
  6000. // setTimeout(() => {
  6001. // this.checkEva(this.checkId);
  6002. // setTimeout(() => {
  6003. // this.checkEva(this.checkId);
  6004. // }, 100);
  6005. // }, 100);
  6006. // }
  6007. // } else {
  6008. if (this.steps == 3) {
  6009. this.steps = 1;
  6010. setTimeout(() => {
  6011. this.checkEva(this.checkId);
  6012. setTimeout(() => {
  6013. this.checkEva(this.checkId);
  6014. }, 100);
  6015. }, 100);
  6016. }
  6017. // }
  6018. }
  6019. },
  6020. navSteps(s) {
  6021. if (this.courseName == "") {
  6022. this.$message.error("请补充填写课程名称");
  6023. return;
  6024. }
  6025. if (this.cidType == 0) {
  6026. if (this.steps == 1) {
  6027. if (this.cid == "" || this.cid == undefined) {
  6028. this.addWork();
  6029. } else {
  6030. if (this.userid != this.courseUserid && this.role != "1") {
  6031. this.updateWork2();
  6032. } else {
  6033. this.updateWork();
  6034. }
  6035. }
  6036. }
  6037. if (s == 1) {
  6038. this.steps = 1;
  6039. setTimeout(() => {
  6040. this.checkEva(this.checkId);
  6041. setTimeout(() => {
  6042. this.checkEva(this.checkId);
  6043. }, 100);
  6044. }, 100);
  6045. }
  6046. if (s == 2) {
  6047. this.steps = 2;
  6048. }
  6049. if (s == 3) {
  6050. this.cTemplate = this.templateC.content;
  6051. this.dialogVisible2 = false;
  6052. this.steps = 3;
  6053. this.isClickColor = 1;
  6054. this.unitJson[
  6055. this.unitIndex
  6056. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6057. this.$forceUpdate();
  6058. setTimeout(() => {
  6059. this.checkEva(this.checkId);
  6060. setTimeout(() => {
  6061. this.checkEva(this.checkId);
  6062. }, 100);
  6063. }, 1000);
  6064. }
  6065. } else {
  6066. if (this.steps == 1) {
  6067. if (this.cid == "" || this.cid == undefined) {
  6068. this.addWork();
  6069. } else {
  6070. if (this.userid != this.courseUserid && this.role != "1") {
  6071. this.updateWork2();
  6072. } else {
  6073. this.updateWork();
  6074. }
  6075. }
  6076. }
  6077. if (s == 1) {
  6078. this.steps = 1;
  6079. setTimeout(() => {
  6080. this.checkEva(this.checkId);
  6081. setTimeout(() => {
  6082. this.checkEva(this.checkId);
  6083. }, 100);
  6084. }, 100);
  6085. }
  6086. if (s == 3) {
  6087. this.cTemplate = this.templateC.content;
  6088. this.dialogVisible2 = false;
  6089. this.steps = 3;
  6090. this.isClickColor = 1;
  6091. this.unitJson[
  6092. this.unitIndex
  6093. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6094. this.$forceUpdate();
  6095. setTimeout(() => {
  6096. this.checkEva(this.checkId);
  6097. setTimeout(() => {
  6098. this.checkEva(this.checkId);
  6099. }, 100);
  6100. }, 1000);
  6101. }
  6102. }
  6103. this.$refs.stepBox.scrollTop = 0;
  6104. },
  6105. nextSteps(clickType) {
  6106. // if (this.cidType == 1) {
  6107. if (this.steps == 1) {
  6108. if (this.courseName != "") {
  6109. if (!this.isOutline) {
  6110. this.openAiDialog(clickType, 'aiOutline')
  6111. return;
  6112. }
  6113. if (!this.isOutline2) {
  6114. this.openAiDialog(clickType, 'aiTeacher')
  6115. return;
  6116. }
  6117. const functionA = () => {
  6118. setTimeout(() => {
  6119. this.loading = false
  6120. this.steps = 3;
  6121. }, 0)
  6122. this.isClickColor = 1;
  6123. this.unitJson[
  6124. this.unitIndex
  6125. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6126. this.$forceUpdate();
  6127. setTimeout(() => {
  6128. this.checkEva(this.checkId);
  6129. setTimeout(() => {
  6130. this.checkEva(this.checkId);
  6131. }, 100);
  6132. }, 1000);
  6133. if (this.cid == "" || this.cid == undefined) {
  6134. this.addWork();
  6135. } else {
  6136. if (this.userid != this.courseUserid && this.role != "1") {
  6137. this.updateWork2();
  6138. } else {
  6139. this.updateWork();
  6140. }
  6141. }
  6142. }
  6143. if (this.cid) {
  6144. this.loading = true
  6145. functionA()
  6146. } else {
  6147. this.openAiDialog(clickType, "aiTask", functionA)
  6148. }
  6149. } else {
  6150. this.$message.error("请补充填写课程名称");
  6151. return;
  6152. }
  6153. } else if (this.steps == 3) {
  6154. if (this.cid == "" || this.cid == undefined) {
  6155. if (this.courseName == "") {
  6156. this.$message.error("请补充填写课程名称");
  6157. return;
  6158. } else {
  6159. this.addWork();
  6160. this.steps++;
  6161. }
  6162. } else {
  6163. if (this.courseName == "") {
  6164. this.$message.error("请补充填写课程名称");
  6165. return;
  6166. } else {
  6167. if (this.userid != this.courseUserid && this.role != "1") {
  6168. this.updateWork2();
  6169. } else {
  6170. this.updateWork();
  6171. }
  6172. this.steps++;
  6173. }
  6174. }
  6175. }
  6176. // } else {
  6177. // if (this.steps == 1) {
  6178. // if (this.courseName != "") {
  6179. // if (this.cid == "" || this.cid == undefined) {
  6180. // this.addWork();
  6181. // } else {
  6182. // if (this.userid != this.courseUserid && this.role != "1") {
  6183. // // this.updateWork2();
  6184. // } else {
  6185. // this.updateWork();
  6186. // }
  6187. // }
  6188. // this.steps++;
  6189. // } else {
  6190. // this.$message.error("请补充填写课程名称");
  6191. // return;
  6192. // }
  6193. // } else if (this.steps == 2) {
  6194. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  6195. // this.cTemplate = this.templateC.content;
  6196. // }
  6197. // this.dialogVisible2 = false;
  6198. // this.steps++;
  6199. // setTimeout(() => {
  6200. // this.checkEva(this.checkId);
  6201. // setTimeout(() => {
  6202. // this.checkEva(this.checkId);
  6203. // }, 100);
  6204. // }, 1000);
  6205. // } else if (this.steps == 3) {
  6206. // if (this.cid == "" || this.cid == undefined) {
  6207. // if (this.courseName == "") {
  6208. // this.$message.error("请补充填写课程名称");
  6209. // return;
  6210. // } else {
  6211. // this.addWork();
  6212. // this.steps++;
  6213. // }
  6214. // } else {
  6215. // if (this.courseName == "") {
  6216. // this.$message.error("请补充填写课程名称");
  6217. // return;
  6218. // } else {
  6219. // if (this.userid != this.courseUserid && this.role != "1") {
  6220. // this.updateWork2();
  6221. // } else {
  6222. // this.updateWork();
  6223. // }
  6224. // this.steps++;
  6225. // }
  6226. // }
  6227. // }
  6228. // }
  6229. this.$refs.stepBox.scrollTop = 0;
  6230. },
  6231. unitSet(i) {
  6232. if (this.unitIndex == i) {
  6233. return;
  6234. }
  6235. this.unitIndex = i;
  6236. this.isClickColor = 1;
  6237. // this.$refs.rightboxR.scrollTop = 0;
  6238. this.$refs.unitBox.scrollTop = 0;
  6239. },
  6240. panUnitJson() {
  6241. let _unitIndex = this.unitIndex;
  6242. let cPan = 1;
  6243. for (
  6244. var j = 0;
  6245. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6246. j++
  6247. ) {
  6248. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6249. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6250. j
  6251. ].proVisible2 = false;
  6252. if (
  6253. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6254. .length > 1
  6255. ) {
  6256. for (
  6257. var z = 0;
  6258. z <
  6259. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6260. .length;
  6261. z++
  6262. ) {
  6263. if (
  6264. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6265. z
  6266. ].tool.length
  6267. ) {
  6268. this.$message.error("请把工具添加完整");
  6269. cPan = 2;
  6270. break;
  6271. }
  6272. }
  6273. }
  6274. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6275. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6276. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6277. (ele) => {
  6278. return ele.value != "";
  6279. }
  6280. );
  6281. }
  6282. }
  6283. return cPan;
  6284. },
  6285. unitOpen(i) {
  6286. if (this.unitJson[i].toolOpen) {
  6287. this.unitJson[i].toolOpen = false;
  6288. } else {
  6289. this.unitJson[i].toolOpen = true;
  6290. }
  6291. this.updateWork();
  6292. this.$forceUpdate();
  6293. },
  6294. unitSet2(i) {
  6295. if (this.panUnitJson() == 2) {
  6296. return;
  6297. }
  6298. // if(this.unitJson[i].toolOpen){
  6299. // this.unitJson[i].toolOpen = false
  6300. // this.updateWork()
  6301. // this.$forceUpdate()
  6302. // return
  6303. // }else {
  6304. this.unitJson[i].toolOpen = true;
  6305. // }
  6306. this.$forceUpdate();
  6307. if (this.unitIndex == i) {
  6308. return;
  6309. }
  6310. this.unitIndex = i;
  6311. this.isClickColor = 1;
  6312. // this.$refs.rightboxR.scrollTop = 0;
  6313. this.$refs.unitBox.scrollTop = 0;
  6314. },
  6315. updateCourseState(i) {
  6316. let params = [
  6317. {
  6318. cid: this.cid,
  6319. state: i,
  6320. },
  6321. ];
  6322. this.ajax
  6323. .post(this.$store.state.api + "updateCourseMode", params)
  6324. .then((res) => {
  6325. this.courseState = i;
  6326. })
  6327. .catch((err) => {
  6328. this.$message.error("网络不佳");
  6329. console.error(err);
  6330. });
  6331. },
  6332. addtips(){
  6333. let params = [
  6334. {
  6335. cid: this.cid,
  6336. tips: JSON.stringify(this.aiJson),
  6337. tid: this.templateid
  6338. },
  6339. ];
  6340. this.ajax
  6341. .post(this.$store.state.api + "addTips", params)
  6342. .then((res) => {
  6343. })
  6344. .catch((err) => {
  6345. this.$message.error("网络不佳");
  6346. console.error(err);
  6347. });
  6348. },
  6349. openSaveTips(){
  6350. this.dialogVisibleTips = true
  6351. },
  6352. time() {
  6353. if (!this.now) {
  6354. this.now = new Date().getTime();
  6355. return true;
  6356. } else {
  6357. let time = new Date().getTime();
  6358. if (time - this.now > 3000) {
  6359. this.now = time;
  6360. return true;
  6361. } else {
  6362. return false;
  6363. }
  6364. }
  6365. },
  6366. deleteUnit(i) {
  6367. var _this = this;
  6368. if (i == 0 && _this.unitJson.length == 1) {
  6369. _this
  6370. .$confirm("确定切换成任务模式吗?", "提示", {
  6371. confirmButtonText: "确定",
  6372. cancelButtonText: "取消",
  6373. type: "warning",
  6374. })
  6375. .then(() => {
  6376. _this.unitJson[i].dyName = "";
  6377. // _this.updateCourseState(2);
  6378. })
  6379. .catch(() => {
  6380. return;
  6381. });
  6382. } else {
  6383. _this
  6384. .$confirm("确定删除此阶段吗?", "提示", {
  6385. confirmButtonText: "确定",
  6386. cancelButtonText: "取消",
  6387. type: "warning",
  6388. })
  6389. .then(() => {
  6390. _this.isDelete = 2;
  6391. // _this.unitIndex = _this.unitIndex - 1;
  6392. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  6393. // _this.$message.success("删除成功");
  6394. })
  6395. .catch(() => {
  6396. return;
  6397. });
  6398. }
  6399. },
  6400. deleteWork(chapid) {
  6401. let params = [
  6402. {
  6403. cid: this.cid,
  6404. chapters: JSON.stringify(this.unitJson),
  6405. uid: this.userid,
  6406. chapid: chapid,
  6407. },
  6408. ];
  6409. this.ajax
  6410. .post(this.$store.state.api + "deleteWork", params)
  6411. .then((res) => {
  6412. this.$message({
  6413. message: "删除成功",
  6414. type: "success",
  6415. });
  6416. let task = JSON.parse(
  6417. JSON.stringify(
  6418. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  6419. )
  6420. );
  6421. this.unitJson.splice(this.unitIndex, 1);
  6422. if (this.unitIndex == 0) {
  6423. this.unitIndex = 0;
  6424. } else {
  6425. this.unitIndex = this.unitIndex - 1;
  6426. }
  6427. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  6428. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  6429. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  6430. ...task,
  6431. ];
  6432. }
  6433. })
  6434. .catch((err) => {
  6435. this.$message.error("网络不佳");
  6436. console.error(err);
  6437. });
  6438. },
  6439. deleteTool(itemTaskIndex, i) {
  6440. var _this = this;
  6441. if (_this.time()) {
  6442. _this
  6443. .$confirm("确定删除此工具吗?", "提示", {
  6444. confirmButtonText: "确定",
  6445. cancelButtonText: "取消",
  6446. type: "warning",
  6447. })
  6448. .then(() => {
  6449. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6450. itemTaskIndex
  6451. ].toolChoose.splice(i, 1);
  6452. _this.$message.success("删除成功");
  6453. })
  6454. .catch(() => {
  6455. return;
  6456. });
  6457. }
  6458. },
  6459. deleteSentence(i) {
  6460. var _this = this;
  6461. _this
  6462. .$confirm("确定删除此题目吗?", "提示", {
  6463. confirmButtonText: "确定",
  6464. cancelButtonText: "取消",
  6465. type: "warning",
  6466. })
  6467. .then(() => {
  6468. _this.sentenceList.splice(i, 1);
  6469. _this.$message.success("删除成功");
  6470. })
  6471. .catch(() => {
  6472. return;
  6473. });
  6474. },
  6475. deleteS(s, i, j) {
  6476. this.sentenceList[i].addSentence.splice(j, 1);
  6477. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  6478. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  6479. this.sentenceList[i].rightAnswer.splice(a, 1);
  6480. }
  6481. },
  6482. openT() {
  6483. top.postMessage({ tools: "25" }, "*");
  6484. },
  6485. deleteTask(i) {
  6486. var _this = this;
  6487. if (_this.time()) {
  6488. _this
  6489. .$confirm(
  6490. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  6491. 1 ==
  6492. i
  6493. ? "确定删除此任务吗?"
  6494. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  6495. "提示",
  6496. {
  6497. confirmButtonText: "确定",
  6498. cancelButtonText: "取消",
  6499. type: "warning",
  6500. }
  6501. )
  6502. .then(() => {
  6503. if (i == 0) {
  6504. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6505. i + 1
  6506. ].chapterData = JSON.parse(
  6507. JSON.stringify(
  6508. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  6509. .chapterData
  6510. )
  6511. );
  6512. }
  6513. _this.$forceUpdate();
  6514. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  6515. i,
  6516. 1
  6517. );
  6518. _this.$message.success("删除成功");
  6519. })
  6520. .catch(() => {
  6521. return;
  6522. });
  6523. }
  6524. },
  6525. handlePictureCardPreview(file) {
  6526. this.dialogImageUrl = file.url;
  6527. },
  6528. clean(i, c) {
  6529. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  6530. },
  6531. handle_remove1(file, fileList, type) {
  6532. var _tmp = this.cover;
  6533. // for (var i = 0, len = _tmp.length; i < len; i++) {
  6534. // if (_tmp[i].uid == file.uid) {
  6535. // _tmp.splice(i, 1);
  6536. // break;
  6537. // }
  6538. // this.cover = _tmp;
  6539. // }
  6540. this.cover = [];
  6541. this.noneBtnImg = this.cover.length >= 1;
  6542. this.isSysPic = false;
  6543. this.isSysPic2 = false;
  6544. this.$forceUpdate();
  6545. },
  6546. addImg(e) {
  6547. var el = e.currentTarget;
  6548. el.getElementsByTagName("input")[0].click();
  6549. e.target.value = "";
  6550. },
  6551. addChaptersTools(i) {
  6552. this.chapTools = [
  6553. {
  6554. tools: [],
  6555. toolDetail: "",
  6556. },
  6557. ];
  6558. this.chapCount = i;
  6559. this.dialogVisible4 = true;
  6560. },
  6561. isNoFinsh() {
  6562. this.$message.warning("功能正在开发中");
  6563. },
  6564. addAttText(i) {
  6565. this.AttText = {
  6566. title: "",
  6567. text: "",
  6568. };
  6569. this.taskCount = i;
  6570. this.AttTextType = 0;
  6571. this.$forceUpdate();
  6572. this.dialogVisible6 = true;
  6573. setTimeout(() => {
  6574. this.$refs["fuInput"].focus();
  6575. }, 100);
  6576. },
  6577. openLine(i) {
  6578. this.line = "";
  6579. this.lineCount = i;
  6580. this.lineType = 0;
  6581. this.$forceUpdate();
  6582. this.dialogVisible7 = true;
  6583. },
  6584. pasteLine(i) {
  6585. navigator.clipboard
  6586. .readText()
  6587. .then((v) => {
  6588. console.log("获取剪贴板成功:", v);
  6589. const html = v;
  6590. const regex = /src="(.*?)"/g;
  6591. const match = regex.exec(html);
  6592. if (match && match[1]) {
  6593. console.log(match[1]);
  6594. this.$message.success("粘贴成功");
  6595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6596. i
  6597. ].chapterData.push({
  6598. name: "链接",
  6599. title: "嵌入代码",
  6600. url: match[1],
  6601. type: 8,
  6602. });
  6603. } else {
  6604. // console.log("未找到包含 src 属性的 iframe");
  6605. this.$message.error(
  6606. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  6607. );
  6608. }
  6609. })
  6610. .catch((v) => {
  6611. console.log("获取剪贴板失败: ", v);
  6612. });
  6613. },
  6614. openSource(i) {
  6615. this.lineCount = i;
  6616. this.sourceData = {};
  6617. this.dialogVisibleSource = true;
  6618. this.updateSourcePan = false;
  6619. },
  6620. addSource() {
  6621. if (!Object.keys(this.sourceData).length) {
  6622. this.$message.error("请选择要上传的资源");
  6623. return;
  6624. }
  6625. let keys = Object.keys(this.sourceData);
  6626. for (var i = 0; i < keys.length; i++) {
  6627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6628. this.lineCount
  6629. ].chapterData.push({
  6630. name: "链接",
  6631. title: this.sourceData[keys[i]].name,
  6632. url: this.sourceData[keys[i]].url,
  6633. type: 14,
  6634. id: keys[i],
  6635. });
  6636. }
  6637. this.$forceUpdate();
  6638. this.dialogVisibleSource = false;
  6639. },
  6640. updateSource() {
  6641. if (!Object.keys(this.sourceData).length) {
  6642. this.$message.error("请选择要上传的资源");
  6643. return;
  6644. }
  6645. let keys = Object.keys(this.sourceData);
  6646. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6647. this.taskCount
  6648. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  6649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6650. this.taskCount
  6651. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  6652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6653. this.taskCount
  6654. ].chapterData[this.lineCount].id = keys[0];
  6655. this.updateSourcePan = false;
  6656. this.$forceUpdate();
  6657. this.dialogVisibleSource = false;
  6658. },
  6659. deleteM(i, j) {
  6660. this.testJson.testJson[i].timuList.splice(j, 1);
  6661. },
  6662. beforeUploadTiMu(event, i) {
  6663. const loading = this.openLoading();
  6664. var file = event.target.files[0];
  6665. var credentials = {
  6666. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6667. secretAccessKey: "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",
  6668. }; //秘钥形式的登录上传
  6669. window.AWS.config.update(credentials);
  6670. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6671. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6672. var _this = this;
  6673. if (file) {
  6674. var params = {
  6675. Key:
  6676. file.name.split(".")[0] +
  6677. new Date().getTime() +
  6678. "." +
  6679. file.name.split(".")[file.name.split(".").length - 1],
  6680. ContentType: file.type,
  6681. Body: file,
  6682. "Access-Control-Allow-Credentials": "*",
  6683. ACL: "public-read",
  6684. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6685. var options = {
  6686. partSize: 2048 * 1024 * 1024,
  6687. queueSize: 2,
  6688. leavePartsOnError: true,
  6689. };
  6690. bucket
  6691. .upload(params, options)
  6692. .on("httpUploadProgress", function (evt) {
  6693. //这里可以写进度条
  6694. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6695. })
  6696. .send(function (err, data) {
  6697. loading.close();
  6698. if (err) {
  6699. _this.$message.error("上传失败");
  6700. } else {
  6701. if (_this.testJson.testJson[i].timuList) {
  6702. _this.testJson.testJson[i].timuList.push({
  6703. src: data.Location,
  6704. });
  6705. } else {
  6706. _this.testJson.testJson[i].timuList = [];
  6707. _this.testJson.testJson[i].timuList.push({
  6708. src: data.Location,
  6709. });
  6710. }
  6711. _this.imgChange3(i);
  6712. _this.$forceUpdate();
  6713. }
  6714. });
  6715. }
  6716. },
  6717. beforeUploadTi(event, i, j) {
  6718. const loading = this.openLoading();
  6719. var file = event.target.files[0];
  6720. var credentials = {
  6721. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6722. secretAccessKey: "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",
  6723. }; //秘钥形式的登录上传
  6724. window.AWS.config.update(credentials);
  6725. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6726. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6727. var _this = this;
  6728. if (file) {
  6729. var params = {
  6730. Key:
  6731. file.name.split(".")[0] +
  6732. new Date().getTime() +
  6733. "." +
  6734. file.name.split(".")[file.name.split(".").length - 1],
  6735. ContentType: file.type,
  6736. Body: file,
  6737. "Access-Control-Allow-Credentials": "*",
  6738. ACL: "public-read",
  6739. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6740. var options = {
  6741. partSize: 2048 * 1024 * 1024,
  6742. queueSize: 2,
  6743. leavePartsOnError: true,
  6744. };
  6745. bucket
  6746. .upload(params, options)
  6747. .on("httpUploadProgress", function (evt) {
  6748. //这里可以写进度条
  6749. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6750. })
  6751. .send(function (err, data) {
  6752. loading.close();
  6753. if (err) {
  6754. _this.$message.error("上传失败");
  6755. } else {
  6756. _this.testJson.testJson[i].checkList[j] = {};
  6757. _this.testJson.testJson[i].checkList[j].src = data.Location;
  6758. _this.testJson.testJson[i].checkList[j].imgType = 1;
  6759. _this.imgChange2(i, j);
  6760. _this.$forceUpdate();
  6761. }
  6762. });
  6763. }
  6764. },
  6765. beforeUpload1(event, type) {
  6766. // const loading = this.openLoading();
  6767. var file = event.target.files[0];
  6768. var credentials = {
  6769. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6770. secretAccessKey: "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",
  6771. }; //秘钥形式的登录上传
  6772. window.AWS.config.update(credentials);
  6773. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6774. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6775. var _this = this;
  6776. if (file) {
  6777. var params = {
  6778. Key:
  6779. file.name.split(".")[0] +
  6780. new Date().getTime() +
  6781. "." +
  6782. file.name.split(".")[file.name.split(".").length - 1],
  6783. ContentType: file.type,
  6784. Body: file,
  6785. "Access-Control-Allow-Credentials": "*",
  6786. ACL: "public-read",
  6787. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6788. var options = {
  6789. partSize: 2048 * 1024 * 1024,
  6790. queueSize: 2,
  6791. leavePartsOnError: true,
  6792. };
  6793. bucket
  6794. .upload(params, options)
  6795. .on("httpUploadProgress", function (evt) {
  6796. //这里可以写进度条
  6797. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6798. })
  6799. .send(function (err, data) {
  6800. // loading.close();
  6801. if (err) {
  6802. // var a = _this.$refs.upload1.uploadFiles;
  6803. // a.splice(a.length - 1, a.length);
  6804. _this.$message.error("上传失败");
  6805. } else {
  6806. // _this.cover.push({
  6807. // name: file.name,
  6808. // url: data.Location,
  6809. // uid: file.uid,
  6810. // });
  6811. _this.cover = [
  6812. {
  6813. name: file.name,
  6814. url: data.Location,
  6815. uid: file.uid,
  6816. },
  6817. ];
  6818. _this.imgChange1(null, null, 1, null);
  6819. _this.choosePicVisible = false;
  6820. console.log(data.Location);
  6821. }
  6822. });
  6823. }
  6824. },
  6825. beforeUploadSelect(event, type) {
  6826. // const loading = this.openLoading();
  6827. var file = event.target.files[0];
  6828. var credentials = {
  6829. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6830. secretAccessKey: "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",
  6831. }; //秘钥形式的登录上传
  6832. window.AWS.config.update(credentials);
  6833. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6834. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6835. var _this = this;
  6836. if (file) {
  6837. var params = {
  6838. Key:
  6839. file.name.split(".")[0] +
  6840. new Date().getTime() +
  6841. "." +
  6842. file.name.split(".")[file.name.split(".").length - 1],
  6843. ContentType: file.type,
  6844. Body: file,
  6845. "Access-Control-Allow-Credentials": "*",
  6846. ACL: "public-read",
  6847. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6848. var options = {
  6849. partSize: 2048 * 1024 * 1024,
  6850. queueSize: 2,
  6851. leavePartsOnError: true,
  6852. };
  6853. bucket
  6854. .upload(params, options)
  6855. .on("httpUploadProgress", function (evt) {
  6856. //这里可以写进度条
  6857. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6858. })
  6859. .send(function (err, data) {
  6860. // loading.close();
  6861. if (err) {
  6862. _this.$message.error("上传失败");
  6863. } else {
  6864. _this.selectJson.url = data.Location;
  6865. console.log(data.Location);
  6866. }
  6867. });
  6868. }
  6869. },
  6870. chooseSysPic(p) {
  6871. this.cover = [];
  6872. setTimeout(() => {
  6873. this.cover[0] = {
  6874. name: "系统图片.png",
  6875. url: p,
  6876. };
  6877. this.imgChange1(null, null, 1, null);
  6878. this.$forceUpdate();
  6879. }, 0);
  6880. this.isSysPic = true;
  6881. this.isSysPic2 = false;
  6882. this.sysPicVisible = false;
  6883. this.$forceUpdate();
  6884. },
  6885. chooseSysPic2(p) {
  6886. this.cover = [];
  6887. setTimeout(() => {
  6888. this.cover[0] = {
  6889. name: "网络图片.png",
  6890. url: p,
  6891. };
  6892. this.imgChange1(null, null, 1, null);
  6893. this.$forceUpdate();
  6894. }, 0);
  6895. this.isSysPic2 = true;
  6896. this.isSysPic = false;
  6897. this.sysPicVisible2 = false;
  6898. this.$forceUpdate();
  6899. },
  6900. beforeUpload(data) {
  6901. this.$refs.upload1.uploadFiles;
  6902. this.uploadLoading1 = true;
  6903. var file = data.file;
  6904. var credentials = {
  6905. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6906. secretAccessKey: "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",
  6907. }; //秘钥形式的登录上传
  6908. window.AWS.config.update(credentials);
  6909. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6910. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6911. var _this = this;
  6912. if (file) {
  6913. var params = {
  6914. Key:
  6915. file.name.split(".")[0] +
  6916. new Date().getTime() +
  6917. "." +
  6918. file.name.split(".")[file.name.split(".").length - 1],
  6919. ContentType: file.type,
  6920. Body: file,
  6921. "Access-Control-Allow-Credentials": "*",
  6922. ACL: "public-read",
  6923. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6924. var options = {
  6925. partSize: 2048 * 1024 * 1024,
  6926. queueSize: 2,
  6927. leavePartsOnError: true,
  6928. };
  6929. bucket
  6930. .upload(params, options)
  6931. .on("httpUploadProgress", function (evt) {
  6932. //这里可以写进度条
  6933. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6934. })
  6935. .send(function (err, data) {
  6936. _this.uploadLoading1 = false;
  6937. if (err) {
  6938. // var a = _this.$refs.upload1.uploadFiles;
  6939. // a.splice(a.length - 1, a.length);
  6940. _this.$message.error("上传失败");
  6941. } else {
  6942. //上传成功处理
  6943. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  6944. name: file.name,
  6945. url: data.Location,
  6946. uid: file.uid,
  6947. });
  6948. _this.imgChange();
  6949. console.log(data.Location);
  6950. }
  6951. });
  6952. }
  6953. },
  6954. onExceed() {
  6955. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  6956. },
  6957. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  6958. // const loading = this.openLoading();
  6959. var file = event.target.files[0];
  6960. var credentials = {
  6961. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6962. secretAccessKey: "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",
  6963. }; //秘钥形式的登录上传
  6964. window.AWS.config.update(credentials);
  6965. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6966. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6967. var _this = this;
  6968. if (type == 3) {
  6969. var b = [
  6970. "DOC",
  6971. "DOCX",
  6972. "DOCM",
  6973. "DOTM",
  6974. "DOTX",
  6975. "PPTX",
  6976. "PPSX",
  6977. "PPT",
  6978. "PPS",
  6979. "PPTM",
  6980. "POTM",
  6981. "PPAM",
  6982. "POTX",
  6983. "PPSM",
  6984. ];
  6985. if (
  6986. b.indexOf(
  6987. file.name
  6988. .split(".")
  6989. [file.name.split(".").length - 1].toLocaleUpperCase()
  6990. ) != -1
  6991. ) {
  6992. if (file.size / 1024 / 1024 > 80) {
  6993. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6994. this.inputShow = true;
  6995. // var a = _this.$refs.upload1.uploadFiles;
  6996. // a.splice(a.length - 1, a.length);
  6997. // loading.close();
  6998. return;
  6999. }
  7000. } else if (
  7001. file.name
  7002. .split(".")
  7003. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7004. ) {
  7005. if (file.size / 1024 / 1024 > 80) {
  7006. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7007. this.inputShow = true;
  7008. // var a = _this.$refs.upload1.uploadFiles;
  7009. // a.splice(a.length - 1, a.length);
  7010. // loading.close();
  7011. return;
  7012. }
  7013. }
  7014. }
  7015. this.inputShow = false;
  7016. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7017. itemTaskIndex
  7018. ].progress = 0;
  7019. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7020. itemTaskIndex
  7021. ].proVisible = true;
  7022. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7023. itemTaskIndex
  7024. ].isFinishSize = 0;
  7025. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7026. itemTaskIndex
  7027. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7028. _this.$forceUpdate();
  7029. if (file) {
  7030. var params = {
  7031. Key:
  7032. file.name.split(".")[0] +
  7033. new Date().getTime() +
  7034. "." +
  7035. file.name.split(".")[file.name.split(".").length - 1],
  7036. ContentType: file.type,
  7037. Body: file,
  7038. "Access-Control-Allow-Credentials": "*",
  7039. ACL: "public-read",
  7040. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7041. var options = {
  7042. partSize: 2048 * 1024 * 1024,
  7043. queueSize: 2,
  7044. leavePartsOnError: true,
  7045. };
  7046. bucket
  7047. .upload(params, options)
  7048. .on("httpUploadProgress", function (evt) {
  7049. //这里可以写进度条
  7050. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7051. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7052. itemTaskIndex
  7053. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7054. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7055. itemTaskIndex
  7056. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7057. _this.$forceUpdate();
  7058. })
  7059. .send(function (err, data) {
  7060. // loading.close();
  7061. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7062. itemTaskIndex
  7063. ].progress = 100;
  7064. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7065. itemTaskIndex
  7066. ].isFinishSize =
  7067. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7068. itemTaskIndex
  7069. ].isAllSize;
  7070. _this.$forceUpdate();
  7071. setTimeout(() => {
  7072. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7073. itemTaskIndex
  7074. ].proVisible = false;
  7075. _this.$forceUpdate();
  7076. }, 1000);
  7077. _this.inputShow = true;
  7078. if (err) {
  7079. // var a = _this.$refs.upload1.uploadFiles;
  7080. // a.splice(a.length - 1, a.length);
  7081. _this.$message.error("上传失败");
  7082. } else {
  7083. if (type == 13) {
  7084. let _type = 2;
  7085. var imgA = [
  7086. "png",
  7087. "jpg",
  7088. "jpeg",
  7089. "bmp",
  7090. "gif",
  7091. "webp",
  7092. "psd",
  7093. "svg",
  7094. "tiff",
  7095. ];
  7096. var fileA = [
  7097. "PDF",
  7098. "DOC",
  7099. "DOCX",
  7100. "DOCM",
  7101. "DOTM",
  7102. "DOTX",
  7103. "PPTX",
  7104. "PPSX",
  7105. "PPT",
  7106. "PPS",
  7107. "PPTM",
  7108. "POTM",
  7109. "PPAM",
  7110. "POTX",
  7111. "PPSM",
  7112. "XLSX",
  7113. "XLS",
  7114. ];
  7115. var videoA = [
  7116. "AVI",
  7117. "NAVI",
  7118. "MPEG",
  7119. "ASF",
  7120. "MOV",
  7121. "WMV",
  7122. "3GP",
  7123. "RM",
  7124. "RMVB",
  7125. "FLV",
  7126. "F4V",
  7127. "H.264",
  7128. "H.265",
  7129. "REAL VIDEO",
  7130. "MKV",
  7131. "WebM",
  7132. "HDDVD",
  7133. "MP4",
  7134. "MPG",
  7135. "M4V",
  7136. "MGV",
  7137. "OGV",
  7138. "QTM",
  7139. "STR",
  7140. "AMC",
  7141. "DVX",
  7142. "EVO",
  7143. "DAT",
  7144. "OGG",
  7145. "OGM",
  7146. ];
  7147. if (
  7148. fileA.indexOf(
  7149. data.Location.split(".")[
  7150. data.Location.split(".").length - 1
  7151. ].toLocaleUpperCase()
  7152. ) != -1
  7153. ) {
  7154. _type = 3;
  7155. } else if (
  7156. videoA.indexOf(
  7157. data.Location.split(".")[
  7158. data.Location.split(".").length - 1
  7159. ].toLocaleUpperCase()
  7160. ) != -1
  7161. ) {
  7162. _type = 2;
  7163. } else if (
  7164. imgA.indexOf(
  7165. data.Location.split(".")[
  7166. data.Location.split(".").length - 1
  7167. ].toLocaleLowerCase()
  7168. ) != -1
  7169. ) {
  7170. _type = 13;
  7171. } else {
  7172. _type = 12;
  7173. }
  7174. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7175. itemTaskIndex
  7176. ].chapterData.push({
  7177. name: file.name,
  7178. url: data.Location,
  7179. uid: file.uid,
  7180. type: _type,
  7181. });
  7182. _this.imgChange1(null, null, _type, itemTaskIndex);
  7183. } else if (type == 2 || type == 3 || type == 12) {
  7184. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7185. itemTaskIndex
  7186. ].chapterData.push({
  7187. name: file.name,
  7188. url: data.Location,
  7189. uid: file.uid,
  7190. type: type,
  7191. });
  7192. _this.imgChange1(null, null, type, itemTaskIndex);
  7193. } else if (type == 4) {
  7194. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7195. itemTaskIndex
  7196. ].fileList1.push({
  7197. name: file.name,
  7198. url: data.Location,
  7199. uid: file.uid,
  7200. });
  7201. _this.imgChange1(null, null, type, itemTaskIndex);
  7202. } else if (type == 5) {
  7203. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7204. itemTaskIndex
  7205. ].homeworkList.push({
  7206. name: file.name,
  7207. url: data.Location,
  7208. uid: file.uid,
  7209. });
  7210. _this.imgChange1(null, null, type, itemTaskIndex);
  7211. }
  7212. console.log(data.Location);
  7213. }
  7214. });
  7215. }
  7216. },
  7217. beforeUploadInfo2(event, type) {
  7218. // const loading = this.openLoading();
  7219. var file = event.target.files[0];
  7220. var credentials = {
  7221. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7222. secretAccessKey: "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",
  7223. }; //秘钥形式的登录上传
  7224. window.AWS.config.update(credentials);
  7225. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7226. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7227. var _this = this;
  7228. if (type == 3) {
  7229. var b = [
  7230. "DOC",
  7231. "DOCX",
  7232. "DOCM",
  7233. "DOTM",
  7234. "DOTX",
  7235. "PPTX",
  7236. "PPSX",
  7237. "PPT",
  7238. "PPS",
  7239. "PPTM",
  7240. "POTM",
  7241. "PPAM",
  7242. "POTX",
  7243. "PPSM",
  7244. ];
  7245. if (
  7246. b.indexOf(
  7247. file.name
  7248. .split(".")
  7249. [file.name.split(".").length - 1].toLocaleUpperCase()
  7250. ) != -1
  7251. ) {
  7252. if (file.size / 1024 / 1024 > 80) {
  7253. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7254. this.inputShow = true;
  7255. // var a = _this.$refs.upload1.uploadFiles;
  7256. // a.splice(a.length - 1, a.length);
  7257. // loading.close();
  7258. return;
  7259. }
  7260. } else if (
  7261. file.name
  7262. .split(".")
  7263. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7264. ) {
  7265. if (file.size / 1024 / 1024 > 80) {
  7266. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7267. this.inputShow = true;
  7268. // var a = _this.$refs.upload1.uploadFiles;
  7269. // a.splice(a.length - 1, a.length);
  7270. // loading.close();
  7271. return;
  7272. }
  7273. }
  7274. }
  7275. this.inputShow = false;
  7276. _this.infoprogress = 0;
  7277. _this.infoproVisible = true;
  7278. _this.infoisFinishSize = 0;
  7279. _this.infoisAllSize = (file.size / 1024 / 1024).toFixed(2);
  7280. _this.$forceUpdate();
  7281. if (file) {
  7282. var params = {
  7283. Key:
  7284. file.name.split(".")[0] +
  7285. new Date().getTime() +
  7286. "." +
  7287. file.name.split(".")[file.name.split(".").length - 1],
  7288. ContentType: file.type,
  7289. Body: file,
  7290. "Access-Control-Allow-Credentials": "*",
  7291. ACL: "public-read",
  7292. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7293. var options = {
  7294. partSize: 2048 * 1024 * 1024,
  7295. queueSize: 2,
  7296. leavePartsOnError: true,
  7297. };
  7298. bucket
  7299. .upload(params, options)
  7300. .on("httpUploadProgress", function (evt) {
  7301. //这里可以写进度条
  7302. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7303. _this.infoprogress = parseInt((evt.loaded / evt.total) * 100);
  7304. _this.infoisFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7305. _this.$forceUpdate();
  7306. })
  7307. .send(function (err, data) {
  7308. // loading.close();
  7309. _this.infoprogress = 100;
  7310. _this.infoisFinishSize = _this.infoisAllSize;
  7311. _this.$forceUpdate();
  7312. setTimeout(() => {
  7313. _this.infoproVisible = false;
  7314. _this.$forceUpdate();
  7315. }, 1000);
  7316. _this.inputShow = true;
  7317. if (err) {
  7318. // var a = _this.$refs.upload1.uploadFiles;
  7319. // a.splice(a.length - 1, a.length);
  7320. _this.$message.error("上传失败");
  7321. } else {
  7322. if (type == 13) {
  7323. let _type = 2;
  7324. var imgA = [
  7325. "png",
  7326. "jpg",
  7327. "jpeg",
  7328. "bmp",
  7329. "gif",
  7330. "webp",
  7331. "psd",
  7332. "svg",
  7333. "tiff",
  7334. ];
  7335. var fileA = [
  7336. "PDF",
  7337. "DOC",
  7338. "DOCX",
  7339. "DOCM",
  7340. "DOTM",
  7341. "DOTX",
  7342. "PPTX",
  7343. "PPSX",
  7344. "PPT",
  7345. "PPS",
  7346. "PPTM",
  7347. "POTM",
  7348. "PPAM",
  7349. "POTX",
  7350. "PPSM",
  7351. "XLSX",
  7352. "XLS",
  7353. ];
  7354. var videoA = [
  7355. "AVI",
  7356. "NAVI",
  7357. "MPEG",
  7358. "ASF",
  7359. "MOV",
  7360. "WMV",
  7361. "3GP",
  7362. "RM",
  7363. "RMVB",
  7364. "FLV",
  7365. "F4V",
  7366. "H.264",
  7367. "H.265",
  7368. "REAL VIDEO",
  7369. "MKV",
  7370. "WebM",
  7371. "HDDVD",
  7372. "MP4",
  7373. "MPG",
  7374. "M4V",
  7375. "MGV",
  7376. "OGV",
  7377. "QTM",
  7378. "STR",
  7379. "AMC",
  7380. "DVX",
  7381. "EVO",
  7382. "DAT",
  7383. "OGG",
  7384. "OGM",
  7385. ];
  7386. if (
  7387. fileA.indexOf(
  7388. data.Location.split(".")[
  7389. data.Location.split(".").length - 1
  7390. ].toLocaleUpperCase()
  7391. ) != -1
  7392. ) {
  7393. _type = 3;
  7394. } else if (
  7395. videoA.indexOf(
  7396. data.Location.split(".")[
  7397. data.Location.split(".").length - 1
  7398. ].toLocaleUpperCase()
  7399. ) != -1
  7400. ) {
  7401. _type = 2;
  7402. } else if (
  7403. imgA.indexOf(
  7404. data.Location.split(".")[
  7405. data.Location.split(".").length - 1
  7406. ].toLocaleLowerCase()
  7407. ) != -1
  7408. ) {
  7409. _type = 13;
  7410. } else {
  7411. _type = 12;
  7412. }
  7413. _this.infoData.push({
  7414. name: file.name,
  7415. url: data.Location,
  7416. uid: file.uid,
  7417. type: _type,
  7418. });
  7419. } else if (type == 2 || type == 3 || type == 12) {
  7420. _this.infoData.push({
  7421. name: file.name,
  7422. url: data.Location,
  7423. uid: file.uid,
  7424. type: type,
  7425. });
  7426. }
  7427. console.log(data.Location);
  7428. }
  7429. });
  7430. }
  7431. },
  7432. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7433. // const loading = this.openLoading();
  7434. var file = event.target.files[0];
  7435. var credentials = {
  7436. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7437. secretAccessKey: "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",
  7438. }; //秘钥形式的登录上传
  7439. window.AWS.config.update(credentials);
  7440. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7441. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7442. var _this = this;
  7443. if (type == 3) {
  7444. var b = [
  7445. "DOC",
  7446. "DOCX",
  7447. "DOCM",
  7448. "DOTM",
  7449. "DOTX",
  7450. "PPTX",
  7451. "PPSX",
  7452. "PPT",
  7453. "PPS",
  7454. "PPTM",
  7455. "POTM",
  7456. "PPAM",
  7457. "POTX",
  7458. "PPSM",
  7459. ];
  7460. if (
  7461. b.indexOf(
  7462. file.name
  7463. .split(".")
  7464. [file.name.split(".").length - 1].toLocaleUpperCase()
  7465. ) != -1
  7466. ) {
  7467. if (file.size / 1024 / 1024 > 80) {
  7468. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7469. this.inputShow = true;
  7470. // var a = _this.$refs.upload1.uploadFiles;
  7471. // a.splice(a.length - 1, a.length);
  7472. // loading.close();
  7473. return;
  7474. }
  7475. } else if (
  7476. file.name
  7477. .split(".")
  7478. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7479. ) {
  7480. if (file.size / 1024 / 1024 > 80) {
  7481. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7482. this.inputShow = true;
  7483. // var a = _this.$refs.upload1.uploadFiles;
  7484. // a.splice(a.length - 1, a.length);
  7485. // loading.close();
  7486. return;
  7487. }
  7488. }
  7489. }
  7490. this.inputShow = false;
  7491. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7492. itemTaskIndex
  7493. ].progress = 0;
  7494. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7495. itemTaskIndex
  7496. ].proVisible = true;
  7497. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7498. itemTaskIndex
  7499. ].isFinishSize = 0;
  7500. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7501. itemTaskIndex
  7502. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7503. _this.$forceUpdate();
  7504. if (file) {
  7505. var params = {
  7506. Key:
  7507. file.name.split(".")[0] +
  7508. new Date().getTime() +
  7509. "." +
  7510. file.name.split(".")[file.name.split(".").length - 1],
  7511. ContentType: file.type,
  7512. Body: file,
  7513. "Access-Control-Allow-Credentials": "*",
  7514. ACL: "public-read",
  7515. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7516. var options = {
  7517. partSize: 2048 * 1024 * 1024,
  7518. queueSize: 2,
  7519. leavePartsOnError: true,
  7520. };
  7521. bucket
  7522. .upload(params, options)
  7523. .on("httpUploadProgress", function (evt) {
  7524. //这里可以写进度条
  7525. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7526. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7527. itemTaskIndex
  7528. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7529. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7530. itemTaskIndex
  7531. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7532. _this.$forceUpdate();
  7533. })
  7534. .send(function (err, data) {
  7535. // loading.close();
  7536. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7537. itemTaskIndex
  7538. ].progress = 100;
  7539. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7540. itemTaskIndex
  7541. ].isFinishSize =
  7542. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7543. itemTaskIndex
  7544. ].isAllSize;
  7545. _this.$forceUpdate();
  7546. setTimeout(() => {
  7547. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7548. itemTaskIndex
  7549. ].proVisible = false;
  7550. _this.$forceUpdate();
  7551. }, 1000);
  7552. _this.inputShow = true;
  7553. if (err) {
  7554. // var a = _this.$refs.upload1.uploadFiles;
  7555. // a.splice(a.length - 1, a.length);
  7556. _this.$message.error("上传失败");
  7557. } else {
  7558. if (type == 2 || type == 3) {
  7559. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7560. itemTaskIndex
  7561. ].chapterData.push({
  7562. name: file.name,
  7563. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7564. // itemTaskIndex
  7565. // ].chapterData.length+1),
  7566. url: data.Location,
  7567. uid: file.uid,
  7568. type: type,
  7569. text: string,
  7570. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7571. // itemTaskIndex
  7572. // ].chapterData.length + 1),
  7573. });
  7574. _this.imgChange1(null, null, type, itemTaskIndex);
  7575. } else if (type == 4) {
  7576. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7577. itemTaskIndex
  7578. ].fileList1.push({
  7579. name: file.name,
  7580. url: data.Location,
  7581. uid: file.uid,
  7582. });
  7583. _this.imgChange1(null, null, type, itemTaskIndex);
  7584. } else if (type == 5) {
  7585. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7586. itemTaskIndex
  7587. ].homeworkList.push({
  7588. name: file.name,
  7589. url: data.Location,
  7590. uid: file.uid,
  7591. });
  7592. _this.imgChange1(null, null, type, itemTaskIndex);
  7593. }
  7594. console.log(data.Location);
  7595. }
  7596. });
  7597. }
  7598. },
  7599. addunit() {
  7600. this.unitJson.push({
  7601. dyName: "", //单元标题
  7602. isUpdate: 1,
  7603. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  7604. chapterInfo: [
  7605. {
  7606. isread: false,
  7607. chapterid: this.guid(),
  7608. title: "",
  7609. courseName: "",
  7610. taskJson: [
  7611. {
  7612. task: "",
  7613. taskDetail: "",
  7614. chapterData: [],
  7615. toolText: "",
  7616. toolChoose: [
  7617. {
  7618. tool: [],
  7619. toolDetail: "",
  7620. toolType: 0,
  7621. askCount: 1,
  7622. askTitle: "",
  7623. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7624. },
  7625. ],
  7626. isShowTools: false,
  7627. askCount: 1,
  7628. isFold: 1,
  7629. askTitle: "",
  7630. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7631. checkJson: [{ checkCount: [], checkPerent: [] }],
  7632. homeworkList: [],
  7633. },
  7634. ],
  7635. itemCount: 1,
  7636. fileList1: [],
  7637. video: [],
  7638. testData: [],
  7639. pData: [],
  7640. templateArray: [],
  7641. },
  7642. ],
  7643. });
  7644. this.addindex = this.unitJson.length - 1;
  7645. setTimeout(() => {
  7646. this.unitIndex = this.unitJson.length - 1;
  7647. setTimeout(() => {
  7648. console.log(this.$refs.dyInput);
  7649. this.$refs.dyInput[0].focus();
  7650. }, 100);
  7651. this.unitSet(this.unitIndex);
  7652. }, 0);
  7653. },
  7654. addToolFun(itemTaskIndex) {
  7655. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7656. itemTaskIndex
  7657. ].toolChoose.push({
  7658. tool: [],
  7659. toolDetail: "",
  7660. toolType: 0,
  7661. askCount: 1,
  7662. askTitle: "",
  7663. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7664. });
  7665. },
  7666. addTaskBorder() {
  7667. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  7668. task: "",
  7669. taskDetail: "",
  7670. chapterData: [],
  7671. toolText: "",
  7672. toolChoose: [
  7673. {
  7674. tool: [],
  7675. toolDetail: "",
  7676. toolType: 0,
  7677. askCount: 1,
  7678. askTitle: "",
  7679. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7680. },
  7681. ],
  7682. isShowTools: false,
  7683. askCount: 1,
  7684. isFold: 1, //任务收起状态
  7685. askTitle: "",
  7686. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7687. checkJson: [{ checkCount: [], checkPerent: [] }],
  7688. homeworkList: [],
  7689. });
  7690. setTimeout(() => {
  7691. this.checkEva(this.checkId);
  7692. setTimeout(() => {
  7693. this.checkEva(this.checkId);
  7694. }, 100);
  7695. }, 100);
  7696. },
  7697. add(e, i) {
  7698. var el = e.currentTarget;
  7699. el.getElementsByTagName("input")[0].click();
  7700. },
  7701. fold(i, e) {
  7702. if (
  7703. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  7704. ) {
  7705. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  7706. } else {
  7707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  7708. }
  7709. },
  7710. fold2(i) {
  7711. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  7712. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7713. i
  7714. ].isFold2 = false;
  7715. } else {
  7716. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  7717. }
  7718. this.$forceUpdate();
  7719. },
  7720. foldEva(i) {
  7721. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  7722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7723. i
  7724. ].isEvaFold = false;
  7725. } else {
  7726. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7727. i
  7728. ].isEvaFold = true;
  7729. setTimeout(() => {
  7730. this.checkEva(this.checkId);
  7731. setTimeout(() => {
  7732. this.checkEva(this.checkId);
  7733. }, 500);
  7734. }, 0);
  7735. }
  7736. this.$forceUpdate();
  7737. },
  7738. foldC(i) {
  7739. if (
  7740. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  7741. ) {
  7742. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7743. i
  7744. ].isFoldchapter = false;
  7745. } else {
  7746. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7747. i
  7748. ].isFoldchapter = true;
  7749. }
  7750. this.$forceUpdate();
  7751. },
  7752. fold3(i, ti) {
  7753. if (
  7754. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  7755. .isFold3
  7756. ) {
  7757. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7758. ti
  7759. ].isFold3 = false;
  7760. } else {
  7761. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7762. ti
  7763. ].isFold3 = true;
  7764. }
  7765. this.$forceUpdate();
  7766. },
  7767. deleteHomeworkBox(unitIndex, index, i) {
  7768. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  7769. this.taskCount
  7770. ].homeworkList.splice(i, 1);
  7771. },
  7772. getStudent() {
  7773. let params = {
  7774. oid: this.oid,
  7775. cu: "",
  7776. cn: this.searchPeople,
  7777. };
  7778. this.ajax
  7779. .get(this.$store.state.api + "selectStudentAdd", params)
  7780. .then((res) => {
  7781. this.studentJuri = res.data[0];
  7782. })
  7783. .catch((err) => {
  7784. this.isLoading = false;
  7785. console.error(err);
  7786. });
  7787. },
  7788. // 添加协同成员其他选项按钮
  7789. getTeacherCopy(){
  7790. this.CollLoading=true
  7791. this.collid = ''
  7792. this.collid = '1xpz'
  7793. let params = {
  7794. oid:
  7795. this.org && this.org != "undefined" && this.org != "null"
  7796. ? this.org
  7797. : this.oid,
  7798. cu: "",
  7799. cn: this.searchTN,
  7800. coll: ''
  7801. };
  7802. this.ajax
  7803. .get(
  7804. this.$store.state.api +
  7805. (this.org && this.org != "undefined" && this.org != "null"
  7806. ? "selectCollaborativeMembersOrg"
  7807. : "selectCollaborativeMembers"),
  7808. params
  7809. )
  7810. .then((res) => {
  7811. let teacherJuri = res.data[0];
  7812. this.CollaborativeTeaList = res.data[1];
  7813. for (var i = 0; i < teacherJuri.length; i++) {
  7814. if (teacherJuri[i].userid == this.userid) {
  7815. teacherJuri.splice(i, 1);
  7816. break;
  7817. }
  7818. }
  7819. this.teacherJuri = teacherJuri.filter((i,index)=>{
  7820. return (i.cclassid == '' || i.cclassid == null)
  7821. })
  7822. console.log(' this.teacherJuri', this.teacherJuri);
  7823. let _check = [];
  7824. let _check2 = [];
  7825. for (var i = 0; i < this.teacherJuri.length; i++) {
  7826. var gid = this.teacherJuri[i].userid;
  7827. _check.push(gid);
  7828. }
  7829. for (var i = 0; i < this.checkboxList3.length; i++) {
  7830. var _id = this.checkboxList3[i];
  7831. if (_check.indexOf(_id) !== -1) {
  7832. _check2.push(_id);
  7833. }
  7834. }
  7835. if (_check2.length==0 && _check.length==0) {
  7836. }else{
  7837. this.checkAll2 = _check2.length === _check.length;
  7838. }
  7839. this.CollLoading=false
  7840. })
  7841. .catch((err) => {
  7842. console.error(err);
  7843. this.CollLoading=false
  7844. });
  7845. },
  7846. getTeacher(val) {
  7847. this.CollLoading=true
  7848. this.collid = ''
  7849. this.collid = !val ? '' : val
  7850. let params = {
  7851. oid:
  7852. this.org && this.org != "undefined" && this.org != "null"
  7853. ? this.org
  7854. : this.oid,
  7855. cu: "",
  7856. cn: this.searchTN,
  7857. coll: this.collid
  7858. };
  7859. this.ajax
  7860. .get(
  7861. this.$store.state.api +
  7862. (this.org && this.org != "undefined" && this.org != "null"
  7863. ? "selectCollaborativeMembersOrg"
  7864. : "selectCollaborativeMembers"),
  7865. params
  7866. )
  7867. .then((res) => {
  7868. let teacherJuri = res.data[0];
  7869. this.CollaborativeTeaList = res.data[1];
  7870. for (var i = 0; i < teacherJuri.length; i++) {
  7871. if (teacherJuri[i].userid == this.userid) {
  7872. teacherJuri.splice(i, 1);
  7873. break;
  7874. }
  7875. }
  7876. this.teacherJuri = teacherJuri;
  7877. let _check = [];
  7878. let _check2 = [];
  7879. for (var i = 0; i < this.teacherJuri.length; i++) {
  7880. var gid = this.teacherJuri[i].userid;
  7881. _check.push(gid);
  7882. }
  7883. for (var i = 0; i < this.checkboxList3.length; i++) {
  7884. var _id = this.checkboxList3[i];
  7885. if (_check.indexOf(_id) !== -1) {
  7886. _check2.push(_id);
  7887. }
  7888. }
  7889. if (_check2.length==0 && _check.length==0) {
  7890. }else{
  7891. this.checkAll2 = _check2.length === _check.length;
  7892. }
  7893. this.CollLoading=false
  7894. })
  7895. .catch((err) => {
  7896. console.error(err);
  7897. this.CollLoading=false
  7898. });
  7899. },
  7900. searchStudent() {
  7901. this.getStudent();
  7902. },
  7903. selectGrage() {
  7904. let params = {
  7905. oid: this.oid,
  7906. };
  7907. this.ajax
  7908. .get(this.$store.state.api + "selectGrageBySchool", params)
  7909. .then((res) => {
  7910. this.gradeList = res.data[0];
  7911. })
  7912. .catch((err) => {
  7913. this.isLoading = false;
  7914. console.error(err);
  7915. });
  7916. },
  7917. //获取班级列表
  7918. getClass() {
  7919. let params = {
  7920. oid: this.oid,
  7921. gid: this.gradeId,
  7922. cn: this.classSearch,
  7923. };
  7924. this.ajax
  7925. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  7926. .then((res) => {
  7927. if (!this.grade.length) {
  7928. this.grade = res.data[0];
  7929. }
  7930. this.grade2 = res.data[0];
  7931. this.classJuri = res.data[0];
  7932. let _check = [];
  7933. let _check2 = [];
  7934. for (var i = 0; i < this.grade2.length; i++) {
  7935. var gid = this.grade2[i].id;
  7936. _check.push(gid);
  7937. }
  7938. for (var i = 0; i < this.checkboxList2.length; i++) {
  7939. var _id = this.checkboxList2[i];
  7940. if (_check.indexOf(_id) !== -1) {
  7941. _check2.push(_id);
  7942. }
  7943. }
  7944. this.checkAll = _check2.length === _check.length;
  7945. })
  7946. .catch((err) => {
  7947. this.isLoading = false;
  7948. console.error(err);
  7949. });
  7950. },
  7951. CourseType2Change(val) {
  7952. this.pTypeCheck = [];
  7953. for (var i = 0; i < this.CourseType2.length; i++) {
  7954. let typeA = this.CourseType2[i];
  7955. if (val.indexOf(typeA.name) != -1) {
  7956. this.pTypeCheck.push(...typeA.id);
  7957. }
  7958. }
  7959. },
  7960. getChapterData(e, i, j, ic, type) {
  7961. e.stopPropagation();
  7962. this.updataC = true;
  7963. this.icc = ic;
  7964. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  7965. console.log("还不能下载图片喔");
  7966. }
  7967. },
  7968. deleteChapterData(e, i, j, ic, taskI) {
  7969. e.stopPropagation();
  7970. let _this = this;
  7971. _this
  7972. .$confirm("确定删除此项?", "提示", {
  7973. confirmButtonText: "确定",
  7974. cancelButtonText: "取消",
  7975. type: "warning",
  7976. })
  7977. .then(() => {
  7978. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  7979. ic,
  7980. 1
  7981. );
  7982. })
  7983. .catch(() => {
  7984. return;
  7985. });
  7986. },
  7987. deleteInfoData(e, ic) {
  7988. e.stopPropagation();
  7989. let _this = this;
  7990. _this
  7991. .$confirm("确定删除此项?", "提示", {
  7992. confirmButtonText: "确定",
  7993. cancelButtonText: "取消",
  7994. type: "warning",
  7995. })
  7996. .then(() => {
  7997. _this.infoData.splice(
  7998. ic,
  7999. 1
  8000. );
  8001. })
  8002. .catch(() => {
  8003. return;
  8004. });
  8005. },
  8006. updataVideoT(e, i, j, ic) {
  8007. // e.stopPropagation();
  8008. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  8009. // ic
  8010. // ].name = JSON.parse(JSON.stringify(e.target.value));
  8011. this.line =
  8012. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  8013. this.taskCount = j;
  8014. this.lineCount = ic;
  8015. this.dialogVisibleupdataVideoT = true;
  8016. this.$forceUpdate();
  8017. },
  8018. updataVideoC() {
  8019. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8020. this.taskCount
  8021. ].chapterData[this.lineCount].name = JSON.parse(
  8022. JSON.stringify(this.line)
  8023. );
  8024. this.dialogVisibleupdataVideoT = false;
  8025. this.$forceUpdate();
  8026. },
  8027. upCd(e, i, j, taskCount, ic) {
  8028. e.stopPropagation();
  8029. if (ic == 0) {
  8030. return;
  8031. }
  8032. var a = JSON.parse(
  8033. JSON.stringify(
  8034. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8035. ic - 1
  8036. ]
  8037. )
  8038. );
  8039. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8040. JSON.parse(
  8041. JSON.stringify(
  8042. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8043. )
  8044. );
  8045. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8046. this.$forceUpdate();
  8047. },
  8048. downCd(e, i, j, taskCount, ic) {
  8049. e.stopPropagation();
  8050. if (
  8051. ic ==
  8052. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8053. 1
  8054. ) {
  8055. return;
  8056. }
  8057. var a = JSON.parse(
  8058. JSON.stringify(
  8059. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8060. ic + 1
  8061. ]
  8062. )
  8063. );
  8064. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8065. JSON.parse(
  8066. JSON.stringify(
  8067. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8068. )
  8069. );
  8070. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8071. this.$forceUpdate();
  8072. },
  8073. async upTool(e, i, j, tooli) {
  8074. e.stopPropagation();
  8075. if (tooli == 0) {
  8076. return;
  8077. }
  8078. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  8079. let count2 = await this.getWorksCount(3, i, j, tooli);
  8080. if (count1 > 0 || count2 > 0) {
  8081. this.$confirm(
  8082. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8083. "提示",
  8084. {
  8085. confirmButtonText: "确定",
  8086. cancelButtonText: "取消",
  8087. type: "warning",
  8088. }
  8089. )
  8090. .then(() => {
  8091. var a = JSON.parse(
  8092. JSON.stringify(
  8093. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8094. tooli - 1
  8095. ]
  8096. )
  8097. );
  8098. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8099. JSON.parse(
  8100. JSON.stringify(
  8101. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8102. )
  8103. );
  8104. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8105. this.$forceUpdate();
  8106. })
  8107. .catch(() => {
  8108. return;
  8109. });
  8110. } else {
  8111. var a = JSON.parse(
  8112. JSON.stringify(
  8113. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  8114. )
  8115. );
  8116. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8117. JSON.parse(
  8118. JSON.stringify(
  8119. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8120. )
  8121. );
  8122. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8123. this.$forceUpdate();
  8124. }
  8125. },
  8126. async downTool(e, i, j, tooli) {
  8127. e.stopPropagation();
  8128. if (
  8129. tooli ==
  8130. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  8131. ) {
  8132. return;
  8133. }
  8134. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  8135. let count2 = await this.getWorksCount(3, i, j, tooli);
  8136. if (count1 > 0 || count2 > 0) {
  8137. this.$confirm(
  8138. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8139. "提示",
  8140. {
  8141. confirmButtonText: "确定",
  8142. cancelButtonText: "取消",
  8143. type: "warning",
  8144. }
  8145. )
  8146. .then(() => {
  8147. var a = JSON.parse(
  8148. JSON.stringify(
  8149. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8150. tooli + 1
  8151. ]
  8152. )
  8153. );
  8154. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8155. JSON.parse(
  8156. JSON.stringify(
  8157. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8158. )
  8159. );
  8160. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8161. this.$forceUpdate();
  8162. })
  8163. .catch(() => {
  8164. return;
  8165. });
  8166. } else {
  8167. var a = JSON.parse(
  8168. JSON.stringify(
  8169. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  8170. )
  8171. );
  8172. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8173. JSON.parse(
  8174. JSON.stringify(
  8175. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8176. )
  8177. );
  8178. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8179. this.$forceUpdate();
  8180. }
  8181. },
  8182. addWork() {
  8183. let cPan = 1;
  8184. for (var i = 0; i < this.unitJson.length; i++) {
  8185. for (
  8186. var j = 0;
  8187. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8188. j++
  8189. ) {
  8190. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8191. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8192. if (
  8193. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8194. ) {
  8195. for (
  8196. var z = 0;
  8197. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8198. z++
  8199. ) {
  8200. if (
  8201. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8202. .length
  8203. ) {
  8204. this.$message.error("请把工具添加完整");
  8205. cPan = 2;
  8206. break;
  8207. }
  8208. }
  8209. }
  8210. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8211. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8212. i
  8213. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8214. return ele.value != "";
  8215. });
  8216. }
  8217. }
  8218. }
  8219. this.inputShow = true;
  8220. if (cPan == 2) {
  8221. this.steps--;
  8222. return;
  8223. }
  8224. for (var i = 0; i < this.unitJson.length; i++) {
  8225. delete this.unitJson[i].isUpdate;
  8226. }
  8227. let params = [
  8228. {
  8229. uid: this.userid,
  8230. title: this.courseName,
  8231. brief: this.courseText,
  8232. cover:
  8233. this.cover.length > 0
  8234. ? JSON.stringify(this.cover)
  8235. : JSON.stringify([
  8236. {
  8237. name: "noBanner.jpg",
  8238. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8239. uid: 1656409780264,
  8240. status: "success",
  8241. },
  8242. ]),
  8243. evaId: this.evalua,
  8244. astudent:
  8245. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8246. see: this.isTeacherSee == true ? 1 : 0,
  8247. chapters: JSON.stringify(this.unitJson),
  8248. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8249. courseType: JSON.stringify(this.courseTypeId),
  8250. ateacher:
  8251. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8252. inviteCode: JSON.stringify(this.inviteCode),
  8253. refile: JSON.stringify(this.infoData),
  8254. reBrief: this.courseText2
  8255. },
  8256. ];
  8257. this.ajax
  8258. .post(this.$store.state.api + "addWorkNew2AI", params)
  8259. .then((res) => {
  8260. console.log(this.steps);
  8261. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8262. this.$message({
  8263. message: "新增成功",
  8264. type: "success",
  8265. });
  8266. }
  8267. this.number = res.data.ordernumber;
  8268. this.courseId = res.data.courseId;
  8269. this.cid = res.data.courseId;
  8270. this.courseUserid = this.userid;
  8271. this.islogin = true;
  8272. this.updateCourseState(4);
  8273. this.addtips()
  8274. })
  8275. .catch((err) => {
  8276. this.$message.error("网络不佳");
  8277. console.error(err);
  8278. });
  8279. },
  8280. goCourse() {
  8281. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  8282. },
  8283. updateWork2() {
  8284. let _unitIndex = this.unitIndex;
  8285. let cPan = 1;
  8286. for (
  8287. var j = 0;
  8288. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8289. j++
  8290. ) {
  8291. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8292. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8293. j
  8294. ].proVisible2 = false;
  8295. if (
  8296. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8297. .length > 1
  8298. ) {
  8299. for (
  8300. var z = 0;
  8301. z <
  8302. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8303. .length;
  8304. z++
  8305. ) {
  8306. if (
  8307. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8308. z
  8309. ].tool.length
  8310. ) {
  8311. this.$message.error("请把工具添加完整");
  8312. cPan = 2;
  8313. break;
  8314. }
  8315. }
  8316. }
  8317. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8318. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8319. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8320. (ele) => {
  8321. return ele.value != "";
  8322. }
  8323. );
  8324. }
  8325. }
  8326. this.inputShow = true;
  8327. if (cPan == 2) {
  8328. this.steps--;
  8329. return;
  8330. }
  8331. let params = [
  8332. {
  8333. cid: this.cid,
  8334. chapters: JSON.stringify(this.unitJson),
  8335. uid: this.userid,
  8336. unitIndex: _unitIndex,
  8337. },
  8338. ];
  8339. this.ajax
  8340. .post(this.$store.state.api + "updateWorkNew4", params)
  8341. .then((res) => {
  8342. this.$message({
  8343. message: "修改成功",
  8344. type: "success",
  8345. });
  8346. this.courseId = this.cid;
  8347. this.addtips();
  8348. })
  8349. .catch((err) => {
  8350. this.$message.error("网络不佳");
  8351. console.error(err);
  8352. });
  8353. },
  8354. updateWork3(unitIndex) {
  8355. let _unitIndex = unitIndex;
  8356. let cPan = 1;
  8357. for (
  8358. var j = 0;
  8359. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8360. j++
  8361. ) {
  8362. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8363. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8364. j
  8365. ].proVisible2 = false;
  8366. if (
  8367. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8368. .length > 1
  8369. ) {
  8370. for (
  8371. var z = 0;
  8372. z <
  8373. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8374. .length;
  8375. z++
  8376. ) {
  8377. if (
  8378. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8379. z
  8380. ].tool.length
  8381. ) {
  8382. this.$message.error("请把工具添加完整");
  8383. cPan = 2;
  8384. break;
  8385. }
  8386. }
  8387. }
  8388. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8389. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8390. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8391. (ele) => {
  8392. return ele.value != "";
  8393. }
  8394. );
  8395. }
  8396. }
  8397. this.inputShow = true;
  8398. if (cPan == 2) {
  8399. this.steps--;
  8400. return;
  8401. }
  8402. let params = [
  8403. {
  8404. cid: this.cid,
  8405. chapters: JSON.stringify(this.unitJson),
  8406. uid: this.userid,
  8407. unitIndex: _unitIndex,
  8408. },
  8409. ];
  8410. this.ajax
  8411. .post(this.$store.state.api + "updateWorkNew4", params)
  8412. .then((res) => {
  8413. // this.$message({
  8414. // message: "修改成功",
  8415. // type: "success",
  8416. // });
  8417. this.courseId = this.cid;
  8418. this.addtips()
  8419. })
  8420. .catch((err) => {
  8421. this.$message.error("网络不佳");
  8422. console.error(err);
  8423. });
  8424. },
  8425. updateWork() {
  8426. let cPan = 1;
  8427. for (var i = 0; i < this.unitJson.length; i++) {
  8428. for (
  8429. var j = 0;
  8430. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8431. j++
  8432. ) {
  8433. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8434. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8435. if (
  8436. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8437. ) {
  8438. for (
  8439. var z = 0;
  8440. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8441. z++
  8442. ) {
  8443. if (
  8444. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8445. .length
  8446. ) {
  8447. this.$message.error("请把工具添加完整");
  8448. cPan = 2;
  8449. break;
  8450. }
  8451. }
  8452. }
  8453. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8454. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8455. i
  8456. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8457. return ele.value != "";
  8458. });
  8459. }
  8460. }
  8461. }
  8462. this.inputShow = true;
  8463. if (cPan == 2) {
  8464. this.steps--;
  8465. return;
  8466. }
  8467. for (var i = 0; i < this.unitJson.length; i++) {
  8468. delete this.unitJson[i].isUpdate;
  8469. }
  8470. let params = [
  8471. {
  8472. cid: this.cid,
  8473. title: this.courseName,
  8474. brief: this.courseText,
  8475. cover:
  8476. this.cover.length > 0
  8477. ? JSON.stringify(this.cover)
  8478. : JSON.stringify([
  8479. {
  8480. name: "noBanner.jpg",
  8481. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8482. uid: 1656409780264,
  8483. status: "success",
  8484. },
  8485. ]),
  8486. evaId: this.evalua,
  8487. astudent:
  8488. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8489. see: this.isTeacherSee == true ? 1 : 0,
  8490. chapters: JSON.stringify(this.unitJson),
  8491. template: this.myWord != "undefined" ? this.myWord : [],
  8492. uid: this.userid,
  8493. courseType: JSON.stringify(this.courseTypeId),
  8494. ateacher:
  8495. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8496. inviteCode: JSON.stringify(this.inviteCode),
  8497. refile: JSON.stringify(this.infoData),
  8498. reBrief: this.courseText2
  8499. },
  8500. ];
  8501. this.ajax
  8502. .post(this.$store.state.api + "updateWorkNew2AI", params)
  8503. .then((res) => {
  8504. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8505. if (this.cidType == 1) {
  8506. this.$message({
  8507. message: "修改成功",
  8508. type: "success",
  8509. });
  8510. } else {
  8511. this.$message({
  8512. message: "新增成功",
  8513. type: "success",
  8514. });
  8515. }
  8516. }
  8517. this.number = this.nbOrder;
  8518. this.courseId = this.cid;
  8519. this.addtips()
  8520. })
  8521. .catch((err) => {
  8522. this.$message.error("网络不佳");
  8523. console.error(err);
  8524. });
  8525. },
  8526. insertWord() {
  8527. this.dialogVisible1 = true;
  8528. this.updateBoolean2 = false;
  8529. this.tTitle = "";
  8530. this.tdetail = "";
  8531. },
  8532. addWord() {
  8533. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8534. name: this.tTitle,
  8535. content: this.tdetail,
  8536. uid: this.guid(),
  8537. });
  8538. this.dialogVisible1 = false;
  8539. },
  8540. upWord() { },
  8541. selectWord(uid, i, c) {
  8542. this.dialogVisible1 = true;
  8543. this.updateBoolean2 = true;
  8544. if (
  8545. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8546. ) {
  8547. this.tTitle =
  8548. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8549. this.tdetail =
  8550. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8551. }
  8552. },
  8553. isAddPP() {
  8554. if (this.checkboxList.length > 0) {
  8555. this.$message({
  8556. message: "添加成功",
  8557. type: "success",
  8558. });
  8559. this.dialogVisible3 = false;
  8560. } else {
  8561. this.$message({
  8562. message: "请添加课程成员",
  8563. type: "error",
  8564. });
  8565. }
  8566. },
  8567. isAddClass() {
  8568. this.dialogVisibleClass = false;
  8569. },
  8570. isAddPPTeacher() {
  8571. this.dialogVisibleMember = false;
  8572. this.setMan();
  8573. },
  8574. getTipsTemplate(){
  8575. if(this.templateid){
  8576. let params = {
  8577. id: this.templateid
  8578. }
  8579. this.ajax
  8580. .get(this.$store.state.api + "selectTipsTemplateById", params)
  8581. .then((res) => {
  8582. if(res.data[0].length){
  8583. this.tipsJson = res.data[0][0]
  8584. this.aiJson = JSON.parse(res.data[0][0].tips)
  8585. this.$forceUpdate();
  8586. }
  8587. })
  8588. .catch((err) => { });
  8589. }
  8590. },
  8591. getTemplate() {
  8592. this.ajax
  8593. .get(this.$store.state.api + "getCourseTemplateT", "")
  8594. .then((res) => {
  8595. this.templateArray = res.data[0];
  8596. this.getTemplateOid();
  8597. this.$forceUpdate();
  8598. })
  8599. .catch((err) => { });
  8600. },
  8601. getTemplateOid() {
  8602. let params = {
  8603. oid: this.oid,
  8604. };
  8605. this.ajax
  8606. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8607. .then((res) => {
  8608. if (res.data[0].length) {
  8609. this.templateArray = [...res.data[0], ...this.templateArray];
  8610. }
  8611. this.getTemplateOrg();
  8612. this.$forceUpdate();
  8613. })
  8614. .catch((err) => { });
  8615. },
  8616. getTemplateOrg() {
  8617. let params = {
  8618. oid: this.org,
  8619. };
  8620. this.ajax
  8621. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8622. .then((res) => {
  8623. if (res.data[0].length) {
  8624. this.templateArray = [...res.data[0], ...this.templateArray];
  8625. }
  8626. this.$forceUpdate();
  8627. })
  8628. .catch((err) => { });
  8629. },
  8630. clearChoose() {
  8631. this.clearArray.splice(this.templateC.id, 1);
  8632. this.dialogVisible2 = false;
  8633. },
  8634. clearAttText() {
  8635. this.AttText = {
  8636. title: "",
  8637. text: "",
  8638. };
  8639. this.dialogVisible6 = false;
  8640. },
  8641. clearLine() {
  8642. this.line = "";
  8643. this.dialogVisible7 = false;
  8644. },
  8645. openTemplate() {
  8646. this.ctJson = {};
  8647. this.templateDialog = true;
  8648. },
  8649. checkctJson(json) {
  8650. if (this.ctJson.id == json.id) {
  8651. this.ctJson = {};
  8652. } else {
  8653. this.ctJson = json;
  8654. }
  8655. },
  8656. addTemplate(res) {
  8657. let _this = this;
  8658. let _res = [];
  8659. if (res.id == 1) {
  8660. _res = [
  8661. {
  8662. dyName: "", //单元标题
  8663. easy: 1,
  8664. chapterInfo: [
  8665. {
  8666. isread: false,
  8667. chapterid: this.guid(),
  8668. title: "",
  8669. courseName: "",
  8670. taskJson: [
  8671. {
  8672. task: "",
  8673. taskDetail: "",
  8674. chapterData: [],
  8675. toolText: "",
  8676. toolChoose: [
  8677. {
  8678. tool: [],
  8679. toolDetail: "",
  8680. toolType: 0,
  8681. askCount: 1,
  8682. askTitle: "",
  8683. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8684. },
  8685. ],
  8686. isShowTools: false,
  8687. askCount: 1,
  8688. isFold: 1,
  8689. askTitle: "",
  8690. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8691. checkJson: [{ checkCount: [], checkPerent: [] }],
  8692. homeworkList: [],
  8693. },
  8694. ],
  8695. itemCount: 1,
  8696. fileList1: [],
  8697. video: [],
  8698. testData: [],
  8699. pData: [],
  8700. templateArray: [],
  8701. },
  8702. ],
  8703. },
  8704. ];
  8705. this.updateCourseState(1);
  8706. } else if (res.id == 2) {
  8707. let stageData = [];
  8708. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8709. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8710. if (!iframe && !iframe2) {
  8711. this.$message.error("请使用AI共创生成");
  8712. return;
  8713. }
  8714. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8715. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8716. if (
  8717. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  8718. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  8719. ) {
  8720. this.$message.error("请使用AI共创生成");
  8721. return;
  8722. }
  8723. stageData = copyData
  8724. ? copyData.stageData
  8725. : copyData2
  8726. ? copyData2.stageData
  8727. : [""];
  8728. for (var i = 0; i < stageData.length; i++) {
  8729. _res.push({
  8730. dyName: stageData[i], //单元标题
  8731. chapterInfo: [
  8732. {
  8733. isread: false,
  8734. chapterid: this.guid(),
  8735. title: "",
  8736. courseName: "",
  8737. taskJson: [
  8738. {
  8739. task: "",
  8740. taskDetail: "",
  8741. chapterData: [],
  8742. toolText: "",
  8743. toolChoose: [
  8744. {
  8745. tool: [],
  8746. toolDetail: "",
  8747. toolType: 0,
  8748. askCount: 1,
  8749. askTitle: "",
  8750. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8751. },
  8752. ],
  8753. isShowTools: false,
  8754. askCount: 1,
  8755. isFold: 1,
  8756. askTitle: "",
  8757. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8758. checkJson: [{ checkCount: [], checkPerent: [] }],
  8759. homeworkList: [],
  8760. },
  8761. ],
  8762. itemCount: 1,
  8763. fileList1: [],
  8764. video: [],
  8765. testData: [],
  8766. pData: [],
  8767. templateArray: [],
  8768. },
  8769. ],
  8770. });
  8771. }
  8772. this.updateCourseState(1);
  8773. } else if (!Object.keys(res).length) {
  8774. this.$message.error("请选择模板");
  8775. retrun;
  8776. } else {
  8777. _res = JSON.parse(res.chapters);
  8778. this.updateCourseState(parseInt(res.state));
  8779. }
  8780. _this
  8781. .$confirm(
  8782. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8783. "提示",
  8784. {
  8785. confirmButtonText: "确定",
  8786. cancelButtonText: "取消",
  8787. type: "warning",
  8788. }
  8789. )
  8790. .then(() => {
  8791. _this.unitJson = _res;
  8792. _this.updateWork();
  8793. // _this.steps++;
  8794. _this.templateDialog = false;
  8795. setTimeout(() => {
  8796. this.checkEva(this.checkId);
  8797. setTimeout(() => {
  8798. this.checkEva(this.checkId);
  8799. }, 100);
  8800. }, 1000);
  8801. })
  8802. .catch(() => {
  8803. return;
  8804. });
  8805. },
  8806. checkTemplate(res) {
  8807. let _this = this;
  8808. _this
  8809. .$confirm(
  8810. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8811. "提示",
  8812. {
  8813. confirmButtonText: "确定",
  8814. cancelButtonText: "取消",
  8815. type: "warning",
  8816. }
  8817. )
  8818. .then(() => {
  8819. _this.unitJson = JSON.parse(res.chapters);
  8820. _this.steps++;
  8821. setTimeout(() => {
  8822. this.checkEva(this.checkId);
  8823. setTimeout(() => {
  8824. this.checkEva(this.checkId);
  8825. }, 100);
  8826. }, 1000);
  8827. })
  8828. .catch(() => {
  8829. return;
  8830. });
  8831. },
  8832. checkTemplate1(w) {
  8833. this.steps++;
  8834. },
  8835. checkTemplate2() {
  8836. let _this = this;
  8837. _this
  8838. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  8839. confirmButtonText: "确定",
  8840. cancelButtonText: "取消",
  8841. type: "warning",
  8842. })
  8843. .then(() => {
  8844. _this.unitIndex = 0;
  8845. _this.unitJson = [
  8846. {
  8847. dyName: "", //单元标题
  8848. chapterInfo: [
  8849. {
  8850. isread: false,
  8851. chapterid: this.guid(),
  8852. title: "",
  8853. courseName: "",
  8854. taskJson: [
  8855. {
  8856. task: "",
  8857. taskDetail: "",
  8858. chapterData: [],
  8859. toolText: "",
  8860. toolChoose: [
  8861. {
  8862. tool: [],
  8863. toolDetail: "",
  8864. toolType: 0,
  8865. askCount: 1,
  8866. askTitle: "",
  8867. askJson: [
  8868. { askstitle: "", askItem: 1, checkList: [] },
  8869. ],
  8870. },
  8871. ],
  8872. isShowTools: false,
  8873. askCount: 1,
  8874. isFold: 1,
  8875. askTitle: "",
  8876. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8877. checkJson: [{ checkCount: [], checkPerent: [] }],
  8878. homeworkList: [],
  8879. },
  8880. ],
  8881. itemCount: 1,
  8882. fileList1: [],
  8883. video: [],
  8884. testData: [],
  8885. pData: [],
  8886. templateArray: [],
  8887. },
  8888. ],
  8889. },
  8890. ];
  8891. this.steps++;
  8892. setTimeout(() => {
  8893. this.checkEva(this.checkId);
  8894. setTimeout(() => {
  8895. this.checkEva(this.checkId);
  8896. }, 100);
  8897. }, 1000);
  8898. this.updateWork();
  8899. })
  8900. .catch(() => {
  8901. return;
  8902. });
  8903. },
  8904. checkTemplate3() {
  8905. let _this = this;
  8906. _this
  8907. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  8908. confirmButtonText: "确定",
  8909. cancelButtonText: "取消",
  8910. type: "warning",
  8911. })
  8912. .then(() => {
  8913. _this.unitIndex = 0;
  8914. _this.unitJson = [
  8915. {
  8916. dyName: "", //单元标题
  8917. easy: 1,
  8918. chapterInfo: [
  8919. {
  8920. isread: false,
  8921. chapterid: this.guid(),
  8922. title: "",
  8923. courseName: "",
  8924. taskJson: [
  8925. {
  8926. task: "",
  8927. taskDetail: "",
  8928. chapterData: [],
  8929. toolText: "",
  8930. toolChoose: [
  8931. {
  8932. tool: [],
  8933. toolDetail: "",
  8934. toolType: 0,
  8935. askCount: 1,
  8936. askTitle: "",
  8937. askJson: [
  8938. { askstitle: "", askItem: 1, checkList: [] },
  8939. ],
  8940. },
  8941. ],
  8942. isShowTools: false,
  8943. askCount: 1,
  8944. isFold: 1,
  8945. askTitle: "",
  8946. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8947. checkJson: [{ checkCount: [], checkPerent: [] }],
  8948. homeworkList: [],
  8949. },
  8950. ],
  8951. itemCount: 1,
  8952. fileList1: [],
  8953. video: [],
  8954. testData: [],
  8955. pData: [],
  8956. templateArray: [],
  8957. },
  8958. ],
  8959. },
  8960. ];
  8961. // this.steps++;
  8962. this.updateWork();
  8963. })
  8964. .catch(() => {
  8965. return;
  8966. });
  8967. },
  8968. checkTemplate4() {
  8969. let _this = this;
  8970. _this
  8971. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  8972. confirmButtonText: "确定",
  8973. cancelButtonText: "取消",
  8974. type: "warning",
  8975. })
  8976. .then(() => {
  8977. _this.unitIndex = 0;
  8978. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  8979. this.steps++;
  8980. this.updateWork();
  8981. })
  8982. .catch(() => {
  8983. return;
  8984. });
  8985. },
  8986. wordNext() {
  8987. this.dialogVisible2 = false;
  8988. },
  8989. isAddOrUpdateAttText() {
  8990. if (this.AttTextType == 0) {
  8991. this.addAttTextMessage();
  8992. } else {
  8993. this.updateAttText();
  8994. }
  8995. },
  8996. isAddOrUpdateLine() {
  8997. if (!this.lineTitle) {
  8998. this.$message.error("请填写链接标题");
  8999. return;
  9000. }
  9001. if (this.lineType == 0) {
  9002. this.addLine();
  9003. } else {
  9004. this.updateLine();
  9005. }
  9006. },
  9007. addAttTextMessage() {
  9008. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9009. this.taskCount
  9010. ].chapterData.push({
  9011. name: this.AttText.title,
  9012. url: this.AttText.text,
  9013. type: 6,
  9014. });
  9015. this.imgChange1(null, null, 6, this.taskCount);
  9016. this.dialogVisible6 = false;
  9017. },
  9018. selectAttText(itemTaskIndex, i) {
  9019. this.AttText.title =
  9020. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9021. itemTaskIndex
  9022. ].chapterData[i].name;
  9023. this.AttText.text =
  9024. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9025. itemTaskIndex
  9026. ].chapterData[i].url;
  9027. this.taskCount = itemTaskIndex;
  9028. this.AttTextIndex = i;
  9029. this.AttTextType = 1;
  9030. this.dialogVisible6 = true;
  9031. },
  9032. updateAttText() {
  9033. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9034. this.taskCount
  9035. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9036. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9037. this.taskCount
  9038. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9039. this.dialogVisible6 = false;
  9040. },
  9041. addLine() {
  9042. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9043. this.lineCount
  9044. ].chapterData.push({
  9045. name: "链接",
  9046. title: this.lineTitle,
  9047. url: this.line,
  9048. type: 8,
  9049. });
  9050. this.imgChange1(null, null, 8, this.lineCount);
  9051. this.dialogVisible7 = false;
  9052. },
  9053. selectLine(itemTaskIndex, i) {
  9054. this.line =
  9055. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9056. itemTaskIndex
  9057. ].chapterData[i].url;
  9058. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9059. itemTaskIndex
  9060. ].chapterData[i].title
  9061. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9062. .chapterData[i].title
  9063. : "";
  9064. this.taskCount = itemTaskIndex;
  9065. this.lineCount = i;
  9066. this.lineType = 1;
  9067. this.dialogVisible7 = true;
  9068. },
  9069. openUpdateSource(itemTaskIndex, i) {
  9070. this.sourceData = {};
  9071. let source =
  9072. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9073. .chapterData[i];
  9074. this.sourceData[source.id] = {};
  9075. this.sourceData[source.id].name = source.title;
  9076. this.sourceData[source.id].url = source.url;
  9077. this.dialogVisibleSource = true;
  9078. this.updateSourcePan = true;
  9079. this.taskCount = itemTaskIndex;
  9080. this.lineCount = i;
  9081. },
  9082. updateLine() {
  9083. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9084. this.taskCount
  9085. ].chapterData[this.lineCount].url = this.line;
  9086. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9087. this.taskCount
  9088. ].chapterData[this.lineCount].title = this.lineTitle;
  9089. this.dialogVisible7 = false;
  9090. },
  9091. addPP() {
  9092. this.dialogVisible3 = true;
  9093. },
  9094. goTo(path) {
  9095. this.$router.push(path);
  9096. },
  9097. openTools(itemTaskIndex, i, toolIndex) {
  9098. this.toolIndex = toolIndex;
  9099. this.taskCount = itemTaskIndex;
  9100. if (i == 4) {
  9101. if (toolIndex == null) {
  9102. var a =
  9103. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9104. .chapterData;
  9105. for (var i = 0; i < a.length; i++) {
  9106. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9107. this.askJson =
  9108. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9109. itemTaskIndex
  9110. ].chapterData[i].askJson;
  9111. }
  9112. }
  9113. } else {
  9114. this.askJson = JSON.parse(
  9115. JSON.stringify(
  9116. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9117. itemTaskIndex
  9118. ].toolChoose[toolIndex]
  9119. )
  9120. );
  9121. }
  9122. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  9123. this.dialogVisible5 = true;
  9124. } else if (i == 45) {
  9125. if (
  9126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9127. .toolChoose[toolIndex].testJson
  9128. ) {
  9129. this.testJson = JSON.parse(
  9130. JSON.stringify(
  9131. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9132. itemTaskIndex
  9133. ].toolChoose[toolIndex].testJson
  9134. )
  9135. );
  9136. } else {
  9137. var testJson = {
  9138. testCount: 1,
  9139. testTitle: "",
  9140. testJson: [
  9141. {
  9142. teststitle: "",
  9143. testItem: 1,
  9144. checkList: [],
  9145. timuList: [],
  9146. answer: [],
  9147. type: "1",
  9148. },
  9149. ],
  9150. };
  9151. this.testJson = testJson;
  9152. }
  9153. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  9154. this.dialogVisibleChoice = true;
  9155. } else if (i == 47) {
  9156. if (
  9157. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9158. .toolChoose[toolIndex].sentenceList
  9159. ) {
  9160. this.sentenceList = JSON.parse(
  9161. JSON.stringify(
  9162. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9163. itemTaskIndex
  9164. ].toolChoose[toolIndex].sentenceList
  9165. )
  9166. );
  9167. } else {
  9168. var sentenceList = [
  9169. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9170. ];
  9171. this.sentenceList = sentenceList;
  9172. }
  9173. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  9174. this.dialogVisibleSentence = true;
  9175. } else if (i == 48) {
  9176. if (
  9177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9178. .toolChoose[toolIndex].tableJson
  9179. ) {
  9180. this.tableJson = JSON.parse(
  9181. JSON.stringify(
  9182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9183. itemTaskIndex
  9184. ].toolChoose[toolIndex].tableJson
  9185. )
  9186. );
  9187. } else {
  9188. var tableJson = { text: "" };
  9189. this.tableJson = tableJson;
  9190. }
  9191. this.dialogVisibleTable = true;
  9192. } else if (i == 52) {
  9193. if (
  9194. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9195. .toolChoose[toolIndex].wordJson
  9196. ) {
  9197. this.wordJson = JSON.parse(
  9198. JSON.stringify(
  9199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9200. itemTaskIndex
  9201. ].toolChoose[toolIndex].wordJson
  9202. )
  9203. );
  9204. } else {
  9205. var wordJson = { text: "" };
  9206. this.wordJson = wordJson;
  9207. }
  9208. this.dialogVisibleWord = true;
  9209. // else if (i == 50) {
  9210. // if (
  9211. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9212. // .toolChoose[toolIndex].uploadJson
  9213. // ) {
  9214. // this.uploadJson = JSON.parse(
  9215. // JSON.stringify(
  9216. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9217. // itemTaskIndex
  9218. // ].toolChoose[toolIndex].uploadJson
  9219. // )
  9220. // );
  9221. // } else {
  9222. // var uploadJson = [];
  9223. // this.uploadJson = uploadJson;
  9224. // }
  9225. // this.dialogVisibleMoreUpload = true;
  9226. // }
  9227. } else if (i == 10) {
  9228. if (
  9229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9230. .toolChoose[toolIndex].preTime
  9231. ) {
  9232. this.preTime = JSON.parse(
  9233. JSON.stringify(
  9234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9235. itemTaskIndex
  9236. ].toolChoose[toolIndex].preTime
  9237. )
  9238. );
  9239. } else {
  9240. var preTime = 0;
  9241. this.preTime = preTime;
  9242. }
  9243. this.dialogVisiblePreTime = true;
  9244. } else if (i == 49) {
  9245. if (
  9246. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9247. .toolChoose[toolIndex].groupJson
  9248. ) {
  9249. this.groupJson = JSON.parse(
  9250. JSON.stringify(
  9251. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9252. itemTaskIndex
  9253. ].toolChoose[toolIndex].groupJson
  9254. )
  9255. );
  9256. } else {
  9257. var groupJson = {
  9258. group: [{ name: "第1组" }],
  9259. number: undefined,
  9260. islock: 1,
  9261. };
  9262. this.groupJson = groupJson;
  9263. }
  9264. this.dialogVisibleGroup = true;
  9265. } else if (i == 62) {
  9266. if (
  9267. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9268. .toolChoose[toolIndex].videoJson
  9269. ) {
  9270. this.videoJson = JSON.parse(
  9271. JSON.stringify(
  9272. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9273. itemTaskIndex
  9274. ].toolChoose[toolIndex].videoJson
  9275. )
  9276. );
  9277. } else {
  9278. var videoJson = {
  9279. video: "",
  9280. setting: [],
  9281. };
  9282. this.videoJson = videoJson;
  9283. }
  9284. this.dialogVisibleVideo = true;
  9285. } else if (i == 15) {
  9286. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9287. itemTaskIndex
  9288. ].toolChoose[toolIndex].answerQ
  9289. ? JSON.parse(
  9290. JSON.stringify(
  9291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9292. itemTaskIndex
  9293. ].toolChoose[toolIndex].answerQ
  9294. )
  9295. )
  9296. : "";
  9297. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  9298. this.dialogVisible8 = true;
  9299. } else if (i == 40) {
  9300. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9301. itemTaskIndex
  9302. ].toolChoose[toolIndex].rateJson
  9303. ? JSON.parse(
  9304. JSON.stringify(
  9305. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9306. itemTaskIndex
  9307. ].toolChoose[toolIndex].rateJson
  9308. )
  9309. )
  9310. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9311. this.selectSteps = 1;
  9312. this.dialogVisibleRate = true;
  9313. } else if (i == 42) {
  9314. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9315. itemTaskIndex
  9316. ].toolChoose[toolIndex].answerQ
  9317. ? JSON.parse(
  9318. JSON.stringify(
  9319. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9320. itemTaskIndex
  9321. ].toolChoose[toolIndex].answerQ
  9322. )
  9323. )
  9324. : "";
  9325. this.dialogVisibleMp3 = true;
  9326. } else if (i == 41) {
  9327. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9328. itemTaskIndex
  9329. ].toolChoose[toolIndex].selectJson
  9330. ? JSON.parse(
  9331. JSON.stringify(
  9332. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9333. itemTaskIndex
  9334. ].toolChoose[toolIndex].selectJson
  9335. )
  9336. )
  9337. : { url: "", select: [], answer: [] };
  9338. this.selectSteps = 1;
  9339. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  9340. this.dialogVisibleSelect = true;
  9341. } else if (i == 3) {
  9342. top.postMessage(
  9343. {
  9344. tools: "3y",
  9345. cid: this.cid,
  9346. stage: this.unitIndex,
  9347. task: itemTaskIndex,
  9348. tool: toolIndex,
  9349. },
  9350. "*"
  9351. );
  9352. } else if (i == 1) {
  9353. top.postMessage(
  9354. {
  9355. tools: "1y",
  9356. cid: this.cid,
  9357. stage: this.unitIndex,
  9358. task: itemTaskIndex,
  9359. tool: toolIndex,
  9360. },
  9361. "*"
  9362. );
  9363. } else if (i == 57) {
  9364. top.postMessage(
  9365. {
  9366. tools: "57y",
  9367. cid: this.cid,
  9368. stage: this.unitIndex,
  9369. task: itemTaskIndex,
  9370. tool: toolIndex,
  9371. },
  9372. "*"
  9373. );
  9374. } else if (i == 69) {
  9375. this.englishList = {};
  9376. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  9377. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  9378. ? JSON.parse(
  9379. JSON.stringify(
  9380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9381. itemTaskIndex
  9382. ].toolChoose[toolIndex].englishList
  9383. )
  9384. )
  9385. : {};
  9386. this.$forceUpdate();
  9387. this.englishDialogVisible = true;
  9388. } else if (i == 70) {
  9389. this.englishVoiceJson = {};
  9390. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  9391. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  9392. ? JSON.parse(
  9393. JSON.stringify(
  9394. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9395. itemTaskIndex
  9396. ].toolChoose[toolIndex].englishVoiceJson
  9397. )
  9398. )
  9399. : {
  9400. title: '',
  9401. detail: '',
  9402. array: []
  9403. };
  9404. // {
  9405. // time: "",
  9406. // class: "",
  9407. // difficulty: 0,
  9408. // topic: "",
  9409. // isShow: false,
  9410. // eva: 0,
  9411. // aiEva: {
  9412. // isAiEva: false,
  9413. // aiEvaChoose: [],
  9414. // },
  9415. // allfType: [],
  9416. // englishJson: {},
  9417. // };
  9418. this.$forceUpdate();
  9419. this.EnglishVoiceDialog = true;
  9420. }
  9421. },
  9422. setEnglishVoiceJson(val) {
  9423. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9424. this.taskCount
  9425. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  9426. JSON.stringify(val)
  9427. );
  9428. this.$forceUpdate();
  9429. if (
  9430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9431. .toolChoose[this.toolIndex].tool != 70
  9432. ) {
  9433. this.addTools(70, this.taskCount, this.toolIndex);
  9434. }
  9435. },
  9436. chapAddTools(i) {
  9437. if (this.chapTools[0].tools.length == 0) {
  9438. this.chapTools[0].tools.push(i);
  9439. } else {
  9440. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9441. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9442. } else {
  9443. this.chapTools[0].tools.push(i);
  9444. }
  9445. }
  9446. this.$forceUpdate();
  9447. },
  9448. addChaptersDataTools() {
  9449. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9450. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9451. this.chapCount
  9452. ].chapterData.push({
  9453. name: this.chapTools[0].toolDetail,
  9454. url: this.chapTools[0].tools,
  9455. type: 7,
  9456. askJson: this.askJson,
  9457. });
  9458. } else {
  9459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9460. this.chapCount
  9461. ].chapterData.push({
  9462. name: this.chapTools[0].toolDetail,
  9463. url: this.chapTools[0].tools,
  9464. type: 7,
  9465. });
  9466. }
  9467. this.imgChange1(null, null, 7, this.chapCount);
  9468. this.dialogVisible4 = false;
  9469. },
  9470. addTools(i, itemTaskIndex, toolIndex) {
  9471. // if (
  9472. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9473. // .toolChoose[toolIndex].tool.length == 0
  9474. // ) {
  9475. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9476. // itemTaskIndex
  9477. // ].toolChoose[toolIndex].tool.push(i);
  9478. // } else {
  9479. // if (
  9480. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9481. // itemTaskIndex
  9482. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9483. // ) {
  9484. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9485. // itemTaskIndex
  9486. // ].toolChoose[toolIndex].tool.splice(
  9487. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9488. // itemTaskIndex
  9489. // ].toolChoose[toolIndex].tool.indexOf(i),
  9490. // 1
  9491. // );
  9492. // } else {
  9493. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9494. // itemTaskIndex
  9495. // ].toolChoose[toolIndex].tool.push(i);
  9496. // }
  9497. // console.log(
  9498. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9499. // .toolChoose[toolIndex].tool
  9500. // );
  9501. // }
  9502. if (i == 4) {
  9503. if (
  9504. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9505. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9507. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9508. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9509. .toolChoose[toolIndex].askJson[0].checkList < 2
  9510. ) {
  9511. this.openTools(itemTaskIndex, 4, toolIndex);
  9512. // this.$message({
  9513. // message: "请填写完整问卷内容",
  9514. // type: "error",
  9515. // });
  9516. return;
  9517. }
  9518. }
  9519. if (i == 45) {
  9520. if (
  9521. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9522. .toolChoose[toolIndex].testJson ||
  9523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9524. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9525. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9526. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9527. ) {
  9528. this.openTools(itemTaskIndex, 45, toolIndex);
  9529. // this.$message({
  9530. // message: "请填写完整问卷内容",
  9531. // type: "error",
  9532. // });
  9533. return;
  9534. }
  9535. }
  9536. if (i == 47) {
  9537. if (
  9538. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9539. .toolChoose[toolIndex].sentenceList ||
  9540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9541. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9542. ) {
  9543. this.openTools(itemTaskIndex, 47, toolIndex);
  9544. return;
  9545. }
  9546. }
  9547. if (i == 69) {
  9548. if (
  9549. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9550. .toolChoose[toolIndex].englishList
  9551. ) {
  9552. this.openTools(itemTaskIndex, 69, toolIndex);
  9553. return;
  9554. }
  9555. }
  9556. if (i == 70) {
  9557. if (
  9558. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9559. .toolChoose[toolIndex].englishVoiceJson
  9560. ) {
  9561. this.openTools(itemTaskIndex, 70, toolIndex);
  9562. return;
  9563. }
  9564. }
  9565. // if (i == 48) {
  9566. // if (
  9567. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9568. // .toolChoose[toolIndex].tableJson
  9569. // ) {
  9570. // this.openTools(itemTaskIndex, 48, toolIndex);
  9571. // return;
  9572. // }
  9573. // }
  9574. // if (i == 50) {
  9575. // if (
  9576. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9577. // .toolChoose[toolIndex].uploadJson
  9578. // ) {
  9579. // this.openTools(itemTaskIndex, 50, toolIndex);
  9580. // return;
  9581. // }
  9582. // }
  9583. if (i == 49) {
  9584. if (
  9585. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9586. .toolChoose[toolIndex].groupJson
  9587. ) {
  9588. this.openTools(itemTaskIndex, 49, toolIndex);
  9589. return;
  9590. }
  9591. }
  9592. if (i == 62) {
  9593. if (
  9594. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9595. .toolChoose[toolIndex].videoJson
  9596. ) {
  9597. this.openTools(itemTaskIndex, 62, toolIndex);
  9598. return;
  9599. }
  9600. }
  9601. if (i == 15) {
  9602. if (
  9603. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9604. .toolChoose[toolIndex].answerQ ||
  9605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9606. .toolChoose[toolIndex].answerQ == ""
  9607. ) {
  9608. this.openTools(itemTaskIndex, 15, toolIndex);
  9609. // this.$message({
  9610. // message: "请填写问答内容",
  9611. // type: "error",
  9612. // });
  9613. return;
  9614. }
  9615. }
  9616. if (i == 40) {
  9617. if (
  9618. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9619. .toolChoose[toolIndex].rateJson ||
  9620. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9621. .toolChoose[toolIndex].rateJson.length
  9622. ) {
  9623. this.openTools(itemTaskIndex, 40, toolIndex);
  9624. return;
  9625. }
  9626. }
  9627. if (i == 41) {
  9628. if (
  9629. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9630. .toolChoose[toolIndex].selectJson ||
  9631. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9632. .toolChoose[toolIndex].selectJson.url == "" ||
  9633. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9634. .toolChoose[toolIndex].selectJson.select.length ||
  9635. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9636. .toolChoose[toolIndex].selectJson.answer.length
  9637. ) {
  9638. this.openTools(itemTaskIndex, 41, toolIndex);
  9639. return;
  9640. }
  9641. }
  9642. if (i == 42) {
  9643. if (
  9644. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9645. .toolChoose[toolIndex].answerQ ||
  9646. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9647. .toolChoose[toolIndex].answerQ == ""
  9648. ) {
  9649. this.openTools(itemTaskIndex, 42, toolIndex);
  9650. return;
  9651. }
  9652. }
  9653. if (
  9654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9655. .toolChoose[toolIndex].tool.length > 0
  9656. ) {
  9657. if (
  9658. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9659. itemTaskIndex
  9660. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9661. ) {
  9662. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9663. itemTaskIndex
  9664. ].toolChoose[toolIndex].tool.splice(
  9665. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9666. itemTaskIndex
  9667. ].toolChoose[toolIndex].tool.indexOf(i),
  9668. 1
  9669. );
  9670. } else {
  9671. // this.$message({
  9672. // message: "每个工具只能添加一个",
  9673. // type: "error",
  9674. // });
  9675. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9676. itemTaskIndex
  9677. ].toolChoose[toolIndex].tool = [];
  9678. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9679. itemTaskIndex
  9680. ].toolChoose[toolIndex].tool.push(i);
  9681. }
  9682. } else {
  9683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9684. itemTaskIndex
  9685. ].toolChoose[toolIndex].tool.push(i);
  9686. }
  9687. this.$forceUpdate();
  9688. },
  9689. addAskList(index) {
  9690. this.askJson.askJson.splice(index + 1, 0, {
  9691. askstitle: "",
  9692. askItem: 1,
  9693. checkList: [],
  9694. });
  9695. this.askJson.askCount++;
  9696. },
  9697. addTestList(index) {
  9698. this.testJson.testJson.splice(index + 1, 0, {
  9699. teststitle: "",
  9700. testItem: 1,
  9701. checkList: [],
  9702. timuList: [],
  9703. answer: [],
  9704. type: "1",
  9705. });
  9706. this.testJson.testCount++;
  9707. },
  9708. deleteAskList(index) {
  9709. if (
  9710. !this.askJson.askJson[index].askstitle &&
  9711. this.askJson.askJson[index].askItem == 1 &&
  9712. !this.askJson.askJson[index].checkList[0]
  9713. ) {
  9714. this.askJson.askJson.splice(index, 1);
  9715. this.askJson.askCount--;
  9716. } else {
  9717. let _this = this;
  9718. _this
  9719. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9720. confirmButtonText: "确定",
  9721. cancelButtonText: "取消",
  9722. type: "warning",
  9723. })
  9724. .then(() => {
  9725. _this.askJson.askJson.splice(index, 1);
  9726. _this.askJson.askCount--;
  9727. })
  9728. .catch(() => {
  9729. return;
  9730. });
  9731. }
  9732. },
  9733. deleteTestList(index) {
  9734. if (
  9735. !this.testJson.testJson[index].teststitle &&
  9736. this.testJson.testJson[index].testItem == 1 &&
  9737. !this.testJson.testJson[index].checkList[0]
  9738. ) {
  9739. this.testJson.testJson.splice(index, 1);
  9740. this.testJson.testCount--;
  9741. } else {
  9742. let _this = this;
  9743. _this
  9744. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9745. confirmButtonText: "确定",
  9746. cancelButtonText: "取消",
  9747. type: "warning",
  9748. })
  9749. .then(() => {
  9750. _this.testJson.testJson.splice(index, 1);
  9751. _this.testJson.testCount--;
  9752. })
  9753. .catch(() => {
  9754. return;
  9755. });
  9756. }
  9757. },
  9758. askMove(type, index) {
  9759. if (type == 1) {
  9760. if (index > 0) {
  9761. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  9762. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9763. this.askJson.askJson[index - 1] = b;
  9764. this.askJson.askJson[index] = a;
  9765. }
  9766. } else {
  9767. if (index < this.askJson.askJson.length - 1) {
  9768. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  9769. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9770. this.askJson.askJson[index + 1] = b;
  9771. this.askJson.askJson[index] = a;
  9772. }
  9773. }
  9774. this.$forceUpdate();
  9775. },
  9776. checkMove(type, index, checkIndex) {
  9777. if (type == 1) {
  9778. if (checkIndex > 0) {
  9779. let a = JSON.parse(
  9780. JSON.stringify(
  9781. this.askJson.askJson[index].checkList[checkIndex - 1]
  9782. )
  9783. );
  9784. let b = JSON.parse(
  9785. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9786. );
  9787. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  9788. this.askJson.askJson[index].checkList[checkIndex] = a;
  9789. }
  9790. } else {
  9791. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  9792. let a = JSON.parse(
  9793. JSON.stringify(
  9794. this.askJson.askJson[index].checkList[checkIndex + 1]
  9795. )
  9796. );
  9797. let b = JSON.parse(
  9798. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9799. );
  9800. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  9801. this.askJson.askJson[index].checkList[checkIndex] = a;
  9802. }
  9803. }
  9804. this.$forceUpdate();
  9805. },
  9806. testMove(type, index) {
  9807. if (type == 1) {
  9808. if (index > 0) {
  9809. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  9810. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9811. this.testJson.testJson[index - 1] = b;
  9812. this.testJson.testJson[index] = a;
  9813. }
  9814. } else {
  9815. if (index < this.testJson.testJson.length - 1) {
  9816. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  9817. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9818. this.testJson.testJson[index + 1] = b;
  9819. this.testJson.testJson[index] = a;
  9820. }
  9821. }
  9822. this.$forceUpdate();
  9823. },
  9824. tcheckMove(type, index, checkIndex) {
  9825. if (type == 1) {
  9826. if (checkIndex > 0) {
  9827. let a = JSON.parse(
  9828. JSON.stringify(
  9829. this.testJson.testJson[index].checkList[checkIndex - 1]
  9830. )
  9831. );
  9832. let b = JSON.parse(
  9833. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9834. );
  9835. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  9836. this.testJson.testJson[index].checkList[checkIndex] = a;
  9837. }
  9838. } else {
  9839. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  9840. let a = JSON.parse(
  9841. JSON.stringify(
  9842. this.testJson.testJson[index].checkList[checkIndex + 1]
  9843. )
  9844. );
  9845. let b = JSON.parse(
  9846. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9847. );
  9848. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  9849. this.testJson.testJson[index].checkList[checkIndex] = a;
  9850. }
  9851. }
  9852. this.$forceUpdate();
  9853. },
  9854. addcheckList(json, index) {
  9855. // json.checkList.length++;
  9856. json.checkList.splice(index + 1, 0, "");
  9857. json.askItem++;
  9858. this.$forceUpdate();
  9859. },
  9860. deletecheckList(json, index) {
  9861. // json.checkList.length--;
  9862. json.checkList.splice(index, 1);
  9863. json.askItem--;
  9864. this.$forceUpdate();
  9865. },
  9866. addTcheckList(json, index) {
  9867. // json.checkList.length++;
  9868. json.checkList.splice(index + 1, 0, "");
  9869. json.testItem++;
  9870. this.$forceUpdate();
  9871. },
  9872. deleteTcheckList(json, index) {
  9873. // json.checkList.length--;
  9874. json.checkList.splice(index, 1);
  9875. json.testItem--;
  9876. this.$forceUpdate();
  9877. },
  9878. checkTestType(type, json) {
  9879. json.type = type;
  9880. setTimeout(() => {
  9881. json.answer = [];
  9882. }, 100);
  9883. },
  9884. checkAskType(type, json) {
  9885. json.type = type;
  9886. // json.checkList = [];
  9887. this.$forceUpdate();
  9888. },
  9889. addSelectList(json) {
  9890. json.select.push("");
  9891. json.answer.push("");
  9892. },
  9893. deleteSelectList(json) {
  9894. // json.select.length--;
  9895. // json.answer.length--;
  9896. json.select.splice(json.select.length - 1, 1);
  9897. json.answer.splice(json.answer.length - 1, 1);
  9898. },
  9899. addAsk() {
  9900. if (this.askJson.askTitle === "") {
  9901. this.$message.error("标题不能为空!");
  9902. return;
  9903. }
  9904. var aj = this.askJson.askJson;
  9905. var b = 1;
  9906. for (var i = 0; i < aj.length; i++) {
  9907. if (aj[i].askstitle === "") {
  9908. var a = 1;
  9909. for (let index = 0; index < aj[i].askItem; index++) {
  9910. const element = aj[i].checkList[index]
  9911. ? aj[i].checkList[index]
  9912. : "";
  9913. if (element != "") {
  9914. b++;
  9915. this.$message.error(`请将题目${i + 1}填写完整。`);
  9916. return;
  9917. } else {
  9918. a++;
  9919. }
  9920. }
  9921. if (b == 1) {
  9922. this.$message.error("至少填写一个问题");
  9923. return;
  9924. }
  9925. } else if (aj[i].askstitle != "") {
  9926. for (let index = 0; index < aj[i].askItem; index++) {
  9927. const element = aj[i].checkList[index]
  9928. ? aj[i].checkList[index]
  9929. : "";
  9930. var index = 0;
  9931. for (var z = 0; z < aj[i].checkList.length; z++) {
  9932. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9933. if (checkC != "") {
  9934. index++;
  9935. } else {
  9936. this.$message.error(`题目${i + 1}选项不能为空!`);
  9937. return;
  9938. }
  9939. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9940. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9941. if (checkC == checkC2) {
  9942. this.$message.error(
  9943. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9944. );
  9945. return;
  9946. }
  9947. }
  9948. }
  9949. b++;
  9950. if (index < 2) {
  9951. this.$message.error("每道题目至少需要设置2个选项。");
  9952. return;
  9953. }
  9954. }
  9955. }
  9956. }
  9957. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9958. var elc = el.checkList.filter((element) => {
  9959. return element != "";
  9960. });
  9961. return el.askstitle != "" && elc.length != 0;
  9962. });
  9963. if (!this.dialogVisible4) {
  9964. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9965. this.taskCount
  9966. ].toolChoose[this.toolIndex] = this.askJson;
  9967. }
  9968. this.dialogVisible5 = false;
  9969. if (
  9970. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9971. .toolChoose[this.toolIndex].tool != 4
  9972. ) {
  9973. this.addTools(4, this.taskCount, this.toolIndex);
  9974. }
  9975. },
  9976. addTest() {
  9977. // if (this.testJson.testTitle === "") {
  9978. // this.$message.error("标题不能为空!");
  9979. // return;
  9980. // }
  9981. var aj = this.testJson.testJson;
  9982. var b = 1;
  9983. for (var i = 0; i < aj.length; i++) {
  9984. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9985. var a = 1;
  9986. for (let index = 0; index < aj[i].testItem; index++) {
  9987. const element = aj[i].checkList[index]
  9988. ? aj[i].checkList[index]
  9989. : "";
  9990. if (element != "") {
  9991. b++;
  9992. this.$message.error(`请将题目${i + 1}填写完整。`);
  9993. return;
  9994. } else {
  9995. a++;
  9996. }
  9997. }
  9998. if (b == 1) {
  9999. this.$message.error("至少填写一个问题");
  10000. return;
  10001. }
  10002. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  10003. for (let index = 0; index < aj[i].testItem; index++) {
  10004. const element = aj[i].checkList[index]
  10005. ? aj[i].checkList[index]
  10006. : "";
  10007. var index = 0;
  10008. for (var z = 0; z < aj[i].checkList.length; z++) {
  10009. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10010. if (checkC != "") {
  10011. index++;
  10012. } else {
  10013. this.$message.error(`题目${i + 1}选项不能为空!`);
  10014. return;
  10015. }
  10016. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  10017. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10018. if (checkC == checkC2) {
  10019. this.$message.error(
  10020. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10021. );
  10022. return;
  10023. }
  10024. }
  10025. }
  10026. b++;
  10027. if (index < 2) {
  10028. this.$message.error("每道题目至少需要设置2个选项。");
  10029. return;
  10030. }
  10031. if (
  10032. (aj[i].type == "2" && !aj[i].answer.length) ||
  10033. (aj[i].type == "1" &&
  10034. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  10035. (aj[i].answer !== 0 && !aj[i].answer)))
  10036. ) {
  10037. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  10038. return;
  10039. }
  10040. }
  10041. }
  10042. }
  10043. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10044. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10045. var elc = el.checkList.filter((element) => {
  10046. return element != "";
  10047. });
  10048. return (
  10049. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10050. );
  10051. });
  10052. isTestJson.testCount = isTestJson.testJson.length;
  10053. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10054. this.taskCount
  10055. ].toolChoose[this.toolIndex].testJson = isTestJson;
  10056. this.dialogVisibleChoice = false;
  10057. if (
  10058. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10059. .toolChoose[this.toolIndex].tool != 45
  10060. ) {
  10061. this.addTools(45, this.taskCount, this.toolIndex);
  10062. }
  10063. },
  10064. addVideoJson(videoJson) {
  10065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10066. this.taskCount
  10067. ].toolChoose[this.toolIndex].videoJson = videoJson;
  10068. this.dialogVisibleVideo = false;
  10069. if (
  10070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10071. .toolChoose[this.toolIndex].tool != 62
  10072. ) {
  10073. this.addTools(62, this.taskCount, this.toolIndex);
  10074. }
  10075. },
  10076. //自动获取剪贴板
  10077. pasteOption() {
  10078. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10079. if (!iframe) {
  10080. this.$message.error("请使用AI共创生成题目");
  10081. return;
  10082. }
  10083. let copyData = iframe.contentWindow.copyData;
  10084. if (!copyData || !copyData.selectData.length) {
  10085. this.$message.error("请使用AI共创生成题目");
  10086. return;
  10087. }
  10088. let selectData = copyData.selectData;
  10089. for (var i = 0; i < selectData.length; i++) {
  10090. let answer = 0;
  10091. switch (selectData[i].answer[0]) {
  10092. case "A":
  10093. answer = 0;
  10094. break;
  10095. case "B":
  10096. answer = 1;
  10097. break;
  10098. case "C":
  10099. answer = 2;
  10100. break;
  10101. case "D":
  10102. answer = 3;
  10103. break;
  10104. case "E":
  10105. answer = 4;
  10106. break;
  10107. default:
  10108. break;
  10109. }
  10110. this.testJson.testJson.push({
  10111. teststitle: selectData[i].subject,
  10112. testItem: selectData[i].options.length,
  10113. checkList: selectData[i].options,
  10114. timuList: [],
  10115. answer: answer,
  10116. type: "1",
  10117. });
  10118. this.testJson.testCount++;
  10119. }
  10120. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10121. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10122. var elc = el.checkList.filter((element) => {
  10123. return element != "";
  10124. });
  10125. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  10126. });
  10127. isTestJson.testCount = isTestJson.testJson.length;
  10128. if (!isTestJson.testCount) {
  10129. return;
  10130. }
  10131. this.testJson = isTestJson;
  10132. this.$forceUpdate();
  10133. },
  10134. pasteTask(taskJson) {
  10135. let stageTasksData = [];
  10136. if (taskJson) {
  10137. stageTasksData = taskJson;
  10138. } else {
  10139. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10140. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10141. if (!iframe && !iframe2) {
  10142. this.$message.error("请使用AI共创生成");
  10143. return;
  10144. }
  10145. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10146. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10147. if (
  10148. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  10149. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  10150. ) {
  10151. this.$message.error("请使用AI共创生成");
  10152. return;
  10153. }
  10154. stageTasksData = copyData
  10155. ? copyData.tasksData
  10156. : copyData2
  10157. ? copyData2.tasksData
  10158. : [{ taskName: "", taskDecs: "" }];
  10159. }
  10160. let taskA = [];
  10161. let tasks = stageTasksData;
  10162. for (var j = 0; j < tasks.length; j++) {
  10163. taskA.push({
  10164. task: tasks[j].taskName,
  10165. taskDetail: tasks[j].taskDecs,
  10166. chapterData: [],
  10167. toolText: "",
  10168. toolChoose: [
  10169. {
  10170. tool: [],
  10171. toolDetail: "",
  10172. toolType: 0,
  10173. askCount: 1,
  10174. askTitle: "",
  10175. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10176. },
  10177. ],
  10178. isShowTools: false,
  10179. askCount: 1,
  10180. isFold: 1,
  10181. askTitle: "",
  10182. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10183. checkJson: [{ checkCount: [], checkPerent: [] }],
  10184. homeworkList: [],
  10185. });
  10186. }
  10187. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10188. this.$forceUpdate();
  10189. },
  10190. pasteStage(stageJson) {
  10191. let stageData = [];
  10192. if (stageJson) {
  10193. stageData = stageJson;
  10194. } else {
  10195. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10196. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10197. if (!iframe && !iframe2) {
  10198. this.$message.error("请使用AI共创生成");
  10199. return;
  10200. }
  10201. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10202. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10203. if (
  10204. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10205. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10206. ) {
  10207. this.$message.error("请使用AI共创生成");
  10208. return;
  10209. }
  10210. stageData = copyData
  10211. ? copyData.stageData
  10212. : copyData2
  10213. ? copyData2.stageData
  10214. : [""];
  10215. }
  10216. let stage = [];
  10217. for (var i = 0; i < stageData.length; i++) {
  10218. stage.push({
  10219. dyName: stageData[i], //单元标题
  10220. chapterInfo: [
  10221. {
  10222. isread: false,
  10223. chapterid: this.guid(),
  10224. title: "",
  10225. courseName: "",
  10226. taskJson: [
  10227. {
  10228. task: "",
  10229. taskDetail: "",
  10230. chapterData: [],
  10231. toolText: "",
  10232. toolChoose: [
  10233. {
  10234. tool: [],
  10235. toolDetail: "",
  10236. toolType: 0,
  10237. askCount: 1,
  10238. askTitle: "",
  10239. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10240. },
  10241. ],
  10242. isShowTools: false,
  10243. askCount: 1,
  10244. isFold: 1,
  10245. askTitle: "",
  10246. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10247. checkJson: [{ checkCount: [], checkPerent: [] }],
  10248. homeworkList: [],
  10249. },
  10250. ],
  10251. itemCount: 1,
  10252. fileList1: [],
  10253. video: [],
  10254. testData: [],
  10255. pData: [],
  10256. templateArray: [],
  10257. },
  10258. ],
  10259. });
  10260. }
  10261. let _this = this;
  10262. if (stageJson) {
  10263. if (!_this.cid) {
  10264. _this.unitJson = stage;
  10265. } else {
  10266. _this.unitIndex = 0;
  10267. _this.unitJson = stage;
  10268. _this.updateWork();
  10269. }
  10270. } else {
  10271. _this
  10272. .$confirm(
  10273. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  10274. "提示",
  10275. {
  10276. confirmButtonText: "确定",
  10277. cancelButtonText: "取消",
  10278. type: "warning",
  10279. }
  10280. )
  10281. .then(() => {
  10282. _this.unitIndex = 0;
  10283. _this.unitJson = stage;
  10284. // _this.steps++;
  10285. _this.updateWork();
  10286. })
  10287. .catch(() => {
  10288. return;
  10289. });
  10290. }
  10291. },
  10292. openStageBox() {
  10293. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  10294. this.dialogVisibleStageChange = true;
  10295. },
  10296. updateChange() {
  10297. this.$confirm(
  10298. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10299. "提示",
  10300. {
  10301. confirmButtonText: "确定",
  10302. cancelButtonText: "取消",
  10303. type: "warning",
  10304. }
  10305. )
  10306. .then(() => {
  10307. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  10308. this.updateWork();
  10309. this.dialogVisibleStageChange = false;
  10310. })
  10311. .catch(() => {
  10312. return;
  10313. });
  10314. },
  10315. addAnswer() {
  10316. if (this.answerQ == "") {
  10317. this.$message.error("请输入您想要问的问题");
  10318. return;
  10319. }
  10320. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10321. this.taskCount
  10322. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10323. this.dialogVisible8 = false;
  10324. if (
  10325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10326. .toolChoose[this.toolIndex].tool != 15
  10327. ) {
  10328. this.addTools(15, this.taskCount, this.toolIndex);
  10329. }
  10330. },
  10331. addMp3Answer() {
  10332. if (this.answerQ == "") {
  10333. this.$message.error("请输入您想要回答的问题");
  10334. return;
  10335. }
  10336. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10337. this.taskCount
  10338. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10339. this.dialogVisibleMp3 = false;
  10340. },
  10341. addRateAnswer() {
  10342. var a = 1;
  10343. for (var i = 0; i < this.rateJson.length; i++) {
  10344. if (this.rateJson[i].value == "") {
  10345. a = 2;
  10346. break;
  10347. }
  10348. }
  10349. if (a == 2) {
  10350. this.$message.error("请把评价信息填写完整");
  10351. return;
  10352. }
  10353. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10354. this.taskCount
  10355. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10356. this.dialogVisibleRate = false;
  10357. if (
  10358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10359. .toolChoose[this.toolIndex].tool != 40
  10360. ) {
  10361. this.addTools(40, this.taskCount, this.toolIndex);
  10362. }
  10363. },
  10364. addSelectAnswer() {
  10365. if (this.selectJson.url == "") {
  10366. this.$message.error("请上传题目");
  10367. return;
  10368. }
  10369. if (!this.selectJson.select.length) {
  10370. this.$message.error("请添加选项");
  10371. return;
  10372. }
  10373. if (!this.selectJson.answer.length) {
  10374. this.$message.error("请设置答案");
  10375. return;
  10376. }
  10377. var a = 1;
  10378. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10379. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10380. a = 2;
  10381. }
  10382. }
  10383. if (a == 2) {
  10384. this.$message.error("请设置答案");
  10385. return;
  10386. }
  10387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10388. this.taskCount
  10389. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10390. this.dialogVisibleSelect = false;
  10391. if (
  10392. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10393. .toolChoose[this.toolIndex].tool != 41
  10394. ) {
  10395. this.addTools(41, this.taskCount, this.toolIndex);
  10396. }
  10397. },
  10398. nextSelectSteps() {
  10399. if (this.selectJson.url == "") {
  10400. this.$message.error("请上传题目");
  10401. return;
  10402. }
  10403. if (!this.selectJson.select.length) {
  10404. this.$message.error("请添加选项");
  10405. return;
  10406. } else {
  10407. for (var z = 0; z < this.selectJson.select.length; z++) {
  10408. let checkC = this.selectJson.select[z];
  10409. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  10410. let checkC2 = this.selectJson.select[z2];
  10411. if (checkC == checkC2) {
  10412. this.$message.error(
  10413. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10414. );
  10415. return;
  10416. }
  10417. }
  10418. }
  10419. }
  10420. var a = 1;
  10421. for (var i = 0; i < this.selectJson.select.length; i++) {
  10422. if (!this.selectJson.select[i]) {
  10423. a = 2;
  10424. }
  10425. }
  10426. if (a == 2) {
  10427. this.$message.error("添加的选项不能为空");
  10428. return;
  10429. }
  10430. this.selectSteps++;
  10431. },
  10432. selectCourseDetail() {
  10433. if (this.cid == "" || this.cid == undefined) {
  10434. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  10435. this.isTeacherSee = true;
  10436. }
  10437. console.log("这是新增课程");
  10438. this.selectAllType();
  10439. } else {
  10440. this.isOutline = true
  10441. this.isOutline2 = true
  10442. this.cidType = 1;
  10443. let params = {
  10444. cid: this.cid,
  10445. };
  10446. this.ajax
  10447. .get(this.$store.state.api + "select_course_detail", params)
  10448. .then((res) => {
  10449. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10450. this.courseState = res.data[0][0].state;
  10451. for (var j = 0; j < this.unitJson.length; j++) {
  10452. for (
  10453. var k = 0;
  10454. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10455. k++
  10456. ) {
  10457. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10458. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10459. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10460. : [];
  10461. let _chapterData = [];
  10462. for (
  10463. var c = 0;
  10464. c <
  10465. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10466. .length;
  10467. c++
  10468. ) {
  10469. if (
  10470. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10471. ) {
  10472. _chapterData.push(
  10473. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10474. );
  10475. }
  10476. }
  10477. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10478. _chapterData;
  10479. }
  10480. }
  10481. this.$forceUpdate();
  10482. this.courseName = res.data[0][0].title;
  10483. this.courseText = res.data[0][0].brief;
  10484. this.courseText2 = res.data[0][0].reBrief;
  10485. this.evalua = res.data[0][0].evaId;
  10486. this.cover = JSON.parse(res.data[0][0].cover);
  10487. this.noneBtnImg = this.cover.length >= 1;
  10488. if (res.data[0][0].refile) {
  10489. this.infoData = JSON.parse(res.data[0][0].refile)
  10490. }
  10491. // this.checkboxList =
  10492. // res.data[0][0].course_student.length > 0
  10493. // ? JSON.parse(res.data[0][0].course_student)
  10494. // : [];
  10495. this.checkboxList2 = res.data[0][0].juri
  10496. ? res.data[0][0].juri.split(",")
  10497. : [];
  10498. this.inviteCode = [];
  10499. for (var i = 0; i < res.data[2].length; i++) {
  10500. this.inviteCode.push({
  10501. cid: res.data[2][i].classid,
  10502. ic: res.data[2][i].code,
  10503. });
  10504. }
  10505. this.checkboxList3 = res.data[0][0].course_teacher
  10506. ? res.data[0][0].course_teacher.split(",")
  10507. : [];
  10508. // this.isTeacherSee =
  10509. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10510. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10511. this.myWord = res.data[0][0].template;
  10512. this.templateC.id = "123";
  10513. this.courseUserid = res.data[0][0].userid;
  10514. // if(this.courseUserid == this.userid){
  10515. // this.InviteChange(this.checkboxList2)
  10516. // }
  10517. this.nbOrder = res.data[0][0].ordernumber;
  10518. this.courseTypeId = [];
  10519. for (var i = 0; i < res.data[1].length; i++) {
  10520. this.courseTypeId.push(res.data[1][i].typeid);
  10521. }
  10522. console.log(this.courseTypeId);
  10523. // if (this.timer) clearInterval(this.timer);
  10524. if (this.timer) clearTimeout(this.timer);
  10525. this.timer = null;
  10526. // this.timer = setInterval(() => {
  10527. if(res.data[3].length){
  10528. try {
  10529. this.aiJson = JSON.parse(res.data[3][0].tips);
  10530. }catch(error){
  10531. console.error(error)
  10532. }
  10533. }
  10534. this.seleteCourseUpdate();
  10535. this.setMan();
  10536. this.selectAllType();
  10537. this.unitJson[
  10538. this.unitIndex
  10539. ].chapterInfo[0].taskJson[0].toolOpen = true;
  10540. // }, 5000);
  10541. this.$forceUpdate();
  10542. setTimeout(() => {
  10543. this.checkEva(this.evalua);
  10544. setTimeout(() => {
  10545. this.checkEva(this.evalua);
  10546. }, 100);
  10547. }, 100);
  10548. })
  10549. .catch((err) => {
  10550. console.error(err);
  10551. });
  10552. }
  10553. },
  10554. seleteCourseUpdate() {
  10555. let params = {
  10556. cid: this.cid,
  10557. };
  10558. this.ajax
  10559. .get(this.$store.state.api + "select_course_detail", params)
  10560. .then((res) => {
  10561. // console.log(this.unitJson);
  10562. let unitJson = JSON.parse(res.data[0][0].chapters);
  10563. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10564. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10565. let _unitJson = [];
  10566. let _chapAarry = [];
  10567. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10568. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10569. let index = 1;
  10570. let chapindex;
  10571. if (_unitJson2.length > unitJson.length) {
  10572. for (let c = 0; c < _unitJson2.length; c++) {
  10573. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10574. }
  10575. for (let j = 0; j < unitJson.length; j++) {
  10576. let count = 0;
  10577. for (let k = 0; k < _unitJson2.length; k++) {
  10578. if (
  10579. unitJson[j].chapterInfo[0].chapterid ==
  10580. _unitJson2[k].chapterInfo[0].chapterid
  10581. ) {
  10582. count++;
  10583. _chapAarry.splice(
  10584. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10585. 1
  10586. );
  10587. _unitJson.push(unitJson[j]);
  10588. break;
  10589. }
  10590. }
  10591. // if(count === 0){
  10592. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10593. // }
  10594. }
  10595. for (let k = 0; k < _unitJson2.length; k++) {
  10596. if (_unitJson2[k].isUpdate == 1) {
  10597. _chapAarry.splice(
  10598. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10599. 1
  10600. );
  10601. _unitJson.push(_unitJson2[k]);
  10602. }
  10603. }
  10604. console.log(_chapAarry);
  10605. for (let d = 0; d < _unitJson2.length; d++) {
  10606. if (
  10607. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10608. ) {
  10609. if (_unitIndex == d) {
  10610. index = 2;
  10611. }
  10612. chapindex = d;
  10613. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10614. }
  10615. }
  10616. } else {
  10617. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10618. }
  10619. for (let i = 0; i < unitJson.length; i++) {
  10620. if (
  10621. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10622. _unitJson[i].chapterInfo[0].chapterid !=
  10623. unitJson[i].chapterInfo[0].chapterid
  10624. ) {
  10625. if (i == _unitJson.length - 1) {
  10626. // this.unitIndex++
  10627. _unitIndex2++;
  10628. }
  10629. _unitJson.splice(i, 0, unitJson[i]);
  10630. } else if (i > _unitJson.length - 1) {
  10631. _unitJson.push(unitJson[i]);
  10632. } else if (
  10633. _unitJson[i].chapterInfo[0].chapterid ==
  10634. unitJson[i].chapterInfo[0].chapterid
  10635. ) {
  10636. _unitJson[i] = unitJson[i];
  10637. }
  10638. // if (i == _unitIndex) {
  10639. // continue;
  10640. // } else
  10641. }
  10642. if (_chapAarry.length && index != 2) {
  10643. if (chapindex < _unitIndex) {
  10644. this.isDelete = 2;
  10645. // this.unitIndex--;
  10646. _unitIndex2--;
  10647. } else if (
  10648. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10649. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10650. ) {
  10651. this.isDelete = 2;
  10652. for (let n = 0; n < _unitJson.length; n++) {
  10653. if (
  10654. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10655. _unitJson[n].chapterInfo[0].chapterid
  10656. ) {
  10657. // this.unitIndex = n;
  10658. _unitIndex2 = n;
  10659. _unitJson[n] = _unitJson2[_unitIndex];
  10660. break;
  10661. }
  10662. }
  10663. }
  10664. } else if (index != 2) {
  10665. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10666. _unitJson2[_unitIndex];
  10667. for (
  10668. var ci = 0;
  10669. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10670. ci++
  10671. ) {
  10672. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10673. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10674. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10675. .toolChoose
  10676. : [];
  10677. let _chapterData = [];
  10678. for (
  10679. var c = 0;
  10680. c <
  10681. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10682. .length;
  10683. c++
  10684. ) {
  10685. if (
  10686. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10687. .chapterData[c]
  10688. ) {
  10689. _chapterData.push(
  10690. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10691. .chapterData[c]
  10692. );
  10693. }
  10694. }
  10695. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10696. _chapterData;
  10697. }
  10698. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10699. }
  10700. if (index == 1) {
  10701. this.unitJson = _unitJson;
  10702. this.$forceUpdate();
  10703. setTimeout(() => {
  10704. if (this.unitIndex != _unitIndex2) {
  10705. this.isDelete = 2;
  10706. this.unitIndex = _unitIndex2;
  10707. }
  10708. }, 0);
  10709. this.timer = setTimeout(() => {
  10710. this.seleteCourseUpdate();
  10711. }, 1000);
  10712. } else if (index == 2) {
  10713. let _this = this;
  10714. _this
  10715. .$confirm(
  10716. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10717. "提示",
  10718. {
  10719. confirmButtonText: "需要",
  10720. cancelButtonText: "取消",
  10721. type: "warning",
  10722. }
  10723. )
  10724. .then(() => {
  10725. if (_this.time()) {
  10726. _this.restoreWork(
  10727. _chapAarry[0],
  10728. _unitJson,
  10729. chapindex,
  10730. _unitJson2,
  10731. _unitIndex2
  10732. );
  10733. }
  10734. })
  10735. .catch(() => {
  10736. _this.unitJson = _unitJson;
  10737. _this.$forceUpdate();
  10738. setTimeout(() => {
  10739. if (this.unitIndex != _unitIndex2) {
  10740. this.isDelete = 2;
  10741. this.unitIndex = _unitIndex2;
  10742. }
  10743. }, 0);
  10744. _this.timer = setTimeout(() => {
  10745. _this.seleteCourseUpdate();
  10746. }, 1000);
  10747. });
  10748. }
  10749. // 在复制操作之前记录滚动位置
  10750. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10751. // 执行复制操作
  10752. // 复制操作完成后恢复滚动位置
  10753. this.$nextTick(() => {
  10754. if (this.$refs.scrollContainer) {
  10755. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10756. }
  10757. });
  10758. })
  10759. .catch((err) => {
  10760. console.error(err);
  10761. });
  10762. },
  10763. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10764. let params = [
  10765. {
  10766. cid: this.cid,
  10767. chapters: JSON.stringify(this.unitJson),
  10768. uid: this.userid,
  10769. chapid: chapid,
  10770. },
  10771. ];
  10772. this.ajax
  10773. .post(this.$store.state.api + "restoreWork", params)
  10774. .then((res) => {
  10775. this.$message({
  10776. message: "恢复成功",
  10777. type: "success",
  10778. });
  10779. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10780. this.unitJson = unitJson;
  10781. this.$forceUpdate();
  10782. setTimeout(() => {
  10783. if (this.unitIndex != unitIndex2) {
  10784. this.isDelete = 2;
  10785. this.unitIndex = unitIndex2;
  10786. }
  10787. }, 0);
  10788. this.timer = setTimeout(() => {
  10789. this.seleteCourseUpdate();
  10790. }, 1000);
  10791. })
  10792. .catch((err) => {
  10793. this.$message.error("网络不佳");
  10794. console.error(err);
  10795. });
  10796. },
  10797. getTypeName() {
  10798. console.log(this.courseTypeId);
  10799. this.$forceUpdate();
  10800. },
  10801. selectAllType() {
  10802. let params = {
  10803. org: this.org && this.org != "" ? this.org : "",
  10804. oid: this.oid && this.oid != "" ? this.oid : "",
  10805. };
  10806. this.ajax
  10807. .get(this.$store.state.api + "selectAllType", params)
  10808. .then((res) => {
  10809. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10810. res.data[0] = [...res.data[0], ...res.data[4]];
  10811. }
  10812. this.CourseType = res.data;
  10813. this.CourseType2 = [
  10814. { name: "智见课程", id: [] },
  10815. { name: "智行课程", id: [] },
  10816. { name: "智创课程", id: [] },
  10817. ];
  10818. for (var cti = 0; cti < res.data[0].length; cti++) {
  10819. if (
  10820. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10821. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  10822. ) {
  10823. this.CourseType2[0].id.push(res.data[0][cti].id);
  10824. } else if (
  10825. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  10826. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10827. ) {
  10828. this.CourseType2[1].id.push(res.data[0][cti].id);
  10829. } else if (
  10830. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10831. ) {
  10832. this.CourseType2[2].id.push(res.data[0][cti].id);
  10833. }
  10834. if (
  10835. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10836. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  10837. ) {
  10838. res.data[0][cti].name = "年级";
  10839. } else if (
  10840. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  10841. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10842. ) {
  10843. res.data[0][cti].name = "学科";
  10844. } else if (
  10845. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10846. ) {
  10847. res.data[0][cti].name = "主题";
  10848. }
  10849. }
  10850. let _courseTypeId = [];
  10851. for (var i = 0; i < res.data[0].length; i++) {
  10852. if (!this.cid) {
  10853. this.courseTypeId[res.data[0][i].id] = [];
  10854. }
  10855. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10856. // }
  10857. this.CourseTypeJson[res.data[0][i].id] = [];
  10858. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10859. if (res.data[0][i].name == "栏目") {
  10860. this.CourseType[0][i].name = "主题";
  10861. }
  10862. }
  10863. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10864. for (var j = 0; j < res.data[1].length; j++) {
  10865. if (
  10866. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10867. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10868. ) {
  10869. _courseTypeId.push(res.data[1][j].id);
  10870. }
  10871. if (res.data[0][i].id == res.data[1][j].pid) {
  10872. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10873. }
  10874. }
  10875. } else {
  10876. if (res.data[2].length > 0) {
  10877. for (var j = 0; j < res.data[2].length; j++) {
  10878. if (
  10879. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10880. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10881. ) {
  10882. _courseTypeId.push(res.data[2][j].id);
  10883. }
  10884. if (res.data[0][i].id == res.data[2][j].pid) {
  10885. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10886. }
  10887. }
  10888. }
  10889. if (res.data[3].length > 0) {
  10890. for (var j = 0; j < res.data[3].length; j++) {
  10891. if (
  10892. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10893. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10894. ) {
  10895. _courseTypeId.push(res.data[3][j].id);
  10896. }
  10897. if (res.data[0][i].id == res.data[3][j].pid) {
  10898. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10899. }
  10900. }
  10901. }
  10902. }
  10903. }
  10904. this.courseTypeId = _courseTypeId;
  10905. })
  10906. .catch((err) => {
  10907. console.error(err);
  10908. });
  10909. },
  10910. selectType() {
  10911. this.ajax
  10912. .get(this.$store.state.api + "selectType")
  10913. .then((res) => {
  10914. this.CourseType = res.data;
  10915. for (var i = 0; i < res.data[0].length; i++) {
  10916. if (!this.cid) {
  10917. this.courseTypeId[res.data[0][i].id] = "";
  10918. }
  10919. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10920. if (res.data[0][i].name == "栏目") {
  10921. this.CourseType[0][i].name = "主题";
  10922. }
  10923. }
  10924. for (var j = 0; j < res.data[1].length; j++) {
  10925. if (res.data[0][i].id == res.data[1][j].pid) {
  10926. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10927. this.CourseTypeJson[res.data[0][i].id] = [];
  10928. }
  10929. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10930. }
  10931. }
  10932. }
  10933. this.selectTypeByOid();
  10934. this.selectTypeByOrg();
  10935. })
  10936. .catch((err) => {
  10937. console.error(err);
  10938. });
  10939. },
  10940. selectTypeByOid() {
  10941. let params = {
  10942. oid: this.oid,
  10943. };
  10944. this.ajax
  10945. .get(this.$store.state.api + "selectTypeByOid", params)
  10946. .then((res) => {
  10947. for (var i = 0; i < res.data[0].length; i++) {
  10948. for (var j = 0; j < res.data[1].length; j++) {
  10949. if (res.data[0][i].id == res.data[1][j].pid) {
  10950. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10951. this.CourseTypeJson[res.data[0][i].id] = [];
  10952. }
  10953. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10954. }
  10955. }
  10956. }
  10957. })
  10958. .catch((err) => {
  10959. console.error(err);
  10960. });
  10961. },
  10962. selectTypeByOrg() {
  10963. let params = {
  10964. oid: this.org,
  10965. };
  10966. this.ajax
  10967. .get(this.$store.state.api + "selectTypeByOrg", params)
  10968. .then((res) => {
  10969. for (var i = 0; i < res.data[0].length; i++) {
  10970. for (var j = 0; j < res.data[1].length; j++) {
  10971. if (res.data[0][i].id == res.data[1][j].pid) {
  10972. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10973. this.CourseTypeJson[res.data[0][i].id] = [];
  10974. }
  10975. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10976. }
  10977. }
  10978. }
  10979. this.$forceUpdate();
  10980. })
  10981. .catch((err) => {
  10982. console.error(err);
  10983. });
  10984. },
  10985. OtherMb(type, task) {
  10986. if (task === 0 || task) {
  10987. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10988. task
  10989. ].isEvaFold = true;
  10990. }
  10991. this.typeMode = type;
  10992. setTimeout(() => {
  10993. this.checkEva(this.checkId);
  10994. setTimeout(() => {
  10995. this.checkEva(this.checkId);
  10996. }, 100);
  10997. }, 100);
  10998. },
  10999. openMember() {
  11000. this.searchTN = "";
  11001. this.getTeacher();
  11002. this.dialogVisibleMember = true;
  11003. },
  11004. checkEva(id, type) {
  11005. this.dialogVisiblemb = false;
  11006. this.selectEva();
  11007. if (this.evalua != id && type == 2) {
  11008. this.$message.success("导入成功");
  11009. setTimeout(() => {
  11010. this.checkEva(id);
  11011. }, 100);
  11012. }
  11013. this.evalua = id;
  11014. this.checkId = id;
  11015. if (this.evalua != "") {
  11016. for (var i = 0; i < this.evaJuri.length; i++) {
  11017. if (this.evalua == this.evaJuri[i].id) {
  11018. this.eTitle = this.evaJuri[i].title;
  11019. this.eJson = JSON.parse(this.evaJuri[i].content);
  11020. }
  11021. }
  11022. this.data.data = [];
  11023. this.$forceUpdate();
  11024. setTimeout(() => {
  11025. this.setMindData();
  11026. }, 1000);
  11027. }
  11028. },
  11029. deleteEva() {
  11030. let _this = this;
  11031. if (_this.evalua == "") {
  11032. this.$message.warning("内容已经清空了,请勿重复清空");
  11033. return;
  11034. }
  11035. _this
  11036. .$confirm("确定删除此目标吗?", "提示", {
  11037. confirmButtonText: "确定",
  11038. cancelButtonText: "取消",
  11039. type: "warning",
  11040. })
  11041. .then(() => {
  11042. _this.evalua = "";
  11043. _this.checkId = "";
  11044. _this.eTitle = "";
  11045. let _unitJson = _this.unitJson;
  11046. for (var i = 0; i < _unitJson.length; i++) {
  11047. let _task = _unitJson[i].chapterInfo[0].taskJson;
  11048. for (var j = 0; j < _task.length; j++) {
  11049. let _eList = _task[j].eList;
  11050. for (var k = 0; k < _eList.length; k++) {
  11051. delete _eList[k].target;
  11052. }
  11053. }
  11054. }
  11055. _this.$forceUpdate();
  11056. if (_this.cid) {
  11057. _this.updateWork();
  11058. }
  11059. })
  11060. .catch(() => {
  11061. return;
  11062. });
  11063. },
  11064. selectEva() {
  11065. let params = {
  11066. oid: this.oid,
  11067. };
  11068. this.ajax
  11069. .get(this.$store.state.api + "selectAllEvaluation", params)
  11070. .then((res) => {
  11071. this.evaJuri = res.data[0];
  11072. // 在复制操作之前记录滚动位置
  11073. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  11074. // 执行复制操作
  11075. // 复制操作完成后恢复滚动位置
  11076. this.$nextTick(() => {
  11077. if (this.$refs.scrollContainer) {
  11078. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  11079. }
  11080. });
  11081. })
  11082. .catch((err) => {
  11083. console.error(err);
  11084. });
  11085. },
  11086. setMindData() {
  11087. let targetArray = [];
  11088. this.data.data = [];
  11089. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  11090. let _eJson = Object.keys(this.eJson);
  11091. let _e = this.eJson;
  11092. for (let i = 0; i < _eJson.length; i++) {
  11093. let element = _e[_eJson[i]];
  11094. this.data.data.push({
  11095. id: element.id,
  11096. parentid: "root",
  11097. topic: element.name,
  11098. });
  11099. // targetArray.push({
  11100. // id: element.id,
  11101. // parentid: "root",
  11102. // name: element.name,
  11103. // });
  11104. targetArray.push({
  11105. value: element.name,
  11106. label: element.name,
  11107. children: [],
  11108. });
  11109. let _eJsonc = Object.keys(element.child);
  11110. let _e2 = element.child;
  11111. for (let j = 0; j < _eJsonc.length; j++) {
  11112. let _ec = _e2[_eJsonc[j]];
  11113. this.data.data.push({
  11114. id: _ec.id,
  11115. parentid: element.id,
  11116. topic: _ec.name,
  11117. });
  11118. // targetArray.push({
  11119. // id: _ec.id,
  11120. // parentid: element.id,
  11121. // name: _ec.name,
  11122. // });
  11123. targetArray[i].children.push({
  11124. value: _ec.name,
  11125. label: _ec.name,
  11126. children: [],
  11127. });
  11128. let _eJsonz = Object.keys(_ec.child);
  11129. let _e3 = _ec.child;
  11130. for (let z = 0; z < _eJsonz.length; z++) {
  11131. let _ez = _e3[_eJsonz[z]];
  11132. this.data.data.push({
  11133. id: _ez.id,
  11134. parentid: _ec.id,
  11135. topic: _ez.name,
  11136. });
  11137. // targetArray.push({
  11138. // id: _ez.id,
  11139. // parentid: _ec.id,
  11140. // name: _ez.name,
  11141. // });
  11142. targetArray[i].children[j].children.push({
  11143. value: _ez.name,
  11144. label: _ez.name,
  11145. });
  11146. }
  11147. }
  11148. }
  11149. this.targetArray = targetArray;
  11150. this.$forceUpdate();
  11151. },
  11152. /*添加评价 */
  11153. addEList(index, tIndex) {
  11154. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  11155. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  11156. value: "",
  11157. detail: "",
  11158. score: 5,
  11159. })
  11160. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  11161. { value: "", detail: "", score: 5 },
  11162. ]);
  11163. this.$forceUpdate();
  11164. },
  11165. openEList(index, tIndex) {
  11166. this.evaIndex = index;
  11167. this.evatIndex = tIndex;
  11168. this.evaBoxDialog = true;
  11169. },
  11170. addCET(index, tIndex) {
  11171. this.cetIndex = index;
  11172. this.cettIndex = tIndex;
  11173. this.selectAllType1();
  11174. },
  11175. addCETemplate() {
  11176. var array =
  11177. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  11178. .eList;
  11179. let params = [
  11180. {
  11181. uid: this.userid,
  11182. n: this.templateName,
  11183. json: JSON.stringify(array),
  11184. t: 1,
  11185. oid: this.oid,
  11186. },
  11187. ];
  11188. this.ajax
  11189. .post(this.$store.state.api + "addCETShare", params)
  11190. .then((res) => {
  11191. this.addTypeByCET(res.data[0][0].id);
  11192. })
  11193. .catch((err) => {
  11194. this.$message.error("网络不佳");
  11195. console.error(err);
  11196. });
  11197. },
  11198. addTypeByCET(id) {
  11199. if (this.setTypeJson.two == "") {
  11200. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  11201. return;
  11202. }
  11203. let params = {
  11204. cid: id,
  11205. };
  11206. this.ajax
  11207. .get(this.$store.state.api + "deleteCETLabel", params)
  11208. .then((res) => {
  11209. for (var i = 0; i < 2; i++) {
  11210. let tid = "";
  11211. if (i == 0) {
  11212. tid = this.setTypeJson.one;
  11213. } else {
  11214. tid = this.setTypeJson.two;
  11215. }
  11216. let params = [
  11217. {
  11218. cid: id,
  11219. tid: tid,
  11220. uid: this.userid,
  11221. },
  11222. ];
  11223. this.ajax
  11224. .post(this.$store.state.api + "addCETLabel", params)
  11225. .then((res) => {
  11226. this.$message({
  11227. message: "添加成功",
  11228. type: "success",
  11229. });
  11230. this.close();
  11231. })
  11232. .catch((err) => {
  11233. this.$message.error("网络不佳");
  11234. console.error(err);
  11235. });
  11236. }
  11237. })
  11238. .catch((err) => {
  11239. this.$message.error("网络不佳");
  11240. console.error(err);
  11241. });
  11242. },
  11243. updateEvaJson(array) {
  11244. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  11245. this.evatIndex
  11246. ].eList = array;
  11247. },
  11248. forceUpdate() {
  11249. this.$forceUpdate();
  11250. },
  11251. deletEList(index, tIndex, eIndex) {
  11252. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11253. eIndex,
  11254. 1
  11255. );
  11256. this.$forceUpdate();
  11257. },
  11258. getChoosePic(t) {
  11259. this.chooseType = t;
  11260. this.getAllBanner();
  11261. },
  11262. getAllBanner() {
  11263. this.sysPicVisible = true;
  11264. let params = {
  11265. t: this.chooseType,
  11266. };
  11267. this.ajax
  11268. .get(this.$store.state.api + "selectAllBanner", params)
  11269. .then((res) => {
  11270. this.sysPic = res.data[0];
  11271. })
  11272. .catch((err) => {
  11273. console.error(err);
  11274. });
  11275. },
  11276. // getClass() {
  11277. // let params = {
  11278. // oid: this.oid,
  11279. // };
  11280. // this.ajax
  11281. // .get(this.$store.state.api + "selectClassBySchool", params)
  11282. // .then((res) => {
  11283. // this.classJuri = res.data[0];
  11284. // })
  11285. // .catch((err) => {
  11286. // console.error(err);
  11287. // });
  11288. // },
  11289. deleteSysPic() {
  11290. this.cover = [];
  11291. this.isSysPic = false;
  11292. this.isSysPic2 = false;
  11293. },
  11294. deleteSelectPic() {
  11295. this.selectJson.url = "";
  11296. },
  11297. setEListStar() {
  11298. this.$forceUpdate();
  11299. },
  11300. deletRateList(i) {
  11301. this.rateJson.splice(i, 1);
  11302. },
  11303. addRateList() {
  11304. this.rateJson.push({ detail: "", score: 5, value: "" });
  11305. },
  11306. addSt() {
  11307. this.sentenceList.push({
  11308. sentenceTitle: "",
  11309. addSentence: [],
  11310. rightAnswer: [],
  11311. });
  11312. },
  11313. addSen(i) {
  11314. if (!this.sentenceList[i].sentenceTitle) {
  11315. this.$message.error("请填写卡片内容!");
  11316. return;
  11317. }
  11318. if (this.sentenceList[i].sentenceTitle.length > 10) {
  11319. this.$message.error("卡片内容字数不能超过10位");
  11320. return;
  11321. }
  11322. if (
  11323. this.sentenceList[i].addSentence.indexOf(
  11324. this.sentenceList[i].sentenceTitle
  11325. ) !== -1
  11326. ) {
  11327. this.$message.error("不能添加重复的卡片内容!");
  11328. return;
  11329. }
  11330. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11331. // this.isPushTitleList.push(this.sentenceTitle);
  11332. this.sentenceList[i].sentenceTitle = "";
  11333. },
  11334. setRightAnswer(s, i, j) {
  11335. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11336. this.sentenceList[i].rightAnswer.push(s);
  11337. }
  11338. },
  11339. returnCard(r, i, j) {
  11340. this.sentenceList[i].rightAnswer.splice(j, 1);
  11341. },
  11342. addSentenceTool() {
  11343. for (var i = 0; i < this.sentenceList.length; i++) {
  11344. if (this.sentenceList[i].rightAnswer.length == 0) {
  11345. this.$message.error(`请将题目${i + 1}设置完整。`);
  11346. return;
  11347. }
  11348. if (
  11349. this.sentenceList[i].addSentence.length !=
  11350. this.sentenceList[i].rightAnswer.length
  11351. ) {
  11352. this.$message.error(`请将题目${i + 1}设置完整。`);
  11353. return;
  11354. }
  11355. }
  11356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11357. this.taskCount
  11358. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11359. this.sentenceList = [
  11360. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11361. ];
  11362. this.dialogVisibleSentence = false;
  11363. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11364. // itemTaskIndex
  11365. // ].toolChoose[toolIndex].tool = [];
  11366. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11367. // itemTaskIndex
  11368. // ].toolChoose[toolIndex].tool.push(i);
  11369. if (
  11370. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11371. .toolChoose[this.toolIndex].tool != 47
  11372. ) {
  11373. this.addTools(47, this.taskCount, this.toolIndex);
  11374. }
  11375. },
  11376. addTableJson() {
  11377. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11378. // this.$message.error("请将信息填写完整!");
  11379. // return;
  11380. // }
  11381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11382. this.taskCount
  11383. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11384. // this.tableJson = [{ text: "" }];
  11385. // this.dialogVisibleTable = false;
  11386. this.$message.success("上传成功");
  11387. if (
  11388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11389. .toolChoose[this.toolIndex].tool != 48
  11390. ) {
  11391. this.addTools(48, this.taskCount, this.toolIndex);
  11392. }
  11393. },
  11394. addWordJson() {
  11395. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11396. this.taskCount
  11397. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11398. // this.wordJson = [{ text: "" }];
  11399. // this.dialogVisibleWord = false;
  11400. this.$message.success("上传成功");
  11401. if (
  11402. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11403. .toolChoose[this.toolIndex].tool != 52
  11404. ) {
  11405. this.addTools(52, this.taskCount, this.toolIndex);
  11406. }
  11407. },
  11408. addMoreUpload() {
  11409. if (this.uploadJson.length == 0) {
  11410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11411. this.taskCount
  11412. ].toolChoose[this.toolIndex].uploadJson = [];
  11413. } else {
  11414. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11415. this.taskCount
  11416. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11417. }
  11418. this.uploadJson = [];
  11419. this.dialogVisibleMoreUpload = false;
  11420. if (
  11421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11422. .toolChoose[this.toolIndex].tool != 50
  11423. ) {
  11424. this.addTools(50, this.taskCount, this.toolIndex);
  11425. }
  11426. },
  11427. addPreTime() {
  11428. if (this.preTime == 0) {
  11429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11430. this.taskCount
  11431. ].toolChoose[this.toolIndex].preTime = 0;
  11432. } else {
  11433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11434. this.taskCount
  11435. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11436. }
  11437. this.preTime = 0;
  11438. this.dialogVisiblePreTime = false;
  11439. if (
  11440. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11441. .toolChoose[this.toolIndex].tool != 10
  11442. ) {
  11443. this.addTools(10, this.taskCount, this.toolIndex);
  11444. }
  11445. },
  11446. goToTask(i) {
  11447. this.toolIndexType = "";
  11448. if (this.isClickColor == i + 1) {
  11449. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11450. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11451. // } else {
  11452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11453. i
  11454. ].toolOpen = true;
  11455. // }
  11456. this.$forceUpdate();
  11457. return;
  11458. }
  11459. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11460. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11461. // } else {
  11462. document.querySelectorAll(".basic_box")[0].scrollTop =
  11463. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11464. this.isClickColor = i + 1;
  11465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11466. // }
  11467. this.$forceUpdate();
  11468. },
  11469. taskOpen(i, stageIndex) {
  11470. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11471. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  11472. } else {
  11473. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11474. }
  11475. this.updateWork3(stageIndex);
  11476. this.$forceUpdate();
  11477. },
  11478. goToTask2(i, stage) {
  11479. this.toolIndexType = "";
  11480. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  11481. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11482. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11483. // } else {
  11484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11485. i
  11486. ].toolOpen = true;
  11487. // }
  11488. this.$forceUpdate();
  11489. return;
  11490. }
  11491. if (this.unitIndex != stage) {
  11492. if (this.panUnitJson() == 2) {
  11493. return;
  11494. }
  11495. this.unitSet(stage);
  11496. }
  11497. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11498. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11499. // } else {
  11500. document.querySelectorAll(".basic_box")[0].scrollTop =
  11501. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11502. this.isClickColor = i + 1;
  11503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11504. // }
  11505. this.$forceUpdate();
  11506. },
  11507. taskMove(type, index) {
  11508. this.$confirm(
  11509. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11510. "提示",
  11511. {
  11512. confirmButtonText: "确定",
  11513. cancelButtonText: "取消",
  11514. type: "warning",
  11515. }
  11516. )
  11517. .then(() => {
  11518. if (type == 1) {
  11519. if (index > 0) {
  11520. let a = JSON.parse(
  11521. JSON.stringify(
  11522. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11523. index - 1
  11524. ]
  11525. )
  11526. );
  11527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11530. }
  11531. } else {
  11532. if (
  11533. index <
  11534. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11535. ) {
  11536. let a = JSON.parse(
  11537. JSON.stringify(
  11538. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11539. index + 1
  11540. ]
  11541. )
  11542. );
  11543. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11546. }
  11547. }
  11548. this.$forceUpdate();
  11549. })
  11550. .catch(() => {
  11551. return;
  11552. });
  11553. },
  11554. stageMove(type, index) {
  11555. if (type == 1) {
  11556. if (index > 0) {
  11557. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  11558. let acid = JSON.parse(
  11559. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  11560. );
  11561. let bcid = JSON.parse(
  11562. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11563. );
  11564. this.unitJson3[index - 1] = this.unitJson3[index];
  11565. this.unitJson3[index] = a;
  11566. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  11567. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11568. }
  11569. } else {
  11570. if (index < this.unitJson3.length - 1) {
  11571. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  11572. let acid = JSON.parse(
  11573. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  11574. );
  11575. let bcid = JSON.parse(
  11576. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11577. );
  11578. this.unitJson3[index + 1] = this.unitJson3[index];
  11579. this.unitJson3[index] = a;
  11580. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  11581. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11582. }
  11583. }
  11584. this.$forceUpdate();
  11585. },
  11586. addGroup(i) {
  11587. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11588. this.groupJson.group.push({
  11589. name: "第" + (this.groupJson.group.length + 1) + "组",
  11590. });
  11591. },
  11592. deleteGroup(i) {
  11593. this.groupJson.group.splice(i, 1);
  11594. },
  11595. numberPan() {
  11596. if (
  11597. /[^\d]/.test(this.groupJson.number) ||
  11598. this.groupJson.number < 2 ||
  11599. this.groupJson.number > 10
  11600. ) {
  11601. this.$message.error("请输入2-10的数字");
  11602. this.groupJson.number = "";
  11603. }
  11604. },
  11605. addGroupJson() {
  11606. for (var i = 0; i < this.groupJson.group.length; i++) {
  11607. if (!this.groupJson.group[i].name) {
  11608. this.$message.error("请将信息填写完整!");
  11609. return;
  11610. }
  11611. }
  11612. if (!this.groupJson.number) {
  11613. this.$message.error("请将信息填写完整!");
  11614. return;
  11615. }
  11616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11617. this.taskCount
  11618. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11619. JSON.stringify(this.groupJson)
  11620. );
  11621. this.dialogVisibleGroup = false;
  11622. this.groupJson = {};
  11623. if (
  11624. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11625. .toolChoose[this.toolIndex].tool != 49
  11626. ) {
  11627. this.addTools(49, this.taskCount, this.toolIndex);
  11628. }
  11629. },
  11630. updateTime(preTime) {
  11631. this.preTime = preTime;
  11632. },
  11633. InviteChange(val) {
  11634. console.log(val);
  11635. let _check = [];
  11636. let _check2 = [];
  11637. for (var i = 0; i < this.grade2.length; i++) {
  11638. var gid = this.grade2[i].id;
  11639. _check.push(gid);
  11640. }
  11641. for (var i = 0; i < this.checkboxList2.length; i++) {
  11642. var _id = this.checkboxList2[i];
  11643. if (_check.indexOf(_id) !== -1) {
  11644. _check2.push(_id);
  11645. }
  11646. }
  11647. this.checkAll = _check2.length === _check.length;
  11648. return;
  11649. let array = JSON.parse(JSON.stringify(val));
  11650. this.inviteCode = this.inviteCode.filter((el) => {
  11651. if (val.indexOf(el.cid) != -1) {
  11652. array.splice(array.indexOf(el.cid), 1);
  11653. return el;
  11654. }
  11655. });
  11656. for (var i = 0; i < array.length; i++) {
  11657. this.getInviteCode(array[i]);
  11658. }
  11659. },
  11660. InviteChange2(val) {
  11661. console.log(val);
  11662. let _check = [];
  11663. let _check2 = [];
  11664. for (var i = 0; i < this.teacherJuri.length; i++) {
  11665. var gid = this.teacherJuri[i].userid;
  11666. _check.push(gid);
  11667. }
  11668. for (var i = 0; i < this.checkboxList3.length; i++) {
  11669. var _id = this.checkboxList3[i];
  11670. if (_check.indexOf(_id) !== -1) {
  11671. _check2.push(_id);
  11672. }
  11673. }
  11674. this.checkAll2 = _check2.length === _check.length;
  11675. this.setMan();
  11676. return;
  11677. let array = JSON.parse(JSON.stringify(val));
  11678. this.inviteCode = this.inviteCode.filter((el) => {
  11679. if (val.indexOf(el.cid) != -1) {
  11680. array.splice(array.indexOf(el.cid), 1);
  11681. return el;
  11682. }
  11683. });
  11684. for (var i = 0; i < array.length; i++) {
  11685. this.getInviteCode(array[i]);
  11686. }
  11687. },
  11688. handleCheckAllChange(val) {
  11689. if (val) {
  11690. for (var i = 0; i < this.grade2.length; i++) {
  11691. var gid = this.grade2[i].id;
  11692. if (this.checkboxList2.indexOf(gid) === -1) {
  11693. this.checkboxList2.push(gid);
  11694. }
  11695. }
  11696. } else {
  11697. let _check = [];
  11698. let _check2 = [];
  11699. for (var i = 0; i < this.grade2.length; i++) {
  11700. var gid = this.grade2[i].id;
  11701. _check.push(gid);
  11702. }
  11703. for (var i = 0; i < this.checkboxList2.length; i++) {
  11704. var _id = this.checkboxList2[i];
  11705. if (_check.indexOf(_id) === -1) {
  11706. _check2.push(_id);
  11707. }
  11708. }
  11709. this.checkboxList2 = _check2;
  11710. }
  11711. this.isIndeterminate = false;
  11712. },
  11713. handleCheckAllChange2(val) {
  11714. if (val) {
  11715. for (var i = 0; i < this.teacherJuri.length; i++) {
  11716. var gid = this.teacherJuri[i].userid;
  11717. if (this.checkboxList3.indexOf(gid) === -1) {
  11718. this.checkboxList3.push(gid);
  11719. }
  11720. }
  11721. } else {
  11722. let _check = [];
  11723. let _check2 = [];
  11724. for (var i = 0; i < this.teacherJuri.length; i++) {
  11725. var gid = this.teacherJuri[i].userid;
  11726. _check.push(gid);
  11727. }
  11728. for (var i = 0; i < this.checkboxList3.length; i++) {
  11729. var _id = this.checkboxList3[i];
  11730. if (_check.indexOf(_id) === -1) {
  11731. _check2.push(_id);
  11732. }
  11733. }
  11734. this.checkboxList3 = _check2;
  11735. }
  11736. this.isIndeterminate2 = false;
  11737. },
  11738. async getInviteCode(cid) {
  11739. let code = this.randomNumber();
  11740. let params = {
  11741. code: code,
  11742. oid: this.oid,
  11743. };
  11744. let type = 1;
  11745. for (var i = 0; i < this.inviteCode.length; i++) {
  11746. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11747. type = 2;
  11748. }
  11749. }
  11750. if (type == 2) {
  11751. this.getInviteCode(cid);
  11752. return;
  11753. }
  11754. const res = await this.ajax.get(
  11755. this.$store.state.api + "selectInviteCode2",
  11756. params
  11757. );
  11758. if (
  11759. res.data.length &&
  11760. res.data[0].length &&
  11761. res.data[0][0].courseId != this.cid
  11762. ) {
  11763. this.getInviteCode(cid);
  11764. return;
  11765. }
  11766. let array = [];
  11767. for (var i = 0; i < this.inviteCode.length; i++) {
  11768. array.push(this.inviteCode[i].cid);
  11769. }
  11770. if (array.indexOf(cid) != -1) {
  11771. this.inviteCode[array.indexOf(cid)].ic = code;
  11772. } else {
  11773. this.inviteCode.push({ cid: cid, ic: code });
  11774. }
  11775. },
  11776. OpenInviteD(cid) {
  11777. let array = [];
  11778. this.icode = "";
  11779. for (var i = 0; i < this.inviteCode.length; i++) {
  11780. array.push(this.inviteCode[i].cid);
  11781. }
  11782. if (array.indexOf(cid) != -1) {
  11783. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11784. }
  11785. this.inviteId = cid;
  11786. this.dialogVisibleInvite = true;
  11787. },
  11788. addInvite() {
  11789. let reg = /^[A-Za-z0-9]{4,}$/;
  11790. if (!reg.test(this.icode)) {
  11791. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11792. return;
  11793. }
  11794. let type = 1;
  11795. for (var i = 0; i < this.inviteCode.length; i++) {
  11796. if (
  11797. this.inviteCode[i].cid != this.inviteId &&
  11798. this.icode == this.inviteCode[i].ic
  11799. ) {
  11800. type = 2;
  11801. }
  11802. }
  11803. if (type == 2) {
  11804. this.$message.error("已有此随机码,不能重复");
  11805. return;
  11806. }
  11807. let params = {
  11808. code: this.icode,
  11809. oid: this.oid,
  11810. };
  11811. this.ajax
  11812. .get(this.$store.state.api + "selectInviteCode", params)
  11813. .then((res) => {
  11814. if (
  11815. res.data.length &&
  11816. res.data[0].length &&
  11817. res.data[0][0].courseId != this.cid
  11818. ) {
  11819. this.$message.error("已有此随机码,不能重复");
  11820. return;
  11821. }
  11822. let array = [];
  11823. for (var i = 0; i < this.inviteCode.length; i++) {
  11824. array.push(this.inviteCode[i].cid);
  11825. }
  11826. if (array.indexOf(this.inviteId) != -1) {
  11827. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11828. } else {
  11829. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11830. }
  11831. this.icode = "";
  11832. this.dialogVisibleInvite = false;
  11833. })
  11834. .catch((err) => {
  11835. console.error(err);
  11836. });
  11837. },
  11838. randomNumber() {
  11839. // 随机生成两位数
  11840. // let num = Math.floor(Math.random() * 900) + 100;
  11841. // 生成 0 到 99 之间的随机整数
  11842. const randomNumber = Math.floor(Math.random() * 100);
  11843. // 如果随机数小于 10,补上前导零
  11844. const num =
  11845. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11846. // 随机生成两个大写字母
  11847. let letters = "";
  11848. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11849. for (let i = 0; i < 3; i++) {
  11850. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11851. }
  11852. // 随机生成两位数字和字母的组合
  11853. let mix = "";
  11854. let chars =
  11855. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11856. for (let i = 0; i < 3; i++) {
  11857. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11858. mix += char;
  11859. }
  11860. // 随机选择一种类型
  11861. let type = Math.floor(Math.random() * 3);
  11862. return num;
  11863. // 根据类型输出结果
  11864. switch (type) {
  11865. case 0:
  11866. console.log(num); // 输出两位数
  11867. return num;
  11868. case 1:
  11869. console.log(letters); // 输出两个大写字母
  11870. return letters;
  11871. case 2:
  11872. console.log(mix); // 输出两位数字和字母的组合
  11873. return mix;
  11874. }
  11875. },
  11876. getPaste() {
  11877. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11878. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11879. if (!iframe && !iframe2) {
  11880. return;
  11881. }
  11882. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11883. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11884. if (copyData && copyData.stageData && copyData.stageData.length) {
  11885. this.isPasteStage = true;
  11886. }
  11887. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  11888. this.isPasteStage = true;
  11889. }
  11890. if (copyData && copyData.selectData.length) {
  11891. this.isPasteChoice = true;
  11892. }
  11893. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  11894. this.isPasteTask = true;
  11895. }
  11896. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  11897. this.isPasteTask = true;
  11898. }
  11899. },
  11900. searchImage() {
  11901. var _this = this;
  11902. _this.imageList = [];
  11903. if (!_this.searchImageValue) {
  11904. _this.sysPicVisible2 = true;
  11905. return;
  11906. }
  11907. _this.imageloading = true;
  11908. _this.ajax
  11909. .post("https://gpt.cocorobo.cn/search_image", {
  11910. page: _this.ppage,
  11911. pagesize: 9,
  11912. query: _this.searchImageValue,
  11913. })
  11914. .then(function (response) {
  11915. // console.log(response.data.data);
  11916. var data = response.data.FunctionResponse.result;
  11917. for (var i = 0; i < data.length; i++) {
  11918. _this.imageList.push({ url: data[i].thumbnail });
  11919. }
  11920. _this.imageloading = false;
  11921. })
  11922. .catch(function (error) {
  11923. console.log(error);
  11924. });
  11925. _this.sysPicVisible2 = true;
  11926. },
  11927. changePicture() {
  11928. this.ppage++;
  11929. this.searchImage();
  11930. },
  11931. resetImage() {
  11932. this.ppage = 1;
  11933. this.searchImage();
  11934. },
  11935. jumpGj(i, j) {
  11936. if (i + 1 != this.isClickColor) {
  11937. this.isClickColor = i + 1;
  11938. }
  11939. var a = document.scrollingElement;
  11940. this.toolIndexType = `gj${i}${j}`;
  11941. let target = document.querySelector(`#gj${i}${j}`);
  11942. if (target) {
  11943. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11944. setTimeout(() => {
  11945. target.scrollIntoView(true);
  11946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11947. j
  11948. ].isFold3 = false;
  11949. setTimeout(() => {
  11950. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11951. }, 0);
  11952. }, 0);
  11953. }
  11954. },
  11955. jumpGj2(i, j, k) {
  11956. if (this.unitIndex != k) {
  11957. if (this.panUnitJson() == 2) {
  11958. return;
  11959. }
  11960. this.unitSet(k);
  11961. }
  11962. setTimeout(() => {
  11963. if (i + 1 != this.isClickColor) {
  11964. this.isClickColor = i + 1;
  11965. }
  11966. var a = document.scrollingElement;
  11967. this.toolIndexType = `gj${i}${j}${k}`;
  11968. let target = document.querySelector(`#gj${i}${j}`);
  11969. if (target) {
  11970. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11971. setTimeout(() => {
  11972. target.scrollIntoView(true);
  11973. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11974. j
  11975. ].isFold3 = false;
  11976. setTimeout(() => {
  11977. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11978. }, 0);
  11979. }, 0);
  11980. }
  11981. }, 0);
  11982. },
  11983. dragStart(val, i, j) {
  11984. console.log(this.taskCount);
  11985. this.dragType = "drag";
  11986. this.taskCount = j;
  11987. this.oldIndex = i;
  11988. this.oldData = val;
  11989. },
  11990. dragOver(i, j) {
  11991. this.typeIndex = "chapter-" + j + "-" + i;
  11992. this.newIndex = i;
  11993. },
  11994. dragEnd() {
  11995. if (this.dragType != "drag") {
  11996. this.typeIndex = "";
  11997. this.newIndex = "";
  11998. this.dragType = "";
  11999. this.isdrag = "";
  12000. return;
  12001. }
  12002. console.log(this.taskCount);
  12003. let newItems = [
  12004. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12005. .chapterData,
  12006. ];
  12007. // 删除老的节点
  12008. newItems.splice(this.oldIndex, 1);
  12009. // 在列表中目标位置增加新的节点
  12010. newItems.splice(this.newIndex, 0, this.oldData);
  12011. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12012. this.taskCount
  12013. ].chapterData = [...newItems];
  12014. this.typeIndex = "";
  12015. this.newIndex = "";
  12016. this.dragType = "";
  12017. this.isdrag = "";
  12018. this.$forceUpdate();
  12019. },
  12020. dragTaskStart(val, i, j) {
  12021. this.dragType = "task";
  12022. this.oldIndex = i;
  12023. this.oldData = val;
  12024. this.oldUnitIndex = j;
  12025. },
  12026. dragTaskOver(i, j) {
  12027. this.typeIndex = "task-" + i;
  12028. this.newIndex = i;
  12029. this.checkUnitIndex = j;
  12030. },
  12031. async dragTaskEnd() {
  12032. if (this.dragType != "task") {
  12033. this.newIndex = "";
  12034. this.dragType = "";
  12035. this.typeIndex = "";
  12036. this.checkUnitIndex = "";
  12037. this.isdrag = "";
  12038. return;
  12039. }
  12040. if (
  12041. this.newIndex == this.oldIndex &&
  12042. this.oldUnitIndex == this.checkUnitIndex
  12043. ) {
  12044. this.newIndex = "";
  12045. this.dragType = "";
  12046. this.typeIndex = "";
  12047. this.checkUnitIndex = "";
  12048. this.isdrag = "";
  12049. return;
  12050. }
  12051. let count1 = await this.getWorksCount(
  12052. 2,
  12053. this.checkUnitIndex,
  12054. this.newIndex,
  12055. 0
  12056. );
  12057. let count2 = await this.getWorksCount(
  12058. 2,
  12059. this.oldUnitIndex,
  12060. this.oldIndex,
  12061. 0
  12062. );
  12063. if (count1 > 0 || count2 > 0) {
  12064. this.$confirm(
  12065. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  12066. "提示",
  12067. {
  12068. confirmButtonText: "确定",
  12069. cancelButtonText: "取消",
  12070. type: "warning",
  12071. }
  12072. )
  12073. .then(() => {
  12074. if (this.oldUnitIndex != this.checkUnitIndex) {
  12075. let newItems = [
  12076. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12077. ];
  12078. // 删除老的节点
  12079. newItems.splice(this.oldIndex, 1);
  12080. // 在列表中目标位置增加新的节点
  12081. let newItems2 = [
  12082. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12083. ];
  12084. newItems2.splice(this.newIndex, 0, this.oldData);
  12085. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12086. ...newItems,
  12087. ];
  12088. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12089. ...newItems2,
  12090. ];
  12091. } else {
  12092. let newItems = [
  12093. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12094. ];
  12095. let chapterData = []
  12096. if (this.oldIndex == 0) {
  12097. chapterData = newItems[this.oldIndex].chapterData
  12098. newItems[this.oldIndex].chapterData = []
  12099. } else if (this.newIndex == 0) {
  12100. chapterData = newItems[this.newIndex].chapterData
  12101. newItems[this.oldIndex].chapterData = []
  12102. }
  12103. // 删除老的节点
  12104. newItems.splice(this.oldIndex, 1);
  12105. // 在列表中目标位置增加新的节点
  12106. newItems.splice(this.newIndex, 0, this.oldData);
  12107. if (this.oldIndex == 0 || this.newIndex == 0) {
  12108. newItems[0].chapterData = chapterData
  12109. }
  12110. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12111. ...newItems,
  12112. ];
  12113. }
  12114. this.typeIndex = "";
  12115. this.newIndex = "";
  12116. this.dragType = "";
  12117. this.checkUnitIndex = "";
  12118. this.isdrag = "";
  12119. this.updateWork();
  12120. this.$forceUpdate();
  12121. })
  12122. .catch(() => {
  12123. this.newIndex = "";
  12124. this.dragType = "";
  12125. this.typeIndex = "";
  12126. this.checkUnitIndex = "";
  12127. this.isdrag = "";
  12128. return;
  12129. });
  12130. } else {
  12131. if (this.oldUnitIndex != this.checkUnitIndex) {
  12132. let newItems = [
  12133. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12134. ];
  12135. // 删除老的节点
  12136. newItems.splice(this.oldIndex, 1);
  12137. // 在列表中目标位置增加新的节点
  12138. let newItems2 = [
  12139. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12140. ];
  12141. newItems2.splice(this.newIndex, 0, this.oldData);
  12142. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12143. ...newItems,
  12144. ];
  12145. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12146. ...newItems2,
  12147. ];
  12148. } else {
  12149. let newItems = [
  12150. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12151. ];
  12152. let chapterData = []
  12153. if (this.oldIndex == 0) {
  12154. chapterData = newItems[this.oldIndex].chapterData
  12155. newItems[this.oldIndex].chapterData = []
  12156. } else if (this.newIndex == 0) {
  12157. chapterData = newItems[this.newIndex].chapterData
  12158. newItems[this.oldIndex].chapterData = []
  12159. }
  12160. // 删除老的节点
  12161. newItems.splice(this.oldIndex, 1);
  12162. // 在列表中目标位置增加新的节点
  12163. newItems.splice(this.newIndex, 0, this.oldData);
  12164. if (this.oldIndex == 0 || this.newIndex == 0) {
  12165. newItems[0].chapterData = chapterData
  12166. }
  12167. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12168. ...newItems,
  12169. ];
  12170. }
  12171. this.typeIndex = "";
  12172. this.newIndex = "";
  12173. this.dragType = "";
  12174. this.checkUnitIndex = "";
  12175. this.isdrag = "";
  12176. this.updateWork();
  12177. this.$forceUpdate();
  12178. }
  12179. },
  12180. dragUnitStart(val, i) {
  12181. this.dragType = "Unit";
  12182. this.oldIndex = i;
  12183. this.oldData = val;
  12184. },
  12185. dragUnitOver(i) {
  12186. this.typeIndex = "Unit-" + i;
  12187. this.newIndex = i;
  12188. console.log(i, this.unitJson[i].toolOpen);
  12189. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  12190. this.unitJson[i].toolOpen = true;
  12191. this.updateWork();
  12192. this.$forceUpdate();
  12193. }
  12194. },
  12195. async dragUnitEnd() {
  12196. if (this.dragType != "Unit") {
  12197. this.newIndex = "";
  12198. this.dragType = "";
  12199. this.typeIndex = "";
  12200. this.isdrag = "";
  12201. return;
  12202. }
  12203. if (this.newIndex == this.oldIndex) {
  12204. this.newIndex = "";
  12205. this.dragType = "";
  12206. this.typeIndex = "";
  12207. this.isdrag = "";
  12208. return;
  12209. }
  12210. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  12211. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  12212. console.log(count1, count2);
  12213. if (count1 > 0 || count2 > 0) {
  12214. this.$confirm(
  12215. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12216. "提示",
  12217. {
  12218. confirmButtonText: "确定",
  12219. cancelButtonText: "取消",
  12220. type: "warning",
  12221. }
  12222. )
  12223. .then(() => {
  12224. let newItems = [...this.unitJson];
  12225. // 删除老的节点
  12226. newItems.splice(this.oldIndex, 1);
  12227. // 在列表中目标位置增加新的节点
  12228. newItems.splice(this.newIndex, 0, this.oldData);
  12229. this.unitJson = [...newItems];
  12230. this.typeIndex = "";
  12231. this.newIndex = "";
  12232. this.dragType = "";
  12233. this.isdrag = "";
  12234. this.updateWork();
  12235. this.$forceUpdate();
  12236. })
  12237. .catch(() => {
  12238. this.newIndex = "";
  12239. this.dragType = "";
  12240. this.typeIndex = "";
  12241. this.isdrag = "";
  12242. return;
  12243. });
  12244. } else {
  12245. let newItems = [...this.unitJson];
  12246. // 删除老的节点
  12247. newItems.splice(this.oldIndex, 1);
  12248. // 在列表中目标位置增加新的节点
  12249. newItems.splice(this.newIndex, 0, this.oldData);
  12250. this.unitJson = [...newItems];
  12251. this.typeIndex = "";
  12252. this.newIndex = "";
  12253. this.dragType = "";
  12254. this.isdrag = "";
  12255. this.updateWork();
  12256. this.$forceUpdate();
  12257. }
  12258. },
  12259. getWorksCount(type, stage, task, tool) {
  12260. return new Promise((resolve, reject) => {
  12261. let params = [
  12262. {
  12263. cid: this.cid,
  12264. stage: stage,
  12265. task: task,
  12266. tool: tool,
  12267. type: type,
  12268. },
  12269. ];
  12270. this.ajax
  12271. .post(this.$store.state.api + "getCourseWorkCount", params)
  12272. .then((res) => {
  12273. let count = res.data[0][0].count;
  12274. resolve(count);
  12275. })
  12276. .catch((err) => {
  12277. resolve(0);
  12278. this.$message.error("网络不佳");
  12279. console.error(err);
  12280. });
  12281. });
  12282. },
  12283. getTwoType(id) {
  12284. this.twoJson = [];
  12285. var array = this.CourseTypeJson1[
  12286. "3f8eed32-aba9-11ee-b534-005056b86db5"
  12287. ].filter((e) => {
  12288. return e.ppid == id;
  12289. });
  12290. this.twoJson = array;
  12291. this.$forceUpdate();
  12292. },
  12293. ctype() {
  12294. this.oneJson =
  12295. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  12296. },
  12297. selectAllType1() {
  12298. this.CourseType1 = [];
  12299. this.CourseTypeJson1 = {};
  12300. this.courseTypeId1 = {};
  12301. this.$forceUpdate();
  12302. let params = {
  12303. org: this.org && this.org != "" ? this.org : "",
  12304. oid: this.oid && this.oid != "" ? this.oid : "",
  12305. };
  12306. this.ajax
  12307. .get(this.$store.state.api + "selectAllEvaType", params)
  12308. .then((res) => {
  12309. this.CourseType1 = res.data;
  12310. for (var i = 0; i < res.data[0].length; i++) {
  12311. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  12312. res.data[0][i].name = "一级分类";
  12313. } else if (
  12314. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  12315. ) {
  12316. res.data[0][i].name = "二级分类";
  12317. }
  12318. if (!this.cid) {
  12319. this.courseTypeId1[res.data[0][i].id] = [];
  12320. }
  12321. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  12322. this.CourseTypeJson1[res.data[0][i].id] = [];
  12323. }
  12324. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  12325. for (var j = 0; j < res.data[1].length; j++) {
  12326. if (res.data[0][i].id == res.data[1][j].pid) {
  12327. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12328. }
  12329. }
  12330. // } else {
  12331. if (res.data[2].length > 0) {
  12332. for (var j = 0; j < res.data[2].length; j++) {
  12333. if (res.data[0][i].id == res.data[2][j].pid) {
  12334. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12335. }
  12336. }
  12337. }
  12338. if (res.data[3].length > 0) {
  12339. for (var j = 0; j < res.data[3].length; j++) {
  12340. if (res.data[0][i].id == res.data[3][j].pid) {
  12341. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12342. }
  12343. }
  12344. }
  12345. // }
  12346. }
  12347. this.ctype();
  12348. this.cetBoxDialog = true;
  12349. })
  12350. .catch((err) => {
  12351. console.error(err);
  12352. });
  12353. },
  12354. setAiJson(pan,string){
  12355. this.aiJson[pan] = string
  12356. this.$forceUpdate();
  12357. },
  12358. openAiDialog(clickType, type, callback, index, tindex) {
  12359. this.clickType = clickType
  12360. let sub = []
  12361. if (this.courseTypeId.length) {
  12362. for (var i = 0; i < this.courseTypeId.length; i++) {
  12363. let _sid = this.courseTypeId[i]
  12364. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12365. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12366. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12367. }
  12368. }
  12369. }
  12370. }
  12371. if (type == "aiDetail") {
  12372. if (this.ttextLoading) {
  12373. this.$message({
  12374. message: "请回答完毕后再次发送",
  12375. type: "warning"
  12376. });
  12377. return;
  12378. }
  12379. this.aitype = "aiDetail"
  12380. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程。`
  12381. this.aiText = this.aiJson.aiDetail
  12382. } else if (type == "aiOutline") {
  12383. this.aitype = "aiOutline"
  12384. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`
  12385. this.aiText = this.aiJson.aiOutline
  12386. } else if (type == "aiTask") {
  12387. this.aitype = "aiTask"
  12388. var _text = ""
  12389. for (var i = 0; i < this.teacherText.length; i++) {
  12390. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12391. }
  12392. // this.aiText = `请根据${_text}。`
  12393. this.aiText = this.aiJson.aiTask
  12394. this.aiCallBack = callback
  12395. } else if (type == "aiDetail1") {
  12396. if (this.ttaskDetailLoading.indexOf('task-' + index) !== -1) {
  12397. this.$message({
  12398. message: "请回答完毕后再次发送",
  12399. type: "warning"
  12400. });
  12401. return;
  12402. }
  12403. this.aitype = "aiDetail1"
  12404. // this.aiText = `请帮我优化下列文字内容,更具象化更详细,输出文本格式就行不要带有其他格式\n${callback}`
  12405. // this.aiText = `请根据${callback},重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准 \n`
  12406. this.aiText = this.aiJson.aiDetail1
  12407. this.aiCallBack = callback
  12408. this.aiIndex = index
  12409. } else if (type == "aiDetail2") {
  12410. if (this.ttaskDetailLoading2.indexOf('task-' + index) !== -1) {
  12411. this.$message({
  12412. message: "请回答完毕后再次发送",
  12413. type: "warning"
  12414. });
  12415. return;
  12416. }
  12417. this.aitype = "aiDetail2"
  12418. // this.aiText = `请你在考虑到整个课程的情况下,优化该任务描述和任务名:${callback.task}:${callback.taskDetail}`
  12419. this.aiText = this.aiJson.aiDetail2
  12420. this.aiCallBack = callback
  12421. this.aiIndex = index
  12422. } else if (type == "aiDetail3") {
  12423. if (this.ttaskDetailLoading3.indexOf('task-' + index + tindex) !== -1) {
  12424. this.$message({
  12425. message: "请回答完毕后再次发送",
  12426. type: "warning"
  12427. });
  12428. return;
  12429. }
  12430. this.aitype = "aiDetail3"
  12431. this.aiText = this.aiJson.aiDetail3
  12432. this.aiIndex = index + '-' + tindex
  12433. } else if (type == "aiDetail4") {
  12434. var _text = ""
  12435. for (var i = 0; i < callback.length; i++) {
  12436. _text += `评价维度:${callback[i].value} 维度描述:${callback[i].detail} `
  12437. }
  12438. this.aitype = "aiDetail4"
  12439. this.aiText = this.aiJson.aiDetail4
  12440. this.aiIndex = index
  12441. } else if (type == "aiTeacher") {
  12442. this.aitype = "aiTeacher"
  12443. var _text = ""
  12444. for (var i = 0; i < this.dArray.length; i++) {
  12445. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12446. }
  12447. // this.aiText = `请根据${_text}为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12448. this.aiText = this.aiJson.aiTeacher
  12449. this.aiCallBack = callback
  12450. } else if (type == "teacherDetail") {
  12451. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  12452. this.$message({
  12453. message: "请回答完毕后再次发送",
  12454. type: "warning"
  12455. });
  12456. return;
  12457. }
  12458. this.aitype = "teacherDetail"
  12459. // this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12460. this.aiText = this.aiJson.teacherDetail
  12461. this.aiCallBack = callback
  12462. this.aiIndex = index
  12463. }
  12464. this.dialogVisibleAiD = true
  12465. },
  12466. aiConfirm(msg) {
  12467. let sub = []
  12468. if (this.courseTypeId.length) {
  12469. for (var i = 0; i < this.courseTypeId.length; i++) {
  12470. let _sid = this.courseTypeId[i]
  12471. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12472. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12473. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12474. }
  12475. }
  12476. }
  12477. }
  12478. let url = []
  12479. if (this.infoData.length) {
  12480. for (var i = 0; i < this.infoData.length; i++) {
  12481. url.push(this.infoData[i].url)
  12482. }
  12483. }
  12484. if (this.aitype == "aiDetail") {
  12485. this.detailYou(msg)
  12486. } else if (this.aitype == "aiOutline") {
  12487. this.loading = true
  12488. let message = `NOTICE
  12489. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  12490. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12491. Instruction: Based on the context, follow "Format example", write content.
  12492. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12493. User: Please generate a recipe for chocolate chip cookies in JSON format.
  12494. # Context
  12495. ## 要求
  12496. ${msg} 以及##补充参考资料和##参考资料,
  12497. 然后根据Format example的要求返回要以数组的格式
  12498. ## 参考资料
  12499. 课程名字:${this.courseName}
  12500. 课程简要描述:${this.courseText ? this.courseText : '暂无'}
  12501. 学科:${sub.length ? sub.join(",") : "无"}
  12502. 班级:${this.getListClassC(this.checkboxList2)}
  12503. ## 补充参考资料
  12504. 补充资料:${url.join(",")}
  12505. 补充描述:${this.courseText2}
  12506. # Format example
  12507. [{"task": "任务名称1","detail": "任务设计和评价标准"},{"task": "任务名称2","detail": "任务设计和评价标准"}]
  12508. Instruction: Based on the context, follow "Format example", write content.
  12509. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12510. User: Please generate a recipe for chocolate chip cookies in JSON format.`
  12511. this.aiGet2(message, () => {
  12512. this.loading = false
  12513. this.isOutline = true
  12514. })
  12515. } else if (this.aitype == "aiTask") {
  12516. var _text = ""
  12517. for (var i = 0; i < this.teacherText.length; i++) {
  12518. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12519. }
  12520. let message = `NOTICE
  12521. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  12522. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12523. Instruction: Based on the context, follow "Format example", write content.
  12524. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12525. User: Please generate a recipe for chocolate chip cookies in JSON format.
  12526. # Context
  12527. ## 要求
  12528. ${msg} 以及补充参考资料和教学任务教案和输出格式和内容要求参考格式与要求
  12529. ## 教学任务教案
  12530. ${_text}
  12531. ## 格式与要求
  12532. 任务名:
  12533. 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。
  12534. 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  12535. 平台工具:
  12536. 工具名:从工具列表中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交]
  12537. 工具指引:以友好,明确的口吻告诉学生该如何使用该工具
  12538. ## 补充参考资料
  12539. 补充资料:${url.join(",")}
  12540. 补充描述:${this.courseText2}
  12541. # Format example
  12542. [{"detail":"该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具","detail":"工具描述"}]}]
  12543. Instruction: Based on the context, follow "Format example", write content.
  12544. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12545. User: Please generate a recipe for chocolate chip cookies in JSON format.`
  12546. this.loading = true
  12547. this.aiGet3(message, this.aiCallBack)
  12548. } else if (this.aitype == "aiDetail1") {
  12549. this.aiDetail(msg, this.aiIndex)
  12550. } else if (this.aitype == "aiDetail2") {
  12551. this.aiDetail2(msg, this.aiIndex)
  12552. } else if (this.aitype == "aiDetail3") {
  12553. let _index = this.aiIndex.split('-')
  12554. this.aiDetail3(msg, _index[0], _index[1])
  12555. } else if (this.aitype == "aiDetail4") {
  12556. this.aiDetail4(msg, this.aiIndex)
  12557. } else if (this.aitype == "teacherDetail") {
  12558. this.aiDetail5(msg, this.aiIndex)
  12559. } else if (this.aitype == "aiTeacher") {
  12560. this.loading = true
  12561. var _text = ""
  12562. for (var i = 0; i < this.dArray.length; i++) {
  12563. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12564. }
  12565. let message = `NOTICE
  12566. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  12567. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12568. Instruction: Based on the context, follow "Format example", write content.
  12569. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12570. User: Please generate a recipe for chocolate chip cookies in JSON format.
  12571. # Context
  12572. ## 要求
  12573. ${msg} 以及##补充参考资料和##任务大纲, 然后根据Format example的要求返回要以数组的格式
  12574. ## 任务大纲
  12575. ${_text}
  12576. ## 补充参考资料
  12577. 补充资料:${url.join(",")}
  12578. 补充描述:${this.courseText2}
  12579. # Format example
  12580. [{"task": "任务名称1","detail": "教案输出为文本格式就行"},{"task": "任务名称2","detail": "教案输出为文本格式就行"}]
  12581. Instruction: Based on the context, follow "Format example", write content.
  12582. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12583. User: Please generate a recipe for chocolate chip cookies in JSON format.`
  12584. this.aiGet4(message, () => {
  12585. this.loading = false
  12586. this.isOutline2 = true
  12587. })
  12588. }
  12589. this.setAiJson(this.aitype, msg)
  12590. },
  12591. detailYou(message) {
  12592. this.textLoading = true
  12593. this.ttextLoading = true
  12594. let sub = []
  12595. if (this.courseTypeId.length) {
  12596. for (var i = 0; i < this.courseTypeId.length; i++) {
  12597. let _sid = this.courseTypeId[i]
  12598. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12599. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12600. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12601. }
  12602. }
  12603. }
  12604. }
  12605. let url = []
  12606. if (this.infoData.length) {
  12607. for (var i = 0; i < this.infoData.length; i++) {
  12608. url.push(this.infoData[i].url)
  12609. }
  12610. }
  12611. let msg = `
  12612. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12613. --------
  12614. ## 参考资料
  12615. 课程名字:${this.courseName}
  12616. 课程简要描述:${this.courseText ? this.courseText : '暂无'}
  12617. 学科:${sub.length ? sub.join(",") : "无"}
  12618. 班级:${this.getListClassC(this.checkboxList2)}
  12619. --------
  12620. ## 补充参考资料
  12621. 补充资料:${url.join(",")}
  12622. 补充描述:${this.courseText2}
  12623. --------
  12624. ## 要求
  12625. ${message} 以及##补充参考资料和##参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
  12626. --------
  12627. ## Format example
  12628. -课程简要描述:
  12629. -驱动性问题:**1个**驱动整个项目的问题
  12630. -最终作品:对应解决驱动性问题的作品,可个人可团队`
  12631. this.aiGet(msg)
  12632. },
  12633. setUnitJson() {
  12634. this.unitJson[0].chapterInfo[0].taskJson[0] = { "task": "观察热在水中的传递", "taskDetail": "同学们,今天我们将通过一个有趣的实验来探究热是如何在水中传递的。你将需要加热水并观察温度是如何分布的。请准备好实验器材,并按照安全指南进行操作。在实验过程中,请注意观察热水和冷水之间的相互作用,以及水温是如何随时间和空间变化的。你将需要记录你的观察结果,并思考热是如何从一个地方传递到另一个地方的。", "chapterData": [], "toolText": "", "toolChoose": [{ "tool": [1], "toolDetail": "使用电子白板工具来绘制你的实验设置和观察到的热传递过程。你可以使用电子白板的绘图功能来创建一个温度分布图,展示热水和冷水相遇时的情况。同时,你可以用它来记录实验步骤和关键观察点,以便于你和同学们进行讨论和分享。", "toolType": 1, "askCount": 1, "askTitle": "", "askJson": [{ "askstitle": "", "askItem": 1, "checkList": [] }], "isFold3": false }], "isShowTools": false, "askCount": 1, "isFold": 0, "askTitle": "", "askJson": [{ "askstitle": "", "askItem": 1, "checkList": [] }], "checkJson": [{ "checkCount": [], "checkPerent": [] }], "homeworkList": [], "toolOpen": true, "eList": [{ "value": "实验观察和记录", "detail": "学生应该能够准确地记录实验过程中的观察结果,包括水温变化和热传递的现象。", "score": 5 }, { "value": "数据分析和解释", "detail": "学生应该能够分析实验数据,解释热在水中的传递方式,并能够用自己的话描述热对流的原理。", "score": 5 }, { "value": "实验报告撰写", "detail": "学生应该能够撰写一份清晰的实验报告,包括实验目的、方法、结果和结论,以及对实验过程的反思。", "score": 5 }] }
  12635. this.$forceUpdate()
  12636. },
  12637. aiGet(messages) {
  12638. let _this = this
  12639. let _uuid = uuidv4();
  12640. // let params = JSON.stringify({
  12641. // // "model": "Chat",
  12642. // model: 'gpt-3.5-turbo',
  12643. // temperature: 0,
  12644. // max_tokens: 4096,
  12645. // top_p: 1,
  12646. // frequency_penalty: 0,
  12647. // presence_penalty: 0,
  12648. // messages: [{
  12649. // content: messages,
  12650. // role: 'user'
  12651. // }],
  12652. // uid: _uuid,
  12653. // mind_map_question: "",
  12654. // })
  12655. let params = JSON.stringify({
  12656. message: {
  12657. anthropic_version: "bedrock-2023-05-31",
  12658. max_tokens: 4096,
  12659. temperature: 0,
  12660. top_p: 1,
  12661. messages: [{
  12662. "role": "user",
  12663. "content": messages
  12664. }] ,
  12665. },
  12666. uid: _uuid,
  12667. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  12668. });
  12669. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12670. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  12671. console.log(response);
  12672. // let data = response.data.FunctionResponse
  12673. // if (data.choices && data.choices.length && data.choices[0].message) {
  12674. // _this.courseText = data.choices[0].message.content
  12675. // }
  12676. if (response.data.FunctionResponse.result == "发送成功") {
  12677. } else {
  12678. this.$message.warning(response.data.FunctionResponse.result);
  12679. }
  12680. }).catch(function (error) {
  12681. _this.textLoading = false
  12682. _this.ttextLoading = false
  12683. console.log(error);
  12684. });
  12685. _this.aiGetgetAiContent(_uuid)
  12686. },
  12687. aiGetgetAiContent(_uid) {
  12688. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12689. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12690. let _allText = "";
  12691. let _mdText = "";
  12692. _source.onmessage = _e => {
  12693. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12694. //对话已经完成
  12695. _mdText = _mdText.replace("_", "");
  12696. _source.close();
  12697. this.courseText = _mdText;
  12698. this.textLoading = false
  12699. this.ttextLoading = false
  12700. return;
  12701. } else {
  12702. //对话还在继续
  12703. let _text = "";
  12704. _text = _e.data.replaceAll("'", "");
  12705. if (_allText == "") {
  12706. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12707. } else {
  12708. _allText += _text;
  12709. }
  12710. _mdText = _allText + "_";
  12711. _mdText = _mdText.replace(/\\n/g, "\n");
  12712. _mdText = _mdText.replace(/\\/g, "");
  12713. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12714. //转化返回的回复流数据
  12715. this.courseText = _mdText;
  12716. this.textLoading = false
  12717. // 处理流数据
  12718. }
  12719. };
  12720. },
  12721. aiGet2(messages, callback) {
  12722. let _this = this
  12723. let params = JSON.stringify({
  12724. // "model": "Chat",
  12725. model: 'gpt-3.5-turbo',
  12726. temperature: 0,
  12727. max_tokens: 4096,
  12728. top_p: 1,
  12729. frequency_penalty: 0,
  12730. presence_penalty: 0,
  12731. messages: [{
  12732. content: messages,
  12733. role: 'user'
  12734. }],
  12735. stream: false,
  12736. uid: this.userid,
  12737. mind_map_question: "",
  12738. })
  12739. // let params = JSON.stringify({
  12740. // message: {
  12741. // anthropic_version: "bedrock-2023-05-31",
  12742. // max_tokens: 4096,
  12743. // temperature: 0,
  12744. // top_p: 1,
  12745. // messages: [{
  12746. // content: messages,
  12747. // role: 'user'
  12748. // }], //
  12749. // },
  12750. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  12751. // });
  12752. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12753. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  12754. console.log(response);
  12755. let data = response.data.FunctionResponse
  12756. if (data.choices && data.choices.length && data.choices[0].message) {
  12757. console.log(data.choices[0].message.content);
  12758. let dArray = JSON.parse(data.choices[0].message.content)
  12759. _this.dArray = dArray
  12760. _this.unitJson[0].chapterInfo[0].taskJson = []
  12761. for (var i = 0; i < dArray.length; i++) {
  12762. let _task = dArray[i]
  12763. _this.unitJson[0].chapterInfo[0].taskJson.push({
  12764. task: _task.task,
  12765. taskDetail: "",
  12766. taskDetail2: _task.detail,
  12767. taskDetail3: "",
  12768. chapterData: [],
  12769. toolText: "",
  12770. toolChoose: [
  12771. {
  12772. tool: [],
  12773. toolDetail: "",
  12774. toolType: 0,
  12775. askCount: 1,
  12776. askTitle: "",
  12777. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12778. },
  12779. ],
  12780. isShowTools: false,
  12781. askCount: 1,
  12782. isFold: 1,
  12783. askTitle: "",
  12784. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12785. checkJson: [{ checkCount: [], checkPerent: [] }],
  12786. homeworkList: [],
  12787. })
  12788. }
  12789. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12790. _this.$forceUpdate();
  12791. }
  12792. // if (data.result) {
  12793. // console.log(data.result);
  12794. // let dArray = JSON.parse(data.result)
  12795. // _this.dArray = dArray
  12796. // _this.unitJson[0].chapterInfo[0].taskJson = []
  12797. // for (var i = 0; i < dArray.length; i++) {
  12798. // let _task = dArray[i]
  12799. // _this.unitJson[0].chapterInfo[0].taskJson.push({
  12800. // task: _task.task,
  12801. // taskDetail: "",
  12802. // taskDetail2: _task.detail,
  12803. // taskDetail3: "",
  12804. // chapterData: [],
  12805. // toolText: "",
  12806. // toolChoose: [
  12807. // {
  12808. // tool: [],
  12809. // toolDetail: "",
  12810. // toolType: 0,
  12811. // askCount: 1,
  12812. // askTitle: "",
  12813. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12814. // },
  12815. // ],
  12816. // isShowTools: false,
  12817. // askCount: 1,
  12818. // isFold: 1,
  12819. // askTitle: "",
  12820. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12821. // checkJson: [{ checkCount: [], checkPerent: [] }],
  12822. // homeworkList: [],
  12823. // })
  12824. // }
  12825. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12826. // _this.$forceUpdate();
  12827. // }
  12828. callback ? callback() : ''
  12829. }).catch(function (error) {
  12830. _this.loading = false
  12831. console.log(error);
  12832. });
  12833. },
  12834. aiGet3(messages, callback) {
  12835. let _this = this
  12836. let params = JSON.stringify({
  12837. // "model": "Chat",
  12838. model: 'gpt-3.5-turbo',
  12839. temperature: 0,
  12840. max_tokens: 4096,
  12841. top_p: 1,
  12842. frequency_penalty: 0,
  12843. presence_penalty: 0,
  12844. messages: [{
  12845. content: messages,
  12846. role: 'user'
  12847. }],
  12848. stream: false,
  12849. uid: this.userid,
  12850. mind_map_question: "",
  12851. })
  12852. // let params = JSON.stringify({
  12853. // message: {
  12854. // anthropic_version: "bedrock-2023-05-31",
  12855. // max_tokens: 4096,
  12856. // temperature: 0,
  12857. // top_p: 1,
  12858. // messages: [{
  12859. // content: messages,
  12860. // role: 'user'
  12861. // }], //
  12862. // },
  12863. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  12864. // });
  12865. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12866. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  12867. console.log(response);
  12868. let data = response.data.FunctionResponse
  12869. if (data.choices && data.choices.length && data.choices[0].message) {
  12870. console.log(data.choices[0].message.content);
  12871. let tArray = JSON.parse(data.choices[0].message.content)
  12872. // _this.unitJson[0].chapterInfo[0].task = []
  12873. let toolsJson = {
  12874. "电子白板": { tool: 1, type: 1 },
  12875. "文档": { tool: 52, type: 1 },
  12876. "思维导图": { tool: 3, type: 1 },
  12877. "表格": { tool: 48, type: 1 },
  12878. "作业提交": { tool: 16, type: 2 }
  12879. }
  12880. for (var i = 0; i < tArray.length; i++) {
  12881. let _task = tArray[i]
  12882. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  12883. _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  12884. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  12885. if (_task.toolChoose.length) {
  12886. for (var j = 0; j < _task.toolChoose.length; j++) {
  12887. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12888. {
  12889. tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  12890. toolDetail: _task.toolChoose[j].detail,
  12891. toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  12892. askCount: 1,
  12893. askTitle: "",
  12894. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12895. },
  12896. )
  12897. }
  12898. } else {
  12899. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12900. {
  12901. tool: [],
  12902. toolDetail: "",
  12903. toolType: 0,
  12904. askCount: 1,
  12905. askTitle: "",
  12906. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12907. },
  12908. )
  12909. }
  12910. }
  12911. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12912. _this.$forceUpdate();
  12913. }
  12914. // if (data.result) {
  12915. // console.log(data.result);
  12916. // let tArray = JSON.parse(data.result)
  12917. // // _this.unitJson[0].chapterInfo[0].task = []
  12918. // let toolsJson = {
  12919. // "电子白板": { tool: 1, type: 1 },
  12920. // "文档": { tool: 52, type: 1 },
  12921. // "思维导图": { tool: 3, type: 1 },
  12922. // "表格": { tool: 48, type: 1 },
  12923. // "作业提交": { tool: 16, type: 2 }
  12924. // }
  12925. // for (var i = 0; i < tArray.length; i++) {
  12926. // let _task = tArray[i]
  12927. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  12928. // _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  12929. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  12930. // if (_task.toolChoose.length) {
  12931. // for (var j = 0; j < _task.toolChoose.length; j++) {
  12932. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12933. // {
  12934. // tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  12935. // toolDetail: _task.toolChoose[j].detail,
  12936. // toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  12937. // askCount: 1,
  12938. // askTitle: "",
  12939. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12940. // },
  12941. // )
  12942. // }
  12943. // } else {
  12944. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12945. // {
  12946. // tool: [],
  12947. // toolDetail: "",
  12948. // toolType: 0,
  12949. // askCount: 1,
  12950. // askTitle: "",
  12951. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12952. // },
  12953. // )
  12954. // }
  12955. // }
  12956. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12957. // _this.$forceUpdate();
  12958. // }
  12959. callback ? callback() : ''
  12960. }).catch(function (error) {
  12961. _this.loading = false
  12962. console.log(error);
  12963. });
  12964. },
  12965. aiGet4(messages, callback, clickType) {
  12966. let _this = this
  12967. let params = JSON.stringify({
  12968. // "model": "Chat",
  12969. model: 'gpt-3.5-turbo',
  12970. temperature: 0,
  12971. max_tokens: 4096,
  12972. top_p: 1,
  12973. frequency_penalty: 0,
  12974. presence_penalty: 0,
  12975. messages: [{
  12976. content: messages,
  12977. role: 'user'
  12978. }],
  12979. stream: false,
  12980. uid: this.userid,
  12981. mind_map_question: "",
  12982. })
  12983. // let params = JSON.stringify({
  12984. // message: {
  12985. // anthropic_version: "bedrock-2023-05-31",
  12986. // max_tokens: 4096,
  12987. // temperature: 0,
  12988. // top_p: 1,
  12989. // messages: [{
  12990. // content: messages,
  12991. // role: 'user'
  12992. // }], //
  12993. // },
  12994. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  12995. // });
  12996. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12997. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  12998. console.log(response);
  12999. let data = response.data.FunctionResponse
  13000. if (data.choices && data.choices.length && data.choices[0].message) {
  13001. console.log(data.choices[0].message.content);
  13002. let dArray = JSON.parse(data.choices[0].message.content)
  13003. _this.teacherText = JSON.parse(data.choices[0].message.content)
  13004. for (var i = 0; i < dArray.length; i++) {
  13005. let _task = dArray[i]
  13006. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  13007. }
  13008. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13009. _this.$forceUpdate();
  13010. }
  13011. // if (data.result) {
  13012. // console.log(data.result);
  13013. // let dArray = JSON.parse(data.result)
  13014. // _this.teacherText = JSON.parse(data.result)
  13015. // for (var i = 0; i < dArray.length; i++) {
  13016. // let _task = dArray[i]
  13017. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  13018. // }
  13019. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13020. // _this.$forceUpdate();
  13021. // }
  13022. callback ? callback() : ''
  13023. _this.loading = false
  13024. }).catch(function (error) {
  13025. _this.loading = false
  13026. console.log(error);
  13027. });
  13028. },
  13029. aiDetail(msg, index) {
  13030. let _this = this
  13031. const _tindex = 'task-' + index
  13032. const _tindex2 = index
  13033. let url = []
  13034. if (this.infoData.length) {
  13035. for (var i = 0; i < this.infoData.length; i++) {
  13036. url.push(this.infoData[i].url)
  13037. }
  13038. }
  13039. let messages = `
  13040. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13041. --------
  13042. ## 要求
  13043. ${msg} 及#补充参考资料和#教学任务描述 以文本格式输出任务设计和评价标准
  13044. --------
  13045. ## 教学任务描述
  13046. ${_this.aiCallback}
  13047. --------
  13048. ## 补充参考资料
  13049. - 补充资料:${url.join(",")}
  13050. - 补充描述:${_this.courseText2}
  13051. `
  13052. _this.taskDetailLoading.push(_tindex)
  13053. _this.ttaskDetailLoading.push(_tindex)
  13054. let _uuid = uuidv4();
  13055. // let params = JSON.stringify({
  13056. // // "model": "Chat",
  13057. // model: 'gpt-3.5-turbo',
  13058. // temperature: 0,
  13059. // max_tokens: 4096,
  13060. // top_p: 1,
  13061. // frequency_penalty: 0,
  13062. // presence_penalty: 0,
  13063. // messages: [{
  13064. // content: messages,
  13065. // role: 'user'
  13066. // }],
  13067. // uid: _uuid,
  13068. // mind_map_question: "",
  13069. // })
  13070. let params = JSON.stringify({
  13071. message: {
  13072. anthropic_version: "bedrock-2023-05-31",
  13073. max_tokens: 4096,
  13074. temperature: 0,
  13075. top_p: 1,
  13076. messages: [{
  13077. "role": "user",
  13078. "content": messages
  13079. }] ,
  13080. },
  13081. uid: _uuid,
  13082. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13083. });
  13084. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13085. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13086. console.log(response);
  13087. // let data = response.data.FunctionResponse
  13088. // if (data.choices && data.choices.length && data.choices[0].message) {
  13089. // console.log(data.choices[0].message.content);
  13090. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = data.choices[0].message.content
  13091. // _this.$forceUpdate()
  13092. // }
  13093. if (response.data.FunctionResponse.result == "发送成功") {
  13094. } else {
  13095. this.$message.warning(response.data.FunctionResponse.result);
  13096. }
  13097. // _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13098. }).catch(function (error) {
  13099. _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13100. _this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
  13101. console.log(error);
  13102. });
  13103. _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
  13104. },
  13105. aiDetailgetAiContent(_uid, loading, _tindex2) {
  13106. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13107. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13108. let _allText = "";
  13109. let _mdText = "";
  13110. _source.onmessage = _e => {
  13111. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13112. //对话已经完成
  13113. _mdText = _mdText.replace("_", "");
  13114. _source.close();
  13115. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  13116. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  13117. this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
  13118. return;
  13119. } else {
  13120. //对话还在继续
  13121. let _text = "";
  13122. _text = _e.data.replaceAll("'", "");
  13123. if (_allText == "") {
  13124. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13125. } else {
  13126. _allText += _text;
  13127. }
  13128. _mdText = _allText + "_";
  13129. _mdText = _mdText.replace(/\\n/g, "\n");
  13130. _mdText = _mdText.replace(/\\/g, "");
  13131. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13132. //转化返回的回复流数据
  13133. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  13134. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  13135. // 处理流数据
  13136. }
  13137. };
  13138. },
  13139. aiDetail2(msg, index) {
  13140. let _this = this
  13141. const _tindex = 'task-' + index
  13142. const _tindex2 = index
  13143. let messages = `
  13144. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13145. --------
  13146. ## 要求
  13147. ${msg}
  13148. --------
  13149. ## 优化信息
  13150. 任务名字: ${_this.aiCallback.task}
  13151. 任务描述: ${_this.aiCallback.taskDetail}
  13152. # 格式与要求
  13153. - 任务名:
  13154. - 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
  13155. _this.taskDetailLoading2.push(_tindex)
  13156. _this.ttaskDetailLoading2.push(_tindex)
  13157. let _uuid = uuidv4();
  13158. // let params = JSON.stringify({
  13159. // // "model": "Chat",
  13160. // model: 'gpt-3.5-turbo',
  13161. // temperature: 0,
  13162. // max_tokens: 4096,
  13163. // top_p: 1,
  13164. // frequency_penalty: 0,
  13165. // presence_penalty: 0,
  13166. // messages: [{
  13167. // content: messages,
  13168. // role: 'user'
  13169. // }],
  13170. // uid: _uuid,
  13171. // mind_map_question: "",
  13172. // })
  13173. let params = JSON.stringify({
  13174. message: {
  13175. anthropic_version: "bedrock-2023-05-31",
  13176. max_tokens: 4096,
  13177. temperature: 0,
  13178. top_p: 1,
  13179. messages: [{
  13180. "role": "user",
  13181. "content": messages
  13182. }] ,
  13183. },
  13184. uid: _uuid,
  13185. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13186. });
  13187. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13188. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13189. console.log(response);
  13190. // let data = response.data.FunctionResponse
  13191. // if (data.choices && data.choices.length && data.choices[0].message) {
  13192. // console.log(data.choices[0].message.content);
  13193. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  13194. // _this.$forceUpdate()
  13195. // }
  13196. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13197. if (response.data.FunctionResponse.result == "发送成功") {
  13198. } else {
  13199. this.$message.warning(response.data.FunctionResponse.result);
  13200. }
  13201. }).catch(function (error) {
  13202. _this.taskDetailLoading2.splice(_this.taskDetailLoading2.indexOf(_tindex), 1)
  13203. _this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
  13204. console.log(error);
  13205. });
  13206. _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
  13207. },
  13208. aiDetail2getAiContent(_uid, loading, _tindex2) {
  13209. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13210. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13211. let _allText = "";
  13212. let _mdText = "";
  13213. _source.onmessage = _e => {
  13214. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13215. //对话已经完成
  13216. _mdText = _mdText.replace("_", "");
  13217. _source.close();
  13218. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  13219. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  13220. this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
  13221. return;
  13222. } else {
  13223. //对话还在继续
  13224. let _text = "";
  13225. _text = _e.data.replaceAll("'", "");
  13226. if (_allText == "") {
  13227. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13228. } else {
  13229. _allText += _text;
  13230. }
  13231. _mdText = _allText + "_";
  13232. _mdText = _mdText.replace(/\\n/g, "\n");
  13233. _mdText = _mdText.replace(/\\/g, "");
  13234. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13235. //转化返回的回复流数据
  13236. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  13237. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  13238. // 处理流数据
  13239. }
  13240. };
  13241. },
  13242. aiDetail3(msg, index, tindex) {
  13243. let _this = this
  13244. const _tindex = 'task-' + index + tindex
  13245. const _tindex2 = index
  13246. const _tindex3 = tindex
  13247. // **重点考虑该任务及工具名和工具内容的情况下*
  13248. let messages = `
  13249. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13250. --------
  13251. ## 参考内容
  13252. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  13253. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  13254. 工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
  13255. 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
  13256. --------
  13257. ## 要求
  13258. ${msg} 输出格式和内容要求参考#格式与要求
  13259. # 格式与要求
  13260. -工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
  13261. _this.taskDetailLoading3.push(_tindex)
  13262. _this.ttaskDetailLoading3.push(_tindex)
  13263. let _uuid = uuidv4();
  13264. // let params = JSON.stringify({
  13265. // // "model": "Chat",
  13266. // model: 'gpt-3.5-turbo',
  13267. // temperature: 0,
  13268. // max_tokens: 4096,
  13269. // top_p: 1,
  13270. // frequency_penalty: 0,
  13271. // presence_penalty: 0,
  13272. // messages: [{
  13273. // content: messages,
  13274. // role: 'user'
  13275. // }],
  13276. // uid: _uuid,
  13277. // mind_map_question: "",
  13278. // })
  13279. let params = JSON.stringify({
  13280. message: {
  13281. anthropic_version: "bedrock-2023-05-31",
  13282. max_tokens: 4096,
  13283. temperature: 0,
  13284. top_p: 1,
  13285. messages: [{
  13286. "role": "user",
  13287. "content": messages
  13288. }] ,
  13289. },
  13290. uid: _uuid,
  13291. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13292. });
  13293. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13294. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13295. console.log(response);
  13296. let data = response.data.FunctionResponse
  13297. // if (data.choices && data.choices.length && data.choices[0].message) {
  13298. // console.log(data.choices[0].message.content);
  13299. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = data.choices[0].message.content
  13300. // _this.$forceUpdate()
  13301. // }
  13302. // _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  13303. if (response.data.FunctionResponse.result == "发送成功") {
  13304. } else {
  13305. this.$message.warning(response.data.FunctionResponse.result);
  13306. }
  13307. }).catch(function (error) {
  13308. _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  13309. _this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
  13310. console.log(error);
  13311. });
  13312. _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
  13313. },
  13314. aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
  13315. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13316. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13317. let _allText = "";
  13318. let _mdText = "";
  13319. _source.onmessage = _e => {
  13320. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13321. //对话已经完成
  13322. _mdText = _mdText.replace("_", "");
  13323. _source.close();
  13324. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13325. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13326. this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
  13327. return;
  13328. } else {
  13329. //对话还在继续
  13330. let _text = "";
  13331. _text = _e.data.replaceAll("'", "");
  13332. if (_allText == "") {
  13333. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13334. } else {
  13335. _allText += _text;
  13336. }
  13337. _mdText = _allText + "_";
  13338. _mdText = _mdText.replace(/\\n/g, "\n");
  13339. _mdText = _mdText.replace(/\\/g, "");
  13340. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13341. //转化返回的回复流数据
  13342. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13343. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13344. // 处理流数据
  13345. }
  13346. };
  13347. },
  13348. aiDetail4(msg, index) {
  13349. if (!msg.length) {
  13350. this.$message.error("请添加评价后才能优化")
  13351. return
  13352. }
  13353. let _this = this
  13354. const _tindex = 'task-' + index
  13355. const _tindex2 = index
  13356. var _text = ""
  13357. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList.length; i++) {
  13358. _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
  13359. }
  13360. // **重点考虑该任务详情**
  13361. let messages = `NOTICE
  13362. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13363. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13364. Instruction: Based on the context, follow "Format example", write content.
  13365. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  13366. User: Please generate a recipe for chocolate chip cookies in JSON format.
  13367. # Context
  13368. ## 要求
  13369. ${msg} 输出格式和内容要求参考# 格式与要求
  13370. ## 参考内容
  13371. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  13372. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  13373. 评价设计:${_text}
  13374. ## 格式与要求
  13375. -评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  13376. # Format example
  13377. [{"value":"评价维度1","detail":"维度描述1","score":5},{"value":"评价维度2","detail":"维度描述2","score":5},{"value":"评价维度3","detail":"维度描述3","score":5}]
  13378. Instruction: Based on the context, follow "Format example", write content.
  13379. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  13380. User: Please generate a recipe for chocolate chip cookies in JSON format.`
  13381. _this.taskDetailLoading4.push(_tindex)
  13382. let params = JSON.stringify({
  13383. // "model": "Chat",
  13384. model: 'gpt-3.5-turbo',
  13385. temperature: 0,
  13386. max_tokens: 4096,
  13387. top_p: 1,
  13388. frequency_penalty: 0,
  13389. presence_penalty: 0,
  13390. messages: [{
  13391. content: messages,
  13392. role: 'user'
  13393. }],
  13394. stream: false,
  13395. uid: this.userid,
  13396. mind_map_question: "",
  13397. })
  13398. // let params = JSON.stringify({
  13399. // message: {
  13400. // anthropic_version: "bedrock-2023-05-31",
  13401. // max_tokens: 4096,
  13402. // temperature: 0,
  13403. // top_p: 1,
  13404. // messages: [{
  13405. // content: messages,
  13406. // role: 'user'
  13407. // }], //
  13408. // },
  13409. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13410. // });
  13411. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13412. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13413. console.log(response);
  13414. let data = response.data.FunctionResponse
  13415. if (data.choices && data.choices.length && data.choices[0].message) {
  13416. console.log(data.choices[0].message.content);
  13417. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.choices[0].message.content)
  13418. _this.$forceUpdate()
  13419. }
  13420. // if (data.result) {
  13421. // console.log(data.result);
  13422. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.result)
  13423. // _this.$forceUpdate()
  13424. // }
  13425. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13426. }).catch(function (error) {
  13427. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13428. console.log(error);
  13429. });
  13430. },
  13431. aiDetail5(msg, index) {
  13432. let _this = this
  13433. const _tindex = 'task-' + index
  13434. const _tindex2 = index
  13435. let url = []
  13436. if (this.infoData.length) {
  13437. for (var i = 0; i < this.infoData.length; i++) {
  13438. url.push(this.infoData[i].url)
  13439. }
  13440. }
  13441. let messages = `
  13442. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13443. --------
  13444. ## 要求
  13445. ${msg}
  13446. -------
  13447. ## 教案描述
  13448. ${_this.aiCallBack}
  13449. ## 补充参考资料
  13450. - 补充资料:${url.join(",")}
  13451. - 补充描述:${this.courseText2}`
  13452. _this.taskDetailLoading5.push(_tindex)
  13453. _this.ttaskDetailLoading5.push(_tindex)
  13454. let _uuid = uuidv4();
  13455. // let params = JSON.stringify({
  13456. // // "model": "Chat",
  13457. // model: 'gpt-3.5-turbo',
  13458. // temperature: 0,
  13459. // max_tokens: 4096,
  13460. // top_p: 1,
  13461. // frequency_penalty: 0,
  13462. // presence_penalty: 0,
  13463. // messages: [{
  13464. // content: messages,
  13465. // role: 'user'
  13466. // }],
  13467. // uid: _uuid,
  13468. // mind_map_question: "",
  13469. // })
  13470. let params = JSON.stringify({
  13471. message: {
  13472. anthropic_version: "bedrock-2023-05-31",
  13473. max_tokens: 4096,
  13474. temperature: 0,
  13475. top_p: 1,
  13476. messages: [{
  13477. "role": "user",
  13478. "content": messages
  13479. }] ,
  13480. },
  13481. uid: _uuid,
  13482. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13483. });
  13484. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13485. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13486. console.log(response);
  13487. // let data = response.data.FunctionResponse
  13488. // if (data.choices && data.choices.length && data.choices[0].message) {
  13489. // console.log(data.choices[0].message.content);
  13490. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  13491. // _this.$forceUpdate()
  13492. // }
  13493. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13494. if (response.data.FunctionResponse.result == "发送成功") {
  13495. } else {
  13496. this.$message.warning(response.data.FunctionResponse.result);
  13497. }
  13498. }).catch(function (error) {
  13499. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  13500. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  13501. console.log(error);
  13502. });
  13503. _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
  13504. },
  13505. aiDetail5getAiContent(_uid, loading, _tindex2) {
  13506. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13507. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13508. let _allText = "";
  13509. let _mdText = "";
  13510. _source.onmessage = _e => {
  13511. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13512. //对话已经完成
  13513. _mdText = _mdText.replace("_", "");
  13514. _source.close();
  13515. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13516. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13517. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  13518. return;
  13519. } else {
  13520. //对话还在继续
  13521. let _text = "";
  13522. _text = _e.data.replaceAll("'", "");
  13523. if (_allText == "") {
  13524. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13525. } else {
  13526. _allText += _text;
  13527. }
  13528. _mdText = _allText + "_";
  13529. _mdText = _mdText.replace(/\\n/g, "\n");
  13530. _mdText = _mdText.replace(/\\/g, "");
  13531. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13532. //转化返回的回复流数据
  13533. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13534. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13535. // 处理流数据
  13536. }
  13537. };
  13538. },
  13539. },
  13540. beforeDestroy() {
  13541. clearTimeout(this.timer);
  13542. this.timer = null;
  13543. clearInterval(this.timer2);
  13544. this.timer2 = null;
  13545. clearInterval(this.pasteTimer);
  13546. this.pasteTimer = null;
  13547. },
  13548. beforeRouteLeave(to, from, next) {
  13549. clearTimeout(this.timer);
  13550. this.timer = null;
  13551. clearInterval(this.timer2);
  13552. this.timer2 = null;
  13553. clearInterval(this.pasteTimer);
  13554. this.pasteTimer = null;
  13555. next();
  13556. },
  13557. created() {
  13558. this.getStudent();
  13559. this.getTeacher();
  13560. this.getClass();
  13561. this.selectGrage();
  13562. this.getTemplate();
  13563. this.getTipsTemplate();
  13564. // this.selectType();
  13565. this.selectEva();
  13566. this.loading = false;
  13567. this.timer2 = setInterval(() => {
  13568. this.selectEva();
  13569. }, 5000);
  13570. this.pasteTimer = setInterval(() => {
  13571. this.getPaste();
  13572. }, 1000);
  13573. setTimeout(() => {
  13574. // this.selectAllType();
  13575. this.selectCourseDetail();
  13576. }, 500);
  13577. let _this = this;
  13578. window.pasteStage = function (json) {
  13579. _this.pasteStage(json);
  13580. };
  13581. window.pasteTask = function (json) {
  13582. _this.pasteTask(json);
  13583. };
  13584. },
  13585. };
  13586. </script>
  13587. <style scoped>
  13588. @media screen and (max-width: 1280px) {
  13589. .mbCss {
  13590. flex-direction: column !important;
  13591. }
  13592. .pjCss {
  13593. width: 100% !important;
  13594. }
  13595. .evaCss {
  13596. width: 100% !important;
  13597. margin-top: 10px;
  13598. }
  13599. }
  13600. .el-table>>>.even_row {
  13601. background-color: #f1f1f1 !important;
  13602. }
  13603. .dialog_diy>>>.el-dialog__header {
  13604. background: #3c3c3c !important;
  13605. padding: 15px 20px;
  13606. }
  13607. .dialog_diy>>>.el-dialog__title {
  13608. color: #fff;
  13609. }
  13610. .dialog_diy>>>.el-dialog__headerbtn {
  13611. top: 19px;
  13612. }
  13613. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  13614. color: #fff;
  13615. }
  13616. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  13617. color: #fff;
  13618. }
  13619. .dialog_diy>>>.el-dialog__body,
  13620. .dialog_diy>>>.el-dialog__footer {
  13621. background: #fafafa;
  13622. }
  13623. .dialog_diy3>>>.el-dialog__body,
  13624. .dialog_diy3>>>.el-dialog__footer {
  13625. background: #eee !important;
  13626. }
  13627. .dialog_diy3>>>.el-dialog__body {
  13628. padding: 20px 20px;
  13629. }
  13630. .dialog_diyStage>>>.el-dialog__body {
  13631. padding: 10px;
  13632. }
  13633. .source_diy>>>.el-dialog {
  13634. height: 100% !important;
  13635. margin: 0 auto !important;
  13636. }
  13637. .source_diy>>>.el-dialog__body {
  13638. height: calc(100% - 185px);
  13639. overflow: auto;
  13640. background: #e6eaf0;
  13641. }
  13642. .source_diy>>>.el-dialog__footer {
  13643. background: #e6eaf0 !important;
  13644. }
  13645. .left {
  13646. border-right: 1px solid rgb(60, 94, 143);
  13647. display: flex;
  13648. flex-direction: column;
  13649. align-items: center;
  13650. min-height: 600px;
  13651. width: 385px;
  13652. height: 80%;
  13653. }
  13654. .tips {
  13655. color: rgb(128, 128, 128);
  13656. font-size: 12px;
  13657. width: 270px;
  13658. margin: 40px;
  13659. }
  13660. .pb_content {
  13661. height: 100% !important;
  13662. /* margin: 0 20px 0 20px; */
  13663. }
  13664. .pb_content_body {
  13665. width: 100% !important;
  13666. height: 100%;
  13667. display: flex;
  13668. }
  13669. .info_solid {
  13670. width: 270px;
  13671. height: 30px;
  13672. border-left: 1px solid #bdbdbd;
  13673. margin: 10px 0px 10px 30px;
  13674. }
  13675. .info_steps {
  13676. width: 270px;
  13677. font-size: 0.875rem;
  13678. display: flex;
  13679. align-items: center;
  13680. }
  13681. .info_steps span:nth-child(1) {
  13682. width: 30px;
  13683. height: 30px;
  13684. background: rgba(0, 0, 0, 0.38);
  13685. display: block;
  13686. color: #fff;
  13687. border-radius: 40px;
  13688. text-align: center;
  13689. line-height: 30px;
  13690. }
  13691. .steps_active {
  13692. background: #3d67bc !important;
  13693. }
  13694. .info_steps span:nth-child(2) {
  13695. margin-left: 5px;
  13696. }
  13697. .right {
  13698. height: 100%;
  13699. width: 100%;
  13700. display: flex;
  13701. overflow: hidden;
  13702. flex-direction: column;
  13703. }
  13704. .leftBar{
  13705. width: 290px;
  13706. height: calc(100% - 50px);
  13707. overflow: auto;
  13708. border-radius: 5px;
  13709. margin: 25px auto;
  13710. box-sizing: border-box;
  13711. margin-right: 10px;
  13712. }
  13713. .basic_box {
  13714. margin: 0 auto;
  13715. position: relative;
  13716. padding: 0 20px 0 20px;
  13717. }
  13718. .basic_box_success {
  13719. width: 100%;
  13720. min-height: 455px;
  13721. padding: 50px 0;
  13722. position: relative;
  13723. text-align: center;
  13724. border-bottom: 1px solid #bfbfbf;
  13725. box-sizing: border-box;
  13726. display: flex;
  13727. align-items: center;
  13728. flex-direction: column;
  13729. justify-content: center;
  13730. }
  13731. .info_title {
  13732. font-size: 1.5em;
  13733. margin-right: 25px;
  13734. /* margin: 20px 30px 20px 30px; */
  13735. }
  13736. .bInfo_title {
  13737. text-align: left;
  13738. margin: 10px 0;
  13739. }
  13740. .small_title {
  13741. font-size: 14px;
  13742. line-height: 40px;
  13743. }
  13744. .chapter_beizhu {
  13745. font-size: 12px;
  13746. font-weight: bold;
  13747. float: right;
  13748. color: rgb(128, 128, 128);
  13749. margin-top: 5px;
  13750. }
  13751. .chapter_uploadBox1 {
  13752. text-align: left;
  13753. background-color: rgb(242, 242, 242);
  13754. width: 100%;
  13755. height: 67px;
  13756. padding: 0px 15px;
  13757. border-radius: 8px;
  13758. overflow: hidden;
  13759. font-size: 16px;
  13760. box-sizing: border-box;
  13761. position: relative;
  13762. }
  13763. .chapter_add {
  13764. width: 100%;
  13765. height: 32px;
  13766. margin-top: 15px;
  13767. cursor: pointer;
  13768. }
  13769. .chapter_add_l {
  13770. margin-left: 5px;
  13771. width: 30px;
  13772. height: 30px;
  13773. float: left;
  13774. border: 1px solid #aaa;
  13775. color: #aaa;
  13776. border-radius: 50%;
  13777. font-size: 25px;
  13778. text-align: center;
  13779. }
  13780. .chapter_add_r {
  13781. font-size: 18px;
  13782. height: 40px;
  13783. line-height: 30px;
  13784. text-indent: 10px;
  13785. color: #aaa;
  13786. }
  13787. .chapter_add_r span {
  13788. font-size: 12px;
  13789. color: rgb(204, 204, 204);
  13790. }
  13791. .chapter_add_input {
  13792. display: none;
  13793. }
  13794. .line {
  13795. width: 85%;
  13796. margin: 0 auto;
  13797. border-top: 1px solid #e5e5e5;
  13798. margin-top: 20px;
  13799. }
  13800. .info_btnBox {
  13801. width: calc(100%);
  13802. display: flex;
  13803. justify-content: center;
  13804. height: 80px;
  13805. align-items: center;
  13806. background: #fff;
  13807. margin: 0 auto;
  13808. border-top: 2px solid rgb(228, 232, 237);
  13809. box-sizing: border-box;
  13810. }
  13811. .info_btnBox2 {
  13812. width: calc(100%);
  13813. display: flex;
  13814. justify-content: center;
  13815. height: 20px;
  13816. align-items: center;
  13817. background: #fff;
  13818. margin: 0 auto;
  13819. border-top: 2px solid rgb(228, 232, 237);
  13820. box-sizing: border-box;
  13821. overflow: hidden;
  13822. cursor: pointer;
  13823. }
  13824. .info_btnBox3 {
  13825. width: calc(100%);
  13826. display: flex;
  13827. justify-content: flex-end;
  13828. padding: 0 20px;
  13829. height: 60px;
  13830. align-items: center;
  13831. background: unset;
  13832. margin: 0 auto;
  13833. /* border-top: 1px solid rgb(228, 232, 237); */
  13834. box-sizing: border-box;
  13835. overflow: hidden;
  13836. cursor: pointer;
  13837. background: #fff;
  13838. border-radius: 10px;
  13839. }
  13840. .info_btn+.info_btn {
  13841. margin-left: 15px;
  13842. }
  13843. .info_btn,
  13844. .teacherWord {
  13845. color: #fff;
  13846. background-color: #0f7eff;
  13847. padding: 8px 24px;
  13848. font-size: 0.9375rem;
  13849. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  13850. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  13851. min-width: 64px;
  13852. font-weight: 500;
  13853. border-radius: 4px;
  13854. box-sizing: border-box;
  13855. border: none;
  13856. cursor: pointer;
  13857. }
  13858. .teacherWord {
  13859. width: 105px !important;
  13860. text-align: center !important;
  13861. line-height: 36px !important;
  13862. padding: 0 !important;
  13863. font-size: 14px !important;
  13864. margin: 10px 0 !important;
  13865. }
  13866. .template_box {
  13867. display: flex;
  13868. flex-wrap: wrap;
  13869. }
  13870. .wordTeacher {
  13871. display: flex;
  13872. flex-direction: column;
  13873. width: 100px;
  13874. height: 100px;
  13875. text-align: center;
  13876. font-size: 13px;
  13877. margin: 0 20px 20px 0;
  13878. background: #f0f4fa;
  13879. position: relative;
  13880. border-radius: 5px;
  13881. align-items: center;
  13882. justify-content: center;
  13883. border: 1px solid #cad1dc;
  13884. color: #0e1e33;
  13885. /* padding: 25px 0px; */
  13886. cursor: pointer;
  13887. }
  13888. .wordTeacher::after {
  13889. content: "";
  13890. display: block;
  13891. position: absolute;
  13892. width: 15px;
  13893. height: 15px;
  13894. right: 10px;
  13895. top: 10px;
  13896. background-image: url(../../../assets/icon/new/choose_a.png);
  13897. background-size: 100% 100%;
  13898. }
  13899. .wordTeacherA::after {
  13900. background-image: url(../../../assets/icon/new/choose_b.png);
  13901. }
  13902. .wordTeacher:nth-child(5n) {
  13903. margin-right: 0px;
  13904. }
  13905. .wordPic {
  13906. margin: 0 auto;
  13907. width: 30px;
  13908. height: 30px;
  13909. cursor: pointer;
  13910. }
  13911. .deleteWord {
  13912. width: 22px;
  13913. height: 22px;
  13914. position: absolute;
  13915. right: 5px;
  13916. top: -15px;
  13917. cursor: pointer;
  13918. display: none;
  13919. z-index: 999;
  13920. }
  13921. .wordPic>img,
  13922. .deleteWord>img,
  13923. .addToolImg>img {
  13924. width: 100%;
  13925. height: 100%;
  13926. }
  13927. .info_btn:hover {
  13928. background-color: #4f7cd5 !important;
  13929. }
  13930. .cru_selectBox {
  13931. display: flex;
  13932. margin: 15px 0;
  13933. flex-wrap: nowrap;
  13934. white-space: nowrap;
  13935. overflow: auto;
  13936. position: relative;
  13937. height: 40px;
  13938. max-width: calc(100% - 175px);
  13939. }
  13940. .cru_selectBox::-webkit-scrollbar {
  13941. /*滚动条整体样式*/
  13942. width: 6px;
  13943. /*高宽分别对应横竖滚动条的尺寸*/
  13944. height: 6px;
  13945. }
  13946. /*定义滚动条轨道 内阴影+圆角*/
  13947. .cru_selectBox::-webkit-scrollbar-track {
  13948. border-radius: 10px;
  13949. background-color: #eee;
  13950. }
  13951. /*定义滑块 内阴影+圆角*/
  13952. .cru_selectBox::-webkit-scrollbar-thumb {
  13953. border-radius: 10px;
  13954. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  13955. background-color: rgba(0, 0, 0, 0.1);
  13956. }
  13957. .cru_line {
  13958. position: absolute;
  13959. bottom: 0px;
  13960. transition: all 0.5s;
  13961. left: 0px;
  13962. width: 50px;
  13963. height: 4px;
  13964. left: 10px;
  13965. border-radius: 2px;
  13966. background: #3681fc;
  13967. }
  13968. .cru_select {
  13969. font-size: 18px;
  13970. margin-right: 20px;
  13971. margin-left: 5px;
  13972. cursor: pointer;
  13973. color: #0e1e33;
  13974. }
  13975. .cru_select:hover {
  13976. color: #3681fc !important;
  13977. }
  13978. .cru_selected {
  13979. color: #3681fc !important;
  13980. font-weight: bold;
  13981. }
  13982. .chapter_box {
  13983. margin-top: 10px;
  13984. width: 100%;
  13985. padding: 10px 20px;
  13986. background: #fff;
  13987. border-radius: 8px;
  13988. box-sizing: border-box;
  13989. }
  13990. .chapter_contentbox {
  13991. display: flex;
  13992. align-items: center;
  13993. /* margin-top: 15px; */
  13994. }
  13995. .chapter_contentbox .cc_title {
  13996. margin: 0px;
  13997. color: black;
  13998. display: block;
  13999. white-space: nowrap;
  14000. overflow: hidden;
  14001. text-overflow: ellipsis;
  14002. margin-right: 20px;
  14003. font-size: 18px;
  14004. height: 20px;
  14005. line-height: 22px;
  14006. min-width: fit-content;
  14007. display: flex;
  14008. }
  14009. .chapter_contentbox .cc_title::before {
  14010. content: "";
  14011. height: 100%;
  14012. width: 3px;
  14013. background: #3681fc;
  14014. border-radius: 3px;
  14015. opacity: 1;
  14016. display: block;
  14017. margin-right: 10px;
  14018. }
  14019. .chapter_contentbox .cc_input {
  14020. width: 100%;
  14021. display: flex;
  14022. }
  14023. .show_taskD {
  14024. min-width: fit-content;
  14025. margin-left: 10px;
  14026. display: flex;
  14027. align-items: center;
  14028. font-size: 14px;
  14029. cursor: pointer;
  14030. color: #717c8d;
  14031. }
  14032. .show_taskD>img {
  14033. width: 15px;
  14034. margin-right: 5px;
  14035. transition: 0.2s all;
  14036. transform: rotate(-90deg);
  14037. }
  14038. .show_taskD.show>img {
  14039. transform: rotate(0deg);
  14040. }
  14041. .show_toolD {
  14042. min-width: fit-content;
  14043. margin-left: 10px;
  14044. display: flex;
  14045. align-items: center;
  14046. font-size: 14px;
  14047. cursor: pointer;
  14048. color: #717c8d;
  14049. /* position: absolute;
  14050. right: 45px;
  14051. top: 5px; */
  14052. }
  14053. .show_toolD>img {
  14054. width: 15px;
  14055. margin-right: 5px;
  14056. transition: 0.2s all;
  14057. transform: rotate(-90deg);
  14058. }
  14059. .show_toolD.show>img {
  14060. transform: rotate(0deg);
  14061. }
  14062. .remove {
  14063. background-image: url("../../../assets/icon/new/delete_u.png");
  14064. cursor: pointer;
  14065. opacity: 0.5;
  14066. width: 30px;
  14067. min-width: 30px;
  14068. height: 30px;
  14069. background-size: 100% 100%;
  14070. background-repeat: no-repeat;
  14071. margin-left: 10px;
  14072. }
  14073. .remove1 {
  14074. background-image: url("../../../assets/remove1.png");
  14075. background-repeat: no-repeat;
  14076. background-position: 5px 10px;
  14077. width: 40px;
  14078. height: 50px;
  14079. cursor: pointer;
  14080. margin-left: 10px;
  14081. }
  14082. .binfo_input {
  14083. width: 100%;
  14084. margin: 0;
  14085. padding: 12px 14px;
  14086. display: block;
  14087. min-width: 0;
  14088. outline: none;
  14089. box-sizing: border-box;
  14090. background: none;
  14091. border: none;
  14092. border-radius: 4px;
  14093. background: #fff;
  14094. font-size: 16px;
  14095. resize: none;
  14096. font-family: "Microsoft YaHei";
  14097. min-height: 48px;
  14098. /* border: 1px solid #3682fc00; */
  14099. border: 1.5px solid #cad1dc;
  14100. }
  14101. .binfo_textarea {
  14102. border: 1.5px solid #cad1dc;
  14103. font-size: 16px;
  14104. resize: none;
  14105. /* background: #f6f6f6; */
  14106. font-family: "Microsoft YaHei";
  14107. }
  14108. .binfo_input:focus-visible {
  14109. border: 1.5px solid #3681fc !important;
  14110. }
  14111. .time {
  14112. display: flex;
  14113. margin: 35px 0 80px 0;
  14114. }
  14115. .chapter_btnbox {
  14116. width: 160px;
  14117. border-radius: 5px;
  14118. border: 2px dashed gray;
  14119. display: flex;
  14120. padding: 8px 50px;
  14121. align-items: center;
  14122. justify-content: center;
  14123. margin: 30px auto 0;
  14124. cursor: pointer;
  14125. }
  14126. .icon_add {
  14127. position: relative;
  14128. width: 24px;
  14129. padding-top: 20px;
  14130. border-radius: 100%;
  14131. border-width: 2px;
  14132. border-style: solid;
  14133. border-color: gray;
  14134. }
  14135. .icon_add i:nth-child(1) {
  14136. position: absolute;
  14137. left: 50%;
  14138. top: 50%;
  14139. height: 60%;
  14140. transform: translate(-50%, -50%);
  14141. border-width: 1px;
  14142. border-style: solid;
  14143. border-color: inherit;
  14144. }
  14145. .icon_add i:nth-child(2) {
  14146. position: absolute;
  14147. top: 50%;
  14148. left: 50%;
  14149. width: 60%;
  14150. transform: translate(-50%, -50%);
  14151. border-width: 1px;
  14152. border-style: solid;
  14153. border-color: inherit;
  14154. }
  14155. .chapter_btn_w {
  14156. font-size: 0.9375rem;
  14157. font-weight: bold;
  14158. color: gray;
  14159. margin-left: 20px;
  14160. }
  14161. .disUoloadSty>>>.el-icon-plus {
  14162. display: none !important;
  14163. /* 上传按钮隐藏 */
  14164. }
  14165. .imgLeft {
  14166. margin: 15px 0;
  14167. }
  14168. .add_info_box {
  14169. margin: 0 0 0 auto;
  14170. display: flex;
  14171. flex-wrap: wrap;
  14172. }
  14173. .add_info_box button {
  14174. margin: 0 5px 10px 0;
  14175. }
  14176. .add_info_box2 {
  14177. display: flex;
  14178. align-items: center;
  14179. flex-wrap: wrap;
  14180. }
  14181. .add_info_box2::after {
  14182. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  14183. color: red;
  14184. font-size: 14px;
  14185. margin-bottom: 10px;
  14186. }
  14187. .add_chapters_box {
  14188. text-align: left;
  14189. background-color: #fff;
  14190. width: 100%;
  14191. border-radius: 4px;
  14192. font-size: 16px;
  14193. box-sizing: border-box;
  14194. position: relative;
  14195. padding: 0 15px;
  14196. height: auto;
  14197. overflow-y: auto;
  14198. overflow-x: hidden;
  14199. border: 1px solid #cad1dc;
  14200. }
  14201. .add_chapters_box.add_c_none {
  14202. display: flex;
  14203. justify-content: center;
  14204. align-items: center;
  14205. padding: 15px;
  14206. }
  14207. .add_c_none>img {
  14208. width: 25px;
  14209. }
  14210. .add_chapters_box.add_c_none>span {
  14211. font-size: 14px;
  14212. font-weight: 400;
  14213. margin: 0 0 5px 5px;
  14214. }
  14215. .homework_box {
  14216. display: flex;
  14217. align-items: flex-start;
  14218. flex-wrap: wrap;
  14219. margin: 15px 0 0 0;
  14220. flex-direction: column;
  14221. align-content: flex-start;
  14222. }
  14223. .course_homework {
  14224. display: flex;
  14225. justify-content: center;
  14226. flex-direction: row;
  14227. align-items: center;
  14228. margin: 0 10px 0 0;
  14229. }
  14230. .course_homework>>>.el-input__inner {
  14231. width: 140px;
  14232. margin-left: 15px;
  14233. }
  14234. .chapter_upload_move {
  14235. position: relative;
  14236. background-color: #fff;
  14237. position: absolute;
  14238. width: 100%;
  14239. top: 0px;
  14240. left: 0px;
  14241. border: 1px solid #eee;
  14242. border-radius: 5px;
  14243. transition: width 2s;
  14244. -moz-transition: width 2s;
  14245. -webkit-transition: width 2s;
  14246. -o-transition: width 2s;
  14247. }
  14248. .chapter_upload_l_i {
  14249. background-image: url("../../../assets/icon.png");
  14250. background-position: 3px -165px;
  14251. width: 30px;
  14252. height: 30px;
  14253. margin: 10px auto 0 auto;
  14254. }
  14255. .course_input_box {
  14256. display: flex;
  14257. margin-right: 20px;
  14258. width: 100%;
  14259. align-items: center;
  14260. position: relative;
  14261. }
  14262. .course_input_box>.binfo_input {
  14263. width: calc(100% - 0 - 200px - 20px);
  14264. margin: 0 10px;
  14265. }
  14266. .bb_courseIcon {
  14267. width: 57px;
  14268. height: 45px;
  14269. background: #f0f4fa;
  14270. border-radius: 5px 0px 0px 5px;
  14271. display: flex;
  14272. align-items: center;
  14273. justify-content: center;
  14274. border-right: 1.5px solid rgb(202, 209, 220);
  14275. box-sizing: border-box;
  14276. position: absolute;
  14277. left: 1.5px;
  14278. }
  14279. .bb_courseIcon>img {
  14280. width: 25px;
  14281. height: auto;
  14282. }
  14283. .big_box {
  14284. /* margin-top: 20px; */
  14285. display: flex;
  14286. justify-content: space-between;
  14287. /* border-bottom: 1px solid #E0E2ED; */
  14288. }
  14289. .left_first {
  14290. display: flex;
  14291. flex-direction: column;
  14292. flex-wrap: nowrap;
  14293. width: calc(100% - 310px);
  14294. padding: 20px;
  14295. box-sizing: border-box;
  14296. background: #fff;
  14297. border-radius: 5px;
  14298. }
  14299. .right_first {
  14300. width: 300px;
  14301. display: flex;
  14302. align-items: center;
  14303. justify-content: center;
  14304. /* border-left: 1px solid #E0E2ED; */
  14305. box-sizing: border-box;
  14306. padding: 20px;
  14307. flex-direction: column;
  14308. background: #fff;
  14309. border-radius: 5px;
  14310. }
  14311. .ai_box {
  14312. width: 204px;
  14313. display: flex;
  14314. justify-content: flex-end;
  14315. margin-bottom: 15px;
  14316. }
  14317. .ai_content {
  14318. display: flex;
  14319. align-items: center;
  14320. font-size: 14px;
  14321. padding: 7px 20px;
  14322. box-sizing: border-box;
  14323. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  14324. border-radius: 12px;
  14325. font-weight: 700;
  14326. cursor: pointer;
  14327. }
  14328. .ai_content>img {
  14329. width: 40px;
  14330. margin-right: 5px;
  14331. }
  14332. .c_info_title {
  14333. padding: 15px 0 15px 0;
  14334. font-size: 16px;
  14335. font-weight: bold;
  14336. margin: 0 0 0 20px;
  14337. box-sizing: border-box;
  14338. display: flex;
  14339. align-items: center;
  14340. line-height: 20px;
  14341. }
  14342. .c_info_title::before {
  14343. content: "";
  14344. display: block;
  14345. width: 3px;
  14346. height: 20px;
  14347. background: #0061ff;
  14348. border-radius: 3px;
  14349. margin: 0 5px 0 0;
  14350. }
  14351. .right_title {
  14352. height: 30px;
  14353. padding: 15px 0 15px 20px;
  14354. border-bottom: 1px solid #f2f2f2;
  14355. font-size: 1.5em;
  14356. font-weight: bold;
  14357. color: #0f7eff;
  14358. margin: 0 auto;
  14359. }
  14360. .people {
  14361. border: 1px solid rgb(229 229 229);
  14362. /* height: 495px; */
  14363. height: 350px;
  14364. border-radius: 5px;
  14365. width: 100%;
  14366. overflow: auto;
  14367. }
  14368. .people_top {
  14369. display: flex;
  14370. width: 100%;
  14371. /* justify-content: space-between; */
  14372. /* align-items: center; */
  14373. flex-direction: column;
  14374. padding: 10px 10px 0;
  14375. box-sizing: border-box;
  14376. }
  14377. .people_nav,
  14378. .people_top_right {
  14379. /* padding: 20px 0 0 20px; */
  14380. }
  14381. .people_top_right {
  14382. height: 40px;
  14383. margin-bottom: 10px;
  14384. }
  14385. .people_search {
  14386. display: flex;
  14387. position: relative;
  14388. }
  14389. .people_search>>>.el-input__inner {
  14390. /* height: 25px; */
  14391. width: 100%;
  14392. }
  14393. .search_img {
  14394. width: 20px;
  14395. height: 20px;
  14396. position: absolute;
  14397. right: 10px;
  14398. top: 50%;
  14399. transform: translateY(-50%);
  14400. }
  14401. .search_img>img {
  14402. width: 100%;
  14403. height: 100%;
  14404. }
  14405. .people_name {
  14406. display: flex;
  14407. justify-content: flex-start;
  14408. padding: 20px 10px;
  14409. flex-direction: column;
  14410. flex-wrap: wrap;
  14411. }
  14412. .p_box {
  14413. position: relative;
  14414. }
  14415. .people_name>>>.el-checkbox {
  14416. width: 100%;
  14417. display: flex;
  14418. align-items: center;
  14419. margin-bottom: 10px;
  14420. }
  14421. .people_name>>>.el-checkbox__label {
  14422. text-overflow: ellipsis;
  14423. overflow: hidden;
  14424. width: calc(100%);
  14425. }
  14426. .people_name2>>>.el-checkbox__label {
  14427. width: calc(100% - 130px);
  14428. }
  14429. .inviteCode {
  14430. position: absolute;
  14431. right: 30px;
  14432. color: #237ade;
  14433. top: 0;
  14434. cursor: pointer;
  14435. font-size: 13px;
  14436. }
  14437. .noneInvite {
  14438. color: #a8a8a8;
  14439. }
  14440. .inviteImg {
  14441. position: absolute;
  14442. right: 5px;
  14443. top: 0;
  14444. width: 20px;
  14445. }
  14446. .right_img {
  14447. width: 150px;
  14448. height: 150px;
  14449. margin: 0 auto;
  14450. }
  14451. .right_img>img {
  14452. width: 100%;
  14453. height: 100%;
  14454. }
  14455. .number {
  14456. margin-top: 20px;
  14457. color: #4aa6ff;
  14458. text-decoration: underline;
  14459. }
  14460. .success_button {
  14461. display: flex;
  14462. text-align: center;
  14463. margin: 5% 0 auto;
  14464. flex-direction: row;
  14465. justify-content: center;
  14466. }
  14467. .look_course {
  14468. margin-right: 40px;
  14469. background: #3d67bc;
  14470. width: 200px;
  14471. height: 35px;
  14472. line-height: 35px;
  14473. color: #fff;
  14474. text-align: center;
  14475. font-size: 14px;
  14476. border-radius: 5px;
  14477. cursor: pointer;
  14478. }
  14479. .attend_others {
  14480. width: 250px;
  14481. background: #4fb13c;
  14482. height: 35px;
  14483. line-height: 35px;
  14484. color: #fff;
  14485. text-align: center;
  14486. font-size: 14px;
  14487. border-radius: 5px;
  14488. cursor: pointer;
  14489. }
  14490. .dialog_diy2>>>.el-dialog__body {
  14491. text-align: center;
  14492. }
  14493. .write_togother {
  14494. position: absolute;
  14495. right: 45px;
  14496. display: flex;
  14497. top: 5%;
  14498. }
  14499. .write_people {
  14500. font-size: 14px;
  14501. line-height: 50px;
  14502. padding-right: 10px;
  14503. }
  14504. .end_write {
  14505. background: #3d67bc;
  14506. color: #fff;
  14507. width: 100px;
  14508. height: 35px;
  14509. line-height: 35px;
  14510. text-align: center;
  14511. font-size: 14px;
  14512. border-radius: 5px;
  14513. cursor: pointer;
  14514. }
  14515. .chapter_upload+.chapter_upload {
  14516. /* margin-top: 15px; */
  14517. border-top: 1px solid #e7ebf1;
  14518. }
  14519. .chapter_upload {
  14520. height: 45px;
  14521. position: relative;
  14522. display: flex;
  14523. align-items: center;
  14524. width: 100%;
  14525. min-height: 45px;
  14526. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  14527. /* border-radius: 4px; */
  14528. /* overflow: hidden; */
  14529. box-sizing: border-box;
  14530. }
  14531. .chapter_upload_drag {
  14532. position: absolute;
  14533. cursor: pointer;
  14534. width: 16px;
  14535. height: 16px;
  14536. left: -9px;
  14537. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  14538. background-size: 100% 100%;
  14539. z-index: 10;
  14540. display: none;
  14541. }
  14542. .isNavStage>.chapter_upload_drag {
  14543. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  14544. }
  14545. .chapter_upload_t {
  14546. background-color: #fff;
  14547. position: absolute;
  14548. height: 100%;
  14549. top: 0px;
  14550. left: 0px;
  14551. box-sizing: border-box;
  14552. }
  14553. .chapter_upload_o {
  14554. width: 100%;
  14555. height: 100%;
  14556. position: relative;
  14557. z-index: 1;
  14558. }
  14559. .chapter_upload_ic {
  14560. margin: 0 15px 0px auto;
  14561. display: flex;
  14562. align-items: center;
  14563. }
  14564. .chapter_upload_ic_l {
  14565. width: 50px;
  14566. height: 50px;
  14567. float: left;
  14568. }
  14569. .chapter_upload_ic_l div {
  14570. width: 30px;
  14571. height: 35px;
  14572. background: url("../../../assets/icon/icon.png");
  14573. }
  14574. .chapter_upload_ic_edit {
  14575. height: 100%;
  14576. display: flex;
  14577. align-items: center;
  14578. cursor: pointer;
  14579. margin: 0 10px 0 0;
  14580. }
  14581. .chapter_upload_ic_edit div {
  14582. width: 18px;
  14583. height: 18px;
  14584. background-image: url("../../../assets/icon/new/edit_u.png");
  14585. background-size: 100% 100%;
  14586. }
  14587. .chapter_upload_ic_r {
  14588. height: 100%;
  14589. display: flex;
  14590. align-items: center;
  14591. cursor: pointer;
  14592. }
  14593. .chapter_upload_ic_r div {
  14594. width: 18px;
  14595. height: 18px;
  14596. background-image: url("../../../assets/icon/new/delete_u.png");
  14597. background-size: 100% 100%;
  14598. }
  14599. .chapter_upload_n {
  14600. display: flex;
  14601. text-indent: 10px;
  14602. text-decoration: none;
  14603. text-overflow: ellipsis;
  14604. white-space: nowrap;
  14605. overflow: hidden;
  14606. width: 55%;
  14607. margin-left: 10px;
  14608. cursor: pointer;
  14609. margin-top: 2px;
  14610. align-items: center;
  14611. }
  14612. .chapter_upload_l_i2,
  14613. .chapter_upload_l_i3,
  14614. .chapter_upload_l_i8,
  14615. .chapter_upload_l_i6,
  14616. .chapter_upload_l_i12,
  14617. .chapter_upload_l_i14,
  14618. .chapter_upload_l_i13 {
  14619. width: 15px;
  14620. height: 15px;
  14621. background-size: 100% 100%;
  14622. }
  14623. .chapter_upload_l_i2 {
  14624. background-image: url("../../../assets/icon/new/u_word.png");
  14625. }
  14626. .chapter_upload_l_i3 {
  14627. background-image: url("../../../assets/icon/new/u_video.png");
  14628. }
  14629. .chapter_upload_l_i8 {
  14630. background-image: url("../../../assets/icon/new/u_url.png");
  14631. }
  14632. .chapter_upload_l_i14 {
  14633. background-image: url("../../../assets/icon/new/u_source.png");
  14634. }
  14635. .chapter_upload_l_i6 {
  14636. background-image: url("../../../assets/icon/new/u_picture.png");
  14637. }
  14638. .chapter_upload_l_i12 {
  14639. background-image: url("../../../assets/icon/new/u_word.png");
  14640. }
  14641. .chapter_upload_l_i13 {
  14642. background-image: url("../../../assets/icon/new/u_img.png");
  14643. }
  14644. .chapter_upload_noSee {
  14645. background-image: url("../../../assets/icon/new/u_noUpload.png");
  14646. width: 18px;
  14647. height: 18px;
  14648. background-size: 100% 100%;
  14649. display: block;
  14650. margin-right: 10px;
  14651. }
  14652. .chapter_upload_ud {
  14653. display: flex;
  14654. flex-direction: row;
  14655. justify-content: center;
  14656. margin: 0 10px 0 0;
  14657. }
  14658. .chapter_upload_ud>.chapter_upload_up {
  14659. margin-bottom: 0;
  14660. margin-right: 10px;
  14661. }
  14662. .chapter_upload_down,
  14663. .chapter_upload_up {
  14664. width: 20px;
  14665. height: 20px;
  14666. background: #e4eaf2;
  14667. cursor: pointer;
  14668. margin: 0 auto;
  14669. border-radius: 5px;
  14670. display: flex;
  14671. justify-content: center;
  14672. align-items: center;
  14673. }
  14674. .chapter_upload_up::after,
  14675. .chapter_upload_down::after {
  14676. content: "";
  14677. background-image: url("../../../assets/icon/new/downBtn.png");
  14678. width: 13px;
  14679. height: 13px;
  14680. background-size: 100% 100%;
  14681. display: block;
  14682. }
  14683. .chapter_upload_up::after {
  14684. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  14685. }
  14686. .chapter_upload_up {
  14687. margin-bottom: 5px;
  14688. }
  14689. .chapter_upload_ud2 {
  14690. display: flex;
  14691. flex-direction: row;
  14692. justify-content: center;
  14693. margin: 0 10px 0 0;
  14694. }
  14695. .chapter_upload_ud2>.chapter_upload_up2 {
  14696. margin-bottom: 0;
  14697. margin-right: 10px;
  14698. }
  14699. .chapter_upload_down2,
  14700. .chapter_upload_up2 {
  14701. cursor: pointer;
  14702. margin: 0 auto;
  14703. border-radius: 5px;
  14704. display: flex;
  14705. justify-content: center;
  14706. align-items: center;
  14707. color: #717c8d;
  14708. font-size: 14px;
  14709. }
  14710. .chapter_upload_up2 {
  14711. margin-right: 10px;
  14712. }
  14713. .chapter_upload_up2::before,
  14714. .chapter_upload_down2::before {
  14715. content: "";
  14716. background-image: url("../../../assets/icon/new/c_down.png");
  14717. width: 14px;
  14718. height: 14px;
  14719. background-size: 100% 100%;
  14720. display: block;
  14721. margin-right: 5px;
  14722. }
  14723. .chapter_upload_up2::before {
  14724. background-image: url("../../../assets/icon/new/c_up.png") !important;
  14725. }
  14726. .addWordStyle {
  14727. display: flex;
  14728. flex-direction: row;
  14729. justify-content: flex-start;
  14730. overflow-x: auto;
  14731. white-space: nowrap;
  14732. flex-wrap: wrap;
  14733. }
  14734. /* table 样式 */
  14735. .cont>>>table {
  14736. border-top: 1px solid #ccc;
  14737. border-left: 1px solid #ccc;
  14738. }
  14739. .cont>>>table td,
  14740. .cont>>>table th {
  14741. border-bottom: 1px solid #ccc;
  14742. border-right: 1px solid #ccc;
  14743. /* padding: 20px 5px; */
  14744. padding: 5px 10px;
  14745. max-width: 0px;
  14746. height: 30px;
  14747. vertical-align: baseline;
  14748. }
  14749. .cont>>>table th {
  14750. border-bottom: 2px solid #ccc;
  14751. text-align: center;
  14752. }
  14753. /* blockquote 样式 */
  14754. .cont>>>blockquote {
  14755. display: block;
  14756. border-left: 8px solid #d0e5f2;
  14757. padding: 5px 10px;
  14758. margin: 10px 0;
  14759. line-height: 1.4;
  14760. font-size: 100%;
  14761. background-color: #f1f1f1;
  14762. }
  14763. /* code 样式 */
  14764. .cont>>>code {
  14765. display: inline-block;
  14766. /* *display: inline; */
  14767. zoom: 1;
  14768. background-color: #f1f1f1;
  14769. border-radius: 3px;
  14770. padding: 3px 5px;
  14771. margin: 0 3px;
  14772. }
  14773. .cont>>>pre code {
  14774. display: block;
  14775. }
  14776. /* ul ol 样式 */
  14777. .cont>>>ul,
  14778. ol {
  14779. margin: 10px 0 10px 20px;
  14780. }
  14781. .wordbox {
  14782. display: flex;
  14783. flex-wrap: wrap;
  14784. cursor: pointer;
  14785. width: 100%;
  14786. }
  14787. .checkword {
  14788. width: 22px;
  14789. height: 22px;
  14790. margin: 10px auto 0;
  14791. cursor: pointer;
  14792. }
  14793. .checkword img {
  14794. width: 100%;
  14795. }
  14796. .stepBg {
  14797. display: flex;
  14798. justify-content: space-between;
  14799. align-items: center;
  14800. background: #fff;
  14801. width: calc(100%);
  14802. margin: 0 auto;
  14803. }
  14804. .stepBorder {
  14805. height: 3px !important;
  14806. background: #cad1dc;
  14807. width: 100px !important;
  14808. margin: 0 15px !important;
  14809. position: relative;
  14810. }
  14811. .border-active {
  14812. background: #3681fc !important;
  14813. }
  14814. .border-active::before,
  14815. .border-active::after {
  14816. border-color: #3681fc !important;
  14817. }
  14818. .stepBorder::before,
  14819. .stepBorder::after {
  14820. content: "";
  14821. width: 9px;
  14822. height: 9px;
  14823. background: #ffffff;
  14824. opacity: 1;
  14825. border: 2px solid #acb4bf;
  14826. display: block;
  14827. box-sizing: border-box;
  14828. border-radius: 50%;
  14829. position: absolute;
  14830. top: 50%;
  14831. transform: translateY(-50%);
  14832. }
  14833. .stepBorder::after {
  14834. right: -9px;
  14835. }
  14836. .stepTop {
  14837. width: 100%;
  14838. /* border-radius: 10px; */
  14839. display: flex;
  14840. justify-content: center;
  14841. align-items: center;
  14842. flex-wrap: nowrap;
  14843. background: #fff;
  14844. /* top: 18%; */
  14845. height: 80px;
  14846. border-bottom: 2px solid rgb(228, 232, 237);
  14847. box-sizing: border-box;
  14848. }
  14849. .stepTop2 {
  14850. width: 100%;
  14851. /* border-radius: 10px; */
  14852. display: flex;
  14853. justify-content: center;
  14854. align-items: center;
  14855. flex-wrap: nowrap;
  14856. background: #fff;
  14857. /* top: 18%; */
  14858. height: 20px;
  14859. border-bottom: 2px solid rgb(228, 232, 237);
  14860. box-sizing: border-box;
  14861. overflow: hidden;
  14862. cursor: pointer;
  14863. }
  14864. .stepTop>div img {
  14865. width: 100%;
  14866. }
  14867. .stepTop>div {
  14868. height: 50px;
  14869. width: 180px;
  14870. cursor: pointer;
  14871. margin: 10px 0;
  14872. border-radius: 10px;
  14873. }
  14874. .first,
  14875. .second,
  14876. .third,
  14877. .four {
  14878. background: #3681fc;
  14879. height: 90px;
  14880. color: #fff;
  14881. display: flex;
  14882. flex-direction: row;
  14883. align-items: center;
  14884. justify-content: center;
  14885. }
  14886. .first>div:nth-child(1),
  14887. .second>div:nth-child(1),
  14888. .third>div:nth-child(1),
  14889. .four>div:nth-child(1) {
  14890. margin: 5px 10px 0 0;
  14891. width: 2rem;
  14892. }
  14893. .firstNo,
  14894. .secondNo,
  14895. .thirdNo,
  14896. .fourNo {
  14897. background: #e7e7e7;
  14898. color: #adadad;
  14899. display: flex;
  14900. flex-direction: row;
  14901. align-items: center;
  14902. justify-content: center;
  14903. }
  14904. .firstNo>div:nth-child(1),
  14905. .secondNo>div:nth-child(1),
  14906. .thirdNo>div:nth-child(1),
  14907. .fourNo>div:nth-child(1) {
  14908. margin: 5px 10px 0 0;
  14909. width: 2rem;
  14910. }
  14911. .uploadWidth>>>.el-upload {
  14912. width: 60px;
  14913. height: 60px;
  14914. position: relative;
  14915. }
  14916. .addPeople {
  14917. background: #fa6060;
  14918. width: 150px;
  14919. height: 40px;
  14920. color: #fff;
  14921. border-radius: 5px;
  14922. text-align: center;
  14923. line-height: 40px;
  14924. font-size: 14px;
  14925. cursor: pointer;
  14926. }
  14927. .kcImg {
  14928. width: 60px;
  14929. margin-left: 10px;
  14930. }
  14931. .zyImg {
  14932. width: 55px;
  14933. margin: 0 10px;
  14934. }
  14935. .deleteZy {
  14936. width: 20px;
  14937. position: absolute;
  14938. top: 5px;
  14939. right: 5px;
  14940. cursor: pointer;
  14941. }
  14942. .kcImg>img,
  14943. .zyImg>img,
  14944. .deleteZy>img {
  14945. width: 100%;
  14946. height: 100%;
  14947. }
  14948. .zyBox {
  14949. display: flex;
  14950. flex-direction: row;
  14951. align-items: center;
  14952. background: #67d37d;
  14953. color: #fff;
  14954. width: 210px;
  14955. margin: 20px 20px 0 0;
  14956. border-radius: 10px;
  14957. height: 70px;
  14958. position: relative;
  14959. }
  14960. .upCss {
  14961. display: flex;
  14962. flex-direction: row;
  14963. justify-content: flex-start;
  14964. }
  14965. .upCss>>>.el-icon-plus {
  14966. position: none !important;
  14967. width: 200px;
  14968. height: 100px;
  14969. display: flex;
  14970. flex-wrap: nowrap;
  14971. flex-direction: column;
  14972. align-items: center;
  14973. justify-content: center;
  14974. border: 1px dashed #ccc;
  14975. min-width: 78px;
  14976. min-height: 100px;
  14977. z-index: 999;
  14978. }
  14979. .upCss>>>.el-upload-list__item-name {
  14980. width: 100px;
  14981. white-space: nowrap;
  14982. overflow: hidden;
  14983. text-overflow: ellipsis;
  14984. }
  14985. .upCss>>>.el-upload-list__item .el-icon-close {
  14986. font-size: 20px;
  14987. z-index: 9999;
  14988. }
  14989. .addStageImg {
  14990. min-width: 20px;
  14991. min-height: 20px;
  14992. width: 20px;
  14993. height: 20px;
  14994. cursor: pointer;
  14995. }
  14996. .addHW {
  14997. width: 28px;
  14998. height: 28px;
  14999. cursor: pointer;
  15000. }
  15001. .addStageImg>img,
  15002. .addHW>img {
  15003. width: 100%;
  15004. height: 100%;
  15005. }
  15006. .addNewPP>>>.el-dialog__body {
  15007. padding: 5px 20px;
  15008. }
  15009. .addNewPP>>>.el-dialog {
  15010. margin-top: 5vh !important;
  15011. }
  15012. .addNewPP2>>>.el-dialog__body {
  15013. padding: 5px 0;
  15014. }
  15015. .addNewPP2>>>.el-dialog {
  15016. margin-top: 5vh !important;
  15017. }
  15018. .isHeight {
  15019. height: 680px;
  15020. }
  15021. .toolChoose {
  15022. display: flex;
  15023. /* width: 100%; */
  15024. flex-direction: row;
  15025. flex-wrap: wrap;
  15026. }
  15027. .tool,
  15028. .isToolChoose {
  15029. display: flex;
  15030. flex-direction: column;
  15031. flex-wrap: nowrap;
  15032. width: fit-content;
  15033. margin: 10px 0 10px 0;
  15034. align-items: center;
  15035. border: 2px solid #dbdbdb00;
  15036. padding: 10px 20px;
  15037. border-radius: 5px;
  15038. cursor: pointer;
  15039. /* box-shadow: 0 0 2px 0px #dedede; */
  15040. position: relative;
  15041. box-sizing: border-box;
  15042. }
  15043. .tool:hover {
  15044. border: 2px solid #a5c7ff;
  15045. }
  15046. .tool:hover>.noCTool {
  15047. display: block;
  15048. opacity: 0.5;
  15049. }
  15050. .isToolChoose {
  15051. border: 2px solid #438aff !important;
  15052. box-shadow: 0 0 2px 0px #438aff;
  15053. opacity: 1 !important;
  15054. }
  15055. .isCTool,
  15056. .noCTool {
  15057. width: 30px;
  15058. height: 30px;
  15059. position: absolute;
  15060. top: -4px;
  15061. right: -4px;
  15062. }
  15063. .noCTool {
  15064. display: none;
  15065. }
  15066. .isCTool>img,
  15067. .noCTool>img {
  15068. width: 100%;
  15069. height: 100%;
  15070. }
  15071. .tool+.tool {
  15072. margin-right: 10px;
  15073. }
  15074. .whiteBIcon {
  15075. width: 80px;
  15076. cursor: pointer;
  15077. display: flex;
  15078. flex-direction: column;
  15079. flex-wrap: nowrap;
  15080. align-items: center;
  15081. font-size: 14px;
  15082. }
  15083. .whiteBIcon>img,
  15084. .toolIcon>img,
  15085. .arrow>img {
  15086. width: 100%;
  15087. height: 100%;
  15088. }
  15089. .check img {
  15090. width: 20px;
  15091. height: 20px;
  15092. }
  15093. .whiteBIcon>img {
  15094. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  15095. border-radius: 15px;
  15096. }
  15097. .whiteBIcon>div:nth-child(2) {
  15098. height: 20px;
  15099. line-height: 20px;
  15100. }
  15101. .check {
  15102. /* width: 20px;
  15103. height: 20px; */
  15104. cursor: pointer;
  15105. margin: 10px 0 0;
  15106. }
  15107. .checkDiv {
  15108. display: flex;
  15109. align-items: center;
  15110. }
  15111. .checkDiv span {
  15112. margin-left: 5px;
  15113. color: #858585;
  15114. }
  15115. .customWidth>>>.el-dialog {
  15116. min-width: 600px !important;
  15117. }
  15118. .CollaborativeCss {
  15119. width: 100%;
  15120. display: flex;
  15121. justify-content: center;
  15122. align-items: center;
  15123. box-sizing: border-box;
  15124. padding: 10px 0;
  15125. cursor: pointer;
  15126. }
  15127. .CollaborativeCss >>> .el-tooltip {
  15128. overflow: hidden;
  15129. white-space: nowrap;
  15130. text-overflow: ellipsis;
  15131. }
  15132. .CollaborativeCss2 {
  15133. background: #e0eafb;
  15134. color: #3681fc;
  15135. font-weight: 700;
  15136. border-radius: 5px;
  15137. }
  15138. .a_addBox {
  15139. margin: 10px 0;
  15140. background: #fff;
  15141. padding: 15px;
  15142. /* max-height: 600px; */
  15143. overflow: auto;
  15144. }
  15145. .a_add_box {
  15146. border-bottom: 2px solid #eee;
  15147. padding-bottom: 25px;
  15148. }
  15149. .a_add_head {
  15150. display: flex;
  15151. align-items: center;
  15152. justify-content: space-between;
  15153. margin: 10px 0 0 0;
  15154. font-size: 18px;
  15155. }
  15156. .a_add_checkType {
  15157. margin-top: 10px;
  15158. display: flex;
  15159. font-size: 14px;
  15160. align-items: center;
  15161. }
  15162. .a_add_checkType span {
  15163. box-sizing: border-box;
  15164. padding: 0 0 5px 0;
  15165. cursor: pointer;
  15166. }
  15167. .a_add_checkType span+span {
  15168. margin-left: 10px;
  15169. }
  15170. .a_add_checkType .active {
  15171. border-bottom: 2px solid #409eff;
  15172. color: #409eff;
  15173. }
  15174. .a_add_head .a_add_head_input {
  15175. /* width: 540px; */
  15176. width: 100%;
  15177. }
  15178. .a_add_head .a_add_head_div {
  15179. display: flex;
  15180. align-items: center;
  15181. justify-content: space-between;
  15182. }
  15183. .a_add_body {
  15184. display: flex;
  15185. /* align-items: center; */
  15186. align-items: flex-end;
  15187. }
  15188. .a_add_input {
  15189. display: flex;
  15190. align-items: center;
  15191. flex-wrap: wrap;
  15192. }
  15193. .a_add_input_choice {
  15194. flex-direction: column;
  15195. margin-right: 10px;
  15196. }
  15197. .a_add_input_choice>>>.el-radio {
  15198. display: flex;
  15199. align-items: center;
  15200. flex-direction: row-reverse;
  15201. margin: 30px 0 0 0;
  15202. position: relative;
  15203. }
  15204. .a_add_input_choice>>>.el-checkbox {
  15205. display: flex;
  15206. align-items: center;
  15207. flex-direction: row-reverse;
  15208. margin: 30px 0 0 0;
  15209. position: relative;
  15210. }
  15211. .width100 {
  15212. width: 100%;
  15213. }
  15214. .a_add_input .a_add_persent {
  15215. width: 100%;
  15216. }
  15217. .a_add_persent_div {
  15218. width: 100%;
  15219. display: flex;
  15220. align-items: center;
  15221. }
  15222. .a_add_persent_div span {
  15223. margin: 5px 0;
  15224. }
  15225. .a_add_persent_div span:nth-child(1) {
  15226. width: 30%;
  15227. }
  15228. .a_add_persent_div span:nth-child(2) {
  15229. width: 7%;
  15230. }
  15231. .a_add_persent_div span:nth-child(3) {
  15232. width: 40%;
  15233. }
  15234. .a_add_body_div {
  15235. display: flex;
  15236. align-items: center;
  15237. justify-content: center;
  15238. /* flex-direction: column; */
  15239. position: absolute;
  15240. right: -20px;
  15241. transform: translateX(100%);
  15242. }
  15243. .a_add_body_div>>>.el-button--primary {
  15244. background: #466b99;
  15245. border: none;
  15246. }
  15247. .all_choose {
  15248. display: flex;
  15249. flex-direction: row;
  15250. align-items: flex-start;
  15251. width: 100%;
  15252. }
  15253. .all_choose+.all_choose {
  15254. /* margin-top: 10px */
  15255. }
  15256. .all_choose>span {
  15257. min-width: fit-content;
  15258. display: block;
  15259. white-space: nowrap;
  15260. overflow: hidden;
  15261. text-overflow: ellipsis;
  15262. margin-right: 20px;
  15263. font-weight: bold;
  15264. font-size: 14px;
  15265. }
  15266. .all_choose>>>.el-checkbox-group {
  15267. display: flex;
  15268. flex-direction: row;
  15269. width: 100%;
  15270. flex-wrap: wrap;
  15271. align-content: center;
  15272. justify-content: flex-start;
  15273. align-items: center;
  15274. margin-top: 3px;
  15275. }
  15276. .all_choose>.el-checkbox-group>>>.el-checkbox {
  15277. margin-bottom: 10px;
  15278. display: flex;
  15279. flex-direction: row;
  15280. align-items: center;
  15281. margin-right: 10px;
  15282. }
  15283. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  15284. min-width: 80px;
  15285. overflow: hidden;
  15286. width: 80px;
  15287. text-overflow: ellipsis;
  15288. white-space: nowrap;
  15289. }
  15290. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  15291. width: auto;
  15292. }
  15293. .choose>div:nth-child(3)>span {
  15294. /* letter-spacing: 0 !important; */
  15295. }
  15296. .choose {
  15297. display: flex;
  15298. flex-direction: column;
  15299. flex-wrap: nowrap;
  15300. height: 100%;
  15301. justify-content: space-evenly;
  15302. align-items: flex-start;
  15303. }
  15304. .both {
  15305. display: flex;
  15306. flex-direction: row;
  15307. flex-wrap: wrap;
  15308. width: 100%;
  15309. align-items: center;
  15310. justify-content: flex-start;
  15311. margin: 15px 0;
  15312. }
  15313. .notice>>>.el-dialog {
  15314. width: 500px !important;
  15315. text-align: center;
  15316. }
  15317. .notice>>>.el-button {
  15318. margin-top: 20px;
  15319. }
  15320. .whiteBg {
  15321. /* background: #fff; */
  15322. border-radius: 10px;
  15323. }
  15324. .wb_j_box {
  15325. display: flex;
  15326. width: 100%;
  15327. padding: 0 20px 0;
  15328. box-sizing: border-box;
  15329. }
  15330. .wb_j_box_content {
  15331. width: calc(100% - 55% - 100px);
  15332. display: flex;
  15333. align-items: center;
  15334. }
  15335. .wb_j_box_p_box {
  15336. max-width: calc(100% - 200px);
  15337. word-break: break-all;
  15338. overflow: hidden;
  15339. margin: 0 0 0 10px;
  15340. font-size: 14px;
  15341. color: #6e6e6e;
  15342. z-index: 999;
  15343. }
  15344. .chooseWho {
  15345. display: flex;
  15346. width: 410px;
  15347. flex-direction: row;
  15348. flex-wrap: nowrap;
  15349. justify-content: space-between;
  15350. padding-bottom: 10px;
  15351. }
  15352. .chooseWho>div {
  15353. cursor: pointer;
  15354. padding-bottom: 10px;
  15355. font-weight: bold;
  15356. }
  15357. .isChooseActive {
  15358. color: #3e88f4;
  15359. border-bottom: 2px solid #2f80f3;
  15360. }
  15361. .toolSort {
  15362. display: flex;
  15363. flex-direction: row;
  15364. flex-wrap: wrap;
  15365. justify-content: flex-start;
  15366. align-items: flex-start;
  15367. }
  15368. .toolSort>div {
  15369. margin-right: 10px;
  15370. }
  15371. .tools {
  15372. width: 100%;
  15373. display: flex;
  15374. flex-direction: column;
  15375. flex-wrap: nowrap;
  15376. align-items: flex-start;
  15377. }
  15378. .leftTools,
  15379. .rightTools {
  15380. width: 50%;
  15381. }
  15382. .leftTools+.leftTools {
  15383. border-top: 1px solid #dbdbdb;
  15384. padding-top: 30px;
  15385. }
  15386. .rightTools {
  15387. display: flex;
  15388. flex-direction: row;
  15389. flex-wrap: nowrap;
  15390. justify-content: space-around;
  15391. }
  15392. .firstToolList {
  15393. display: flex;
  15394. flex-direction: column;
  15395. flex-wrap: nowrap;
  15396. align-items: center;
  15397. }
  15398. .iconList {
  15399. display: flex;
  15400. flex-direction: row;
  15401. flex-wrap: wrap;
  15402. justify-content: flex-start;
  15403. align-items: center;
  15404. margin: 20px 0 5px 0;
  15405. width: 240px;
  15406. min-width: 240px;
  15407. }
  15408. .iconTool {
  15409. display: flex;
  15410. flex-direction: column;
  15411. flex-wrap: nowrap;
  15412. align-items: center;
  15413. justify-content: flex-start;
  15414. margin: 15px 10px;
  15415. }
  15416. .toolIcon {
  15417. width: 50px;
  15418. }
  15419. .taskBorder {
  15420. /* border: 1px solid #CAD1DC; */
  15421. border-radius: 10px;
  15422. margin-top: 10px;
  15423. min-height: 670px;
  15424. position: relative;
  15425. background: #fff;
  15426. padding: 20px;
  15427. overflow: hidden;
  15428. box-sizing: border-box;
  15429. }
  15430. .smallTaskBorder {
  15431. height: 405px;
  15432. min-height: 405px !important;
  15433. overflow: hidden;
  15434. }
  15435. /* .taskBorder>div {
  15436. padding: 30px 30px 10px;
  15437. } */
  15438. .addTaskBorder {
  15439. /* border: 2px solid #5E9AFC; */
  15440. border-radius: 8px;
  15441. margin-top: 10px;
  15442. cursor: pointer;
  15443. /* height: 50px;
  15444. line-height: 50px; */
  15445. background: #fff;
  15446. padding: 15px 0;
  15447. display: flex;
  15448. align-items: center;
  15449. justify-content: center;
  15450. }
  15451. /* .addTaskBorder>div {
  15452. margin: 0 auto;
  15453. display: flex;
  15454. align-items: center;
  15455. justify-content: center;
  15456. }
  15457. .addTaskBorder>div>img {
  15458. width: 20px;
  15459. }
  15460. .addTaskBorder>div>span {
  15461. font-size: 16px;
  15462. margin-left: 10px;
  15463. color: #5E9AFC;
  15464. } */
  15465. .funBlock {
  15466. display: flex;
  15467. padding: 15px 0;
  15468. flex-direction: row;
  15469. justify-content: center;
  15470. align-items: center;
  15471. position: absolute;
  15472. right: 0;
  15473. bottom: 0;
  15474. background: #fff;
  15475. width: 100%;
  15476. height: 60px;
  15477. z-index: 9;
  15478. }
  15479. .fold {
  15480. display: flex;
  15481. margin: 0 20px;
  15482. flex-direction: row;
  15483. align-items: center;
  15484. cursor: pointer;
  15485. color: #2b7bff;
  15486. }
  15487. .arrow {
  15488. margin-right: 8px;
  15489. width: 16px;
  15490. height: 16px;
  15491. min-width: 16px;
  15492. min-height: 16px;
  15493. background-size: 100% 100%;
  15494. display: block;
  15495. background-image: url(../../../assets/icon/new/u_up.png);
  15496. /* border-left: 7px solid transparent;
  15497. border-bottom: 7px solid #717C8D;
  15498. border-top: 0px solid transparent;
  15499. border-right: 7px solid transparent; */
  15500. /* box-sizing: border-box; */
  15501. transition: all 0.3s;
  15502. }
  15503. .arrowZ {
  15504. transform: rotate(180deg);
  15505. }
  15506. .addToolFun {
  15507. display: flex;
  15508. width: 150px;
  15509. flex-direction: row;
  15510. align-items: center;
  15511. justify-content: center;
  15512. border: 2px dashed #cad1dc;
  15513. border-radius: 5px;
  15514. height: 50px;
  15515. margin: 35px auto 0;
  15516. cursor: pointer;
  15517. }
  15518. .addToolFun2 {
  15519. display: flex;
  15520. width: 150px;
  15521. border: 2px dashed #cad1dc;
  15522. flex-direction: row;
  15523. align-items: center;
  15524. justify-content: center;
  15525. border-radius: 5px;
  15526. height: 50px;
  15527. margin: 0 auto 0;
  15528. cursor: pointer;
  15529. }
  15530. .addToolFun2>div,
  15531. .addToolFun>div {
  15532. display: flex;
  15533. line-height: 50px;
  15534. }
  15535. .addToolImg {
  15536. width: 20px;
  15537. height: 20px;
  15538. margin-right: 10px;
  15539. }
  15540. .addToolsDia>>>.el-dialog__body {
  15541. padding: 20px;
  15542. }
  15543. .addToolsDia>>>.el-dialog__body>.toolChoose {
  15544. padding: 0;
  15545. }
  15546. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  15547. padding: 0;
  15548. border-bottom: none;
  15549. margin-bottom: 0;
  15550. }
  15551. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  15552. width: 100%;
  15553. }
  15554. .lineCss>>>.el-form-item__label {
  15555. width: auto !important;
  15556. }
  15557. .lineCss>>>.el-form-item__content {
  15558. margin-left: 50px !important;
  15559. }
  15560. .newSteps {
  15561. display: flex;
  15562. width: 100% !important;
  15563. /* height: 80px; */
  15564. cursor: pointer;
  15565. margin: 10px 0;
  15566. border-radius: 10px;
  15567. flex-direction: row;
  15568. align-content: center;
  15569. justify-content: center;
  15570. align-items: center;
  15571. margin: 0 !important;
  15572. }
  15573. /* 评价样式 */
  15574. .elist_css {
  15575. padding-bottom: 75px !important;
  15576. }
  15577. .elist_title {
  15578. margin-bottom: 10px;
  15579. }
  15580. .elist_input {
  15581. width: 100%;
  15582. }
  15583. .elist_input_box {
  15584. display: flex;
  15585. align-items: center;
  15586. flex-wrap: wrap;
  15587. }
  15588. .elist_input_box+.elist_input_box {
  15589. margin-top: 30px;
  15590. }
  15591. .elist_input .elist_input_box input {
  15592. font: inherit;
  15593. color: currentColor;
  15594. width: 100%;
  15595. /* max-width: calc(100% - 385px); */
  15596. max-width: calc(100% - 150px);
  15597. padding: 8px 14px;
  15598. display: block;
  15599. min-width: 0;
  15600. outline: none;
  15601. border: 1px solid rgba(0, 0, 0, 0.23);
  15602. border-radius: 4px;
  15603. box-sizing: border-box;
  15604. background: #fff;
  15605. margin: 0 20px 0 0;
  15606. }
  15607. .elist_input .elist_input_box span {
  15608. height: 36px;
  15609. line-height: 36px;
  15610. color: rgb(82, 82, 82);
  15611. min-width: 80px;
  15612. }
  15613. .elist_input .elist_input_box .remove {
  15614. height: 20px;
  15615. width: 20px;
  15616. min-height: 20px;
  15617. min-width: 20px;
  15618. background-size: 100% 100%;
  15619. background-position: unset;
  15620. margin-left: 5px;
  15621. }
  15622. .elist_input_box>>>.el-rate {
  15623. display: flex;
  15624. height: 36px;
  15625. align-items: center;
  15626. }
  15627. .elist_input_box .elist_inptu_text {
  15628. width: 100%;
  15629. display: flex;
  15630. align-items: center;
  15631. margin-top: 10px;
  15632. }
  15633. .elist_input_box .elist_inptu_text input {
  15634. /* width: 500px; */
  15635. width: 100%;
  15636. max-width: unset;
  15637. }
  15638. .elist_input_box>>>.el-rate__icon {
  15639. font-size: 24px;
  15640. }
  15641. .elist_btn {
  15642. margin-top: 10px;
  15643. }
  15644. .lineTitle {
  15645. /* margin-top: 15px; */
  15646. width: 110px;
  15647. font-size: 16px;
  15648. display: flex;
  15649. align-items: center;
  15650. line-height: 20px;
  15651. }
  15652. .lineTitle::before {
  15653. content: "";
  15654. display: block;
  15655. width: 3px;
  15656. height: 20px;
  15657. background: #0061ff;
  15658. border-radius: 3px;
  15659. margin: 0 5px 0 0;
  15660. }
  15661. .clineTitle::before {
  15662. content: "";
  15663. display: block;
  15664. min-width: 10px;
  15665. width: 10px;
  15666. height: 10px;
  15667. background: #0061ff;
  15668. border-radius: 50%;
  15669. margin: 0 5px 0 0;
  15670. }
  15671. .courseTop {
  15672. display: flex;
  15673. flex-direction: row;
  15674. justify-content: space-between;
  15675. align-items: center;
  15676. width: calc(100% - 40px);
  15677. margin: 0 auto;
  15678. padding: 10px 0;
  15679. }
  15680. .stepsNav {
  15681. display: flex;
  15682. flex-direction: row;
  15683. justify-content: flex-start;
  15684. align-items: center;
  15685. }
  15686. .stepsWord {
  15687. font-size: 18px;
  15688. color: #fff;
  15689. font-weight: bold;
  15690. margin-left: auto;
  15691. background: rgb(15, 126, 255);
  15692. border-radius: 5px;
  15693. padding: 3px 25px;
  15694. box-sizing: border-box;
  15695. }
  15696. .stepBox {
  15697. width: calc(100% - 40px);
  15698. height: calc(100% - 50px);
  15699. overflow: hidden;
  15700. border-radius: 5px;
  15701. margin: 0 auto;
  15702. }
  15703. .rightBox {
  15704. width: calc(100%);
  15705. background: #f0f2f5;
  15706. /* border-radius: 10px; */
  15707. overflow: auto;
  15708. height: calc(100% - 150px);
  15709. margin: 0 auto;
  15710. position: relative;
  15711. box-sizing: border-box;
  15712. }
  15713. .e_add_top {
  15714. display: flex;
  15715. justify-content: space-between;
  15716. background: #fff;
  15717. position: absolute;
  15718. right: 20px;
  15719. height: 50px;
  15720. align-items: center;
  15721. }
  15722. .e_add_title2 {
  15723. display: flex;
  15724. align-items: center;
  15725. }
  15726. .e_add_title2 span {
  15727. width: 40px;
  15728. }
  15729. .e_add_title {
  15730. display: flex;
  15731. align-items: center;
  15732. color: #b8b8b8;
  15733. font-size: 18px;
  15734. position: relative;
  15735. height: 40px;
  15736. }
  15737. .e_add_title span {
  15738. margin-right: 10px;
  15739. }
  15740. .e_add_title .el_input {
  15741. width: 300px;
  15742. }
  15743. .e_add_title>>>.el-input__inner {
  15744. width: 400px;
  15745. }
  15746. .e_add_btn {}
  15747. .e_add_content {
  15748. display: flex;
  15749. width: 100%;
  15750. }
  15751. .e_add_list {
  15752. background: #fff;
  15753. height: 500px;
  15754. width: 210px;
  15755. position: relative;
  15756. margin: 15px 5px 0 0;
  15757. flex-shrink: 0;
  15758. display: flex;
  15759. flex-direction: column;
  15760. }
  15761. .e_add_list_title {
  15762. font-size: 20px;
  15763. width: 100%;
  15764. box-sizing: border-box;
  15765. padding: 15px 40px;
  15766. text-align: center;
  15767. border-bottom: 1px solid #eaeaea;
  15768. position: relative;
  15769. display: flex;
  15770. align-items: center;
  15771. justify-content: center;
  15772. height: 57px;
  15773. background: #f6f6f6;
  15774. }
  15775. .e_add_list_title span {
  15776. overflow: hidden;
  15777. white-space: nowrap;
  15778. text-overflow: ellipsis;
  15779. }
  15780. .e_add_list_title img {
  15781. position: absolute;
  15782. right: 15px;
  15783. width: 25px;
  15784. cursor: pointer;
  15785. top: 50%;
  15786. transform: translateY(-50%);
  15787. }
  15788. .e_add_list_body {
  15789. height: calc(100% - 187px);
  15790. overflow: auto;
  15791. }
  15792. .e_add_list_child {
  15793. width: 100%;
  15794. display: flex;
  15795. align-items: center;
  15796. justify-content: center;
  15797. position: relative;
  15798. box-sizing: border-box;
  15799. padding: 15px 40px;
  15800. text-align: center;
  15801. }
  15802. .e_add_list_child span {
  15803. overflow: hidden;
  15804. white-space: nowrap;
  15805. text-overflow: ellipsis;
  15806. cursor: pointer;
  15807. }
  15808. .e_add_list_child img {
  15809. position: absolute;
  15810. right: 10px;
  15811. width: 21px;
  15812. cursor: pointer;
  15813. top: 50%;
  15814. transform: translateY(-50%);
  15815. }
  15816. .e_add_list_child+.e_add_list_child {
  15817. border-top: 1px solid #eaeaea;
  15818. }
  15819. .e_add_list_child .active {
  15820. color: #409eff;
  15821. }
  15822. .e_add_list_btn {
  15823. position: absolute;
  15824. bottom: 0;
  15825. height: 50px;
  15826. background: rgb(120, 120, 254);
  15827. width: 100%;
  15828. color: #fff;
  15829. font-size: 16px;
  15830. text-align: center;
  15831. line-height: 50px;
  15832. cursor: pointer;
  15833. }
  15834. .e_add_list_detail {
  15835. position: absolute;
  15836. bottom: 0;
  15837. height: 130px;
  15838. background: rgb(120, 120, 254);
  15839. width: 100%;
  15840. color: #fff;
  15841. font-size: 16px;
  15842. display: flex;
  15843. align-items: center;
  15844. justify-content: center;
  15845. }
  15846. .e_add_list_detail textarea {
  15847. height: 90%;
  15848. width: 95%;
  15849. border: none;
  15850. resize: none;
  15851. outline: none;
  15852. padding: 5px;
  15853. box-sizing: border-box;
  15854. }
  15855. .e_add_list_pbox {
  15856. width: 100%;
  15857. }
  15858. .e_add_list_pbox_title {
  15859. height: 50px;
  15860. background: #fff;
  15861. display: flex;
  15862. align-items: center;
  15863. width: 100%;
  15864. box-sizing: border-box;
  15865. padding: 0 20px;
  15866. flex-direction: row;
  15867. flex-wrap: wrap;
  15868. }
  15869. .type_title {
  15870. font-size: 18px;
  15871. font-weight: 700;
  15872. }
  15873. .type_content {
  15874. font-size: 16px;
  15875. margin-left: 30px;
  15876. }
  15877. .type_content span+span {
  15878. margin-left: 20px;
  15879. }
  15880. .type_content span {
  15881. cursor: pointer;
  15882. padding-bottom: 5px;
  15883. box-sizing: border-box;
  15884. }
  15885. .type_content .active {
  15886. color: #409eff;
  15887. border-bottom: 2px solid #409eff;
  15888. }
  15889. .e_add_list_pbox_content {
  15890. height: calc(100% - 50px);
  15891. display: flex;
  15892. align-items: center;
  15893. width: 100%;
  15894. background: #fff;
  15895. }
  15896. .mbCss {
  15897. width: 100%;
  15898. display: flex;
  15899. flex-direction: row;
  15900. flex-wrap: nowrap;
  15901. align-content: center;
  15902. align-items: flex-start;
  15903. justify-content: flex-start;
  15904. }
  15905. .pjCss {
  15906. /* width: 42%; */
  15907. width: calc(100% - 55%);
  15908. display: flex;
  15909. flex-direction: column;
  15910. flex-wrap: nowrap;
  15911. align-items: flex-start;
  15912. }
  15913. .e_box {
  15914. /* display: flex; */
  15915. flex-wrap: wrap;
  15916. max-height: 500px;
  15917. align-items: flex-start;
  15918. overflow: auto;
  15919. width: 100%;
  15920. }
  15921. .e_card {
  15922. border: 1px solid #ccc;
  15923. background: #fff;
  15924. margin-right: 20px;
  15925. width: 270px;
  15926. display: flex;
  15927. flex-direction: column;
  15928. align-items: center;
  15929. border-radius: 5px;
  15930. margin-top: 10px;
  15931. text-align: center;
  15932. }
  15933. .e_card_picture {
  15934. margin: 10px 0;
  15935. }
  15936. .e_card_picture>img {
  15937. width: 50px;
  15938. }
  15939. .e_card_name {
  15940. width: 100%;
  15941. padding: 0 10px;
  15942. box-sizing: border-box;
  15943. margin-bottom: 10px;
  15944. overflow: hidden;
  15945. text-overflow: ellipsis;
  15946. white-space: nowrap;
  15947. }
  15948. .e_card_time {
  15949. width: 100%;
  15950. padding: 0 10px;
  15951. box-sizing: border-box;
  15952. font-size: 15px;
  15953. color: #c3c3c3;
  15954. margin-bottom: 10px;
  15955. }
  15956. .e_card_btn {
  15957. height: 40px;
  15958. display: flex;
  15959. align-items: center;
  15960. width: 100%;
  15961. background: rgb(244, 244, 244);
  15962. }
  15963. .e_card_btn:hover {
  15964. background: rgb(221 221 221);
  15965. }
  15966. .e_card_btn span {
  15967. flex: 1 1 auto;
  15968. text-align: center;
  15969. cursor: pointer;
  15970. }
  15971. .addEva {
  15972. border: 1px solid #ccc;
  15973. background: #fff;
  15974. margin-right: 20px;
  15975. width: 270px;
  15976. height: 149px;
  15977. display: flex;
  15978. flex-direction: column;
  15979. align-items: center;
  15980. border-radius: 5px;
  15981. margin-top: 10px;
  15982. text-align: center;
  15983. cursor: pointer;
  15984. justify-content: center;
  15985. }
  15986. .addEva>img {
  15987. width: 50px;
  15988. object-fit: cover;
  15989. }
  15990. .uploadFm {
  15991. border: 1px dashed #ccc;
  15992. width: 100%;
  15993. height: 140px;
  15994. position: relative;
  15995. cursor: pointer;
  15996. display: flex;
  15997. flex-direction: column;
  15998. justify-content: center;
  15999. align-items: center;
  16000. font-size: 14px;
  16001. color: #6e6e6e;
  16002. position: relative;
  16003. }
  16004. .cover_p {
  16005. width: 100% !important;
  16006. height: 100%;
  16007. object-fit: cover;
  16008. }
  16009. .uploadFm2:hover .cover_mask {
  16010. display: flex !important;
  16011. }
  16012. .cover_mask {
  16013. display: none;
  16014. width: 100%;
  16015. height: 100%;
  16016. position: absolute;
  16017. background: #00000054;
  16018. align-items: center;
  16019. justify-content: center;
  16020. flex-direction: column;
  16021. }
  16022. .cover_mask>img {
  16023. width: 30px;
  16024. }
  16025. .cover_mask>span {
  16026. color: #fff;
  16027. font-size: 12px;
  16028. }
  16029. .uploadFm>img {
  16030. width: 50px;
  16031. }
  16032. .fileCss {
  16033. width: 100%;
  16034. display: flex;
  16035. flex-direction: row;
  16036. flex-wrap: nowrap;
  16037. justify-content: space-around;
  16038. align-items: center;
  16039. padding-top: 15px;
  16040. }
  16041. .fileCss>div {
  16042. display: flex;
  16043. flex-direction: column;
  16044. align-items: center;
  16045. }
  16046. .fileCss .spanName {
  16047. margin-top: 10px;
  16048. }
  16049. .sysPicBox {
  16050. display: flex;
  16051. flex-direction: row;
  16052. flex-wrap: wrap;
  16053. align-content: flex-start;
  16054. height: 435px;
  16055. overflow: auto;
  16056. position: relative;
  16057. }
  16058. .picNone {
  16059. position: absolute;
  16060. left: 50%;
  16061. top: 45%;
  16062. transform: translate(-50%, -50%);
  16063. width: fit-content;
  16064. color: #9c9c9c;
  16065. }
  16066. .sysPic {
  16067. width: 200px;
  16068. height: 115px;
  16069. margin: 0 20px 20px 0;
  16070. cursor: pointer;
  16071. }
  16072. .sysPic>img,
  16073. .isSysPic>img,
  16074. .deletePic>img {
  16075. width: 100%;
  16076. height: 100%;
  16077. object-fit: cover;
  16078. }
  16079. .isSysPic {
  16080. width: 200px;
  16081. height: 115px;
  16082. position: relative;
  16083. }
  16084. .deletePic {
  16085. width: 20px;
  16086. height: 20px;
  16087. position: absolute;
  16088. top: 0;
  16089. right: 0;
  16090. cursor: pointer;
  16091. }
  16092. .select_box1 {
  16093. height: 100%;
  16094. }
  16095. .select_box1_img {
  16096. background: #fff;
  16097. border-radius: 5px;
  16098. padding: 15px;
  16099. box-sizing: border-box;
  16100. margin-bottom: 20px;
  16101. }
  16102. .select_box1_title {
  16103. padding: 0 0 15px 0;
  16104. border-bottom: 1px solid #eee;
  16105. margin-bottom: 15px;
  16106. }
  16107. .select_box1_title span:nth-child(1) {
  16108. font-size: 16px;
  16109. margin-right: 20px;
  16110. color: #000;
  16111. }
  16112. .select_box1_title span:nth-child(2) {
  16113. font-size: 14px;
  16114. color: rgb(112, 112, 112);
  16115. }
  16116. .select_box1_add_img {}
  16117. .select_box1_select {
  16118. background: #fff;
  16119. border-radius: 5px;
  16120. padding: 15px;
  16121. box-sizing: border-box;
  16122. height: calc(100% - 200px);
  16123. overflow: auto;
  16124. }
  16125. .select_box2 {
  16126. height: 100%;
  16127. }
  16128. .select_box2_title {
  16129. background: #fff;
  16130. border-radius: 5px;
  16131. padding: 5px 10px;
  16132. box-sizing: border-box;
  16133. margin-bottom: 10px;
  16134. }
  16135. .select_box2_box {
  16136. display: flex;
  16137. height: calc(100% - 30px);
  16138. }
  16139. .select_box2_img {
  16140. width: calc(100% - 310px);
  16141. height: 100%;
  16142. overflow: auto;
  16143. background: #fff;
  16144. border-radius: 5px;
  16145. }
  16146. .select_box2_img img {
  16147. width: 100%;
  16148. }
  16149. .select_box2_answer {
  16150. background: #fff;
  16151. margin-left: 10px;
  16152. border-radius: 5px;
  16153. width: 300px;
  16154. overflow: auto;
  16155. height: 100%;
  16156. display: flex;
  16157. flex-direction: column;
  16158. align-items: center;
  16159. padding-top: 10px;
  16160. box-sizing: border-box;
  16161. }
  16162. .select_box2_answer_box {
  16163. margin: 0 0 10px 0;
  16164. width: 85%;
  16165. }
  16166. .rate_textarea {
  16167. font: inherit;
  16168. color: currentColor;
  16169. width: 100%;
  16170. padding: 8px 14px;
  16171. display: block;
  16172. min-width: 0;
  16173. outline: none;
  16174. border: 1px solid rgba(0, 0, 0, 0.23);
  16175. border-radius: 4px;
  16176. box-sizing: border-box;
  16177. background: #fff;
  16178. margin: 0 20px 0 0;
  16179. resize: none;
  16180. }
  16181. .select_answer_title {
  16182. text-align: left;
  16183. width: 85%;
  16184. margin-bottom: 10px;
  16185. font-size: 18px;
  16186. color: #8e8e8e;
  16187. }
  16188. .mask {
  16189. background-color: rgb(0 0 0 / 30%);
  16190. /* position: fixed; */
  16191. position: absolute;
  16192. top: 0;
  16193. left: 0;
  16194. width: 100%;
  16195. height: 100%;
  16196. z-index: 90;
  16197. display: flex;
  16198. align-items: center;
  16199. justify-content: center;
  16200. }
  16201. .progressBox {
  16202. width: 300px;
  16203. height: 150px;
  16204. background: #fff;
  16205. border-radius: 10px;
  16206. box-shadow: 0 0 6px 1px #bfbfbf;
  16207. display: flex;
  16208. align-items: center;
  16209. justify-content: center;
  16210. flex-direction: column;
  16211. position: relative;
  16212. color: #6c6c6c;
  16213. }
  16214. .progressBox>>>.el-progress-bar__outer {
  16215. background-color: #d1dfff !important;
  16216. }
  16217. .progressBox .lbox {
  16218. height: 50px;
  16219. font-size: 19px;
  16220. display: flex;
  16221. align-items: center;
  16222. color: #747474;
  16223. }
  16224. .progressBox .lbox img {
  16225. width: 40px;
  16226. margin-right: 20px;
  16227. }
  16228. .closeCss {
  16229. position: absolute;
  16230. top: 8px;
  16231. right: 8px;
  16232. cursor: pointer;
  16233. width: 20px;
  16234. height: 20px;
  16235. }
  16236. .closeCss>img {
  16237. width: 100%;
  16238. height: 100%;
  16239. }
  16240. .updateTips::before {
  16241. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  16242. font-size: 14px;
  16243. margin-left: 20px;
  16244. font-weight: 400;
  16245. color: #ff3a3a;
  16246. margin-bottom: 10px;
  16247. display: block;
  16248. }
  16249. .updateMask {
  16250. width: 100%;
  16251. z-index: 3;
  16252. top: 0;
  16253. position: absolute;
  16254. /* background-color: rgba(0,0,0,.3); */
  16255. }
  16256. .t_j_box {
  16257. display: flex;
  16258. }
  16259. .t_j_box span:nth-child(1) {
  16260. width: 15%;
  16261. overflow: hidden;
  16262. margin-right: 10px;
  16263. text-overflow: ellipsis;
  16264. white-space: nowrap;
  16265. }
  16266. .t_j_box span:nth-child(2) {
  16267. width: 30%;
  16268. overflow: hidden;
  16269. text-overflow: ellipsis;
  16270. margin-right: 10px;
  16271. }
  16272. .t_j_box span:nth-child(3) {
  16273. max-width: calc(55% - 20px);
  16274. overflow: hidden;
  16275. text-overflow: ellipsis;
  16276. }
  16277. .sentenBox {
  16278. background: #fff;
  16279. height: 600px;
  16280. overflow: auto;
  16281. background-image: url("../../../assets/icon/conSentences/csBg.png");
  16282. background-position: 102%;
  16283. background-repeat: no-repeat;
  16284. background-size: 60%;
  16285. }
  16286. .sentenBox>.sentenContent {
  16287. padding-bottom: 10px;
  16288. width: 97%;
  16289. margin: 0 auto;
  16290. }
  16291. .sentenBox>.sentenContent+.sentenContent {
  16292. border-top: 1px solid #cbcbcb;
  16293. }
  16294. .addSen {
  16295. background: #409efe;
  16296. width: 90px;
  16297. color: #fff;
  16298. height: 35px;
  16299. text-align: center;
  16300. line-height: 35px;
  16301. border-radius: 5px;
  16302. float: right;
  16303. margin: 10px 20px 0 0;
  16304. cursor: pointer;
  16305. }
  16306. .sentenTop {
  16307. display: flex;
  16308. flex-direction: row;
  16309. flex-wrap: nowrap;
  16310. align-items: center;
  16311. }
  16312. .sentenTop::before {
  16313. content: attr(index);
  16314. background: #3681fc;
  16315. border-radius: 50%;
  16316. color: #fff;
  16317. width: 25px;
  16318. height: 25px;
  16319. min-width: 25px;
  16320. min-height: 25px;
  16321. text-align: center;
  16322. line-height: 25px;
  16323. margin-right: 5px;
  16324. }
  16325. .sentenTop>div:nth-child(2) {
  16326. width: 300px;
  16327. margin: 0 15px;
  16328. }
  16329. .sentenTop>div:nth-child(3) {
  16330. background: #409efe;
  16331. color: #fff;
  16332. width: 65px;
  16333. height: 35px;
  16334. text-align: center;
  16335. line-height: 35px;
  16336. border-radius: 5px;
  16337. cursor: pointer;
  16338. }
  16339. .cardList {
  16340. padding: 30px 0 20px 0;
  16341. display: flex;
  16342. flex-direction: row;
  16343. flex-wrap: wrap;
  16344. align-items: center;
  16345. box-sizing: border-box;
  16346. border-bottom: 1px solid #f4f4f4;
  16347. width: 98%;
  16348. margin: 0 auto;
  16349. }
  16350. .rightCardList {
  16351. display: flex;
  16352. flex-wrap: wrap;
  16353. }
  16354. .cardBox {
  16355. display: flex;
  16356. flex-direction: row;
  16357. flex-wrap: wrap;
  16358. align-items: center;
  16359. align-content: center;
  16360. }
  16361. .isCard,
  16362. .isCard1 {
  16363. width: auto;
  16364. padding: 0 20px;
  16365. height: 65px;
  16366. text-align: center;
  16367. line-height: 65px;
  16368. font-size: 14px;
  16369. cursor: pointer;
  16370. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  16371. background-size: 100% 100%;
  16372. position: relative;
  16373. z-index: 99;
  16374. }
  16375. .isCard1 {
  16376. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  16377. }
  16378. .isCard:hover .deleteWord {
  16379. display: block;
  16380. }
  16381. .isCard>div:nth-child(1),
  16382. .isCard1>div:nth-child(1) {
  16383. white-space: nowrap;
  16384. overflow: hidden;
  16385. text-overflow: ellipsis;
  16386. width: 100%;
  16387. margin: 0 auto;
  16388. }
  16389. .card {
  16390. width: 140px;
  16391. height: 65px;
  16392. }
  16393. .card>img {
  16394. width: 100%;
  16395. height: 100%;
  16396. }
  16397. .rightCardBox {
  16398. width: 98%;
  16399. margin: 10px auto 0;
  16400. }
  16401. .rightCardBox>div:nth-child(1) {
  16402. margin-bottom: 10px;
  16403. }
  16404. .cardCss {
  16405. display: flex;
  16406. flex-direction: column;
  16407. flex-wrap: nowrap;
  16408. align-items: center;
  16409. border-bottom: 3px solid #b4c3d3;
  16410. padding: 0 0 5px 0;
  16411. /* margin-right: 10px; */
  16412. }
  16413. .cardCss>div:nth-child(2) {
  16414. background: #5b7b9d;
  16415. color: #fff;
  16416. width: 20px;
  16417. height: 20px;
  16418. border-radius: 50%;
  16419. text-align: center;
  16420. line-height: 20px;
  16421. }
  16422. .sentenTopBox {
  16423. display: flex;
  16424. flex-direction: row;
  16425. flex-wrap: nowrap;
  16426. align-items: center;
  16427. justify-content: space-between;
  16428. padding: 55px 0 0 20px;
  16429. box-sizing: border-box;
  16430. width: 85%;
  16431. }
  16432. .rb_c_ai_box,
  16433. .stepsBottom {
  16434. width: 100%;
  16435. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  16436. /* background: #f7f7f7; */
  16437. border-radius: 10px;
  16438. overflow: hidden;
  16439. /* height: 100%; */
  16440. height: calc(100% - 55px);
  16441. }
  16442. .navTop {
  16443. background: #53749b;
  16444. color: #fff;
  16445. height: 40px;
  16446. line-height: 40px;
  16447. padding-left: 15px;
  16448. font-size: 18px;
  16449. }
  16450. .navBottom {
  16451. /* background: #6b91b7; */
  16452. height: 100%;
  16453. overflow: auto;
  16454. padding: 10px 0;
  16455. }
  16456. .navStage {
  16457. display: flex;
  16458. flex-direction: row;
  16459. flex-wrap: nowrap;
  16460. align-items: center;
  16461. padding: 10px 10px 10px 0;
  16462. cursor: pointer;
  16463. background: #ffffff;
  16464. width: 95%;
  16465. margin: 5px auto 5px;
  16466. box-sizing: border-box;
  16467. border-radius: 5px;
  16468. flex-wrap: wrap;
  16469. position: relative;
  16470. }
  16471. .navStage:hover>.chapter_upload_drag {
  16472. display: block;
  16473. }
  16474. .navTask:hover>.chapter_upload_drag {
  16475. display: block;
  16476. }
  16477. .chapter_upload:hover>.chapter_upload_drag {
  16478. display: block;
  16479. }
  16480. .navStage::before {
  16481. content: "";
  16482. display: block;
  16483. width: 16px;
  16484. height: 16px;
  16485. background-image: url(../../../assets/icon/new/icon_stage.png);
  16486. background-size: 100%;
  16487. margin-left: 25px;
  16488. }
  16489. .navStage .chapter_unit_open {
  16490. content: "";
  16491. display: block;
  16492. width: 16px;
  16493. height: 16px;
  16494. background-image: url(../../../assets/icon/new/down.png);
  16495. transform: rotate(-90deg);
  16496. background-size: 100%;
  16497. margin-left: 10px;
  16498. transition: all 0.5s;
  16499. }
  16500. .isNavStageOpen .chapter_unit_open {
  16501. transform: rotate(0deg);
  16502. }
  16503. .isNavStage {
  16504. background: #0061ff;
  16505. }
  16506. .isNavStage::before {
  16507. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  16508. }
  16509. .isNavStage .chapter_unit_open {
  16510. background-image: url(../../../assets/icon/new/downC.png);
  16511. }
  16512. .isNavStage .nt_taskName {
  16513. font-weight: bold !important;
  16514. color: #ffffff !important;
  16515. }
  16516. .isNavStage .nt_taskTitle {
  16517. font-weight: bold !important;
  16518. color: #fff !important;
  16519. }
  16520. .navStage .nt_taskBox {
  16521. width: calc(100% - 68px);
  16522. padding: 0 0 0 5px;
  16523. box-sizing: border-box;
  16524. box-sizing: border-box;
  16525. display: flex;
  16526. flex-direction: row;
  16527. flex-wrap: nowrap;
  16528. align-items: baseline;
  16529. }
  16530. .navStage .nt_taskTitle {
  16531. color: #060e17;
  16532. line-height: 25px;
  16533. font-size: 16px;
  16534. }
  16535. .navStage .nt_taskName {
  16536. max-width: calc(100% - 82px);
  16537. white-space: nowrap;
  16538. overflow: hidden;
  16539. text-overflow: ellipsis;
  16540. font-size: 16px;
  16541. color: #060e17;
  16542. }
  16543. .navTask {
  16544. display: flex;
  16545. flex-direction: row;
  16546. flex-wrap: nowrap;
  16547. align-items: center;
  16548. padding: 10px 10px 10px 0;
  16549. cursor: pointer;
  16550. background: #ffffff;
  16551. width: 95%;
  16552. margin: 5px auto 5px;
  16553. box-sizing: border-box;
  16554. border-radius: 5px;
  16555. flex-wrap: wrap;
  16556. position: relative;
  16557. }
  16558. .navTask .chapter_upload_open {
  16559. content: "";
  16560. display: block;
  16561. width: 16px;
  16562. height: 16px;
  16563. background-image: url(../../../assets/icon/new/icon_arrow.png);
  16564. background-size: 100%;
  16565. margin-left: 23px;
  16566. }
  16567. .noImage .chapter_upload_open {
  16568. display: none;
  16569. background-image: unset !important;
  16570. }
  16571. .isNavOpen .chapter_upload_open {
  16572. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  16573. transform: rotate(90deg);
  16574. }
  16575. .isNavTask .chapter_upload_open {
  16576. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  16577. transform: rotate(-90deg);
  16578. }
  16579. .isNavTask.isNavOpen .chapter_upload_open {
  16580. transform: rotate(0deg);
  16581. }
  16582. .dragOverTop {
  16583. border-top: 2px solid #0061ff !important;
  16584. border-radius: 0 !important;
  16585. margin-top: 10px;
  16586. }
  16587. .dragOverBottom {
  16588. border-bottom: 2px solid #0061ff !important;
  16589. border-radius: 0 !important;
  16590. margin-top: 10px;
  16591. }
  16592. .dragOverTop2 {
  16593. border-top: 2px solid #0061ff !important;
  16594. border-radius: 0 !important;
  16595. }
  16596. .dragOverBottom2 {
  16597. border-bottom: 2px solid #0061ff !important;
  16598. border-radius: 0 !important;
  16599. }
  16600. .isNavTask {
  16601. /* background: #3681FC; */
  16602. background: #eef3fb;
  16603. }
  16604. .isNavTask>.chapter_upload_drag {
  16605. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  16606. }
  16607. .isNavTask .nt_taskName {
  16608. /* color: #fff !important; */
  16609. font-weight: bold !important;
  16610. color: #0061ff !important;
  16611. }
  16612. .isNavTask .nt_taskTitle {
  16613. /* color: #AECCFE !important; */
  16614. font-weight: bold !important;
  16615. color: #0061ff !important;
  16616. }
  16617. .navTask .nt_taskBox {
  16618. width: calc(100% - 40px);
  16619. padding: 0 0 0 5px;
  16620. box-sizing: border-box;
  16621. box-sizing: border-box;
  16622. display: flex;
  16623. flex-direction: row;
  16624. flex-wrap: nowrap;
  16625. align-items: baseline;
  16626. }
  16627. .navTask .nt_taskTitle {
  16628. /* color: #717C8D; */
  16629. color: #060e17;
  16630. line-height: 25px;
  16631. font-size: 16px;
  16632. /* min-width: 66px; */
  16633. }
  16634. .navTask .nt_taskName {
  16635. /* color: #fff; */
  16636. /* max-width: 130px; */
  16637. /* width: 100%; */
  16638. max-width: calc(100% - 66px);
  16639. font-size: 16px;
  16640. color: #060e17;
  16641. /* color: #0E1E33; */
  16642. }
  16643. .navTask .nt_taskName span {
  16644. width: 100%;
  16645. white-space: nowrap;
  16646. overflow: hidden;
  16647. text-overflow: ellipsis;
  16648. display: block;
  16649. }
  16650. .gjBox {
  16651. width: calc(100% - 25px);
  16652. padding: 0 0 0 0;
  16653. box-sizing: border-box;
  16654. border-left: 1px solid #cad1dc;
  16655. margin-left: 25px;
  16656. }
  16657. .gjBox>div {
  16658. display: flex;
  16659. align-items: center;
  16660. }
  16661. .gjBox>div::before {
  16662. content: "";
  16663. height: 1px;
  16664. width: 10px;
  16665. background: #cad1dc;
  16666. display: block;
  16667. margin-right: 5px;
  16668. }
  16669. .gjCss {
  16670. display: flex;
  16671. flex-direction: row;
  16672. flex-wrap: nowrap;
  16673. align-items: center;
  16674. padding: 15px 0;
  16675. box-sizing: border-box;
  16676. font-size: 14px;
  16677. cursor: pointer;
  16678. }
  16679. .isGjCss {
  16680. color: #0061ff;
  16681. }
  16682. .groupBox {}
  16683. .groupContent+.groupContent {
  16684. margin-top: 30px;
  16685. }
  16686. .groupTitle {
  16687. font-size: 24px;
  16688. color: rgb(80, 80, 80);
  16689. margin-bottom: 20px;
  16690. }
  16691. .groupName {
  16692. display: flex;
  16693. align-items: center;
  16694. }
  16695. .groupn {
  16696. font-size: 15px;
  16697. margin-right: 10px;
  16698. }
  16699. .groupName+.groupName {
  16700. margin-top: 15px;
  16701. }
  16702. .groupBtn {
  16703. margin-left: 10px;
  16704. }
  16705. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  16706. text-align: left;
  16707. }
  16708. .radioBox>div {
  16709. margin: 10px 0 0 10px;
  16710. }
  16711. .radioBox>>>.el-radio__input,
  16712. .radioBox>>>.el-checkbox__inner {
  16713. margin-left: 10px;
  16714. }
  16715. .radioBox>>>.el-radio__label,
  16716. .radioBox>>>.el-checkbox__label {
  16717. display: flex;
  16718. align-items: center;
  16719. }
  16720. .inImg {
  16721. width: 50px;
  16722. }
  16723. .inImg>img {
  16724. width: 100%;
  16725. height: 100%;
  16726. object-fit: cover;
  16727. }
  16728. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  16729. height: auto;
  16730. padding: 10px;
  16731. margin: 0;
  16732. }
  16733. .upCss>>>.el-upload-list {
  16734. width: 100%;
  16735. }
  16736. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  16737. width: 100%;
  16738. height: 120px;
  16739. object-fit: contain;
  16740. background: unset;
  16741. margin-left: 0;
  16742. }
  16743. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  16744. display: none;
  16745. }
  16746. .tcMember+.tcMember::before {
  16747. content: "、";
  16748. }
  16749. .xzUpImg {
  16750. width: 25px;
  16751. height: 25px;
  16752. min-width: 25px;
  16753. min-height: 25px;
  16754. cursor: pointer;
  16755. margin: 0 10px;
  16756. }
  16757. .xzUpImg>img {
  16758. width: 100%;
  16759. height: 100%;
  16760. }
  16761. .closeCss {
  16762. position: absolute;
  16763. top: 8px;
  16764. right: 8px;
  16765. cursor: pointer;
  16766. width: 20px;
  16767. height: 20px;
  16768. }
  16769. .closeCss>img {
  16770. width: 100%;
  16771. height: 100%;
  16772. }
  16773. .moveBtn {
  16774. display: flex;
  16775. flex-direction: row;
  16776. flex-wrap: nowrap;
  16777. align-items: center;
  16778. width: 55px;
  16779. }
  16780. .timuUpImg {
  16781. display: flex;
  16782. flex-direction: row;
  16783. align-items: center;
  16784. width: 100%;
  16785. margin-right: 10px;
  16786. }
  16787. .timuUpImg>div:nth-child(1) {
  16788. margin-right: 10px;
  16789. display: flex;
  16790. align-items: center;
  16791. width: 100%;
  16792. }
  16793. .timuImgBox {
  16794. margin: 10px 0;
  16795. display: flex;
  16796. flex-direction: column;
  16797. flex-wrap: wrap;
  16798. align-items: flex-start;
  16799. }
  16800. .timuImg {
  16801. width: 100px;
  16802. margin: 5px 0;
  16803. cursor: pointer;
  16804. position: relative;
  16805. }
  16806. .timuImg:hover .deleteWord {
  16807. display: block;
  16808. }
  16809. .deleteWord {
  16810. width: 25px;
  16811. height: 25px;
  16812. position: absolute;
  16813. right: -5px;
  16814. top: -5px;
  16815. cursor: pointer;
  16816. display: none;
  16817. }
  16818. .timuImg>img,
  16819. .deleteWord>img {
  16820. width: 100%;
  16821. height: 100%;
  16822. object-fit: cover;
  16823. }
  16824. .e_add_delete {
  16825. cursor: pointer;
  16826. margin-left: 10px;
  16827. }
  16828. .pType_box {
  16829. margin-top: 30px;
  16830. align-items: flex-end;
  16831. }
  16832. .noneBox {
  16833. height: 200px;
  16834. width: 100%;
  16835. display: flex;
  16836. align-items: center;
  16837. justify-content: center;
  16838. flex-direction: column;
  16839. /* margin-top: 150px; */
  16840. }
  16841. .noneBox>img {
  16842. width: 95px;
  16843. }
  16844. .noneBox>span {
  16845. margin-top: 10px;
  16846. color: #717c8d;
  16847. }
  16848. .rb_c_box {
  16849. width: 100%;
  16850. height: 100%;
  16851. display: flex;
  16852. /* padding: 20px; */
  16853. box-sizing: border-box;
  16854. justify-content: space-between;
  16855. }
  16856. .rb_c_box_left {
  16857. height: 100%;
  16858. background: #fff;
  16859. width: 270px;
  16860. min-width: 270px;
  16861. border-radius: 8px;
  16862. margin-right: 10px;
  16863. }
  16864. .rb_c_box_right {
  16865. height: 100%;
  16866. width: calc(100%);
  16867. overflow: hidden;
  16868. }
  16869. .rb_c_box_btn {
  16870. display: flex;
  16871. justify-content: flex-start;
  16872. height: 50px;
  16873. align-items: center;
  16874. }
  16875. .rb_c_box_right>.basic_box {
  16876. /* background: #fff; */
  16877. border-radius: 0;
  16878. height: calc(100% - 0px);
  16879. overflow: auto;
  16880. padding: 0;
  16881. }
  16882. .textarea_css {
  16883. display: block;
  16884. resize: none;
  16885. padding: 10px 15px;
  16886. line-height: 1.5;
  16887. box-sizing: border-box;
  16888. width: 100%;
  16889. font-size: 14px;
  16890. color: #606266;
  16891. background-color: #fff;
  16892. background-image: none;
  16893. border: 1px solid #dcdfe6;
  16894. border-radius: 4px;
  16895. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  16896. outline: none;
  16897. overflow: hidden;
  16898. height: 46px;
  16899. font-family: "Microsoft YaHei";
  16900. }
  16901. .textarea_css::-webkit-input-placeholder {
  16902. color: #c0c4cc;
  16903. }
  16904. .textarea_css:focus {
  16905. border-color: #409eff;
  16906. outline: 0;
  16907. }
  16908. .addEditor>>>.text {
  16909. height: auto;
  16910. min-height: 100px;
  16911. }
  16912. .addEditor>>>.w-e-text-container {
  16913. min-height: 100px;
  16914. }
  16915. .moveBtn2 {
  16916. flex-direction: column;
  16917. width: fit-content;
  16918. margin: 0 10px 0 10px;
  16919. }
  16920. .moveBtn2 .chapter_upload_down,
  16921. .moveBtn2 .chapter_upload_up {
  16922. width: 16px;
  16923. height: 16px;
  16924. }
  16925. .moveBtn2 .chapter_upload_up::after,
  16926. .moveBtn2 .chapter_upload_down::after {
  16927. width: 10px;
  16928. height: 10px;
  16929. }
  16930. .fullStyle>>>.el-dialog__body {
  16931. height: calc(100% - 125px) !important;
  16932. box-sizing: border-box;
  16933. }
  16934. .fullStyle1>>>.el-dialog__body {
  16935. height: auto !important;
  16936. }
  16937. .fullStyle>>>.el-dialog {
  16938. width: 100% !important;
  16939. max-width: 100% !important;
  16940. height: 100% !important;
  16941. margin: 0 !important;
  16942. }
  16943. .fullStyle {
  16944. width: 100% !important;
  16945. max-width: 100% !important;
  16946. height: 100% !important;
  16947. margin: 0 auto !important;
  16948. }
  16949. .wb_j_box_btn {
  16950. width: calc(100% - 30px);
  16951. display: flex;
  16952. height: 40px;
  16953. border: 1.5px solid #cad1dc;
  16954. border-radius: 4px;
  16955. box-sizing: border-box;
  16956. align-items: center;
  16957. font-size: 14px;
  16958. cursor: pointer;
  16959. overflow: hidden;
  16960. }
  16961. .wb_j_box_btn:hover {
  16962. border: 1.5px solid #0061ff;
  16963. }
  16964. .wb_j_box_title {
  16965. background: #f0f4fa;
  16966. height: 100%;
  16967. line-height: 40px;
  16968. width: 90px;
  16969. text-align: center;
  16970. color: #060e17;
  16971. border-right: 1.5px solid #cad1dc;
  16972. box-sizing: border-box;
  16973. }
  16974. .wb_j_box_btn_c {
  16975. width: calc(100% - 90px);
  16976. padding: 0 35px 0 10px;
  16977. box-sizing: border-box;
  16978. position: relative;
  16979. }
  16980. .wb_j_box_span {
  16981. width: 100%;
  16982. overflow: hidden;
  16983. white-space: nowrap;
  16984. text-overflow: ellipsis;
  16985. word-wrap: break-word;
  16986. color: #717c8d;
  16987. }
  16988. .wb_j_box_arrow {
  16989. content: "";
  16990. width: 14px;
  16991. height: 14px;
  16992. background: url(../../../assets/icon/new/u_arrow.png);
  16993. background-size: 100% 100%;
  16994. position: absolute;
  16995. right: 12px;
  16996. top: 50%;
  16997. transform: translateY(-50%);
  16998. }
  16999. .check_classBox {
  17000. height: 400px;
  17001. display: flex;
  17002. border-top: 1.5px solid #e7ebf1;
  17003. border-bottom: 1.5px solid #e7ebf1;
  17004. }
  17005. .check_class_right {
  17006. width: 130px;
  17007. border-right: 1px solid #e7ebf1;
  17008. display: flex;
  17009. align-items: center;
  17010. flex-direction: column;
  17011. height: 100%;
  17012. overflow: auto;
  17013. padding: 15px 0;
  17014. box-sizing: border-box;
  17015. }
  17016. .check_class {
  17017. width: 85%;
  17018. border-radius: 5px;
  17019. height: 30px;
  17020. min-height: 30px;
  17021. line-height: 30px;
  17022. text-align: center;
  17023. padding: 0 10px;
  17024. box-sizing: border-box;
  17025. cursor: pointer;
  17026. white-space: nowrap;
  17027. overflow: hidden;
  17028. text-overflow: ellipsis;
  17029. }
  17030. .check_class.activeX {
  17031. background: #e0eafb;
  17032. color: #3681fc;
  17033. font-weight: 700;
  17034. }
  17035. .check_class+.check_class {
  17036. margin-top: 15px;
  17037. }
  17038. .check_class_left {
  17039. background: #fafafa;
  17040. width: calc(100% - 130px);
  17041. padding: 15px;
  17042. box-sizing: border-box;
  17043. }
  17044. .check_class_all_box {
  17045. display: flex;
  17046. margin-bottom: 10px;
  17047. }
  17048. .all_check {
  17049. display: flex;
  17050. align-items: center;
  17051. padding: 2px 0 0;
  17052. margin-left: 10px;
  17053. }
  17054. .all_check>>>.el-checkbox__label {
  17055. line-height: 18px;
  17056. }
  17057. .check_class_left_title {
  17058. font-size: 16px;
  17059. font-weight: 700;
  17060. }
  17061. .check_class_item {
  17062. display: flex;
  17063. flex-wrap: wrap;
  17064. height: calc(100% - 45px);
  17065. overflow: auto;
  17066. justify-content: flex-start;
  17067. align-items: flex-start;
  17068. align-content: flex-start;
  17069. }
  17070. .class_item:first-child {
  17071. /* margin: 0 15px 15px 67px; */
  17072. }
  17073. .class_item {
  17074. margin: 0 15px 15px 0;
  17075. }
  17076. .class_item:hover>>>.el-checkbox__label {
  17077. color: #409eff;
  17078. }
  17079. .class_item>>>.el-checkbox__label {
  17080. color: #0e1e33;
  17081. }
  17082. .class_item:hover>>>.el-checkbox__inner {
  17083. border-color: #409eff;
  17084. }
  17085. .class_item>>>.el-checkbox,
  17086. .class_item>>>.el-checkbox__input {
  17087. display: flex;
  17088. align-items: center;
  17089. }
  17090. .taskTitle {
  17091. font-size: 20px;
  17092. font-weight: bold;
  17093. margin-bottom: 35px;
  17094. }
  17095. .taskTitle:after {
  17096. content: "";
  17097. width: 100%;
  17098. display: block;
  17099. height: 1px;
  17100. background: #cad1dc;
  17101. position: absolute;
  17102. left: 0;
  17103. margin: 15px 0 0;
  17104. }
  17105. .eva_btn_box {
  17106. margin: 20px 0px 0 0;
  17107. display: flex;
  17108. flex-direction: row;
  17109. flex-wrap: nowrap;
  17110. align-items: center;
  17111. justify-content: space-between;
  17112. width: 100%;
  17113. }
  17114. .eva_btn_left_box {
  17115. display: flex;
  17116. flex-direction: row;
  17117. flex-wrap: nowrap;
  17118. align-items: center;
  17119. }
  17120. .addTypeChoose {
  17121. display: flex;
  17122. flex-direction: row;
  17123. flex-wrap: nowrap;
  17124. align-items: center;
  17125. margin: 15px 0;
  17126. }
  17127. .addTypeBox {
  17128. display: flex;
  17129. flex-direction: column;
  17130. flex-wrap: nowrap;
  17131. align-items: center;
  17132. }
  17133. .addTypeChoose {
  17134. display: flex;
  17135. flex-direction: row;
  17136. flex-wrap: nowrap;
  17137. align-items: center;
  17138. margin: 15px 0;
  17139. }
  17140. .buchong_box {
  17141. background: #E0EAFB66;
  17142. width: calc(100% - 20px);
  17143. min-height: 50px;
  17144. display: flex;
  17145. align-items: center;
  17146. justify-content: center;
  17147. margin: 0 auto;
  17148. }
  17149. .outline {
  17150. width: calc(100% - 40px);
  17151. margin: 0 auto;
  17152. }
  17153. .task_outline {
  17154. width: calc(100% - 40px);
  17155. margin: 0 auto;
  17156. }
  17157. .outline_box+.outline_box {
  17158. margin: 30px 0 0px;
  17159. }
  17160. .outline_task {
  17161. display: flex;
  17162. align-items: center;
  17163. margin-bottom: 10px;
  17164. }
  17165. .outline_task .title {
  17166. font-size: 18px;
  17167. font-weight: bold;
  17168. min-width: 80px;
  17169. }
  17170. .op_task_box,
  17171. .op_tool_box,
  17172. .outline_detail {
  17173. position: relative;
  17174. }
  17175. .op_task_box:hover .op_box,
  17176. .op_tool_box:hover .op_box,
  17177. .outline_detail:hover .op_box {
  17178. display: flex
  17179. }
  17180. .op_box {
  17181. position: absolute;
  17182. bottom: 10px;
  17183. display: none;
  17184. align-items: center;
  17185. justify-content: space-between;
  17186. width: calc(100% - 20px);
  17187. left: 50%;
  17188. transform: translateX(-50%);
  17189. }
  17190. .op_box .op_remark {
  17191. color: #8E8E8E;
  17192. font-size: 14px;
  17193. }
  17194. .rb_c_nav {
  17195. width: calc(100% - 20px);
  17196. margin: 15px auto 0;
  17197. font-size: 18px;
  17198. }
  17199. .rb_c_nav span {
  17200. cursor: pointer;
  17201. }
  17202. .rb_c_nav span+span {
  17203. margin-left: 10px;
  17204. }
  17205. .rb_c_nav span.active {
  17206. color: #0061FF
  17207. }
  17208. .text_panel>>>.text {
  17209. height: 400px;
  17210. }
  17211. </style>