addCourse3.vue 634 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944
  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. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  7420. name: file.name,
  7421. url: data.Location,
  7422. uid: file.uid,
  7423. type: _type,
  7424. })
  7425. } else if (type == 2 || type == 3 || type == 12) {
  7426. _this.infoData.push({
  7427. name: file.name,
  7428. url: data.Location,
  7429. uid: file.uid,
  7430. type: type,
  7431. });
  7432. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  7433. name: file.name,
  7434. url: data.Location,
  7435. uid: file.uid,
  7436. type: type,
  7437. })
  7438. }
  7439. console.log(data.Location);
  7440. }
  7441. });
  7442. }
  7443. },
  7444. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7445. // const loading = this.openLoading();
  7446. var file = event.target.files[0];
  7447. var credentials = {
  7448. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7449. secretAccessKey: "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",
  7450. }; //秘钥形式的登录上传
  7451. window.AWS.config.update(credentials);
  7452. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7453. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7454. var _this = this;
  7455. if (type == 3) {
  7456. var b = [
  7457. "DOC",
  7458. "DOCX",
  7459. "DOCM",
  7460. "DOTM",
  7461. "DOTX",
  7462. "PPTX",
  7463. "PPSX",
  7464. "PPT",
  7465. "PPS",
  7466. "PPTM",
  7467. "POTM",
  7468. "PPAM",
  7469. "POTX",
  7470. "PPSM",
  7471. ];
  7472. if (
  7473. b.indexOf(
  7474. file.name
  7475. .split(".")
  7476. [file.name.split(".").length - 1].toLocaleUpperCase()
  7477. ) != -1
  7478. ) {
  7479. if (file.size / 1024 / 1024 > 80) {
  7480. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7481. this.inputShow = true;
  7482. // var a = _this.$refs.upload1.uploadFiles;
  7483. // a.splice(a.length - 1, a.length);
  7484. // loading.close();
  7485. return;
  7486. }
  7487. } else if (
  7488. file.name
  7489. .split(".")
  7490. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7491. ) {
  7492. if (file.size / 1024 / 1024 > 80) {
  7493. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7494. this.inputShow = true;
  7495. // var a = _this.$refs.upload1.uploadFiles;
  7496. // a.splice(a.length - 1, a.length);
  7497. // loading.close();
  7498. return;
  7499. }
  7500. }
  7501. }
  7502. this.inputShow = false;
  7503. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7504. itemTaskIndex
  7505. ].progress = 0;
  7506. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7507. itemTaskIndex
  7508. ].proVisible = true;
  7509. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7510. itemTaskIndex
  7511. ].isFinishSize = 0;
  7512. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7513. itemTaskIndex
  7514. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7515. _this.$forceUpdate();
  7516. if (file) {
  7517. var params = {
  7518. Key:
  7519. file.name.split(".")[0] +
  7520. new Date().getTime() +
  7521. "." +
  7522. file.name.split(".")[file.name.split(".").length - 1],
  7523. ContentType: file.type,
  7524. Body: file,
  7525. "Access-Control-Allow-Credentials": "*",
  7526. ACL: "public-read",
  7527. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7528. var options = {
  7529. partSize: 2048 * 1024 * 1024,
  7530. queueSize: 2,
  7531. leavePartsOnError: true,
  7532. };
  7533. bucket
  7534. .upload(params, options)
  7535. .on("httpUploadProgress", function (evt) {
  7536. //这里可以写进度条
  7537. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7538. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7539. itemTaskIndex
  7540. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7541. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7542. itemTaskIndex
  7543. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7544. _this.$forceUpdate();
  7545. })
  7546. .send(function (err, data) {
  7547. // loading.close();
  7548. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7549. itemTaskIndex
  7550. ].progress = 100;
  7551. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7552. itemTaskIndex
  7553. ].isFinishSize =
  7554. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7555. itemTaskIndex
  7556. ].isAllSize;
  7557. _this.$forceUpdate();
  7558. setTimeout(() => {
  7559. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7560. itemTaskIndex
  7561. ].proVisible = false;
  7562. _this.$forceUpdate();
  7563. }, 1000);
  7564. _this.inputShow = true;
  7565. if (err) {
  7566. // var a = _this.$refs.upload1.uploadFiles;
  7567. // a.splice(a.length - 1, a.length);
  7568. _this.$message.error("上传失败");
  7569. } else {
  7570. if (type == 2 || type == 3) {
  7571. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7572. itemTaskIndex
  7573. ].chapterData.push({
  7574. name: file.name,
  7575. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7576. // itemTaskIndex
  7577. // ].chapterData.length+1),
  7578. url: data.Location,
  7579. uid: file.uid,
  7580. type: type,
  7581. text: string,
  7582. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7583. // itemTaskIndex
  7584. // ].chapterData.length + 1),
  7585. });
  7586. _this.imgChange1(null, null, type, itemTaskIndex);
  7587. } else if (type == 4) {
  7588. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7589. itemTaskIndex
  7590. ].fileList1.push({
  7591. name: file.name,
  7592. url: data.Location,
  7593. uid: file.uid,
  7594. });
  7595. _this.imgChange1(null, null, type, itemTaskIndex);
  7596. } else if (type == 5) {
  7597. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7598. itemTaskIndex
  7599. ].homeworkList.push({
  7600. name: file.name,
  7601. url: data.Location,
  7602. uid: file.uid,
  7603. });
  7604. _this.imgChange1(null, null, type, itemTaskIndex);
  7605. }
  7606. console.log(data.Location);
  7607. }
  7608. });
  7609. }
  7610. },
  7611. addunit() {
  7612. this.unitJson.push({
  7613. dyName: "", //单元标题
  7614. isUpdate: 1,
  7615. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  7616. chapterInfo: [
  7617. {
  7618. isread: false,
  7619. chapterid: this.guid(),
  7620. title: "",
  7621. courseName: "",
  7622. taskJson: [
  7623. {
  7624. task: "",
  7625. taskDetail: "",
  7626. chapterData: [],
  7627. toolText: "",
  7628. toolChoose: [
  7629. {
  7630. tool: [],
  7631. toolDetail: "",
  7632. toolType: 0,
  7633. askCount: 1,
  7634. askTitle: "",
  7635. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7636. },
  7637. ],
  7638. isShowTools: false,
  7639. askCount: 1,
  7640. isFold: 1,
  7641. askTitle: "",
  7642. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7643. checkJson: [{ checkCount: [], checkPerent: [] }],
  7644. homeworkList: [],
  7645. },
  7646. ],
  7647. itemCount: 1,
  7648. fileList1: [],
  7649. video: [],
  7650. testData: [],
  7651. pData: [],
  7652. templateArray: [],
  7653. },
  7654. ],
  7655. });
  7656. this.addindex = this.unitJson.length - 1;
  7657. setTimeout(() => {
  7658. this.unitIndex = this.unitJson.length - 1;
  7659. setTimeout(() => {
  7660. console.log(this.$refs.dyInput);
  7661. this.$refs.dyInput[0].focus();
  7662. }, 100);
  7663. this.unitSet(this.unitIndex);
  7664. }, 0);
  7665. },
  7666. addToolFun(itemTaskIndex) {
  7667. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7668. itemTaskIndex
  7669. ].toolChoose.push({
  7670. tool: [],
  7671. toolDetail: "",
  7672. toolType: 0,
  7673. askCount: 1,
  7674. askTitle: "",
  7675. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7676. });
  7677. },
  7678. addTaskBorder() {
  7679. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  7680. task: "",
  7681. taskDetail: "",
  7682. chapterData: [],
  7683. toolText: "",
  7684. toolChoose: [
  7685. {
  7686. tool: [],
  7687. toolDetail: "",
  7688. toolType: 0,
  7689. askCount: 1,
  7690. askTitle: "",
  7691. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7692. },
  7693. ],
  7694. isShowTools: false,
  7695. askCount: 1,
  7696. isFold: 1, //任务收起状态
  7697. askTitle: "",
  7698. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7699. checkJson: [{ checkCount: [], checkPerent: [] }],
  7700. homeworkList: [],
  7701. });
  7702. setTimeout(() => {
  7703. this.checkEva(this.checkId);
  7704. setTimeout(() => {
  7705. this.checkEva(this.checkId);
  7706. }, 100);
  7707. }, 100);
  7708. },
  7709. add(e, i) {
  7710. var el = e.currentTarget;
  7711. el.getElementsByTagName("input")[0].click();
  7712. },
  7713. fold(i, e) {
  7714. if (
  7715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  7716. ) {
  7717. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  7718. } else {
  7719. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  7720. }
  7721. },
  7722. fold2(i) {
  7723. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  7724. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7725. i
  7726. ].isFold2 = false;
  7727. } else {
  7728. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  7729. }
  7730. this.$forceUpdate();
  7731. },
  7732. foldEva(i) {
  7733. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  7734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7735. i
  7736. ].isEvaFold = false;
  7737. } else {
  7738. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7739. i
  7740. ].isEvaFold = true;
  7741. setTimeout(() => {
  7742. this.checkEva(this.checkId);
  7743. setTimeout(() => {
  7744. this.checkEva(this.checkId);
  7745. }, 500);
  7746. }, 0);
  7747. }
  7748. this.$forceUpdate();
  7749. },
  7750. foldC(i) {
  7751. if (
  7752. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  7753. ) {
  7754. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7755. i
  7756. ].isFoldchapter = false;
  7757. } else {
  7758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7759. i
  7760. ].isFoldchapter = true;
  7761. }
  7762. this.$forceUpdate();
  7763. },
  7764. fold3(i, ti) {
  7765. if (
  7766. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  7767. .isFold3
  7768. ) {
  7769. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7770. ti
  7771. ].isFold3 = false;
  7772. } else {
  7773. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7774. ti
  7775. ].isFold3 = true;
  7776. }
  7777. this.$forceUpdate();
  7778. },
  7779. deleteHomeworkBox(unitIndex, index, i) {
  7780. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  7781. this.taskCount
  7782. ].homeworkList.splice(i, 1);
  7783. },
  7784. getStudent() {
  7785. let params = {
  7786. oid: this.oid,
  7787. cu: "",
  7788. cn: this.searchPeople,
  7789. };
  7790. this.ajax
  7791. .get(this.$store.state.api + "selectStudentAdd", params)
  7792. .then((res) => {
  7793. this.studentJuri = res.data[0];
  7794. })
  7795. .catch((err) => {
  7796. this.isLoading = false;
  7797. console.error(err);
  7798. });
  7799. },
  7800. // 添加协同成员其他选项按钮
  7801. getTeacherCopy(){
  7802. this.CollLoading=true
  7803. this.collid = ''
  7804. this.collid = '1xpz'
  7805. let params = {
  7806. oid:
  7807. this.org && this.org != "undefined" && this.org != "null"
  7808. ? this.org
  7809. : this.oid,
  7810. cu: "",
  7811. cn: this.searchTN,
  7812. coll: ''
  7813. };
  7814. this.ajax
  7815. .get(
  7816. this.$store.state.api +
  7817. (this.org && this.org != "undefined" && this.org != "null"
  7818. ? "selectCollaborativeMembersOrg"
  7819. : "selectCollaborativeMembers"),
  7820. params
  7821. )
  7822. .then((res) => {
  7823. let teacherJuri = res.data[0];
  7824. this.CollaborativeTeaList = res.data[1];
  7825. for (var i = 0; i < teacherJuri.length; i++) {
  7826. if (teacherJuri[i].userid == this.userid) {
  7827. teacherJuri.splice(i, 1);
  7828. break;
  7829. }
  7830. }
  7831. this.teacherJuri = teacherJuri.filter((i,index)=>{
  7832. return (i.cclassid == '' || i.cclassid == null)
  7833. })
  7834. console.log(' this.teacherJuri', this.teacherJuri);
  7835. let _check = [];
  7836. let _check2 = [];
  7837. for (var i = 0; i < this.teacherJuri.length; i++) {
  7838. var gid = this.teacherJuri[i].userid;
  7839. _check.push(gid);
  7840. }
  7841. for (var i = 0; i < this.checkboxList3.length; i++) {
  7842. var _id = this.checkboxList3[i];
  7843. if (_check.indexOf(_id) !== -1) {
  7844. _check2.push(_id);
  7845. }
  7846. }
  7847. if (_check2.length==0 && _check.length==0) {
  7848. }else{
  7849. this.checkAll2 = _check2.length === _check.length;
  7850. }
  7851. this.CollLoading=false
  7852. })
  7853. .catch((err) => {
  7854. console.error(err);
  7855. this.CollLoading=false
  7856. });
  7857. },
  7858. getTeacher(val) {
  7859. this.CollLoading=true
  7860. this.collid = ''
  7861. this.collid = !val ? '' : val
  7862. let params = {
  7863. oid:
  7864. this.org && this.org != "undefined" && this.org != "null"
  7865. ? this.org
  7866. : this.oid,
  7867. cu: "",
  7868. cn: this.searchTN,
  7869. coll: this.collid
  7870. };
  7871. this.ajax
  7872. .get(
  7873. this.$store.state.api +
  7874. (this.org && this.org != "undefined" && this.org != "null"
  7875. ? "selectCollaborativeMembersOrg"
  7876. : "selectCollaborativeMembers"),
  7877. params
  7878. )
  7879. .then((res) => {
  7880. let teacherJuri = res.data[0];
  7881. this.CollaborativeTeaList = res.data[1];
  7882. for (var i = 0; i < teacherJuri.length; i++) {
  7883. if (teacherJuri[i].userid == this.userid) {
  7884. teacherJuri.splice(i, 1);
  7885. break;
  7886. }
  7887. }
  7888. this.teacherJuri = teacherJuri;
  7889. let _check = [];
  7890. let _check2 = [];
  7891. for (var i = 0; i < this.teacherJuri.length; i++) {
  7892. var gid = this.teacherJuri[i].userid;
  7893. _check.push(gid);
  7894. }
  7895. for (var i = 0; i < this.checkboxList3.length; i++) {
  7896. var _id = this.checkboxList3[i];
  7897. if (_check.indexOf(_id) !== -1) {
  7898. _check2.push(_id);
  7899. }
  7900. }
  7901. if (_check2.length==0 && _check.length==0) {
  7902. }else{
  7903. this.checkAll2 = _check2.length === _check.length;
  7904. }
  7905. this.CollLoading=false
  7906. })
  7907. .catch((err) => {
  7908. console.error(err);
  7909. this.CollLoading=false
  7910. });
  7911. },
  7912. searchStudent() {
  7913. this.getStudent();
  7914. },
  7915. selectGrage() {
  7916. let params = {
  7917. oid: this.oid,
  7918. };
  7919. this.ajax
  7920. .get(this.$store.state.api + "selectGrageBySchool", params)
  7921. .then((res) => {
  7922. this.gradeList = res.data[0];
  7923. })
  7924. .catch((err) => {
  7925. this.isLoading = false;
  7926. console.error(err);
  7927. });
  7928. },
  7929. //获取班级列表
  7930. getClass() {
  7931. let params = {
  7932. oid: this.oid,
  7933. gid: this.gradeId,
  7934. cn: this.classSearch,
  7935. };
  7936. this.ajax
  7937. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  7938. .then((res) => {
  7939. if (!this.grade.length) {
  7940. this.grade = res.data[0];
  7941. }
  7942. this.grade2 = res.data[0];
  7943. this.classJuri = res.data[0];
  7944. let _check = [];
  7945. let _check2 = [];
  7946. for (var i = 0; i < this.grade2.length; i++) {
  7947. var gid = this.grade2[i].id;
  7948. _check.push(gid);
  7949. }
  7950. for (var i = 0; i < this.checkboxList2.length; i++) {
  7951. var _id = this.checkboxList2[i];
  7952. if (_check.indexOf(_id) !== -1) {
  7953. _check2.push(_id);
  7954. }
  7955. }
  7956. this.checkAll = _check2.length === _check.length;
  7957. })
  7958. .catch((err) => {
  7959. this.isLoading = false;
  7960. console.error(err);
  7961. });
  7962. },
  7963. CourseType2Change(val) {
  7964. this.pTypeCheck = [];
  7965. for (var i = 0; i < this.CourseType2.length; i++) {
  7966. let typeA = this.CourseType2[i];
  7967. if (val.indexOf(typeA.name) != -1) {
  7968. this.pTypeCheck.push(...typeA.id);
  7969. }
  7970. }
  7971. },
  7972. getChapterData(e, i, j, ic, type) {
  7973. e.stopPropagation();
  7974. this.updataC = true;
  7975. this.icc = ic;
  7976. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  7977. console.log("还不能下载图片喔");
  7978. }
  7979. },
  7980. deleteChapterData(e, i, j, ic, taskI) {
  7981. e.stopPropagation();
  7982. let _this = this;
  7983. _this
  7984. .$confirm("确定删除此项?", "提示", {
  7985. confirmButtonText: "确定",
  7986. cancelButtonText: "取消",
  7987. type: "warning",
  7988. })
  7989. .then(() => {
  7990. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  7991. ic,
  7992. 1
  7993. );
  7994. })
  7995. .catch(() => {
  7996. return;
  7997. });
  7998. },
  7999. deleteInfoData(e, ic) {
  8000. e.stopPropagation();
  8001. let _this = this;
  8002. _this
  8003. .$confirm("确定删除此项?", "提示", {
  8004. confirmButtonText: "确定",
  8005. cancelButtonText: "取消",
  8006. type: "warning",
  8007. })
  8008. .then(() => {
  8009. _this.infoData.splice(
  8010. ic,
  8011. 1
  8012. );
  8013. })
  8014. .catch(() => {
  8015. return;
  8016. });
  8017. },
  8018. updataVideoT(e, i, j, ic) {
  8019. // e.stopPropagation();
  8020. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  8021. // ic
  8022. // ].name = JSON.parse(JSON.stringify(e.target.value));
  8023. this.line =
  8024. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  8025. this.taskCount = j;
  8026. this.lineCount = ic;
  8027. this.dialogVisibleupdataVideoT = true;
  8028. this.$forceUpdate();
  8029. },
  8030. updataVideoC() {
  8031. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8032. this.taskCount
  8033. ].chapterData[this.lineCount].name = JSON.parse(
  8034. JSON.stringify(this.line)
  8035. );
  8036. this.dialogVisibleupdataVideoT = false;
  8037. this.$forceUpdate();
  8038. },
  8039. upCd(e, i, j, taskCount, ic) {
  8040. e.stopPropagation();
  8041. if (ic == 0) {
  8042. return;
  8043. }
  8044. var a = JSON.parse(
  8045. JSON.stringify(
  8046. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8047. ic - 1
  8048. ]
  8049. )
  8050. );
  8051. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8052. JSON.parse(
  8053. JSON.stringify(
  8054. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8055. )
  8056. );
  8057. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8058. this.$forceUpdate();
  8059. },
  8060. downCd(e, i, j, taskCount, ic) {
  8061. e.stopPropagation();
  8062. if (
  8063. ic ==
  8064. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8065. 1
  8066. ) {
  8067. return;
  8068. }
  8069. var a = JSON.parse(
  8070. JSON.stringify(
  8071. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8072. ic + 1
  8073. ]
  8074. )
  8075. );
  8076. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8077. JSON.parse(
  8078. JSON.stringify(
  8079. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8080. )
  8081. );
  8082. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8083. this.$forceUpdate();
  8084. },
  8085. async upTool(e, i, j, tooli) {
  8086. e.stopPropagation();
  8087. if (tooli == 0) {
  8088. return;
  8089. }
  8090. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  8091. let count2 = await this.getWorksCount(3, i, j, tooli);
  8092. if (count1 > 0 || count2 > 0) {
  8093. this.$confirm(
  8094. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8095. "提示",
  8096. {
  8097. confirmButtonText: "确定",
  8098. cancelButtonText: "取消",
  8099. type: "warning",
  8100. }
  8101. )
  8102. .then(() => {
  8103. var a = JSON.parse(
  8104. JSON.stringify(
  8105. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8106. tooli - 1
  8107. ]
  8108. )
  8109. );
  8110. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8111. JSON.parse(
  8112. JSON.stringify(
  8113. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8114. )
  8115. );
  8116. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8117. this.$forceUpdate();
  8118. })
  8119. .catch(() => {
  8120. return;
  8121. });
  8122. } else {
  8123. var a = JSON.parse(
  8124. JSON.stringify(
  8125. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  8126. )
  8127. );
  8128. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8129. JSON.parse(
  8130. JSON.stringify(
  8131. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8132. )
  8133. );
  8134. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8135. this.$forceUpdate();
  8136. }
  8137. },
  8138. async downTool(e, i, j, tooli) {
  8139. e.stopPropagation();
  8140. if (
  8141. tooli ==
  8142. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  8143. ) {
  8144. return;
  8145. }
  8146. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  8147. let count2 = await this.getWorksCount(3, i, j, tooli);
  8148. if (count1 > 0 || count2 > 0) {
  8149. this.$confirm(
  8150. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8151. "提示",
  8152. {
  8153. confirmButtonText: "确定",
  8154. cancelButtonText: "取消",
  8155. type: "warning",
  8156. }
  8157. )
  8158. .then(() => {
  8159. var a = JSON.parse(
  8160. JSON.stringify(
  8161. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8162. tooli + 1
  8163. ]
  8164. )
  8165. );
  8166. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8167. JSON.parse(
  8168. JSON.stringify(
  8169. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8170. )
  8171. );
  8172. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8173. this.$forceUpdate();
  8174. })
  8175. .catch(() => {
  8176. return;
  8177. });
  8178. } else {
  8179. var a = JSON.parse(
  8180. JSON.stringify(
  8181. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  8182. )
  8183. );
  8184. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8185. JSON.parse(
  8186. JSON.stringify(
  8187. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8188. )
  8189. );
  8190. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8191. this.$forceUpdate();
  8192. }
  8193. },
  8194. addWork() {
  8195. let cPan = 1;
  8196. for (var i = 0; i < this.unitJson.length; i++) {
  8197. for (
  8198. var j = 0;
  8199. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8200. j++
  8201. ) {
  8202. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8203. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8204. if (
  8205. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8206. ) {
  8207. for (
  8208. var z = 0;
  8209. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8210. z++
  8211. ) {
  8212. if (
  8213. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8214. .length
  8215. ) {
  8216. this.$message.error("请把工具添加完整");
  8217. cPan = 2;
  8218. break;
  8219. }
  8220. }
  8221. }
  8222. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8223. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8224. i
  8225. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8226. return ele.value != "";
  8227. });
  8228. }
  8229. }
  8230. }
  8231. this.inputShow = true;
  8232. if (cPan == 2) {
  8233. this.steps--;
  8234. return;
  8235. }
  8236. for (var i = 0; i < this.unitJson.length; i++) {
  8237. delete this.unitJson[i].isUpdate;
  8238. }
  8239. let params = [
  8240. {
  8241. uid: this.userid,
  8242. title: this.courseName,
  8243. brief: this.courseText,
  8244. cover:
  8245. this.cover.length > 0
  8246. ? JSON.stringify(this.cover)
  8247. : JSON.stringify([
  8248. {
  8249. name: "noBanner.jpg",
  8250. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8251. uid: 1656409780264,
  8252. status: "success",
  8253. },
  8254. ]),
  8255. evaId: this.evalua,
  8256. astudent:
  8257. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8258. see: this.isTeacherSee == true ? 1 : 0,
  8259. chapters: JSON.stringify(this.unitJson),
  8260. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8261. courseType: JSON.stringify(this.courseTypeId),
  8262. ateacher:
  8263. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8264. inviteCode: JSON.stringify(this.inviteCode),
  8265. refile: JSON.stringify(this.infoData),
  8266. reBrief: this.courseText2
  8267. },
  8268. ];
  8269. this.ajax
  8270. .post(this.$store.state.api + "addWorkNew2AI", params)
  8271. .then((res) => {
  8272. console.log(this.steps);
  8273. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8274. this.$message({
  8275. message: "新增成功",
  8276. type: "success",
  8277. });
  8278. }
  8279. this.number = res.data.ordernumber;
  8280. this.courseId = res.data.courseId;
  8281. this.cid = res.data.courseId;
  8282. this.courseUserid = this.userid;
  8283. this.islogin = true;
  8284. this.updateCourseState(4);
  8285. this.addtips()
  8286. })
  8287. .catch((err) => {
  8288. this.$message.error("网络不佳");
  8289. console.error(err);
  8290. });
  8291. },
  8292. goCourse() {
  8293. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  8294. },
  8295. updateWork2() {
  8296. let _unitIndex = this.unitIndex;
  8297. let cPan = 1;
  8298. for (
  8299. var j = 0;
  8300. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8301. j++
  8302. ) {
  8303. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8304. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8305. j
  8306. ].proVisible2 = false;
  8307. if (
  8308. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8309. .length > 1
  8310. ) {
  8311. for (
  8312. var z = 0;
  8313. z <
  8314. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8315. .length;
  8316. z++
  8317. ) {
  8318. if (
  8319. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8320. z
  8321. ].tool.length
  8322. ) {
  8323. this.$message.error("请把工具添加完整");
  8324. cPan = 2;
  8325. break;
  8326. }
  8327. }
  8328. }
  8329. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8330. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8331. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8332. (ele) => {
  8333. return ele.value != "";
  8334. }
  8335. );
  8336. }
  8337. }
  8338. this.inputShow = true;
  8339. if (cPan == 2) {
  8340. this.steps--;
  8341. return;
  8342. }
  8343. let params = [
  8344. {
  8345. cid: this.cid,
  8346. chapters: JSON.stringify(this.unitJson),
  8347. uid: this.userid,
  8348. unitIndex: _unitIndex,
  8349. },
  8350. ];
  8351. this.ajax
  8352. .post(this.$store.state.api + "updateWorkNew4", params)
  8353. .then((res) => {
  8354. this.$message({
  8355. message: "修改成功",
  8356. type: "success",
  8357. });
  8358. this.courseId = this.cid;
  8359. this.addtips();
  8360. })
  8361. .catch((err) => {
  8362. this.$message.error("网络不佳");
  8363. console.error(err);
  8364. });
  8365. },
  8366. updateWork3(unitIndex) {
  8367. let _unitIndex = unitIndex;
  8368. let cPan = 1;
  8369. for (
  8370. var j = 0;
  8371. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8372. j++
  8373. ) {
  8374. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8375. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8376. j
  8377. ].proVisible2 = false;
  8378. if (
  8379. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8380. .length > 1
  8381. ) {
  8382. for (
  8383. var z = 0;
  8384. z <
  8385. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8386. .length;
  8387. z++
  8388. ) {
  8389. if (
  8390. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8391. z
  8392. ].tool.length
  8393. ) {
  8394. this.$message.error("请把工具添加完整");
  8395. cPan = 2;
  8396. break;
  8397. }
  8398. }
  8399. }
  8400. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8401. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8402. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8403. (ele) => {
  8404. return ele.value != "";
  8405. }
  8406. );
  8407. }
  8408. }
  8409. this.inputShow = true;
  8410. if (cPan == 2) {
  8411. this.steps--;
  8412. return;
  8413. }
  8414. let params = [
  8415. {
  8416. cid: this.cid,
  8417. chapters: JSON.stringify(this.unitJson),
  8418. uid: this.userid,
  8419. unitIndex: _unitIndex,
  8420. },
  8421. ];
  8422. this.ajax
  8423. .post(this.$store.state.api + "updateWorkNew4", params)
  8424. .then((res) => {
  8425. // this.$message({
  8426. // message: "修改成功",
  8427. // type: "success",
  8428. // });
  8429. this.courseId = this.cid;
  8430. this.addtips()
  8431. })
  8432. .catch((err) => {
  8433. this.$message.error("网络不佳");
  8434. console.error(err);
  8435. });
  8436. },
  8437. updateWork() {
  8438. let cPan = 1;
  8439. for (var i = 0; i < this.unitJson.length; i++) {
  8440. for (
  8441. var j = 0;
  8442. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8443. j++
  8444. ) {
  8445. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8446. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8447. if (
  8448. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8449. ) {
  8450. for (
  8451. var z = 0;
  8452. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8453. z++
  8454. ) {
  8455. if (
  8456. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8457. .length
  8458. ) {
  8459. this.$message.error("请把工具添加完整");
  8460. cPan = 2;
  8461. break;
  8462. }
  8463. }
  8464. }
  8465. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8466. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8467. i
  8468. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8469. return ele.value != "";
  8470. });
  8471. }
  8472. }
  8473. }
  8474. this.inputShow = true;
  8475. if (cPan == 2) {
  8476. this.steps--;
  8477. return;
  8478. }
  8479. for (var i = 0; i < this.unitJson.length; i++) {
  8480. delete this.unitJson[i].isUpdate;
  8481. }
  8482. let params = [
  8483. {
  8484. cid: this.cid,
  8485. title: this.courseName,
  8486. brief: this.courseText,
  8487. cover:
  8488. this.cover.length > 0
  8489. ? JSON.stringify(this.cover)
  8490. : JSON.stringify([
  8491. {
  8492. name: "noBanner.jpg",
  8493. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8494. uid: 1656409780264,
  8495. status: "success",
  8496. },
  8497. ]),
  8498. evaId: this.evalua,
  8499. astudent:
  8500. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8501. see: this.isTeacherSee == true ? 1 : 0,
  8502. chapters: JSON.stringify(this.unitJson),
  8503. template: this.myWord != "undefined" ? this.myWord : [],
  8504. uid: this.userid,
  8505. courseType: JSON.stringify(this.courseTypeId),
  8506. ateacher:
  8507. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8508. inviteCode: JSON.stringify(this.inviteCode),
  8509. refile: JSON.stringify(this.infoData),
  8510. reBrief: this.courseText2
  8511. },
  8512. ];
  8513. this.ajax
  8514. .post(this.$store.state.api + "updateWorkNew2AI", params)
  8515. .then((res) => {
  8516. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8517. if (this.cidType == 1) {
  8518. this.$message({
  8519. message: "修改成功",
  8520. type: "success",
  8521. });
  8522. } else {
  8523. this.$message({
  8524. message: "新增成功",
  8525. type: "success",
  8526. });
  8527. }
  8528. }
  8529. this.number = this.nbOrder;
  8530. this.courseId = this.cid;
  8531. this.addtips()
  8532. })
  8533. .catch((err) => {
  8534. this.$message.error("网络不佳");
  8535. console.error(err);
  8536. });
  8537. },
  8538. insertWord() {
  8539. this.dialogVisible1 = true;
  8540. this.updateBoolean2 = false;
  8541. this.tTitle = "";
  8542. this.tdetail = "";
  8543. },
  8544. addWord() {
  8545. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8546. name: this.tTitle,
  8547. content: this.tdetail,
  8548. uid: this.guid(),
  8549. });
  8550. this.dialogVisible1 = false;
  8551. },
  8552. upWord() { },
  8553. selectWord(uid, i, c) {
  8554. this.dialogVisible1 = true;
  8555. this.updateBoolean2 = true;
  8556. if (
  8557. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8558. ) {
  8559. this.tTitle =
  8560. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8561. this.tdetail =
  8562. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8563. }
  8564. },
  8565. isAddPP() {
  8566. if (this.checkboxList.length > 0) {
  8567. this.$message({
  8568. message: "添加成功",
  8569. type: "success",
  8570. });
  8571. this.dialogVisible3 = false;
  8572. } else {
  8573. this.$message({
  8574. message: "请添加课程成员",
  8575. type: "error",
  8576. });
  8577. }
  8578. },
  8579. isAddClass() {
  8580. this.dialogVisibleClass = false;
  8581. },
  8582. isAddPPTeacher() {
  8583. this.dialogVisibleMember = false;
  8584. this.setMan();
  8585. },
  8586. getTipsTemplate(){
  8587. if(this.templateid){
  8588. let params = {
  8589. id: this.templateid
  8590. }
  8591. this.ajax
  8592. .get(this.$store.state.api + "selectTipsTemplateById", params)
  8593. .then((res) => {
  8594. if(res.data[0].length){
  8595. this.tipsJson = res.data[0][0]
  8596. this.aiJson = JSON.parse(res.data[0][0].tips)
  8597. this.$forceUpdate();
  8598. }
  8599. })
  8600. .catch((err) => { });
  8601. }
  8602. },
  8603. getTemplate() {
  8604. this.ajax
  8605. .get(this.$store.state.api + "getCourseTemplateT", "")
  8606. .then((res) => {
  8607. this.templateArray = res.data[0];
  8608. this.getTemplateOid();
  8609. this.$forceUpdate();
  8610. })
  8611. .catch((err) => { });
  8612. },
  8613. getTemplateOid() {
  8614. let params = {
  8615. oid: this.oid,
  8616. };
  8617. this.ajax
  8618. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8619. .then((res) => {
  8620. if (res.data[0].length) {
  8621. this.templateArray = [...res.data[0], ...this.templateArray];
  8622. }
  8623. this.getTemplateOrg();
  8624. this.$forceUpdate();
  8625. })
  8626. .catch((err) => { });
  8627. },
  8628. getTemplateOrg() {
  8629. let params = {
  8630. oid: this.org,
  8631. };
  8632. this.ajax
  8633. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8634. .then((res) => {
  8635. if (res.data[0].length) {
  8636. this.templateArray = [...res.data[0], ...this.templateArray];
  8637. }
  8638. this.$forceUpdate();
  8639. })
  8640. .catch((err) => { });
  8641. },
  8642. clearChoose() {
  8643. this.clearArray.splice(this.templateC.id, 1);
  8644. this.dialogVisible2 = false;
  8645. },
  8646. clearAttText() {
  8647. this.AttText = {
  8648. title: "",
  8649. text: "",
  8650. };
  8651. this.dialogVisible6 = false;
  8652. },
  8653. clearLine() {
  8654. this.line = "";
  8655. this.dialogVisible7 = false;
  8656. },
  8657. openTemplate() {
  8658. this.ctJson = {};
  8659. this.templateDialog = true;
  8660. },
  8661. checkctJson(json) {
  8662. if (this.ctJson.id == json.id) {
  8663. this.ctJson = {};
  8664. } else {
  8665. this.ctJson = json;
  8666. }
  8667. },
  8668. addTemplate(res) {
  8669. let _this = this;
  8670. let _res = [];
  8671. if (res.id == 1) {
  8672. _res = [
  8673. {
  8674. dyName: "", //单元标题
  8675. easy: 1,
  8676. chapterInfo: [
  8677. {
  8678. isread: false,
  8679. chapterid: this.guid(),
  8680. title: "",
  8681. courseName: "",
  8682. taskJson: [
  8683. {
  8684. task: "",
  8685. taskDetail: "",
  8686. chapterData: [],
  8687. toolText: "",
  8688. toolChoose: [
  8689. {
  8690. tool: [],
  8691. toolDetail: "",
  8692. toolType: 0,
  8693. askCount: 1,
  8694. askTitle: "",
  8695. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8696. },
  8697. ],
  8698. isShowTools: false,
  8699. askCount: 1,
  8700. isFold: 1,
  8701. askTitle: "",
  8702. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8703. checkJson: [{ checkCount: [], checkPerent: [] }],
  8704. homeworkList: [],
  8705. },
  8706. ],
  8707. itemCount: 1,
  8708. fileList1: [],
  8709. video: [],
  8710. testData: [],
  8711. pData: [],
  8712. templateArray: [],
  8713. },
  8714. ],
  8715. },
  8716. ];
  8717. this.updateCourseState(1);
  8718. } else if (res.id == 2) {
  8719. let stageData = [];
  8720. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8721. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8722. if (!iframe && !iframe2) {
  8723. this.$message.error("请使用AI共创生成");
  8724. return;
  8725. }
  8726. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8727. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8728. if (
  8729. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  8730. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  8731. ) {
  8732. this.$message.error("请使用AI共创生成");
  8733. return;
  8734. }
  8735. stageData = copyData
  8736. ? copyData.stageData
  8737. : copyData2
  8738. ? copyData2.stageData
  8739. : [""];
  8740. for (var i = 0; i < stageData.length; i++) {
  8741. _res.push({
  8742. dyName: stageData[i], //单元标题
  8743. chapterInfo: [
  8744. {
  8745. isread: false,
  8746. chapterid: this.guid(),
  8747. title: "",
  8748. courseName: "",
  8749. taskJson: [
  8750. {
  8751. task: "",
  8752. taskDetail: "",
  8753. chapterData: [],
  8754. toolText: "",
  8755. toolChoose: [
  8756. {
  8757. tool: [],
  8758. toolDetail: "",
  8759. toolType: 0,
  8760. askCount: 1,
  8761. askTitle: "",
  8762. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8763. },
  8764. ],
  8765. isShowTools: false,
  8766. askCount: 1,
  8767. isFold: 1,
  8768. askTitle: "",
  8769. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8770. checkJson: [{ checkCount: [], checkPerent: [] }],
  8771. homeworkList: [],
  8772. },
  8773. ],
  8774. itemCount: 1,
  8775. fileList1: [],
  8776. video: [],
  8777. testData: [],
  8778. pData: [],
  8779. templateArray: [],
  8780. },
  8781. ],
  8782. });
  8783. }
  8784. this.updateCourseState(1);
  8785. } else if (!Object.keys(res).length) {
  8786. this.$message.error("请选择模板");
  8787. retrun;
  8788. } else {
  8789. _res = JSON.parse(res.chapters);
  8790. this.updateCourseState(parseInt(res.state));
  8791. }
  8792. _this
  8793. .$confirm(
  8794. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8795. "提示",
  8796. {
  8797. confirmButtonText: "确定",
  8798. cancelButtonText: "取消",
  8799. type: "warning",
  8800. }
  8801. )
  8802. .then(() => {
  8803. _this.unitJson = _res;
  8804. _this.updateWork();
  8805. // _this.steps++;
  8806. _this.templateDialog = false;
  8807. setTimeout(() => {
  8808. this.checkEva(this.checkId);
  8809. setTimeout(() => {
  8810. this.checkEva(this.checkId);
  8811. }, 100);
  8812. }, 1000);
  8813. })
  8814. .catch(() => {
  8815. return;
  8816. });
  8817. },
  8818. checkTemplate(res) {
  8819. let _this = this;
  8820. _this
  8821. .$confirm(
  8822. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8823. "提示",
  8824. {
  8825. confirmButtonText: "确定",
  8826. cancelButtonText: "取消",
  8827. type: "warning",
  8828. }
  8829. )
  8830. .then(() => {
  8831. _this.unitJson = JSON.parse(res.chapters);
  8832. _this.steps++;
  8833. setTimeout(() => {
  8834. this.checkEva(this.checkId);
  8835. setTimeout(() => {
  8836. this.checkEva(this.checkId);
  8837. }, 100);
  8838. }, 1000);
  8839. })
  8840. .catch(() => {
  8841. return;
  8842. });
  8843. },
  8844. checkTemplate1(w) {
  8845. this.steps++;
  8846. },
  8847. checkTemplate2() {
  8848. let _this = this;
  8849. _this
  8850. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  8851. confirmButtonText: "确定",
  8852. cancelButtonText: "取消",
  8853. type: "warning",
  8854. })
  8855. .then(() => {
  8856. _this.unitIndex = 0;
  8857. _this.unitJson = [
  8858. {
  8859. dyName: "", //单元标题
  8860. chapterInfo: [
  8861. {
  8862. isread: false,
  8863. chapterid: this.guid(),
  8864. title: "",
  8865. courseName: "",
  8866. taskJson: [
  8867. {
  8868. task: "",
  8869. taskDetail: "",
  8870. chapterData: [],
  8871. toolText: "",
  8872. toolChoose: [
  8873. {
  8874. tool: [],
  8875. toolDetail: "",
  8876. toolType: 0,
  8877. askCount: 1,
  8878. askTitle: "",
  8879. askJson: [
  8880. { askstitle: "", askItem: 1, checkList: [] },
  8881. ],
  8882. },
  8883. ],
  8884. isShowTools: false,
  8885. askCount: 1,
  8886. isFold: 1,
  8887. askTitle: "",
  8888. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8889. checkJson: [{ checkCount: [], checkPerent: [] }],
  8890. homeworkList: [],
  8891. },
  8892. ],
  8893. itemCount: 1,
  8894. fileList1: [],
  8895. video: [],
  8896. testData: [],
  8897. pData: [],
  8898. templateArray: [],
  8899. },
  8900. ],
  8901. },
  8902. ];
  8903. this.steps++;
  8904. setTimeout(() => {
  8905. this.checkEva(this.checkId);
  8906. setTimeout(() => {
  8907. this.checkEva(this.checkId);
  8908. }, 100);
  8909. }, 1000);
  8910. this.updateWork();
  8911. })
  8912. .catch(() => {
  8913. return;
  8914. });
  8915. },
  8916. checkTemplate3() {
  8917. let _this = this;
  8918. _this
  8919. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  8920. confirmButtonText: "确定",
  8921. cancelButtonText: "取消",
  8922. type: "warning",
  8923. })
  8924. .then(() => {
  8925. _this.unitIndex = 0;
  8926. _this.unitJson = [
  8927. {
  8928. dyName: "", //单元标题
  8929. easy: 1,
  8930. chapterInfo: [
  8931. {
  8932. isread: false,
  8933. chapterid: this.guid(),
  8934. title: "",
  8935. courseName: "",
  8936. taskJson: [
  8937. {
  8938. task: "",
  8939. taskDetail: "",
  8940. chapterData: [],
  8941. toolText: "",
  8942. toolChoose: [
  8943. {
  8944. tool: [],
  8945. toolDetail: "",
  8946. toolType: 0,
  8947. askCount: 1,
  8948. askTitle: "",
  8949. askJson: [
  8950. { askstitle: "", askItem: 1, checkList: [] },
  8951. ],
  8952. },
  8953. ],
  8954. isShowTools: false,
  8955. askCount: 1,
  8956. isFold: 1,
  8957. askTitle: "",
  8958. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8959. checkJson: [{ checkCount: [], checkPerent: [] }],
  8960. homeworkList: [],
  8961. },
  8962. ],
  8963. itemCount: 1,
  8964. fileList1: [],
  8965. video: [],
  8966. testData: [],
  8967. pData: [],
  8968. templateArray: [],
  8969. },
  8970. ],
  8971. },
  8972. ];
  8973. // this.steps++;
  8974. this.updateWork();
  8975. })
  8976. .catch(() => {
  8977. return;
  8978. });
  8979. },
  8980. checkTemplate4() {
  8981. let _this = this;
  8982. _this
  8983. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  8984. confirmButtonText: "确定",
  8985. cancelButtonText: "取消",
  8986. type: "warning",
  8987. })
  8988. .then(() => {
  8989. _this.unitIndex = 0;
  8990. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  8991. this.steps++;
  8992. this.updateWork();
  8993. })
  8994. .catch(() => {
  8995. return;
  8996. });
  8997. },
  8998. wordNext() {
  8999. this.dialogVisible2 = false;
  9000. },
  9001. isAddOrUpdateAttText() {
  9002. if (this.AttTextType == 0) {
  9003. this.addAttTextMessage();
  9004. } else {
  9005. this.updateAttText();
  9006. }
  9007. },
  9008. isAddOrUpdateLine() {
  9009. if (!this.lineTitle) {
  9010. this.$message.error("请填写链接标题");
  9011. return;
  9012. }
  9013. if (this.lineType == 0) {
  9014. this.addLine();
  9015. } else {
  9016. this.updateLine();
  9017. }
  9018. },
  9019. addAttTextMessage() {
  9020. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9021. this.taskCount
  9022. ].chapterData.push({
  9023. name: this.AttText.title,
  9024. url: this.AttText.text,
  9025. type: 6,
  9026. });
  9027. this.imgChange1(null, null, 6, this.taskCount);
  9028. this.dialogVisible6 = false;
  9029. },
  9030. selectAttText(itemTaskIndex, i) {
  9031. this.AttText.title =
  9032. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9033. itemTaskIndex
  9034. ].chapterData[i].name;
  9035. this.AttText.text =
  9036. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9037. itemTaskIndex
  9038. ].chapterData[i].url;
  9039. this.taskCount = itemTaskIndex;
  9040. this.AttTextIndex = i;
  9041. this.AttTextType = 1;
  9042. this.dialogVisible6 = true;
  9043. },
  9044. updateAttText() {
  9045. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9046. this.taskCount
  9047. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9049. this.taskCount
  9050. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9051. this.dialogVisible6 = false;
  9052. },
  9053. addLine() {
  9054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9055. this.lineCount
  9056. ].chapterData.push({
  9057. name: "链接",
  9058. title: this.lineTitle,
  9059. url: this.line,
  9060. type: 8,
  9061. });
  9062. this.imgChange1(null, null, 8, this.lineCount);
  9063. this.dialogVisible7 = false;
  9064. },
  9065. selectLine(itemTaskIndex, i) {
  9066. this.line =
  9067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9068. itemTaskIndex
  9069. ].chapterData[i].url;
  9070. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9071. itemTaskIndex
  9072. ].chapterData[i].title
  9073. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9074. .chapterData[i].title
  9075. : "";
  9076. this.taskCount = itemTaskIndex;
  9077. this.lineCount = i;
  9078. this.lineType = 1;
  9079. this.dialogVisible7 = true;
  9080. },
  9081. openUpdateSource(itemTaskIndex, i) {
  9082. this.sourceData = {};
  9083. let source =
  9084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9085. .chapterData[i];
  9086. this.sourceData[source.id] = {};
  9087. this.sourceData[source.id].name = source.title;
  9088. this.sourceData[source.id].url = source.url;
  9089. this.dialogVisibleSource = true;
  9090. this.updateSourcePan = true;
  9091. this.taskCount = itemTaskIndex;
  9092. this.lineCount = i;
  9093. },
  9094. updateLine() {
  9095. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9096. this.taskCount
  9097. ].chapterData[this.lineCount].url = this.line;
  9098. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9099. this.taskCount
  9100. ].chapterData[this.lineCount].title = this.lineTitle;
  9101. this.dialogVisible7 = false;
  9102. },
  9103. addPP() {
  9104. this.dialogVisible3 = true;
  9105. },
  9106. goTo(path) {
  9107. this.$router.push(path);
  9108. },
  9109. openTools(itemTaskIndex, i, toolIndex) {
  9110. this.toolIndex = toolIndex;
  9111. this.taskCount = itemTaskIndex;
  9112. if (i == 4) {
  9113. if (toolIndex == null) {
  9114. var a =
  9115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9116. .chapterData;
  9117. for (var i = 0; i < a.length; i++) {
  9118. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9119. this.askJson =
  9120. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9121. itemTaskIndex
  9122. ].chapterData[i].askJson;
  9123. }
  9124. }
  9125. } else {
  9126. this.askJson = JSON.parse(
  9127. JSON.stringify(
  9128. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9129. itemTaskIndex
  9130. ].toolChoose[toolIndex]
  9131. )
  9132. );
  9133. }
  9134. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  9135. this.dialogVisible5 = true;
  9136. } else if (i == 45) {
  9137. if (
  9138. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9139. .toolChoose[toolIndex].testJson
  9140. ) {
  9141. this.testJson = JSON.parse(
  9142. JSON.stringify(
  9143. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9144. itemTaskIndex
  9145. ].toolChoose[toolIndex].testJson
  9146. )
  9147. );
  9148. } else {
  9149. var testJson = {
  9150. testCount: 1,
  9151. testTitle: "",
  9152. testJson: [
  9153. {
  9154. teststitle: "",
  9155. testItem: 1,
  9156. checkList: [],
  9157. timuList: [],
  9158. answer: [],
  9159. type: "1",
  9160. },
  9161. ],
  9162. };
  9163. this.testJson = testJson;
  9164. }
  9165. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  9166. this.dialogVisibleChoice = true;
  9167. } else if (i == 47) {
  9168. if (
  9169. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9170. .toolChoose[toolIndex].sentenceList
  9171. ) {
  9172. this.sentenceList = JSON.parse(
  9173. JSON.stringify(
  9174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9175. itemTaskIndex
  9176. ].toolChoose[toolIndex].sentenceList
  9177. )
  9178. );
  9179. } else {
  9180. var sentenceList = [
  9181. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9182. ];
  9183. this.sentenceList = sentenceList;
  9184. }
  9185. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  9186. this.dialogVisibleSentence = true;
  9187. } else if (i == 48) {
  9188. if (
  9189. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9190. .toolChoose[toolIndex].tableJson
  9191. ) {
  9192. this.tableJson = JSON.parse(
  9193. JSON.stringify(
  9194. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9195. itemTaskIndex
  9196. ].toolChoose[toolIndex].tableJson
  9197. )
  9198. );
  9199. } else {
  9200. var tableJson = { text: "" };
  9201. this.tableJson = tableJson;
  9202. }
  9203. this.dialogVisibleTable = true;
  9204. } else if (i == 52) {
  9205. if (
  9206. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9207. .toolChoose[toolIndex].wordJson
  9208. ) {
  9209. this.wordJson = JSON.parse(
  9210. JSON.stringify(
  9211. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9212. itemTaskIndex
  9213. ].toolChoose[toolIndex].wordJson
  9214. )
  9215. );
  9216. } else {
  9217. var wordJson = { text: "" };
  9218. this.wordJson = wordJson;
  9219. }
  9220. this.dialogVisibleWord = true;
  9221. // else if (i == 50) {
  9222. // if (
  9223. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9224. // .toolChoose[toolIndex].uploadJson
  9225. // ) {
  9226. // this.uploadJson = JSON.parse(
  9227. // JSON.stringify(
  9228. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9229. // itemTaskIndex
  9230. // ].toolChoose[toolIndex].uploadJson
  9231. // )
  9232. // );
  9233. // } else {
  9234. // var uploadJson = [];
  9235. // this.uploadJson = uploadJson;
  9236. // }
  9237. // this.dialogVisibleMoreUpload = true;
  9238. // }
  9239. } else if (i == 10) {
  9240. if (
  9241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9242. .toolChoose[toolIndex].preTime
  9243. ) {
  9244. this.preTime = JSON.parse(
  9245. JSON.stringify(
  9246. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9247. itemTaskIndex
  9248. ].toolChoose[toolIndex].preTime
  9249. )
  9250. );
  9251. } else {
  9252. var preTime = 0;
  9253. this.preTime = preTime;
  9254. }
  9255. this.dialogVisiblePreTime = true;
  9256. } else if (i == 49) {
  9257. if (
  9258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9259. .toolChoose[toolIndex].groupJson
  9260. ) {
  9261. this.groupJson = JSON.parse(
  9262. JSON.stringify(
  9263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9264. itemTaskIndex
  9265. ].toolChoose[toolIndex].groupJson
  9266. )
  9267. );
  9268. } else {
  9269. var groupJson = {
  9270. group: [{ name: "第1组" }],
  9271. number: undefined,
  9272. islock: 1,
  9273. };
  9274. this.groupJson = groupJson;
  9275. }
  9276. this.dialogVisibleGroup = true;
  9277. } else if (i == 62) {
  9278. if (
  9279. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9280. .toolChoose[toolIndex].videoJson
  9281. ) {
  9282. this.videoJson = JSON.parse(
  9283. JSON.stringify(
  9284. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9285. itemTaskIndex
  9286. ].toolChoose[toolIndex].videoJson
  9287. )
  9288. );
  9289. } else {
  9290. var videoJson = {
  9291. video: "",
  9292. setting: [],
  9293. };
  9294. this.videoJson = videoJson;
  9295. }
  9296. this.dialogVisibleVideo = true;
  9297. } else if (i == 15) {
  9298. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9299. itemTaskIndex
  9300. ].toolChoose[toolIndex].answerQ
  9301. ? JSON.parse(
  9302. JSON.stringify(
  9303. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9304. itemTaskIndex
  9305. ].toolChoose[toolIndex].answerQ
  9306. )
  9307. )
  9308. : "";
  9309. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  9310. this.dialogVisible8 = true;
  9311. } else if (i == 40) {
  9312. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9313. itemTaskIndex
  9314. ].toolChoose[toolIndex].rateJson
  9315. ? JSON.parse(
  9316. JSON.stringify(
  9317. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9318. itemTaskIndex
  9319. ].toolChoose[toolIndex].rateJson
  9320. )
  9321. )
  9322. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9323. this.selectSteps = 1;
  9324. this.dialogVisibleRate = true;
  9325. } else if (i == 42) {
  9326. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9327. itemTaskIndex
  9328. ].toolChoose[toolIndex].answerQ
  9329. ? JSON.parse(
  9330. JSON.stringify(
  9331. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9332. itemTaskIndex
  9333. ].toolChoose[toolIndex].answerQ
  9334. )
  9335. )
  9336. : "";
  9337. this.dialogVisibleMp3 = true;
  9338. } else if (i == 41) {
  9339. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9340. itemTaskIndex
  9341. ].toolChoose[toolIndex].selectJson
  9342. ? JSON.parse(
  9343. JSON.stringify(
  9344. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9345. itemTaskIndex
  9346. ].toolChoose[toolIndex].selectJson
  9347. )
  9348. )
  9349. : { url: "", select: [], answer: [] };
  9350. this.selectSteps = 1;
  9351. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  9352. this.dialogVisibleSelect = true;
  9353. } else if (i == 3) {
  9354. top.postMessage(
  9355. {
  9356. tools: "3y",
  9357. cid: this.cid,
  9358. stage: this.unitIndex,
  9359. task: itemTaskIndex,
  9360. tool: toolIndex,
  9361. },
  9362. "*"
  9363. );
  9364. } else if (i == 1) {
  9365. top.postMessage(
  9366. {
  9367. tools: "1y",
  9368. cid: this.cid,
  9369. stage: this.unitIndex,
  9370. task: itemTaskIndex,
  9371. tool: toolIndex,
  9372. },
  9373. "*"
  9374. );
  9375. } else if (i == 57) {
  9376. top.postMessage(
  9377. {
  9378. tools: "57y",
  9379. cid: this.cid,
  9380. stage: this.unitIndex,
  9381. task: itemTaskIndex,
  9382. tool: toolIndex,
  9383. },
  9384. "*"
  9385. );
  9386. } else if (i == 69) {
  9387. this.englishList = {};
  9388. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  9389. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  9390. ? JSON.parse(
  9391. JSON.stringify(
  9392. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9393. itemTaskIndex
  9394. ].toolChoose[toolIndex].englishList
  9395. )
  9396. )
  9397. : {};
  9398. this.$forceUpdate();
  9399. this.englishDialogVisible = true;
  9400. } else if (i == 70) {
  9401. this.englishVoiceJson = {};
  9402. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  9403. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  9404. ? JSON.parse(
  9405. JSON.stringify(
  9406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9407. itemTaskIndex
  9408. ].toolChoose[toolIndex].englishVoiceJson
  9409. )
  9410. )
  9411. : {
  9412. title: '',
  9413. detail: '',
  9414. array: []
  9415. };
  9416. // {
  9417. // time: "",
  9418. // class: "",
  9419. // difficulty: 0,
  9420. // topic: "",
  9421. // isShow: false,
  9422. // eva: 0,
  9423. // aiEva: {
  9424. // isAiEva: false,
  9425. // aiEvaChoose: [],
  9426. // },
  9427. // allfType: [],
  9428. // englishJson: {},
  9429. // };
  9430. this.$forceUpdate();
  9431. this.EnglishVoiceDialog = true;
  9432. }
  9433. },
  9434. setEnglishVoiceJson(val) {
  9435. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9436. this.taskCount
  9437. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  9438. JSON.stringify(val)
  9439. );
  9440. this.$forceUpdate();
  9441. if (
  9442. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9443. .toolChoose[this.toolIndex].tool != 70
  9444. ) {
  9445. this.addTools(70, this.taskCount, this.toolIndex);
  9446. }
  9447. },
  9448. chapAddTools(i) {
  9449. if (this.chapTools[0].tools.length == 0) {
  9450. this.chapTools[0].tools.push(i);
  9451. } else {
  9452. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9453. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9454. } else {
  9455. this.chapTools[0].tools.push(i);
  9456. }
  9457. }
  9458. this.$forceUpdate();
  9459. },
  9460. addChaptersDataTools() {
  9461. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9463. this.chapCount
  9464. ].chapterData.push({
  9465. name: this.chapTools[0].toolDetail,
  9466. url: this.chapTools[0].tools,
  9467. type: 7,
  9468. askJson: this.askJson,
  9469. });
  9470. } else {
  9471. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9472. this.chapCount
  9473. ].chapterData.push({
  9474. name: this.chapTools[0].toolDetail,
  9475. url: this.chapTools[0].tools,
  9476. type: 7,
  9477. });
  9478. }
  9479. this.imgChange1(null, null, 7, this.chapCount);
  9480. this.dialogVisible4 = false;
  9481. },
  9482. addTools(i, itemTaskIndex, toolIndex) {
  9483. // if (
  9484. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9485. // .toolChoose[toolIndex].tool.length == 0
  9486. // ) {
  9487. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9488. // itemTaskIndex
  9489. // ].toolChoose[toolIndex].tool.push(i);
  9490. // } else {
  9491. // if (
  9492. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9493. // itemTaskIndex
  9494. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9495. // ) {
  9496. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9497. // itemTaskIndex
  9498. // ].toolChoose[toolIndex].tool.splice(
  9499. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9500. // itemTaskIndex
  9501. // ].toolChoose[toolIndex].tool.indexOf(i),
  9502. // 1
  9503. // );
  9504. // } else {
  9505. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9506. // itemTaskIndex
  9507. // ].toolChoose[toolIndex].tool.push(i);
  9508. // }
  9509. // console.log(
  9510. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9511. // .toolChoose[toolIndex].tool
  9512. // );
  9513. // }
  9514. if (i == 4) {
  9515. if (
  9516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9517. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9519. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9521. .toolChoose[toolIndex].askJson[0].checkList < 2
  9522. ) {
  9523. this.openTools(itemTaskIndex, 4, toolIndex);
  9524. // this.$message({
  9525. // message: "请填写完整问卷内容",
  9526. // type: "error",
  9527. // });
  9528. return;
  9529. }
  9530. }
  9531. if (i == 45) {
  9532. if (
  9533. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9534. .toolChoose[toolIndex].testJson ||
  9535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9536. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9537. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9538. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9539. ) {
  9540. this.openTools(itemTaskIndex, 45, toolIndex);
  9541. // this.$message({
  9542. // message: "请填写完整问卷内容",
  9543. // type: "error",
  9544. // });
  9545. return;
  9546. }
  9547. }
  9548. if (i == 47) {
  9549. if (
  9550. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9551. .toolChoose[toolIndex].sentenceList ||
  9552. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9553. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9554. ) {
  9555. this.openTools(itemTaskIndex, 47, toolIndex);
  9556. return;
  9557. }
  9558. }
  9559. if (i == 69) {
  9560. if (
  9561. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9562. .toolChoose[toolIndex].englishList
  9563. ) {
  9564. this.openTools(itemTaskIndex, 69, toolIndex);
  9565. return;
  9566. }
  9567. }
  9568. if (i == 70) {
  9569. if (
  9570. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9571. .toolChoose[toolIndex].englishVoiceJson
  9572. ) {
  9573. this.openTools(itemTaskIndex, 70, toolIndex);
  9574. return;
  9575. }
  9576. }
  9577. // if (i == 48) {
  9578. // if (
  9579. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9580. // .toolChoose[toolIndex].tableJson
  9581. // ) {
  9582. // this.openTools(itemTaskIndex, 48, toolIndex);
  9583. // return;
  9584. // }
  9585. // }
  9586. // if (i == 50) {
  9587. // if (
  9588. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9589. // .toolChoose[toolIndex].uploadJson
  9590. // ) {
  9591. // this.openTools(itemTaskIndex, 50, toolIndex);
  9592. // return;
  9593. // }
  9594. // }
  9595. if (i == 49) {
  9596. if (
  9597. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9598. .toolChoose[toolIndex].groupJson
  9599. ) {
  9600. this.openTools(itemTaskIndex, 49, toolIndex);
  9601. return;
  9602. }
  9603. }
  9604. if (i == 62) {
  9605. if (
  9606. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9607. .toolChoose[toolIndex].videoJson
  9608. ) {
  9609. this.openTools(itemTaskIndex, 62, toolIndex);
  9610. return;
  9611. }
  9612. }
  9613. if (i == 15) {
  9614. if (
  9615. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9616. .toolChoose[toolIndex].answerQ ||
  9617. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9618. .toolChoose[toolIndex].answerQ == ""
  9619. ) {
  9620. this.openTools(itemTaskIndex, 15, toolIndex);
  9621. // this.$message({
  9622. // message: "请填写问答内容",
  9623. // type: "error",
  9624. // });
  9625. return;
  9626. }
  9627. }
  9628. if (i == 40) {
  9629. if (
  9630. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9631. .toolChoose[toolIndex].rateJson ||
  9632. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9633. .toolChoose[toolIndex].rateJson.length
  9634. ) {
  9635. this.openTools(itemTaskIndex, 40, toolIndex);
  9636. return;
  9637. }
  9638. }
  9639. if (i == 41) {
  9640. if (
  9641. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9642. .toolChoose[toolIndex].selectJson ||
  9643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9644. .toolChoose[toolIndex].selectJson.url == "" ||
  9645. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9646. .toolChoose[toolIndex].selectJson.select.length ||
  9647. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9648. .toolChoose[toolIndex].selectJson.answer.length
  9649. ) {
  9650. this.openTools(itemTaskIndex, 41, toolIndex);
  9651. return;
  9652. }
  9653. }
  9654. if (i == 42) {
  9655. if (
  9656. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9657. .toolChoose[toolIndex].answerQ ||
  9658. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9659. .toolChoose[toolIndex].answerQ == ""
  9660. ) {
  9661. this.openTools(itemTaskIndex, 42, toolIndex);
  9662. return;
  9663. }
  9664. }
  9665. if (
  9666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9667. .toolChoose[toolIndex].tool.length > 0
  9668. ) {
  9669. if (
  9670. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9671. itemTaskIndex
  9672. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9673. ) {
  9674. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9675. itemTaskIndex
  9676. ].toolChoose[toolIndex].tool.splice(
  9677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9678. itemTaskIndex
  9679. ].toolChoose[toolIndex].tool.indexOf(i),
  9680. 1
  9681. );
  9682. } else {
  9683. // this.$message({
  9684. // message: "每个工具只能添加一个",
  9685. // type: "error",
  9686. // });
  9687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9688. itemTaskIndex
  9689. ].toolChoose[toolIndex].tool = [];
  9690. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9691. itemTaskIndex
  9692. ].toolChoose[toolIndex].tool.push(i);
  9693. }
  9694. } else {
  9695. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9696. itemTaskIndex
  9697. ].toolChoose[toolIndex].tool.push(i);
  9698. }
  9699. this.$forceUpdate();
  9700. },
  9701. addAskList(index) {
  9702. this.askJson.askJson.splice(index + 1, 0, {
  9703. askstitle: "",
  9704. askItem: 1,
  9705. checkList: [],
  9706. });
  9707. this.askJson.askCount++;
  9708. },
  9709. addTestList(index) {
  9710. this.testJson.testJson.splice(index + 1, 0, {
  9711. teststitle: "",
  9712. testItem: 1,
  9713. checkList: [],
  9714. timuList: [],
  9715. answer: [],
  9716. type: "1",
  9717. });
  9718. this.testJson.testCount++;
  9719. },
  9720. deleteAskList(index) {
  9721. if (
  9722. !this.askJson.askJson[index].askstitle &&
  9723. this.askJson.askJson[index].askItem == 1 &&
  9724. !this.askJson.askJson[index].checkList[0]
  9725. ) {
  9726. this.askJson.askJson.splice(index, 1);
  9727. this.askJson.askCount--;
  9728. } else {
  9729. let _this = this;
  9730. _this
  9731. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9732. confirmButtonText: "确定",
  9733. cancelButtonText: "取消",
  9734. type: "warning",
  9735. })
  9736. .then(() => {
  9737. _this.askJson.askJson.splice(index, 1);
  9738. _this.askJson.askCount--;
  9739. })
  9740. .catch(() => {
  9741. return;
  9742. });
  9743. }
  9744. },
  9745. deleteTestList(index) {
  9746. if (
  9747. !this.testJson.testJson[index].teststitle &&
  9748. this.testJson.testJson[index].testItem == 1 &&
  9749. !this.testJson.testJson[index].checkList[0]
  9750. ) {
  9751. this.testJson.testJson.splice(index, 1);
  9752. this.testJson.testCount--;
  9753. } else {
  9754. let _this = this;
  9755. _this
  9756. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9757. confirmButtonText: "确定",
  9758. cancelButtonText: "取消",
  9759. type: "warning",
  9760. })
  9761. .then(() => {
  9762. _this.testJson.testJson.splice(index, 1);
  9763. _this.testJson.testCount--;
  9764. })
  9765. .catch(() => {
  9766. return;
  9767. });
  9768. }
  9769. },
  9770. askMove(type, index) {
  9771. if (type == 1) {
  9772. if (index > 0) {
  9773. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  9774. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9775. this.askJson.askJson[index - 1] = b;
  9776. this.askJson.askJson[index] = a;
  9777. }
  9778. } else {
  9779. if (index < this.askJson.askJson.length - 1) {
  9780. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  9781. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9782. this.askJson.askJson[index + 1] = b;
  9783. this.askJson.askJson[index] = a;
  9784. }
  9785. }
  9786. this.$forceUpdate();
  9787. },
  9788. checkMove(type, index, checkIndex) {
  9789. if (type == 1) {
  9790. if (checkIndex > 0) {
  9791. let a = JSON.parse(
  9792. JSON.stringify(
  9793. this.askJson.askJson[index].checkList[checkIndex - 1]
  9794. )
  9795. );
  9796. let b = JSON.parse(
  9797. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9798. );
  9799. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  9800. this.askJson.askJson[index].checkList[checkIndex] = a;
  9801. }
  9802. } else {
  9803. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  9804. let a = JSON.parse(
  9805. JSON.stringify(
  9806. this.askJson.askJson[index].checkList[checkIndex + 1]
  9807. )
  9808. );
  9809. let b = JSON.parse(
  9810. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9811. );
  9812. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  9813. this.askJson.askJson[index].checkList[checkIndex] = a;
  9814. }
  9815. }
  9816. this.$forceUpdate();
  9817. },
  9818. testMove(type, index) {
  9819. if (type == 1) {
  9820. if (index > 0) {
  9821. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  9822. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9823. this.testJson.testJson[index - 1] = b;
  9824. this.testJson.testJson[index] = a;
  9825. }
  9826. } else {
  9827. if (index < this.testJson.testJson.length - 1) {
  9828. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  9829. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9830. this.testJson.testJson[index + 1] = b;
  9831. this.testJson.testJson[index] = a;
  9832. }
  9833. }
  9834. this.$forceUpdate();
  9835. },
  9836. tcheckMove(type, index, checkIndex) {
  9837. if (type == 1) {
  9838. if (checkIndex > 0) {
  9839. let a = JSON.parse(
  9840. JSON.stringify(
  9841. this.testJson.testJson[index].checkList[checkIndex - 1]
  9842. )
  9843. );
  9844. let b = JSON.parse(
  9845. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9846. );
  9847. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  9848. this.testJson.testJson[index].checkList[checkIndex] = a;
  9849. }
  9850. } else {
  9851. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  9852. let a = JSON.parse(
  9853. JSON.stringify(
  9854. this.testJson.testJson[index].checkList[checkIndex + 1]
  9855. )
  9856. );
  9857. let b = JSON.parse(
  9858. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9859. );
  9860. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  9861. this.testJson.testJson[index].checkList[checkIndex] = a;
  9862. }
  9863. }
  9864. this.$forceUpdate();
  9865. },
  9866. addcheckList(json, index) {
  9867. // json.checkList.length++;
  9868. json.checkList.splice(index + 1, 0, "");
  9869. json.askItem++;
  9870. this.$forceUpdate();
  9871. },
  9872. deletecheckList(json, index) {
  9873. // json.checkList.length--;
  9874. json.checkList.splice(index, 1);
  9875. json.askItem--;
  9876. this.$forceUpdate();
  9877. },
  9878. addTcheckList(json, index) {
  9879. // json.checkList.length++;
  9880. json.checkList.splice(index + 1, 0, "");
  9881. json.testItem++;
  9882. this.$forceUpdate();
  9883. },
  9884. deleteTcheckList(json, index) {
  9885. // json.checkList.length--;
  9886. json.checkList.splice(index, 1);
  9887. json.testItem--;
  9888. this.$forceUpdate();
  9889. },
  9890. checkTestType(type, json) {
  9891. json.type = type;
  9892. setTimeout(() => {
  9893. json.answer = [];
  9894. }, 100);
  9895. },
  9896. checkAskType(type, json) {
  9897. json.type = type;
  9898. // json.checkList = [];
  9899. this.$forceUpdate();
  9900. },
  9901. addSelectList(json) {
  9902. json.select.push("");
  9903. json.answer.push("");
  9904. },
  9905. deleteSelectList(json) {
  9906. // json.select.length--;
  9907. // json.answer.length--;
  9908. json.select.splice(json.select.length - 1, 1);
  9909. json.answer.splice(json.answer.length - 1, 1);
  9910. },
  9911. addAsk() {
  9912. if (this.askJson.askTitle === "") {
  9913. this.$message.error("标题不能为空!");
  9914. return;
  9915. }
  9916. var aj = this.askJson.askJson;
  9917. var b = 1;
  9918. for (var i = 0; i < aj.length; i++) {
  9919. if (aj[i].askstitle === "") {
  9920. var a = 1;
  9921. for (let index = 0; index < aj[i].askItem; index++) {
  9922. const element = aj[i].checkList[index]
  9923. ? aj[i].checkList[index]
  9924. : "";
  9925. if (element != "") {
  9926. b++;
  9927. this.$message.error(`请将题目${i + 1}填写完整。`);
  9928. return;
  9929. } else {
  9930. a++;
  9931. }
  9932. }
  9933. if (b == 1) {
  9934. this.$message.error("至少填写一个问题");
  9935. return;
  9936. }
  9937. } else if (aj[i].askstitle != "") {
  9938. for (let index = 0; index < aj[i].askItem; index++) {
  9939. const element = aj[i].checkList[index]
  9940. ? aj[i].checkList[index]
  9941. : "";
  9942. var index = 0;
  9943. for (var z = 0; z < aj[i].checkList.length; z++) {
  9944. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9945. if (checkC != "") {
  9946. index++;
  9947. } else {
  9948. this.$message.error(`题目${i + 1}选项不能为空!`);
  9949. return;
  9950. }
  9951. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9952. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9953. if (checkC == checkC2) {
  9954. this.$message.error(
  9955. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9956. );
  9957. return;
  9958. }
  9959. }
  9960. }
  9961. b++;
  9962. if (index < 2) {
  9963. this.$message.error("每道题目至少需要设置2个选项。");
  9964. return;
  9965. }
  9966. }
  9967. }
  9968. }
  9969. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9970. var elc = el.checkList.filter((element) => {
  9971. return element != "";
  9972. });
  9973. return el.askstitle != "" && elc.length != 0;
  9974. });
  9975. if (!this.dialogVisible4) {
  9976. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9977. this.taskCount
  9978. ].toolChoose[this.toolIndex] = this.askJson;
  9979. }
  9980. this.dialogVisible5 = false;
  9981. if (
  9982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9983. .toolChoose[this.toolIndex].tool != 4
  9984. ) {
  9985. this.addTools(4, this.taskCount, this.toolIndex);
  9986. }
  9987. },
  9988. addTest() {
  9989. // if (this.testJson.testTitle === "") {
  9990. // this.$message.error("标题不能为空!");
  9991. // return;
  9992. // }
  9993. var aj = this.testJson.testJson;
  9994. var b = 1;
  9995. for (var i = 0; i < aj.length; i++) {
  9996. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9997. var a = 1;
  9998. for (let index = 0; index < aj[i].testItem; index++) {
  9999. const element = aj[i].checkList[index]
  10000. ? aj[i].checkList[index]
  10001. : "";
  10002. if (element != "") {
  10003. b++;
  10004. this.$message.error(`请将题目${i + 1}填写完整。`);
  10005. return;
  10006. } else {
  10007. a++;
  10008. }
  10009. }
  10010. if (b == 1) {
  10011. this.$message.error("至少填写一个问题");
  10012. return;
  10013. }
  10014. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  10015. for (let index = 0; index < aj[i].testItem; index++) {
  10016. const element = aj[i].checkList[index]
  10017. ? aj[i].checkList[index]
  10018. : "";
  10019. var index = 0;
  10020. for (var z = 0; z < aj[i].checkList.length; z++) {
  10021. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10022. if (checkC != "") {
  10023. index++;
  10024. } else {
  10025. this.$message.error(`题目${i + 1}选项不能为空!`);
  10026. return;
  10027. }
  10028. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  10029. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10030. if (checkC == checkC2) {
  10031. this.$message.error(
  10032. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10033. );
  10034. return;
  10035. }
  10036. }
  10037. }
  10038. b++;
  10039. if (index < 2) {
  10040. this.$message.error("每道题目至少需要设置2个选项。");
  10041. return;
  10042. }
  10043. if (
  10044. (aj[i].type == "2" && !aj[i].answer.length) ||
  10045. (aj[i].type == "1" &&
  10046. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  10047. (aj[i].answer !== 0 && !aj[i].answer)))
  10048. ) {
  10049. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  10050. return;
  10051. }
  10052. }
  10053. }
  10054. }
  10055. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10056. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10057. var elc = el.checkList.filter((element) => {
  10058. return element != "";
  10059. });
  10060. return (
  10061. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10062. );
  10063. });
  10064. isTestJson.testCount = isTestJson.testJson.length;
  10065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10066. this.taskCount
  10067. ].toolChoose[this.toolIndex].testJson = isTestJson;
  10068. this.dialogVisibleChoice = false;
  10069. if (
  10070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10071. .toolChoose[this.toolIndex].tool != 45
  10072. ) {
  10073. this.addTools(45, this.taskCount, this.toolIndex);
  10074. }
  10075. },
  10076. addVideoJson(videoJson) {
  10077. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10078. this.taskCount
  10079. ].toolChoose[this.toolIndex].videoJson = videoJson;
  10080. this.dialogVisibleVideo = false;
  10081. if (
  10082. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10083. .toolChoose[this.toolIndex].tool != 62
  10084. ) {
  10085. this.addTools(62, this.taskCount, this.toolIndex);
  10086. }
  10087. },
  10088. //自动获取剪贴板
  10089. pasteOption() {
  10090. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10091. if (!iframe) {
  10092. this.$message.error("请使用AI共创生成题目");
  10093. return;
  10094. }
  10095. let copyData = iframe.contentWindow.copyData;
  10096. if (!copyData || !copyData.selectData.length) {
  10097. this.$message.error("请使用AI共创生成题目");
  10098. return;
  10099. }
  10100. let selectData = copyData.selectData;
  10101. for (var i = 0; i < selectData.length; i++) {
  10102. let answer = 0;
  10103. switch (selectData[i].answer[0]) {
  10104. case "A":
  10105. answer = 0;
  10106. break;
  10107. case "B":
  10108. answer = 1;
  10109. break;
  10110. case "C":
  10111. answer = 2;
  10112. break;
  10113. case "D":
  10114. answer = 3;
  10115. break;
  10116. case "E":
  10117. answer = 4;
  10118. break;
  10119. default:
  10120. break;
  10121. }
  10122. this.testJson.testJson.push({
  10123. teststitle: selectData[i].subject,
  10124. testItem: selectData[i].options.length,
  10125. checkList: selectData[i].options,
  10126. timuList: [],
  10127. answer: answer,
  10128. type: "1",
  10129. });
  10130. this.testJson.testCount++;
  10131. }
  10132. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10133. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10134. var elc = el.checkList.filter((element) => {
  10135. return element != "";
  10136. });
  10137. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  10138. });
  10139. isTestJson.testCount = isTestJson.testJson.length;
  10140. if (!isTestJson.testCount) {
  10141. return;
  10142. }
  10143. this.testJson = isTestJson;
  10144. this.$forceUpdate();
  10145. },
  10146. pasteTask(taskJson) {
  10147. let stageTasksData = [];
  10148. if (taskJson) {
  10149. stageTasksData = taskJson;
  10150. } else {
  10151. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10152. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10153. if (!iframe && !iframe2) {
  10154. this.$message.error("请使用AI共创生成");
  10155. return;
  10156. }
  10157. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10158. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10159. if (
  10160. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  10161. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  10162. ) {
  10163. this.$message.error("请使用AI共创生成");
  10164. return;
  10165. }
  10166. stageTasksData = copyData
  10167. ? copyData.tasksData
  10168. : copyData2
  10169. ? copyData2.tasksData
  10170. : [{ taskName: "", taskDecs: "" }];
  10171. }
  10172. let taskA = [];
  10173. let tasks = stageTasksData;
  10174. for (var j = 0; j < tasks.length; j++) {
  10175. taskA.push({
  10176. task: tasks[j].taskName,
  10177. taskDetail: tasks[j].taskDecs,
  10178. chapterData: [],
  10179. toolText: "",
  10180. toolChoose: [
  10181. {
  10182. tool: [],
  10183. toolDetail: "",
  10184. toolType: 0,
  10185. askCount: 1,
  10186. askTitle: "",
  10187. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10188. },
  10189. ],
  10190. isShowTools: false,
  10191. askCount: 1,
  10192. isFold: 1,
  10193. askTitle: "",
  10194. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10195. checkJson: [{ checkCount: [], checkPerent: [] }],
  10196. homeworkList: [],
  10197. });
  10198. }
  10199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10200. this.$forceUpdate();
  10201. },
  10202. pasteStage(stageJson) {
  10203. let stageData = [];
  10204. if (stageJson) {
  10205. stageData = stageJson;
  10206. } else {
  10207. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10208. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10209. if (!iframe && !iframe2) {
  10210. this.$message.error("请使用AI共创生成");
  10211. return;
  10212. }
  10213. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10214. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10215. if (
  10216. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10217. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10218. ) {
  10219. this.$message.error("请使用AI共创生成");
  10220. return;
  10221. }
  10222. stageData = copyData
  10223. ? copyData.stageData
  10224. : copyData2
  10225. ? copyData2.stageData
  10226. : [""];
  10227. }
  10228. let stage = [];
  10229. for (var i = 0; i < stageData.length; i++) {
  10230. stage.push({
  10231. dyName: stageData[i], //单元标题
  10232. chapterInfo: [
  10233. {
  10234. isread: false,
  10235. chapterid: this.guid(),
  10236. title: "",
  10237. courseName: "",
  10238. taskJson: [
  10239. {
  10240. task: "",
  10241. taskDetail: "",
  10242. chapterData: [],
  10243. toolText: "",
  10244. toolChoose: [
  10245. {
  10246. tool: [],
  10247. toolDetail: "",
  10248. toolType: 0,
  10249. askCount: 1,
  10250. askTitle: "",
  10251. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10252. },
  10253. ],
  10254. isShowTools: false,
  10255. askCount: 1,
  10256. isFold: 1,
  10257. askTitle: "",
  10258. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10259. checkJson: [{ checkCount: [], checkPerent: [] }],
  10260. homeworkList: [],
  10261. },
  10262. ],
  10263. itemCount: 1,
  10264. fileList1: [],
  10265. video: [],
  10266. testData: [],
  10267. pData: [],
  10268. templateArray: [],
  10269. },
  10270. ],
  10271. });
  10272. }
  10273. let _this = this;
  10274. if (stageJson) {
  10275. if (!_this.cid) {
  10276. _this.unitJson = stage;
  10277. } else {
  10278. _this.unitIndex = 0;
  10279. _this.unitJson = stage;
  10280. _this.updateWork();
  10281. }
  10282. } else {
  10283. _this
  10284. .$confirm(
  10285. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  10286. "提示",
  10287. {
  10288. confirmButtonText: "确定",
  10289. cancelButtonText: "取消",
  10290. type: "warning",
  10291. }
  10292. )
  10293. .then(() => {
  10294. _this.unitIndex = 0;
  10295. _this.unitJson = stage;
  10296. // _this.steps++;
  10297. _this.updateWork();
  10298. })
  10299. .catch(() => {
  10300. return;
  10301. });
  10302. }
  10303. },
  10304. openStageBox() {
  10305. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  10306. this.dialogVisibleStageChange = true;
  10307. },
  10308. updateChange() {
  10309. this.$confirm(
  10310. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10311. "提示",
  10312. {
  10313. confirmButtonText: "确定",
  10314. cancelButtonText: "取消",
  10315. type: "warning",
  10316. }
  10317. )
  10318. .then(() => {
  10319. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  10320. this.updateWork();
  10321. this.dialogVisibleStageChange = false;
  10322. })
  10323. .catch(() => {
  10324. return;
  10325. });
  10326. },
  10327. addAnswer() {
  10328. if (this.answerQ == "") {
  10329. this.$message.error("请输入您想要问的问题");
  10330. return;
  10331. }
  10332. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10333. this.taskCount
  10334. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10335. this.dialogVisible8 = false;
  10336. if (
  10337. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10338. .toolChoose[this.toolIndex].tool != 15
  10339. ) {
  10340. this.addTools(15, this.taskCount, this.toolIndex);
  10341. }
  10342. },
  10343. addMp3Answer() {
  10344. if (this.answerQ == "") {
  10345. this.$message.error("请输入您想要回答的问题");
  10346. return;
  10347. }
  10348. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10349. this.taskCount
  10350. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10351. this.dialogVisibleMp3 = false;
  10352. },
  10353. addRateAnswer() {
  10354. var a = 1;
  10355. for (var i = 0; i < this.rateJson.length; i++) {
  10356. if (this.rateJson[i].value == "") {
  10357. a = 2;
  10358. break;
  10359. }
  10360. }
  10361. if (a == 2) {
  10362. this.$message.error("请把评价信息填写完整");
  10363. return;
  10364. }
  10365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10366. this.taskCount
  10367. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10368. this.dialogVisibleRate = false;
  10369. if (
  10370. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10371. .toolChoose[this.toolIndex].tool != 40
  10372. ) {
  10373. this.addTools(40, this.taskCount, this.toolIndex);
  10374. }
  10375. },
  10376. addSelectAnswer() {
  10377. if (this.selectJson.url == "") {
  10378. this.$message.error("请上传题目");
  10379. return;
  10380. }
  10381. if (!this.selectJson.select.length) {
  10382. this.$message.error("请添加选项");
  10383. return;
  10384. }
  10385. if (!this.selectJson.answer.length) {
  10386. this.$message.error("请设置答案");
  10387. return;
  10388. }
  10389. var a = 1;
  10390. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10391. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10392. a = 2;
  10393. }
  10394. }
  10395. if (a == 2) {
  10396. this.$message.error("请设置答案");
  10397. return;
  10398. }
  10399. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10400. this.taskCount
  10401. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10402. this.dialogVisibleSelect = false;
  10403. if (
  10404. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10405. .toolChoose[this.toolIndex].tool != 41
  10406. ) {
  10407. this.addTools(41, this.taskCount, this.toolIndex);
  10408. }
  10409. },
  10410. nextSelectSteps() {
  10411. if (this.selectJson.url == "") {
  10412. this.$message.error("请上传题目");
  10413. return;
  10414. }
  10415. if (!this.selectJson.select.length) {
  10416. this.$message.error("请添加选项");
  10417. return;
  10418. } else {
  10419. for (var z = 0; z < this.selectJson.select.length; z++) {
  10420. let checkC = this.selectJson.select[z];
  10421. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  10422. let checkC2 = this.selectJson.select[z2];
  10423. if (checkC == checkC2) {
  10424. this.$message.error(
  10425. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10426. );
  10427. return;
  10428. }
  10429. }
  10430. }
  10431. }
  10432. var a = 1;
  10433. for (var i = 0; i < this.selectJson.select.length; i++) {
  10434. if (!this.selectJson.select[i]) {
  10435. a = 2;
  10436. }
  10437. }
  10438. if (a == 2) {
  10439. this.$message.error("添加的选项不能为空");
  10440. return;
  10441. }
  10442. this.selectSteps++;
  10443. },
  10444. selectCourseDetail() {
  10445. if (this.cid == "" || this.cid == undefined) {
  10446. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  10447. this.isTeacherSee = true;
  10448. }
  10449. console.log("这是新增课程");
  10450. this.selectAllType();
  10451. } else {
  10452. this.isOutline = true
  10453. this.isOutline2 = true
  10454. this.cidType = 1;
  10455. let params = {
  10456. cid: this.cid,
  10457. };
  10458. this.ajax
  10459. .get(this.$store.state.api + "select_course_detail", params)
  10460. .then((res) => {
  10461. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10462. this.courseState = res.data[0][0].state;
  10463. for (var j = 0; j < this.unitJson.length; j++) {
  10464. for (
  10465. var k = 0;
  10466. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10467. k++
  10468. ) {
  10469. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10470. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10471. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10472. : [];
  10473. let _chapterData = [];
  10474. for (
  10475. var c = 0;
  10476. c <
  10477. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10478. .length;
  10479. c++
  10480. ) {
  10481. if (
  10482. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10483. ) {
  10484. _chapterData.push(
  10485. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10486. );
  10487. }
  10488. }
  10489. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10490. _chapterData;
  10491. }
  10492. }
  10493. this.$forceUpdate();
  10494. this.courseName = res.data[0][0].title;
  10495. this.courseText = res.data[0][0].brief;
  10496. this.courseText2 = res.data[0][0].reBrief;
  10497. this.evalua = res.data[0][0].evaId;
  10498. this.cover = JSON.parse(res.data[0][0].cover);
  10499. this.noneBtnImg = this.cover.length >= 1;
  10500. if (res.data[0][0].refile) {
  10501. this.infoData = JSON.parse(res.data[0][0].refile)
  10502. }
  10503. // this.checkboxList =
  10504. // res.data[0][0].course_student.length > 0
  10505. // ? JSON.parse(res.data[0][0].course_student)
  10506. // : [];
  10507. this.checkboxList2 = res.data[0][0].juri
  10508. ? res.data[0][0].juri.split(",")
  10509. : [];
  10510. this.inviteCode = [];
  10511. for (var i = 0; i < res.data[2].length; i++) {
  10512. this.inviteCode.push({
  10513. cid: res.data[2][i].classid,
  10514. ic: res.data[2][i].code,
  10515. });
  10516. }
  10517. this.checkboxList3 = res.data[0][0].course_teacher
  10518. ? res.data[0][0].course_teacher.split(",")
  10519. : [];
  10520. // this.isTeacherSee =
  10521. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10522. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10523. this.myWord = res.data[0][0].template;
  10524. this.templateC.id = "123";
  10525. this.courseUserid = res.data[0][0].userid;
  10526. // if(this.courseUserid == this.userid){
  10527. // this.InviteChange(this.checkboxList2)
  10528. // }
  10529. this.nbOrder = res.data[0][0].ordernumber;
  10530. this.courseTypeId = [];
  10531. for (var i = 0; i < res.data[1].length; i++) {
  10532. this.courseTypeId.push(res.data[1][i].typeid);
  10533. }
  10534. console.log(this.courseTypeId);
  10535. // if (this.timer) clearInterval(this.timer);
  10536. if (this.timer) clearTimeout(this.timer);
  10537. this.timer = null;
  10538. // this.timer = setInterval(() => {
  10539. if(res.data[3].length){
  10540. try {
  10541. this.aiJson = JSON.parse(res.data[3][0].tips);
  10542. }catch(error){
  10543. console.error(error)
  10544. }
  10545. }
  10546. this.seleteCourseUpdate();
  10547. this.setMan();
  10548. this.selectAllType();
  10549. this.unitJson[
  10550. this.unitIndex
  10551. ].chapterInfo[0].taskJson[0].toolOpen = true;
  10552. // }, 5000);
  10553. this.$forceUpdate();
  10554. setTimeout(() => {
  10555. this.checkEva(this.evalua);
  10556. setTimeout(() => {
  10557. this.checkEva(this.evalua);
  10558. }, 100);
  10559. }, 100);
  10560. })
  10561. .catch((err) => {
  10562. console.error(err);
  10563. });
  10564. }
  10565. },
  10566. seleteCourseUpdate() {
  10567. let params = {
  10568. cid: this.cid,
  10569. };
  10570. this.ajax
  10571. .get(this.$store.state.api + "select_course_detail", params)
  10572. .then((res) => {
  10573. // console.log(this.unitJson);
  10574. let unitJson = JSON.parse(res.data[0][0].chapters);
  10575. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10576. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10577. let _unitJson = [];
  10578. let _chapAarry = [];
  10579. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10580. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10581. let index = 1;
  10582. let chapindex;
  10583. if (_unitJson2.length > unitJson.length) {
  10584. for (let c = 0; c < _unitJson2.length; c++) {
  10585. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10586. }
  10587. for (let j = 0; j < unitJson.length; j++) {
  10588. let count = 0;
  10589. for (let k = 0; k < _unitJson2.length; k++) {
  10590. if (
  10591. unitJson[j].chapterInfo[0].chapterid ==
  10592. _unitJson2[k].chapterInfo[0].chapterid
  10593. ) {
  10594. count++;
  10595. _chapAarry.splice(
  10596. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10597. 1
  10598. );
  10599. _unitJson.push(unitJson[j]);
  10600. break;
  10601. }
  10602. }
  10603. // if(count === 0){
  10604. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10605. // }
  10606. }
  10607. for (let k = 0; k < _unitJson2.length; k++) {
  10608. if (_unitJson2[k].isUpdate == 1) {
  10609. _chapAarry.splice(
  10610. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10611. 1
  10612. );
  10613. _unitJson.push(_unitJson2[k]);
  10614. }
  10615. }
  10616. console.log(_chapAarry);
  10617. for (let d = 0; d < _unitJson2.length; d++) {
  10618. if (
  10619. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10620. ) {
  10621. if (_unitIndex == d) {
  10622. index = 2;
  10623. }
  10624. chapindex = d;
  10625. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10626. }
  10627. }
  10628. } else {
  10629. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10630. }
  10631. for (let i = 0; i < unitJson.length; i++) {
  10632. if (
  10633. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10634. _unitJson[i].chapterInfo[0].chapterid !=
  10635. unitJson[i].chapterInfo[0].chapterid
  10636. ) {
  10637. if (i == _unitJson.length - 1) {
  10638. // this.unitIndex++
  10639. _unitIndex2++;
  10640. }
  10641. _unitJson.splice(i, 0, unitJson[i]);
  10642. } else if (i > _unitJson.length - 1) {
  10643. _unitJson.push(unitJson[i]);
  10644. } else if (
  10645. _unitJson[i].chapterInfo[0].chapterid ==
  10646. unitJson[i].chapterInfo[0].chapterid
  10647. ) {
  10648. _unitJson[i] = unitJson[i];
  10649. }
  10650. // if (i == _unitIndex) {
  10651. // continue;
  10652. // } else
  10653. }
  10654. if (_chapAarry.length && index != 2) {
  10655. if (chapindex < _unitIndex) {
  10656. this.isDelete = 2;
  10657. // this.unitIndex--;
  10658. _unitIndex2--;
  10659. } else if (
  10660. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10661. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10662. ) {
  10663. this.isDelete = 2;
  10664. for (let n = 0; n < _unitJson.length; n++) {
  10665. if (
  10666. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10667. _unitJson[n].chapterInfo[0].chapterid
  10668. ) {
  10669. // this.unitIndex = n;
  10670. _unitIndex2 = n;
  10671. _unitJson[n] = _unitJson2[_unitIndex];
  10672. break;
  10673. }
  10674. }
  10675. }
  10676. } else if (index != 2) {
  10677. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10678. _unitJson2[_unitIndex];
  10679. for (
  10680. var ci = 0;
  10681. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10682. ci++
  10683. ) {
  10684. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10685. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10686. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10687. .toolChoose
  10688. : [];
  10689. let _chapterData = [];
  10690. for (
  10691. var c = 0;
  10692. c <
  10693. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10694. .length;
  10695. c++
  10696. ) {
  10697. if (
  10698. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10699. .chapterData[c]
  10700. ) {
  10701. _chapterData.push(
  10702. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10703. .chapterData[c]
  10704. );
  10705. }
  10706. }
  10707. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10708. _chapterData;
  10709. }
  10710. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10711. }
  10712. if (index == 1) {
  10713. this.unitJson = _unitJson;
  10714. this.$forceUpdate();
  10715. setTimeout(() => {
  10716. if (this.unitIndex != _unitIndex2) {
  10717. this.isDelete = 2;
  10718. this.unitIndex = _unitIndex2;
  10719. }
  10720. }, 0);
  10721. this.timer = setTimeout(() => {
  10722. this.seleteCourseUpdate();
  10723. }, 1000);
  10724. } else if (index == 2) {
  10725. let _this = this;
  10726. _this
  10727. .$confirm(
  10728. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10729. "提示",
  10730. {
  10731. confirmButtonText: "需要",
  10732. cancelButtonText: "取消",
  10733. type: "warning",
  10734. }
  10735. )
  10736. .then(() => {
  10737. if (_this.time()) {
  10738. _this.restoreWork(
  10739. _chapAarry[0],
  10740. _unitJson,
  10741. chapindex,
  10742. _unitJson2,
  10743. _unitIndex2
  10744. );
  10745. }
  10746. })
  10747. .catch(() => {
  10748. _this.unitJson = _unitJson;
  10749. _this.$forceUpdate();
  10750. setTimeout(() => {
  10751. if (this.unitIndex != _unitIndex2) {
  10752. this.isDelete = 2;
  10753. this.unitIndex = _unitIndex2;
  10754. }
  10755. }, 0);
  10756. _this.timer = setTimeout(() => {
  10757. _this.seleteCourseUpdate();
  10758. }, 1000);
  10759. });
  10760. }
  10761. // 在复制操作之前记录滚动位置
  10762. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10763. // 执行复制操作
  10764. // 复制操作完成后恢复滚动位置
  10765. this.$nextTick(() => {
  10766. if (this.$refs.scrollContainer) {
  10767. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10768. }
  10769. });
  10770. })
  10771. .catch((err) => {
  10772. console.error(err);
  10773. });
  10774. },
  10775. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10776. let params = [
  10777. {
  10778. cid: this.cid,
  10779. chapters: JSON.stringify(this.unitJson),
  10780. uid: this.userid,
  10781. chapid: chapid,
  10782. },
  10783. ];
  10784. this.ajax
  10785. .post(this.$store.state.api + "restoreWork", params)
  10786. .then((res) => {
  10787. this.$message({
  10788. message: "恢复成功",
  10789. type: "success",
  10790. });
  10791. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10792. this.unitJson = unitJson;
  10793. this.$forceUpdate();
  10794. setTimeout(() => {
  10795. if (this.unitIndex != unitIndex2) {
  10796. this.isDelete = 2;
  10797. this.unitIndex = unitIndex2;
  10798. }
  10799. }, 0);
  10800. this.timer = setTimeout(() => {
  10801. this.seleteCourseUpdate();
  10802. }, 1000);
  10803. })
  10804. .catch((err) => {
  10805. this.$message.error("网络不佳");
  10806. console.error(err);
  10807. });
  10808. },
  10809. getTypeName() {
  10810. console.log(this.courseTypeId);
  10811. this.$forceUpdate();
  10812. },
  10813. selectAllType() {
  10814. let params = {
  10815. org: this.org && this.org != "" ? this.org : "",
  10816. oid: this.oid && this.oid != "" ? this.oid : "",
  10817. };
  10818. this.ajax
  10819. .get(this.$store.state.api + "selectAllType", params)
  10820. .then((res) => {
  10821. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10822. res.data[0] = [...res.data[0], ...res.data[4]];
  10823. }
  10824. this.CourseType = res.data;
  10825. this.CourseType2 = [
  10826. { name: "智见课程", id: [] },
  10827. { name: "智行课程", id: [] },
  10828. { name: "智创课程", id: [] },
  10829. ];
  10830. for (var cti = 0; cti < res.data[0].length; cti++) {
  10831. if (
  10832. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10833. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  10834. ) {
  10835. this.CourseType2[0].id.push(res.data[0][cti].id);
  10836. } else if (
  10837. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  10838. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10839. ) {
  10840. this.CourseType2[1].id.push(res.data[0][cti].id);
  10841. } else if (
  10842. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10843. ) {
  10844. this.CourseType2[2].id.push(res.data[0][cti].id);
  10845. }
  10846. if (
  10847. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10848. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  10849. ) {
  10850. res.data[0][cti].name = "年级";
  10851. } else if (
  10852. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  10853. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10854. ) {
  10855. res.data[0][cti].name = "学科";
  10856. } else if (
  10857. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10858. ) {
  10859. res.data[0][cti].name = "主题";
  10860. }
  10861. }
  10862. let _courseTypeId = [];
  10863. for (var i = 0; i < res.data[0].length; i++) {
  10864. if (!this.cid) {
  10865. this.courseTypeId[res.data[0][i].id] = [];
  10866. }
  10867. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10868. // }
  10869. this.CourseTypeJson[res.data[0][i].id] = [];
  10870. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10871. if (res.data[0][i].name == "栏目") {
  10872. this.CourseType[0][i].name = "主题";
  10873. }
  10874. }
  10875. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10876. for (var j = 0; j < res.data[1].length; j++) {
  10877. if (
  10878. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10879. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10880. ) {
  10881. _courseTypeId.push(res.data[1][j].id);
  10882. }
  10883. if (res.data[0][i].id == res.data[1][j].pid) {
  10884. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10885. }
  10886. }
  10887. } else {
  10888. if (res.data[2].length > 0) {
  10889. for (var j = 0; j < res.data[2].length; j++) {
  10890. if (
  10891. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10892. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10893. ) {
  10894. _courseTypeId.push(res.data[2][j].id);
  10895. }
  10896. if (res.data[0][i].id == res.data[2][j].pid) {
  10897. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10898. }
  10899. }
  10900. }
  10901. if (res.data[3].length > 0) {
  10902. for (var j = 0; j < res.data[3].length; j++) {
  10903. if (
  10904. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10905. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10906. ) {
  10907. _courseTypeId.push(res.data[3][j].id);
  10908. }
  10909. if (res.data[0][i].id == res.data[3][j].pid) {
  10910. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10911. }
  10912. }
  10913. }
  10914. }
  10915. }
  10916. this.courseTypeId = _courseTypeId;
  10917. })
  10918. .catch((err) => {
  10919. console.error(err);
  10920. });
  10921. },
  10922. selectType() {
  10923. this.ajax
  10924. .get(this.$store.state.api + "selectType")
  10925. .then((res) => {
  10926. this.CourseType = res.data;
  10927. for (var i = 0; i < res.data[0].length; i++) {
  10928. if (!this.cid) {
  10929. this.courseTypeId[res.data[0][i].id] = "";
  10930. }
  10931. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10932. if (res.data[0][i].name == "栏目") {
  10933. this.CourseType[0][i].name = "主题";
  10934. }
  10935. }
  10936. for (var j = 0; j < res.data[1].length; j++) {
  10937. if (res.data[0][i].id == res.data[1][j].pid) {
  10938. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10939. this.CourseTypeJson[res.data[0][i].id] = [];
  10940. }
  10941. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10942. }
  10943. }
  10944. }
  10945. this.selectTypeByOid();
  10946. this.selectTypeByOrg();
  10947. })
  10948. .catch((err) => {
  10949. console.error(err);
  10950. });
  10951. },
  10952. selectTypeByOid() {
  10953. let params = {
  10954. oid: this.oid,
  10955. };
  10956. this.ajax
  10957. .get(this.$store.state.api + "selectTypeByOid", params)
  10958. .then((res) => {
  10959. for (var i = 0; i < res.data[0].length; i++) {
  10960. for (var j = 0; j < res.data[1].length; j++) {
  10961. if (res.data[0][i].id == res.data[1][j].pid) {
  10962. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10963. this.CourseTypeJson[res.data[0][i].id] = [];
  10964. }
  10965. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10966. }
  10967. }
  10968. }
  10969. })
  10970. .catch((err) => {
  10971. console.error(err);
  10972. });
  10973. },
  10974. selectTypeByOrg() {
  10975. let params = {
  10976. oid: this.org,
  10977. };
  10978. this.ajax
  10979. .get(this.$store.state.api + "selectTypeByOrg", params)
  10980. .then((res) => {
  10981. for (var i = 0; i < res.data[0].length; i++) {
  10982. for (var j = 0; j < res.data[1].length; j++) {
  10983. if (res.data[0][i].id == res.data[1][j].pid) {
  10984. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10985. this.CourseTypeJson[res.data[0][i].id] = [];
  10986. }
  10987. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10988. }
  10989. }
  10990. }
  10991. this.$forceUpdate();
  10992. })
  10993. .catch((err) => {
  10994. console.error(err);
  10995. });
  10996. },
  10997. OtherMb(type, task) {
  10998. if (task === 0 || task) {
  10999. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11000. task
  11001. ].isEvaFold = true;
  11002. }
  11003. this.typeMode = type;
  11004. setTimeout(() => {
  11005. this.checkEva(this.checkId);
  11006. setTimeout(() => {
  11007. this.checkEva(this.checkId);
  11008. }, 100);
  11009. }, 100);
  11010. },
  11011. openMember() {
  11012. this.searchTN = "";
  11013. this.getTeacher();
  11014. this.dialogVisibleMember = true;
  11015. },
  11016. checkEva(id, type) {
  11017. this.dialogVisiblemb = false;
  11018. this.selectEva();
  11019. if (this.evalua != id && type == 2) {
  11020. this.$message.success("导入成功");
  11021. setTimeout(() => {
  11022. this.checkEva(id);
  11023. }, 100);
  11024. }
  11025. this.evalua = id;
  11026. this.checkId = id;
  11027. if (this.evalua != "") {
  11028. for (var i = 0; i < this.evaJuri.length; i++) {
  11029. if (this.evalua == this.evaJuri[i].id) {
  11030. this.eTitle = this.evaJuri[i].title;
  11031. this.eJson = JSON.parse(this.evaJuri[i].content);
  11032. }
  11033. }
  11034. this.data.data = [];
  11035. this.$forceUpdate();
  11036. setTimeout(() => {
  11037. this.setMindData();
  11038. }, 1000);
  11039. }
  11040. },
  11041. deleteEva() {
  11042. let _this = this;
  11043. if (_this.evalua == "") {
  11044. this.$message.warning("内容已经清空了,请勿重复清空");
  11045. return;
  11046. }
  11047. _this
  11048. .$confirm("确定删除此目标吗?", "提示", {
  11049. confirmButtonText: "确定",
  11050. cancelButtonText: "取消",
  11051. type: "warning",
  11052. })
  11053. .then(() => {
  11054. _this.evalua = "";
  11055. _this.checkId = "";
  11056. _this.eTitle = "";
  11057. let _unitJson = _this.unitJson;
  11058. for (var i = 0; i < _unitJson.length; i++) {
  11059. let _task = _unitJson[i].chapterInfo[0].taskJson;
  11060. for (var j = 0; j < _task.length; j++) {
  11061. let _eList = _task[j].eList;
  11062. for (var k = 0; k < _eList.length; k++) {
  11063. delete _eList[k].target;
  11064. }
  11065. }
  11066. }
  11067. _this.$forceUpdate();
  11068. if (_this.cid) {
  11069. _this.updateWork();
  11070. }
  11071. })
  11072. .catch(() => {
  11073. return;
  11074. });
  11075. },
  11076. selectEva() {
  11077. let params = {
  11078. oid: this.oid,
  11079. };
  11080. this.ajax
  11081. .get(this.$store.state.api + "selectAllEvaluation", params)
  11082. .then((res) => {
  11083. this.evaJuri = res.data[0];
  11084. // 在复制操作之前记录滚动位置
  11085. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  11086. // 执行复制操作
  11087. // 复制操作完成后恢复滚动位置
  11088. this.$nextTick(() => {
  11089. if (this.$refs.scrollContainer) {
  11090. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  11091. }
  11092. });
  11093. })
  11094. .catch((err) => {
  11095. console.error(err);
  11096. });
  11097. },
  11098. setMindData() {
  11099. let targetArray = [];
  11100. this.data.data = [];
  11101. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  11102. let _eJson = Object.keys(this.eJson);
  11103. let _e = this.eJson;
  11104. for (let i = 0; i < _eJson.length; i++) {
  11105. let element = _e[_eJson[i]];
  11106. this.data.data.push({
  11107. id: element.id,
  11108. parentid: "root",
  11109. topic: element.name,
  11110. });
  11111. // targetArray.push({
  11112. // id: element.id,
  11113. // parentid: "root",
  11114. // name: element.name,
  11115. // });
  11116. targetArray.push({
  11117. value: element.name,
  11118. label: element.name,
  11119. children: [],
  11120. });
  11121. let _eJsonc = Object.keys(element.child);
  11122. let _e2 = element.child;
  11123. for (let j = 0; j < _eJsonc.length; j++) {
  11124. let _ec = _e2[_eJsonc[j]];
  11125. this.data.data.push({
  11126. id: _ec.id,
  11127. parentid: element.id,
  11128. topic: _ec.name,
  11129. });
  11130. // targetArray.push({
  11131. // id: _ec.id,
  11132. // parentid: element.id,
  11133. // name: _ec.name,
  11134. // });
  11135. targetArray[i].children.push({
  11136. value: _ec.name,
  11137. label: _ec.name,
  11138. children: [],
  11139. });
  11140. let _eJsonz = Object.keys(_ec.child);
  11141. let _e3 = _ec.child;
  11142. for (let z = 0; z < _eJsonz.length; z++) {
  11143. let _ez = _e3[_eJsonz[z]];
  11144. this.data.data.push({
  11145. id: _ez.id,
  11146. parentid: _ec.id,
  11147. topic: _ez.name,
  11148. });
  11149. // targetArray.push({
  11150. // id: _ez.id,
  11151. // parentid: _ec.id,
  11152. // name: _ez.name,
  11153. // });
  11154. targetArray[i].children[j].children.push({
  11155. value: _ez.name,
  11156. label: _ez.name,
  11157. });
  11158. }
  11159. }
  11160. }
  11161. this.targetArray = targetArray;
  11162. this.$forceUpdate();
  11163. },
  11164. /*添加评价 */
  11165. addEList(index, tIndex) {
  11166. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  11167. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  11168. value: "",
  11169. detail: "",
  11170. score: 5,
  11171. })
  11172. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  11173. { value: "", detail: "", score: 5 },
  11174. ]);
  11175. this.$forceUpdate();
  11176. },
  11177. openEList(index, tIndex) {
  11178. this.evaIndex = index;
  11179. this.evatIndex = tIndex;
  11180. this.evaBoxDialog = true;
  11181. },
  11182. addCET(index, tIndex) {
  11183. this.cetIndex = index;
  11184. this.cettIndex = tIndex;
  11185. this.selectAllType1();
  11186. },
  11187. addCETemplate() {
  11188. var array =
  11189. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  11190. .eList;
  11191. let params = [
  11192. {
  11193. uid: this.userid,
  11194. n: this.templateName,
  11195. json: JSON.stringify(array),
  11196. t: 1,
  11197. oid: this.oid,
  11198. },
  11199. ];
  11200. this.ajax
  11201. .post(this.$store.state.api + "addCETShare", params)
  11202. .then((res) => {
  11203. this.addTypeByCET(res.data[0][0].id);
  11204. })
  11205. .catch((err) => {
  11206. this.$message.error("网络不佳");
  11207. console.error(err);
  11208. });
  11209. },
  11210. addTypeByCET(id) {
  11211. if (this.setTypeJson.two == "") {
  11212. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  11213. return;
  11214. }
  11215. let params = {
  11216. cid: id,
  11217. };
  11218. this.ajax
  11219. .get(this.$store.state.api + "deleteCETLabel", params)
  11220. .then((res) => {
  11221. for (var i = 0; i < 2; i++) {
  11222. let tid = "";
  11223. if (i == 0) {
  11224. tid = this.setTypeJson.one;
  11225. } else {
  11226. tid = this.setTypeJson.two;
  11227. }
  11228. let params = [
  11229. {
  11230. cid: id,
  11231. tid: tid,
  11232. uid: this.userid,
  11233. },
  11234. ];
  11235. this.ajax
  11236. .post(this.$store.state.api + "addCETLabel", params)
  11237. .then((res) => {
  11238. this.$message({
  11239. message: "添加成功",
  11240. type: "success",
  11241. });
  11242. this.close();
  11243. })
  11244. .catch((err) => {
  11245. this.$message.error("网络不佳");
  11246. console.error(err);
  11247. });
  11248. }
  11249. })
  11250. .catch((err) => {
  11251. this.$message.error("网络不佳");
  11252. console.error(err);
  11253. });
  11254. },
  11255. updateEvaJson(array) {
  11256. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  11257. this.evatIndex
  11258. ].eList = array;
  11259. },
  11260. forceUpdate() {
  11261. this.$forceUpdate();
  11262. },
  11263. deletEList(index, tIndex, eIndex) {
  11264. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11265. eIndex,
  11266. 1
  11267. );
  11268. this.$forceUpdate();
  11269. },
  11270. getChoosePic(t) {
  11271. this.chooseType = t;
  11272. this.getAllBanner();
  11273. },
  11274. getAllBanner() {
  11275. this.sysPicVisible = true;
  11276. let params = {
  11277. t: this.chooseType,
  11278. };
  11279. this.ajax
  11280. .get(this.$store.state.api + "selectAllBanner", params)
  11281. .then((res) => {
  11282. this.sysPic = res.data[0];
  11283. })
  11284. .catch((err) => {
  11285. console.error(err);
  11286. });
  11287. },
  11288. // getClass() {
  11289. // let params = {
  11290. // oid: this.oid,
  11291. // };
  11292. // this.ajax
  11293. // .get(this.$store.state.api + "selectClassBySchool", params)
  11294. // .then((res) => {
  11295. // this.classJuri = res.data[0];
  11296. // })
  11297. // .catch((err) => {
  11298. // console.error(err);
  11299. // });
  11300. // },
  11301. deleteSysPic() {
  11302. this.cover = [];
  11303. this.isSysPic = false;
  11304. this.isSysPic2 = false;
  11305. },
  11306. deleteSelectPic() {
  11307. this.selectJson.url = "";
  11308. },
  11309. setEListStar() {
  11310. this.$forceUpdate();
  11311. },
  11312. deletRateList(i) {
  11313. this.rateJson.splice(i, 1);
  11314. },
  11315. addRateList() {
  11316. this.rateJson.push({ detail: "", score: 5, value: "" });
  11317. },
  11318. addSt() {
  11319. this.sentenceList.push({
  11320. sentenceTitle: "",
  11321. addSentence: [],
  11322. rightAnswer: [],
  11323. });
  11324. },
  11325. addSen(i) {
  11326. if (!this.sentenceList[i].sentenceTitle) {
  11327. this.$message.error("请填写卡片内容!");
  11328. return;
  11329. }
  11330. if (this.sentenceList[i].sentenceTitle.length > 10) {
  11331. this.$message.error("卡片内容字数不能超过10位");
  11332. return;
  11333. }
  11334. if (
  11335. this.sentenceList[i].addSentence.indexOf(
  11336. this.sentenceList[i].sentenceTitle
  11337. ) !== -1
  11338. ) {
  11339. this.$message.error("不能添加重复的卡片内容!");
  11340. return;
  11341. }
  11342. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11343. // this.isPushTitleList.push(this.sentenceTitle);
  11344. this.sentenceList[i].sentenceTitle = "";
  11345. },
  11346. setRightAnswer(s, i, j) {
  11347. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11348. this.sentenceList[i].rightAnswer.push(s);
  11349. }
  11350. },
  11351. returnCard(r, i, j) {
  11352. this.sentenceList[i].rightAnswer.splice(j, 1);
  11353. },
  11354. addSentenceTool() {
  11355. for (var i = 0; i < this.sentenceList.length; i++) {
  11356. if (this.sentenceList[i].rightAnswer.length == 0) {
  11357. this.$message.error(`请将题目${i + 1}设置完整。`);
  11358. return;
  11359. }
  11360. if (
  11361. this.sentenceList[i].addSentence.length !=
  11362. this.sentenceList[i].rightAnswer.length
  11363. ) {
  11364. this.$message.error(`请将题目${i + 1}设置完整。`);
  11365. return;
  11366. }
  11367. }
  11368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11369. this.taskCount
  11370. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11371. this.sentenceList = [
  11372. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11373. ];
  11374. this.dialogVisibleSentence = false;
  11375. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11376. // itemTaskIndex
  11377. // ].toolChoose[toolIndex].tool = [];
  11378. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11379. // itemTaskIndex
  11380. // ].toolChoose[toolIndex].tool.push(i);
  11381. if (
  11382. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11383. .toolChoose[this.toolIndex].tool != 47
  11384. ) {
  11385. this.addTools(47, this.taskCount, this.toolIndex);
  11386. }
  11387. },
  11388. addTableJson() {
  11389. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11390. // this.$message.error("请将信息填写完整!");
  11391. // return;
  11392. // }
  11393. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11394. this.taskCount
  11395. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11396. // this.tableJson = [{ text: "" }];
  11397. // this.dialogVisibleTable = false;
  11398. this.$message.success("上传成功");
  11399. if (
  11400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11401. .toolChoose[this.toolIndex].tool != 48
  11402. ) {
  11403. this.addTools(48, this.taskCount, this.toolIndex);
  11404. }
  11405. },
  11406. addWordJson() {
  11407. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11408. this.taskCount
  11409. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11410. // this.wordJson = [{ text: "" }];
  11411. // this.dialogVisibleWord = false;
  11412. this.$message.success("上传成功");
  11413. if (
  11414. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11415. .toolChoose[this.toolIndex].tool != 52
  11416. ) {
  11417. this.addTools(52, this.taskCount, this.toolIndex);
  11418. }
  11419. },
  11420. addMoreUpload() {
  11421. if (this.uploadJson.length == 0) {
  11422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11423. this.taskCount
  11424. ].toolChoose[this.toolIndex].uploadJson = [];
  11425. } else {
  11426. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11427. this.taskCount
  11428. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11429. }
  11430. this.uploadJson = [];
  11431. this.dialogVisibleMoreUpload = false;
  11432. if (
  11433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11434. .toolChoose[this.toolIndex].tool != 50
  11435. ) {
  11436. this.addTools(50, this.taskCount, this.toolIndex);
  11437. }
  11438. },
  11439. addPreTime() {
  11440. if (this.preTime == 0) {
  11441. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11442. this.taskCount
  11443. ].toolChoose[this.toolIndex].preTime = 0;
  11444. } else {
  11445. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11446. this.taskCount
  11447. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11448. }
  11449. this.preTime = 0;
  11450. this.dialogVisiblePreTime = false;
  11451. if (
  11452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11453. .toolChoose[this.toolIndex].tool != 10
  11454. ) {
  11455. this.addTools(10, this.taskCount, this.toolIndex);
  11456. }
  11457. },
  11458. goToTask(i) {
  11459. this.toolIndexType = "";
  11460. if (this.isClickColor == i + 1) {
  11461. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11462. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11463. // } else {
  11464. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11465. i
  11466. ].toolOpen = true;
  11467. // }
  11468. this.$forceUpdate();
  11469. return;
  11470. }
  11471. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11472. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11473. // } else {
  11474. document.querySelectorAll(".basic_box")[0].scrollTop =
  11475. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11476. this.isClickColor = i + 1;
  11477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11478. // }
  11479. this.$forceUpdate();
  11480. },
  11481. taskOpen(i, stageIndex) {
  11482. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11483. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  11484. } else {
  11485. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11486. }
  11487. this.updateWork3(stageIndex);
  11488. this.$forceUpdate();
  11489. },
  11490. goToTask2(i, stage) {
  11491. this.toolIndexType = "";
  11492. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  11493. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11494. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11495. // } else {
  11496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11497. i
  11498. ].toolOpen = true;
  11499. // }
  11500. this.$forceUpdate();
  11501. return;
  11502. }
  11503. if (this.unitIndex != stage) {
  11504. if (this.panUnitJson() == 2) {
  11505. return;
  11506. }
  11507. this.unitSet(stage);
  11508. }
  11509. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11510. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11511. // } else {
  11512. document.querySelectorAll(".basic_box")[0].scrollTop =
  11513. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11514. this.isClickColor = i + 1;
  11515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11516. // }
  11517. this.$forceUpdate();
  11518. },
  11519. taskMove(type, index) {
  11520. this.$confirm(
  11521. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11522. "提示",
  11523. {
  11524. confirmButtonText: "确定",
  11525. cancelButtonText: "取消",
  11526. type: "warning",
  11527. }
  11528. )
  11529. .then(() => {
  11530. if (type == 1) {
  11531. if (index > 0) {
  11532. let a = JSON.parse(
  11533. JSON.stringify(
  11534. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11535. index - 1
  11536. ]
  11537. )
  11538. );
  11539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11541. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11542. }
  11543. } else {
  11544. if (
  11545. index <
  11546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11547. ) {
  11548. let a = JSON.parse(
  11549. JSON.stringify(
  11550. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11551. index + 1
  11552. ]
  11553. )
  11554. );
  11555. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11556. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11558. }
  11559. }
  11560. this.$forceUpdate();
  11561. })
  11562. .catch(() => {
  11563. return;
  11564. });
  11565. },
  11566. stageMove(type, index) {
  11567. if (type == 1) {
  11568. if (index > 0) {
  11569. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  11570. let acid = JSON.parse(
  11571. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  11572. );
  11573. let bcid = JSON.parse(
  11574. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11575. );
  11576. this.unitJson3[index - 1] = this.unitJson3[index];
  11577. this.unitJson3[index] = a;
  11578. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  11579. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11580. }
  11581. } else {
  11582. if (index < this.unitJson3.length - 1) {
  11583. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  11584. let acid = JSON.parse(
  11585. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  11586. );
  11587. let bcid = JSON.parse(
  11588. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11589. );
  11590. this.unitJson3[index + 1] = this.unitJson3[index];
  11591. this.unitJson3[index] = a;
  11592. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  11593. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11594. }
  11595. }
  11596. this.$forceUpdate();
  11597. },
  11598. addGroup(i) {
  11599. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11600. this.groupJson.group.push({
  11601. name: "第" + (this.groupJson.group.length + 1) + "组",
  11602. });
  11603. },
  11604. deleteGroup(i) {
  11605. this.groupJson.group.splice(i, 1);
  11606. },
  11607. numberPan() {
  11608. if (
  11609. /[^\d]/.test(this.groupJson.number) ||
  11610. this.groupJson.number < 2 ||
  11611. this.groupJson.number > 10
  11612. ) {
  11613. this.$message.error("请输入2-10的数字");
  11614. this.groupJson.number = "";
  11615. }
  11616. },
  11617. addGroupJson() {
  11618. for (var i = 0; i < this.groupJson.group.length; i++) {
  11619. if (!this.groupJson.group[i].name) {
  11620. this.$message.error("请将信息填写完整!");
  11621. return;
  11622. }
  11623. }
  11624. if (!this.groupJson.number) {
  11625. this.$message.error("请将信息填写完整!");
  11626. return;
  11627. }
  11628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11629. this.taskCount
  11630. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11631. JSON.stringify(this.groupJson)
  11632. );
  11633. this.dialogVisibleGroup = false;
  11634. this.groupJson = {};
  11635. if (
  11636. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11637. .toolChoose[this.toolIndex].tool != 49
  11638. ) {
  11639. this.addTools(49, this.taskCount, this.toolIndex);
  11640. }
  11641. },
  11642. updateTime(preTime) {
  11643. this.preTime = preTime;
  11644. },
  11645. InviteChange(val) {
  11646. console.log(val);
  11647. let _check = [];
  11648. let _check2 = [];
  11649. for (var i = 0; i < this.grade2.length; i++) {
  11650. var gid = this.grade2[i].id;
  11651. _check.push(gid);
  11652. }
  11653. for (var i = 0; i < this.checkboxList2.length; i++) {
  11654. var _id = this.checkboxList2[i];
  11655. if (_check.indexOf(_id) !== -1) {
  11656. _check2.push(_id);
  11657. }
  11658. }
  11659. this.checkAll = _check2.length === _check.length;
  11660. return;
  11661. let array = JSON.parse(JSON.stringify(val));
  11662. this.inviteCode = this.inviteCode.filter((el) => {
  11663. if (val.indexOf(el.cid) != -1) {
  11664. array.splice(array.indexOf(el.cid), 1);
  11665. return el;
  11666. }
  11667. });
  11668. for (var i = 0; i < array.length; i++) {
  11669. this.getInviteCode(array[i]);
  11670. }
  11671. },
  11672. InviteChange2(val) {
  11673. console.log(val);
  11674. let _check = [];
  11675. let _check2 = [];
  11676. for (var i = 0; i < this.teacherJuri.length; i++) {
  11677. var gid = this.teacherJuri[i].userid;
  11678. _check.push(gid);
  11679. }
  11680. for (var i = 0; i < this.checkboxList3.length; i++) {
  11681. var _id = this.checkboxList3[i];
  11682. if (_check.indexOf(_id) !== -1) {
  11683. _check2.push(_id);
  11684. }
  11685. }
  11686. this.checkAll2 = _check2.length === _check.length;
  11687. this.setMan();
  11688. return;
  11689. let array = JSON.parse(JSON.stringify(val));
  11690. this.inviteCode = this.inviteCode.filter((el) => {
  11691. if (val.indexOf(el.cid) != -1) {
  11692. array.splice(array.indexOf(el.cid), 1);
  11693. return el;
  11694. }
  11695. });
  11696. for (var i = 0; i < array.length; i++) {
  11697. this.getInviteCode(array[i]);
  11698. }
  11699. },
  11700. handleCheckAllChange(val) {
  11701. if (val) {
  11702. for (var i = 0; i < this.grade2.length; i++) {
  11703. var gid = this.grade2[i].id;
  11704. if (this.checkboxList2.indexOf(gid) === -1) {
  11705. this.checkboxList2.push(gid);
  11706. }
  11707. }
  11708. } else {
  11709. let _check = [];
  11710. let _check2 = [];
  11711. for (var i = 0; i < this.grade2.length; i++) {
  11712. var gid = this.grade2[i].id;
  11713. _check.push(gid);
  11714. }
  11715. for (var i = 0; i < this.checkboxList2.length; i++) {
  11716. var _id = this.checkboxList2[i];
  11717. if (_check.indexOf(_id) === -1) {
  11718. _check2.push(_id);
  11719. }
  11720. }
  11721. this.checkboxList2 = _check2;
  11722. }
  11723. this.isIndeterminate = false;
  11724. },
  11725. handleCheckAllChange2(val) {
  11726. if (val) {
  11727. for (var i = 0; i < this.teacherJuri.length; i++) {
  11728. var gid = this.teacherJuri[i].userid;
  11729. if (this.checkboxList3.indexOf(gid) === -1) {
  11730. this.checkboxList3.push(gid);
  11731. }
  11732. }
  11733. } else {
  11734. let _check = [];
  11735. let _check2 = [];
  11736. for (var i = 0; i < this.teacherJuri.length; i++) {
  11737. var gid = this.teacherJuri[i].userid;
  11738. _check.push(gid);
  11739. }
  11740. for (var i = 0; i < this.checkboxList3.length; i++) {
  11741. var _id = this.checkboxList3[i];
  11742. if (_check.indexOf(_id) === -1) {
  11743. _check2.push(_id);
  11744. }
  11745. }
  11746. this.checkboxList3 = _check2;
  11747. }
  11748. this.isIndeterminate2 = false;
  11749. },
  11750. async getInviteCode(cid) {
  11751. let code = this.randomNumber();
  11752. let params = {
  11753. code: code,
  11754. oid: this.oid,
  11755. };
  11756. let type = 1;
  11757. for (var i = 0; i < this.inviteCode.length; i++) {
  11758. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11759. type = 2;
  11760. }
  11761. }
  11762. if (type == 2) {
  11763. this.getInviteCode(cid);
  11764. return;
  11765. }
  11766. const res = await this.ajax.get(
  11767. this.$store.state.api + "selectInviteCode2",
  11768. params
  11769. );
  11770. if (
  11771. res.data.length &&
  11772. res.data[0].length &&
  11773. res.data[0][0].courseId != this.cid
  11774. ) {
  11775. this.getInviteCode(cid);
  11776. return;
  11777. }
  11778. let array = [];
  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.inviteCode[array.indexOf(cid)].ic = code;
  11784. } else {
  11785. this.inviteCode.push({ cid: cid, ic: code });
  11786. }
  11787. },
  11788. OpenInviteD(cid) {
  11789. let array = [];
  11790. this.icode = "";
  11791. for (var i = 0; i < this.inviteCode.length; i++) {
  11792. array.push(this.inviteCode[i].cid);
  11793. }
  11794. if (array.indexOf(cid) != -1) {
  11795. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11796. }
  11797. this.inviteId = cid;
  11798. this.dialogVisibleInvite = true;
  11799. },
  11800. addInvite() {
  11801. let reg = /^[A-Za-z0-9]{4,}$/;
  11802. if (!reg.test(this.icode)) {
  11803. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11804. return;
  11805. }
  11806. let type = 1;
  11807. for (var i = 0; i < this.inviteCode.length; i++) {
  11808. if (
  11809. this.inviteCode[i].cid != this.inviteId &&
  11810. this.icode == this.inviteCode[i].ic
  11811. ) {
  11812. type = 2;
  11813. }
  11814. }
  11815. if (type == 2) {
  11816. this.$message.error("已有此随机码,不能重复");
  11817. return;
  11818. }
  11819. let params = {
  11820. code: this.icode,
  11821. oid: this.oid,
  11822. };
  11823. this.ajax
  11824. .get(this.$store.state.api + "selectInviteCode", params)
  11825. .then((res) => {
  11826. if (
  11827. res.data.length &&
  11828. res.data[0].length &&
  11829. res.data[0][0].courseId != this.cid
  11830. ) {
  11831. this.$message.error("已有此随机码,不能重复");
  11832. return;
  11833. }
  11834. let array = [];
  11835. for (var i = 0; i < this.inviteCode.length; i++) {
  11836. array.push(this.inviteCode[i].cid);
  11837. }
  11838. if (array.indexOf(this.inviteId) != -1) {
  11839. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11840. } else {
  11841. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11842. }
  11843. this.icode = "";
  11844. this.dialogVisibleInvite = false;
  11845. })
  11846. .catch((err) => {
  11847. console.error(err);
  11848. });
  11849. },
  11850. randomNumber() {
  11851. // 随机生成两位数
  11852. // let num = Math.floor(Math.random() * 900) + 100;
  11853. // 生成 0 到 99 之间的随机整数
  11854. const randomNumber = Math.floor(Math.random() * 100);
  11855. // 如果随机数小于 10,补上前导零
  11856. const num =
  11857. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11858. // 随机生成两个大写字母
  11859. let letters = "";
  11860. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11861. for (let i = 0; i < 3; i++) {
  11862. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11863. }
  11864. // 随机生成两位数字和字母的组合
  11865. let mix = "";
  11866. let chars =
  11867. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11868. for (let i = 0; i < 3; i++) {
  11869. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11870. mix += char;
  11871. }
  11872. // 随机选择一种类型
  11873. let type = Math.floor(Math.random() * 3);
  11874. return num;
  11875. // 根据类型输出结果
  11876. switch (type) {
  11877. case 0:
  11878. console.log(num); // 输出两位数
  11879. return num;
  11880. case 1:
  11881. console.log(letters); // 输出两个大写字母
  11882. return letters;
  11883. case 2:
  11884. console.log(mix); // 输出两位数字和字母的组合
  11885. return mix;
  11886. }
  11887. },
  11888. getPaste() {
  11889. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11890. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11891. if (!iframe && !iframe2) {
  11892. return;
  11893. }
  11894. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11895. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11896. if (copyData && copyData.stageData && copyData.stageData.length) {
  11897. this.isPasteStage = true;
  11898. }
  11899. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  11900. this.isPasteStage = true;
  11901. }
  11902. if (copyData && copyData.selectData.length) {
  11903. this.isPasteChoice = true;
  11904. }
  11905. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  11906. this.isPasteTask = true;
  11907. }
  11908. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  11909. this.isPasteTask = true;
  11910. }
  11911. },
  11912. searchImage() {
  11913. var _this = this;
  11914. _this.imageList = [];
  11915. if (!_this.searchImageValue) {
  11916. _this.sysPicVisible2 = true;
  11917. return;
  11918. }
  11919. _this.imageloading = true;
  11920. _this.ajax
  11921. .post("https://gpt.cocorobo.cn/search_image", {
  11922. page: _this.ppage,
  11923. pagesize: 9,
  11924. query: _this.searchImageValue,
  11925. })
  11926. .then(function (response) {
  11927. // console.log(response.data.data);
  11928. var data = response.data.FunctionResponse.result;
  11929. for (var i = 0; i < data.length; i++) {
  11930. _this.imageList.push({ url: data[i].thumbnail });
  11931. }
  11932. _this.imageloading = false;
  11933. })
  11934. .catch(function (error) {
  11935. console.log(error);
  11936. });
  11937. _this.sysPicVisible2 = true;
  11938. },
  11939. changePicture() {
  11940. this.ppage++;
  11941. this.searchImage();
  11942. },
  11943. resetImage() {
  11944. this.ppage = 1;
  11945. this.searchImage();
  11946. },
  11947. jumpGj(i, j) {
  11948. if (i + 1 != this.isClickColor) {
  11949. this.isClickColor = i + 1;
  11950. }
  11951. var a = document.scrollingElement;
  11952. this.toolIndexType = `gj${i}${j}`;
  11953. let target = document.querySelector(`#gj${i}${j}`);
  11954. if (target) {
  11955. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11956. setTimeout(() => {
  11957. target.scrollIntoView(true);
  11958. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11959. j
  11960. ].isFold3 = false;
  11961. setTimeout(() => {
  11962. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11963. }, 0);
  11964. }, 0);
  11965. }
  11966. },
  11967. jumpGj2(i, j, k) {
  11968. if (this.unitIndex != k) {
  11969. if (this.panUnitJson() == 2) {
  11970. return;
  11971. }
  11972. this.unitSet(k);
  11973. }
  11974. setTimeout(() => {
  11975. if (i + 1 != this.isClickColor) {
  11976. this.isClickColor = i + 1;
  11977. }
  11978. var a = document.scrollingElement;
  11979. this.toolIndexType = `gj${i}${j}${k}`;
  11980. let target = document.querySelector(`#gj${i}${j}`);
  11981. if (target) {
  11982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11983. setTimeout(() => {
  11984. target.scrollIntoView(true);
  11985. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11986. j
  11987. ].isFold3 = false;
  11988. setTimeout(() => {
  11989. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11990. }, 0);
  11991. }, 0);
  11992. }
  11993. }, 0);
  11994. },
  11995. dragStart(val, i, j) {
  11996. console.log(this.taskCount);
  11997. this.dragType = "drag";
  11998. this.taskCount = j;
  11999. this.oldIndex = i;
  12000. this.oldData = val;
  12001. },
  12002. dragOver(i, j) {
  12003. this.typeIndex = "chapter-" + j + "-" + i;
  12004. this.newIndex = i;
  12005. },
  12006. dragEnd() {
  12007. if (this.dragType != "drag") {
  12008. this.typeIndex = "";
  12009. this.newIndex = "";
  12010. this.dragType = "";
  12011. this.isdrag = "";
  12012. return;
  12013. }
  12014. console.log(this.taskCount);
  12015. let newItems = [
  12016. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12017. .chapterData,
  12018. ];
  12019. // 删除老的节点
  12020. newItems.splice(this.oldIndex, 1);
  12021. // 在列表中目标位置增加新的节点
  12022. newItems.splice(this.newIndex, 0, this.oldData);
  12023. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12024. this.taskCount
  12025. ].chapterData = [...newItems];
  12026. this.typeIndex = "";
  12027. this.newIndex = "";
  12028. this.dragType = "";
  12029. this.isdrag = "";
  12030. this.$forceUpdate();
  12031. },
  12032. dragTaskStart(val, i, j) {
  12033. this.dragType = "task";
  12034. this.oldIndex = i;
  12035. this.oldData = val;
  12036. this.oldUnitIndex = j;
  12037. },
  12038. dragTaskOver(i, j) {
  12039. this.typeIndex = "task-" + i;
  12040. this.newIndex = i;
  12041. this.checkUnitIndex = j;
  12042. },
  12043. async dragTaskEnd() {
  12044. if (this.dragType != "task") {
  12045. this.newIndex = "";
  12046. this.dragType = "";
  12047. this.typeIndex = "";
  12048. this.checkUnitIndex = "";
  12049. this.isdrag = "";
  12050. return;
  12051. }
  12052. if (
  12053. this.newIndex == this.oldIndex &&
  12054. this.oldUnitIndex == this.checkUnitIndex
  12055. ) {
  12056. this.newIndex = "";
  12057. this.dragType = "";
  12058. this.typeIndex = "";
  12059. this.checkUnitIndex = "";
  12060. this.isdrag = "";
  12061. return;
  12062. }
  12063. let count1 = await this.getWorksCount(
  12064. 2,
  12065. this.checkUnitIndex,
  12066. this.newIndex,
  12067. 0
  12068. );
  12069. let count2 = await this.getWorksCount(
  12070. 2,
  12071. this.oldUnitIndex,
  12072. this.oldIndex,
  12073. 0
  12074. );
  12075. if (count1 > 0 || count2 > 0) {
  12076. this.$confirm(
  12077. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  12078. "提示",
  12079. {
  12080. confirmButtonText: "确定",
  12081. cancelButtonText: "取消",
  12082. type: "warning",
  12083. }
  12084. )
  12085. .then(() => {
  12086. if (this.oldUnitIndex != this.checkUnitIndex) {
  12087. let newItems = [
  12088. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12089. ];
  12090. // 删除老的节点
  12091. newItems.splice(this.oldIndex, 1);
  12092. // 在列表中目标位置增加新的节点
  12093. let newItems2 = [
  12094. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12095. ];
  12096. newItems2.splice(this.newIndex, 0, this.oldData);
  12097. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12098. ...newItems,
  12099. ];
  12100. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12101. ...newItems2,
  12102. ];
  12103. } else {
  12104. let newItems = [
  12105. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12106. ];
  12107. let chapterData = []
  12108. if (this.oldIndex == 0) {
  12109. chapterData = newItems[this.oldIndex].chapterData
  12110. newItems[this.oldIndex].chapterData = []
  12111. } else if (this.newIndex == 0) {
  12112. chapterData = newItems[this.newIndex].chapterData
  12113. newItems[this.oldIndex].chapterData = []
  12114. }
  12115. // 删除老的节点
  12116. newItems.splice(this.oldIndex, 1);
  12117. // 在列表中目标位置增加新的节点
  12118. newItems.splice(this.newIndex, 0, this.oldData);
  12119. if (this.oldIndex == 0 || this.newIndex == 0) {
  12120. newItems[0].chapterData = chapterData
  12121. }
  12122. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12123. ...newItems,
  12124. ];
  12125. }
  12126. this.typeIndex = "";
  12127. this.newIndex = "";
  12128. this.dragType = "";
  12129. this.checkUnitIndex = "";
  12130. this.isdrag = "";
  12131. this.updateWork();
  12132. this.$forceUpdate();
  12133. })
  12134. .catch(() => {
  12135. this.newIndex = "";
  12136. this.dragType = "";
  12137. this.typeIndex = "";
  12138. this.checkUnitIndex = "";
  12139. this.isdrag = "";
  12140. return;
  12141. });
  12142. } else {
  12143. if (this.oldUnitIndex != this.checkUnitIndex) {
  12144. let newItems = [
  12145. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12146. ];
  12147. // 删除老的节点
  12148. newItems.splice(this.oldIndex, 1);
  12149. // 在列表中目标位置增加新的节点
  12150. let newItems2 = [
  12151. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12152. ];
  12153. newItems2.splice(this.newIndex, 0, this.oldData);
  12154. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12155. ...newItems,
  12156. ];
  12157. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12158. ...newItems2,
  12159. ];
  12160. } else {
  12161. let newItems = [
  12162. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12163. ];
  12164. let chapterData = []
  12165. if (this.oldIndex == 0) {
  12166. chapterData = newItems[this.oldIndex].chapterData
  12167. newItems[this.oldIndex].chapterData = []
  12168. } else if (this.newIndex == 0) {
  12169. chapterData = newItems[this.newIndex].chapterData
  12170. newItems[this.oldIndex].chapterData = []
  12171. }
  12172. // 删除老的节点
  12173. newItems.splice(this.oldIndex, 1);
  12174. // 在列表中目标位置增加新的节点
  12175. newItems.splice(this.newIndex, 0, this.oldData);
  12176. if (this.oldIndex == 0 || this.newIndex == 0) {
  12177. newItems[0].chapterData = chapterData
  12178. }
  12179. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12180. ...newItems,
  12181. ];
  12182. }
  12183. this.typeIndex = "";
  12184. this.newIndex = "";
  12185. this.dragType = "";
  12186. this.checkUnitIndex = "";
  12187. this.isdrag = "";
  12188. this.updateWork();
  12189. this.$forceUpdate();
  12190. }
  12191. },
  12192. dragUnitStart(val, i) {
  12193. this.dragType = "Unit";
  12194. this.oldIndex = i;
  12195. this.oldData = val;
  12196. },
  12197. dragUnitOver(i) {
  12198. this.typeIndex = "Unit-" + i;
  12199. this.newIndex = i;
  12200. console.log(i, this.unitJson[i].toolOpen);
  12201. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  12202. this.unitJson[i].toolOpen = true;
  12203. this.updateWork();
  12204. this.$forceUpdate();
  12205. }
  12206. },
  12207. async dragUnitEnd() {
  12208. if (this.dragType != "Unit") {
  12209. this.newIndex = "";
  12210. this.dragType = "";
  12211. this.typeIndex = "";
  12212. this.isdrag = "";
  12213. return;
  12214. }
  12215. if (this.newIndex == this.oldIndex) {
  12216. this.newIndex = "";
  12217. this.dragType = "";
  12218. this.typeIndex = "";
  12219. this.isdrag = "";
  12220. return;
  12221. }
  12222. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  12223. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  12224. console.log(count1, count2);
  12225. if (count1 > 0 || count2 > 0) {
  12226. this.$confirm(
  12227. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12228. "提示",
  12229. {
  12230. confirmButtonText: "确定",
  12231. cancelButtonText: "取消",
  12232. type: "warning",
  12233. }
  12234. )
  12235. .then(() => {
  12236. let newItems = [...this.unitJson];
  12237. // 删除老的节点
  12238. newItems.splice(this.oldIndex, 1);
  12239. // 在列表中目标位置增加新的节点
  12240. newItems.splice(this.newIndex, 0, this.oldData);
  12241. this.unitJson = [...newItems];
  12242. this.typeIndex = "";
  12243. this.newIndex = "";
  12244. this.dragType = "";
  12245. this.isdrag = "";
  12246. this.updateWork();
  12247. this.$forceUpdate();
  12248. })
  12249. .catch(() => {
  12250. this.newIndex = "";
  12251. this.dragType = "";
  12252. this.typeIndex = "";
  12253. this.isdrag = "";
  12254. return;
  12255. });
  12256. } else {
  12257. let newItems = [...this.unitJson];
  12258. // 删除老的节点
  12259. newItems.splice(this.oldIndex, 1);
  12260. // 在列表中目标位置增加新的节点
  12261. newItems.splice(this.newIndex, 0, this.oldData);
  12262. this.unitJson = [...newItems];
  12263. this.typeIndex = "";
  12264. this.newIndex = "";
  12265. this.dragType = "";
  12266. this.isdrag = "";
  12267. this.updateWork();
  12268. this.$forceUpdate();
  12269. }
  12270. },
  12271. getWorksCount(type, stage, task, tool) {
  12272. return new Promise((resolve, reject) => {
  12273. let params = [
  12274. {
  12275. cid: this.cid,
  12276. stage: stage,
  12277. task: task,
  12278. tool: tool,
  12279. type: type,
  12280. },
  12281. ];
  12282. this.ajax
  12283. .post(this.$store.state.api + "getCourseWorkCount", params)
  12284. .then((res) => {
  12285. let count = res.data[0][0].count;
  12286. resolve(count);
  12287. })
  12288. .catch((err) => {
  12289. resolve(0);
  12290. this.$message.error("网络不佳");
  12291. console.error(err);
  12292. });
  12293. });
  12294. },
  12295. getTwoType(id) {
  12296. this.twoJson = [];
  12297. var array = this.CourseTypeJson1[
  12298. "3f8eed32-aba9-11ee-b534-005056b86db5"
  12299. ].filter((e) => {
  12300. return e.ppid == id;
  12301. });
  12302. this.twoJson = array;
  12303. this.$forceUpdate();
  12304. },
  12305. ctype() {
  12306. this.oneJson =
  12307. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  12308. },
  12309. selectAllType1() {
  12310. this.CourseType1 = [];
  12311. this.CourseTypeJson1 = {};
  12312. this.courseTypeId1 = {};
  12313. this.$forceUpdate();
  12314. let params = {
  12315. org: this.org && this.org != "" ? this.org : "",
  12316. oid: this.oid && this.oid != "" ? this.oid : "",
  12317. };
  12318. this.ajax
  12319. .get(this.$store.state.api + "selectAllEvaType", params)
  12320. .then((res) => {
  12321. this.CourseType1 = res.data;
  12322. for (var i = 0; i < res.data[0].length; i++) {
  12323. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  12324. res.data[0][i].name = "一级分类";
  12325. } else if (
  12326. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  12327. ) {
  12328. res.data[0][i].name = "二级分类";
  12329. }
  12330. if (!this.cid) {
  12331. this.courseTypeId1[res.data[0][i].id] = [];
  12332. }
  12333. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  12334. this.CourseTypeJson1[res.data[0][i].id] = [];
  12335. }
  12336. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  12337. for (var j = 0; j < res.data[1].length; j++) {
  12338. if (res.data[0][i].id == res.data[1][j].pid) {
  12339. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12340. }
  12341. }
  12342. // } else {
  12343. if (res.data[2].length > 0) {
  12344. for (var j = 0; j < res.data[2].length; j++) {
  12345. if (res.data[0][i].id == res.data[2][j].pid) {
  12346. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12347. }
  12348. }
  12349. }
  12350. if (res.data[3].length > 0) {
  12351. for (var j = 0; j < res.data[3].length; j++) {
  12352. if (res.data[0][i].id == res.data[3][j].pid) {
  12353. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12354. }
  12355. }
  12356. }
  12357. // }
  12358. }
  12359. this.ctype();
  12360. this.cetBoxDialog = true;
  12361. })
  12362. .catch((err) => {
  12363. console.error(err);
  12364. });
  12365. },
  12366. setAiJson(pan,string){
  12367. this.aiJson[pan] = string
  12368. this.$forceUpdate();
  12369. },
  12370. openAiDialog(clickType, type, callback, index, tindex) {
  12371. this.clickType = clickType
  12372. let sub = []
  12373. if (this.courseTypeId.length) {
  12374. for (var i = 0; i < this.courseTypeId.length; i++) {
  12375. let _sid = this.courseTypeId[i]
  12376. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12377. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12378. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12379. }
  12380. }
  12381. }
  12382. }
  12383. if (type == "aiDetail") {
  12384. if (this.ttextLoading) {
  12385. this.$message({
  12386. message: "请回答完毕后再次发送",
  12387. type: "warning"
  12388. });
  12389. return;
  12390. }
  12391. this.aitype = "aiDetail"
  12392. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程。`
  12393. this.aiText = this.aiJson.aiDetail
  12394. } else if (type == "aiOutline") {
  12395. this.aitype = "aiOutline"
  12396. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`
  12397. this.aiText = this.aiJson.aiOutline
  12398. } else if (type == "aiTask") {
  12399. this.aitype = "aiTask"
  12400. var _text = ""
  12401. for (var i = 0; i < this.teacherText.length; i++) {
  12402. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12403. }
  12404. // this.aiText = `请根据${_text}。`
  12405. this.aiText = this.aiJson.aiTask
  12406. this.aiCallBack = callback
  12407. } else if (type == "aiDetail1") {
  12408. if (this.ttaskDetailLoading.indexOf('task-' + index) !== -1) {
  12409. this.$message({
  12410. message: "请回答完毕后再次发送",
  12411. type: "warning"
  12412. });
  12413. return;
  12414. }
  12415. this.aitype = "aiDetail1"
  12416. // this.aiText = `请帮我优化下列文字内容,更具象化更详细,输出文本格式就行不要带有其他格式\n${callback}`
  12417. // this.aiText = `请根据${callback},重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准 \n`
  12418. this.aiText = this.aiJson.aiDetail1
  12419. this.aiCallBack = callback
  12420. this.aiIndex = index
  12421. } else if (type == "aiDetail2") {
  12422. if (this.ttaskDetailLoading2.indexOf('task-' + index) !== -1) {
  12423. this.$message({
  12424. message: "请回答完毕后再次发送",
  12425. type: "warning"
  12426. });
  12427. return;
  12428. }
  12429. this.aitype = "aiDetail2"
  12430. // this.aiText = `请你在考虑到整个课程的情况下,优化该任务描述和任务名:${callback.task}:${callback.taskDetail}`
  12431. this.aiText = this.aiJson.aiDetail2
  12432. this.aiCallBack = callback
  12433. this.aiIndex = index
  12434. } else if (type == "aiDetail3") {
  12435. if (this.ttaskDetailLoading3.indexOf('task-' + index + tindex) !== -1) {
  12436. this.$message({
  12437. message: "请回答完毕后再次发送",
  12438. type: "warning"
  12439. });
  12440. return;
  12441. }
  12442. this.aitype = "aiDetail3"
  12443. this.aiText = this.aiJson.aiDetail3
  12444. this.aiIndex = index + '-' + tindex
  12445. } else if (type == "aiDetail4") {
  12446. var _text = ""
  12447. for (var i = 0; i < callback.length; i++) {
  12448. _text += `评价维度:${callback[i].value} 维度描述:${callback[i].detail} `
  12449. }
  12450. this.aitype = "aiDetail4"
  12451. this.aiText = this.aiJson.aiDetail4
  12452. this.aiIndex = index
  12453. } else if (type == "aiTeacher") {
  12454. this.aitype = "aiTeacher"
  12455. var _text = ""
  12456. for (var i = 0; i < this.dArray.length; i++) {
  12457. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12458. }
  12459. // this.aiText = `请根据${_text}为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12460. this.aiText = this.aiJson.aiTeacher
  12461. this.aiCallBack = callback
  12462. } else if (type == "teacherDetail") {
  12463. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  12464. this.$message({
  12465. message: "请回答完毕后再次发送",
  12466. type: "warning"
  12467. });
  12468. return;
  12469. }
  12470. this.aitype = "teacherDetail"
  12471. // this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12472. this.aiText = this.aiJson.teacherDetail
  12473. this.aiCallBack = callback
  12474. this.aiIndex = index
  12475. }
  12476. this.dialogVisibleAiD = true
  12477. },
  12478. aiConfirm(msg) {
  12479. let sub = []
  12480. if (this.courseTypeId.length) {
  12481. for (var i = 0; i < this.courseTypeId.length; i++) {
  12482. let _sid = this.courseTypeId[i]
  12483. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12484. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12485. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12486. }
  12487. }
  12488. }
  12489. }
  12490. let url = []
  12491. if (this.infoData.length) {
  12492. for (var i = 0; i < this.infoData.length; i++) {
  12493. url.push(this.infoData[i].url)
  12494. }
  12495. }
  12496. if (this.aitype == "aiDetail") {
  12497. this.detailYou(msg)
  12498. } else if (this.aitype == "aiOutline") {
  12499. this.loading = true
  12500. let message = `NOTICE
  12501. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  12502. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12503. Instruction: Based on the context, follow "Format example", write content.
  12504. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12505. User: Please generate a recipe for chocolate chip cookies in JSON format.
  12506. # Context
  12507. ## 要求
  12508. ${msg} 以及##补充参考资料和##参考资料,
  12509. 然后根据Format example的要求返回要以数组的格式
  12510. ## 参考资料
  12511. 课程名字:${this.courseName}
  12512. 课程简要描述:${this.courseText ? this.courseText : '暂无'}
  12513. 学科:${sub.length ? sub.join(",") : "无"}
  12514. 班级:${this.getListClassC(this.checkboxList2)}
  12515. ## 补充参考资料
  12516. 补充资料:${url.join(",")}
  12517. 补充描述:${this.courseText2}
  12518. # Format example
  12519. [{"task": "任务名称1","detail": "任务设计和评价标准"},{"task": "任务名称2","detail": "任务设计和评价标准"}]
  12520. Instruction: Based on the context, follow "Format example", write content.
  12521. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12522. User: Please generate a recipe for chocolate chip cookies in JSON format.`
  12523. this.aiGet2(message, () => {
  12524. this.loading = false
  12525. this.isOutline = true
  12526. })
  12527. } else if (this.aitype == "aiTask") {
  12528. var _text = ""
  12529. for (var i = 0; i < this.teacherText.length; i++) {
  12530. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12531. }
  12532. let message = `NOTICE
  12533. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  12534. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12535. Instruction: Based on the context, follow "Format example", write content.
  12536. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12537. User: Please generate a recipe for chocolate chip cookies in JSON format.
  12538. # Context
  12539. ## 要求
  12540. ${msg} 以及补充参考资料和教学任务教案和输出格式和内容要求参考格式与要求
  12541. ## 教学任务教案
  12542. ${_text}
  12543. ## 格式与要求
  12544. 任务数量:${this.teacherText.length}个
  12545. 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。
  12546. 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  12547. 工具名:从工具列表中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交]
  12548. 工具指引:以友好,明确的口吻告诉学生该如何使用该工具
  12549. ## 补充参考资料
  12550. 补充资料:${url.join(",")}
  12551. 补充描述:${this.courseText2}
  12552. # Format example
  12553. [{"detail":"该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具","detail":"工具描述"}]}]
  12554. Instruction: Based on the context, follow "Format example", write content.
  12555. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12556. User: Please generate a recipe for chocolate chip cookies in JSON format.`
  12557. this.loading = true
  12558. this.aiGet3(message, this.aiCallBack)
  12559. } else if (this.aitype == "aiDetail1") {
  12560. this.aiDetail(msg, this.aiIndex)
  12561. } else if (this.aitype == "aiDetail2") {
  12562. this.aiDetail2(msg, this.aiIndex)
  12563. } else if (this.aitype == "aiDetail3") {
  12564. let _index = this.aiIndex.split('-')
  12565. this.aiDetail3(msg, _index[0], _index[1])
  12566. } else if (this.aitype == "aiDetail4") {
  12567. this.aiDetail4(msg, this.aiIndex)
  12568. } else if (this.aitype == "teacherDetail") {
  12569. this.aiDetail5(msg, this.aiIndex)
  12570. } else if (this.aitype == "aiTeacher") {
  12571. this.loading = true
  12572. var _text = ""
  12573. for (var i = 0; i < this.dArray.length; i++) {
  12574. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12575. }
  12576. let message = `NOTICE
  12577. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  12578. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12579. Instruction: Based on the context, follow "Format example", write content.
  12580. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12581. User: Please generate a recipe for chocolate chip cookies in JSON format.
  12582. # Context
  12583. ## 要求
  12584. ${msg} 以及##补充参考资料和##任务大纲, 然后根据Format example的要求返回要以数组的格式
  12585. ## 任务大纲
  12586. ${_text}
  12587. ## 补充参考资料
  12588. 补充资料:${url.join(",")}
  12589. 补充描述:${this.courseText2}
  12590. # Format example
  12591. [{"task": "任务名称1","detail": "教案输出为文本格式就行"},{"task": "任务名称2","detail": "教案输出为文本格式就行"}]
  12592. Instruction: Based on the context, follow "Format example", write content.
  12593. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  12594. User: Please generate a recipe for chocolate chip cookies in JSON format.`
  12595. this.aiGet4(message, () => {
  12596. this.loading = false
  12597. this.isOutline2 = true
  12598. })
  12599. }
  12600. this.setAiJson(this.aitype, msg)
  12601. },
  12602. detailYou(message) {
  12603. this.textLoading = true
  12604. this.ttextLoading = true
  12605. let sub = []
  12606. if (this.courseTypeId.length) {
  12607. for (var i = 0; i < this.courseTypeId.length; i++) {
  12608. let _sid = this.courseTypeId[i]
  12609. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12610. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12611. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12612. }
  12613. }
  12614. }
  12615. }
  12616. let url = []
  12617. if (this.infoData.length) {
  12618. for (var i = 0; i < this.infoData.length; i++) {
  12619. url.push(this.infoData[i].url)
  12620. }
  12621. }
  12622. let msg = `
  12623. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12624. --------
  12625. ## 参考资料
  12626. 课程名字:${this.courseName}
  12627. 课程简要描述:${this.courseText ? this.courseText : '暂无'}
  12628. 学科:${sub.length ? sub.join(",") : "无"}
  12629. 班级:${this.getListClassC(this.checkboxList2)}
  12630. --------
  12631. ## 补充参考资料
  12632. 补充资料:${url.join(",")}
  12633. 补充描述:${this.courseText2}
  12634. --------
  12635. ## 要求
  12636. ${message} 以及##补充参考资料和##参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
  12637. --------
  12638. ## Format example
  12639. -课程简要描述:
  12640. -驱动性问题:**1个**驱动整个项目的问题
  12641. -最终作品:对应解决驱动性问题的作品,可个人可团队`
  12642. this.aiGet(msg)
  12643. },
  12644. setUnitJson() {
  12645. 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 }] }
  12646. this.$forceUpdate()
  12647. },
  12648. aiGet(messages) {
  12649. let _this = this
  12650. let _uuid = uuidv4();
  12651. // let params = JSON.stringify({
  12652. // // "model": "Chat",
  12653. // model: 'gpt-3.5-turbo',
  12654. // temperature: 0,
  12655. // max_tokens: 4096,
  12656. // top_p: 1,
  12657. // frequency_penalty: 0,
  12658. // presence_penalty: 0,
  12659. // messages: [{
  12660. // content: messages,
  12661. // role: 'user'
  12662. // }],
  12663. // uid: _uuid,
  12664. // mind_map_question: "",
  12665. // })
  12666. let params = JSON.stringify({
  12667. message: {
  12668. anthropic_version: "bedrock-2023-05-31",
  12669. max_tokens: 4096,
  12670. temperature: 0,
  12671. top_p: 1,
  12672. messages: [{
  12673. "role": "user",
  12674. "content": messages
  12675. }] ,
  12676. },
  12677. uid: _uuid,
  12678. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  12679. });
  12680. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12681. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  12682. console.log(response);
  12683. // let data = response.data.FunctionResponse
  12684. // if (data.choices && data.choices.length && data.choices[0].message) {
  12685. // _this.courseText = data.choices[0].message.content
  12686. // }
  12687. if (response.data.FunctionResponse.result == "发送成功") {
  12688. } else {
  12689. this.$message.warning(response.data.FunctionResponse.result);
  12690. }
  12691. }).catch(function (error) {
  12692. _this.textLoading = false
  12693. _this.ttextLoading = false
  12694. console.log(error);
  12695. });
  12696. _this.aiGetgetAiContent(_uuid)
  12697. },
  12698. aiGetgetAiContent(_uid) {
  12699. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12700. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12701. let _allText = "";
  12702. let _mdText = "";
  12703. _source.onmessage = _e => {
  12704. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12705. //对话已经完成
  12706. _mdText = _mdText.replace("_", "");
  12707. _source.close();
  12708. this.courseText = _mdText;
  12709. this.textLoading = false
  12710. this.ttextLoading = false
  12711. return;
  12712. } else {
  12713. //对话还在继续
  12714. let _text = "";
  12715. _text = _e.data.replaceAll("'", "");
  12716. if (_allText == "") {
  12717. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12718. } else {
  12719. _allText += _text;
  12720. }
  12721. _mdText = _allText + "_";
  12722. _mdText = _mdText.replace(/\\n/g, "\n");
  12723. _mdText = _mdText.replace(/\\/g, "");
  12724. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12725. //转化返回的回复流数据
  12726. this.courseText = _mdText;
  12727. this.textLoading = false
  12728. // 处理流数据
  12729. }
  12730. };
  12731. },
  12732. aiGet2(messages, callback) {
  12733. let _this = this
  12734. let params = JSON.stringify({
  12735. // "model": "Chat",
  12736. model: 'gpt-3.5-turbo',
  12737. temperature: 0,
  12738. max_tokens: 4096,
  12739. top_p: 1,
  12740. frequency_penalty: 0,
  12741. presence_penalty: 0,
  12742. messages: [{
  12743. content: messages,
  12744. role: 'user'
  12745. }],
  12746. stream: false,
  12747. uid: this.userid,
  12748. mind_map_question: "",
  12749. })
  12750. // let params = JSON.stringify({
  12751. // message: {
  12752. // anthropic_version: "bedrock-2023-05-31",
  12753. // max_tokens: 4096,
  12754. // temperature: 0,
  12755. // top_p: 1,
  12756. // messages: [{
  12757. // content: messages,
  12758. // role: 'user'
  12759. // }], //
  12760. // },
  12761. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  12762. // });
  12763. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12764. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  12765. console.log(response);
  12766. let data = response.data.FunctionResponse
  12767. if (data.choices && data.choices.length && data.choices[0].message) {
  12768. console.log(data.choices[0].message.content);
  12769. let dArray = JSON.parse(data.choices[0].message.content)
  12770. _this.dArray = dArray
  12771. _this.unitJson[0].chapterInfo[0].taskJson = []
  12772. for (var i = 0; i < dArray.length; i++) {
  12773. let _task = dArray[i]
  12774. _this.unitJson[0].chapterInfo[0].taskJson.push({
  12775. task: _task.task,
  12776. taskDetail: "",
  12777. taskDetail2: _task.detail,
  12778. taskDetail3: "",
  12779. chapterData: [],
  12780. toolText: "",
  12781. toolChoose: [
  12782. {
  12783. tool: [],
  12784. toolDetail: "",
  12785. toolType: 0,
  12786. askCount: 1,
  12787. askTitle: "",
  12788. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12789. },
  12790. ],
  12791. isShowTools: false,
  12792. askCount: 1,
  12793. isFold: 2,
  12794. askTitle: "",
  12795. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12796. checkJson: [{ checkCount: [], checkPerent: [] }],
  12797. homeworkList: [],
  12798. })
  12799. }
  12800. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12801. _this.$forceUpdate();
  12802. }
  12803. // if (data.result) {
  12804. // console.log(data.result);
  12805. // let dArray = JSON.parse(data.result)
  12806. // _this.dArray = dArray
  12807. // _this.unitJson[0].chapterInfo[0].taskJson = []
  12808. // for (var i = 0; i < dArray.length; i++) {
  12809. // let _task = dArray[i]
  12810. // _this.unitJson[0].chapterInfo[0].taskJson.push({
  12811. // task: _task.task,
  12812. // taskDetail: "",
  12813. // taskDetail2: _task.detail,
  12814. // taskDetail3: "",
  12815. // chapterData: [],
  12816. // toolText: "",
  12817. // toolChoose: [
  12818. // {
  12819. // tool: [],
  12820. // toolDetail: "",
  12821. // toolType: 0,
  12822. // askCount: 1,
  12823. // askTitle: "",
  12824. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12825. // },
  12826. // ],
  12827. // isShowTools: false,
  12828. // askCount: 1,
  12829. // isFold: 1,
  12830. // askTitle: "",
  12831. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12832. // checkJson: [{ checkCount: [], checkPerent: [] }],
  12833. // homeworkList: [],
  12834. // })
  12835. // }
  12836. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12837. // _this.$forceUpdate();
  12838. // }
  12839. callback ? callback() : ''
  12840. }).catch(function (error) {
  12841. _this.loading = false
  12842. console.log(error);
  12843. });
  12844. },
  12845. aiGet3(messages, callback) {
  12846. let _this = this
  12847. let params = JSON.stringify({
  12848. // "model": "Chat",
  12849. model: 'gpt-3.5-turbo',
  12850. temperature: 0,
  12851. max_tokens: 4096,
  12852. top_p: 1,
  12853. frequency_penalty: 0,
  12854. presence_penalty: 0,
  12855. messages: [{
  12856. content: messages,
  12857. role: 'user'
  12858. }],
  12859. stream: false,
  12860. uid: this.userid,
  12861. mind_map_question: "",
  12862. })
  12863. // let params = JSON.stringify({
  12864. // message: {
  12865. // anthropic_version: "bedrock-2023-05-31",
  12866. // max_tokens: 4096,
  12867. // temperature: 0,
  12868. // top_p: 1,
  12869. // messages: [{
  12870. // content: messages,
  12871. // role: 'user'
  12872. // }], //
  12873. // },
  12874. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  12875. // });
  12876. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12877. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  12878. console.log(response);
  12879. let data = response.data.FunctionResponse
  12880. if (data.choices && data.choices.length && data.choices[0].message) {
  12881. console.log(data.choices[0].message.content);
  12882. let tArray = JSON.parse(data.choices[0].message.content)
  12883. // _this.unitJson[0].chapterInfo[0].task = []
  12884. let toolsJson = {
  12885. "电子白板": { tool: 1, type: 1 },
  12886. "文档": { tool: 52, type: 1 },
  12887. "思维导图": { tool: 3, type: 1 },
  12888. "表格": { tool: 48, type: 1 },
  12889. "作业提交": { tool: 16, type: 2 }
  12890. }
  12891. for (var i = 0; i < tArray.length; i++) {
  12892. let _task = tArray[i]
  12893. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  12894. _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  12895. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  12896. if (_task.toolChoose.length) {
  12897. for (var j = 0; j < _task.toolChoose.length; j++) {
  12898. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12899. {
  12900. tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  12901. toolDetail: _task.toolChoose[j].detail,
  12902. toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  12903. askCount: 1,
  12904. askTitle: "",
  12905. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12906. },
  12907. )
  12908. }
  12909. } else {
  12910. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12911. {
  12912. tool: [],
  12913. toolDetail: "",
  12914. toolType: 0,
  12915. askCount: 1,
  12916. askTitle: "",
  12917. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12918. },
  12919. )
  12920. }
  12921. }
  12922. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12923. _this.$forceUpdate();
  12924. }
  12925. // if (data.result) {
  12926. // console.log(data.result);
  12927. // let tArray = JSON.parse(data.result)
  12928. // // _this.unitJson[0].chapterInfo[0].task = []
  12929. // let toolsJson = {
  12930. // "电子白板": { tool: 1, type: 1 },
  12931. // "文档": { tool: 52, type: 1 },
  12932. // "思维导图": { tool: 3, type: 1 },
  12933. // "表格": { tool: 48, type: 1 },
  12934. // "作业提交": { tool: 16, type: 2 }
  12935. // }
  12936. // for (var i = 0; i < tArray.length; i++) {
  12937. // let _task = tArray[i]
  12938. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  12939. // _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  12940. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  12941. // if (_task.toolChoose.length) {
  12942. // for (var j = 0; j < _task.toolChoose.length; j++) {
  12943. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12944. // {
  12945. // tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  12946. // toolDetail: _task.toolChoose[j].detail,
  12947. // toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  12948. // askCount: 1,
  12949. // askTitle: "",
  12950. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12951. // },
  12952. // )
  12953. // }
  12954. // } else {
  12955. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12956. // {
  12957. // tool: [],
  12958. // toolDetail: "",
  12959. // toolType: 0,
  12960. // askCount: 1,
  12961. // askTitle: "",
  12962. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12963. // },
  12964. // )
  12965. // }
  12966. // }
  12967. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12968. // _this.$forceUpdate();
  12969. // }
  12970. callback ? callback() : ''
  12971. }).catch(function (error) {
  12972. _this.loading = false
  12973. console.log(error);
  12974. });
  12975. },
  12976. aiGet4(messages, callback, clickType) {
  12977. let _this = this
  12978. let params = JSON.stringify({
  12979. // "model": "Chat",
  12980. model: 'gpt-3.5-turbo',
  12981. temperature: 0,
  12982. max_tokens: 4096,
  12983. top_p: 1,
  12984. frequency_penalty: 0,
  12985. presence_penalty: 0,
  12986. messages: [{
  12987. content: messages,
  12988. role: 'user'
  12989. }],
  12990. stream: false,
  12991. uid: this.userid,
  12992. mind_map_question: "",
  12993. })
  12994. // let params = JSON.stringify({
  12995. // message: {
  12996. // anthropic_version: "bedrock-2023-05-31",
  12997. // max_tokens: 4096,
  12998. // temperature: 0,
  12999. // top_p: 1,
  13000. // messages: [{
  13001. // content: messages,
  13002. // role: 'user'
  13003. // }], //
  13004. // },
  13005. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13006. // });
  13007. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13008. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13009. console.log(response);
  13010. let data = response.data.FunctionResponse
  13011. if (data.choices && data.choices.length && data.choices[0].message) {
  13012. console.log(data.choices[0].message.content);
  13013. let dArray = JSON.parse(data.choices[0].message.content)
  13014. _this.teacherText = JSON.parse(data.choices[0].message.content)
  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. // if (data.result) {
  13023. // console.log(data.result);
  13024. // let dArray = JSON.parse(data.result)
  13025. // _this.teacherText = JSON.parse(data.result)
  13026. // for (var i = 0; i < dArray.length; i++) {
  13027. // let _task = dArray[i]
  13028. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  13029. // }
  13030. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13031. // _this.$forceUpdate();
  13032. // }
  13033. callback ? callback() : ''
  13034. _this.loading = false
  13035. }).catch(function (error) {
  13036. _this.loading = false
  13037. console.log(error);
  13038. });
  13039. },
  13040. aiDetail(msg, index) {
  13041. let _this = this
  13042. const _tindex = 'task-' + index
  13043. const _tindex2 = index
  13044. let url = []
  13045. if (this.infoData.length) {
  13046. for (var i = 0; i < this.infoData.length; i++) {
  13047. url.push(this.infoData[i].url)
  13048. }
  13049. }
  13050. let messages = `
  13051. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13052. --------
  13053. ## 要求
  13054. ${msg} 及#补充参考资料和#教学任务描述 以文本格式输出任务设计和评价标准
  13055. --------
  13056. ## 教学任务描述
  13057. ${_this.aiCallback}
  13058. --------
  13059. ## 补充参考资料
  13060. - 补充资料:${url.join(",")}
  13061. - 补充描述:${_this.courseText2}
  13062. `
  13063. _this.taskDetailLoading.push(_tindex)
  13064. _this.ttaskDetailLoading.push(_tindex)
  13065. let _uuid = uuidv4();
  13066. // let params = JSON.stringify({
  13067. // // "model": "Chat",
  13068. // model: 'gpt-3.5-turbo',
  13069. // temperature: 0,
  13070. // max_tokens: 4096,
  13071. // top_p: 1,
  13072. // frequency_penalty: 0,
  13073. // presence_penalty: 0,
  13074. // messages: [{
  13075. // content: messages,
  13076. // role: 'user'
  13077. // }],
  13078. // uid: _uuid,
  13079. // mind_map_question: "",
  13080. // })
  13081. let params = JSON.stringify({
  13082. message: {
  13083. anthropic_version: "bedrock-2023-05-31",
  13084. max_tokens: 4096,
  13085. temperature: 0,
  13086. top_p: 1,
  13087. messages: [{
  13088. "role": "user",
  13089. "content": messages
  13090. }] ,
  13091. },
  13092. uid: _uuid,
  13093. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13094. });
  13095. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13096. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13097. console.log(response);
  13098. // let data = response.data.FunctionResponse
  13099. // if (data.choices && data.choices.length && data.choices[0].message) {
  13100. // console.log(data.choices[0].message.content);
  13101. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = data.choices[0].message.content
  13102. // _this.$forceUpdate()
  13103. // }
  13104. if (response.data.FunctionResponse.result == "发送成功") {
  13105. } else {
  13106. this.$message.warning(response.data.FunctionResponse.result);
  13107. }
  13108. // _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13109. }).catch(function (error) {
  13110. _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13111. _this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
  13112. console.log(error);
  13113. });
  13114. _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
  13115. },
  13116. aiDetailgetAiContent(_uid, loading, _tindex2) {
  13117. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13118. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13119. let _allText = "";
  13120. let _mdText = "";
  13121. _source.onmessage = _e => {
  13122. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13123. //对话已经完成
  13124. _mdText = _mdText.replace("_", "");
  13125. _source.close();
  13126. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  13127. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  13128. this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
  13129. return;
  13130. } else {
  13131. //对话还在继续
  13132. let _text = "";
  13133. _text = _e.data.replaceAll("'", "");
  13134. if (_allText == "") {
  13135. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13136. } else {
  13137. _allText += _text;
  13138. }
  13139. _mdText = _allText + "_";
  13140. _mdText = _mdText.replace(/\\n/g, "\n");
  13141. _mdText = _mdText.replace(/\\/g, "");
  13142. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13143. //转化返回的回复流数据
  13144. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  13145. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  13146. // 处理流数据
  13147. }
  13148. };
  13149. },
  13150. aiDetail2(msg, index) {
  13151. let _this = this
  13152. const _tindex = 'task-' + index
  13153. const _tindex2 = index
  13154. let messages = `
  13155. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13156. --------
  13157. ## 要求
  13158. ${msg}
  13159. --------
  13160. ## 优化信息
  13161. 任务名字: ${_this.aiCallback.task}
  13162. 任务描述: ${_this.aiCallback.taskDetail}
  13163. # 格式与要求
  13164. - 任务名:
  13165. - 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
  13166. _this.taskDetailLoading2.push(_tindex)
  13167. _this.ttaskDetailLoading2.push(_tindex)
  13168. let _uuid = uuidv4();
  13169. // let params = JSON.stringify({
  13170. // // "model": "Chat",
  13171. // model: 'gpt-3.5-turbo',
  13172. // temperature: 0,
  13173. // max_tokens: 4096,
  13174. // top_p: 1,
  13175. // frequency_penalty: 0,
  13176. // presence_penalty: 0,
  13177. // messages: [{
  13178. // content: messages,
  13179. // role: 'user'
  13180. // }],
  13181. // uid: _uuid,
  13182. // mind_map_question: "",
  13183. // })
  13184. let params = JSON.stringify({
  13185. message: {
  13186. anthropic_version: "bedrock-2023-05-31",
  13187. max_tokens: 4096,
  13188. temperature: 0,
  13189. top_p: 1,
  13190. messages: [{
  13191. "role": "user",
  13192. "content": messages
  13193. }] ,
  13194. },
  13195. uid: _uuid,
  13196. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13197. });
  13198. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13199. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13200. console.log(response);
  13201. // let data = response.data.FunctionResponse
  13202. // if (data.choices && data.choices.length && data.choices[0].message) {
  13203. // console.log(data.choices[0].message.content);
  13204. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  13205. // _this.$forceUpdate()
  13206. // }
  13207. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13208. if (response.data.FunctionResponse.result == "发送成功") {
  13209. } else {
  13210. this.$message.warning(response.data.FunctionResponse.result);
  13211. }
  13212. }).catch(function (error) {
  13213. _this.taskDetailLoading2.splice(_this.taskDetailLoading2.indexOf(_tindex), 1)
  13214. _this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
  13215. console.log(error);
  13216. });
  13217. _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
  13218. },
  13219. aiDetail2getAiContent(_uid, loading, _tindex2) {
  13220. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13221. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13222. let _allText = "";
  13223. let _mdText = "";
  13224. _source.onmessage = _e => {
  13225. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13226. //对话已经完成
  13227. _mdText = _mdText.replace("_", "");
  13228. _source.close();
  13229. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  13230. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  13231. this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
  13232. return;
  13233. } else {
  13234. //对话还在继续
  13235. let _text = "";
  13236. _text = _e.data.replaceAll("'", "");
  13237. if (_allText == "") {
  13238. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13239. } else {
  13240. _allText += _text;
  13241. }
  13242. _mdText = _allText + "_";
  13243. _mdText = _mdText.replace(/\\n/g, "\n");
  13244. _mdText = _mdText.replace(/\\/g, "");
  13245. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13246. //转化返回的回复流数据
  13247. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  13248. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  13249. // 处理流数据
  13250. }
  13251. };
  13252. },
  13253. aiDetail3(msg, index, tindex) {
  13254. let _this = this
  13255. const _tindex = 'task-' + index + tindex
  13256. const _tindex2 = index
  13257. const _tindex3 = tindex
  13258. // **重点考虑该任务及工具名和工具内容的情况下*
  13259. let messages = `
  13260. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13261. --------
  13262. ## 参考内容
  13263. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  13264. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  13265. 工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
  13266. 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
  13267. --------
  13268. ## 要求
  13269. ${msg} 输出格式和内容要求参考#格式与要求
  13270. # 格式与要求
  13271. -工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
  13272. _this.taskDetailLoading3.push(_tindex)
  13273. _this.ttaskDetailLoading3.push(_tindex)
  13274. let _uuid = uuidv4();
  13275. // let params = JSON.stringify({
  13276. // // "model": "Chat",
  13277. // model: 'gpt-3.5-turbo',
  13278. // temperature: 0,
  13279. // max_tokens: 4096,
  13280. // top_p: 1,
  13281. // frequency_penalty: 0,
  13282. // presence_penalty: 0,
  13283. // messages: [{
  13284. // content: messages,
  13285. // role: 'user'
  13286. // }],
  13287. // uid: _uuid,
  13288. // mind_map_question: "",
  13289. // })
  13290. let params = JSON.stringify({
  13291. message: {
  13292. anthropic_version: "bedrock-2023-05-31",
  13293. max_tokens: 4096,
  13294. temperature: 0,
  13295. top_p: 1,
  13296. messages: [{
  13297. "role": "user",
  13298. "content": messages
  13299. }] ,
  13300. },
  13301. uid: _uuid,
  13302. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13303. });
  13304. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13305. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13306. console.log(response);
  13307. let data = response.data.FunctionResponse
  13308. // if (data.choices && data.choices.length && data.choices[0].message) {
  13309. // console.log(data.choices[0].message.content);
  13310. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = data.choices[0].message.content
  13311. // _this.$forceUpdate()
  13312. // }
  13313. // _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  13314. if (response.data.FunctionResponse.result == "发送成功") {
  13315. } else {
  13316. this.$message.warning(response.data.FunctionResponse.result);
  13317. }
  13318. }).catch(function (error) {
  13319. _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  13320. _this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
  13321. console.log(error);
  13322. });
  13323. _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
  13324. },
  13325. aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
  13326. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13327. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13328. let _allText = "";
  13329. let _mdText = "";
  13330. _source.onmessage = _e => {
  13331. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13332. //对话已经完成
  13333. _mdText = _mdText.replace("_", "");
  13334. _source.close();
  13335. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13336. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13337. this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
  13338. return;
  13339. } else {
  13340. //对话还在继续
  13341. let _text = "";
  13342. _text = _e.data.replaceAll("'", "");
  13343. if (_allText == "") {
  13344. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13345. } else {
  13346. _allText += _text;
  13347. }
  13348. _mdText = _allText + "_";
  13349. _mdText = _mdText.replace(/\\n/g, "\n");
  13350. _mdText = _mdText.replace(/\\/g, "");
  13351. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13352. //转化返回的回复流数据
  13353. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13354. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13355. // 处理流数据
  13356. }
  13357. };
  13358. },
  13359. aiDetail4(msg, index) {
  13360. if (!msg.length) {
  13361. this.$message.error("请添加评价后才能优化")
  13362. return
  13363. }
  13364. let _this = this
  13365. const _tindex = 'task-' + index
  13366. const _tindex2 = index
  13367. var _text = ""
  13368. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList.length; i++) {
  13369. _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
  13370. }
  13371. // **重点考虑该任务详情**
  13372. let messages = `NOTICE
  13373. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13374. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13375. Instruction: Based on the context, follow "Format example", write content.
  13376. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  13377. User: Please generate a recipe for chocolate chip cookies in JSON format.
  13378. # Context
  13379. ## 要求
  13380. ${msg} 输出格式和内容要求参考# 格式与要求
  13381. ## 参考内容
  13382. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  13383. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  13384. 评价设计:${_text}
  13385. ## 格式与要求
  13386. -评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  13387. # Format example
  13388. [{"value":"评价维度1","detail":"维度描述1","score":5},{"value":"评价维度2","detail":"维度描述2","score":5},{"value":"评价维度3","detail":"维度描述3","score":5}]
  13389. Instruction: Based on the context, follow "Format example", write content.
  13390. 提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
  13391. User: Please generate a recipe for chocolate chip cookies in JSON format.`
  13392. _this.taskDetailLoading4.push(_tindex)
  13393. let params = JSON.stringify({
  13394. // "model": "Chat",
  13395. model: 'gpt-3.5-turbo',
  13396. temperature: 0,
  13397. max_tokens: 4096,
  13398. top_p: 1,
  13399. frequency_penalty: 0,
  13400. presence_penalty: 0,
  13401. messages: [{
  13402. content: messages,
  13403. role: 'user'
  13404. }],
  13405. stream: false,
  13406. uid: this.userid,
  13407. mind_map_question: "",
  13408. })
  13409. // let params = JSON.stringify({
  13410. // message: {
  13411. // anthropic_version: "bedrock-2023-05-31",
  13412. // max_tokens: 4096,
  13413. // temperature: 0,
  13414. // top_p: 1,
  13415. // messages: [{
  13416. // content: messages,
  13417. // role: 'user'
  13418. // }], //
  13419. // },
  13420. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13421. // });
  13422. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13423. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13424. console.log(response);
  13425. let data = response.data.FunctionResponse
  13426. if (data.choices && data.choices.length && data.choices[0].message) {
  13427. console.log(data.choices[0].message.content);
  13428. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.choices[0].message.content)
  13429. _this.$forceUpdate()
  13430. }
  13431. // if (data.result) {
  13432. // console.log(data.result);
  13433. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.result)
  13434. // _this.$forceUpdate()
  13435. // }
  13436. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13437. }).catch(function (error) {
  13438. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13439. console.log(error);
  13440. });
  13441. },
  13442. aiDetail5(msg, index) {
  13443. let _this = this
  13444. const _tindex = 'task-' + index
  13445. const _tindex2 = index
  13446. let url = []
  13447. if (this.infoData.length) {
  13448. for (var i = 0; i < this.infoData.length; i++) {
  13449. url.push(this.infoData[i].url)
  13450. }
  13451. }
  13452. let messages = `
  13453. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13454. --------
  13455. ## 要求
  13456. ${msg}
  13457. -------
  13458. ## 教案描述
  13459. ${_this.aiCallBack}
  13460. ## 补充参考资料
  13461. - 补充资料:${url.join(",")}
  13462. - 补充描述:${this.courseText2}`
  13463. _this.taskDetailLoading5.push(_tindex)
  13464. _this.ttaskDetailLoading5.push(_tindex)
  13465. let _uuid = uuidv4();
  13466. // let params = JSON.stringify({
  13467. // // "model": "Chat",
  13468. // model: 'gpt-3.5-turbo',
  13469. // temperature: 0,
  13470. // max_tokens: 4096,
  13471. // top_p: 1,
  13472. // frequency_penalty: 0,
  13473. // presence_penalty: 0,
  13474. // messages: [{
  13475. // content: messages,
  13476. // role: 'user'
  13477. // }],
  13478. // uid: _uuid,
  13479. // mind_map_question: "",
  13480. // })
  13481. let params = JSON.stringify({
  13482. message: {
  13483. anthropic_version: "bedrock-2023-05-31",
  13484. max_tokens: 4096,
  13485. temperature: 0,
  13486. top_p: 1,
  13487. messages: [{
  13488. "role": "user",
  13489. "content": messages
  13490. }] ,
  13491. },
  13492. uid: _uuid,
  13493. model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13494. });
  13495. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13496. _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13497. console.log(response);
  13498. // let data = response.data.FunctionResponse
  13499. // if (data.choices && data.choices.length && data.choices[0].message) {
  13500. // console.log(data.choices[0].message.content);
  13501. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  13502. // _this.$forceUpdate()
  13503. // }
  13504. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13505. if (response.data.FunctionResponse.result == "发送成功") {
  13506. } else {
  13507. this.$message.warning(response.data.FunctionResponse.result);
  13508. }
  13509. }).catch(function (error) {
  13510. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  13511. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  13512. console.log(error);
  13513. });
  13514. _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
  13515. },
  13516. aiDetail5getAiContent(_uid, loading, _tindex2) {
  13517. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13518. let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13519. let _allText = "";
  13520. let _mdText = "";
  13521. _source.onmessage = _e => {
  13522. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13523. //对话已经完成
  13524. _mdText = _mdText.replace("_", "");
  13525. _source.close();
  13526. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13527. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13528. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  13529. return;
  13530. } else {
  13531. //对话还在继续
  13532. let _text = "";
  13533. _text = _e.data.replaceAll("'", "");
  13534. if (_allText == "") {
  13535. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13536. } else {
  13537. _allText += _text;
  13538. }
  13539. _mdText = _allText + "_";
  13540. _mdText = _mdText.replace(/\\n/g, "\n");
  13541. _mdText = _mdText.replace(/\\/g, "");
  13542. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13543. //转化返回的回复流数据
  13544. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13545. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13546. // 处理流数据
  13547. }
  13548. };
  13549. },
  13550. },
  13551. beforeDestroy() {
  13552. clearTimeout(this.timer);
  13553. this.timer = null;
  13554. clearInterval(this.timer2);
  13555. this.timer2 = null;
  13556. clearInterval(this.pasteTimer);
  13557. this.pasteTimer = null;
  13558. },
  13559. beforeRouteLeave(to, from, next) {
  13560. clearTimeout(this.timer);
  13561. this.timer = null;
  13562. clearInterval(this.timer2);
  13563. this.timer2 = null;
  13564. clearInterval(this.pasteTimer);
  13565. this.pasteTimer = null;
  13566. next();
  13567. },
  13568. created() {
  13569. this.getStudent();
  13570. this.getTeacher();
  13571. this.getClass();
  13572. this.selectGrage();
  13573. this.getTemplate();
  13574. this.getTipsTemplate();
  13575. // this.selectType();
  13576. this.selectEva();
  13577. this.loading = false;
  13578. this.timer2 = setInterval(() => {
  13579. this.selectEva();
  13580. }, 5000);
  13581. this.pasteTimer = setInterval(() => {
  13582. this.getPaste();
  13583. }, 1000);
  13584. setTimeout(() => {
  13585. // this.selectAllType();
  13586. this.selectCourseDetail();
  13587. }, 500);
  13588. let _this = this;
  13589. window.pasteStage = function (json) {
  13590. _this.pasteStage(json);
  13591. };
  13592. window.pasteTask = function (json) {
  13593. _this.pasteTask(json);
  13594. };
  13595. },
  13596. };
  13597. </script>
  13598. <style scoped>
  13599. @media screen and (max-width: 1280px) {
  13600. .mbCss {
  13601. flex-direction: column !important;
  13602. }
  13603. .pjCss {
  13604. width: 100% !important;
  13605. }
  13606. .evaCss {
  13607. width: 100% !important;
  13608. margin-top: 10px;
  13609. }
  13610. }
  13611. .el-table>>>.even_row {
  13612. background-color: #f1f1f1 !important;
  13613. }
  13614. .dialog_diy>>>.el-dialog__header {
  13615. background: #3c3c3c !important;
  13616. padding: 15px 20px;
  13617. }
  13618. .dialog_diy>>>.el-dialog__title {
  13619. color: #fff;
  13620. }
  13621. .dialog_diy>>>.el-dialog__headerbtn {
  13622. top: 19px;
  13623. }
  13624. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  13625. color: #fff;
  13626. }
  13627. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  13628. color: #fff;
  13629. }
  13630. .dialog_diy>>>.el-dialog__body,
  13631. .dialog_diy>>>.el-dialog__footer {
  13632. background: #fafafa;
  13633. }
  13634. .dialog_diy3>>>.el-dialog__body,
  13635. .dialog_diy3>>>.el-dialog__footer {
  13636. background: #eee !important;
  13637. }
  13638. .dialog_diy3>>>.el-dialog__body {
  13639. padding: 20px 20px;
  13640. }
  13641. .dialog_diyStage>>>.el-dialog__body {
  13642. padding: 10px;
  13643. }
  13644. .source_diy>>>.el-dialog {
  13645. height: 100% !important;
  13646. margin: 0 auto !important;
  13647. }
  13648. .source_diy>>>.el-dialog__body {
  13649. height: calc(100% - 185px);
  13650. overflow: auto;
  13651. background: #e6eaf0;
  13652. }
  13653. .source_diy>>>.el-dialog__footer {
  13654. background: #e6eaf0 !important;
  13655. }
  13656. .left {
  13657. border-right: 1px solid rgb(60, 94, 143);
  13658. display: flex;
  13659. flex-direction: column;
  13660. align-items: center;
  13661. min-height: 600px;
  13662. width: 385px;
  13663. height: 80%;
  13664. }
  13665. .tips {
  13666. color: rgb(128, 128, 128);
  13667. font-size: 12px;
  13668. width: 270px;
  13669. margin: 40px;
  13670. }
  13671. .pb_content {
  13672. height: 100% !important;
  13673. /* margin: 0 20px 0 20px; */
  13674. }
  13675. .pb_content_body {
  13676. width: 100% !important;
  13677. height: 100%;
  13678. display: flex;
  13679. }
  13680. .info_solid {
  13681. width: 270px;
  13682. height: 30px;
  13683. border-left: 1px solid #bdbdbd;
  13684. margin: 10px 0px 10px 30px;
  13685. }
  13686. .info_steps {
  13687. width: 270px;
  13688. font-size: 0.875rem;
  13689. display: flex;
  13690. align-items: center;
  13691. }
  13692. .info_steps span:nth-child(1) {
  13693. width: 30px;
  13694. height: 30px;
  13695. background: rgba(0, 0, 0, 0.38);
  13696. display: block;
  13697. color: #fff;
  13698. border-radius: 40px;
  13699. text-align: center;
  13700. line-height: 30px;
  13701. }
  13702. .steps_active {
  13703. background: #3d67bc !important;
  13704. }
  13705. .info_steps span:nth-child(2) {
  13706. margin-left: 5px;
  13707. }
  13708. .right {
  13709. height: 100%;
  13710. width: 100%;
  13711. display: flex;
  13712. overflow: hidden;
  13713. flex-direction: column;
  13714. }
  13715. .leftBar{
  13716. width: 290px;
  13717. height: calc(100% - 50px);
  13718. overflow: auto;
  13719. border-radius: 5px;
  13720. margin: 25px auto;
  13721. box-sizing: border-box;
  13722. margin-right: 10px;
  13723. }
  13724. .basic_box {
  13725. margin: 0 auto;
  13726. position: relative;
  13727. padding: 0 20px 0 20px;
  13728. }
  13729. .basic_box_success {
  13730. width: 100%;
  13731. min-height: 455px;
  13732. padding: 50px 0;
  13733. position: relative;
  13734. text-align: center;
  13735. border-bottom: 1px solid #bfbfbf;
  13736. box-sizing: border-box;
  13737. display: flex;
  13738. align-items: center;
  13739. flex-direction: column;
  13740. justify-content: center;
  13741. }
  13742. .info_title {
  13743. font-size: 1.5em;
  13744. margin-right: 25px;
  13745. /* margin: 20px 30px 20px 30px; */
  13746. }
  13747. .bInfo_title {
  13748. text-align: left;
  13749. margin: 10px 0;
  13750. }
  13751. .small_title {
  13752. font-size: 14px;
  13753. line-height: 40px;
  13754. }
  13755. .chapter_beizhu {
  13756. font-size: 12px;
  13757. font-weight: bold;
  13758. float: right;
  13759. color: rgb(128, 128, 128);
  13760. margin-top: 5px;
  13761. }
  13762. .chapter_uploadBox1 {
  13763. text-align: left;
  13764. background-color: rgb(242, 242, 242);
  13765. width: 100%;
  13766. height: 67px;
  13767. padding: 0px 15px;
  13768. border-radius: 8px;
  13769. overflow: hidden;
  13770. font-size: 16px;
  13771. box-sizing: border-box;
  13772. position: relative;
  13773. }
  13774. .chapter_add {
  13775. width: 100%;
  13776. height: 32px;
  13777. margin-top: 15px;
  13778. cursor: pointer;
  13779. }
  13780. .chapter_add_l {
  13781. margin-left: 5px;
  13782. width: 30px;
  13783. height: 30px;
  13784. float: left;
  13785. border: 1px solid #aaa;
  13786. color: #aaa;
  13787. border-radius: 50%;
  13788. font-size: 25px;
  13789. text-align: center;
  13790. }
  13791. .chapter_add_r {
  13792. font-size: 18px;
  13793. height: 40px;
  13794. line-height: 30px;
  13795. text-indent: 10px;
  13796. color: #aaa;
  13797. }
  13798. .chapter_add_r span {
  13799. font-size: 12px;
  13800. color: rgb(204, 204, 204);
  13801. }
  13802. .chapter_add_input {
  13803. display: none;
  13804. }
  13805. .line {
  13806. width: 85%;
  13807. margin: 0 auto;
  13808. border-top: 1px solid #e5e5e5;
  13809. margin-top: 20px;
  13810. }
  13811. .info_btnBox {
  13812. width: calc(100%);
  13813. display: flex;
  13814. justify-content: center;
  13815. height: 80px;
  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. }
  13822. .info_btnBox2 {
  13823. width: calc(100%);
  13824. display: flex;
  13825. justify-content: center;
  13826. height: 20px;
  13827. align-items: center;
  13828. background: #fff;
  13829. margin: 0 auto;
  13830. border-top: 2px solid rgb(228, 232, 237);
  13831. box-sizing: border-box;
  13832. overflow: hidden;
  13833. cursor: pointer;
  13834. }
  13835. .info_btnBox3 {
  13836. width: calc(100%);
  13837. display: flex;
  13838. justify-content: flex-end;
  13839. padding: 0 20px;
  13840. height: 60px;
  13841. align-items: center;
  13842. background: unset;
  13843. margin: 0 auto;
  13844. /* border-top: 1px solid rgb(228, 232, 237); */
  13845. box-sizing: border-box;
  13846. overflow: hidden;
  13847. cursor: pointer;
  13848. background: #fff;
  13849. border-radius: 10px;
  13850. }
  13851. .info_btn+.info_btn {
  13852. margin-left: 15px;
  13853. }
  13854. .info_btn,
  13855. .teacherWord {
  13856. color: #fff;
  13857. background-color: #0f7eff;
  13858. padding: 8px 24px;
  13859. font-size: 0.9375rem;
  13860. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  13861. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  13862. min-width: 64px;
  13863. font-weight: 500;
  13864. border-radius: 4px;
  13865. box-sizing: border-box;
  13866. border: none;
  13867. cursor: pointer;
  13868. }
  13869. .teacherWord {
  13870. width: 105px !important;
  13871. text-align: center !important;
  13872. line-height: 36px !important;
  13873. padding: 0 !important;
  13874. font-size: 14px !important;
  13875. margin: 10px 0 !important;
  13876. }
  13877. .template_box {
  13878. display: flex;
  13879. flex-wrap: wrap;
  13880. }
  13881. .wordTeacher {
  13882. display: flex;
  13883. flex-direction: column;
  13884. width: 100px;
  13885. height: 100px;
  13886. text-align: center;
  13887. font-size: 13px;
  13888. margin: 0 20px 20px 0;
  13889. background: #f0f4fa;
  13890. position: relative;
  13891. border-radius: 5px;
  13892. align-items: center;
  13893. justify-content: center;
  13894. border: 1px solid #cad1dc;
  13895. color: #0e1e33;
  13896. /* padding: 25px 0px; */
  13897. cursor: pointer;
  13898. }
  13899. .wordTeacher::after {
  13900. content: "";
  13901. display: block;
  13902. position: absolute;
  13903. width: 15px;
  13904. height: 15px;
  13905. right: 10px;
  13906. top: 10px;
  13907. background-image: url(../../../assets/icon/new/choose_a.png);
  13908. background-size: 100% 100%;
  13909. }
  13910. .wordTeacherA::after {
  13911. background-image: url(../../../assets/icon/new/choose_b.png);
  13912. }
  13913. .wordTeacher:nth-child(5n) {
  13914. margin-right: 0px;
  13915. }
  13916. .wordPic {
  13917. margin: 0 auto;
  13918. width: 30px;
  13919. height: 30px;
  13920. cursor: pointer;
  13921. }
  13922. .deleteWord {
  13923. width: 22px;
  13924. height: 22px;
  13925. position: absolute;
  13926. right: 5px;
  13927. top: -15px;
  13928. cursor: pointer;
  13929. display: none;
  13930. z-index: 999;
  13931. }
  13932. .wordPic>img,
  13933. .deleteWord>img,
  13934. .addToolImg>img {
  13935. width: 100%;
  13936. height: 100%;
  13937. }
  13938. .info_btn:hover {
  13939. background-color: #4f7cd5 !important;
  13940. }
  13941. .cru_selectBox {
  13942. display: flex;
  13943. margin: 15px 0;
  13944. flex-wrap: nowrap;
  13945. white-space: nowrap;
  13946. overflow: auto;
  13947. position: relative;
  13948. height: 40px;
  13949. max-width: calc(100% - 175px);
  13950. }
  13951. .cru_selectBox::-webkit-scrollbar {
  13952. /*滚动条整体样式*/
  13953. width: 6px;
  13954. /*高宽分别对应横竖滚动条的尺寸*/
  13955. height: 6px;
  13956. }
  13957. /*定义滚动条轨道 内阴影+圆角*/
  13958. .cru_selectBox::-webkit-scrollbar-track {
  13959. border-radius: 10px;
  13960. background-color: #eee;
  13961. }
  13962. /*定义滑块 内阴影+圆角*/
  13963. .cru_selectBox::-webkit-scrollbar-thumb {
  13964. border-radius: 10px;
  13965. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  13966. background-color: rgba(0, 0, 0, 0.1);
  13967. }
  13968. .cru_line {
  13969. position: absolute;
  13970. bottom: 0px;
  13971. transition: all 0.5s;
  13972. left: 0px;
  13973. width: 50px;
  13974. height: 4px;
  13975. left: 10px;
  13976. border-radius: 2px;
  13977. background: #3681fc;
  13978. }
  13979. .cru_select {
  13980. font-size: 18px;
  13981. margin-right: 20px;
  13982. margin-left: 5px;
  13983. cursor: pointer;
  13984. color: #0e1e33;
  13985. }
  13986. .cru_select:hover {
  13987. color: #3681fc !important;
  13988. }
  13989. .cru_selected {
  13990. color: #3681fc !important;
  13991. font-weight: bold;
  13992. }
  13993. .chapter_box {
  13994. margin-top: 10px;
  13995. width: 100%;
  13996. padding: 10px 20px;
  13997. background: #fff;
  13998. border-radius: 8px;
  13999. box-sizing: border-box;
  14000. }
  14001. .chapter_contentbox {
  14002. display: flex;
  14003. align-items: center;
  14004. /* margin-top: 15px; */
  14005. }
  14006. .chapter_contentbox .cc_title {
  14007. margin: 0px;
  14008. color: black;
  14009. display: block;
  14010. white-space: nowrap;
  14011. overflow: hidden;
  14012. text-overflow: ellipsis;
  14013. margin-right: 20px;
  14014. font-size: 18px;
  14015. height: 20px;
  14016. line-height: 22px;
  14017. min-width: fit-content;
  14018. display: flex;
  14019. }
  14020. .chapter_contentbox .cc_title::before {
  14021. content: "";
  14022. height: 100%;
  14023. width: 3px;
  14024. background: #3681fc;
  14025. border-radius: 3px;
  14026. opacity: 1;
  14027. display: block;
  14028. margin-right: 10px;
  14029. }
  14030. .chapter_contentbox .cc_input {
  14031. width: 100%;
  14032. display: flex;
  14033. }
  14034. .show_taskD {
  14035. min-width: fit-content;
  14036. margin-left: 10px;
  14037. display: flex;
  14038. align-items: center;
  14039. font-size: 14px;
  14040. cursor: pointer;
  14041. color: #717c8d;
  14042. }
  14043. .show_taskD>img {
  14044. width: 15px;
  14045. margin-right: 5px;
  14046. transition: 0.2s all;
  14047. transform: rotate(-90deg);
  14048. }
  14049. .show_taskD.show>img {
  14050. transform: rotate(0deg);
  14051. }
  14052. .show_toolD {
  14053. min-width: fit-content;
  14054. margin-left: 10px;
  14055. display: flex;
  14056. align-items: center;
  14057. font-size: 14px;
  14058. cursor: pointer;
  14059. color: #717c8d;
  14060. /* position: absolute;
  14061. right: 45px;
  14062. top: 5px; */
  14063. }
  14064. .show_toolD>img {
  14065. width: 15px;
  14066. margin-right: 5px;
  14067. transition: 0.2s all;
  14068. transform: rotate(-90deg);
  14069. }
  14070. .show_toolD.show>img {
  14071. transform: rotate(0deg);
  14072. }
  14073. .remove {
  14074. background-image: url("../../../assets/icon/new/delete_u.png");
  14075. cursor: pointer;
  14076. opacity: 0.5;
  14077. width: 30px;
  14078. min-width: 30px;
  14079. height: 30px;
  14080. background-size: 100% 100%;
  14081. background-repeat: no-repeat;
  14082. margin-left: 10px;
  14083. }
  14084. .remove1 {
  14085. background-image: url("../../../assets/remove1.png");
  14086. background-repeat: no-repeat;
  14087. background-position: 5px 10px;
  14088. width: 40px;
  14089. height: 50px;
  14090. cursor: pointer;
  14091. margin-left: 10px;
  14092. }
  14093. .binfo_input {
  14094. width: 100%;
  14095. margin: 0;
  14096. padding: 12px 14px;
  14097. display: block;
  14098. min-width: 0;
  14099. outline: none;
  14100. box-sizing: border-box;
  14101. background: none;
  14102. border: none;
  14103. border-radius: 4px;
  14104. background: #fff;
  14105. font-size: 16px;
  14106. resize: none;
  14107. font-family: "Microsoft YaHei";
  14108. min-height: 48px;
  14109. /* border: 1px solid #3682fc00; */
  14110. border: 1.5px solid #cad1dc;
  14111. }
  14112. .binfo_textarea {
  14113. border: 1.5px solid #cad1dc;
  14114. font-size: 16px;
  14115. resize: none;
  14116. /* background: #f6f6f6; */
  14117. font-family: "Microsoft YaHei";
  14118. }
  14119. .binfo_input:focus-visible {
  14120. border: 1.5px solid #3681fc !important;
  14121. }
  14122. .time {
  14123. display: flex;
  14124. margin: 35px 0 80px 0;
  14125. }
  14126. .chapter_btnbox {
  14127. width: 160px;
  14128. border-radius: 5px;
  14129. border: 2px dashed gray;
  14130. display: flex;
  14131. padding: 8px 50px;
  14132. align-items: center;
  14133. justify-content: center;
  14134. margin: 30px auto 0;
  14135. cursor: pointer;
  14136. }
  14137. .icon_add {
  14138. position: relative;
  14139. width: 24px;
  14140. padding-top: 20px;
  14141. border-radius: 100%;
  14142. border-width: 2px;
  14143. border-style: solid;
  14144. border-color: gray;
  14145. }
  14146. .icon_add i:nth-child(1) {
  14147. position: absolute;
  14148. left: 50%;
  14149. top: 50%;
  14150. height: 60%;
  14151. transform: translate(-50%, -50%);
  14152. border-width: 1px;
  14153. border-style: solid;
  14154. border-color: inherit;
  14155. }
  14156. .icon_add i:nth-child(2) {
  14157. position: absolute;
  14158. top: 50%;
  14159. left: 50%;
  14160. width: 60%;
  14161. transform: translate(-50%, -50%);
  14162. border-width: 1px;
  14163. border-style: solid;
  14164. border-color: inherit;
  14165. }
  14166. .chapter_btn_w {
  14167. font-size: 0.9375rem;
  14168. font-weight: bold;
  14169. color: gray;
  14170. margin-left: 20px;
  14171. }
  14172. .disUoloadSty>>>.el-icon-plus {
  14173. display: none !important;
  14174. /* 上传按钮隐藏 */
  14175. }
  14176. .imgLeft {
  14177. margin: 15px 0;
  14178. }
  14179. .add_info_box {
  14180. margin: 0 0 0 auto;
  14181. display: flex;
  14182. flex-wrap: wrap;
  14183. }
  14184. .add_info_box button {
  14185. margin: 0 5px 10px 0;
  14186. }
  14187. .add_info_box2 {
  14188. display: flex;
  14189. align-items: center;
  14190. flex-wrap: wrap;
  14191. }
  14192. .add_info_box2::after {
  14193. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  14194. color: red;
  14195. font-size: 14px;
  14196. margin-bottom: 10px;
  14197. }
  14198. .add_chapters_box {
  14199. text-align: left;
  14200. background-color: #fff;
  14201. width: 100%;
  14202. border-radius: 4px;
  14203. font-size: 16px;
  14204. box-sizing: border-box;
  14205. position: relative;
  14206. padding: 0 15px;
  14207. height: auto;
  14208. overflow-y: auto;
  14209. overflow-x: hidden;
  14210. border: 1px solid #cad1dc;
  14211. }
  14212. .add_chapters_box.add_c_none {
  14213. display: flex;
  14214. justify-content: center;
  14215. align-items: center;
  14216. padding: 15px;
  14217. }
  14218. .add_c_none>img {
  14219. width: 25px;
  14220. }
  14221. .add_chapters_box.add_c_none>span {
  14222. font-size: 14px;
  14223. font-weight: 400;
  14224. margin: 0 0 5px 5px;
  14225. }
  14226. .homework_box {
  14227. display: flex;
  14228. align-items: flex-start;
  14229. flex-wrap: wrap;
  14230. margin: 15px 0 0 0;
  14231. flex-direction: column;
  14232. align-content: flex-start;
  14233. }
  14234. .course_homework {
  14235. display: flex;
  14236. justify-content: center;
  14237. flex-direction: row;
  14238. align-items: center;
  14239. margin: 0 10px 0 0;
  14240. }
  14241. .course_homework>>>.el-input__inner {
  14242. width: 140px;
  14243. margin-left: 15px;
  14244. }
  14245. .chapter_upload_move {
  14246. position: relative;
  14247. background-color: #fff;
  14248. position: absolute;
  14249. width: 100%;
  14250. top: 0px;
  14251. left: 0px;
  14252. border: 1px solid #eee;
  14253. border-radius: 5px;
  14254. transition: width 2s;
  14255. -moz-transition: width 2s;
  14256. -webkit-transition: width 2s;
  14257. -o-transition: width 2s;
  14258. }
  14259. .chapter_upload_l_i {
  14260. background-image: url("../../../assets/icon.png");
  14261. background-position: 3px -165px;
  14262. width: 30px;
  14263. height: 30px;
  14264. margin: 10px auto 0 auto;
  14265. }
  14266. .course_input_box {
  14267. display: flex;
  14268. margin-right: 20px;
  14269. width: 100%;
  14270. align-items: center;
  14271. position: relative;
  14272. }
  14273. .course_input_box>.binfo_input {
  14274. width: calc(100% - 0 - 200px - 20px);
  14275. margin: 0 10px;
  14276. }
  14277. .bb_courseIcon {
  14278. width: 57px;
  14279. height: 45px;
  14280. background: #f0f4fa;
  14281. border-radius: 5px 0px 0px 5px;
  14282. display: flex;
  14283. align-items: center;
  14284. justify-content: center;
  14285. border-right: 1.5px solid rgb(202, 209, 220);
  14286. box-sizing: border-box;
  14287. position: absolute;
  14288. left: 1.5px;
  14289. }
  14290. .bb_courseIcon>img {
  14291. width: 25px;
  14292. height: auto;
  14293. }
  14294. .big_box {
  14295. /* margin-top: 20px; */
  14296. display: flex;
  14297. justify-content: space-between;
  14298. /* border-bottom: 1px solid #E0E2ED; */
  14299. }
  14300. .left_first {
  14301. display: flex;
  14302. flex-direction: column;
  14303. flex-wrap: nowrap;
  14304. width: calc(100% - 310px);
  14305. padding: 20px;
  14306. box-sizing: border-box;
  14307. background: #fff;
  14308. border-radius: 5px;
  14309. }
  14310. .right_first {
  14311. width: 300px;
  14312. display: flex;
  14313. align-items: center;
  14314. justify-content: center;
  14315. /* border-left: 1px solid #E0E2ED; */
  14316. box-sizing: border-box;
  14317. padding: 20px;
  14318. flex-direction: column;
  14319. background: #fff;
  14320. border-radius: 5px;
  14321. }
  14322. .ai_box {
  14323. width: 204px;
  14324. display: flex;
  14325. justify-content: flex-end;
  14326. margin-bottom: 15px;
  14327. }
  14328. .ai_content {
  14329. display: flex;
  14330. align-items: center;
  14331. font-size: 14px;
  14332. padding: 7px 20px;
  14333. box-sizing: border-box;
  14334. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  14335. border-radius: 12px;
  14336. font-weight: 700;
  14337. cursor: pointer;
  14338. }
  14339. .ai_content>img {
  14340. width: 40px;
  14341. margin-right: 5px;
  14342. }
  14343. .c_info_title {
  14344. padding: 15px 0 15px 0;
  14345. font-size: 16px;
  14346. font-weight: bold;
  14347. margin: 0 0 0 20px;
  14348. box-sizing: border-box;
  14349. display: flex;
  14350. align-items: center;
  14351. line-height: 20px;
  14352. }
  14353. .c_info_title::before {
  14354. content: "";
  14355. display: block;
  14356. width: 3px;
  14357. height: 20px;
  14358. background: #0061ff;
  14359. border-radius: 3px;
  14360. margin: 0 5px 0 0;
  14361. }
  14362. .right_title {
  14363. height: 30px;
  14364. padding: 15px 0 15px 20px;
  14365. border-bottom: 1px solid #f2f2f2;
  14366. font-size: 1.5em;
  14367. font-weight: bold;
  14368. color: #0f7eff;
  14369. margin: 0 auto;
  14370. }
  14371. .people {
  14372. border: 1px solid rgb(229 229 229);
  14373. /* height: 495px; */
  14374. height: 350px;
  14375. border-radius: 5px;
  14376. width: 100%;
  14377. overflow: auto;
  14378. }
  14379. .people_top {
  14380. display: flex;
  14381. width: 100%;
  14382. /* justify-content: space-between; */
  14383. /* align-items: center; */
  14384. flex-direction: column;
  14385. padding: 10px 10px 0;
  14386. box-sizing: border-box;
  14387. }
  14388. .people_nav,
  14389. .people_top_right {
  14390. /* padding: 20px 0 0 20px; */
  14391. }
  14392. .people_top_right {
  14393. height: 40px;
  14394. margin-bottom: 10px;
  14395. }
  14396. .people_search {
  14397. display: flex;
  14398. position: relative;
  14399. }
  14400. .people_search>>>.el-input__inner {
  14401. /* height: 25px; */
  14402. width: 100%;
  14403. }
  14404. .search_img {
  14405. width: 20px;
  14406. height: 20px;
  14407. position: absolute;
  14408. right: 10px;
  14409. top: 50%;
  14410. transform: translateY(-50%);
  14411. }
  14412. .search_img>img {
  14413. width: 100%;
  14414. height: 100%;
  14415. }
  14416. .people_name {
  14417. display: flex;
  14418. justify-content: flex-start;
  14419. padding: 20px 10px;
  14420. flex-direction: column;
  14421. flex-wrap: wrap;
  14422. }
  14423. .p_box {
  14424. position: relative;
  14425. }
  14426. .people_name>>>.el-checkbox {
  14427. width: 100%;
  14428. display: flex;
  14429. align-items: center;
  14430. margin-bottom: 10px;
  14431. }
  14432. .people_name>>>.el-checkbox__label {
  14433. text-overflow: ellipsis;
  14434. overflow: hidden;
  14435. width: calc(100%);
  14436. }
  14437. .people_name2>>>.el-checkbox__label {
  14438. width: calc(100% - 130px);
  14439. }
  14440. .inviteCode {
  14441. position: absolute;
  14442. right: 30px;
  14443. color: #237ade;
  14444. top: 0;
  14445. cursor: pointer;
  14446. font-size: 13px;
  14447. }
  14448. .noneInvite {
  14449. color: #a8a8a8;
  14450. }
  14451. .inviteImg {
  14452. position: absolute;
  14453. right: 5px;
  14454. top: 0;
  14455. width: 20px;
  14456. }
  14457. .right_img {
  14458. width: 150px;
  14459. height: 150px;
  14460. margin: 0 auto;
  14461. }
  14462. .right_img>img {
  14463. width: 100%;
  14464. height: 100%;
  14465. }
  14466. .number {
  14467. margin-top: 20px;
  14468. color: #4aa6ff;
  14469. text-decoration: underline;
  14470. }
  14471. .success_button {
  14472. display: flex;
  14473. text-align: center;
  14474. margin: 5% 0 auto;
  14475. flex-direction: row;
  14476. justify-content: center;
  14477. }
  14478. .look_course {
  14479. margin-right: 40px;
  14480. background: #3d67bc;
  14481. width: 200px;
  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. .attend_others {
  14491. width: 250px;
  14492. background: #4fb13c;
  14493. height: 35px;
  14494. line-height: 35px;
  14495. color: #fff;
  14496. text-align: center;
  14497. font-size: 14px;
  14498. border-radius: 5px;
  14499. cursor: pointer;
  14500. }
  14501. .dialog_diy2>>>.el-dialog__body {
  14502. text-align: center;
  14503. }
  14504. .write_togother {
  14505. position: absolute;
  14506. right: 45px;
  14507. display: flex;
  14508. top: 5%;
  14509. }
  14510. .write_people {
  14511. font-size: 14px;
  14512. line-height: 50px;
  14513. padding-right: 10px;
  14514. }
  14515. .end_write {
  14516. background: #3d67bc;
  14517. color: #fff;
  14518. width: 100px;
  14519. height: 35px;
  14520. line-height: 35px;
  14521. text-align: center;
  14522. font-size: 14px;
  14523. border-radius: 5px;
  14524. cursor: pointer;
  14525. }
  14526. .chapter_upload+.chapter_upload {
  14527. /* margin-top: 15px; */
  14528. border-top: 1px solid #e7ebf1;
  14529. }
  14530. .chapter_upload {
  14531. height: 45px;
  14532. position: relative;
  14533. display: flex;
  14534. align-items: center;
  14535. width: 100%;
  14536. min-height: 45px;
  14537. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  14538. /* border-radius: 4px; */
  14539. /* overflow: hidden; */
  14540. box-sizing: border-box;
  14541. }
  14542. .chapter_upload_drag {
  14543. position: absolute;
  14544. cursor: pointer;
  14545. width: 16px;
  14546. height: 16px;
  14547. left: -9px;
  14548. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  14549. background-size: 100% 100%;
  14550. z-index: 10;
  14551. display: none;
  14552. }
  14553. .isNavStage>.chapter_upload_drag {
  14554. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  14555. }
  14556. .chapter_upload_t {
  14557. background-color: #fff;
  14558. position: absolute;
  14559. height: 100%;
  14560. top: 0px;
  14561. left: 0px;
  14562. box-sizing: border-box;
  14563. }
  14564. .chapter_upload_o {
  14565. width: 100%;
  14566. height: 100%;
  14567. position: relative;
  14568. z-index: 1;
  14569. }
  14570. .chapter_upload_ic {
  14571. margin: 0 15px 0px auto;
  14572. display: flex;
  14573. align-items: center;
  14574. }
  14575. .chapter_upload_ic_l {
  14576. width: 50px;
  14577. height: 50px;
  14578. float: left;
  14579. }
  14580. .chapter_upload_ic_l div {
  14581. width: 30px;
  14582. height: 35px;
  14583. background: url("../../../assets/icon/icon.png");
  14584. }
  14585. .chapter_upload_ic_edit {
  14586. height: 100%;
  14587. display: flex;
  14588. align-items: center;
  14589. cursor: pointer;
  14590. margin: 0 10px 0 0;
  14591. }
  14592. .chapter_upload_ic_edit div {
  14593. width: 18px;
  14594. height: 18px;
  14595. background-image: url("../../../assets/icon/new/edit_u.png");
  14596. background-size: 100% 100%;
  14597. }
  14598. .chapter_upload_ic_r {
  14599. height: 100%;
  14600. display: flex;
  14601. align-items: center;
  14602. cursor: pointer;
  14603. }
  14604. .chapter_upload_ic_r div {
  14605. width: 18px;
  14606. height: 18px;
  14607. background-image: url("../../../assets/icon/new/delete_u.png");
  14608. background-size: 100% 100%;
  14609. }
  14610. .chapter_upload_n {
  14611. display: flex;
  14612. text-indent: 10px;
  14613. text-decoration: none;
  14614. text-overflow: ellipsis;
  14615. white-space: nowrap;
  14616. overflow: hidden;
  14617. width: 55%;
  14618. margin-left: 10px;
  14619. cursor: pointer;
  14620. margin-top: 2px;
  14621. align-items: center;
  14622. }
  14623. .chapter_upload_l_i2,
  14624. .chapter_upload_l_i3,
  14625. .chapter_upload_l_i8,
  14626. .chapter_upload_l_i6,
  14627. .chapter_upload_l_i12,
  14628. .chapter_upload_l_i14,
  14629. .chapter_upload_l_i13 {
  14630. width: 15px;
  14631. height: 15px;
  14632. background-size: 100% 100%;
  14633. }
  14634. .chapter_upload_l_i2 {
  14635. background-image: url("../../../assets/icon/new/u_word.png");
  14636. }
  14637. .chapter_upload_l_i3 {
  14638. background-image: url("../../../assets/icon/new/u_video.png");
  14639. }
  14640. .chapter_upload_l_i8 {
  14641. background-image: url("../../../assets/icon/new/u_url.png");
  14642. }
  14643. .chapter_upload_l_i14 {
  14644. background-image: url("../../../assets/icon/new/u_source.png");
  14645. }
  14646. .chapter_upload_l_i6 {
  14647. background-image: url("../../../assets/icon/new/u_picture.png");
  14648. }
  14649. .chapter_upload_l_i12 {
  14650. background-image: url("../../../assets/icon/new/u_word.png");
  14651. }
  14652. .chapter_upload_l_i13 {
  14653. background-image: url("../../../assets/icon/new/u_img.png");
  14654. }
  14655. .chapter_upload_noSee {
  14656. background-image: url("../../../assets/icon/new/u_noUpload.png");
  14657. width: 18px;
  14658. height: 18px;
  14659. background-size: 100% 100%;
  14660. display: block;
  14661. margin-right: 10px;
  14662. }
  14663. .chapter_upload_ud {
  14664. display: flex;
  14665. flex-direction: row;
  14666. justify-content: center;
  14667. margin: 0 10px 0 0;
  14668. }
  14669. .chapter_upload_ud>.chapter_upload_up {
  14670. margin-bottom: 0;
  14671. margin-right: 10px;
  14672. }
  14673. .chapter_upload_down,
  14674. .chapter_upload_up {
  14675. width: 20px;
  14676. height: 20px;
  14677. background: #e4eaf2;
  14678. cursor: pointer;
  14679. margin: 0 auto;
  14680. border-radius: 5px;
  14681. display: flex;
  14682. justify-content: center;
  14683. align-items: center;
  14684. }
  14685. .chapter_upload_up::after,
  14686. .chapter_upload_down::after {
  14687. content: "";
  14688. background-image: url("../../../assets/icon/new/downBtn.png");
  14689. width: 13px;
  14690. height: 13px;
  14691. background-size: 100% 100%;
  14692. display: block;
  14693. }
  14694. .chapter_upload_up::after {
  14695. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  14696. }
  14697. .chapter_upload_up {
  14698. margin-bottom: 5px;
  14699. }
  14700. .chapter_upload_ud2 {
  14701. display: flex;
  14702. flex-direction: row;
  14703. justify-content: center;
  14704. margin: 0 10px 0 0;
  14705. }
  14706. .chapter_upload_ud2>.chapter_upload_up2 {
  14707. margin-bottom: 0;
  14708. margin-right: 10px;
  14709. }
  14710. .chapter_upload_down2,
  14711. .chapter_upload_up2 {
  14712. cursor: pointer;
  14713. margin: 0 auto;
  14714. border-radius: 5px;
  14715. display: flex;
  14716. justify-content: center;
  14717. align-items: center;
  14718. color: #717c8d;
  14719. font-size: 14px;
  14720. }
  14721. .chapter_upload_up2 {
  14722. margin-right: 10px;
  14723. }
  14724. .chapter_upload_up2::before,
  14725. .chapter_upload_down2::before {
  14726. content: "";
  14727. background-image: url("../../../assets/icon/new/c_down.png");
  14728. width: 14px;
  14729. height: 14px;
  14730. background-size: 100% 100%;
  14731. display: block;
  14732. margin-right: 5px;
  14733. }
  14734. .chapter_upload_up2::before {
  14735. background-image: url("../../../assets/icon/new/c_up.png") !important;
  14736. }
  14737. .addWordStyle {
  14738. display: flex;
  14739. flex-direction: row;
  14740. justify-content: flex-start;
  14741. overflow-x: auto;
  14742. white-space: nowrap;
  14743. flex-wrap: wrap;
  14744. }
  14745. /* table 样式 */
  14746. .cont>>>table {
  14747. border-top: 1px solid #ccc;
  14748. border-left: 1px solid #ccc;
  14749. }
  14750. .cont>>>table td,
  14751. .cont>>>table th {
  14752. border-bottom: 1px solid #ccc;
  14753. border-right: 1px solid #ccc;
  14754. /* padding: 20px 5px; */
  14755. padding: 5px 10px;
  14756. max-width: 0px;
  14757. height: 30px;
  14758. vertical-align: baseline;
  14759. }
  14760. .cont>>>table th {
  14761. border-bottom: 2px solid #ccc;
  14762. text-align: center;
  14763. }
  14764. /* blockquote 样式 */
  14765. .cont>>>blockquote {
  14766. display: block;
  14767. border-left: 8px solid #d0e5f2;
  14768. padding: 5px 10px;
  14769. margin: 10px 0;
  14770. line-height: 1.4;
  14771. font-size: 100%;
  14772. background-color: #f1f1f1;
  14773. }
  14774. /* code 样式 */
  14775. .cont>>>code {
  14776. display: inline-block;
  14777. /* *display: inline; */
  14778. zoom: 1;
  14779. background-color: #f1f1f1;
  14780. border-radius: 3px;
  14781. padding: 3px 5px;
  14782. margin: 0 3px;
  14783. }
  14784. .cont>>>pre code {
  14785. display: block;
  14786. }
  14787. /* ul ol 样式 */
  14788. .cont>>>ul,
  14789. ol {
  14790. margin: 10px 0 10px 20px;
  14791. }
  14792. .wordbox {
  14793. display: flex;
  14794. flex-wrap: wrap;
  14795. cursor: pointer;
  14796. width: 100%;
  14797. }
  14798. .checkword {
  14799. width: 22px;
  14800. height: 22px;
  14801. margin: 10px auto 0;
  14802. cursor: pointer;
  14803. }
  14804. .checkword img {
  14805. width: 100%;
  14806. }
  14807. .stepBg {
  14808. display: flex;
  14809. justify-content: space-between;
  14810. align-items: center;
  14811. background: #fff;
  14812. width: calc(100%);
  14813. margin: 0 auto;
  14814. }
  14815. .stepBorder {
  14816. height: 3px !important;
  14817. background: #cad1dc;
  14818. width: 100px !important;
  14819. margin: 0 15px !important;
  14820. position: relative;
  14821. }
  14822. .border-active {
  14823. background: #3681fc !important;
  14824. }
  14825. .border-active::before,
  14826. .border-active::after {
  14827. border-color: #3681fc !important;
  14828. }
  14829. .stepBorder::before,
  14830. .stepBorder::after {
  14831. content: "";
  14832. width: 9px;
  14833. height: 9px;
  14834. background: #ffffff;
  14835. opacity: 1;
  14836. border: 2px solid #acb4bf;
  14837. display: block;
  14838. box-sizing: border-box;
  14839. border-radius: 50%;
  14840. position: absolute;
  14841. top: 50%;
  14842. transform: translateY(-50%);
  14843. }
  14844. .stepBorder::after {
  14845. right: -9px;
  14846. }
  14847. .stepTop {
  14848. width: 100%;
  14849. /* border-radius: 10px; */
  14850. display: flex;
  14851. justify-content: center;
  14852. align-items: center;
  14853. flex-wrap: nowrap;
  14854. background: #fff;
  14855. /* top: 18%; */
  14856. height: 80px;
  14857. border-bottom: 2px solid rgb(228, 232, 237);
  14858. box-sizing: border-box;
  14859. }
  14860. .stepTop2 {
  14861. width: 100%;
  14862. /* border-radius: 10px; */
  14863. display: flex;
  14864. justify-content: center;
  14865. align-items: center;
  14866. flex-wrap: nowrap;
  14867. background: #fff;
  14868. /* top: 18%; */
  14869. height: 20px;
  14870. border-bottom: 2px solid rgb(228, 232, 237);
  14871. box-sizing: border-box;
  14872. overflow: hidden;
  14873. cursor: pointer;
  14874. }
  14875. .stepTop>div img {
  14876. width: 100%;
  14877. }
  14878. .stepTop>div {
  14879. height: 50px;
  14880. width: 180px;
  14881. cursor: pointer;
  14882. margin: 10px 0;
  14883. border-radius: 10px;
  14884. }
  14885. .first,
  14886. .second,
  14887. .third,
  14888. .four {
  14889. background: #3681fc;
  14890. height: 90px;
  14891. color: #fff;
  14892. display: flex;
  14893. flex-direction: row;
  14894. align-items: center;
  14895. justify-content: center;
  14896. }
  14897. .first>div:nth-child(1),
  14898. .second>div:nth-child(1),
  14899. .third>div:nth-child(1),
  14900. .four>div:nth-child(1) {
  14901. margin: 5px 10px 0 0;
  14902. width: 2rem;
  14903. }
  14904. .firstNo,
  14905. .secondNo,
  14906. .thirdNo,
  14907. .fourNo {
  14908. background: #e7e7e7;
  14909. color: #adadad;
  14910. display: flex;
  14911. flex-direction: row;
  14912. align-items: center;
  14913. justify-content: center;
  14914. }
  14915. .firstNo>div:nth-child(1),
  14916. .secondNo>div:nth-child(1),
  14917. .thirdNo>div:nth-child(1),
  14918. .fourNo>div:nth-child(1) {
  14919. margin: 5px 10px 0 0;
  14920. width: 2rem;
  14921. }
  14922. .uploadWidth>>>.el-upload {
  14923. width: 60px;
  14924. height: 60px;
  14925. position: relative;
  14926. }
  14927. .addPeople {
  14928. background: #fa6060;
  14929. width: 150px;
  14930. height: 40px;
  14931. color: #fff;
  14932. border-radius: 5px;
  14933. text-align: center;
  14934. line-height: 40px;
  14935. font-size: 14px;
  14936. cursor: pointer;
  14937. }
  14938. .kcImg {
  14939. width: 60px;
  14940. margin-left: 10px;
  14941. }
  14942. .zyImg {
  14943. width: 55px;
  14944. margin: 0 10px;
  14945. }
  14946. .deleteZy {
  14947. width: 20px;
  14948. position: absolute;
  14949. top: 5px;
  14950. right: 5px;
  14951. cursor: pointer;
  14952. }
  14953. .kcImg>img,
  14954. .zyImg>img,
  14955. .deleteZy>img {
  14956. width: 100%;
  14957. height: 100%;
  14958. }
  14959. .zyBox {
  14960. display: flex;
  14961. flex-direction: row;
  14962. align-items: center;
  14963. background: #67d37d;
  14964. color: #fff;
  14965. width: 210px;
  14966. margin: 20px 20px 0 0;
  14967. border-radius: 10px;
  14968. height: 70px;
  14969. position: relative;
  14970. }
  14971. .upCss {
  14972. display: flex;
  14973. flex-direction: row;
  14974. justify-content: flex-start;
  14975. }
  14976. .upCss>>>.el-icon-plus {
  14977. position: none !important;
  14978. width: 200px;
  14979. height: 100px;
  14980. display: flex;
  14981. flex-wrap: nowrap;
  14982. flex-direction: column;
  14983. align-items: center;
  14984. justify-content: center;
  14985. border: 1px dashed #ccc;
  14986. min-width: 78px;
  14987. min-height: 100px;
  14988. z-index: 999;
  14989. }
  14990. .upCss>>>.el-upload-list__item-name {
  14991. width: 100px;
  14992. white-space: nowrap;
  14993. overflow: hidden;
  14994. text-overflow: ellipsis;
  14995. }
  14996. .upCss>>>.el-upload-list__item .el-icon-close {
  14997. font-size: 20px;
  14998. z-index: 9999;
  14999. }
  15000. .addStageImg {
  15001. min-width: 20px;
  15002. min-height: 20px;
  15003. width: 20px;
  15004. height: 20px;
  15005. cursor: pointer;
  15006. }
  15007. .addHW {
  15008. width: 28px;
  15009. height: 28px;
  15010. cursor: pointer;
  15011. }
  15012. .addStageImg>img,
  15013. .addHW>img {
  15014. width: 100%;
  15015. height: 100%;
  15016. }
  15017. .addNewPP>>>.el-dialog__body {
  15018. padding: 5px 20px;
  15019. }
  15020. .addNewPP>>>.el-dialog {
  15021. margin-top: 5vh !important;
  15022. }
  15023. .addNewPP2>>>.el-dialog__body {
  15024. padding: 5px 0;
  15025. }
  15026. .addNewPP2>>>.el-dialog {
  15027. margin-top: 5vh !important;
  15028. }
  15029. .isHeight {
  15030. height: 680px;
  15031. }
  15032. .toolChoose {
  15033. display: flex;
  15034. /* width: 100%; */
  15035. flex-direction: row;
  15036. flex-wrap: wrap;
  15037. }
  15038. .tool,
  15039. .isToolChoose {
  15040. display: flex;
  15041. flex-direction: column;
  15042. flex-wrap: nowrap;
  15043. width: fit-content;
  15044. margin: 10px 0 10px 0;
  15045. align-items: center;
  15046. border: 2px solid #dbdbdb00;
  15047. padding: 10px 20px;
  15048. border-radius: 5px;
  15049. cursor: pointer;
  15050. /* box-shadow: 0 0 2px 0px #dedede; */
  15051. position: relative;
  15052. box-sizing: border-box;
  15053. }
  15054. .tool:hover {
  15055. border: 2px solid #a5c7ff;
  15056. }
  15057. .tool:hover>.noCTool {
  15058. display: block;
  15059. opacity: 0.5;
  15060. }
  15061. .isToolChoose {
  15062. border: 2px solid #438aff !important;
  15063. box-shadow: 0 0 2px 0px #438aff;
  15064. opacity: 1 !important;
  15065. }
  15066. .isCTool,
  15067. .noCTool {
  15068. width: 30px;
  15069. height: 30px;
  15070. position: absolute;
  15071. top: -4px;
  15072. right: -4px;
  15073. }
  15074. .noCTool {
  15075. display: none;
  15076. }
  15077. .isCTool>img,
  15078. .noCTool>img {
  15079. width: 100%;
  15080. height: 100%;
  15081. }
  15082. .tool+.tool {
  15083. margin-right: 10px;
  15084. }
  15085. .whiteBIcon {
  15086. width: 80px;
  15087. cursor: pointer;
  15088. display: flex;
  15089. flex-direction: column;
  15090. flex-wrap: nowrap;
  15091. align-items: center;
  15092. font-size: 14px;
  15093. }
  15094. .whiteBIcon>img,
  15095. .toolIcon>img,
  15096. .arrow>img {
  15097. width: 100%;
  15098. height: 100%;
  15099. }
  15100. .check img {
  15101. width: 20px;
  15102. height: 20px;
  15103. }
  15104. .whiteBIcon>img {
  15105. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  15106. border-radius: 15px;
  15107. }
  15108. .whiteBIcon>div:nth-child(2) {
  15109. height: 20px;
  15110. line-height: 20px;
  15111. }
  15112. .check {
  15113. /* width: 20px;
  15114. height: 20px; */
  15115. cursor: pointer;
  15116. margin: 10px 0 0;
  15117. }
  15118. .checkDiv {
  15119. display: flex;
  15120. align-items: center;
  15121. }
  15122. .checkDiv span {
  15123. margin-left: 5px;
  15124. color: #858585;
  15125. }
  15126. .customWidth>>>.el-dialog {
  15127. min-width: 600px !important;
  15128. }
  15129. .CollaborativeCss {
  15130. width: 100%;
  15131. display: flex;
  15132. justify-content: center;
  15133. align-items: center;
  15134. box-sizing: border-box;
  15135. padding: 10px 0;
  15136. cursor: pointer;
  15137. }
  15138. .CollaborativeCss >>> .el-tooltip {
  15139. overflow: hidden;
  15140. white-space: nowrap;
  15141. text-overflow: ellipsis;
  15142. }
  15143. .CollaborativeCss2 {
  15144. background: #e0eafb;
  15145. color: #3681fc;
  15146. font-weight: 700;
  15147. border-radius: 5px;
  15148. }
  15149. .a_addBox {
  15150. margin: 10px 0;
  15151. background: #fff;
  15152. padding: 15px;
  15153. /* max-height: 600px; */
  15154. overflow: auto;
  15155. }
  15156. .a_add_box {
  15157. border-bottom: 2px solid #eee;
  15158. padding-bottom: 25px;
  15159. }
  15160. .a_add_head {
  15161. display: flex;
  15162. align-items: center;
  15163. justify-content: space-between;
  15164. margin: 10px 0 0 0;
  15165. font-size: 18px;
  15166. }
  15167. .a_add_checkType {
  15168. margin-top: 10px;
  15169. display: flex;
  15170. font-size: 14px;
  15171. align-items: center;
  15172. }
  15173. .a_add_checkType span {
  15174. box-sizing: border-box;
  15175. padding: 0 0 5px 0;
  15176. cursor: pointer;
  15177. }
  15178. .a_add_checkType span+span {
  15179. margin-left: 10px;
  15180. }
  15181. .a_add_checkType .active {
  15182. border-bottom: 2px solid #409eff;
  15183. color: #409eff;
  15184. }
  15185. .a_add_head .a_add_head_input {
  15186. /* width: 540px; */
  15187. width: 100%;
  15188. }
  15189. .a_add_head .a_add_head_div {
  15190. display: flex;
  15191. align-items: center;
  15192. justify-content: space-between;
  15193. }
  15194. .a_add_body {
  15195. display: flex;
  15196. /* align-items: center; */
  15197. align-items: flex-end;
  15198. }
  15199. .a_add_input {
  15200. display: flex;
  15201. align-items: center;
  15202. flex-wrap: wrap;
  15203. }
  15204. .a_add_input_choice {
  15205. flex-direction: column;
  15206. margin-right: 10px;
  15207. }
  15208. .a_add_input_choice>>>.el-radio {
  15209. display: flex;
  15210. align-items: center;
  15211. flex-direction: row-reverse;
  15212. margin: 30px 0 0 0;
  15213. position: relative;
  15214. }
  15215. .a_add_input_choice>>>.el-checkbox {
  15216. display: flex;
  15217. align-items: center;
  15218. flex-direction: row-reverse;
  15219. margin: 30px 0 0 0;
  15220. position: relative;
  15221. }
  15222. .width100 {
  15223. width: 100%;
  15224. }
  15225. .a_add_input .a_add_persent {
  15226. width: 100%;
  15227. }
  15228. .a_add_persent_div {
  15229. width: 100%;
  15230. display: flex;
  15231. align-items: center;
  15232. }
  15233. .a_add_persent_div span {
  15234. margin: 5px 0;
  15235. }
  15236. .a_add_persent_div span:nth-child(1) {
  15237. width: 30%;
  15238. }
  15239. .a_add_persent_div span:nth-child(2) {
  15240. width: 7%;
  15241. }
  15242. .a_add_persent_div span:nth-child(3) {
  15243. width: 40%;
  15244. }
  15245. .a_add_body_div {
  15246. display: flex;
  15247. align-items: center;
  15248. justify-content: center;
  15249. /* flex-direction: column; */
  15250. position: absolute;
  15251. right: -20px;
  15252. transform: translateX(100%);
  15253. }
  15254. .a_add_body_div>>>.el-button--primary {
  15255. background: #466b99;
  15256. border: none;
  15257. }
  15258. .all_choose {
  15259. display: flex;
  15260. flex-direction: row;
  15261. align-items: flex-start;
  15262. width: 100%;
  15263. }
  15264. .all_choose+.all_choose {
  15265. /* margin-top: 10px */
  15266. }
  15267. .all_choose>span {
  15268. min-width: fit-content;
  15269. display: block;
  15270. white-space: nowrap;
  15271. overflow: hidden;
  15272. text-overflow: ellipsis;
  15273. margin-right: 20px;
  15274. font-weight: bold;
  15275. font-size: 14px;
  15276. }
  15277. .all_choose>>>.el-checkbox-group {
  15278. display: flex;
  15279. flex-direction: row;
  15280. width: 100%;
  15281. flex-wrap: wrap;
  15282. align-content: center;
  15283. justify-content: flex-start;
  15284. align-items: center;
  15285. margin-top: 3px;
  15286. }
  15287. .all_choose>.el-checkbox-group>>>.el-checkbox {
  15288. margin-bottom: 10px;
  15289. display: flex;
  15290. flex-direction: row;
  15291. align-items: center;
  15292. margin-right: 10px;
  15293. }
  15294. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  15295. min-width: 80px;
  15296. overflow: hidden;
  15297. width: 80px;
  15298. text-overflow: ellipsis;
  15299. white-space: nowrap;
  15300. }
  15301. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  15302. width: auto;
  15303. }
  15304. .choose>div:nth-child(3)>span {
  15305. /* letter-spacing: 0 !important; */
  15306. }
  15307. .choose {
  15308. display: flex;
  15309. flex-direction: column;
  15310. flex-wrap: nowrap;
  15311. height: 100%;
  15312. justify-content: space-evenly;
  15313. align-items: flex-start;
  15314. }
  15315. .both {
  15316. display: flex;
  15317. flex-direction: row;
  15318. flex-wrap: wrap;
  15319. width: 100%;
  15320. align-items: center;
  15321. justify-content: flex-start;
  15322. margin: 15px 0;
  15323. }
  15324. .notice>>>.el-dialog {
  15325. width: 500px !important;
  15326. text-align: center;
  15327. }
  15328. .notice>>>.el-button {
  15329. margin-top: 20px;
  15330. }
  15331. .whiteBg {
  15332. /* background: #fff; */
  15333. border-radius: 10px;
  15334. }
  15335. .wb_j_box {
  15336. display: flex;
  15337. width: 100%;
  15338. padding: 0 20px 0;
  15339. box-sizing: border-box;
  15340. }
  15341. .wb_j_box_content {
  15342. width: calc(100% - 55% - 100px);
  15343. display: flex;
  15344. align-items: center;
  15345. }
  15346. .wb_j_box_p_box {
  15347. max-width: calc(100% - 200px);
  15348. word-break: break-all;
  15349. overflow: hidden;
  15350. margin: 0 0 0 10px;
  15351. font-size: 14px;
  15352. color: #6e6e6e;
  15353. z-index: 999;
  15354. }
  15355. .chooseWho {
  15356. display: flex;
  15357. width: 410px;
  15358. flex-direction: row;
  15359. flex-wrap: nowrap;
  15360. justify-content: space-between;
  15361. padding-bottom: 10px;
  15362. }
  15363. .chooseWho>div {
  15364. cursor: pointer;
  15365. padding-bottom: 10px;
  15366. font-weight: bold;
  15367. }
  15368. .isChooseActive {
  15369. color: #3e88f4;
  15370. border-bottom: 2px solid #2f80f3;
  15371. }
  15372. .toolSort {
  15373. display: flex;
  15374. flex-direction: row;
  15375. flex-wrap: wrap;
  15376. justify-content: flex-start;
  15377. align-items: flex-start;
  15378. }
  15379. .toolSort>div {
  15380. margin-right: 10px;
  15381. }
  15382. .tools {
  15383. width: 100%;
  15384. display: flex;
  15385. flex-direction: column;
  15386. flex-wrap: nowrap;
  15387. align-items: flex-start;
  15388. }
  15389. .leftTools,
  15390. .rightTools {
  15391. width: 50%;
  15392. }
  15393. .leftTools+.leftTools {
  15394. border-top: 1px solid #dbdbdb;
  15395. padding-top: 30px;
  15396. }
  15397. .rightTools {
  15398. display: flex;
  15399. flex-direction: row;
  15400. flex-wrap: nowrap;
  15401. justify-content: space-around;
  15402. }
  15403. .firstToolList {
  15404. display: flex;
  15405. flex-direction: column;
  15406. flex-wrap: nowrap;
  15407. align-items: center;
  15408. }
  15409. .iconList {
  15410. display: flex;
  15411. flex-direction: row;
  15412. flex-wrap: wrap;
  15413. justify-content: flex-start;
  15414. align-items: center;
  15415. margin: 20px 0 5px 0;
  15416. width: 240px;
  15417. min-width: 240px;
  15418. }
  15419. .iconTool {
  15420. display: flex;
  15421. flex-direction: column;
  15422. flex-wrap: nowrap;
  15423. align-items: center;
  15424. justify-content: flex-start;
  15425. margin: 15px 10px;
  15426. }
  15427. .toolIcon {
  15428. width: 50px;
  15429. }
  15430. .taskBorder {
  15431. /* border: 1px solid #CAD1DC; */
  15432. border-radius: 10px;
  15433. margin-top: 10px;
  15434. min-height: 670px;
  15435. position: relative;
  15436. background: #fff;
  15437. padding: 20px;
  15438. overflow: hidden;
  15439. box-sizing: border-box;
  15440. }
  15441. .smallTaskBorder {
  15442. height: 405px;
  15443. min-height: 405px !important;
  15444. overflow: hidden;
  15445. }
  15446. /* .taskBorder>div {
  15447. padding: 30px 30px 10px;
  15448. } */
  15449. .addTaskBorder {
  15450. /* border: 2px solid #5E9AFC; */
  15451. border-radius: 8px;
  15452. margin-top: 10px;
  15453. cursor: pointer;
  15454. /* height: 50px;
  15455. line-height: 50px; */
  15456. background: #fff;
  15457. padding: 15px 0;
  15458. display: flex;
  15459. align-items: center;
  15460. justify-content: center;
  15461. }
  15462. /* .addTaskBorder>div {
  15463. margin: 0 auto;
  15464. display: flex;
  15465. align-items: center;
  15466. justify-content: center;
  15467. }
  15468. .addTaskBorder>div>img {
  15469. width: 20px;
  15470. }
  15471. .addTaskBorder>div>span {
  15472. font-size: 16px;
  15473. margin-left: 10px;
  15474. color: #5E9AFC;
  15475. } */
  15476. .funBlock {
  15477. display: flex;
  15478. padding: 15px 0;
  15479. flex-direction: row;
  15480. justify-content: center;
  15481. align-items: center;
  15482. position: absolute;
  15483. right: 0;
  15484. bottom: 0;
  15485. background: #fff;
  15486. width: 100%;
  15487. height: 60px;
  15488. z-index: 9;
  15489. }
  15490. .fold {
  15491. display: flex;
  15492. margin: 0 20px;
  15493. flex-direction: row;
  15494. align-items: center;
  15495. cursor: pointer;
  15496. color: #2b7bff;
  15497. }
  15498. .arrow {
  15499. margin-right: 8px;
  15500. width: 16px;
  15501. height: 16px;
  15502. min-width: 16px;
  15503. min-height: 16px;
  15504. background-size: 100% 100%;
  15505. display: block;
  15506. background-image: url(../../../assets/icon/new/u_up.png);
  15507. /* border-left: 7px solid transparent;
  15508. border-bottom: 7px solid #717C8D;
  15509. border-top: 0px solid transparent;
  15510. border-right: 7px solid transparent; */
  15511. /* box-sizing: border-box; */
  15512. transition: all 0.3s;
  15513. }
  15514. .arrowZ {
  15515. transform: rotate(180deg);
  15516. }
  15517. .addToolFun {
  15518. display: flex;
  15519. width: 150px;
  15520. flex-direction: row;
  15521. align-items: center;
  15522. justify-content: center;
  15523. border: 2px dashed #cad1dc;
  15524. border-radius: 5px;
  15525. height: 50px;
  15526. margin: 35px auto 0;
  15527. cursor: pointer;
  15528. }
  15529. .addToolFun2 {
  15530. display: flex;
  15531. width: 150px;
  15532. border: 2px dashed #cad1dc;
  15533. flex-direction: row;
  15534. align-items: center;
  15535. justify-content: center;
  15536. border-radius: 5px;
  15537. height: 50px;
  15538. margin: 0 auto 0;
  15539. cursor: pointer;
  15540. }
  15541. .addToolFun2>div,
  15542. .addToolFun>div {
  15543. display: flex;
  15544. line-height: 50px;
  15545. }
  15546. .addToolImg {
  15547. width: 20px;
  15548. height: 20px;
  15549. margin-right: 10px;
  15550. }
  15551. .addToolsDia>>>.el-dialog__body {
  15552. padding: 20px;
  15553. }
  15554. .addToolsDia>>>.el-dialog__body>.toolChoose {
  15555. padding: 0;
  15556. }
  15557. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  15558. padding: 0;
  15559. border-bottom: none;
  15560. margin-bottom: 0;
  15561. }
  15562. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  15563. width: 100%;
  15564. }
  15565. .lineCss>>>.el-form-item__label {
  15566. width: auto !important;
  15567. }
  15568. .lineCss>>>.el-form-item__content {
  15569. margin-left: 50px !important;
  15570. }
  15571. .newSteps {
  15572. display: flex;
  15573. width: 100% !important;
  15574. /* height: 80px; */
  15575. cursor: pointer;
  15576. margin: 10px 0;
  15577. border-radius: 10px;
  15578. flex-direction: row;
  15579. align-content: center;
  15580. justify-content: center;
  15581. align-items: center;
  15582. margin: 0 !important;
  15583. }
  15584. /* 评价样式 */
  15585. .elist_css {
  15586. padding-bottom: 75px !important;
  15587. }
  15588. .elist_title {
  15589. margin-bottom: 10px;
  15590. }
  15591. .elist_input {
  15592. width: 100%;
  15593. }
  15594. .elist_input_box {
  15595. display: flex;
  15596. align-items: center;
  15597. flex-wrap: wrap;
  15598. }
  15599. .elist_input_box+.elist_input_box {
  15600. margin-top: 30px;
  15601. }
  15602. .elist_input .elist_input_box input {
  15603. font: inherit;
  15604. color: currentColor;
  15605. width: 100%;
  15606. /* max-width: calc(100% - 385px); */
  15607. max-width: calc(100% - 150px);
  15608. padding: 8px 14px;
  15609. display: block;
  15610. min-width: 0;
  15611. outline: none;
  15612. border: 1px solid rgba(0, 0, 0, 0.23);
  15613. border-radius: 4px;
  15614. box-sizing: border-box;
  15615. background: #fff;
  15616. margin: 0 20px 0 0;
  15617. }
  15618. .elist_input .elist_input_box span {
  15619. height: 36px;
  15620. line-height: 36px;
  15621. color: rgb(82, 82, 82);
  15622. min-width: 80px;
  15623. }
  15624. .elist_input .elist_input_box .remove {
  15625. height: 20px;
  15626. width: 20px;
  15627. min-height: 20px;
  15628. min-width: 20px;
  15629. background-size: 100% 100%;
  15630. background-position: unset;
  15631. margin-left: 5px;
  15632. }
  15633. .elist_input_box>>>.el-rate {
  15634. display: flex;
  15635. height: 36px;
  15636. align-items: center;
  15637. }
  15638. .elist_input_box .elist_inptu_text {
  15639. width: 100%;
  15640. display: flex;
  15641. align-items: center;
  15642. margin-top: 10px;
  15643. }
  15644. .elist_input_box .elist_inptu_text input {
  15645. /* width: 500px; */
  15646. width: 100%;
  15647. max-width: unset;
  15648. }
  15649. .elist_input_box>>>.el-rate__icon {
  15650. font-size: 24px;
  15651. }
  15652. .elist_btn {
  15653. margin-top: 10px;
  15654. }
  15655. .lineTitle {
  15656. /* margin-top: 15px; */
  15657. width: 110px;
  15658. font-size: 16px;
  15659. display: flex;
  15660. align-items: center;
  15661. line-height: 20px;
  15662. }
  15663. .lineTitle::before {
  15664. content: "";
  15665. display: block;
  15666. width: 3px;
  15667. height: 20px;
  15668. background: #0061ff;
  15669. border-radius: 3px;
  15670. margin: 0 5px 0 0;
  15671. }
  15672. .clineTitle::before {
  15673. content: "";
  15674. display: block;
  15675. min-width: 10px;
  15676. width: 10px;
  15677. height: 10px;
  15678. background: #0061ff;
  15679. border-radius: 50%;
  15680. margin: 0 5px 0 0;
  15681. }
  15682. .courseTop {
  15683. display: flex;
  15684. flex-direction: row;
  15685. justify-content: space-between;
  15686. align-items: center;
  15687. width: calc(100% - 40px);
  15688. margin: 0 auto;
  15689. padding: 10px 0;
  15690. }
  15691. .stepsNav {
  15692. display: flex;
  15693. flex-direction: row;
  15694. justify-content: flex-start;
  15695. align-items: center;
  15696. }
  15697. .stepsWord {
  15698. font-size: 18px;
  15699. color: #fff;
  15700. font-weight: bold;
  15701. margin-left: auto;
  15702. background: rgb(15, 126, 255);
  15703. border-radius: 5px;
  15704. padding: 3px 25px;
  15705. box-sizing: border-box;
  15706. }
  15707. .stepBox {
  15708. width: calc(100% - 40px);
  15709. height: calc(100% - 50px);
  15710. overflow: hidden;
  15711. border-radius: 5px;
  15712. margin: 0 auto;
  15713. }
  15714. .rightBox {
  15715. width: calc(100%);
  15716. background: #f0f2f5;
  15717. /* border-radius: 10px; */
  15718. overflow: auto;
  15719. height: calc(100% - 150px);
  15720. margin: 0 auto;
  15721. position: relative;
  15722. box-sizing: border-box;
  15723. }
  15724. .e_add_top {
  15725. display: flex;
  15726. justify-content: space-between;
  15727. background: #fff;
  15728. position: absolute;
  15729. right: 20px;
  15730. height: 50px;
  15731. align-items: center;
  15732. }
  15733. .e_add_title2 {
  15734. display: flex;
  15735. align-items: center;
  15736. }
  15737. .e_add_title2 span {
  15738. width: 40px;
  15739. }
  15740. .e_add_title {
  15741. display: flex;
  15742. align-items: center;
  15743. color: #b8b8b8;
  15744. font-size: 18px;
  15745. position: relative;
  15746. height: 40px;
  15747. }
  15748. .e_add_title span {
  15749. margin-right: 10px;
  15750. }
  15751. .e_add_title .el_input {
  15752. width: 300px;
  15753. }
  15754. .e_add_title>>>.el-input__inner {
  15755. width: 400px;
  15756. }
  15757. .e_add_btn {}
  15758. .e_add_content {
  15759. display: flex;
  15760. width: 100%;
  15761. }
  15762. .e_add_list {
  15763. background: #fff;
  15764. height: 500px;
  15765. width: 210px;
  15766. position: relative;
  15767. margin: 15px 5px 0 0;
  15768. flex-shrink: 0;
  15769. display: flex;
  15770. flex-direction: column;
  15771. }
  15772. .e_add_list_title {
  15773. font-size: 20px;
  15774. width: 100%;
  15775. box-sizing: border-box;
  15776. padding: 15px 40px;
  15777. text-align: center;
  15778. border-bottom: 1px solid #eaeaea;
  15779. position: relative;
  15780. display: flex;
  15781. align-items: center;
  15782. justify-content: center;
  15783. height: 57px;
  15784. background: #f6f6f6;
  15785. }
  15786. .e_add_list_title span {
  15787. overflow: hidden;
  15788. white-space: nowrap;
  15789. text-overflow: ellipsis;
  15790. }
  15791. .e_add_list_title img {
  15792. position: absolute;
  15793. right: 15px;
  15794. width: 25px;
  15795. cursor: pointer;
  15796. top: 50%;
  15797. transform: translateY(-50%);
  15798. }
  15799. .e_add_list_body {
  15800. height: calc(100% - 187px);
  15801. overflow: auto;
  15802. }
  15803. .e_add_list_child {
  15804. width: 100%;
  15805. display: flex;
  15806. align-items: center;
  15807. justify-content: center;
  15808. position: relative;
  15809. box-sizing: border-box;
  15810. padding: 15px 40px;
  15811. text-align: center;
  15812. }
  15813. .e_add_list_child span {
  15814. overflow: hidden;
  15815. white-space: nowrap;
  15816. text-overflow: ellipsis;
  15817. cursor: pointer;
  15818. }
  15819. .e_add_list_child img {
  15820. position: absolute;
  15821. right: 10px;
  15822. width: 21px;
  15823. cursor: pointer;
  15824. top: 50%;
  15825. transform: translateY(-50%);
  15826. }
  15827. .e_add_list_child+.e_add_list_child {
  15828. border-top: 1px solid #eaeaea;
  15829. }
  15830. .e_add_list_child .active {
  15831. color: #409eff;
  15832. }
  15833. .e_add_list_btn {
  15834. position: absolute;
  15835. bottom: 0;
  15836. height: 50px;
  15837. background: rgb(120, 120, 254);
  15838. width: 100%;
  15839. color: #fff;
  15840. font-size: 16px;
  15841. text-align: center;
  15842. line-height: 50px;
  15843. cursor: pointer;
  15844. }
  15845. .e_add_list_detail {
  15846. position: absolute;
  15847. bottom: 0;
  15848. height: 130px;
  15849. background: rgb(120, 120, 254);
  15850. width: 100%;
  15851. color: #fff;
  15852. font-size: 16px;
  15853. display: flex;
  15854. align-items: center;
  15855. justify-content: center;
  15856. }
  15857. .e_add_list_detail textarea {
  15858. height: 90%;
  15859. width: 95%;
  15860. border: none;
  15861. resize: none;
  15862. outline: none;
  15863. padding: 5px;
  15864. box-sizing: border-box;
  15865. }
  15866. .e_add_list_pbox {
  15867. width: 100%;
  15868. }
  15869. .e_add_list_pbox_title {
  15870. height: 50px;
  15871. background: #fff;
  15872. display: flex;
  15873. align-items: center;
  15874. width: 100%;
  15875. box-sizing: border-box;
  15876. padding: 0 20px;
  15877. flex-direction: row;
  15878. flex-wrap: wrap;
  15879. }
  15880. .type_title {
  15881. font-size: 18px;
  15882. font-weight: 700;
  15883. }
  15884. .type_content {
  15885. font-size: 16px;
  15886. margin-left: 30px;
  15887. }
  15888. .type_content span+span {
  15889. margin-left: 20px;
  15890. }
  15891. .type_content span {
  15892. cursor: pointer;
  15893. padding-bottom: 5px;
  15894. box-sizing: border-box;
  15895. }
  15896. .type_content .active {
  15897. color: #409eff;
  15898. border-bottom: 2px solid #409eff;
  15899. }
  15900. .e_add_list_pbox_content {
  15901. height: calc(100% - 50px);
  15902. display: flex;
  15903. align-items: center;
  15904. width: 100%;
  15905. background: #fff;
  15906. }
  15907. .mbCss {
  15908. width: 100%;
  15909. display: flex;
  15910. flex-direction: row;
  15911. flex-wrap: nowrap;
  15912. align-content: center;
  15913. align-items: flex-start;
  15914. justify-content: flex-start;
  15915. }
  15916. .pjCss {
  15917. /* width: 42%; */
  15918. width: calc(100% - 55%);
  15919. display: flex;
  15920. flex-direction: column;
  15921. flex-wrap: nowrap;
  15922. align-items: flex-start;
  15923. }
  15924. .e_box {
  15925. /* display: flex; */
  15926. flex-wrap: wrap;
  15927. max-height: 500px;
  15928. align-items: flex-start;
  15929. overflow: auto;
  15930. width: 100%;
  15931. }
  15932. .e_card {
  15933. border: 1px solid #ccc;
  15934. background: #fff;
  15935. margin-right: 20px;
  15936. width: 270px;
  15937. display: flex;
  15938. flex-direction: column;
  15939. align-items: center;
  15940. border-radius: 5px;
  15941. margin-top: 10px;
  15942. text-align: center;
  15943. }
  15944. .e_card_picture {
  15945. margin: 10px 0;
  15946. }
  15947. .e_card_picture>img {
  15948. width: 50px;
  15949. }
  15950. .e_card_name {
  15951. width: 100%;
  15952. padding: 0 10px;
  15953. box-sizing: border-box;
  15954. margin-bottom: 10px;
  15955. overflow: hidden;
  15956. text-overflow: ellipsis;
  15957. white-space: nowrap;
  15958. }
  15959. .e_card_time {
  15960. width: 100%;
  15961. padding: 0 10px;
  15962. box-sizing: border-box;
  15963. font-size: 15px;
  15964. color: #c3c3c3;
  15965. margin-bottom: 10px;
  15966. }
  15967. .e_card_btn {
  15968. height: 40px;
  15969. display: flex;
  15970. align-items: center;
  15971. width: 100%;
  15972. background: rgb(244, 244, 244);
  15973. }
  15974. .e_card_btn:hover {
  15975. background: rgb(221 221 221);
  15976. }
  15977. .e_card_btn span {
  15978. flex: 1 1 auto;
  15979. text-align: center;
  15980. cursor: pointer;
  15981. }
  15982. .addEva {
  15983. border: 1px solid #ccc;
  15984. background: #fff;
  15985. margin-right: 20px;
  15986. width: 270px;
  15987. height: 149px;
  15988. display: flex;
  15989. flex-direction: column;
  15990. align-items: center;
  15991. border-radius: 5px;
  15992. margin-top: 10px;
  15993. text-align: center;
  15994. cursor: pointer;
  15995. justify-content: center;
  15996. }
  15997. .addEva>img {
  15998. width: 50px;
  15999. object-fit: cover;
  16000. }
  16001. .uploadFm {
  16002. border: 1px dashed #ccc;
  16003. width: 100%;
  16004. height: 140px;
  16005. position: relative;
  16006. cursor: pointer;
  16007. display: flex;
  16008. flex-direction: column;
  16009. justify-content: center;
  16010. align-items: center;
  16011. font-size: 14px;
  16012. color: #6e6e6e;
  16013. position: relative;
  16014. }
  16015. .cover_p {
  16016. width: 100% !important;
  16017. height: 100%;
  16018. object-fit: cover;
  16019. }
  16020. .uploadFm2:hover .cover_mask {
  16021. display: flex !important;
  16022. }
  16023. .cover_mask {
  16024. display: none;
  16025. width: 100%;
  16026. height: 100%;
  16027. position: absolute;
  16028. background: #00000054;
  16029. align-items: center;
  16030. justify-content: center;
  16031. flex-direction: column;
  16032. }
  16033. .cover_mask>img {
  16034. width: 30px;
  16035. }
  16036. .cover_mask>span {
  16037. color: #fff;
  16038. font-size: 12px;
  16039. }
  16040. .uploadFm>img {
  16041. width: 50px;
  16042. }
  16043. .fileCss {
  16044. width: 100%;
  16045. display: flex;
  16046. flex-direction: row;
  16047. flex-wrap: nowrap;
  16048. justify-content: space-around;
  16049. align-items: center;
  16050. padding-top: 15px;
  16051. }
  16052. .fileCss>div {
  16053. display: flex;
  16054. flex-direction: column;
  16055. align-items: center;
  16056. }
  16057. .fileCss .spanName {
  16058. margin-top: 10px;
  16059. }
  16060. .sysPicBox {
  16061. display: flex;
  16062. flex-direction: row;
  16063. flex-wrap: wrap;
  16064. align-content: flex-start;
  16065. height: 435px;
  16066. overflow: auto;
  16067. position: relative;
  16068. }
  16069. .picNone {
  16070. position: absolute;
  16071. left: 50%;
  16072. top: 45%;
  16073. transform: translate(-50%, -50%);
  16074. width: fit-content;
  16075. color: #9c9c9c;
  16076. }
  16077. .sysPic {
  16078. width: 200px;
  16079. height: 115px;
  16080. margin: 0 20px 20px 0;
  16081. cursor: pointer;
  16082. }
  16083. .sysPic>img,
  16084. .isSysPic>img,
  16085. .deletePic>img {
  16086. width: 100%;
  16087. height: 100%;
  16088. object-fit: cover;
  16089. }
  16090. .isSysPic {
  16091. width: 200px;
  16092. height: 115px;
  16093. position: relative;
  16094. }
  16095. .deletePic {
  16096. width: 20px;
  16097. height: 20px;
  16098. position: absolute;
  16099. top: 0;
  16100. right: 0;
  16101. cursor: pointer;
  16102. }
  16103. .select_box1 {
  16104. height: 100%;
  16105. }
  16106. .select_box1_img {
  16107. background: #fff;
  16108. border-radius: 5px;
  16109. padding: 15px;
  16110. box-sizing: border-box;
  16111. margin-bottom: 20px;
  16112. }
  16113. .select_box1_title {
  16114. padding: 0 0 15px 0;
  16115. border-bottom: 1px solid #eee;
  16116. margin-bottom: 15px;
  16117. }
  16118. .select_box1_title span:nth-child(1) {
  16119. font-size: 16px;
  16120. margin-right: 20px;
  16121. color: #000;
  16122. }
  16123. .select_box1_title span:nth-child(2) {
  16124. font-size: 14px;
  16125. color: rgb(112, 112, 112);
  16126. }
  16127. .select_box1_add_img {}
  16128. .select_box1_select {
  16129. background: #fff;
  16130. border-radius: 5px;
  16131. padding: 15px;
  16132. box-sizing: border-box;
  16133. height: calc(100% - 200px);
  16134. overflow: auto;
  16135. }
  16136. .select_box2 {
  16137. height: 100%;
  16138. }
  16139. .select_box2_title {
  16140. background: #fff;
  16141. border-radius: 5px;
  16142. padding: 5px 10px;
  16143. box-sizing: border-box;
  16144. margin-bottom: 10px;
  16145. }
  16146. .select_box2_box {
  16147. display: flex;
  16148. height: calc(100% - 30px);
  16149. }
  16150. .select_box2_img {
  16151. width: calc(100% - 310px);
  16152. height: 100%;
  16153. overflow: auto;
  16154. background: #fff;
  16155. border-radius: 5px;
  16156. }
  16157. .select_box2_img img {
  16158. width: 100%;
  16159. }
  16160. .select_box2_answer {
  16161. background: #fff;
  16162. margin-left: 10px;
  16163. border-radius: 5px;
  16164. width: 300px;
  16165. overflow: auto;
  16166. height: 100%;
  16167. display: flex;
  16168. flex-direction: column;
  16169. align-items: center;
  16170. padding-top: 10px;
  16171. box-sizing: border-box;
  16172. }
  16173. .select_box2_answer_box {
  16174. margin: 0 0 10px 0;
  16175. width: 85%;
  16176. }
  16177. .rate_textarea {
  16178. font: inherit;
  16179. color: currentColor;
  16180. width: 100%;
  16181. padding: 8px 14px;
  16182. display: block;
  16183. min-width: 0;
  16184. outline: none;
  16185. border: 1px solid rgba(0, 0, 0, 0.23);
  16186. border-radius: 4px;
  16187. box-sizing: border-box;
  16188. background: #fff;
  16189. margin: 0 20px 0 0;
  16190. resize: none;
  16191. }
  16192. .select_answer_title {
  16193. text-align: left;
  16194. width: 85%;
  16195. margin-bottom: 10px;
  16196. font-size: 18px;
  16197. color: #8e8e8e;
  16198. }
  16199. .mask {
  16200. background-color: rgb(0 0 0 / 30%);
  16201. /* position: fixed; */
  16202. position: absolute;
  16203. top: 0;
  16204. left: 0;
  16205. width: 100%;
  16206. height: 100%;
  16207. z-index: 90;
  16208. display: flex;
  16209. align-items: center;
  16210. justify-content: center;
  16211. }
  16212. .progressBox {
  16213. width: 300px;
  16214. height: 150px;
  16215. background: #fff;
  16216. border-radius: 10px;
  16217. box-shadow: 0 0 6px 1px #bfbfbf;
  16218. display: flex;
  16219. align-items: center;
  16220. justify-content: center;
  16221. flex-direction: column;
  16222. position: relative;
  16223. color: #6c6c6c;
  16224. }
  16225. .progressBox>>>.el-progress-bar__outer {
  16226. background-color: #d1dfff !important;
  16227. }
  16228. .progressBox .lbox {
  16229. height: 50px;
  16230. font-size: 19px;
  16231. display: flex;
  16232. align-items: center;
  16233. color: #747474;
  16234. }
  16235. .progressBox .lbox img {
  16236. width: 40px;
  16237. margin-right: 20px;
  16238. }
  16239. .closeCss {
  16240. position: absolute;
  16241. top: 8px;
  16242. right: 8px;
  16243. cursor: pointer;
  16244. width: 20px;
  16245. height: 20px;
  16246. }
  16247. .closeCss>img {
  16248. width: 100%;
  16249. height: 100%;
  16250. }
  16251. .updateTips::before {
  16252. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  16253. font-size: 14px;
  16254. margin-left: 20px;
  16255. font-weight: 400;
  16256. color: #ff3a3a;
  16257. margin-bottom: 10px;
  16258. display: block;
  16259. }
  16260. .updateMask {
  16261. width: 100%;
  16262. z-index: 3;
  16263. top: 0;
  16264. position: absolute;
  16265. /* background-color: rgba(0,0,0,.3); */
  16266. }
  16267. .t_j_box {
  16268. display: flex;
  16269. }
  16270. .t_j_box span:nth-child(1) {
  16271. width: 15%;
  16272. overflow: hidden;
  16273. margin-right: 10px;
  16274. text-overflow: ellipsis;
  16275. white-space: nowrap;
  16276. }
  16277. .t_j_box span:nth-child(2) {
  16278. width: 30%;
  16279. overflow: hidden;
  16280. text-overflow: ellipsis;
  16281. margin-right: 10px;
  16282. }
  16283. .t_j_box span:nth-child(3) {
  16284. max-width: calc(55% - 20px);
  16285. overflow: hidden;
  16286. text-overflow: ellipsis;
  16287. }
  16288. .sentenBox {
  16289. background: #fff;
  16290. height: 600px;
  16291. overflow: auto;
  16292. background-image: url("../../../assets/icon/conSentences/csBg.png");
  16293. background-position: 102%;
  16294. background-repeat: no-repeat;
  16295. background-size: 60%;
  16296. }
  16297. .sentenBox>.sentenContent {
  16298. padding-bottom: 10px;
  16299. width: 97%;
  16300. margin: 0 auto;
  16301. }
  16302. .sentenBox>.sentenContent+.sentenContent {
  16303. border-top: 1px solid #cbcbcb;
  16304. }
  16305. .addSen {
  16306. background: #409efe;
  16307. width: 90px;
  16308. color: #fff;
  16309. height: 35px;
  16310. text-align: center;
  16311. line-height: 35px;
  16312. border-radius: 5px;
  16313. float: right;
  16314. margin: 10px 20px 0 0;
  16315. cursor: pointer;
  16316. }
  16317. .sentenTop {
  16318. display: flex;
  16319. flex-direction: row;
  16320. flex-wrap: nowrap;
  16321. align-items: center;
  16322. }
  16323. .sentenTop::before {
  16324. content: attr(index);
  16325. background: #3681fc;
  16326. border-radius: 50%;
  16327. color: #fff;
  16328. width: 25px;
  16329. height: 25px;
  16330. min-width: 25px;
  16331. min-height: 25px;
  16332. text-align: center;
  16333. line-height: 25px;
  16334. margin-right: 5px;
  16335. }
  16336. .sentenTop>div:nth-child(2) {
  16337. width: 300px;
  16338. margin: 0 15px;
  16339. }
  16340. .sentenTop>div:nth-child(3) {
  16341. background: #409efe;
  16342. color: #fff;
  16343. width: 65px;
  16344. height: 35px;
  16345. text-align: center;
  16346. line-height: 35px;
  16347. border-radius: 5px;
  16348. cursor: pointer;
  16349. }
  16350. .cardList {
  16351. padding: 30px 0 20px 0;
  16352. display: flex;
  16353. flex-direction: row;
  16354. flex-wrap: wrap;
  16355. align-items: center;
  16356. box-sizing: border-box;
  16357. border-bottom: 1px solid #f4f4f4;
  16358. width: 98%;
  16359. margin: 0 auto;
  16360. }
  16361. .rightCardList {
  16362. display: flex;
  16363. flex-wrap: wrap;
  16364. }
  16365. .cardBox {
  16366. display: flex;
  16367. flex-direction: row;
  16368. flex-wrap: wrap;
  16369. align-items: center;
  16370. align-content: center;
  16371. }
  16372. .isCard,
  16373. .isCard1 {
  16374. width: auto;
  16375. padding: 0 20px;
  16376. height: 65px;
  16377. text-align: center;
  16378. line-height: 65px;
  16379. font-size: 14px;
  16380. cursor: pointer;
  16381. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  16382. background-size: 100% 100%;
  16383. position: relative;
  16384. z-index: 99;
  16385. }
  16386. .isCard1 {
  16387. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  16388. }
  16389. .isCard:hover .deleteWord {
  16390. display: block;
  16391. }
  16392. .isCard>div:nth-child(1),
  16393. .isCard1>div:nth-child(1) {
  16394. white-space: nowrap;
  16395. overflow: hidden;
  16396. text-overflow: ellipsis;
  16397. width: 100%;
  16398. margin: 0 auto;
  16399. }
  16400. .card {
  16401. width: 140px;
  16402. height: 65px;
  16403. }
  16404. .card>img {
  16405. width: 100%;
  16406. height: 100%;
  16407. }
  16408. .rightCardBox {
  16409. width: 98%;
  16410. margin: 10px auto 0;
  16411. }
  16412. .rightCardBox>div:nth-child(1) {
  16413. margin-bottom: 10px;
  16414. }
  16415. .cardCss {
  16416. display: flex;
  16417. flex-direction: column;
  16418. flex-wrap: nowrap;
  16419. align-items: center;
  16420. border-bottom: 3px solid #b4c3d3;
  16421. padding: 0 0 5px 0;
  16422. /* margin-right: 10px; */
  16423. }
  16424. .cardCss>div:nth-child(2) {
  16425. background: #5b7b9d;
  16426. color: #fff;
  16427. width: 20px;
  16428. height: 20px;
  16429. border-radius: 50%;
  16430. text-align: center;
  16431. line-height: 20px;
  16432. }
  16433. .sentenTopBox {
  16434. display: flex;
  16435. flex-direction: row;
  16436. flex-wrap: nowrap;
  16437. align-items: center;
  16438. justify-content: space-between;
  16439. padding: 55px 0 0 20px;
  16440. box-sizing: border-box;
  16441. width: 85%;
  16442. }
  16443. .rb_c_ai_box,
  16444. .stepsBottom {
  16445. width: 100%;
  16446. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  16447. /* background: #f7f7f7; */
  16448. border-radius: 10px;
  16449. overflow: hidden;
  16450. /* height: 100%; */
  16451. height: calc(100% - 55px);
  16452. }
  16453. .navTop {
  16454. background: #53749b;
  16455. color: #fff;
  16456. height: 40px;
  16457. line-height: 40px;
  16458. padding-left: 15px;
  16459. font-size: 18px;
  16460. }
  16461. .navBottom {
  16462. /* background: #6b91b7; */
  16463. height: 100%;
  16464. overflow: auto;
  16465. padding: 10px 0;
  16466. }
  16467. .navStage {
  16468. display: flex;
  16469. flex-direction: row;
  16470. flex-wrap: nowrap;
  16471. align-items: center;
  16472. padding: 10px 10px 10px 0;
  16473. cursor: pointer;
  16474. background: #ffffff;
  16475. width: 95%;
  16476. margin: 5px auto 5px;
  16477. box-sizing: border-box;
  16478. border-radius: 5px;
  16479. flex-wrap: wrap;
  16480. position: relative;
  16481. }
  16482. .navStage:hover>.chapter_upload_drag {
  16483. display: block;
  16484. }
  16485. .navTask:hover>.chapter_upload_drag {
  16486. display: block;
  16487. }
  16488. .chapter_upload:hover>.chapter_upload_drag {
  16489. display: block;
  16490. }
  16491. .navStage::before {
  16492. content: "";
  16493. display: block;
  16494. width: 16px;
  16495. height: 16px;
  16496. background-image: url(../../../assets/icon/new/icon_stage.png);
  16497. background-size: 100%;
  16498. margin-left: 25px;
  16499. }
  16500. .navStage .chapter_unit_open {
  16501. content: "";
  16502. display: block;
  16503. width: 16px;
  16504. height: 16px;
  16505. background-image: url(../../../assets/icon/new/down.png);
  16506. transform: rotate(-90deg);
  16507. background-size: 100%;
  16508. margin-left: 10px;
  16509. transition: all 0.5s;
  16510. }
  16511. .isNavStageOpen .chapter_unit_open {
  16512. transform: rotate(0deg);
  16513. }
  16514. .isNavStage {
  16515. background: #0061ff;
  16516. }
  16517. .isNavStage::before {
  16518. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  16519. }
  16520. .isNavStage .chapter_unit_open {
  16521. background-image: url(../../../assets/icon/new/downC.png);
  16522. }
  16523. .isNavStage .nt_taskName {
  16524. font-weight: bold !important;
  16525. color: #ffffff !important;
  16526. }
  16527. .isNavStage .nt_taskTitle {
  16528. font-weight: bold !important;
  16529. color: #fff !important;
  16530. }
  16531. .navStage .nt_taskBox {
  16532. width: calc(100% - 68px);
  16533. padding: 0 0 0 5px;
  16534. box-sizing: border-box;
  16535. box-sizing: border-box;
  16536. display: flex;
  16537. flex-direction: row;
  16538. flex-wrap: nowrap;
  16539. align-items: baseline;
  16540. }
  16541. .navStage .nt_taskTitle {
  16542. color: #060e17;
  16543. line-height: 25px;
  16544. font-size: 16px;
  16545. }
  16546. .navStage .nt_taskName {
  16547. max-width: calc(100% - 82px);
  16548. white-space: nowrap;
  16549. overflow: hidden;
  16550. text-overflow: ellipsis;
  16551. font-size: 16px;
  16552. color: #060e17;
  16553. }
  16554. .navTask {
  16555. display: flex;
  16556. flex-direction: row;
  16557. flex-wrap: nowrap;
  16558. align-items: center;
  16559. padding: 10px 10px 10px 0;
  16560. cursor: pointer;
  16561. background: #ffffff;
  16562. width: 95%;
  16563. margin: 5px auto 5px;
  16564. box-sizing: border-box;
  16565. border-radius: 5px;
  16566. flex-wrap: wrap;
  16567. position: relative;
  16568. }
  16569. .navTask .chapter_upload_open {
  16570. content: "";
  16571. display: block;
  16572. width: 16px;
  16573. height: 16px;
  16574. background-image: url(../../../assets/icon/new/icon_arrow.png);
  16575. background-size: 100%;
  16576. margin-left: 23px;
  16577. }
  16578. .noImage .chapter_upload_open {
  16579. display: none;
  16580. background-image: unset !important;
  16581. }
  16582. .isNavOpen .chapter_upload_open {
  16583. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  16584. transform: rotate(90deg);
  16585. }
  16586. .isNavTask .chapter_upload_open {
  16587. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  16588. transform: rotate(-90deg);
  16589. }
  16590. .isNavTask.isNavOpen .chapter_upload_open {
  16591. transform: rotate(0deg);
  16592. }
  16593. .dragOverTop {
  16594. border-top: 2px solid #0061ff !important;
  16595. border-radius: 0 !important;
  16596. margin-top: 10px;
  16597. }
  16598. .dragOverBottom {
  16599. border-bottom: 2px solid #0061ff !important;
  16600. border-radius: 0 !important;
  16601. margin-top: 10px;
  16602. }
  16603. .dragOverTop2 {
  16604. border-top: 2px solid #0061ff !important;
  16605. border-radius: 0 !important;
  16606. }
  16607. .dragOverBottom2 {
  16608. border-bottom: 2px solid #0061ff !important;
  16609. border-radius: 0 !important;
  16610. }
  16611. .isNavTask {
  16612. /* background: #3681FC; */
  16613. background: #eef3fb;
  16614. }
  16615. .isNavTask>.chapter_upload_drag {
  16616. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  16617. }
  16618. .isNavTask .nt_taskName {
  16619. /* color: #fff !important; */
  16620. font-weight: bold !important;
  16621. color: #0061ff !important;
  16622. }
  16623. .isNavTask .nt_taskTitle {
  16624. /* color: #AECCFE !important; */
  16625. font-weight: bold !important;
  16626. color: #0061ff !important;
  16627. }
  16628. .navTask .nt_taskBox {
  16629. width: calc(100% - 40px);
  16630. padding: 0 0 0 5px;
  16631. box-sizing: border-box;
  16632. box-sizing: border-box;
  16633. display: flex;
  16634. flex-direction: row;
  16635. flex-wrap: nowrap;
  16636. align-items: baseline;
  16637. }
  16638. .navTask .nt_taskTitle {
  16639. /* color: #717C8D; */
  16640. color: #060e17;
  16641. line-height: 25px;
  16642. font-size: 16px;
  16643. /* min-width: 66px; */
  16644. }
  16645. .navTask .nt_taskName {
  16646. /* color: #fff; */
  16647. /* max-width: 130px; */
  16648. /* width: 100%; */
  16649. max-width: calc(100% - 66px);
  16650. font-size: 16px;
  16651. color: #060e17;
  16652. /* color: #0E1E33; */
  16653. }
  16654. .navTask .nt_taskName span {
  16655. width: 100%;
  16656. white-space: nowrap;
  16657. overflow: hidden;
  16658. text-overflow: ellipsis;
  16659. display: block;
  16660. }
  16661. .gjBox {
  16662. width: calc(100% - 25px);
  16663. padding: 0 0 0 0;
  16664. box-sizing: border-box;
  16665. border-left: 1px solid #cad1dc;
  16666. margin-left: 25px;
  16667. }
  16668. .gjBox>div {
  16669. display: flex;
  16670. align-items: center;
  16671. }
  16672. .gjBox>div::before {
  16673. content: "";
  16674. height: 1px;
  16675. width: 10px;
  16676. background: #cad1dc;
  16677. display: block;
  16678. margin-right: 5px;
  16679. }
  16680. .gjCss {
  16681. display: flex;
  16682. flex-direction: row;
  16683. flex-wrap: nowrap;
  16684. align-items: center;
  16685. padding: 15px 0;
  16686. box-sizing: border-box;
  16687. font-size: 14px;
  16688. cursor: pointer;
  16689. }
  16690. .isGjCss {
  16691. color: #0061ff;
  16692. }
  16693. .groupBox {}
  16694. .groupContent+.groupContent {
  16695. margin-top: 30px;
  16696. }
  16697. .groupTitle {
  16698. font-size: 24px;
  16699. color: rgb(80, 80, 80);
  16700. margin-bottom: 20px;
  16701. }
  16702. .groupName {
  16703. display: flex;
  16704. align-items: center;
  16705. }
  16706. .groupn {
  16707. font-size: 15px;
  16708. margin-right: 10px;
  16709. }
  16710. .groupName+.groupName {
  16711. margin-top: 15px;
  16712. }
  16713. .groupBtn {
  16714. margin-left: 10px;
  16715. }
  16716. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  16717. text-align: left;
  16718. }
  16719. .radioBox>div {
  16720. margin: 10px 0 0 10px;
  16721. }
  16722. .radioBox>>>.el-radio__input,
  16723. .radioBox>>>.el-checkbox__inner {
  16724. margin-left: 10px;
  16725. }
  16726. .radioBox>>>.el-radio__label,
  16727. .radioBox>>>.el-checkbox__label {
  16728. display: flex;
  16729. align-items: center;
  16730. }
  16731. .inImg {
  16732. width: 50px;
  16733. }
  16734. .inImg>img {
  16735. width: 100%;
  16736. height: 100%;
  16737. object-fit: cover;
  16738. }
  16739. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  16740. height: auto;
  16741. padding: 10px;
  16742. margin: 0;
  16743. }
  16744. .upCss>>>.el-upload-list {
  16745. width: 100%;
  16746. }
  16747. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  16748. width: 100%;
  16749. height: 120px;
  16750. object-fit: contain;
  16751. background: unset;
  16752. margin-left: 0;
  16753. }
  16754. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  16755. display: none;
  16756. }
  16757. .tcMember+.tcMember::before {
  16758. content: "、";
  16759. }
  16760. .xzUpImg {
  16761. width: 25px;
  16762. height: 25px;
  16763. min-width: 25px;
  16764. min-height: 25px;
  16765. cursor: pointer;
  16766. margin: 0 10px;
  16767. }
  16768. .xzUpImg>img {
  16769. width: 100%;
  16770. height: 100%;
  16771. }
  16772. .closeCss {
  16773. position: absolute;
  16774. top: 8px;
  16775. right: 8px;
  16776. cursor: pointer;
  16777. width: 20px;
  16778. height: 20px;
  16779. }
  16780. .closeCss>img {
  16781. width: 100%;
  16782. height: 100%;
  16783. }
  16784. .moveBtn {
  16785. display: flex;
  16786. flex-direction: row;
  16787. flex-wrap: nowrap;
  16788. align-items: center;
  16789. width: 55px;
  16790. }
  16791. .timuUpImg {
  16792. display: flex;
  16793. flex-direction: row;
  16794. align-items: center;
  16795. width: 100%;
  16796. margin-right: 10px;
  16797. }
  16798. .timuUpImg>div:nth-child(1) {
  16799. margin-right: 10px;
  16800. display: flex;
  16801. align-items: center;
  16802. width: 100%;
  16803. }
  16804. .timuImgBox {
  16805. margin: 10px 0;
  16806. display: flex;
  16807. flex-direction: column;
  16808. flex-wrap: wrap;
  16809. align-items: flex-start;
  16810. }
  16811. .timuImg {
  16812. width: 100px;
  16813. margin: 5px 0;
  16814. cursor: pointer;
  16815. position: relative;
  16816. }
  16817. .timuImg:hover .deleteWord {
  16818. display: block;
  16819. }
  16820. .deleteWord {
  16821. width: 25px;
  16822. height: 25px;
  16823. position: absolute;
  16824. right: -5px;
  16825. top: -5px;
  16826. cursor: pointer;
  16827. display: none;
  16828. }
  16829. .timuImg>img,
  16830. .deleteWord>img {
  16831. width: 100%;
  16832. height: 100%;
  16833. object-fit: cover;
  16834. }
  16835. .e_add_delete {
  16836. cursor: pointer;
  16837. margin-left: 10px;
  16838. }
  16839. .pType_box {
  16840. margin-top: 30px;
  16841. align-items: flex-end;
  16842. }
  16843. .noneBox {
  16844. height: 200px;
  16845. width: 100%;
  16846. display: flex;
  16847. align-items: center;
  16848. justify-content: center;
  16849. flex-direction: column;
  16850. /* margin-top: 150px; */
  16851. }
  16852. .noneBox>img {
  16853. width: 95px;
  16854. }
  16855. .noneBox>span {
  16856. margin-top: 10px;
  16857. color: #717c8d;
  16858. }
  16859. .rb_c_box {
  16860. width: 100%;
  16861. height: 100%;
  16862. display: flex;
  16863. /* padding: 20px; */
  16864. box-sizing: border-box;
  16865. justify-content: space-between;
  16866. }
  16867. .rb_c_box_left {
  16868. height: 100%;
  16869. background: #fff;
  16870. width: 270px;
  16871. min-width: 270px;
  16872. border-radius: 8px;
  16873. margin-right: 10px;
  16874. }
  16875. .rb_c_box_right {
  16876. height: 100%;
  16877. width: calc(100%);
  16878. overflow: hidden;
  16879. }
  16880. .rb_c_box_btn {
  16881. display: flex;
  16882. justify-content: flex-start;
  16883. height: 50px;
  16884. align-items: center;
  16885. }
  16886. .rb_c_box_right>.basic_box {
  16887. /* background: #fff; */
  16888. border-radius: 0;
  16889. height: calc(100% - 0px);
  16890. overflow: auto;
  16891. padding: 0;
  16892. }
  16893. .textarea_css {
  16894. display: block;
  16895. resize: none;
  16896. padding: 10px 15px;
  16897. line-height: 1.5;
  16898. box-sizing: border-box;
  16899. width: 100%;
  16900. font-size: 14px;
  16901. color: #606266;
  16902. background-color: #fff;
  16903. background-image: none;
  16904. border: 1px solid #dcdfe6;
  16905. border-radius: 4px;
  16906. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  16907. outline: none;
  16908. overflow: hidden;
  16909. height: 46px;
  16910. font-family: "Microsoft YaHei";
  16911. }
  16912. .textarea_css::-webkit-input-placeholder {
  16913. color: #c0c4cc;
  16914. }
  16915. .textarea_css:focus {
  16916. border-color: #409eff;
  16917. outline: 0;
  16918. }
  16919. .addEditor>>>.text {
  16920. height: auto;
  16921. min-height: 100px;
  16922. }
  16923. .addEditor>>>.w-e-text-container {
  16924. min-height: 100px;
  16925. }
  16926. .moveBtn2 {
  16927. flex-direction: column;
  16928. width: fit-content;
  16929. margin: 0 10px 0 10px;
  16930. }
  16931. .moveBtn2 .chapter_upload_down,
  16932. .moveBtn2 .chapter_upload_up {
  16933. width: 16px;
  16934. height: 16px;
  16935. }
  16936. .moveBtn2 .chapter_upload_up::after,
  16937. .moveBtn2 .chapter_upload_down::after {
  16938. width: 10px;
  16939. height: 10px;
  16940. }
  16941. .fullStyle>>>.el-dialog__body {
  16942. height: calc(100% - 125px) !important;
  16943. box-sizing: border-box;
  16944. }
  16945. .fullStyle1>>>.el-dialog__body {
  16946. height: auto !important;
  16947. }
  16948. .fullStyle>>>.el-dialog {
  16949. width: 100% !important;
  16950. max-width: 100% !important;
  16951. height: 100% !important;
  16952. margin: 0 !important;
  16953. }
  16954. .fullStyle {
  16955. width: 100% !important;
  16956. max-width: 100% !important;
  16957. height: 100% !important;
  16958. margin: 0 auto !important;
  16959. }
  16960. .wb_j_box_btn {
  16961. width: calc(100% - 30px);
  16962. display: flex;
  16963. height: 40px;
  16964. border: 1.5px solid #cad1dc;
  16965. border-radius: 4px;
  16966. box-sizing: border-box;
  16967. align-items: center;
  16968. font-size: 14px;
  16969. cursor: pointer;
  16970. overflow: hidden;
  16971. }
  16972. .wb_j_box_btn:hover {
  16973. border: 1.5px solid #0061ff;
  16974. }
  16975. .wb_j_box_title {
  16976. background: #f0f4fa;
  16977. height: 100%;
  16978. line-height: 40px;
  16979. width: 90px;
  16980. text-align: center;
  16981. color: #060e17;
  16982. border-right: 1.5px solid #cad1dc;
  16983. box-sizing: border-box;
  16984. }
  16985. .wb_j_box_btn_c {
  16986. width: calc(100% - 90px);
  16987. padding: 0 35px 0 10px;
  16988. box-sizing: border-box;
  16989. position: relative;
  16990. }
  16991. .wb_j_box_span {
  16992. width: 100%;
  16993. overflow: hidden;
  16994. white-space: nowrap;
  16995. text-overflow: ellipsis;
  16996. word-wrap: break-word;
  16997. color: #717c8d;
  16998. }
  16999. .wb_j_box_arrow {
  17000. content: "";
  17001. width: 14px;
  17002. height: 14px;
  17003. background: url(../../../assets/icon/new/u_arrow.png);
  17004. background-size: 100% 100%;
  17005. position: absolute;
  17006. right: 12px;
  17007. top: 50%;
  17008. transform: translateY(-50%);
  17009. }
  17010. .check_classBox {
  17011. height: 400px;
  17012. display: flex;
  17013. border-top: 1.5px solid #e7ebf1;
  17014. border-bottom: 1.5px solid #e7ebf1;
  17015. }
  17016. .check_class_right {
  17017. width: 130px;
  17018. border-right: 1px solid #e7ebf1;
  17019. display: flex;
  17020. align-items: center;
  17021. flex-direction: column;
  17022. height: 100%;
  17023. overflow: auto;
  17024. padding: 15px 0;
  17025. box-sizing: border-box;
  17026. }
  17027. .check_class {
  17028. width: 85%;
  17029. border-radius: 5px;
  17030. height: 30px;
  17031. min-height: 30px;
  17032. line-height: 30px;
  17033. text-align: center;
  17034. padding: 0 10px;
  17035. box-sizing: border-box;
  17036. cursor: pointer;
  17037. white-space: nowrap;
  17038. overflow: hidden;
  17039. text-overflow: ellipsis;
  17040. }
  17041. .check_class.activeX {
  17042. background: #e0eafb;
  17043. color: #3681fc;
  17044. font-weight: 700;
  17045. }
  17046. .check_class+.check_class {
  17047. margin-top: 15px;
  17048. }
  17049. .check_class_left {
  17050. background: #fafafa;
  17051. width: calc(100% - 130px);
  17052. padding: 15px;
  17053. box-sizing: border-box;
  17054. }
  17055. .check_class_all_box {
  17056. display: flex;
  17057. margin-bottom: 10px;
  17058. }
  17059. .all_check {
  17060. display: flex;
  17061. align-items: center;
  17062. padding: 2px 0 0;
  17063. margin-left: 10px;
  17064. }
  17065. .all_check>>>.el-checkbox__label {
  17066. line-height: 18px;
  17067. }
  17068. .check_class_left_title {
  17069. font-size: 16px;
  17070. font-weight: 700;
  17071. }
  17072. .check_class_item {
  17073. display: flex;
  17074. flex-wrap: wrap;
  17075. height: calc(100% - 45px);
  17076. overflow: auto;
  17077. justify-content: flex-start;
  17078. align-items: flex-start;
  17079. align-content: flex-start;
  17080. }
  17081. .class_item:first-child {
  17082. /* margin: 0 15px 15px 67px; */
  17083. }
  17084. .class_item {
  17085. margin: 0 15px 15px 0;
  17086. }
  17087. .class_item:hover>>>.el-checkbox__label {
  17088. color: #409eff;
  17089. }
  17090. .class_item>>>.el-checkbox__label {
  17091. color: #0e1e33;
  17092. }
  17093. .class_item:hover>>>.el-checkbox__inner {
  17094. border-color: #409eff;
  17095. }
  17096. .class_item>>>.el-checkbox,
  17097. .class_item>>>.el-checkbox__input {
  17098. display: flex;
  17099. align-items: center;
  17100. }
  17101. .taskTitle {
  17102. font-size: 20px;
  17103. font-weight: bold;
  17104. margin-bottom: 35px;
  17105. }
  17106. .taskTitle:after {
  17107. content: "";
  17108. width: 100%;
  17109. display: block;
  17110. height: 1px;
  17111. background: #cad1dc;
  17112. position: absolute;
  17113. left: 0;
  17114. margin: 15px 0 0;
  17115. }
  17116. .eva_btn_box {
  17117. margin: 20px 0px 0 0;
  17118. display: flex;
  17119. flex-direction: row;
  17120. flex-wrap: nowrap;
  17121. align-items: center;
  17122. justify-content: space-between;
  17123. width: 100%;
  17124. }
  17125. .eva_btn_left_box {
  17126. display: flex;
  17127. flex-direction: row;
  17128. flex-wrap: nowrap;
  17129. align-items: center;
  17130. }
  17131. .addTypeChoose {
  17132. display: flex;
  17133. flex-direction: row;
  17134. flex-wrap: nowrap;
  17135. align-items: center;
  17136. margin: 15px 0;
  17137. }
  17138. .addTypeBox {
  17139. display: flex;
  17140. flex-direction: column;
  17141. flex-wrap: nowrap;
  17142. align-items: center;
  17143. }
  17144. .addTypeChoose {
  17145. display: flex;
  17146. flex-direction: row;
  17147. flex-wrap: nowrap;
  17148. align-items: center;
  17149. margin: 15px 0;
  17150. }
  17151. .buchong_box {
  17152. background: #E0EAFB66;
  17153. width: calc(100% - 20px);
  17154. min-height: 50px;
  17155. display: flex;
  17156. align-items: center;
  17157. justify-content: center;
  17158. margin: 0 auto;
  17159. }
  17160. .outline {
  17161. width: calc(100% - 40px);
  17162. margin: 0 auto;
  17163. }
  17164. .task_outline {
  17165. width: calc(100% - 40px);
  17166. margin: 0 auto;
  17167. }
  17168. .outline_box+.outline_box {
  17169. margin: 30px 0 0px;
  17170. }
  17171. .outline_task {
  17172. display: flex;
  17173. align-items: center;
  17174. margin-bottom: 10px;
  17175. }
  17176. .outline_task .title {
  17177. font-size: 18px;
  17178. font-weight: bold;
  17179. min-width: 80px;
  17180. }
  17181. .op_task_box,
  17182. .op_tool_box,
  17183. .outline_detail {
  17184. position: relative;
  17185. }
  17186. .op_task_box:hover .op_box,
  17187. .op_tool_box:hover .op_box,
  17188. .outline_detail:hover .op_box {
  17189. display: flex
  17190. }
  17191. .op_box {
  17192. position: absolute;
  17193. bottom: 10px;
  17194. display: none;
  17195. align-items: center;
  17196. justify-content: space-between;
  17197. width: calc(100% - 20px);
  17198. left: 50%;
  17199. transform: translateX(-50%);
  17200. }
  17201. .op_box .op_remark {
  17202. color: #8E8E8E;
  17203. font-size: 14px;
  17204. }
  17205. .rb_c_nav {
  17206. width: calc(100% - 20px);
  17207. margin: 15px auto 0;
  17208. font-size: 18px;
  17209. }
  17210. .rb_c_nav span {
  17211. cursor: pointer;
  17212. }
  17213. .rb_c_nav span+span {
  17214. margin-left: 10px;
  17215. }
  17216. .rb_c_nav span.active {
  17217. color: #0061FF
  17218. }
  17219. .text_panel>>>.text {
  17220. height: 400px;
  17221. }
  17222. </style>