addCourse.vue 447 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  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. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择课程模版</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择课程模版</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传课程内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传课程内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../assets/icon/new/course.png" /></div>
  100. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  103. style="justify-content: center;width: 200px;"></el-switch>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  108. <span>类型</span>
  109. <!-- 学科+ 主题+ 未来+ -->
  110. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  111. style="display: flex; align-items: center">
  112. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  113. <el-radio :label="item.name">{{
  114. item.name
  115. }}</el-radio>
  116. </div>
  117. </el-radio-group>
  118. </div>
  119. <div class="both">
  120. <div class="choose">
  121. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  122. <span v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">{{ item.name }}:</span>
  127. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  128. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  129. ? pTypeCheck.indexOf(item.id) != -1
  130. : true)
  131. ">
  132. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  133. item1.name }}</el-checkbox>
  134. </el-checkbox-group>
  135. <!-- <div
  136. v-else
  137. style="font-size: 14px; margin-left: -8px"
  138. >
  139. 暂无
  140. </div> -->
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="right_first">
  146. <!-- <div class="ai_box">
  147. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  148. </div> -->
  149. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  150. <div style="width: 100%;">
  151. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  152. <img src="../../assets/icon/addPoster.png" alt="" />
  153. <div>点击添加封面</div>
  154. </div>
  155. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  156. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  157. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  158. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  159. <i class="el-icon-plus"></i>
  160. </el-upload>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  168. <div class="whiteBg" style="border-radius: 0">
  169. <div class="c_info_title">课程权限设置</div>
  170. <div class="wb_j_box">
  171. <div class="wb_j_box_content">
  172. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  173. (dialogVisibleClass = true),
  174. (classSearch = ''),
  175. (gradeId = ''),
  176. getClass()
  177. ">添加班级</button>
  178. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  179. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  180. getClassC(tc) }}</span>
  181. </div> -->
  182. <div class="wb_j_box_btn" @click="
  183. (dialogVisibleClass = true),
  184. (classSearch = ''),
  185. (gradeId = ''),
  186. getClass()
  187. ">
  188. <div class="wb_j_box_title">授课班级</div>
  189. <div class="wb_j_box_btn_c">
  190. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  191. v-if="checkboxList2.length" popper-class="text_tooltip2">
  192. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  193. </el-tooltip>
  194. <div v-else class="wb_j_box_span">请选择授课班级</div>
  195. <div class="wb_j_box_arrow"></div>
  196. </div>
  197. </div>
  198. </div>
  199. <div class="wb_j_box_content">
  200. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  201. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  202. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  203. checkBoolean
  204. ? checkboxList3
  205. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  206. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  207. </div> -->
  208. <div class="wb_j_box_btn" @click="openMember">
  209. <div class="wb_j_box_title">协同人员</div>
  210. <div class="wb_j_box_btn_c">
  211. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  212. v-if="checkboxList3.length" popper-class="text_tooltip2">
  213. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  214. </el-tooltip>
  215. <div v-else class="wb_j_box_span">请选择协同人员</div>
  216. <div class="wb_j_box_arrow"></div>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  223. <div class="c_info_title">课程简要描述</div>
  224. <div style="width: 95%; padding: 0 0px 0 20px">
  225. <div style="width: 55%">
  226. <textarea rows="6" class="binfo_input binfo_textarea" cols v-model="courseText" placeholder="请输入课程简要描述"></textarea>
  227. </div>
  228. </div>
  229. </div>
  230. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  231. <div class="c_info_title">目标管理</div>
  232. <div style="margin: 0 auto;padding:0 20px">
  233. <div style="
  234. width: 95%;
  235. min-height: 200px;
  236. border: 1px solid #CAD1DC;
  237. border-radius: 4px;
  238. position: relative;
  239. ">
  240. <div class="e_add_top">
  241. <div class="e_add_title">
  242. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  243. v-if="evalua">清除</button>
  244. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  245. <!-- <span>当前使用目标管理</span>
  246. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  247. <img
  248. src="../../assets/line.png"
  249. class="cru_line"
  250. style="
  251. width: 125px;
  252. height: 20px;
  253. bottom: -10px;
  254. left: 155px;
  255. "
  256. /> -->
  257. </div>
  258. <div style="
  259. display: flex;
  260. flex-direction: row;
  261. align-items: center;
  262. ">
  263. <!-- <el-button
  264. type="primary"
  265. size="small"
  266. @click="dialogVisiblemb = true"
  267. >添加目标管理</el-button
  268. >
  269. <el-button
  270. type="primary"
  271. size="small"
  272. @click="deleteEva()"
  273. >清除内容</el-button
  274. > -->
  275. <!-- <div class="e_add_delete" @click="deleteEva()">
  276. <img src="../../assets/icon/delete.png" alt="" />
  277. </div> -->
  278. </div>
  279. </div>
  280. <div v-if="evalua == ''">
  281. <div class="noneBox">
  282. <img src="../../assets/icon/new/eva_none.png" />
  283. <span>请添加目标管理</span>
  284. </div>
  285. </div>
  286. <div class="e_add_content" v-else>
  287. <div class="e_add_list_pbox">
  288. <div class="e_add_list_pbox_title">
  289. <span class="type_title">切换模式</span>
  290. <div class="type_content">
  291. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  292. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  293. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  294. </div>
  295. </div>
  296. <div class="e_add_list_pbox_content">
  297. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  298. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  299. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  300. v-if="typeMode == 3">
  301. </SeeBoard>
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. <div class="info_btnBox3">
  310. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  311. goTo(
  312. '/course?userid=' +
  313. userid +
  314. '&oid=' +
  315. oid +
  316. '&org=' +
  317. org +
  318. '&role=' +
  319. role
  320. )
  321. ">
  322. 返回课程
  323. </button>
  324. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  325. {{ steps == 4 ? "返回课程" : "上一步" }}
  326. </button>
  327. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  328. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  329. {{ steps == 3 ? "确认上传" : "下一步" }}
  330. </button>
  331. </div>
  332. </div>
  333. <div class="rightBox" v-if="this.steps == 2"
  334. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  335. <div class="basic_box"
  336. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  337. <!-- <div
  338. style="
  339. color: #b8b8b8;
  340. background: #fff;
  341. width: 26%;
  342. height: 40px;
  343. border-radius: 15px;
  344. padding-left: 20px;
  345. line-height: 40px;
  346. font-size: 17px;
  347. box-shadow: 0px 1px 2px 2px #e0e0e0;
  348. "
  349. >-->
  350. <div class="right_title" style="border: none; margin: 0; padding: 0">
  351. 请选择合适的课程模板
  352. </div>
  353. <div class="wordbox">
  354. <div class="wordTeacher" @click="checkTemplate2()">
  355. <div class="wordPic">
  356. <img src="../../assets/icon/new/template_none.png" alt />
  357. </div>
  358. <div style="
  359. margin-top: 10px;
  360. line-height: 19px;
  361. overflow: hidden;
  362. text-overflow: ellipsis;
  363. white-space: nowrap;
  364. padding: 0 20px;
  365. ">
  366. 空白模板
  367. </div>
  368. </div>
  369. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  370. <div class="wordPic">
  371. <img src="../../assets/icon/new/template.png" alt />
  372. </div>
  373. <div style="
  374. margin-top: 10px;
  375. line-height: 19px;
  376. overflow: hidden;
  377. text-overflow: ellipsis;
  378. white-space: nowrap;
  379. padding: 0 20px;
  380. ">
  381. {{ aa.title }}
  382. </div>
  383. </div>
  384. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  385. <div class="wordPic">
  386. <img src="../../assets/icon/new/template.png" alt />
  387. </div>
  388. <div style="
  389. margin-top: 10px;
  390. line-height: 19px;
  391. overflow: hidden;
  392. text-overflow: ellipsis;
  393. white-space: nowrap;
  394. padding: 0 20px;
  395. ">
  396. 简易模板
  397. </div>
  398. </div>
  399. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  400. <div class="wordPic">
  401. <img src="../../assets/icon/new/template.png" alt />
  402. </div>
  403. <div style="
  404. margin-top: 10px;
  405. line-height: 19px;
  406. overflow: hidden;
  407. text-overflow: ellipsis;
  408. white-space: nowrap;
  409. padding: 0 20px;
  410. ">
  411. 智能粘贴模式
  412. </div>
  413. </div>
  414. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  415. <div class="wordPic">
  416. <img src="../../assets/icon/wordMub.png" alt />
  417. </div>
  418. <div style="
  419. margin-top: 10px;
  420. line-height: 19px;
  421. overflow: hidden;
  422. text-overflow: ellipsis;
  423. white-space: nowrap;
  424. padding: 0 20px;
  425. ">
  426. 未来小学课程设计
  427. </div>
  428. </div> -->
  429. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  430. <div class="wordPic">
  431. <img src="../../assets/icon/wordMub.png" alt />
  432. </div>
  433. <div style="
  434. margin-top: 10px;
  435. line-height: 19px;
  436. overflow: hidden;
  437. text-overflow: ellipsis;
  438. white-space: nowrap;
  439. padding: 0 20px;
  440. ">
  441. 我的课程
  442. </div>
  443. </div> -->
  444. </div>
  445. </div>
  446. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  447. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  448. goTo(
  449. '/course?userid=' +
  450. userid +
  451. '&oid=' +
  452. oid +
  453. '&org=' +
  454. org +
  455. '&role=' +
  456. role
  457. )
  458. ">
  459. 返回课程
  460. </button>
  461. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  462. {{ steps == 4 ? "返回课程" : "上一步" }}
  463. </button>
  464. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  465. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  466. {{ steps == 3 ? "确认上传" : "下一步" }}
  467. </button>
  468. </div>
  469. </div>
  470. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  471. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  472. <div class="rb_c_box">
  473. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  474. <div class="stepsBottom">
  475. <!-- <div class="navTop">辅助导航</div> -->
  476. <div class="navBottom">
  477. <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  478. <div class="nt_taskBox" style="width: 100%;">
  479. <div class="nt_taskTitle"
  480. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  481. unitIndex + 1 }}</div>
  482. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  483. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  484. <span>{{ unitJson[unitIndex].dyName }}</span>
  485. </el-tooltip>
  486. </div>
  487. </div>
  488. </div>
  489. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  490. .taskJson" :key="tIndex">
  491. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  492. @dragend="dragTaskEnd()" draggable @click="goToTask(tIndex)" class="navTask" :class="{
  493. isNavTask:
  494. isClickColor > 0 && isClickColor == tIndex + 1,
  495. isNavOpen: t.toolOpen
  496. }">
  497. <div
  498. style="left: 8px;"
  499. class="chapter_upload_drag"
  500. ></div>
  501. <div class="nt_taskBox">
  502. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  503. <div class="nt_taskName">
  504. <el-tooltip effect="light" :content="t.task" placement="top">
  505. <span>{{ t.task }}</span>
  506. </el-tooltip>
  507. </div>
  508. </div>
  509. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  510. 1
  511. ">
  512. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  513. @click.stop="taskMove(1, tIndex)"></div>
  514. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  515. @click.stop="taskMove(2, tIndex)"></div>
  516. </div> -->
  517. </div>
  518. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  519. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  520. @click="jumpGj(tIndex, toolIndex2)">
  521. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  522. <div>工具{{ toolIndex2 + 1 }}:</div>
  523. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  524. </div>
  525. </div>
  526. </div>
  527. </div>
  528. </div>
  529. </div>
  530. </div>
  531. <div class="rb_c_box_right">
  532. <!-- <div class="rb_c_box_btn">
  533. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  534. </div> -->
  535. <div class="basic_box" ref="unitBox">
  536. <div style="
  537. display: flex;
  538. flex-direction: row;
  539. align-items: center;
  540. position: sticky;
  541. top: 0;
  542. z-index: 99;
  543. width: 100%;
  544. padding: 0 20px 0 20px;
  545. box-sizing: border-box;
  546. background: #fff;
  547. border-radius: 8px;
  548. ">
  549. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  550. <div class="cru_selectBox"
  551. :style="{ maxWidth: isPasteTask ? 'calc(100% - 175px)' : 'calc(100% - 40px)' }">
  552. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  553. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  554. <!-- item.dyName ? item.dyName : -->
  555. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  556. unitJson[unitJson.length - 1].easy == 6
  557. ">{{
  558. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  559. }}</span>
  560. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  561. </div>
  562. <div class="cru_line" :style="{
  563. left: offsetLetfPx + 'px',
  564. }"></div>
  565. </div>
  566. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  567. !(unitJson[unitJson.length - 1].easy == 6)
  568. ">
  569. <img src="../../assets/icon/new/addStage.png" alt />
  570. </div>
  571. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  572. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  573. style="margin: 0 0 0 auto;">阶段顺序</button>
  574. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask"
  575. style="margin: 0 0 0 auto;">智能粘贴</button>
  576. </div>
  577. <div style="margin: 0 0 10px 0; padding: 0;" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  578. :key="index">
  579. <div class="chapter_box">
  580. <div class="chapter_contentbox">
  581. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  582. <div class="cc_input">
  583. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  584. v-model="unitJson[unitIndex].dyName" />
  585. </div>
  586. <div class="remove" v-if="unitJson.length > 1 &&
  587. !(unitJson[unitJson.length - 1].easy == 4) &&
  588. !(unitJson[unitJson.length - 1].easy == 6)
  589. " @click="deleteUnit(unitIndex)"></div>
  590. </div>
  591. </div>
  592. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  593. margin: 50px 0px 10px;
  594. font-size: 1.5em;
  595. font-weight: 700;
  596. color: #0f7eff;
  597. ">
  598. 添加任务
  599. </div> -->
  600. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  601. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  602. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  603. <div style="background: #fff;border-radius: 5px;">
  604. <!-- padding: 20px; -->
  605. <div v-if="unitJson[unitIndex].easy != 1">
  606. <div :style="{
  607. marginBottom:
  608. unitJson[unitIndex].easy == 3 ||
  609. (unitJson[unitIndex].easy == 5 &&
  610. itemTask.taskType == 1)
  611. ? '75px'
  612. : '0',
  613. }">
  614. <div style="
  615. display: flex;
  616. margin: 0px 0 20px;
  617. flex-direction: row;
  618. justify-content: flex-start;
  619. align-items: center;
  620. ">
  621. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  622. </div>
  623. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  624. flex-direction: row;
  625. justify-content: flex-start;
  626. align-items: center;
  627. margin:0;
  628. ">
  629. <!-- <div class="cc_title">
  630. 任务{{ itemTaskIndex + 1 }}
  631. </div> -->
  632. <div class="cc_input">
  633. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  634. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  635. itemTaskIndex
  636. ].task
  637. " />
  638. </div>
  639. <div class="remove" v-if="item.taskJson.length > 1 &&
  640. (!unitJson[unitIndex].easy ||
  641. unitJson[unitIndex].easy == 6)
  642. " @click="deleteTask(itemTaskIndex)"></div>
  643. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
  644. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  645. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  646. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  647. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  648. </div>
  649. </div>
  650. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  651. display: flex;
  652. margin: 20px 0;
  653. flex-direction: row;
  654. justify-content: flex-start;
  655. align-items: center;
  656. ">
  657. <div class="lineTitle">任务描述</div>
  658. </div> -->
  659. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
  660. style="margin-top: 20px;">
  661. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  662. itemTaskIndex
  663. ].taskDetail
  664. " @change="change"></editor-bar>
  665. <!-- <textarea
  666. rows="6"
  667. class="binfo_input"
  668. placeholder="请输入任务描述"
  669. cols
  670. style="width: 70.5% !important; height: 120px"
  671. v-model="
  672. unitJson[unitIndex].chapterInfo[0].taskJson[
  673. itemTaskIndex
  674. ].taskDetail
  675. "
  676. ></textarea>-->
  677. </div>
  678. </div>
  679. </div>
  680. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  681. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  682. ">
  683. <div style="
  684. display: flex;
  685. flex-direction: row;
  686. justify-content: space-between;
  687. align-items: center;
  688. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0 10px' : '20px 0 0' }">
  689. <div style="margin-bottom:10px" class="lineTitle">学习内容</div>
  690. <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  691. @click="foldC(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  692. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  693. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  694. <!-- <div class="line"></div> -->
  695. </div>
  696. <div v-if="!itemTask.isFoldchapter">
  697. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  698. itemTask.chapterData.length == 0
  699. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  700. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  701. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1)"
  702. @dragend="dragEnd()" draggable class="chapter_upload"
  703. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  704. getChapterData(
  705. $event,
  706. unitIndex,
  707. index,
  708. index1,
  709. item1.type
  710. )
  711. ">
  712. <div class="chapter_upload_drag"></div>
  713. <div class="chapter_upload_o" style="
  714. position: relative;
  715. display: flex;
  716. align-items: center;
  717. ">
  718. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  719. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  720. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  721. </div>
  722. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  723. </div>
  724. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  725. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  726. </div>
  727. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  728. </div>
  729. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  730. </div>
  731. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  732. </div>
  733. </div>
  734. <div class="chapter_upload_n">
  735. <input readonly="true" v-if="item1.type == 2 ||
  736. item1.type == 3 ||
  737. item1.type == 12 ||
  738. item1.type == 13 ||
  739. item1.type == 7
  740. " :placeholder="item1.name" @click="
  741. updataVideoT(
  742. $event,
  743. unitIndex,
  744. itemTaskIndex,
  745. index1
  746. )
  747. " style="
  748. border: none;
  749. outline: none;
  750. width: 80%;
  751. minwidth: 215px;
  752. z-index: 99;
  753. font-size: 14px;
  754. white-space: nowrap;
  755. overflow: hidden;
  756. text-overflow: ellipsis;
  757. " />
  758. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  759. border: none;
  760. outline: none;
  761. width: 80%;
  762. white-space: nowrap;
  763. overflow: hidden;
  764. text-overflow: ellipsis;
  765. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  766. <input :placeholder="item1.title ? item1.title : '链接'
  767. " v-if="item1.type == 8" style="
  768. border: none;
  769. outline: none;
  770. width: 80%;
  771. white-space: nowrap;
  772. overflow: hidden;
  773. text-overflow: ellipsis;
  774. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  775. <input :placeholder="item1.title ? item1.title : '链接'
  776. " v-if="item1.type == 14" style="
  777. border: none;
  778. outline: none;
  779. width: 80%;
  780. white-space: nowrap;
  781. overflow: hidden;
  782. text-overflow: ellipsis;
  783. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  784. </div>
  785. <div class="chapter_upload_ic">
  786. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  787. </div>
  788. <div class="chapter_upload_ud" style="z-index: 99">
  789. <div class="chapter_upload_up" @click="
  790. upCd(
  791. $event,
  792. unitIndex,
  793. index,
  794. itemTaskIndex,
  795. index1
  796. )
  797. "></div>
  798. <div class="chapter_upload_down" @click="
  799. downCd(
  800. $event,
  801. unitIndex,
  802. index,
  803. itemTaskIndex,
  804. index1
  805. )
  806. "></div>
  807. </div>
  808. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  809. item1.type == 3 ||
  810. item1.type == 12 ||
  811. item1.type == 13 ||
  812. item1.type == 7
  813. " @click.stop="
  814. updataVideoT(
  815. $event,
  816. unitIndex,
  817. itemTaskIndex,
  818. index1
  819. )
  820. ">
  821. <div></div>
  822. </div>
  823. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  824. @click="selectAttText(itemTaskIndex, index1)">
  825. <div></div>
  826. </div>
  827. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  828. @click="selectLine(itemTaskIndex, index1)">
  829. <div></div>
  830. </div>
  831. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  832. @click="openUpdateSource(itemTaskIndex, index1)">
  833. <div></div>
  834. </div>
  835. <div class="chapter_upload_ic_r" @click.stop="
  836. deleteChapterData(
  837. $event,
  838. unitIndex,
  839. index,
  840. index1,
  841. itemTaskIndex
  842. )
  843. ">
  844. <div></div>
  845. </div>
  846. </div>
  847. </div>
  848. </div>
  849. </div>
  850. </div>
  851. <div class="add_info_box" style="margin: 10px 0 0" v-if="!itemTask.isFoldchapter">
  852. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  853. 文件
  854. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  855. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  856. " />
  857. </button>
  858. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  859. 图文
  860. </button>
  861. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  862. 链接
  863. </button>
  864. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  865. 代码
  866. </button>
  867. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  868. 资源
  869. </button>
  870. </div>
  871. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  872. itemTaskIndex
  873. ].proVisible
  874. " class="mask">
  875. <div class="progressBox">
  876. <!-- <div id="closePro" class="closeCss">
  877. <img src="../../../assets/icon/close.png" alt />
  878. </div> -->
  879. <div class="lbox">
  880. <img src="../../assets/loading.gif" />上传中,请稍后
  881. </div>
  882. <div style="margin-bottom: 10px">
  883. <span>{{
  884. unitJson[unitIndex].chapterInfo[0].taskJson[
  885. itemTaskIndex
  886. ].isFinishSize
  887. }}M</span>
  888. /
  889. <span>{{
  890. unitJson[unitIndex].chapterInfo[0].taskJson[
  891. itemTaskIndex
  892. ].isAllSize
  893. }}M</span>
  894. </div>
  895. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  896. itemTaskIndex
  897. ].progress
  898. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  899. itemTaskIndex
  900. ].progress
  901. : 0
  902. " style="width: 80%"></el-progress>
  903. </div>
  904. </div>
  905. </div>
  906. <div v-if="unitJson[unitIndex].easy == 1 ||
  907. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  908. ">
  909. <div>
  910. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  911. itemTask.chapterData.length == 0
  912. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  913. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  914. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="dragOver(index1)"
  915. @dragend="dragEnd()" draggable class="chapter_upload"
  916. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  917. getChapterData(
  918. $event,
  919. unitIndex,
  920. index,
  921. index1,
  922. item1.type
  923. )
  924. ">
  925. <div class="chapter_upload_drag"></div>
  926. <div class="chapter_upload_t" style="width: 100%"></div>
  927. <div class="chapter_upload_o" style="
  928. position: relative;
  929. display: flex;
  930. align-items: center;
  931. ">
  932. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  933. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  934. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  935. </div>
  936. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  937. </div>
  938. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  939. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  940. </div>
  941. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  942. </div>
  943. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  944. </div>
  945. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  946. </div>
  947. </div>
  948. <div class="chapter_upload_n">
  949. <span style="
  950. font-size: 14px;
  951. color: rgb(109, 109, 109);
  952. height: 14px;
  953. line-height: 14px;
  954. " v-if="item1.type == 2 ||
  955. item1.type == 3 ||
  956. item1.type == 7
  957. ">{{ item1.text }}-</span>
  958. <input readonly="true" v-if="item1.type == 2 ||
  959. item1.type == 3 ||
  960. item1.type == 7
  961. " :placeholder="item1.name" @click="
  962. updataVideoT(
  963. $event,
  964. unitIndex,
  965. itemTaskIndex,
  966. index1
  967. )
  968. " style="
  969. border: none;
  970. outline: none;
  971. width: 80%;
  972. minwidth: 215px;
  973. z-index: 99;
  974. font-size: 14px;
  975. white-space: nowrap;
  976. overflow: hidden;
  977. text-overflow: ellipsis;
  978. " />
  979. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  980. border: none;
  981. outline: none;
  982. width: 80%;
  983. white-space: nowrap;
  984. overflow: hidden;
  985. text-overflow: ellipsis;
  986. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  987. <input :placeholder="item1.title ? item1.title : '链接'
  988. " v-if="item1.type == 8 || item1.type == 14" style="
  989. border: none;
  990. outline: none;
  991. width: 80%;
  992. white-space: nowrap;
  993. overflow: hidden;
  994. text-overflow: ellipsis;
  995. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  996. </div>
  997. <div class="chapter_upload_ic">
  998. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  999. </div>
  1000. <div class="chapter_upload_ud" style="z-index: 99">
  1001. <div class="chapter_upload_up" @click="
  1002. upCd(
  1003. $event,
  1004. unitIndex,
  1005. index,
  1006. itemTaskIndex,
  1007. index1
  1008. )
  1009. "></div>
  1010. <div class="chapter_upload_down" @click="
  1011. downCd(
  1012. $event,
  1013. unitIndex,
  1014. index,
  1015. itemTaskIndex,
  1016. index1
  1017. )
  1018. "></div>
  1019. </div>
  1020. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1021. item1.type == 3 ||
  1022. item1.type == 12 ||
  1023. item1.type == 13 ||
  1024. item1.type == 7
  1025. " @click.stop="
  1026. updataVideoT(
  1027. $event,
  1028. unitIndex,
  1029. itemTaskIndex,
  1030. index1
  1031. )
  1032. ">
  1033. <div></div>
  1034. </div>
  1035. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1036. @click="selectAttText(itemTaskIndex, index1)">
  1037. <div></div>
  1038. </div>
  1039. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1040. @click="selectLine(itemTaskIndex, index1)">
  1041. <div></div>
  1042. </div>
  1043. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1044. @click="openUpdateSource(itemTaskIndex, index1)">
  1045. <div></div>
  1046. </div>
  1047. <div class="chapter_upload_ic_r" @click.stop="
  1048. deleteChapterData(
  1049. $event,
  1050. unitIndex,
  1051. index,
  1052. index1,
  1053. itemTaskIndex
  1054. )
  1055. ">
  1056. <div></div>
  1057. </div>
  1058. </div>
  1059. </div>
  1060. </div>
  1061. </div>
  1062. </div>
  1063. <div class="add_info_box" style="margin: 10px 0 0">
  1064. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1065. <span style="color: red">*</span>
  1066. 教学设计
  1067. <input type="file"
  1068. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1069. style="display: none" v-if="inputShow" @change="
  1070. beforeUpload3(
  1071. $event,
  1072. unitIndex,
  1073. 3,
  1074. itemTaskIndex,
  1075. '教学设计'
  1076. )
  1077. " />
  1078. </button>
  1079. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1080. <span style="color: red">*</span>
  1081. 教学课件
  1082. <input type="file"
  1083. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1084. style="display: none" v-if="inputShow" @change="
  1085. beforeUpload3(
  1086. $event,
  1087. unitIndex,
  1088. 3,
  1089. itemTaskIndex,
  1090. '教学课件'
  1091. )
  1092. " />
  1093. </button>
  1094. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1095. 教学视频
  1096. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1097. style="display: none" v-if="inputShow" @change="
  1098. beforeUpload3(
  1099. $event,
  1100. unitIndex,
  1101. 2,
  1102. itemTaskIndex,
  1103. '教学视频'
  1104. )
  1105. " />
  1106. </button>
  1107. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1108. 教学音频
  1109. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1110. beforeUpload3(
  1111. $event,
  1112. unitIndex,
  1113. 2,
  1114. itemTaskIndex,
  1115. '教学音频'
  1116. )
  1117. " />
  1118. </button>
  1119. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1120. 学习单
  1121. <input type="file"
  1122. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1123. style="display: none" v-if="inputShow" @change="
  1124. beforeUpload3(
  1125. $event,
  1126. unitIndex,
  1127. 3,
  1128. itemTaskIndex,
  1129. '学习单'
  1130. )
  1131. " />
  1132. </button>
  1133. </div>
  1134. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1135. itemTaskIndex
  1136. ].proVisible
  1137. " class="mask">
  1138. <div class="progressBox">
  1139. <!-- <div id="closePro" class="closeCss">
  1140. <img src="../../../assets/icon/close.png" alt />
  1141. </div> -->
  1142. <div class="lbox">
  1143. <img src="../../assets/loading.gif" />上传中,请稍后
  1144. </div>
  1145. <div style="margin-bottom: 10px">
  1146. <span>{{
  1147. unitJson[unitIndex].chapterInfo[0].taskJson[
  1148. itemTaskIndex
  1149. ].isFinishSize
  1150. }}M</span>
  1151. /
  1152. <span>{{
  1153. unitJson[unitIndex].chapterInfo[0].taskJson[
  1154. itemTaskIndex
  1155. ].isAllSize
  1156. }}M</span>
  1157. </div>
  1158. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1159. itemTaskIndex
  1160. ].progress
  1161. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1162. itemTaskIndex
  1163. ].progress
  1164. : 0
  1165. " style="width: 80%"></el-progress>
  1166. </div>
  1167. </div>
  1168. </div>
  1169. </div>
  1170. <!-- padding: 20px; -->
  1171. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1172. <div v-if="unitJson[unitIndex].easy != 3 &&
  1173. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1174. " style="
  1175. flex-direction: row;
  1176. justify-content: flex-start;
  1177. align-items: center;
  1178. ">
  1179. <div style="
  1180. display: flex;
  1181. flex-direction: row;
  1182. align-items: center;
  1183. margin: 5px 0 20px;
  1184. ">
  1185. <div class="lineTitle">
  1186. {{
  1187. !unitJson[unitIndex].easy ||
  1188. unitJson[unitIndex].easy == 6 ||
  1189. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1190. ? "练习内容"
  1191. : "评价内容"
  1192. }}
  1193. </div>
  1194. <!-- <div class="line" style="width: 90%"></div> -->
  1195. </div>
  1196. </div>
  1197. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1198. " class="toolChoose">
  1199. <div class="tools">
  1200. <div class="leftTools" style="
  1201. width: 100%;
  1202. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1203. <div style="
  1204. display: flex;
  1205. flex-direction: row;
  1206. align-items: baseline;
  1207. flex-wrap: nowrap;
  1208. justify-content: flex-start;
  1209. position: relative;
  1210. ">
  1211. <div style="margin-right: 20px; font-weight: bold"
  1212. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1213. 步骤 {{ toolIndex + 1 }} :
  1214. </div>
  1215. <div class="chooseWho">
  1216. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1217. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  1218. 互动类
  1219. </div>
  1220. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1221. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()">
  1222. 思维类
  1223. </div>
  1224. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1225. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()">
  1226. 协作类
  1227. </div>
  1228. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1229. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()">
  1230. 测评类
  1231. </div>
  1232. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1233. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()">
  1234. 评价类
  1235. </div>
  1236. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1237. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()">
  1238. 编程类
  1239. </div>
  1240. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1241. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  1242. 学科类
  1243. </div>
  1244. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1245. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1246. 其他
  1247. </div> -->
  1248. </div>
  1249. <div v-if="itemTool.isFold3" class="show_toolD show"
  1250. @click="fold3(itemTaskIndex, toolIndex)"
  1251. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  1252. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1253. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1254. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  1255. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  1256. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1257. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  1258. </div>
  1259. <div style="min-height: 163px" v-show="itemTool.isFold3">
  1260. <div class="toolSort" v-if="itemTool.toolType == 0">
  1261. <!-- <div class="tool">
  1262. <div
  1263. class="whiteBIcon"
  1264. @click="addTools(8, itemTaskIndex, toolIndex)"
  1265. >
  1266. <img src="../../assets/icon/secondToolList/library.png" alt />
  1267. <div style="margin: 5px 0">素材库</div>
  1268. </div>
  1269. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1270. <img
  1271. src="../../assets/icon/checkNo.png"
  1272. alt
  1273. v-if="itemTool.tool.indexOf(8) == -1"
  1274. />
  1275. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1276. alt /><span>已选择</span></div>
  1277. </div>
  1278. </div>-->
  1279. <!-- <div class="tool">
  1280. <div
  1281. class="whiteBIcon"
  1282. @click="addTools(17, itemTaskIndex, toolIndex)"
  1283. >
  1284. <img
  1285. src="../../assets/icon/secondToolList/library.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">学习资料</div>
  1289. </div>
  1290. <div
  1291. class="check"
  1292. @click="addTools(17, itemTaskIndex, toolIndex)"
  1293. >
  1294. <img
  1295. src="../../assets/icon/checkNo.png"
  1296. alt
  1297. v-if="itemTool.tool.indexOf(17) == -1"
  1298. />
  1299. <img
  1300. src="../../assets/icon/checkedIs.png"
  1301. alt
  1302. v-else
  1303. />
  1304. </div>10
  1305. </div> -->
  1306. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  1307. @click="addTools(10, itemTaskIndex, toolIndex)">
  1308. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 10, toolIndex)">
  1309. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1310. <div style="margin: 5px 0">倒计时</div>
  1311. </div>
  1312. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1313. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  1314. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1315. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1316. <img src="../../assets/icon/checkNo.png" alt
  1317. v-if="itemTool.tool.indexOf(10) == -1" />
  1318. <div class="checkDiv" v-else>
  1319. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1320. </div>
  1321. </div> -->
  1322. </div>
  1323. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  1324. @click="addTools(65, itemTaskIndex, toolIndex)">
  1325. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  1326. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1327. <div style="margin: 5px 0">挑人</div>
  1328. </div>
  1329. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1330. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  1331. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1332. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1333. <img src="../../assets/icon/checkNo.png" alt
  1334. v-if="itemTool.tool.indexOf(65) == -1" />
  1335. <div class="checkDiv" v-else>
  1336. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1337. </div>
  1338. </div> -->
  1339. </div>
  1340. <!-- <div class="tool">
  1341. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1342. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1343. <div style="margin: 5px 0">学生分组</div>
  1344. </div>
  1345. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1346. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1347. <div class="checkDiv" v-else>
  1348. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1349. </div>
  1350. </div>
  1351. </div> -->
  1352. <!-- <div class="tool">
  1353. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1354. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1355. <div style="margin: 5px 0">交互视频</div>
  1356. </div>
  1357. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1358. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1359. <div class="checkDiv" v-else>
  1360. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1361. </div>
  1362. </div>
  1363. </div> -->
  1364. </div>
  1365. <div class="toolSort" v-if="itemTool.toolType == 1">
  1366. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  1367. @click="addTools(7, itemTaskIndex, toolIndex)">
  1368. <div class="whiteBIcon" @click.stop="addTools(7, itemTaskIndex, toolIndex)">
  1369. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1370. <div style="margin: 5px 0">思维网格</div>
  1371. </div>
  1372. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1373. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  1374. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1375. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1376. <img src="../../assets/icon/checkNo.png" alt
  1377. v-if="itemTool.tool.indexOf(7) == -1" />
  1378. <div class="checkDiv" v-else>
  1379. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1380. </div>
  1381. </div> -->
  1382. </div>
  1383. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  1384. @click="addTools(1, itemTaskIndex, toolIndex)">
  1385. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 1, toolIndex)">
  1386. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1387. <div style="margin: 5px 0">电子白板</div>
  1388. </div>
  1389. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1390. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  1391. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1392. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1393. <img src="../../assets/icon/checkNo.png" alt
  1394. v-if="itemTool.tool.indexOf(1) == -1" />
  1395. <div class="checkDiv" v-else>
  1396. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1397. </div>
  1398. </div> -->
  1399. </div>
  1400. <!-- <div class="tool">
  1401. <div
  1402. class="whiteBIcon"
  1403. @click="addTools(2, itemTaskIndex, toolIndex)"
  1404. >
  1405. <img
  1406. src="../../assets/icon/secondToolList/note.png"
  1407. alt
  1408. />
  1409. <div style="margin: 5px 0">便签</div>
  1410. </div>
  1411. <div
  1412. class="check"
  1413. @click="addTools(2, itemTaskIndex, toolIndex)"
  1414. >
  1415. <img
  1416. src="../../assets/icon/checkNo.png"
  1417. alt
  1418. v-if="itemTool.tool.indexOf(2) == -1"
  1419. />
  1420. <div class="checkDiv" v-else>
  1421. <img
  1422. src="../../assets/icon/checkedIs.png"
  1423. alt
  1424. /><span>已选择</span>
  1425. </div>
  1426. </div>
  1427. </div> -->
  1428. <!-- <div class="tool">
  1429. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1430. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1431. <div style="margin: 5px 0">协同文档</div>
  1432. </div>
  1433. <div
  1434. class="check"
  1435. @click="addTools(6, itemTaskIndex, toolIndex)"
  1436. >
  1437. <img
  1438. src="../../assets/icon/checkNo.png"
  1439. alt
  1440. v-if="itemTool.tool.indexOf(6) == -1"
  1441. />
  1442. <div class="checkDiv" v-else>
  1443. <img
  1444. src="../../assets/icon/checkedIs.png"
  1445. alt
  1446. /><span>已选择</span>
  1447. </div>
  1448. </div>
  1449. </div> -->
  1450. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  1451. @click="addTools(52, itemTaskIndex, toolIndex)">
  1452. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 52, toolIndex)">
  1453. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1454. <div style="margin: 5px 0">文档</div>
  1455. </div>
  1456. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1457. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  1458. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1459. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1460. <img src="../../assets/icon/checkNo.png" alt
  1461. v-if="itemTool.tool.indexOf(52) == -1" />
  1462. <div class="checkDiv" v-else>
  1463. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1464. </div>
  1465. </div> -->
  1466. </div>
  1467. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  1468. @click="addTools(3, itemTaskIndex, toolIndex)">
  1469. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 3, toolIndex)">
  1470. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1471. <div style="margin: 5px 0">思维导图</div>
  1472. </div>
  1473. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1474. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  1475. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1476. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1477. <img src="../../assets/icon/checkNo.png" alt
  1478. v-if="itemTool.tool.indexOf(3) == -1" />
  1479. <div class="checkDiv" v-else>
  1480. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1481. </div>
  1482. </div> -->
  1483. </div>
  1484. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  1485. @click="addTools(48, itemTaskIndex, toolIndex)">
  1486. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 48, toolIndex)">
  1487. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1488. <div style="margin: 5px 0">表格</div>
  1489. </div>
  1490. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1491. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  1492. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1493. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1494. <img src="../../assets/icon/checkNo.png" alt
  1495. v-if="itemTool.tool.indexOf(48) == -1" />
  1496. <div class="checkDiv" v-else>
  1497. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1498. </div>
  1499. </div> -->
  1500. </div>
  1501. </div>
  1502. <div class="toolSort" v-if="itemTool.toolType == 6">
  1503. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  1504. @click="addTools(49, itemTaskIndex, toolIndex)">
  1505. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 49, toolIndex)">
  1506. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1507. <div style="margin: 5px 0">学生分组</div>
  1508. </div>
  1509. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1510. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  1511. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1512. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1513. <img src="../../assets/icon/checkNo.png" alt
  1514. v-if="itemTool.tool.indexOf(49) == -1" />
  1515. <div class="checkDiv" v-else>
  1516. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1517. </div>
  1518. </div> -->
  1519. </div>
  1520. </div>
  1521. <div class="toolSort" v-if="itemTool.toolType == 2">
  1522. <!-- <div class="tool">
  1523. <div
  1524. class="whiteBIcon"
  1525. @click="addTools(5, itemTaskIndex, toolIndex)"
  1526. >
  1527. <img
  1528. src="../../assets/icon/thirdToolList/score.png"
  1529. alt
  1530. />
  1531. <div style="margin: 5px 0">量规评分</div>
  1532. </div>
  1533. <div
  1534. class="check"
  1535. @click="addTools(5, itemTaskIndex, toolIndex)"
  1536. >
  1537. <img
  1538. src="../../assets/icon/checkNo.png"
  1539. alt
  1540. v-if="itemTool.tool.indexOf(5) == -1"
  1541. />
  1542. <img
  1543. src="../../assets/icon/checkedIs.png"
  1544. alt
  1545. v-else
  1546. />
  1547. </div>
  1548. </div>-->
  1549. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1550. @click="addTools(4, itemTaskIndex, toolIndex)">
  1551. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 4, toolIndex)">
  1552. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1553. <div style="margin: 5px 0">问卷调查</div>
  1554. </div>
  1555. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1556. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  1557. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1558. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1559. <img src="../../assets/icon/checkNo.png" alt
  1560. v-if="itemTool.tool.indexOf(4) == -1" />
  1561. <div class="checkDiv" v-else>
  1562. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1563. </div>
  1564. </div> -->
  1565. </div>
  1566. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1567. @click="addTools(45, itemTaskIndex, toolIndex)">
  1568. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1569. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1570. <div style="margin: 5px 0">选择题</div>
  1571. </div>
  1572. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1573. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  1574. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1575. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1576. <img src="../../assets/icon/checkNo.png" alt
  1577. v-if="itemTool.tool.indexOf(45) == -1" />
  1578. <div class="checkDiv" v-else>
  1579. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1580. </div>
  1581. </div> -->
  1582. </div>
  1583. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1584. @click="addTools(15, itemTaskIndex, toolIndex)">
  1585. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 15, toolIndex)">
  1586. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1587. <div style="margin: 5px 0">问答</div>
  1588. </div>
  1589. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1590. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1591. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1592. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1593. <img src="../../assets/icon/checkNo.png" alt
  1594. v-if="itemTool.tool.indexOf(15) == -1" />
  1595. <div class="checkDiv" v-else>
  1596. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1597. </div>
  1598. </div> -->
  1599. </div>
  1600. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1601. @click="addTools(16, itemTaskIndex, toolIndex)">
  1602. <div class="whiteBIcon" @click.stop="addTools(16, itemTaskIndex, toolIndex)">
  1603. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1604. <div style="margin: 5px 0">作业提交</div>
  1605. </div>
  1606. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1607. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1608. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1609. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1610. <img src="../../assets/icon/checkNo.png" alt
  1611. v-if="itemTool.tool.indexOf(16) == -1" />
  1612. <div class="checkDiv" v-else>
  1613. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1614. </div>
  1615. </div> -->
  1616. </div>
  1617. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1618. @click="addTools(50, itemTaskIndex, toolIndex)">
  1619. <div class="whiteBIcon" @click.stop="addTools(50, itemTaskIndex, toolIndex)">
  1620. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1621. <div style="margin: 5px 0">批量上传</div>
  1622. </div>
  1623. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1624. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1625. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1626. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1627. <img src="../../assets/icon/checkNo.png" alt
  1628. v-if="itemTool.tool.indexOf(50) == -1" />
  1629. <div class="checkDiv" v-else>
  1630. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1631. </div>
  1632. </div> -->
  1633. </div>
  1634. <!-- <div class="tool">
  1635. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1636. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1637. <div style="margin: 5px 0">个人评价</div>
  1638. </div>
  1639. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1640. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1641. <div class="checkDiv" v-else>
  1642. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1643. </div>
  1644. </div>
  1645. </div> -->
  1646. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1647. @click="addTools(41, itemTaskIndex, toolIndex)">
  1648. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 41, toolIndex)">
  1649. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1650. <div style="margin: 5px 0">选择匹配</div>
  1651. </div>
  1652. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1653. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1654. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1655. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1656. <img src="../../assets/icon/checkNo.png" alt
  1657. v-if="itemTool.tool.indexOf(41) == -1" />
  1658. <div class="checkDiv" v-else>
  1659. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1660. </div>
  1661. </div> -->
  1662. </div>
  1663. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1664. @click="addTools(47, itemTaskIndex, toolIndex)">
  1665. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 47, toolIndex)">
  1666. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1667. <div style="margin: 5px 0">排序</div>
  1668. </div>
  1669. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1670. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1671. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1672. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1673. <img src="../../assets/icon/checkNo.png" alt
  1674. v-if="itemTool.tool.indexOf(47) == -1" />
  1675. <div class="checkDiv" v-else>
  1676. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1677. </div>
  1678. </div> -->
  1679. </div>
  1680. <!-- <div class="tool">
  1681. <div
  1682. class="whiteBIcon"
  1683. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1684. >
  1685. <img
  1686. src="../../assets/icon/thirdToolList/mp3.png"
  1687. alt
  1688. />
  1689. <div style="margin: 5px 0">上传音频</div>
  1690. </div>
  1691. <div
  1692. class="check"
  1693. @click="addTools(42, itemTaskIndex, toolIndex)"
  1694. >
  1695. <img
  1696. src="../../assets/icon/checkNo.png"
  1697. alt
  1698. v-if="itemTool.tool.indexOf(42) == -1"
  1699. />
  1700. <img
  1701. src="../../assets/icon/checkedIs.png"
  1702. alt
  1703. v-else
  1704. />
  1705. </div>
  1706. </div> -->
  1707. </div>
  1708. <div class="toolSort" v-if="itemTool.toolType == 3">
  1709. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1710. @click="addTools(18, itemTaskIndex, toolIndex)">
  1711. <div class="whiteBIcon" @click.stop="addTools(18, itemTaskIndex, toolIndex)">
  1712. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1713. <div style="margin: 5px 0">训练平台</div>
  1714. </div>
  1715. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1716. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1717. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1718. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1719. <img src="../../assets/icon/checkNo.png" alt
  1720. v-if="itemTool.tool.indexOf(18) == -1" />
  1721. <div class="checkDiv" v-else>
  1722. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1723. </div>
  1724. </div> -->
  1725. </div>
  1726. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1727. @click="addTools(21, itemTaskIndex, toolIndex)">
  1728. <div class="whiteBIcon" @click.stop="addTools(21, itemTaskIndex, toolIndex)">
  1729. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1730. <div style="margin: 5px 0">AIoT Blockly</div>
  1731. </div>
  1732. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1733. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1734. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1735. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1736. <img src="../../assets/icon/checkNo.png" alt
  1737. v-if="itemTool.tool.indexOf(21) == -1" />
  1738. <div class="checkDiv" v-else>
  1739. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1740. </div>
  1741. </div> -->
  1742. </div>
  1743. <!-- <div class="tool">
  1744. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1745. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1746. <div style="margin: 5px 0">AI体验</div>
  1747. </div>
  1748. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1749. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1750. <div class="checkDiv" v-else>
  1751. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1752. </div>
  1753. </div>
  1754. </div> -->
  1755. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1756. @click="addTools(23, itemTaskIndex, toolIndex)">
  1757. <div class="whiteBIcon" @click.stop="addTools(23, itemTaskIndex, toolIndex)">
  1758. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1759. <div style="margin: 5px 0">AI Python</div>
  1760. </div>
  1761. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1762. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1763. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1764. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1765. <img src="../../assets/icon/checkNo.png" alt
  1766. v-if="itemTool.tool.indexOf(23) == -1" />
  1767. <div class="checkDiv" v-else>
  1768. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1769. </div>
  1770. </div> -->
  1771. </div>
  1772. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1773. @click="addTools(24, itemTaskIndex, toolIndex)">
  1774. <div class="whiteBIcon" @click.stop="addTools(24, itemTaskIndex, toolIndex)">
  1775. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1776. <div style="margin: 5px 0">AI Blockly</div>
  1777. </div>
  1778. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1779. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1780. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1781. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1782. <img src="../../assets/icon/checkNo.png" alt
  1783. v-if="itemTool.tool.indexOf(24) == -1" />
  1784. <div class="checkDiv" v-else>
  1785. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1786. </div>
  1787. </div> -->
  1788. </div>
  1789. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1790. @click="addTools(32, itemTaskIndex, toolIndex)">
  1791. <div class="whiteBIcon" @click.stop="addTools(32, itemTaskIndex, toolIndex)">
  1792. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1793. <div style="margin: 5px 0">源码编辑</div>
  1794. </div>
  1795. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1796. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1797. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1798. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1799. <img src="../../assets/icon/checkNo.png" alt
  1800. v-if="itemTool.tool.indexOf(32) == -1" />
  1801. <div class="checkDiv" v-else>
  1802. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1803. </div>
  1804. </div> -->
  1805. </div>
  1806. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1807. @click="addTools(57, itemTaskIndex, toolIndex)">
  1808. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1809. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1810. <div style="margin: 5px 0">CocoPi</div>
  1811. </div>
  1812. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1813. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1814. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1815. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1816. <img src="../../assets/icon/checkNo.png" alt
  1817. v-if="itemTool.tool.indexOf(57) == -1" />
  1818. <div class="checkDiv" v-else>
  1819. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1820. </div>
  1821. </div> -->
  1822. </div>
  1823. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1824. @click="addTools(63, itemTaskIndex, toolIndex)">
  1825. <div class="whiteBIcon" @click.stop="addTools(63, itemTaskIndex, toolIndex)">
  1826. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1827. <div style="margin: 5px 0">海龟编程</div>
  1828. </div>
  1829. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1830. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1831. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1832. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1833. <img src="../../assets/icon/checkNo.png" alt
  1834. v-if="itemTool.tool.indexOf(63) == -1" />
  1835. <div class="checkDiv" v-else>
  1836. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1837. </div>
  1838. </div> -->
  1839. </div>
  1840. </div>
  1841. <div class="toolSort" v-if="itemTool.toolType == 7">
  1842. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1843. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1844. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 40, toolIndex)">
  1845. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1846. <div style="margin: 5px 0">个人评价</div>
  1847. </div>
  1848. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1849. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1850. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1851. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1852. <img src="../../assets/icon/checkNo.png" alt
  1853. v-if="itemTool.tool.indexOf(40) == -1" />
  1854. <div class="checkDiv" v-else>
  1855. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1856. </div>
  1857. </div> -->
  1858. </div>
  1859. </div>
  1860. <div class="toolSort" v-if="itemTool.toolType == 5">
  1861. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1862. @click="addTools(28, itemTaskIndex, toolIndex)">
  1863. <div class="whiteBIcon" @click.stop="addTools(28, itemTaskIndex, toolIndex)">
  1864. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1865. <div style="margin: 5px 0">翻译</div>
  1866. </div>
  1867. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1868. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1869. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1870. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1871. <img src="../../assets/icon/checkNo.png" alt
  1872. v-if="itemTool.tool.indexOf(28) == -1" />
  1873. <div class="checkDiv" v-else>
  1874. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1875. </div>
  1876. </div> -->
  1877. </div>
  1878. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1879. @click="addTools(31, itemTaskIndex, toolIndex)">
  1880. <div class="whiteBIcon" @click.stop="addTools(31, itemTaskIndex, toolIndex)">
  1881. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1882. <div style="margin: 5px 0">数字画板</div>
  1883. </div>
  1884. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1885. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1886. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1887. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1888. <img src="../../assets/icon/checkNo.png" alt
  1889. v-if="itemTool.tool.indexOf(31) == -1" />
  1890. <div class="checkDiv" v-else>
  1891. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1892. </div>
  1893. </div> -->
  1894. </div>
  1895. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1896. @click="addTools(39, itemTaskIndex, toolIndex)">
  1897. <div class="whiteBIcon" @click.stop="addTools(39, itemTaskIndex, toolIndex)">
  1898. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1899. <div style="margin: 5px 0">GeoGebra</div>
  1900. </div>
  1901. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1902. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1903. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1904. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1905. <img src="../../assets/icon/checkNo.png" alt
  1906. v-if="itemTool.tool.indexOf(39) == -1" />
  1907. <div class="checkDiv" v-else>
  1908. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1909. </div>
  1910. </div> -->
  1911. </div>
  1912. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1913. @click="addTools(66, itemTaskIndex, toolIndex)">
  1914. <div class="whiteBIcon" @click.stop="addTools(66, itemTaskIndex, toolIndex)">
  1915. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  1916. <div style="margin: 5px 0">公式编辑</div>
  1917. </div>
  1918. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1919. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  1920. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1921. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  1922. <img src="../../assets/icon/checkNo.png" alt
  1923. v-if="itemTool.tool.indexOf(66) == -1" />
  1924. <div class="checkDiv" v-else>
  1925. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1926. </div>
  1927. </div> -->
  1928. </div>
  1929. <!-- <div class="tool">
  1930. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  1931. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  1932. <div style="margin: 5px 0">分子结构</div>
  1933. </div>
  1934. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  1935. <img src="../../assets/icon/checkNo.png" alt
  1936. v-if="itemTool.tool.indexOf(67) == -1" />
  1937. <div class="checkDiv" v-else>
  1938. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1939. </div>
  1940. </div>
  1941. </div> -->
  1942. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1943. @click="addTools(68, itemTaskIndex, toolIndex)">
  1944. <div class="whiteBIcon" @click.stop="addTools(68, itemTaskIndex, toolIndex)">
  1945. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  1946. <div style="margin: 5px 0">时间轴</div>
  1947. </div>
  1948. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1949. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  1950. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1951. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  1952. <img src="../../assets/icon/checkNo.png" alt
  1953. v-if="itemTool.tool.indexOf(68) == -1" />
  1954. <div class="checkDiv" v-else>
  1955. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1956. </div>
  1957. </div> -->
  1958. </div>
  1959. <!-- <div class="tool">
  1960. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1961. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1962. <div style="margin: 5px 0">翻译</div>
  1963. </div>
  1964. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1965. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1966. <div class="checkDiv" v-else>
  1967. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1968. </div>
  1969. </div>
  1970. </div>
  1971. <div class="tool">
  1972. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1973. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  1974. <div style="margin: 5px 0">魔盒识字</div>
  1975. </div>
  1976. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1977. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1978. <div class="checkDiv" v-else>
  1979. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1980. </div>
  1981. </div>
  1982. </div>
  1983. <div class="tool">
  1984. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1985. <img src="../../assets/icon/secondToolList/24game.png" alt />
  1986. <div style="margin: 5px 0">24点</div>
  1987. </div>
  1988. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1989. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1990. <div class="checkDiv" v-else>
  1991. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1992. </div>
  1993. </div>
  1994. </div>
  1995. <div class="tool">
  1996. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1997. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1998. <div style="margin: 5px 0">数学画板</div>
  1999. </div>
  2000. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2001. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2002. <div class="checkDiv" v-else>
  2003. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2004. </div>
  2005. </div>
  2006. </div>
  2007. <div class="tool">
  2008. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2009. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2010. <div style="margin: 5px 0">GeoGebra</div>
  2011. </div>
  2012. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2013. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2014. <div class="checkDiv" v-else>
  2015. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2016. </div>
  2017. </div>
  2018. </div>
  2019. <div class="tool">
  2020. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2021. <img src="../../assets/icon/fourthToolList/car.png" alt />
  2022. <div style="margin: 5px 0">模拟驾驶</div>
  2023. </div>
  2024. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2025. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2026. <div class="checkDiv" v-else>
  2027. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2028. </div>
  2029. </div>
  2030. </div>
  2031. <div class="tool">
  2032. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2033. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  2034. <div style="margin: 5px 0">路径搜索</div>
  2035. </div>
  2036. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2037. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2038. <div class="checkDiv" v-else>
  2039. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2040. </div>
  2041. </div>
  2042. </div>
  2043. <div class="tool">
  2044. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2045. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  2046. <div style="margin: 5px 0">深度学习</div>
  2047. </div>
  2048. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2049. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2050. <div class="checkDiv" v-else>
  2051. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. <div class="tool">
  2056. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2057. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  2058. <div style="margin: 5px 0">全历史</div>
  2059. </div>
  2060. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2061. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2062. <div class="checkDiv" v-else>
  2063. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2064. </div>
  2065. </div>
  2066. </div>
  2067. </div>
  2068. <div class="toolSort" v-if="itemTool.toolType == 4">
  2069. <div class="tool">
  2070. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2071. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  2072. <div style="margin: 5px 0">课程设计</div>
  2073. </div>
  2074. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2075. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2076. <div class="checkDiv" v-else>
  2077. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div class="tool">
  2082. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2083. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  2084. <div style="margin: 5px 0">目标管理</div>
  2085. </div>
  2086. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2087. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2088. <div class="checkDiv" v-else>
  2089. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2090. </div>
  2091. </div>
  2092. </div> -->
  2093. <!-- <div class="tool">
  2094. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2095. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2096. <div style="margin: 5px 0">汉字宫</div>
  2097. </div>
  2098. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2099. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2100. <div class="checkDiv" v-else>
  2101. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2102. </div>
  2103. </div>
  2104. </div> -->
  2105. </div>
  2106. </div>
  2107. <div v-show="itemTool.isFold3">
  2108. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2109. style="margin: 0 0 20px 0; width: 100% !important"
  2110. v-model="itemTool.toolDetail"></textarea>
  2111. </div>
  2112. </div>
  2113. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2114. <div class="addToolImg">
  2115. <img src="../../assets/icon/add.png" alt />
  2116. </div>
  2117. <div>添加工具</div>
  2118. </div> -->
  2119. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2120. 添加工具
  2121. </button>
  2122. </div>
  2123. </div>
  2124. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2125. unitJson[unitIndex].easy == 4
  2126. " class="toolChoose" style="padding: 0 0 40px;">
  2127. <div class="tools">
  2128. <div class="leftTools" style="width: 100%"
  2129. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2130. <div>
  2131. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2132. style="margin: 0 0 20px 0; width: 100% !important"
  2133. v-model="itemTool.toolDetail"></textarea>
  2134. </div>
  2135. <div style="
  2136. display: flex;
  2137. flex-direction: row;
  2138. align-items: baseline;
  2139. flex-wrap: nowrap;
  2140. justify-content: flex-start;
  2141. position: relative;
  2142. ">
  2143. <div style="margin-right: 20px; font-weight: bold"
  2144. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2145. 步骤 {{ toolIndex + 1 }} :
  2146. </div>
  2147. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2148. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2149. </div>
  2150. <div style="min-height: 163px">
  2151. <div class="toolSort">
  2152. <div class="tool">
  2153. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2154. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2155. <div style="margin: 5px 0">电子白板</div>
  2156. </div>
  2157. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2158. <img src="../../assets/icon/checkNo.png" alt
  2159. v-if="itemTool.tool.indexOf(1) == -1" />
  2160. <div class="checkDiv" v-else>
  2161. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2162. </div>
  2163. </div>
  2164. </div>
  2165. <div class="tool">
  2166. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2167. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2168. <div style="margin: 5px 0">文档</div>
  2169. </div>
  2170. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2171. <img src="../../assets/icon/checkNo.png" alt
  2172. v-if="itemTool.tool.indexOf(52) == -1" />
  2173. <div class="checkDiv" v-else>
  2174. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2175. </div>
  2176. </div>
  2177. </div>
  2178. <div class="tool">
  2179. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2180. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2181. <div style="margin: 5px 0">思维导图</div>
  2182. </div>
  2183. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2184. <img src="../../assets/icon/checkNo.png" alt
  2185. v-if="itemTool.tool.indexOf(3) == -1" />
  2186. <div class="checkDiv" v-else>
  2187. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2188. </div>
  2189. </div>
  2190. </div>
  2191. <div class="tool">
  2192. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2193. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2194. <div style="margin: 5px 0">问卷调查</div>
  2195. </div>
  2196. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2197. <img src="../../assets/icon/checkNo.png" alt
  2198. v-if="itemTool.tool.indexOf(4) == -1" />
  2199. <div class="checkDiv" v-else>
  2200. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2201. </div>
  2202. </div>
  2203. </div>
  2204. <div class="tool">
  2205. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2206. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2207. <div style="margin: 5px 0">选择题</div>
  2208. </div>
  2209. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2210. <img src="../../assets/icon/checkNo.png" alt
  2211. v-if="itemTool.tool.indexOf(45) == -1" />
  2212. <div class="checkDiv" v-else>
  2213. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2214. </div>
  2215. </div>
  2216. </div>
  2217. <div class="tool">
  2218. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2219. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2220. <div style="margin: 5px 0">问答</div>
  2221. </div>
  2222. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2223. <img src="../../assets/icon/checkNo.png" alt
  2224. v-if="itemTool.tool.indexOf(15) == -1" />
  2225. <div class="checkDiv" v-else>
  2226. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2227. </div>
  2228. </div>
  2229. </div>
  2230. <div class="tool">
  2231. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2232. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2233. <div style="margin: 5px 0">作业提交</div>
  2234. </div>
  2235. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2236. <img src="../../assets/icon/checkNo.png" alt
  2237. v-if="itemTool.tool.indexOf(16) == -1" />
  2238. <div class="checkDiv" v-else>
  2239. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2240. </div>
  2241. </div>
  2242. </div>
  2243. <div class="tool">
  2244. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2245. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2246. <div style="margin: 5px 0">批量上传</div>
  2247. </div>
  2248. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2249. <img src="../../assets/icon/checkNo.png" alt
  2250. v-if="itemTool.tool.indexOf(50) == -1" />
  2251. <div class="checkDiv" v-else>
  2252. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2253. </div>
  2254. </div>
  2255. </div>
  2256. <div class="tool">
  2257. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2258. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2259. <div style="margin: 5px 0">选择匹配</div>
  2260. </div>
  2261. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2262. <img src="../../assets/icon/checkNo.png" alt
  2263. v-if="itemTool.tool.indexOf(41) == -1" />
  2264. <div class="checkDiv" v-else>
  2265. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2266. </div>
  2267. </div>
  2268. </div>
  2269. <div class="tool">
  2270. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2271. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2272. <div style="margin: 5px 0">排序</div>
  2273. </div>
  2274. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2275. <img src="../../assets/icon/checkNo.png" alt
  2276. v-if="itemTool.tool.indexOf(47) == -1" />
  2277. <div class="checkDiv" v-else>
  2278. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2279. </div>
  2280. </div>
  2281. </div>
  2282. <div class="tool">
  2283. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2284. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2285. <div style="margin: 5px 0">表格</div>
  2286. </div>
  2287. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2288. <img src="../../assets/icon/checkNo.png" alt
  2289. v-if="itemTool.tool.indexOf(48) == -1" />
  2290. <div class="checkDiv" v-else>
  2291. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2292. </div>
  2293. </div>
  2294. </div>
  2295. </div>
  2296. </div>
  2297. </div>
  2298. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2299. <div class="addToolImg">
  2300. <img src="../../assets/icon/add.png" alt />
  2301. </div>
  2302. <div>添加工具</div>
  2303. </div> -->
  2304. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 35px auto 20px">
  2305. 添加工具
  2306. </button>
  2307. </div>
  2308. </div>
  2309. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2310. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2311. " class="toolChoose" style="padding: 0 0 40px;">
  2312. <div class="tools">
  2313. <div class="leftTools" style="
  2314. width: 100%;
  2315. padding: 0 0 15px 0;
  2316. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2317. <div style="min-height: 163px">
  2318. <div class="toolSort">
  2319. <div class="tool">
  2320. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2321. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2322. <div style="margin: 5px 0">批量上传</div>
  2323. </div>
  2324. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2325. <img src="../../assets/icon/checkNo.png" alt
  2326. v-if="itemTool.tool.indexOf(50) == -1" />
  2327. <div class="checkDiv" v-else>
  2328. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. </div>
  2333. </div>
  2334. </div>
  2335. </div>
  2336. </div>
  2337. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2338. <div class="elist_title">
  2339. <div style="
  2340. display: flex;
  2341. flex-direction: row;
  2342. align-items: center;
  2343. margin: 20px 0;
  2344. ">
  2345. <div class="lineTitle">评价设置</div>
  2346. <!-- <div class="line" style="width: 90%"></div> -->
  2347. </div>
  2348. </div>
  2349. <div class="mbCss">
  2350. <div class="pjCss">
  2351. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2352. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2353. <span>评价名称:</span>
  2354. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2355. <span>评星等级:</span>
  2356. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2357. disabled></el-rate>
  2358. <div class="remove" @click="
  2359. deletEList(unitIndex, itemTaskIndex, eIndex)
  2360. "></div>
  2361. <div class="elist_inptu_text">
  2362. <span>评价描述:</span>
  2363. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2364. </div>
  2365. <div class="elist_inptu_text" v-if="evalua">
  2366. <span>目标:</span>
  2367. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2368. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2369. @change="forceUpdate()">
  2370. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2371. :value="e.name">
  2372. </el-option>
  2373. </el-select> -->
  2374. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2375. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2380. style="margin: 35px 35px 0 0">
  2381. <div class="addToolImg">
  2382. <img src="../../assets/icon/add.png" alt />
  2383. </div>
  2384. <div>添加</div>
  2385. </div> -->
  2386. <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 20px 35px 0 0">
  2387. 添加
  2388. </button>
  2389. </div>
  2390. <div v-if="evalua" style="
  2391. border: 1px solid #e5e5e5;
  2392. width: 55%;
  2393. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2394. " class="evaCss">
  2395. <!-- <div class="e_add_top">
  2396. <div class="e_add_title">
  2397. <span>当前使用目标管理</span>
  2398. <span>{{ eTitle }}</span>
  2399. <img src="../../assets/line.png" class="cru_line" style="
  2400. width: 125px;
  2401. height: 20px;
  2402. bottom: -10px;
  2403. left: 155px;
  2404. " />
  2405. </div>
  2406. </div> -->
  2407. <div class="e_add_content" style="width: 100%">
  2408. <div class="e_add_list_pbox" style="width: 100%">
  2409. <div class="e_add_list_pbox_title">
  2410. <span class="type_title">切换模式</span>
  2411. <div class="type_content">
  2412. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  2413. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  2414. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  2415. </div>
  2416. </div>
  2417. <div class="e_add_list_pbox_content">
  2418. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2419. " v-if="typeMode == 1"></Mind>
  2420. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2421. </Sunburst>
  2422. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2423. v-if="typeMode == 3"></SeeBoard>
  2424. </div>
  2425. </div>
  2426. </div>
  2427. </div>
  2428. </div>
  2429. </div>
  2430. <div class="funBlock" style="padding: 0">
  2431. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2432. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2433. </div>
  2434. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2435. </div>
  2436. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2437. <div>展开</div>
  2438. <div class="arrow">
  2439. <img src="../../assets/icon/expand.png" alt />
  2440. </div>
  2441. </div> -->
  2442. </div>
  2443. </div>
  2444. </div>
  2445. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2446. <!-- <div>
  2447. <img src="../../../assets/icon/new/addStage.png" alt />
  2448. <span>添加任务</span>
  2449. </div> -->
  2450. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2451. 添加任务
  2452. </button>
  2453. </div>
  2454. </div>
  2455. <div class="info_btnBox3">
  2456. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2457. goTo(
  2458. '/course?userid=' +
  2459. userid +
  2460. '&oid=' +
  2461. oid +
  2462. '&org=' +
  2463. org +
  2464. '&role=' +
  2465. role
  2466. )
  2467. ">
  2468. 返回课程
  2469. </button>
  2470. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2471. style="background:#dbdbdb">
  2472. {{ steps == 4 ? "返回课程" : "上一步" }}
  2473. </button>
  2474. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2475. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2476. {{ steps == 3 ? "确认上传" : "下一步" }}
  2477. </button>
  2478. </div>
  2479. </div>
  2480. </div>
  2481. </div>
  2482. </div>
  2483. <div style="
  2484. width: calc(100% - 20px);
  2485. background: rgb(255, 255, 255);
  2486. border-radius: 10px;
  2487. " v-if="this.steps == 4">
  2488. <div class="basic_box_success">
  2489. <div class="right_img">
  2490. <img src="../../assets/icon/right.png" alt />
  2491. </div>
  2492. <div style="font-weight: bold">成功</div>
  2493. <!-- <div>您的课程编号</div>
  2494. <div class="number">{{ number }}</div>-->
  2495. <!-- <div class="success_button">
  2496. <div class="look_course" @click="isNoFinsh">
  2497. 邀请老师协同编辑
  2498. </div>
  2499. <div class="attend_others" @click="goCourse">预览课程</div>
  2500. </div> -->
  2501. </div>
  2502. </div>
  2503. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2504. @mouseleave="btnDisplay(false)" v-if="false">
  2505. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2506. goTo(
  2507. '/course?userid=' +
  2508. userid +
  2509. '&oid=' +
  2510. oid +
  2511. '&org=' +
  2512. org +
  2513. '&role=' +
  2514. role
  2515. )
  2516. ">
  2517. 返回课程
  2518. </button>
  2519. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2520. @click="lastSteps">
  2521. {{ steps == 4 ? "返回课程" : "上一步" }}
  2522. </button>
  2523. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2524. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2525. {{ steps == 3 ? "确认上传" : "下一步" }}
  2526. </button>
  2527. </div>
  2528. </div>
  2529. </div>
  2530. </div>
  2531. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2532. class="dialog_diy2 customWidth">
  2533. <div>请复制该链接邀请协同编辑</div>
  2534. <div>http://www.boomyon.com/index-zhang.com</div>
  2535. <span slot="footer" class="dialog-footer">
  2536. <el-button type="primary">复制链接分享</el-button>
  2537. <el-button @click="dialogVisible = false">取消</el-button>
  2538. </span>
  2539. </el-dialog>
  2540. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2541. :before-close="handleClose" class="dialog_diy2 customWidth">
  2542. <el-form>
  2543. <el-form-item label="文档标题">
  2544. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2545. </el-form-item>
  2546. <div>文档简介</div>
  2547. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2548. </el-form>
  2549. <span slot="footer" class="dialog-footer">
  2550. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2551. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2552. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2553. </span>
  2554. </el-dialog>
  2555. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2556. :before-close="handleClose" class="dialog_diy">
  2557. <el-form>
  2558. <el-form-item label="文档标题">
  2559. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2560. </el-form-item>
  2561. <div>文档内容</div>
  2562. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2563. </el-form>
  2564. <span slot="footer" class="dialog-footer">
  2565. <el-button @click="clearChoose">取 消</el-button>
  2566. <el-button type="primary" @click="wordNext()">确定</el-button>
  2567. </span>
  2568. </el-dialog>
  2569. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2570. :before-close="handleClose" class="dialog_diy">
  2571. <el-form>
  2572. <el-form-item label="文本标题">
  2573. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2574. placeholder="请输入文本标题..."></el-input>
  2575. </el-form-item>
  2576. <!-- <div>富文本内容</div> -->
  2577. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2578. </el-form>
  2579. <span slot="footer" class="dialog-footer">
  2580. <el-button @click="clearAttText">取 消</el-button>
  2581. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2582. </span>
  2583. </el-dialog>
  2584. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2585. :before-close="handleClose" class="dialog_diy lineCss">
  2586. <el-form>
  2587. <el-form-item label="标题" :label-width="formLabelWidth">
  2588. <span>
  2589. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2590. </span>
  2591. </el-form-item>
  2592. <el-form-item label="链接" :label-width="formLabelWidth">
  2593. <span>
  2594. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2595. </span>
  2596. </el-form-item>
  2597. </el-form>
  2598. <span slot="footer" class="dialog-footer">
  2599. <el-button @click="clearLine">取 消</el-button>
  2600. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2601. </span>
  2602. </el-dialog>
  2603. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2604. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2605. <div>
  2606. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2607. </div>
  2608. <span slot="footer" class="dialog-footer">
  2609. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2610. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2611. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2612. </span>
  2613. </el-dialog>
  2614. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2615. :before-close="handleClose" class="addNewPP customWidth">
  2616. <div class="people">
  2617. <div class="people_top">
  2618. <div class="people_nav">选择成员</div>
  2619. <div class="people_top_right">
  2620. <div class="people_search">
  2621. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2622. <div class="search_img" @click="searchStudent">
  2623. <img src="../../assets/icon/search.png" alt />
  2624. </div>
  2625. </div>
  2626. </div>
  2627. </div>
  2628. <el-checkbox-group v-model="checkboxList" class="people_name">
  2629. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2630. "暂无学生可选" }}</el-checkbox>
  2631. </el-checkbox-group>
  2632. </div>
  2633. <span slot="footer" class="dialog-footer">
  2634. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2635. <el-button type="primary" @click="isAddPP">确定</el-button>
  2636. </span>
  2637. </el-dialog>
  2638. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2639. :before-close="handleClose" class="addNewPP2">
  2640. <div class="check_classBox">
  2641. <div class="check_class_right">
  2642. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  2643. 全部
  2644. </div>
  2645. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2646. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  2647. {{ item.name }}
  2648. </div>
  2649. </el-tooltip>
  2650. </div>
  2651. <div class="check_class_left">
  2652. <div class="check_class_all_box">
  2653. <div class="check_class_left_title">选择班级</div>
  2654. <div style="display:flex;align-items:center;"><el-checkbox v-model="checkAll"
  2655. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  2656. </div>
  2657. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  2658. <div v-for="item in grade2" :key="item.id" class="class_item">
  2659. <el-checkbox :label="item.id">
  2660. {{ item.name }}
  2661. </el-checkbox>
  2662. </div>
  2663. </el-checkbox-group>
  2664. <div v-if="!grade2.length">暂无数据</div>
  2665. </div>
  2666. </div>
  2667. <span slot="footer" class="dialog-footer">
  2668. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2669. <el-button type="primary" @click="isAddClass">确定</el-button>
  2670. </span>
  2671. </el-dialog>
  2672. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2673. :before-close="handleClose" class="addNewPP customWidth">
  2674. <div class="people">
  2675. <div class="people_top">
  2676. <div class="people_top_right">
  2677. <div class="people_search">
  2678. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2679. <div class="search_img" @click="getTeacher">
  2680. <img src="../../assets/icon/search.png" alt />
  2681. </div>
  2682. </div>
  2683. </div>
  2684. <div class="people_nav">选择成员</div>
  2685. </div>
  2686. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2687. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2688. <div class="t_j_box">
  2689. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2690. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2691. </el-tooltip>
  2692. <el-tooltip placement="top" :content="item.username">
  2693. <span>{{ item.username }}</span>
  2694. </el-tooltip>
  2695. <el-tooltip placement="top" :content="item.school">
  2696. <span>{{ item.school }}</span>
  2697. </el-tooltip>
  2698. </div>
  2699. </el-checkbox>
  2700. </el-checkbox-group>
  2701. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2702. </div>
  2703. <span slot="footer" class="dialog-footer">
  2704. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2705. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2706. </span>
  2707. </el-dialog>
  2708. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2709. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2710. <div style="height:100%">
  2711. <div class="a_add_title" style="
  2712. display: flex;
  2713. flex-direction: row;
  2714. align-items: center;
  2715. justify-content: center;
  2716. ">
  2717. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2718. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2719. </div>
  2720. <div class="a_addBox" style="height:calc(100% - 50px)">
  2721. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2722. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2723. <div class="a_add_checkType">
  2724. <span :class="{
  2725. active:
  2726. askJson.askJson[index1].type == '1' ||
  2727. !askJson.askJson[index1].type,
  2728. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2729. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2730. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2731. </div>
  2732. <div class="a_add_head">
  2733. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2734. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2735. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2736. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2737. </div>
  2738. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2739. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2740. </div>
  2741. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2742. </div>
  2743. <div class="a_add_head_div">
  2744. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2745. </el-button>
  2746. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2747. </div>
  2748. </div>
  2749. <div class="a_add_body">
  2750. <div class="a_add_input" style="flex-direction: column;">
  2751. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2752. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2753. <div style="margin-right: 10px">
  2754. 选项{{ checkIndex + 1 }}
  2755. </div>
  2756. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2757. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2758. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2759. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2760. </div>
  2761. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2762. </div>
  2763. <div class="a_add_body_div">
  2764. <el-button type="primary" size="small"
  2765. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2766. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2767. v-if="askJson.askJson[index1].askItem != 1">删除
  2768. </el-button>
  2769. </div>
  2770. </div>
  2771. </div>
  2772. <!-- <div class="a_add_body_div">
  2773. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2774. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2775. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2776. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2777. </el-button>
  2778. </div> -->
  2779. </div>
  2780. </div>
  2781. </div>
  2782. </div>
  2783. <span slot="footer" class="dialog-footer">
  2784. <el-button @click="closePan(4)">取 消</el-button>
  2785. <el-button type="primary" @click="addAsk">确 定</el-button>
  2786. </span>
  2787. </el-dialog>
  2788. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2789. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2790. <div style="height:100%">
  2791. <!-- <div class="a_add_title" style="
  2792. display: flex;
  2793. flex-direction: row;
  2794. align-items: center;
  2795. justify-content: center;
  2796. ">
  2797. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2798. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2799. </div> -->
  2800. <div class="a_addBox" style="height:100%">
  2801. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2802. <!-- 请输入题目内容 -->
  2803. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2804. v-if="isPasteChoice">智能粘贴</button>
  2805. </div>
  2806. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2807. <div class="a_add_checkType">
  2808. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2809. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2810. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2811. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2812. </div>
  2813. <div class="a_add_head">
  2814. <div class="timuUpImg">
  2815. <div style="display: flex;align-items: center;">
  2816. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2817. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2818. placeholder="请输入题目">
  2819. </el-input> -->
  2820. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2821. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2822. @change="() => { $forceUpdate() }"></textarea>
  2823. </div>
  2824. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2825. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2826. </div>
  2827. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2828. </div>
  2829. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2830. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2831. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2832. </div>
  2833. </div>
  2834. <div class="a_add_head_div">
  2835. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2836. </el-button>
  2837. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2838. </div>
  2839. </div>
  2840. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2841. testJson.testJson[index1].timuList.length
  2842. ">
  2843. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2844. @click.stop="previewImg(timg.src)">
  2845. <img :src="timg.src" alt="" />
  2846. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2847. <img src="../../assets/icon/delete.png" alt="" />
  2848. </div>
  2849. </div>
  2850. </div>
  2851. <div class="a_add_body">
  2852. <div class="a_add_input a_add_input_choice">
  2853. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  2854. @change="() => { $forceUpdate() }">
  2855. <div class="radioBox">
  2856. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2857. .testItem" :key="checkIndex" :label="checkIndex">
  2858. <div style="margin-right: 10px">
  2859. 选项{{ checkIndex + 1 }}
  2860. </div>
  2861. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2862. testJson.testJson[index1].checkList[checkIndex]
  2863. .imgType &&
  2864. testJson.testJson[index1].checkList[checkIndex]
  2865. .imgType == 1
  2866. ">
  2867. <div class="inImg" @click.stop="
  2868. previewImg(
  2869. testJson.testJson[index1].checkList[checkIndex]
  2870. .src
  2871. )
  2872. ">
  2873. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2874. .src
  2875. " lazy />
  2876. <!-- <img :src="
  2877. testJson.testJson[index1].checkList[checkIndex]
  2878. .src
  2879. " alt="" /> -->
  2880. </div>
  2881. </div>
  2882. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2883. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2884. @change="() => { $forceUpdate() }"></textarea>
  2885. <div class="xzUpImg" @click.stop="addImg($event)">
  2886. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2887. <input type="file" accept="image/*" style="display: none"
  2888. @change="beforeUploadTi($event, index1, checkIndex)" />
  2889. </div>
  2890. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2891. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  2892. </div>
  2893. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  2894. </div>
  2895. <div class="a_add_body_div">
  2896. <el-button type="primary" size="small"
  2897. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  2898. <el-button type="primary" size="small"
  2899. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  2900. v-if="testJson.testJson[index1].testItem != 1">删除
  2901. </el-button>
  2902. </div>
  2903. </el-radio>
  2904. </div>
  2905. </el-radio-group>
  2906. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2907. @change="() => { $forceUpdate() }">
  2908. <div class="radioBox">
  2909. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2910. .testItem" :key="checkIndex1" :label="checkIndex1">
  2911. <div style="margin-right: 10px">
  2912. 选项{{ checkIndex1 + 1 }}
  2913. </div>
  2914. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2915. testJson.testJson[index1].checkList[checkIndex1]
  2916. .imgType &&
  2917. testJson.testJson[index1].checkList[checkIndex1]
  2918. .imgType == 1
  2919. ">
  2920. <div class="inImg" @click.stop="
  2921. previewImg(
  2922. testJson.testJson[index1].checkList[checkIndex1]
  2923. .src
  2924. )
  2925. ">
  2926. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2927. .src
  2928. " lazy />
  2929. <!-- <img :src="
  2930. testJson.testJson[index1].checkList[checkIndex1]
  2931. .src
  2932. " alt="" /> -->
  2933. </div>
  2934. </div>
  2935. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2936. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2937. @change="() => { $forceUpdate() }"></textarea>
  2938. <div class="xzUpImg" @click.stop="addImg($event)">
  2939. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2940. <input type="file" accept="image/*" style="display: none"
  2941. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2942. </div>
  2943. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2944. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  2945. </div>
  2946. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  2947. </div>
  2948. <div class="a_add_body_div">
  2949. <el-button type="primary" size="small"
  2950. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  2951. <el-button type="primary" size="small"
  2952. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  2953. v-if="testJson.testJson[index1].testItem != 1">删除
  2954. </el-button>
  2955. </div>
  2956. </el-checkbox>
  2957. </div>
  2958. </el-checkbox-group>
  2959. </div>
  2960. <!-- <div class="a_add_body_div">
  2961. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2962. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2963. v-if="testJson.testJson[index1].testItem != 1">删除
  2964. </el-button>
  2965. </div> -->
  2966. </div>
  2967. </div>
  2968. </div>
  2969. </div>
  2970. <span slot="footer" class="dialog-footer">
  2971. <el-button @click="closePan(45)">取 消</el-button>
  2972. <el-button type="primary" @click="addTest">确 定</el-button>
  2973. </span>
  2974. </el-dialog>
  2975. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2976. :before-close="handleClose" class="dialog_diy addToolsDia">
  2977. <div class="toolChoose">
  2978. <div class="tools">
  2979. <div class="leftTools" style="
  2980. width: 100%;
  2981. padding: 0 0 15px 0;
  2982. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2983. <div style="
  2984. display: flex;
  2985. flex-direction: row;
  2986. align-items: baseline;
  2987. flex-wrap: nowrap;
  2988. justify-content: flex-start;
  2989. position: relative;
  2990. ">
  2991. <div class="chooseWho">
  2992. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2993. 互动类
  2994. </div>
  2995. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2996. 思维类
  2997. </div>
  2998. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2999. 评价类
  3000. </div>
  3001. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3002. 其他
  3003. </div>
  3004. </div>
  3005. </div>
  3006. <div style="min-height: 163px">
  3007. <div class="toolSort" v-if="chapToolsType == 0">
  3008. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  3009. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  3010. <img src="../../assets/icon/secondToolList/library.png" alt />
  3011. <div style="margin: 5px 0">素材库</div>
  3012. </div>
  3013. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3014. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1"><img
  3015. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3016. <!-- <div class="check" @click="chapAddTools(8)">
  3017. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3018. <div class="checkDiv" v-else>
  3019. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3020. </div>
  3021. </div> -->
  3022. </div>
  3023. </div>
  3024. <div class="toolSort" v-if="chapToolsType == 1">
  3025. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  3026. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  3027. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  3028. <div style="margin: 5px 0">思维网格</div>
  3029. </div>
  3030. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3031. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1"><img
  3032. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3033. <!-- <div class="check" @click="chapAddTools(7)">
  3034. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3035. <div class="checkDiv" v-else>
  3036. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3037. </div>
  3038. </div> -->
  3039. </div>
  3040. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  3041. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  3042. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  3043. <div style="margin: 5px 0">电子白板</div>
  3044. </div>
  3045. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3046. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1"><img
  3047. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3048. <!-- <div class="check" @click="chapAddTools(1)">
  3049. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3050. <div class="checkDiv" v-else>
  3051. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3052. </div>
  3053. </div> -->
  3054. </div>
  3055. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  3056. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  3057. <img src="../../assets/icon/secondToolList/note.png" alt />
  3058. <div style="margin: 5px 0">便签</div>
  3059. </div>
  3060. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3061. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1"><img
  3062. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3063. <!-- <div class="check" @click="chapAddTools(2)">
  3064. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3065. <div class="checkDiv" v-else>
  3066. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3067. </div>
  3068. </div> -->
  3069. </div>
  3070. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  3071. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  3072. <img src="../../assets/icon/secondToolList/doc.png" alt />
  3073. <div style="margin: 5px 0">协同文档</div>
  3074. </div>
  3075. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3076. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1"><img
  3077. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3078. <!-- <div class="check" @click="chapAddTools(6)">
  3079. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -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" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  3086. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  3087. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  3088. <div style="margin: 5px 0">思维导图</div>
  3089. </div>
  3090. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3091. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1"><img
  3092. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3093. <!-- <div class="check" @click="chapAddTools(3)">
  3094. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3095. <div class="checkDiv" v-else>
  3096. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3097. </div>
  3098. </div> -->
  3099. </div>
  3100. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }" @click="chapAddTools(31)">
  3101. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  3102. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  3103. <div style="margin: 5px 0">数学画板</div>
  3104. </div>
  3105. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3106. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1"><img
  3107. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3108. <!-- <div class="check" @click="chapAddTools(31)">
  3109. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3110. <div class="checkDiv" v-else>
  3111. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3112. </div>
  3113. </div> -->
  3114. </div>
  3115. </div>
  3116. <div class="toolSort" v-if="chapToolsType == 2">
  3117. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  3118. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  3119. <img src="../../assets/icon/thirdToolList/score.png" alt />
  3120. <div style="margin: 5px 0">量规评分</div>
  3121. </div>
  3122. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3123. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1"><img
  3124. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3125. <!-- <div class="check" @click="chapAddTools(5)">
  3126. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3127. <div class="checkDiv" v-else>
  3128. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3129. </div>
  3130. </div> -->
  3131. </div>
  3132. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  3133. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  3134. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  3135. <div style="margin: 5px 0">问卷调查</div>
  3136. </div>
  3137. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3138. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1"><img
  3139. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3140. <!-- <div class="check" @click="chapAddTools(4)">
  3141. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -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>
  3148. </div>
  3149. <div>
  3150. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3151. v-model="itemTools.toolDetail" />
  3152. </div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. <span slot="footer" class="dialog-footer">
  3157. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3158. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3159. </span>
  3160. </el-dialog>
  3161. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3162. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3163. <div>
  3164. <div class="a_add_title" style="
  3165. display: flex;
  3166. flex-direction: column;
  3167. align-items: flex-start;
  3168. justify-content: center;
  3169. ">
  3170. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3171. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3172. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3173. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3174. </div>
  3175. </div>
  3176. <span slot="footer" class="dialog-footer">
  3177. <el-button @click="closePan(15)">取 消</el-button>
  3178. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3179. </span>
  3180. </el-dialog>
  3181. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3182. :before-close="handleClose" class="dialog_diy">
  3183. <div>
  3184. <div class="a_add_title" style="
  3185. display: flex;
  3186. flex-direction: column;
  3187. align-items: flex-start;
  3188. justify-content: center;
  3189. ">
  3190. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3191. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3192. </div>
  3193. </div>
  3194. <span slot="footer" class="dialog-footer">
  3195. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3196. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3197. </span>
  3198. </el-dialog>
  3199. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3200. :before-close="handleClose" class="dialog_diy">
  3201. <div>
  3202. <div class="fileCss" style="padding-top: 20px">
  3203. <div>
  3204. <button class="info_btn" @click="addImg($event)">
  3205. 选择本地文件
  3206. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3207. </button>
  3208. <div class="spanName">选择本地文件</div>
  3209. </div>
  3210. <div>
  3211. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3212. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3213. <img :src="cover[0].url" alt="" />
  3214. <div class="deletePic" @click="deleteSysPic">
  3215. <img src="../../assets/icon/delete.png" alt="" />
  3216. </div>
  3217. </div>
  3218. <div class="spanName">选择系统文件</div>
  3219. </div>
  3220. <div>
  3221. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3222. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3223. <img :src="cover[0].url" alt="" />
  3224. <div class="deletePic" @click="deleteSysPic">
  3225. <img src="../../assets/icon/delete.png" alt="" />
  3226. </div>
  3227. </div>
  3228. <div class="spanName">选择网络文件</div>
  3229. </div>
  3230. </div>
  3231. <!-- <div class="fileCss">
  3232. </div> -->
  3233. </div>
  3234. <span slot="footer" class="dialog-footer">
  3235. <el-button @click="choosePicVisible = false">取 消</el-button>
  3236. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3237. </span>
  3238. </el-dialog>
  3239. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3240. :before-close="handleClose" class="dialog_diy">
  3241. <div class="cru_selectBox" style="margin: 0">
  3242. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3243. 绘画
  3244. </div>
  3245. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3246. 科技
  3247. </div>
  3248. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3249. 人文
  3250. </div>
  3251. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3252. 艺术
  3253. </div>
  3254. </div>
  3255. <div class="sysPicBox">
  3256. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3257. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3258. </div>
  3259. </div>
  3260. </el-dialog>
  3261. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3262. :before-close="handleClose" class="dialog_diy">
  3263. <div>
  3264. <div class="people_top_right" style="display: flex;align-items: center;">
  3265. <div style="position: relative; width: 100%;">
  3266. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3267. @keyup.enter.native="resetImage()"></el-input>
  3268. <div class="search_img" @click="resetImage" style="right: 10px;">
  3269. <img src="../../assets/icon/search.png" alt />
  3270. </div>
  3271. </div>
  3272. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3273. </div>
  3274. <div class="sysPicBox" v-loading="imageloading">
  3275. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3276. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3277. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3278. </div>
  3279. </div>
  3280. </div>
  3281. </el-dialog>
  3282. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3283. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3284. <div v-if="selectJson" style="height:100%">
  3285. <div class="select_box1" v-if="selectSteps == 1">
  3286. <div class="select_box1_img">
  3287. <div class="select_box1_title">
  3288. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3289. </div>
  3290. <div class="select_box1_add_img">
  3291. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3292. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3293. <img src="../../assets/icon/addPoster.png" alt="" />
  3294. </div>
  3295. <div class="isSysPic" v-else>
  3296. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3297. <div class="deletePic" @click="deleteSelectPic">
  3298. <img src="../../assets/icon/delete.png" alt="" />
  3299. </div>
  3300. </div>
  3301. </div>
  3302. </div>
  3303. <div class="select_box1_select">
  3304. <div class="select_box1_title">
  3305. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3306. </div>
  3307. <div class="select_box1_select_box">
  3308. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3309. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3310. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3311. <div class="select_box1_select_box_add">
  3312. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3313. 添加</el-button>
  3314. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3315. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3316. </div>
  3317. </div>
  3318. </div>
  3319. </div>
  3320. <div v-if="selectSteps == 2" style="height:100%">
  3321. <div class="select_box2">
  3322. <div class="select_box2_title">设置每道题目的正确选项</div>
  3323. <div class="select_box2_box">
  3324. <div class="select_box2_img">
  3325. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3326. </div>
  3327. <div class="select_box2_answer">
  3328. <div class="select_answer_title">根据题目选择对应答案</div>
  3329. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3330. <span>{{ checkIndex + 1 }}、</span>
  3331. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3332. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3333. </el-option>
  3334. </el-select>
  3335. </div>
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. </div>
  3341. <span slot="footer" class="dialog-footer">
  3342. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3343. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3344. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3345. </span>
  3346. </el-dialog>
  3347. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3348. :before-close="handleClose" class="dialog_diy">
  3349. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3350. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3351. <div class="pjCss" style="width: 100%">
  3352. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3353. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3354. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3355. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3356. <div class="remove" @click="deletRateList(eIndex)"></div>
  3357. <div style="width: 100%; display: flex">
  3358. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3359. <el-rate v-model="eItem.score" disabled></el-rate>
  3360. </div>
  3361. <div class="elist_inptu_text" style="align-items: flex-start">
  3362. <span style="min-width: 100px; text-align: right">描述:</span>
  3363. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3364. </div>
  3365. </div>
  3366. </div>
  3367. <div class="addToolFun" @click="addRateList()">
  3368. <div class="addToolImg">
  3369. <img src="../../assets/icon/add.png" alt />
  3370. </div>
  3371. <div>添加</div>
  3372. </div>
  3373. </div>
  3374. </div>
  3375. <span slot="footer" class="dialog-footer">
  3376. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3377. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3378. </span>
  3379. </el-dialog>
  3380. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3381. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3382. <div style="height: 100%;">
  3383. <div class="sentenBox" style="height: 100%;">
  3384. <div class="addSen" @click="addSt">添加题目</div>
  3385. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3386. <div class="sentenTopBox">
  3387. <div class="sentenTop" :index="stIndex + 1">
  3388. <div>题目设置</div>
  3389. <div>
  3390. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3391. </div>
  3392. <div @click="addSen(stIndex)">添加</div>
  3393. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3394. </div>
  3395. </div>
  3396. <div class="cardList">
  3397. <div v-if="st.addSentence.length > 0" class="cardBox">
  3398. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3399. @click="setRightAnswer(s, stIndex, sIndex)">
  3400. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3401. <div>{{ s }}</div>
  3402. </el-tooltip>
  3403. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3404. <img src="../../assets/icon/delete.png" alt="" />
  3405. </div>
  3406. </div>
  3407. </div>
  3408. <div class="card">
  3409. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3410. </div>
  3411. </div>
  3412. <div class="rightCardBox">
  3413. <div>正确顺序</div>
  3414. <div class="rightCardList">
  3415. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3416. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3417. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3418. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3419. <div>{{ r }}</div>
  3420. </el-tooltip>
  3421. </div>
  3422. <div>{{ rIndex + 1 }}</div>
  3423. </div>
  3424. </div>
  3425. <div class="card" v-if="st.rightAnswer.length == 0">
  3426. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3427. </div>
  3428. <div class="card" v-else>
  3429. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3430. </div>
  3431. </div>
  3432. </div>
  3433. </div>
  3434. </div>
  3435. </div>
  3436. <span slot="footer" class="dialog-footer">
  3437. <el-button @click="closePan(47)">取 消</el-button>
  3438. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3439. </span>
  3440. </el-dialog>
  3441. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3442. :before-close="handleClose" class="dialog_diy">
  3443. <el-form>
  3444. <!-- <el-form-item label="文本标题">
  3445. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3446. </el-form-item> -->
  3447. <div>表格内容</div>
  3448. <Table v-model="tableJson.text" @change="change"></Table>
  3449. </el-form>
  3450. <span slot="footer" class="dialog-footer">
  3451. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3452. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3453. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3454. </span>
  3455. </el-dialog>
  3456. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3457. :before-close="handleClose" class="dialog_diy">
  3458. <el-form>
  3459. <!-- <el-form-item label="文本标题">
  3460. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3461. </el-form-item> -->
  3462. <div>文档内容</div>
  3463. <editor-bar v-model="wordJson.text"></editor-bar>
  3464. </el-form>
  3465. <span slot="footer" class="dialog-footer">
  3466. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3467. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3468. </span>
  3469. </el-dialog>
  3470. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3471. :before-close="handleClose" class="dialog_diy">
  3472. <div style="
  3473. width: 100%;
  3474. display: flex;
  3475. flex-direction: row;
  3476. flex-wrap: nowrap;
  3477. align-items: center;
  3478. justify-content: center;
  3479. ">
  3480. <div>班级:</div>
  3481. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3482. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3483. </el-option>
  3484. </el-select>
  3485. </div>
  3486. <span slot="footer" class="dialog-footer">
  3487. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3488. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3489. </span>
  3490. </el-dialog>
  3491. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3492. :before-close="handleClose" class="dialog_diy">
  3493. <div style="
  3494. width: 100%;
  3495. display: flex;
  3496. flex-direction: row;
  3497. flex-wrap: nowrap;
  3498. align-items: center;
  3499. justify-content: center;
  3500. ">
  3501. <div>随机码:</div>
  3502. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3503. </div>
  3504. <span slot="footer" class="dialog-footer">
  3505. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3506. <el-button type="primary" @click="addInvite">确定</el-button>
  3507. </span>
  3508. </el-dialog>
  3509. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3510. :before-close="handleClose" class="dialog_diy">
  3511. <div>
  3512. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3513. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3514. </div>
  3515. <span slot="footer" class="dialog-footer">
  3516. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3517. <el-button type="primary" @click="addPreTime">确定</el-button>
  3518. </span>
  3519. </el-dialog>
  3520. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3521. class="dialog_diy">
  3522. <div>
  3523. <div style="
  3524. width: 100%;
  3525. display: flex;
  3526. flex-direction: row;
  3527. flex-wrap: nowrap;
  3528. align-content: center;
  3529. align-items: center;
  3530. justify-content: space-between;
  3531. ">
  3532. <div style="
  3533. display: flex;
  3534. flex-flow: row nowrap;
  3535. align-items: flex-start;
  3536. width: 100%;
  3537. flex-direction: column;
  3538. flex-wrap: nowrap;
  3539. position: relative;
  3540. ">
  3541. <div class="e_box">
  3542. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3543. <div class="e_card_picture">
  3544. <img src="../../assets/e_picture.png" />
  3545. </div>
  3546. <div class="e_card_name">
  3547. <span>{{ item.title }}</span>
  3548. </div>
  3549. <div class="e_card_btn">
  3550. <span @click="checkEva(item.id, 2)">导入</span>
  3551. </div>
  3552. </div>
  3553. <div class="addEva" @click="openT">
  3554. <img src="../../assets/icon/addEva.png" alt="" />
  3555. </div>
  3556. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3557. 暂无数据
  3558. </div>
  3559. </div>
  3560. </div>
  3561. </div>
  3562. </div>
  3563. <span slot="footer" class="dialog-footer">
  3564. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3565. </span>
  3566. </el-dialog>
  3567. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3568. :before-close="handleClose" class="dialog_diy">
  3569. <div class="groupBox">
  3570. <div v-if="groupJson.group" class="groupContent">
  3571. <div class="groupTitle">请设置小组数量及名称</div>
  3572. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3573. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3574. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3575. <div class="groupBtn">
  3576. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3577. 添加</el-button>
  3578. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3579. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3580. </div>
  3581. </div>
  3582. </div>
  3583. <div class="groupContent">
  3584. <div class="groupTitle">请设置每组人数</div>
  3585. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3586. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3587. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3588. @change="numberPan"></el-input>
  3589. </div>
  3590. </div>
  3591. <span slot="footer" class="dialog-footer">
  3592. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3593. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3594. </span>
  3595. </el-dialog>
  3596. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3597. :before-close="handleClose" class="dialog_diy">
  3598. <div style="
  3599. width: 100%;
  3600. display: flex;
  3601. flex-direction: row;
  3602. flex-wrap: nowrap;
  3603. align-items: center;
  3604. justify-content: center;
  3605. ">
  3606. <div style="min-width: fit-content;">文件名称:</div>
  3607. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3608. </div>
  3609. <span slot="footer" class="dialog-footer">
  3610. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3611. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3612. </span>
  3613. </el-dialog>
  3614. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3615. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3616. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3617. <div class="change_stageBox">
  3618. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3619. <div class="nt_taskBox">
  3620. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3621. <div class="nt_taskName">
  3622. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3623. <span>{{ t.dyName }}</span>
  3624. </el-tooltip>
  3625. </div>
  3626. </div>
  3627. <div class="moveBtn" v-if="unitJson3.length > 1">
  3628. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3629. </div>
  3630. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3631. </div>
  3632. </div>
  3633. </div>
  3634. <span slot="footer" class="dialog-footer">
  3635. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3636. <el-button type="primary" @click="updateChange">确定</el-button>
  3637. </span>
  3638. </el-dialog>
  3639. </div>
  3640. </template>
  3641. <script>
  3642. import "../../common/aws-sdk-2.235.1.min.js";
  3643. import { tools as toolsData } from "../../common/tools.js";
  3644. // import "../../common/aws-sdk-2.99.0.min.js";
  3645. import $ from "jquery";
  3646. import EditorBar from "../../components/tools/wangEnduit";
  3647. import Table from "../../components/tools/table";
  3648. import Mind from "../tools/jsmind2";
  3649. import Time from "../tools/time.vue";
  3650. import Sunburst from "../tools/sunburst";
  3651. import SeeBoard from "../tools/seeBoard";
  3652. import weilaiData from "./components/weilai.js";
  3653. import sourceDialog from "./teacherSource/dialog.vue";
  3654. import interVideo from "./interVideo/index.vue";
  3655. export default {
  3656. components: {
  3657. EditorBar,
  3658. Mind,
  3659. Time,
  3660. Sunburst,
  3661. SeeBoard,
  3662. Table,
  3663. sourceDialog,
  3664. interVideo,
  3665. },
  3666. data() {
  3667. return {
  3668. checkAll: false,
  3669. chooseType: 1,
  3670. checkedCities: [],
  3671. isIndeterminate: true,
  3672. isSysPic: false,
  3673. isSysPic2: false,
  3674. steps: 1,
  3675. nbOrder: 0,
  3676. courseId: "",
  3677. chapToolsType: 0,
  3678. chapTools: [
  3679. {
  3680. tools: [],
  3681. toolDetail: "",
  3682. },
  3683. ],
  3684. line: "",
  3685. lineTitle: "",
  3686. sysPic: [],
  3687. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3688. sentenceList2: [],
  3689. isPushTitleList: [],
  3690. lineCount: 0,
  3691. lineType: 0,
  3692. chapCount: 0,
  3693. courseName: "",
  3694. isTeacherSee: false,
  3695. courseText: "",
  3696. preTime: 0,
  3697. formLabelWidth: "100px",
  3698. choosePicVisible: false,
  3699. sysPicVisible: false,
  3700. sysPicVisible2: false,
  3701. uploadLoading1: false,
  3702. noneBtnImg: false,
  3703. updateBoolean2: false,
  3704. unitIndex: 0,
  3705. taskCount: 0,
  3706. dialogVisible: false,
  3707. dialogVisible1: false,
  3708. dialogVisible2: false,
  3709. dialogVisible3: false,
  3710. dialogVisible4: false,
  3711. dialogVisible5: false,
  3712. dialogVisible6: false,
  3713. dialogVisible7: false,
  3714. dialogVisible8: false,
  3715. dialogVisible9: false,
  3716. dialogVisibleClass: false,
  3717. dialogVisibleMember: false,
  3718. dialogVisibleMp3: false,
  3719. dialogVisibleSelect: false,
  3720. dialogVisibleSentence: false,
  3721. dialogVisibleRate: false,
  3722. dialogVisibleChoice: false,
  3723. dialogVisiblemb: false,
  3724. dialogVisibleInvite: false,
  3725. dialogVisibleSource: false,
  3726. dialogVisibleVideo: false,
  3727. dialogVisibleStageChange: false,
  3728. dialogVisibleupdataVideoT: false,
  3729. isClickColor: 1,
  3730. toolIndexType: "",
  3731. publicTool: 0,
  3732. searchPeople: "",
  3733. searchTN: "",
  3734. userid: this.$route.query.userid,
  3735. oid: this.$route.query.oid,
  3736. org: this.$route.query.org,
  3737. role: this.$route.query.role,
  3738. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3739. dialogVisibleTable: false,
  3740. dialogVisibleWord: false,
  3741. tableJson: { text: "" },
  3742. wordJson: { text: "" },
  3743. dialogVisibleMoreUpload: false,
  3744. dialogVisiblePreTime: false,
  3745. uploadJson: [],
  3746. classJuri: [],
  3747. gradeList: [],
  3748. cover: [], //课程封面
  3749. myWord: [],
  3750. evaJuri: [],
  3751. evalua: "",
  3752. targetArray: [],
  3753. eTitle: "",
  3754. eJson: {},
  3755. fid: "", //一级
  3756. sid: "", //二级
  3757. tid: "", //二级
  3758. typeMode: 1,
  3759. eJSONNum: 0,
  3760. data: {
  3761. meta: {
  3762. name: "example",
  3763. author: "dd@163.com",
  3764. version: "0.2",
  3765. },
  3766. format: "node_array",
  3767. data: [{ id: "root", isroot: true, topic: "" }],
  3768. },
  3769. askJson: {
  3770. askCount: 1,
  3771. askTitle: "",
  3772. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3773. },
  3774. askJson2: {},
  3775. testJson: {},
  3776. testJson2: {},
  3777. selectJson: {},
  3778. selectJson2: {},
  3779. rateJson: [],
  3780. unitJson2: [],
  3781. unitJson3: [],
  3782. unitJson: [
  3783. {
  3784. dyName: "", //单元标题
  3785. chapterInfo: [
  3786. {
  3787. isread: false,
  3788. chapterid: this.guid(),
  3789. title: "",
  3790. courseName: "",
  3791. taskJson: [
  3792. {
  3793. task: "",
  3794. taskDetail: "",
  3795. chapterData: [],
  3796. toolText: "",
  3797. toolChoose: [
  3798. {
  3799. tool: [],
  3800. toolDetail: "",
  3801. toolType: 0,
  3802. askCount: 1,
  3803. askTitle: "",
  3804. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3805. },
  3806. ],
  3807. isShowTools: false,
  3808. askCount: 1,
  3809. isFold: 0,
  3810. askTitle: "",
  3811. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3812. checkJson: [{ checkCount: [], checkPerent: [] }],
  3813. homeworkList: [],
  3814. },
  3815. ],
  3816. itemCount: 1,
  3817. fileList1: [],
  3818. video: [],
  3819. testData: [],
  3820. pData: [],
  3821. templateArray: [],
  3822. },
  3823. ],
  3824. },
  3825. ],
  3826. studentJuri: [],
  3827. teacherJuri: [],
  3828. checkboxList: [],
  3829. checkboxList2: [],
  3830. checkboxList3: [],
  3831. classSearch: "",
  3832. gradeId: "",
  3833. number: "",
  3834. tTitle: "",
  3835. tdetail: "",
  3836. templateC: {},
  3837. AttText: {},
  3838. AttTextType: 0,
  3839. AttTextIndex: 0,
  3840. cTemplate: "",
  3841. CourseType: [],
  3842. CourseType2: [],
  3843. CourseTypeJson: {},
  3844. courseTypeId: [],
  3845. courseTypeSon: [],
  3846. clearArray: [],
  3847. pTypeCheck: [],
  3848. pTypeCheckName: [],
  3849. loading: false,
  3850. toolType: 0,
  3851. inputShow: true,
  3852. inputShow2: true,
  3853. toolIndex: 0,
  3854. cidType: 0,
  3855. answerQ: "",
  3856. answerQ2: "",
  3857. grade: [],
  3858. grade2: [],
  3859. courseUserid: "",
  3860. timer: null,
  3861. timer2: null,
  3862. pasteTimer: null,
  3863. checkId: "",
  3864. isDelete: 1,
  3865. addindex: 0,
  3866. selectSteps: 1,
  3867. groupJson: {},
  3868. dialogVisibleGroup: false,
  3869. rightBoxHeight: 0,
  3870. ManAarray: [],
  3871. checkBoolean: false,
  3872. inviteCode: [],
  3873. inviteId: "",
  3874. icode: "",
  3875. easyArray: [2, 4],
  3876. sourceData: {},
  3877. updateSourcePan: false,
  3878. videoJson: {},
  3879. isBtnDisplay: false,
  3880. isStepDisplay: false,
  3881. isPasteStage: false,
  3882. isPasteTask: false,
  3883. isPasteChoice: false,
  3884. imageList: [],
  3885. imageloading: false,
  3886. searchImageValue: "",
  3887. ppage: 1,
  3888. toolsData: toolsData,
  3889. oldIndex: 0,
  3890. oldData: null,
  3891. newIndex: "",
  3892. };
  3893. },
  3894. directives: {
  3895. autoHeight: {
  3896. update(el, binding) {
  3897. const { value } = binding
  3898. if (value && typeof value === 'number') {
  3899. el.style.height = `${value}px`
  3900. } else {
  3901. el.style.height = 'auto'
  3902. }
  3903. },
  3904. componentUpdated(el) {
  3905. el.style.height = `${el.scrollHeight + 5}px`
  3906. },
  3907. },
  3908. },
  3909. computed: {
  3910. // rightBoxHeight: function () {
  3911. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3912. // },
  3913. offsetLetfPx: function () {
  3914. //addnum可以直接在模板语法里面用,相当于data内的值
  3915. return (
  3916. $(".cru_select")[this.unitIndex] &&
  3917. $(".cru_select")[this.unitIndex].offsetLeft + 5
  3918. );
  3919. },
  3920. getMan2() {
  3921. return function (people) {
  3922. let _people = people;
  3923. let _people2 = "";
  3924. if (this.ManAarray.length) {
  3925. for (var i = 0; i < this.ManAarray.length; i++) {
  3926. if (this.ManAarray[i].userid == people) {
  3927. _people2 = this.ManAarray[i].name;
  3928. break;
  3929. }
  3930. }
  3931. }
  3932. if (people == this.courseUserid) {
  3933. return "";
  3934. }
  3935. return this.ManAarray.length ? _people2 : "";
  3936. };
  3937. },
  3938. getListMan2() {
  3939. return function (list) {
  3940. let _people2 = [];
  3941. if (this.ManAarray.length) {
  3942. for (var j = 0; j < list.length; j++) {
  3943. let people = list[j];
  3944. for (var i = 0; i < this.ManAarray.length; i++) {
  3945. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  3946. _people2.push(this.ManAarray[i].name);
  3947. break;
  3948. }
  3949. }
  3950. }
  3951. }
  3952. return this.ManAarray.length ? _people2.join("、") : "";
  3953. };
  3954. },
  3955. isInvite() {
  3956. return function (cid) {
  3957. let array = [];
  3958. for (var i = 0; i < this.inviteCode.length; i++) {
  3959. array.push(this.inviteCode[i].cid);
  3960. }
  3961. return array.indexOf(cid) != -1;
  3962. };
  3963. },
  3964. getInviteCodeC() {
  3965. return function (cid) {
  3966. let array = [];
  3967. for (var i = 0; i < this.inviteCode.length; i++) {
  3968. array.push(this.inviteCode[i].cid);
  3969. }
  3970. return this.inviteCode[array.indexOf(cid)].ic;
  3971. };
  3972. },
  3973. getClassC() {
  3974. return function (c) {
  3975. let _c2 = "";
  3976. if (this.grade.length) {
  3977. for (var i = 0; i < this.grade.length; i++) {
  3978. if (this.grade[i].id == c) {
  3979. _c2 = this.grade[i].name;
  3980. break;
  3981. }
  3982. }
  3983. }
  3984. return this.grade.length ? _c2 : "";
  3985. };
  3986. },
  3987. getListClassC() {
  3988. return function (list) {
  3989. let _c2 = [];
  3990. if (this.grade.length) {
  3991. for (var j = 0; j < list.length; j++) {
  3992. let c = list[j]
  3993. for (var i = 0; i < this.grade.length; i++) {
  3994. if (this.grade[i].id == c) {
  3995. _c2.push(this.grade[i].name);
  3996. break;
  3997. }
  3998. }
  3999. }
  4000. }
  4001. return this.grade.length ? _c2.join('、') : "";
  4002. };
  4003. },
  4004. },
  4005. watch: {
  4006. unitIndex(newValue, oldValue) {
  4007. if (this.isDelete == 2) {
  4008. this.isDelete = 1;
  4009. return;
  4010. }
  4011. if (this.cid != "") {
  4012. let _unitIndex = oldValue;
  4013. if (
  4014. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4015. JSON.stringify(this.unitJson[_unitIndex])
  4016. ) {
  4017. this.$refs.rightboxR.scrollTop = 0;
  4018. return;
  4019. }
  4020. let cPan = 1;
  4021. for (
  4022. var j = 0;
  4023. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4024. j++
  4025. ) {
  4026. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4027. j
  4028. ].proVisible = false;
  4029. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4030. j
  4031. ].proVisible2 = false;
  4032. if (
  4033. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4034. .length > 1
  4035. ) {
  4036. for (
  4037. var z = 0;
  4038. z <
  4039. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4040. .length;
  4041. z++
  4042. ) {
  4043. if (
  4044. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4045. .toolChoose[z].tool.length
  4046. ) {
  4047. this.$message.error("请把工具添加完整");
  4048. cPan = 2;
  4049. break;
  4050. }
  4051. }
  4052. }
  4053. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4054. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4055. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4056. (ele) => {
  4057. return ele.value != "";
  4058. }
  4059. );
  4060. }
  4061. }
  4062. if (cPan == 2) {
  4063. this.unitIndex = oldValue;
  4064. return;
  4065. }
  4066. for (var i = 0; i < this.unitJson.length; i++) {
  4067. if (this.addindex != i) {
  4068. delete this.unitJson[i].isUpdate;
  4069. }
  4070. }
  4071. this.$refs.rightboxR.scrollTop = 0;
  4072. this.addindex = -1;
  4073. let params = [
  4074. {
  4075. cid: this.cid,
  4076. chapters: JSON.stringify(this.unitJson),
  4077. uid: this.userid,
  4078. unitIndex: _unitIndex,
  4079. },
  4080. ];
  4081. this.ajax
  4082. .post(this.$store.state.api + "updateWorkNew4", params)
  4083. .then((res) => {
  4084. // this.$message({
  4085. // message: "修改成功",
  4086. // type: "success",
  4087. // });
  4088. // this.courseId = this.cid;
  4089. })
  4090. .catch((err) => {
  4091. this.$message.error("网络不佳");
  4092. console.error(err);
  4093. });
  4094. }
  4095. },
  4096. steps(newValue, old) {
  4097. if (newValue == 4) {
  4098. let cPan = 1;
  4099. for (var i = 0; i < this.unitJson.length; i++) {
  4100. for (
  4101. var j = 0;
  4102. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4103. j++
  4104. ) {
  4105. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4106. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4107. if (
  4108. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4109. ) {
  4110. for (
  4111. var z = 0;
  4112. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4113. z++
  4114. ) {
  4115. if (
  4116. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4117. .length
  4118. ) {
  4119. this.$message.error("请把工具添加完整");
  4120. cPan = 2;
  4121. break;
  4122. }
  4123. }
  4124. }
  4125. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4126. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4127. i
  4128. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4129. return ele.value != "";
  4130. });
  4131. }
  4132. }
  4133. }
  4134. this.inputShow = true;
  4135. if (cPan == 2) {
  4136. this.steps = old;
  4137. return;
  4138. }
  4139. this.goTo(
  4140. "/course?userid=" +
  4141. this.userid +
  4142. "&oid=" +
  4143. this.oid +
  4144. "&org=" +
  4145. this.org +
  4146. "&role=" +
  4147. this.role
  4148. );
  4149. }
  4150. },
  4151. },
  4152. methods: {
  4153. openAI() {
  4154. window.parent.postMessage({ tools: "64" }, "*");
  4155. },
  4156. setMan() {
  4157. // let teacherJuri = this.teacherJuri2;
  4158. this.ManAarray = [];
  4159. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4160. if (_user.indexOf(this.userid) == -1) {
  4161. _user.push(this.userid);
  4162. }
  4163. if (_user.indexOf(this.courseUserid) == -1) {
  4164. _user.push(this.courseUserid);
  4165. }
  4166. let params = {
  4167. uid: _user.join(","),
  4168. };
  4169. this.ajax
  4170. .get(this.$store.state.api + "getAllUserById", params)
  4171. .then((res) => {
  4172. let teacherJuri = res.data[0];
  4173. this.ManAarray = teacherJuri;
  4174. })
  4175. .catch((err) => {
  4176. console.error(err);
  4177. });
  4178. },
  4179. previewImg(url) {
  4180. this.$hevueImgPreview(url);
  4181. },
  4182. btnDisplay(bool) {
  4183. this.isBtnDisplay = bool
  4184. },
  4185. stepDisplay(bool) {
  4186. this.isStepDisplay = bool
  4187. },
  4188. scrollChange() {
  4189. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4190. },
  4191. addHw(e) {
  4192. var el = e.currentTarget;
  4193. el.getElementsByTagName("input")[0].click();
  4194. },
  4195. change(val) {
  4196. if (this.dialogVisible1) {
  4197. this.tdetail = val
  4198. } else if (this.dialogVisible6) {
  4199. this.AttText.text = val
  4200. } else if (this.dialogVisible2) {
  4201. this.cTemplate = val
  4202. } else if (this.dialogVisibleTable) {
  4203. this.tableJson.text = val
  4204. }
  4205. this.$forceUpdate();
  4206. console.log(val);
  4207. },
  4208. change2(val) {
  4209. console.log(val);
  4210. this.$forceUpdate();
  4211. },
  4212. handleClose(done) {
  4213. done();
  4214. },
  4215. closePan(tool) {
  4216. if (tool == 15) {
  4217. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4218. this.dialogVisible8 = false
  4219. } else {
  4220. this.closeConfirm(tool);
  4221. }
  4222. } else if (tool == 4) {
  4223. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4224. this.dialogVisible5 = false
  4225. } else {
  4226. this.closeConfirm(tool);
  4227. }
  4228. } else if (tool == 45) {
  4229. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4230. this.dialogVisibleChoice = false
  4231. } else {
  4232. this.closeConfirm(tool);
  4233. }
  4234. } else if (tool == 41) {
  4235. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4236. this.dialogVisibleSelect = false
  4237. } else {
  4238. this.closeConfirm(tool);
  4239. }
  4240. } else if (tool == 47) {
  4241. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4242. this.dialogVisibleSentence = false
  4243. } else {
  4244. this.closeConfirm(tool);
  4245. }
  4246. }
  4247. },
  4248. closeConfirm(tool) {
  4249. this
  4250. .$confirm("是否保存已编辑内容?", "提示", {
  4251. confirmButtonText: "保存",
  4252. cancelButtonText: "不保存",
  4253. type: "warning",
  4254. })
  4255. .then(() => {
  4256. if (tool == 15) {
  4257. this.addAnswer();
  4258. } else if (tool == 4) {
  4259. this.addAsk();
  4260. } else if (tool == 45) {
  4261. this.addTest();
  4262. } else if (tool == 41) {
  4263. this.addSelectAnswer();
  4264. } else if (tool == 47) {
  4265. this.addSentenceTool();
  4266. }
  4267. })
  4268. .catch(() => {
  4269. if (tool == 15) {
  4270. this.dialogVisible8 = false;
  4271. } else if (tool == 4) {
  4272. this.dialogVisible5 = false;
  4273. } else if (tool == 45) {
  4274. this.dialogVisibleChoice = false;
  4275. } else if (tool == 41) {
  4276. this.dialogVisibleSelect = false;
  4277. } else if (tool == 47) {
  4278. this.dialogVisibleSentence = false;
  4279. }
  4280. });
  4281. },
  4282. imgChange2(i, j) {
  4283. var _tmp = this.testJson.testJson[i].checkList[j];
  4284. this.noneBtnImg = _tmp.length >= 1;
  4285. },
  4286. imgChange3(i) {
  4287. var _tmp = this.testJson.testJson[i];
  4288. this.noneBtnImg = _tmp.length >= 1;
  4289. },
  4290. imgChange1(file, fileList, type, itemTaskIndex) {
  4291. if (type == 1) {
  4292. var _tmp = this.cover;
  4293. } else if (
  4294. type == 2 ||
  4295. type == 3 ||
  4296. type == 6 ||
  4297. type == 7 ||
  4298. type == 8
  4299. ) {
  4300. var _tmp =
  4301. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4302. .chapterData;
  4303. } else if (type == 4) {
  4304. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4305. } else {
  4306. var _tmp =
  4307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4308. .homeworkList;
  4309. }
  4310. this.noneBtnImg = _tmp.length >= 1;
  4311. },
  4312. goTo(path) {
  4313. this.$router.push(path);
  4314. },
  4315. guid() {
  4316. var _num,
  4317. i,
  4318. _guid = "";
  4319. for (i = 0; i < 32; i++) {
  4320. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4321. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4322. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4323. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4324. _guid += "-";
  4325. }
  4326. }
  4327. return _guid;
  4328. },
  4329. retrunCourse() {
  4330. this
  4331. .$confirm("是否保存已编辑内容?", "提示", {
  4332. confirmButtonText: "保存",
  4333. cancelButtonText: "不保存",
  4334. distinguishCancelAndClose: true,
  4335. type: "warning",
  4336. })
  4337. .then(() => {
  4338. if (this.cid == "" || this.cid == undefined) {
  4339. if (this.courseName == "") {
  4340. this.$message.error("请补充填写课程名称");
  4341. return;
  4342. } else {
  4343. this.addWork();
  4344. }
  4345. this.steps = 4
  4346. } else {
  4347. if (this.courseName == "") {
  4348. this.$message.error("请补充填写课程名称");
  4349. return;
  4350. } else {
  4351. if (this.userid != this.courseUserid && this.role != "1") {
  4352. this.updateWork2();
  4353. } else {
  4354. this.updateWork();
  4355. }
  4356. this.steps = 4
  4357. }
  4358. }
  4359. })
  4360. .catch((v) => {
  4361. console.log(v)
  4362. if(v == "cancel"){
  4363. this.goTo(
  4364. "/course?userid=" +
  4365. this.userid +
  4366. "&oid=" +
  4367. this.oid +
  4368. "&org=" +
  4369. this.org +
  4370. "&role=" +
  4371. this.role
  4372. );
  4373. }
  4374. });
  4375. },
  4376. lastSteps() {
  4377. if (this.steps == 4) {
  4378. this.goTo(
  4379. "/course?userid=" +
  4380. this.userid +
  4381. "&oid=" +
  4382. this.oid +
  4383. "&org=" +
  4384. this.org +
  4385. "&role=" +
  4386. this.role
  4387. );
  4388. } else {
  4389. if (this.cidType == 0) {
  4390. this.steps--;
  4391. if (this.steps == 1) {
  4392. setTimeout(() => {
  4393. this.checkEva(this.checkId);
  4394. setTimeout(() => {
  4395. this.checkEva(this.checkId);
  4396. }, 100);
  4397. }, 100);
  4398. }
  4399. } else {
  4400. if (this.steps == 3) {
  4401. this.steps = 1;
  4402. setTimeout(() => {
  4403. this.checkEva(this.checkId);
  4404. setTimeout(() => {
  4405. this.checkEva(this.checkId);
  4406. }, 100);
  4407. }, 100);
  4408. }
  4409. }
  4410. }
  4411. },
  4412. navSteps(s) {
  4413. if (this.courseName == "") {
  4414. this.$message.error("请补充填写课程名称");
  4415. return;
  4416. }
  4417. if (this.cidType == 0) {
  4418. if (this.steps == 1) {
  4419. if (this.cid == "" || this.cid == undefined) {
  4420. this.addWork();
  4421. } else {
  4422. if (this.userid != this.courseUserid && this.role != "1") {
  4423. // this.updateWork2();
  4424. } else {
  4425. this.updateWork();
  4426. }
  4427. }
  4428. }
  4429. if (s == 1) {
  4430. this.steps = 1;
  4431. setTimeout(() => {
  4432. this.checkEva(this.checkId);
  4433. setTimeout(() => {
  4434. this.checkEva(this.checkId);
  4435. }, 100);
  4436. }, 100);
  4437. }
  4438. if (s == 2) {
  4439. this.steps = 2;
  4440. }
  4441. if (s == 3) {
  4442. this.cTemplate = this.templateC.content;
  4443. this.dialogVisible2 = false;
  4444. this.steps = 3;
  4445. this.isClickColor = 1
  4446. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4447. this.$forceUpdate();
  4448. setTimeout(() => {
  4449. this.checkEva(this.checkId);
  4450. setTimeout(() => {
  4451. this.checkEva(this.checkId);
  4452. }, 100);
  4453. }, 1000);
  4454. }
  4455. } else {
  4456. if (this.steps == 1) {
  4457. if (this.cid == "" || this.cid == undefined) {
  4458. this.addWork();
  4459. } else {
  4460. if (this.userid != this.courseUserid && this.role != "1") {
  4461. // this.updateWork2();
  4462. } else {
  4463. this.updateWork();
  4464. }
  4465. }
  4466. }
  4467. if (s == 1) {
  4468. this.steps = 1;
  4469. setTimeout(() => {
  4470. this.checkEva(this.checkId);
  4471. setTimeout(() => {
  4472. this.checkEva(this.checkId);
  4473. }, 100);
  4474. }, 100);
  4475. }
  4476. if (s == 3) {
  4477. this.cTemplate = this.templateC.content;
  4478. this.dialogVisible2 = false;
  4479. this.steps = 3;
  4480. this.isClickColor = 1
  4481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4482. this.$forceUpdate();
  4483. setTimeout(() => {
  4484. this.checkEva(this.checkId);
  4485. setTimeout(() => {
  4486. this.checkEva(this.checkId);
  4487. }, 100);
  4488. }, 1000);
  4489. }
  4490. }
  4491. this.$refs.stepBox.scrollTop = 0;
  4492. },
  4493. nextSteps() {
  4494. if (this.cidType == 1) {
  4495. if (this.steps == 1) {
  4496. if (this.courseName != "") {
  4497. this.steps = 3;
  4498. this.isClickColor = 1
  4499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4500. this.$forceUpdate();
  4501. setTimeout(() => {
  4502. this.checkEva(this.checkId);
  4503. setTimeout(() => {
  4504. this.checkEva(this.checkId);
  4505. }, 100);
  4506. }, 1000);
  4507. if (this.cid == "" || this.cid == undefined) {
  4508. this.addWork();
  4509. } else {
  4510. if (this.userid != this.courseUserid && this.role != "1") {
  4511. // this.updateWork2();
  4512. } else {
  4513. this.updateWork();
  4514. }
  4515. }
  4516. } else {
  4517. this.$message.error("请补充填写课程名称");
  4518. return;
  4519. }
  4520. } else if (this.steps == 3) {
  4521. if (this.cid == "" || this.cid == undefined) {
  4522. if (this.courseName == "") {
  4523. this.$message.error("请补充填写课程名称");
  4524. return;
  4525. } else {
  4526. this.addWork();
  4527. this.steps++;
  4528. }
  4529. } else {
  4530. if (this.courseName == "") {
  4531. this.$message.error("请补充填写课程名称");
  4532. return;
  4533. } else {
  4534. if (this.userid != this.courseUserid && this.role != "1") {
  4535. this.updateWork2();
  4536. } else {
  4537. this.updateWork();
  4538. }
  4539. this.steps++;
  4540. }
  4541. }
  4542. }
  4543. } else {
  4544. if (this.steps == 1) {
  4545. if (this.courseName != "") {
  4546. if (this.cid == "" || this.cid == undefined) {
  4547. this.addWork();
  4548. } else {
  4549. if (this.userid != this.courseUserid && this.role != "1") {
  4550. // this.updateWork2();
  4551. } else {
  4552. this.updateWork();
  4553. }
  4554. }
  4555. this.steps++;
  4556. } else {
  4557. this.$message.error("请补充填写课程名称");
  4558. return;
  4559. }
  4560. } else if (this.steps == 2) {
  4561. if (this.templateC.id != "" || this.templateC.id != undefined) {
  4562. this.cTemplate = this.templateC.content;
  4563. }
  4564. this.dialogVisible2 = false;
  4565. this.steps++;
  4566. setTimeout(() => {
  4567. this.checkEva(this.checkId);
  4568. setTimeout(() => {
  4569. this.checkEva(this.checkId);
  4570. }, 100);
  4571. }, 1000);
  4572. } else if (this.steps == 3) {
  4573. if (this.cid == "" || this.cid == undefined) {
  4574. if (this.courseName == "") {
  4575. this.$message.error("请补充填写课程名称");
  4576. return;
  4577. } else {
  4578. this.addWork();
  4579. this.steps++;
  4580. }
  4581. } else {
  4582. if (this.courseName == "") {
  4583. this.$message.error("请补充填写课程名称");
  4584. return;
  4585. } else {
  4586. if (this.userid != this.courseUserid && this.role != "1") {
  4587. this.updateWork2();
  4588. } else {
  4589. this.updateWork();
  4590. }
  4591. this.steps++;
  4592. }
  4593. }
  4594. }
  4595. }
  4596. this.$refs.stepBox.scrollTop = 0;
  4597. },
  4598. unitSet(i) {
  4599. this.unitIndex = i;
  4600. this.isClickColor = 1
  4601. // this.$refs.rightboxR.scrollTop = 0;
  4602. this.$refs.unitBox.scrollTop = 0
  4603. },
  4604. time() {
  4605. if (!this.now) {
  4606. this.now = new Date().getTime();
  4607. return true;
  4608. } else {
  4609. let time = new Date().getTime();
  4610. if (time - this.now > 3000) {
  4611. this.now = time;
  4612. return true;
  4613. } else {
  4614. return false;
  4615. }
  4616. }
  4617. },
  4618. deleteUnit(i) {
  4619. var _this = this;
  4620. if (_this.time()) {
  4621. _this
  4622. .$confirm("确定删除此单元吗?", "提示", {
  4623. confirmButtonText: "确定",
  4624. cancelButtonText: "取消",
  4625. type: "warning",
  4626. })
  4627. .then(() => {
  4628. _this.isDelete = 2;
  4629. // _this.unitIndex = _this.unitIndex - 1;
  4630. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  4631. // _this.$message.success("删除成功");
  4632. })
  4633. .catch(() => {
  4634. return;
  4635. });
  4636. }
  4637. },
  4638. deleteWork(chapid) {
  4639. let params = [
  4640. {
  4641. cid: this.cid,
  4642. chapters: JSON.stringify(this.unitJson),
  4643. uid: this.userid,
  4644. chapid: chapid,
  4645. },
  4646. ];
  4647. this.ajax
  4648. .post(this.$store.state.api + "deleteWork", params)
  4649. .then((res) => {
  4650. this.$message({
  4651. message: "删除成功",
  4652. type: "success",
  4653. });
  4654. this.unitJson.splice(this.unitIndex, 1);
  4655. this.unitIndex = this.unitIndex - 1;
  4656. })
  4657. .catch((err) => {
  4658. this.$message.error("网络不佳");
  4659. console.error(err);
  4660. });
  4661. },
  4662. deleteTool(itemTaskIndex, i) {
  4663. var _this = this;
  4664. if (_this.time()) {
  4665. _this
  4666. .$confirm("确定删除此工具吗?", "提示", {
  4667. confirmButtonText: "确定",
  4668. cancelButtonText: "取消",
  4669. type: "warning",
  4670. })
  4671. .then(() => {
  4672. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4673. itemTaskIndex
  4674. ].toolChoose.splice(i, 1);
  4675. _this.$message.success("删除成功");
  4676. })
  4677. .catch(() => {
  4678. return;
  4679. });
  4680. }
  4681. },
  4682. deleteSentence(i) {
  4683. var _this = this;
  4684. _this
  4685. .$confirm("确定删除此题目吗?", "提示", {
  4686. confirmButtonText: "确定",
  4687. cancelButtonText: "取消",
  4688. type: "warning",
  4689. })
  4690. .then(() => {
  4691. _this.sentenceList.splice(i, 1);
  4692. _this.$message.success("删除成功");
  4693. })
  4694. .catch(() => {
  4695. return;
  4696. });
  4697. },
  4698. deleteS(s, i, j) {
  4699. this.sentenceList[i].addSentence.splice(j, 1);
  4700. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  4701. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  4702. this.sentenceList[i].rightAnswer.splice(a, 1);
  4703. }
  4704. },
  4705. openT() {
  4706. window.parent.postMessage({ tools: "25" }, "*");
  4707. },
  4708. deleteTask(i) {
  4709. var _this = this;
  4710. if (_this.time()) {
  4711. _this
  4712. .$confirm(
  4713. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  4714. 1 ==
  4715. i
  4716. ? "确定删除此任务吗?"
  4717. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  4718. "提示",
  4719. {
  4720. confirmButtonText: "确定",
  4721. cancelButtonText: "取消",
  4722. type: "warning",
  4723. }
  4724. )
  4725. .then(() => {
  4726. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  4727. i,
  4728. 1
  4729. );
  4730. _this.$message.success("删除成功");
  4731. })
  4732. .catch(() => {
  4733. return;
  4734. });
  4735. }
  4736. },
  4737. handlePictureCardPreview(file) {
  4738. this.dialogImageUrl = file.url;
  4739. },
  4740. clean(i, c) {
  4741. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  4742. },
  4743. handle_remove1(file, fileList, type) {
  4744. var _tmp = this.cover;
  4745. // for (var i = 0, len = _tmp.length; i < len; i++) {
  4746. // if (_tmp[i].uid == file.uid) {
  4747. // _tmp.splice(i, 1);
  4748. // break;
  4749. // }
  4750. // this.cover = _tmp;
  4751. // }
  4752. this.cover = [];
  4753. this.noneBtnImg = this.cover.length >= 1;
  4754. this.isSysPic = false;
  4755. this.isSysPic2 = false;
  4756. this.$forceUpdate();
  4757. },
  4758. addImg(e) {
  4759. var el = e.currentTarget;
  4760. el.getElementsByTagName("input")[0].click();
  4761. e.target.value = "";
  4762. },
  4763. addChaptersTools(i) {
  4764. this.chapTools = [
  4765. {
  4766. tools: [],
  4767. toolDetail: "",
  4768. },
  4769. ];
  4770. this.chapCount = i;
  4771. this.dialogVisible4 = true;
  4772. },
  4773. isNoFinsh() {
  4774. this.$message.warning("功能正在开发中");
  4775. },
  4776. addAttText(i) {
  4777. this.AttText = {
  4778. title: "",
  4779. text: "",
  4780. };
  4781. this.taskCount = i;
  4782. this.AttTextType = 0;
  4783. this.$forceUpdate();
  4784. this.dialogVisible6 = true;
  4785. setTimeout(() => {
  4786. this.$refs['fuInput'].focus();
  4787. }, 100);
  4788. },
  4789. openLine(i) {
  4790. this.line = "";
  4791. this.lineCount = i;
  4792. this.lineType = 0;
  4793. this.$forceUpdate();
  4794. this.dialogVisible7 = true;
  4795. },
  4796. pasteLine(i) {
  4797. navigator.clipboard
  4798. .readText()
  4799. .then((v) => {
  4800. console.log("获取剪贴板成功:", v);
  4801. const html = v;
  4802. const regex = /src="(.*?)"/g;
  4803. const match = regex.exec(html);
  4804. if (match && match[1]) {
  4805. console.log(match[1]);
  4806. this.$message.success("粘贴成功");
  4807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4808. i
  4809. ].chapterData.push({
  4810. name: "链接",
  4811. title: "嵌入代码",
  4812. url: match[1],
  4813. type: 8,
  4814. });
  4815. } else {
  4816. // console.log("未找到包含 src 属性的 iframe");
  4817. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  4818. }
  4819. })
  4820. .catch((v) => {
  4821. console.log("获取剪贴板失败: ", v);
  4822. });
  4823. },
  4824. openSource(i) {
  4825. this.lineCount = i;
  4826. this.sourceData = {};
  4827. this.dialogVisibleSource = true;
  4828. this.updateSourcePan = false;
  4829. },
  4830. addSource() {
  4831. if (!Object.keys(this.sourceData).length) {
  4832. this.$message.error("请选择要上传的资源");
  4833. return;
  4834. }
  4835. let keys = Object.keys(this.sourceData);
  4836. for (var i = 0; i < keys.length; i++) {
  4837. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4838. this.lineCount
  4839. ].chapterData.push({
  4840. name: "链接",
  4841. title: this.sourceData[keys[i]].name,
  4842. url: this.sourceData[keys[i]].url,
  4843. type: 14,
  4844. id: keys[i]
  4845. });
  4846. }
  4847. this.$forceUpdate();
  4848. this.dialogVisibleSource = false;
  4849. },
  4850. updateSource() {
  4851. if (!Object.keys(this.sourceData).length) {
  4852. this.$message.error("请选择要上传的资源");
  4853. return;
  4854. }
  4855. let keys = Object.keys(this.sourceData);
  4856. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4857. this.taskCount
  4858. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  4859. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4860. this.taskCount
  4861. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  4862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4863. this.taskCount
  4864. ].chapterData[this.lineCount].id = keys[0];
  4865. this.updateSourcePan = false;
  4866. this.$forceUpdate();
  4867. this.dialogVisibleSource = false;
  4868. },
  4869. deleteM(i, j) {
  4870. this.testJson.testJson[i].timuList.splice(j, 1);
  4871. },
  4872. beforeUploadTiMu(event, i) {
  4873. const loading = this.openLoading();
  4874. var file = event.target.files[0];
  4875. var credentials = {
  4876. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4877. secretAccessKey: "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",
  4878. }; //秘钥形式的登录上传
  4879. window.AWS.config.update(credentials);
  4880. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4881. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4882. var _this = this;
  4883. if (file) {
  4884. var params = {
  4885. Key:
  4886. file.name.split(".")[0] +
  4887. new Date().getTime() +
  4888. "." +
  4889. file.name.split(".")[file.name.split(".").length - 1],
  4890. ContentType: file.type,
  4891. Body: file,
  4892. "Access-Control-Allow-Credentials": "*",
  4893. ACL: "public-read",
  4894. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4895. var options = {
  4896. partSize: 2048 * 1024 * 1024,
  4897. queueSize: 2,
  4898. leavePartsOnError: true,
  4899. };
  4900. bucket
  4901. .upload(params, options)
  4902. .on("httpUploadProgress", function (evt) {
  4903. //这里可以写进度条
  4904. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4905. })
  4906. .send(function (err, data) {
  4907. loading.close();
  4908. if (err) {
  4909. _this.$message.error("上传失败");
  4910. } else {
  4911. if (_this.testJson.testJson[i].timuList) {
  4912. _this.testJson.testJson[i].timuList.push({
  4913. src: data.Location,
  4914. });
  4915. } else {
  4916. _this.testJson.testJson[i].timuList = [];
  4917. _this.testJson.testJson[i].timuList.push({
  4918. src: data.Location,
  4919. });
  4920. }
  4921. _this.imgChange3(i);
  4922. _this.$forceUpdate();
  4923. }
  4924. });
  4925. }
  4926. },
  4927. beforeUploadTi(event, i, j) {
  4928. const loading = this.openLoading();
  4929. var file = event.target.files[0];
  4930. var credentials = {
  4931. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4932. secretAccessKey: "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",
  4933. }; //秘钥形式的登录上传
  4934. window.AWS.config.update(credentials);
  4935. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4936. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4937. var _this = this;
  4938. if (file) {
  4939. var params = {
  4940. Key:
  4941. file.name.split(".")[0] +
  4942. new Date().getTime() +
  4943. "." +
  4944. file.name.split(".")[file.name.split(".").length - 1],
  4945. ContentType: file.type,
  4946. Body: file,
  4947. "Access-Control-Allow-Credentials": "*",
  4948. ACL: "public-read",
  4949. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4950. var options = {
  4951. partSize: 2048 * 1024 * 1024,
  4952. queueSize: 2,
  4953. leavePartsOnError: true,
  4954. };
  4955. bucket
  4956. .upload(params, options)
  4957. .on("httpUploadProgress", function (evt) {
  4958. //这里可以写进度条
  4959. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4960. })
  4961. .send(function (err, data) {
  4962. loading.close();
  4963. if (err) {
  4964. _this.$message.error("上传失败");
  4965. } else {
  4966. _this.testJson.testJson[i].checkList[j] = {};
  4967. _this.testJson.testJson[i].checkList[j].src = data.Location;
  4968. _this.testJson.testJson[i].checkList[j].imgType = 1;
  4969. _this.imgChange2(i, j);
  4970. _this.$forceUpdate();
  4971. }
  4972. });
  4973. }
  4974. },
  4975. beforeUpload1(event, type) {
  4976. // const loading = this.openLoading();
  4977. var file = event.target.files[0];
  4978. var credentials = {
  4979. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4980. secretAccessKey: "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",
  4981. }; //秘钥形式的登录上传
  4982. window.AWS.config.update(credentials);
  4983. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4984. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4985. var _this = this;
  4986. if (file) {
  4987. var params = {
  4988. Key:
  4989. file.name.split(".")[0] +
  4990. new Date().getTime() +
  4991. "." +
  4992. file.name.split(".")[file.name.split(".").length - 1],
  4993. ContentType: file.type,
  4994. Body: file,
  4995. "Access-Control-Allow-Credentials": "*",
  4996. ACL: "public-read",
  4997. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4998. var options = {
  4999. partSize: 2048 * 1024 * 1024,
  5000. queueSize: 2,
  5001. leavePartsOnError: true,
  5002. };
  5003. bucket
  5004. .upload(params, options)
  5005. .on("httpUploadProgress", function (evt) {
  5006. //这里可以写进度条
  5007. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5008. })
  5009. .send(function (err, data) {
  5010. // loading.close();
  5011. if (err) {
  5012. // var a = _this.$refs.upload1.uploadFiles;
  5013. // a.splice(a.length - 1, a.length);
  5014. _this.$message.error("上传失败");
  5015. } else {
  5016. _this.cover.push({
  5017. name: file.name,
  5018. url: data.Location,
  5019. uid: file.uid,
  5020. });
  5021. _this.imgChange1(null, null, 1, null);
  5022. _this.choosePicVisible = false;
  5023. console.log(data.Location);
  5024. }
  5025. });
  5026. }
  5027. },
  5028. beforeUploadSelect(event, type) {
  5029. // const loading = this.openLoading();
  5030. var file = event.target.files[0];
  5031. var credentials = {
  5032. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5033. secretAccessKey: "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",
  5034. }; //秘钥形式的登录上传
  5035. window.AWS.config.update(credentials);
  5036. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5037. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5038. var _this = this;
  5039. if (file) {
  5040. var params = {
  5041. Key:
  5042. file.name.split(".")[0] +
  5043. new Date().getTime() +
  5044. "." +
  5045. file.name.split(".")[file.name.split(".").length - 1],
  5046. ContentType: file.type,
  5047. Body: file,
  5048. "Access-Control-Allow-Credentials": "*",
  5049. ACL: "public-read",
  5050. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5051. var options = {
  5052. partSize: 2048 * 1024 * 1024,
  5053. queueSize: 2,
  5054. leavePartsOnError: true,
  5055. };
  5056. bucket
  5057. .upload(params, options)
  5058. .on("httpUploadProgress", function (evt) {
  5059. //这里可以写进度条
  5060. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5061. })
  5062. .send(function (err, data) {
  5063. // loading.close();
  5064. if (err) {
  5065. _this.$message.error("上传失败");
  5066. } else {
  5067. _this.selectJson.url = data.Location;
  5068. console.log(data.Location);
  5069. }
  5070. });
  5071. }
  5072. },
  5073. chooseSysPic(p) {
  5074. this.cover = []
  5075. setTimeout(() => {
  5076. this.cover[0] = {
  5077. name: "系统图片.png",
  5078. url: p,
  5079. };
  5080. this.imgChange1(null, null, 1, null);
  5081. this.$forceUpdate();
  5082. }, 0);
  5083. this.isSysPic = true;
  5084. this.isSysPic2 = false;
  5085. this.sysPicVisible = false;
  5086. this.$forceUpdate();
  5087. },
  5088. chooseSysPic2(p) {
  5089. this.cover = []
  5090. setTimeout(() => {
  5091. this.cover[0] = {
  5092. name: "网络图片.png",
  5093. url: p,
  5094. };
  5095. this.imgChange1(null, null, 1, null);
  5096. this.$forceUpdate();
  5097. }, 0);
  5098. this.isSysPic2 = true;
  5099. this.isSysPic = false;
  5100. this.sysPicVisible2 = false;
  5101. this.$forceUpdate();
  5102. },
  5103. beforeUpload(data) {
  5104. this.$refs.upload1.uploadFiles;
  5105. this.uploadLoading1 = true;
  5106. var file = data.file;
  5107. var credentials = {
  5108. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5109. secretAccessKey: "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",
  5110. }; //秘钥形式的登录上传
  5111. window.AWS.config.update(credentials);
  5112. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5113. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5114. var _this = this;
  5115. if (file) {
  5116. var params = {
  5117. Key:
  5118. file.name.split(".")[0] +
  5119. new Date().getTime() +
  5120. "." +
  5121. file.name.split(".")[file.name.split(".").length - 1],
  5122. ContentType: file.type,
  5123. Body: file,
  5124. "Access-Control-Allow-Credentials": "*",
  5125. ACL: "public-read",
  5126. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5127. var options = {
  5128. partSize: 2048 * 1024 * 1024,
  5129. queueSize: 2,
  5130. leavePartsOnError: true,
  5131. };
  5132. bucket
  5133. .upload(params, options)
  5134. .on("httpUploadProgress", function (evt) {
  5135. //这里可以写进度条
  5136. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5137. })
  5138. .send(function (err, data) {
  5139. _this.uploadLoading1 = false;
  5140. if (err) {
  5141. // var a = _this.$refs.upload1.uploadFiles;
  5142. // a.splice(a.length - 1, a.length);
  5143. _this.$message.error("上传失败");
  5144. } else {
  5145. //上传成功处理
  5146. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5147. name: file.name,
  5148. url: data.Location,
  5149. uid: file.uid,
  5150. });
  5151. _this.imgChange();
  5152. console.log(data.Location);
  5153. }
  5154. });
  5155. }
  5156. },
  5157. onExceed() {
  5158. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5159. },
  5160. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5161. // const loading = this.openLoading();
  5162. var file = event.target.files[0];
  5163. var credentials = {
  5164. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5165. secretAccessKey: "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",
  5166. }; //秘钥形式的登录上传
  5167. window.AWS.config.update(credentials);
  5168. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5169. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5170. var _this = this;
  5171. if (type == 3) {
  5172. var b = [
  5173. "DOC",
  5174. "DOCX",
  5175. "DOCM",
  5176. "DOTM",
  5177. "DOTX",
  5178. "PPTX",
  5179. "PPSX",
  5180. "PPT",
  5181. "PPS",
  5182. "PPTM",
  5183. "POTM",
  5184. "PPAM",
  5185. "POTX",
  5186. "PPSM",
  5187. ];
  5188. if (
  5189. b.indexOf(
  5190. file.name
  5191. .split(".")
  5192. [file.name.split(".").length - 1].toLocaleUpperCase()
  5193. ) != -1
  5194. ) {
  5195. if (file.size / 1024 / 1024 > 80) {
  5196. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5197. this.inputShow = true;
  5198. // var a = _this.$refs.upload1.uploadFiles;
  5199. // a.splice(a.length - 1, a.length);
  5200. // loading.close();
  5201. return;
  5202. }
  5203. } else if (
  5204. file.name
  5205. .split(".")
  5206. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5207. ) {
  5208. if (file.size / 1024 / 1024 > 80) {
  5209. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5210. this.inputShow = true;
  5211. // var a = _this.$refs.upload1.uploadFiles;
  5212. // a.splice(a.length - 1, a.length);
  5213. // loading.close();
  5214. return;
  5215. }
  5216. }
  5217. }
  5218. this.inputShow = false;
  5219. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5220. itemTaskIndex
  5221. ].progress = 0;
  5222. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5223. itemTaskIndex
  5224. ].proVisible = true;
  5225. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5226. itemTaskIndex
  5227. ].isFinishSize = 0;
  5228. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5229. itemTaskIndex
  5230. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5231. _this.$forceUpdate();
  5232. if (file) {
  5233. var params = {
  5234. Key:
  5235. file.name.split(".")[0] +
  5236. new Date().getTime() +
  5237. "." +
  5238. file.name.split(".")[file.name.split(".").length - 1],
  5239. ContentType: file.type,
  5240. Body: file,
  5241. "Access-Control-Allow-Credentials": "*",
  5242. ACL: "public-read",
  5243. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5244. var options = {
  5245. partSize: 2048 * 1024 * 1024,
  5246. queueSize: 2,
  5247. leavePartsOnError: true,
  5248. };
  5249. bucket
  5250. .upload(params, options)
  5251. .on("httpUploadProgress", function (evt) {
  5252. //这里可以写进度条
  5253. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5254. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5255. itemTaskIndex
  5256. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5257. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5258. itemTaskIndex
  5259. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5260. _this.$forceUpdate();
  5261. })
  5262. .send(function (err, data) {
  5263. // loading.close();
  5264. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5265. itemTaskIndex
  5266. ].progress = 100;
  5267. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5268. itemTaskIndex
  5269. ].isFinishSize =
  5270. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5271. itemTaskIndex
  5272. ].isAllSize;
  5273. _this.$forceUpdate();
  5274. setTimeout(() => {
  5275. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5276. itemTaskIndex
  5277. ].proVisible = false;
  5278. _this.$forceUpdate();
  5279. }, 1000);
  5280. _this.inputShow = true;
  5281. if (err) {
  5282. // var a = _this.$refs.upload1.uploadFiles;
  5283. // a.splice(a.length - 1, a.length);
  5284. _this.$message.error("上传失败");
  5285. } else {
  5286. if (type == 13) {
  5287. let _type = 2;
  5288. var imgA = [
  5289. "png",
  5290. "jpg",
  5291. "jpeg",
  5292. "bmp",
  5293. "gif",
  5294. "webp",
  5295. "psd",
  5296. "svg",
  5297. "tiff",
  5298. ];
  5299. var fileA = [
  5300. "PDF",
  5301. "DOC",
  5302. "DOCX",
  5303. "DOCM",
  5304. "DOTM",
  5305. "DOTX",
  5306. "PPTX",
  5307. "PPSX",
  5308. "PPT",
  5309. "PPS",
  5310. "PPTM",
  5311. "POTM",
  5312. "PPAM",
  5313. "POTX",
  5314. "PPSM",
  5315. "XLSX",
  5316. "XLS",
  5317. ];
  5318. var videoA = [
  5319. "AVI",
  5320. "NAVI",
  5321. "MPEG",
  5322. "ASF",
  5323. "MOV",
  5324. "WMV",
  5325. "3GP",
  5326. "RM",
  5327. "RMVB",
  5328. "FLV",
  5329. "F4V",
  5330. "H.264",
  5331. "H.265",
  5332. "REAL VIDEO",
  5333. "MKV",
  5334. "WebM",
  5335. "HDDVD",
  5336. "MP4",
  5337. "MPG",
  5338. "M4V",
  5339. "MGV",
  5340. "OGV",
  5341. "QTM",
  5342. "STR",
  5343. "AMC",
  5344. "DVX",
  5345. "EVO",
  5346. "DAT",
  5347. "OGG",
  5348. "OGM",
  5349. ];
  5350. if (
  5351. fileA.indexOf(
  5352. data.Location.split(".")[
  5353. data.Location.split(".").length - 1
  5354. ].toLocaleUpperCase()
  5355. ) != -1
  5356. ) {
  5357. _type = 3;
  5358. } else if (
  5359. videoA.indexOf(
  5360. data.Location.split(".")[
  5361. data.Location.split(".").length - 1
  5362. ].toLocaleUpperCase()
  5363. ) != -1
  5364. ) {
  5365. _type = 2;
  5366. } else if (
  5367. imgA.indexOf(
  5368. data.Location.split(".")[
  5369. data.Location.split(".").length - 1
  5370. ].toLocaleLowerCase()
  5371. ) != -1
  5372. ) {
  5373. _type = 13;
  5374. } else {
  5375. _type = 12;
  5376. }
  5377. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5378. itemTaskIndex
  5379. ].chapterData.push({
  5380. name: file.name,
  5381. url: data.Location,
  5382. uid: file.uid,
  5383. type: _type,
  5384. });
  5385. _this.imgChange1(null, null, _type, itemTaskIndex);
  5386. } else if (type == 2 || type == 3 || type == 12) {
  5387. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5388. itemTaskIndex
  5389. ].chapterData.push({
  5390. name: file.name,
  5391. url: data.Location,
  5392. uid: file.uid,
  5393. type: type,
  5394. });
  5395. _this.imgChange1(null, null, type, itemTaskIndex);
  5396. } else if (type == 4) {
  5397. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5398. itemTaskIndex
  5399. ].fileList1.push({
  5400. name: file.name,
  5401. url: data.Location,
  5402. uid: file.uid,
  5403. });
  5404. _this.imgChange1(null, null, type, itemTaskIndex);
  5405. } else if (type == 5) {
  5406. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5407. itemTaskIndex
  5408. ].homeworkList.push({
  5409. name: file.name,
  5410. url: data.Location,
  5411. uid: file.uid,
  5412. });
  5413. _this.imgChange1(null, null, type, itemTaskIndex);
  5414. }
  5415. console.log(data.Location);
  5416. }
  5417. });
  5418. }
  5419. },
  5420. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5421. // const loading = this.openLoading();
  5422. var file = event.target.files[0];
  5423. var credentials = {
  5424. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5425. secretAccessKey: "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",
  5426. }; //秘钥形式的登录上传
  5427. window.AWS.config.update(credentials);
  5428. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5429. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5430. var _this = this;
  5431. if (type == 3) {
  5432. var b = [
  5433. "DOC",
  5434. "DOCX",
  5435. "DOCM",
  5436. "DOTM",
  5437. "DOTX",
  5438. "PPTX",
  5439. "PPSX",
  5440. "PPT",
  5441. "PPS",
  5442. "PPTM",
  5443. "POTM",
  5444. "PPAM",
  5445. "POTX",
  5446. "PPSM",
  5447. ];
  5448. if (
  5449. b.indexOf(
  5450. file.name
  5451. .split(".")
  5452. [file.name.split(".").length - 1].toLocaleUpperCase()
  5453. ) != -1
  5454. ) {
  5455. if (file.size / 1024 / 1024 > 80) {
  5456. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5457. this.inputShow = true;
  5458. // var a = _this.$refs.upload1.uploadFiles;
  5459. // a.splice(a.length - 1, a.length);
  5460. // loading.close();
  5461. return;
  5462. }
  5463. } else if (
  5464. file.name
  5465. .split(".")
  5466. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5467. ) {
  5468. if (file.size / 1024 / 1024 > 80) {
  5469. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5470. this.inputShow = true;
  5471. // var a = _this.$refs.upload1.uploadFiles;
  5472. // a.splice(a.length - 1, a.length);
  5473. // loading.close();
  5474. return;
  5475. }
  5476. }
  5477. }
  5478. this.inputShow = false;
  5479. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5480. itemTaskIndex
  5481. ].progress = 0;
  5482. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5483. itemTaskIndex
  5484. ].proVisible = true;
  5485. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5486. itemTaskIndex
  5487. ].isFinishSize = 0;
  5488. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5489. itemTaskIndex
  5490. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5491. _this.$forceUpdate();
  5492. if (file) {
  5493. var params = {
  5494. Key:
  5495. file.name.split(".")[0] +
  5496. new Date().getTime() +
  5497. "." +
  5498. file.name.split(".")[file.name.split(".").length - 1],
  5499. ContentType: file.type,
  5500. Body: file,
  5501. "Access-Control-Allow-Credentials": "*",
  5502. ACL: "public-read",
  5503. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5504. var options = {
  5505. partSize: 2048 * 1024 * 1024,
  5506. queueSize: 2,
  5507. leavePartsOnError: true,
  5508. };
  5509. bucket
  5510. .upload(params, options)
  5511. .on("httpUploadProgress", function (evt) {
  5512. //这里可以写进度条
  5513. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5514. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5515. itemTaskIndex
  5516. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5517. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5518. itemTaskIndex
  5519. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5520. _this.$forceUpdate();
  5521. })
  5522. .send(function (err, data) {
  5523. // loading.close();
  5524. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5525. itemTaskIndex
  5526. ].progress = 100;
  5527. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5528. itemTaskIndex
  5529. ].isFinishSize =
  5530. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5531. itemTaskIndex
  5532. ].isAllSize;
  5533. _this.$forceUpdate();
  5534. setTimeout(() => {
  5535. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5536. itemTaskIndex
  5537. ].proVisible = false;
  5538. _this.$forceUpdate();
  5539. }, 1000);
  5540. _this.inputShow = true;
  5541. if (err) {
  5542. // var a = _this.$refs.upload1.uploadFiles;
  5543. // a.splice(a.length - 1, a.length);
  5544. _this.$message.error("上传失败");
  5545. } else {
  5546. if (type == 2 || type == 3) {
  5547. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5548. itemTaskIndex
  5549. ].chapterData.push({
  5550. name: file.name,
  5551. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5552. // itemTaskIndex
  5553. // ].chapterData.length+1),
  5554. url: data.Location,
  5555. uid: file.uid,
  5556. type: type,
  5557. text: string,
  5558. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5559. // itemTaskIndex
  5560. // ].chapterData.length + 1),
  5561. });
  5562. _this.imgChange1(null, null, type, itemTaskIndex);
  5563. } else if (type == 4) {
  5564. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5565. itemTaskIndex
  5566. ].fileList1.push({
  5567. name: file.name,
  5568. url: data.Location,
  5569. uid: file.uid,
  5570. });
  5571. _this.imgChange1(null, null, type, itemTaskIndex);
  5572. } else if (type == 5) {
  5573. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5574. itemTaskIndex
  5575. ].homeworkList.push({
  5576. name: file.name,
  5577. url: data.Location,
  5578. uid: file.uid,
  5579. });
  5580. _this.imgChange1(null, null, type, itemTaskIndex);
  5581. }
  5582. console.log(data.Location);
  5583. }
  5584. });
  5585. }
  5586. },
  5587. addunit() {
  5588. this.unitJson.push({
  5589. dyName: "", //单元标题
  5590. isUpdate: 1,
  5591. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  5592. chapterInfo: [
  5593. {
  5594. isread: false,
  5595. chapterid: this.guid(),
  5596. title: "",
  5597. courseName: "",
  5598. taskJson: [
  5599. {
  5600. task: "",
  5601. taskDetail: "",
  5602. chapterData: [],
  5603. toolText: "",
  5604. toolChoose: [
  5605. {
  5606. tool: [],
  5607. toolDetail: "",
  5608. toolType: 0,
  5609. askCount: 1,
  5610. askTitle: "",
  5611. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5612. },
  5613. ],
  5614. isShowTools: false,
  5615. askCount: 1,
  5616. isFold: 0,
  5617. askTitle: "",
  5618. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5619. checkJson: [{ checkCount: [], checkPerent: [] }],
  5620. homeworkList: [],
  5621. },
  5622. ],
  5623. itemCount: 1,
  5624. fileList1: [],
  5625. video: [],
  5626. testData: [],
  5627. pData: [],
  5628. templateArray: [],
  5629. },
  5630. ],
  5631. });
  5632. this.addindex = this.unitJson.length - 1;
  5633. setTimeout(() => {
  5634. this.unitIndex = this.unitJson.length - 1;
  5635. setTimeout(() => {
  5636. console.log(this.$refs.dyInput)
  5637. this.$refs.dyInput[0].focus()
  5638. }, 100);
  5639. this.unitSet(this.unitIndex);
  5640. }, 0);
  5641. },
  5642. addToolFun(itemTaskIndex) {
  5643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5644. itemTaskIndex
  5645. ].toolChoose.push({
  5646. tool: [],
  5647. toolDetail: "",
  5648. toolType: 0,
  5649. askCount: 1,
  5650. askTitle: "",
  5651. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5652. });
  5653. },
  5654. addTaskBorder() {
  5655. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5656. task: "",
  5657. taskDetail: "",
  5658. chapterData: [],
  5659. toolText: "",
  5660. toolChoose: [
  5661. {
  5662. tool: [],
  5663. toolDetail: "",
  5664. toolType: 0,
  5665. askCount: 1,
  5666. askTitle: "",
  5667. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5668. },
  5669. ],
  5670. isShowTools: false,
  5671. askCount: 1,
  5672. isFold: 0,
  5673. askTitle: "",
  5674. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5675. checkJson: [{ checkCount: [], checkPerent: [] }],
  5676. homeworkList: [],
  5677. });
  5678. setTimeout(() => {
  5679. this.checkEva(this.checkId);
  5680. setTimeout(() => {
  5681. this.checkEva(this.checkId);
  5682. }, 100);
  5683. }, 100);
  5684. },
  5685. add(e, i) {
  5686. var el = e.currentTarget;
  5687. el.getElementsByTagName("input")[0].click();
  5688. },
  5689. fold(i, e) {
  5690. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  5691. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5692. } else {
  5693. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5694. }
  5695. },
  5696. fold2(i) {
  5697. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  5698. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  5699. } else {
  5700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  5701. }
  5702. this.$forceUpdate();
  5703. },
  5704. foldC(i) {
  5705. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  5706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  5707. } else {
  5708. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  5709. }
  5710. this.$forceUpdate();
  5711. },
  5712. fold3(i, ti) {
  5713. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  5714. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  5715. } else {
  5716. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  5717. }
  5718. this.$forceUpdate();
  5719. },
  5720. deleteHomeworkBox(unitIndex, index, i) {
  5721. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5722. this.taskCount
  5723. ].homeworkList.splice(i, 1);
  5724. },
  5725. getStudent() {
  5726. let params = {
  5727. oid: this.oid,
  5728. cu: "",
  5729. cn: this.searchPeople,
  5730. };
  5731. this.ajax
  5732. .get(this.$store.state.api + "selectStudentAdd", params)
  5733. .then((res) => {
  5734. this.studentJuri = res.data[0];
  5735. })
  5736. .catch((err) => {
  5737. this.isLoading = false;
  5738. console.error(err);
  5739. });
  5740. },
  5741. getTeacher() {
  5742. let params = {
  5743. oid:
  5744. this.org && this.org != "undefined" && this.org != "null"
  5745. ? this.org
  5746. : this.oid,
  5747. cu: "",
  5748. cn: this.searchTN,
  5749. };
  5750. this.ajax
  5751. .get(
  5752. this.$store.state.api +
  5753. (this.org && this.org != "undefined" && this.org != "null"
  5754. ? "selectTeacherAddOrg"
  5755. : "selectTeacherAdd"),
  5756. params
  5757. )
  5758. .then((res) => {
  5759. let teacherJuri = res.data[0];
  5760. for (var i = 0; i < teacherJuri.length; i++) {
  5761. if (teacherJuri[i].userid == this.userid) {
  5762. teacherJuri.splice(i, 1);
  5763. break;
  5764. }
  5765. }
  5766. this.teacherJuri = teacherJuri;
  5767. })
  5768. .catch((err) => {
  5769. console.error(err);
  5770. });
  5771. },
  5772. searchStudent() {
  5773. this.getStudent();
  5774. },
  5775. selectGrage() {
  5776. let params = {
  5777. oid: this.oid,
  5778. };
  5779. this.ajax
  5780. .get(this.$store.state.api + "selectGrageBySchool", params)
  5781. .then((res) => {
  5782. this.gradeList = res.data[0];
  5783. })
  5784. .catch((err) => {
  5785. this.isLoading = false;
  5786. console.error(err);
  5787. });
  5788. },
  5789. //获取班级列表
  5790. getClass() {
  5791. let params = {
  5792. oid: this.oid,
  5793. gid: this.gradeId,
  5794. cn: this.classSearch,
  5795. };
  5796. this.ajax
  5797. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  5798. .then((res) => {
  5799. if (!this.grade.length) {
  5800. this.grade = res.data[0];
  5801. }
  5802. this.grade2 = res.data[0];
  5803. this.classJuri = res.data[0];
  5804. let _check = []
  5805. let _check2 = []
  5806. for (var i = 0; i < this.grade2.length; i++) {
  5807. var gid = this.grade2[i].id
  5808. _check.push(gid)
  5809. }
  5810. for (var i = 0; i < this.checkboxList2.length; i++) {
  5811. var _id = this.checkboxList2[i]
  5812. if (_check.indexOf(_id) !== -1) {
  5813. _check2.push(_id)
  5814. }
  5815. }
  5816. this.checkAll = _check2.length === _check.length;
  5817. })
  5818. .catch((err) => {
  5819. this.isLoading = false;
  5820. console.error(err);
  5821. });
  5822. },
  5823. CourseType2Change(val) {
  5824. this.pTypeCheck = [];
  5825. for (var i = 0; i < this.CourseType2.length; i++) {
  5826. let typeA = this.CourseType2[i];
  5827. if (val.indexOf(typeA.name) != -1) {
  5828. this.pTypeCheck.push(...typeA.id);
  5829. }
  5830. }
  5831. },
  5832. getChapterData(e, i, j, ic, type) {
  5833. e.stopPropagation();
  5834. this.updataC = true;
  5835. this.icc = ic;
  5836. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5837. console.log("还不能下载图片喔");
  5838. }
  5839. },
  5840. deleteChapterData(e, i, j, ic, taskI) {
  5841. e.stopPropagation();
  5842. let _this = this;
  5843. _this
  5844. .$confirm("确定删除此项?", "提示", {
  5845. confirmButtonText: "确定",
  5846. cancelButtonText: "取消",
  5847. type: "warning",
  5848. })
  5849. .then(() => {
  5850. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5851. })
  5852. .catch(() => {
  5853. return;
  5854. });
  5855. },
  5856. updataVideoT(e, i, j, ic) {
  5857. // e.stopPropagation();
  5858. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  5859. // ic
  5860. // ].name = JSON.parse(JSON.stringify(e.target.value));
  5861. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  5862. ic
  5863. ].name;
  5864. this.taskCount = j;
  5865. this.lineCount = ic;
  5866. this.dialogVisibleupdataVideoT = true;
  5867. this.$forceUpdate();
  5868. },
  5869. updataVideoC() {
  5870. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  5871. this.dialogVisibleupdataVideoT = false;
  5872. this.$forceUpdate();
  5873. },
  5874. upCd(e, i, j, taskCount, ic) {
  5875. e.stopPropagation();
  5876. if (ic == 0) {
  5877. return;
  5878. }
  5879. var a =
  5880. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  5881. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  5882. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5883. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5884. this.$forceUpdate();
  5885. },
  5886. downCd(e, i, j, taskCount, ic) {
  5887. e.stopPropagation();
  5888. if (
  5889. ic ==
  5890. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  5891. 1
  5892. ) {
  5893. return;
  5894. }
  5895. var a =
  5896. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  5897. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  5898. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5899. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5900. this.$forceUpdate();
  5901. },
  5902. addWork() {
  5903. let cPan = 1;
  5904. for (var i = 0; i < this.unitJson.length; i++) {
  5905. for (
  5906. var j = 0;
  5907. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5908. j++
  5909. ) {
  5910. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5911. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5912. if (
  5913. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5914. ) {
  5915. for (
  5916. var z = 0;
  5917. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5918. z++
  5919. ) {
  5920. if (
  5921. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5922. .length
  5923. ) {
  5924. this.$message.error("请把工具添加完整");
  5925. cPan = 2;
  5926. break;
  5927. }
  5928. }
  5929. }
  5930. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5931. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5932. i
  5933. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5934. return ele.value != "";
  5935. });
  5936. }
  5937. }
  5938. }
  5939. this.inputShow = true;
  5940. if (cPan == 2) {
  5941. this.steps--;
  5942. return;
  5943. }
  5944. for (var i = 0; i < this.unitJson.length; i++) {
  5945. delete this.unitJson[i].isUpdate;
  5946. }
  5947. let params = [
  5948. {
  5949. uid: this.userid,
  5950. title: this.courseName.replace(/%/g, "%25"),
  5951. brief: this.courseText.replace(/%/g, "%25"),
  5952. cover:
  5953. this.cover.length > 0
  5954. ? JSON.stringify(this.cover)
  5955. : JSON.stringify([
  5956. {
  5957. name: "noBanner.jpg",
  5958. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5959. uid: 1656409780264,
  5960. status: "success",
  5961. },
  5962. ]),
  5963. evaId: this.evalua,
  5964. astudent:
  5965. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5966. see: this.isTeacherSee == true ? 1 : 0,
  5967. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5968. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5969. courseType: JSON.stringify(this.courseTypeId),
  5970. ateacher:
  5971. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5972. inviteCode: JSON.stringify(this.inviteCode),
  5973. },
  5974. ];
  5975. this.ajax
  5976. .post(this.$store.state.api + "addWorkNew2", params)
  5977. .then((res) => {
  5978. console.log(this.steps);
  5979. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5980. this.$message({
  5981. message: "新增成功",
  5982. type: "success",
  5983. });
  5984. }
  5985. this.number = res.data.ordernumber;
  5986. this.courseId = res.data.courseId;
  5987. this.cid = res.data.courseId;
  5988. this.courseUserid = this.userid;
  5989. this.islogin = true;
  5990. })
  5991. .catch((err) => {
  5992. this.$message.error("网络不佳");
  5993. console.error(err);
  5994. });
  5995. },
  5996. goCourse() {
  5997. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  5998. },
  5999. updateWork2() {
  6000. let _unitIndex = this.unitIndex;
  6001. let cPan = 1;
  6002. for (
  6003. var j = 0;
  6004. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6005. j++
  6006. ) {
  6007. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6008. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6009. j
  6010. ].proVisible2 = false;
  6011. if (
  6012. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6013. .length > 1
  6014. ) {
  6015. for (
  6016. var z = 0;
  6017. z <
  6018. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6019. .length;
  6020. z++
  6021. ) {
  6022. if (
  6023. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6024. z
  6025. ].tool.length
  6026. ) {
  6027. this.$message.error("请把工具添加完整");
  6028. cPan = 2;
  6029. break;
  6030. }
  6031. }
  6032. }
  6033. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6034. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6035. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6036. (ele) => {
  6037. return ele.value != "";
  6038. }
  6039. );
  6040. }
  6041. }
  6042. this.inputShow = true;
  6043. if (cPan == 2) {
  6044. this.steps--;
  6045. return;
  6046. }
  6047. let params = [
  6048. {
  6049. cid: this.cid,
  6050. chapters: JSON.stringify(this.unitJson),
  6051. uid: this.userid,
  6052. unitIndex: _unitIndex,
  6053. },
  6054. ];
  6055. this.ajax
  6056. .post(this.$store.state.api + "updateWorkNew4", params)
  6057. .then((res) => {
  6058. this.$message({
  6059. message: "修改成功",
  6060. type: "success",
  6061. });
  6062. this.courseId = this.cid;
  6063. })
  6064. .catch((err) => {
  6065. this.$message.error("网络不佳");
  6066. console.error(err);
  6067. });
  6068. },
  6069. updateWork() {
  6070. let cPan = 1;
  6071. for (var i = 0; i < this.unitJson.length; i++) {
  6072. for (
  6073. var j = 0;
  6074. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6075. j++
  6076. ) {
  6077. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6078. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6079. if (
  6080. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6081. ) {
  6082. for (
  6083. var z = 0;
  6084. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6085. z++
  6086. ) {
  6087. if (
  6088. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6089. .length
  6090. ) {
  6091. this.$message.error("请把工具添加完整");
  6092. cPan = 2;
  6093. break;
  6094. }
  6095. }
  6096. }
  6097. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6098. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6099. i
  6100. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6101. return ele.value != "";
  6102. });
  6103. }
  6104. }
  6105. }
  6106. this.inputShow = true;
  6107. if (cPan == 2) {
  6108. this.steps--;
  6109. return;
  6110. }
  6111. for (var i = 0; i < this.unitJson.length; i++) {
  6112. delete this.unitJson[i].isUpdate;
  6113. }
  6114. let params = [
  6115. {
  6116. cid: this.cid,
  6117. title: this.courseName.replace(/%/g, "%25"),
  6118. brief: this.courseText.replace(/%/g, "%25"),
  6119. cover:
  6120. this.cover.length > 0
  6121. ? JSON.stringify(this.cover)
  6122. : JSON.stringify([
  6123. {
  6124. name: "noBanner.jpg",
  6125. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6126. uid: 1656409780264,
  6127. status: "success",
  6128. },
  6129. ]),
  6130. evaId: this.evalua,
  6131. astudent:
  6132. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6133. see: this.isTeacherSee == true ? 1 : 0,
  6134. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6135. template: this.myWord != "undefined" ? this.myWord : [],
  6136. uid: this.userid,
  6137. courseType: JSON.stringify(this.courseTypeId),
  6138. ateacher:
  6139. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6140. inviteCode: JSON.stringify(this.inviteCode),
  6141. },
  6142. ];
  6143. this.ajax
  6144. .post(this.$store.state.api + "updateWorkNew2", params)
  6145. .then((res) => {
  6146. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6147. if (this.cidType == 1) {
  6148. this.$message({
  6149. message: "修改成功",
  6150. type: "success",
  6151. });
  6152. } else {
  6153. this.$message({
  6154. message: "新增成功",
  6155. type: "success",
  6156. });
  6157. }
  6158. }
  6159. this.number = this.nbOrder;
  6160. this.courseId = this.cid;
  6161. })
  6162. .catch((err) => {
  6163. this.$message.error("网络不佳");
  6164. console.error(err);
  6165. });
  6166. },
  6167. guid() {
  6168. var _num,
  6169. i,
  6170. _guid = "";
  6171. for (i = 0; i < 32; i++) {
  6172. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6173. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6174. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6175. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6176. _guid += "-";
  6177. }
  6178. }
  6179. return _guid;
  6180. },
  6181. insertWord() {
  6182. this.dialogVisible1 = true;
  6183. this.updateBoolean2 = false;
  6184. this.tTitle = "";
  6185. this.tdetail = "";
  6186. },
  6187. addWord() {
  6188. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6189. name: this.tTitle,
  6190. content: this.tdetail,
  6191. uid: this.guid(),
  6192. });
  6193. this.dialogVisible1 = false;
  6194. },
  6195. upWord() { },
  6196. selectWord(uid, i, c) {
  6197. this.dialogVisible1 = true;
  6198. this.updateBoolean2 = true;
  6199. if (
  6200. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6201. ) {
  6202. this.tTitle =
  6203. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6204. this.tdetail =
  6205. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6206. }
  6207. },
  6208. isAddPP() {
  6209. if (this.checkboxList.length > 0) {
  6210. this.$message({
  6211. message: "添加成功",
  6212. type: "success",
  6213. });
  6214. this.dialogVisible3 = false;
  6215. } else {
  6216. this.$message({
  6217. message: "请添加课程成员",
  6218. type: "error",
  6219. });
  6220. }
  6221. },
  6222. isAddClass() {
  6223. this.dialogVisibleClass = false;
  6224. },
  6225. isAddPPTeacher() {
  6226. this.dialogVisibleMember = false;
  6227. this.setMan();
  6228. },
  6229. getTemplate() {
  6230. this.ajax
  6231. .get(this.$store.state.api + "getCourseTemplateT", "")
  6232. .then((res) => {
  6233. this.templateArray = res.data[0];
  6234. this.getTemplateOid();
  6235. this.$forceUpdate();
  6236. })
  6237. .catch((err) => { });
  6238. },
  6239. getTemplateOid() {
  6240. let params = {
  6241. oid: this.oid,
  6242. };
  6243. this.ajax
  6244. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6245. .then((res) => {
  6246. if (res.data[0].length) {
  6247. this.templateArray = [...res.data[0], ...this.templateArray];
  6248. }
  6249. this.getTemplateOrg();
  6250. this.$forceUpdate();
  6251. })
  6252. .catch((err) => { });
  6253. },
  6254. getTemplateOrg() {
  6255. let params = {
  6256. oid: this.org,
  6257. };
  6258. this.ajax
  6259. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6260. .then((res) => {
  6261. if (res.data[0].length) {
  6262. this.templateArray = [...res.data[0], ...this.templateArray];
  6263. }
  6264. this.$forceUpdate();
  6265. })
  6266. .catch((err) => { });
  6267. },
  6268. clearChoose() {
  6269. this.clearArray.splice(this.templateC.id, 1);
  6270. this.dialogVisible2 = false;
  6271. },
  6272. clearAttText() {
  6273. this.AttText = {
  6274. title: "",
  6275. text: "",
  6276. };
  6277. this.dialogVisible6 = false;
  6278. },
  6279. clearLine() {
  6280. this.line = "";
  6281. this.dialogVisible7 = false;
  6282. },
  6283. checkTemplate(res) {
  6284. let _this = this;
  6285. _this
  6286. .$confirm("确定选择此模板吗?修改课程时无法重置课程模板。", "提示", {
  6287. confirmButtonText: "确定",
  6288. cancelButtonText: "取消",
  6289. type: "warning",
  6290. })
  6291. .then(() => {
  6292. _this.unitJson = JSON.parse(res.chapters);
  6293. _this.steps++;
  6294. setTimeout(() => {
  6295. this.checkEva(this.checkId);
  6296. setTimeout(() => {
  6297. this.checkEva(this.checkId);
  6298. }, 100);
  6299. }, 1000);
  6300. })
  6301. .catch(() => {
  6302. return;
  6303. });
  6304. },
  6305. checkTemplate1(w) {
  6306. this.steps++;
  6307. },
  6308. checkTemplate2() {
  6309. let _this = this;
  6310. _this
  6311. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  6312. confirmButtonText: "确定",
  6313. cancelButtonText: "取消",
  6314. type: "warning",
  6315. })
  6316. .then(() => {
  6317. _this.unitIndex = 0;
  6318. _this.unitJson = [
  6319. {
  6320. dyName: "", //单元标题
  6321. chapterInfo: [
  6322. {
  6323. isread: false,
  6324. chapterid: this.guid(),
  6325. title: "",
  6326. courseName: "",
  6327. taskJson: [
  6328. {
  6329. task: "",
  6330. taskDetail: "",
  6331. chapterData: [],
  6332. toolText: "",
  6333. toolChoose: [
  6334. {
  6335. tool: [],
  6336. toolDetail: "",
  6337. toolType: 0,
  6338. askCount: 1,
  6339. askTitle: "",
  6340. askJson: [
  6341. { askstitle: "", askItem: 1, checkList: [] },
  6342. ],
  6343. },
  6344. ],
  6345. isShowTools: false,
  6346. askCount: 1,
  6347. isFold: 0,
  6348. askTitle: "",
  6349. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6350. checkJson: [{ checkCount: [], checkPerent: [] }],
  6351. homeworkList: [],
  6352. },
  6353. ],
  6354. itemCount: 1,
  6355. fileList1: [],
  6356. video: [],
  6357. testData: [],
  6358. pData: [],
  6359. templateArray: [],
  6360. },
  6361. ],
  6362. },
  6363. ];
  6364. this.steps++;
  6365. setTimeout(() => {
  6366. this.checkEva(this.checkId);
  6367. setTimeout(() => {
  6368. this.checkEva(this.checkId);
  6369. }, 100);
  6370. }, 1000);
  6371. this.updateWork();
  6372. })
  6373. .catch(() => {
  6374. return;
  6375. });
  6376. },
  6377. checkTemplate3() {
  6378. let _this = this;
  6379. _this
  6380. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  6381. confirmButtonText: "确定",
  6382. cancelButtonText: "取消",
  6383. type: "warning",
  6384. })
  6385. .then(() => {
  6386. _this.unitIndex = 0;
  6387. _this.unitJson = [
  6388. {
  6389. dyName: "", //单元标题
  6390. easy: 1,
  6391. chapterInfo: [
  6392. {
  6393. isread: false,
  6394. chapterid: this.guid(),
  6395. title: "",
  6396. courseName: "",
  6397. taskJson: [
  6398. {
  6399. task: "",
  6400. taskDetail: "",
  6401. chapterData: [],
  6402. toolText: "",
  6403. toolChoose: [
  6404. {
  6405. tool: [],
  6406. toolDetail: "",
  6407. toolType: 0,
  6408. askCount: 1,
  6409. askTitle: "",
  6410. askJson: [
  6411. { askstitle: "", askItem: 1, checkList: [] },
  6412. ],
  6413. },
  6414. ],
  6415. isShowTools: false,
  6416. askCount: 1,
  6417. isFold: 0,
  6418. askTitle: "",
  6419. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6420. checkJson: [{ checkCount: [], checkPerent: [] }],
  6421. homeworkList: [],
  6422. },
  6423. ],
  6424. itemCount: 1,
  6425. fileList1: [],
  6426. video: [],
  6427. testData: [],
  6428. pData: [],
  6429. templateArray: [],
  6430. },
  6431. ],
  6432. },
  6433. ];
  6434. this.steps++;
  6435. this.updateWork();
  6436. })
  6437. .catch(() => {
  6438. return;
  6439. });
  6440. },
  6441. checkTemplate4() {
  6442. let _this = this;
  6443. _this
  6444. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  6445. confirmButtonText: "确定",
  6446. cancelButtonText: "取消",
  6447. type: "warning",
  6448. })
  6449. .then(() => {
  6450. _this.unitIndex = 0;
  6451. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  6452. this.steps++;
  6453. this.updateWork();
  6454. })
  6455. .catch(() => {
  6456. return;
  6457. });
  6458. },
  6459. wordNext() {
  6460. this.dialogVisible2 = false;
  6461. },
  6462. isAddOrUpdateAttText() {
  6463. if (this.AttTextType == 0) {
  6464. this.addAttTextMessage();
  6465. } else {
  6466. this.updateAttText();
  6467. }
  6468. },
  6469. isAddOrUpdateLine() {
  6470. if (!this.lineTitle) {
  6471. this.$message.error("请填写链接标题");
  6472. return;
  6473. }
  6474. if (this.lineType == 0) {
  6475. this.addLine();
  6476. } else {
  6477. this.updateLine();
  6478. }
  6479. },
  6480. addAttTextMessage() {
  6481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6482. this.taskCount
  6483. ].chapterData.push({
  6484. name: this.AttText.title,
  6485. url: this.AttText.text,
  6486. type: 6,
  6487. });
  6488. this.imgChange1(null, null, 6, this.taskCount);
  6489. this.dialogVisible6 = false;
  6490. },
  6491. selectAttText(itemTaskIndex, i) {
  6492. this.AttText.title =
  6493. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6494. itemTaskIndex
  6495. ].chapterData[i].name;
  6496. this.AttText.text =
  6497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6498. itemTaskIndex
  6499. ].chapterData[i].url;
  6500. this.taskCount = itemTaskIndex;
  6501. this.AttTextIndex = i;
  6502. this.AttTextType = 1;
  6503. this.dialogVisible6 = true;
  6504. },
  6505. updateAttText() {
  6506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6507. this.taskCount
  6508. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6510. this.taskCount
  6511. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6512. this.dialogVisible6 = false;
  6513. },
  6514. addLine() {
  6515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6516. this.lineCount
  6517. ].chapterData.push({
  6518. name: "链接",
  6519. title: this.lineTitle,
  6520. url: this.line,
  6521. type: 8,
  6522. });
  6523. this.imgChange1(null, null, 8, this.lineCount);
  6524. this.dialogVisible7 = false;
  6525. },
  6526. selectLine(itemTaskIndex, i) {
  6527. this.line =
  6528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6529. itemTaskIndex
  6530. ].chapterData[i].url;
  6531. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6532. itemTaskIndex
  6533. ].chapterData[i].title
  6534. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6535. .chapterData[i].title
  6536. : "";
  6537. this.taskCount = itemTaskIndex;
  6538. this.lineCount = i;
  6539. this.lineType = 1;
  6540. this.dialogVisible7 = true;
  6541. },
  6542. openUpdateSource(itemTaskIndex, i) {
  6543. this.sourceData = {}
  6544. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  6545. this.sourceData[source.id] = {}
  6546. this.sourceData[source.id].name = source.title
  6547. this.sourceData[source.id].url = source.url
  6548. this.dialogVisibleSource = true;
  6549. this.updateSourcePan = true;
  6550. this.taskCount = itemTaskIndex;
  6551. this.lineCount = i;
  6552. },
  6553. updateLine() {
  6554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6555. this.taskCount
  6556. ].chapterData[this.lineCount].url = this.line;
  6557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6558. this.taskCount
  6559. ].chapterData[this.lineCount].title = this.lineTitle;
  6560. this.dialogVisible7 = false;
  6561. },
  6562. addPP() {
  6563. this.dialogVisible3 = true;
  6564. },
  6565. goTo(path) {
  6566. this.$router.push(path);
  6567. },
  6568. openTools(itemTaskIndex, i, toolIndex) {
  6569. this.toolIndex = toolIndex;
  6570. this.taskCount = itemTaskIndex;
  6571. if (i == 4) {
  6572. if (toolIndex == null) {
  6573. var a =
  6574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6575. .chapterData;
  6576. for (var i = 0; i < a.length; i++) {
  6577. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6578. this.askJson =
  6579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6580. itemTaskIndex
  6581. ].chapterData[i].askJson;
  6582. }
  6583. }
  6584. } else {
  6585. this.askJson = JSON.parse(
  6586. JSON.stringify(
  6587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6588. itemTaskIndex
  6589. ].toolChoose[toolIndex]
  6590. )
  6591. );
  6592. }
  6593. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  6594. this.dialogVisible5 = true;
  6595. } else if (i == 45) {
  6596. if (
  6597. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6598. .toolChoose[toolIndex].testJson
  6599. ) {
  6600. this.testJson = JSON.parse(
  6601. JSON.stringify(
  6602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6603. itemTaskIndex
  6604. ].toolChoose[toolIndex].testJson
  6605. )
  6606. );
  6607. } else {
  6608. var testJson = {
  6609. testCount: 1,
  6610. testTitle: "",
  6611. testJson: [
  6612. {
  6613. teststitle: "",
  6614. testItem: 1,
  6615. checkList: [],
  6616. timuList: [],
  6617. answer: [],
  6618. type: "1",
  6619. },
  6620. ],
  6621. };
  6622. this.testJson = testJson;
  6623. }
  6624. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  6625. this.dialogVisibleChoice = true;
  6626. } else if (i == 47) {
  6627. if (
  6628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6629. .toolChoose[toolIndex].sentenceList
  6630. ) {
  6631. this.sentenceList = JSON.parse(
  6632. JSON.stringify(
  6633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6634. itemTaskIndex
  6635. ].toolChoose[toolIndex].sentenceList
  6636. )
  6637. );
  6638. } else {
  6639. var sentenceList = [
  6640. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6641. ];
  6642. this.sentenceList = sentenceList;
  6643. }
  6644. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  6645. this.dialogVisibleSentence = true;
  6646. } else if (i == 48) {
  6647. if (
  6648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6649. .toolChoose[toolIndex].tableJson
  6650. ) {
  6651. this.tableJson = JSON.parse(
  6652. JSON.stringify(
  6653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6654. itemTaskIndex
  6655. ].toolChoose[toolIndex].tableJson
  6656. )
  6657. );
  6658. } else {
  6659. var tableJson = { text: "" };
  6660. this.tableJson = tableJson;
  6661. }
  6662. this.dialogVisibleTable = true;
  6663. } else if (i == 52) {
  6664. if (
  6665. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6666. .toolChoose[toolIndex].wordJson
  6667. ) {
  6668. this.wordJson = JSON.parse(
  6669. JSON.stringify(
  6670. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6671. itemTaskIndex
  6672. ].toolChoose[toolIndex].wordJson
  6673. )
  6674. );
  6675. } else {
  6676. var wordJson = { text: "" };
  6677. this.wordJson = wordJson;
  6678. }
  6679. this.dialogVisibleWord = true;
  6680. // else if (i == 50) {
  6681. // if (
  6682. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6683. // .toolChoose[toolIndex].uploadJson
  6684. // ) {
  6685. // this.uploadJson = JSON.parse(
  6686. // JSON.stringify(
  6687. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6688. // itemTaskIndex
  6689. // ].toolChoose[toolIndex].uploadJson
  6690. // )
  6691. // );
  6692. // } else {
  6693. // var uploadJson = [];
  6694. // this.uploadJson = uploadJson;
  6695. // }
  6696. // this.dialogVisibleMoreUpload = true;
  6697. // }
  6698. } else if (i == 10) {
  6699. if (
  6700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6701. .toolChoose[toolIndex].preTime
  6702. ) {
  6703. this.preTime = JSON.parse(
  6704. JSON.stringify(
  6705. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6706. itemTaskIndex
  6707. ].toolChoose[toolIndex].preTime
  6708. )
  6709. );
  6710. } else {
  6711. var preTime = 0;
  6712. this.preTime = preTime;
  6713. }
  6714. this.dialogVisiblePreTime = true;
  6715. } else if (i == 49) {
  6716. if (
  6717. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6718. .toolChoose[toolIndex].groupJson
  6719. ) {
  6720. this.groupJson = JSON.parse(
  6721. JSON.stringify(
  6722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6723. itemTaskIndex
  6724. ].toolChoose[toolIndex].groupJson
  6725. )
  6726. );
  6727. } else {
  6728. var groupJson = {
  6729. group: [{ name: "第1组" }],
  6730. number: undefined,
  6731. islock: 1,
  6732. };
  6733. this.groupJson = groupJson;
  6734. }
  6735. this.dialogVisibleGroup = true;
  6736. } else if (i == 62) {
  6737. if (
  6738. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6739. .toolChoose[toolIndex].videoJson
  6740. ) {
  6741. this.videoJson = JSON.parse(
  6742. JSON.stringify(
  6743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6744. itemTaskIndex
  6745. ].toolChoose[toolIndex].videoJson
  6746. )
  6747. );
  6748. } else {
  6749. var videoJson = {
  6750. video: "",
  6751. setting: [],
  6752. };
  6753. this.videoJson = videoJson;
  6754. }
  6755. this.dialogVisibleVideo = true;
  6756. } else if (i == 15) {
  6757. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6758. itemTaskIndex
  6759. ].toolChoose[toolIndex].answerQ
  6760. ? JSON.parse(
  6761. JSON.stringify(
  6762. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6763. itemTaskIndex
  6764. ].toolChoose[toolIndex].answerQ
  6765. )
  6766. )
  6767. : "";
  6768. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  6769. this.dialogVisible8 = true;
  6770. } else if (i == 40) {
  6771. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6772. itemTaskIndex
  6773. ].toolChoose[toolIndex].rateJson
  6774. ? JSON.parse(
  6775. JSON.stringify(
  6776. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6777. itemTaskIndex
  6778. ].toolChoose[toolIndex].rateJson
  6779. )
  6780. )
  6781. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  6782. this.selectSteps = 1;
  6783. this.dialogVisibleRate = true;
  6784. } else if (i == 42) {
  6785. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6786. itemTaskIndex
  6787. ].toolChoose[toolIndex].answerQ
  6788. ? JSON.parse(
  6789. JSON.stringify(
  6790. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6791. itemTaskIndex
  6792. ].toolChoose[toolIndex].answerQ
  6793. )
  6794. )
  6795. : "";
  6796. this.dialogVisibleMp3 = true;
  6797. } else if (i == 41) {
  6798. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6799. itemTaskIndex
  6800. ].toolChoose[toolIndex].selectJson
  6801. ? JSON.parse(
  6802. JSON.stringify(
  6803. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6804. itemTaskIndex
  6805. ].toolChoose[toolIndex].selectJson
  6806. )
  6807. )
  6808. : { url: "", select: [], answer: [] };
  6809. this.selectSteps = 1;
  6810. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  6811. this.dialogVisibleSelect = true;
  6812. } else if (i == 3) {
  6813. window.parent.postMessage(
  6814. {
  6815. tools: "3y",
  6816. cid: this.cid,
  6817. stage: this.unitIndex,
  6818. task: itemTaskIndex,
  6819. tool: toolIndex,
  6820. },
  6821. "*"
  6822. );
  6823. } else if (i == 1) {
  6824. window.parent.postMessage(
  6825. {
  6826. tools: "1y",
  6827. cid: this.cid,
  6828. stage: this.unitIndex,
  6829. task: itemTaskIndex,
  6830. tool: toolIndex,
  6831. },
  6832. "*"
  6833. );
  6834. } else if (i == 57) {
  6835. window.parent.postMessage(
  6836. {
  6837. tools: "57y",
  6838. cid: this.cid,
  6839. stage: this.unitIndex,
  6840. task: itemTaskIndex,
  6841. tool: toolIndex,
  6842. },
  6843. "*"
  6844. );
  6845. }
  6846. },
  6847. chapAddTools(i) {
  6848. if (this.chapTools[0].tools.length == 0) {
  6849. this.chapTools[0].tools.push(i);
  6850. } else {
  6851. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6852. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6853. } else {
  6854. this.chapTools[0].tools.push(i);
  6855. }
  6856. }
  6857. this.$forceUpdate();
  6858. },
  6859. addChaptersDataTools() {
  6860. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6861. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6862. this.chapCount
  6863. ].chapterData.push({
  6864. name: this.chapTools[0].toolDetail,
  6865. url: this.chapTools[0].tools,
  6866. type: 7,
  6867. askJson: this.askJson,
  6868. });
  6869. } else {
  6870. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6871. this.chapCount
  6872. ].chapterData.push({
  6873. name: this.chapTools[0].toolDetail,
  6874. url: this.chapTools[0].tools,
  6875. type: 7,
  6876. });
  6877. }
  6878. this.imgChange1(null, null, 7, this.chapCount);
  6879. this.dialogVisible4 = false;
  6880. },
  6881. addTools(i, itemTaskIndex, toolIndex) {
  6882. // if (
  6883. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6884. // .toolChoose[toolIndex].tool.length == 0
  6885. // ) {
  6886. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6887. // itemTaskIndex
  6888. // ].toolChoose[toolIndex].tool.push(i);
  6889. // } else {
  6890. // if (
  6891. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6892. // itemTaskIndex
  6893. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6894. // ) {
  6895. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6896. // itemTaskIndex
  6897. // ].toolChoose[toolIndex].tool.splice(
  6898. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6899. // itemTaskIndex
  6900. // ].toolChoose[toolIndex].tool.indexOf(i),
  6901. // 1
  6902. // );
  6903. // } else {
  6904. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6905. // itemTaskIndex
  6906. // ].toolChoose[toolIndex].tool.push(i);
  6907. // }
  6908. // console.log(
  6909. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6910. // .toolChoose[toolIndex].tool
  6911. // );
  6912. // }
  6913. if (i == 4) {
  6914. if (
  6915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6916. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6917. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6918. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6920. .toolChoose[toolIndex].askJson[0].checkList < 2
  6921. ) {
  6922. this.openTools(itemTaskIndex, 4, toolIndex);
  6923. // this.$message({
  6924. // message: "请填写完整问卷内容",
  6925. // type: "error",
  6926. // });
  6927. return;
  6928. }
  6929. }
  6930. if (i == 45) {
  6931. if (
  6932. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6933. .toolChoose[toolIndex].testJson ||
  6934. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6935. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6936. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6937. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6938. ) {
  6939. this.openTools(itemTaskIndex, 45, toolIndex);
  6940. // this.$message({
  6941. // message: "请填写完整问卷内容",
  6942. // type: "error",
  6943. // });
  6944. return;
  6945. }
  6946. }
  6947. if (i == 47) {
  6948. if (
  6949. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6950. .toolChoose[toolIndex].sentenceList ||
  6951. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6952. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6953. ) {
  6954. this.openTools(itemTaskIndex, 47, toolIndex);
  6955. return;
  6956. }
  6957. }
  6958. // if (i == 48) {
  6959. // if (
  6960. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6961. // .toolChoose[toolIndex].tableJson
  6962. // ) {
  6963. // this.openTools(itemTaskIndex, 48, toolIndex);
  6964. // return;
  6965. // }
  6966. // }
  6967. // if (i == 50) {
  6968. // if (
  6969. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6970. // .toolChoose[toolIndex].uploadJson
  6971. // ) {
  6972. // this.openTools(itemTaskIndex, 50, toolIndex);
  6973. // return;
  6974. // }
  6975. // }
  6976. if (i == 49) {
  6977. if (
  6978. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6979. .toolChoose[toolIndex].groupJson
  6980. ) {
  6981. this.openTools(itemTaskIndex, 49, toolIndex);
  6982. return;
  6983. }
  6984. }
  6985. if (i == 62) {
  6986. if (
  6987. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6988. .toolChoose[toolIndex].videoJson
  6989. ) {
  6990. this.openTools(itemTaskIndex, 62, toolIndex);
  6991. return;
  6992. }
  6993. }
  6994. if (i == 15) {
  6995. if (
  6996. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6997. .toolChoose[toolIndex].answerQ ||
  6998. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6999. .toolChoose[toolIndex].answerQ == ""
  7000. ) {
  7001. this.openTools(itemTaskIndex, 15, toolIndex);
  7002. // this.$message({
  7003. // message: "请填写问答内容",
  7004. // type: "error",
  7005. // });
  7006. return;
  7007. }
  7008. }
  7009. if (i == 40) {
  7010. if (
  7011. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7012. .toolChoose[toolIndex].rateJson ||
  7013. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7014. .toolChoose[toolIndex].rateJson.length
  7015. ) {
  7016. this.openTools(itemTaskIndex, 40, toolIndex);
  7017. return;
  7018. }
  7019. }
  7020. if (i == 41) {
  7021. if (
  7022. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7023. .toolChoose[toolIndex].selectJson ||
  7024. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7025. .toolChoose[toolIndex].selectJson.url == "" ||
  7026. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7027. .toolChoose[toolIndex].selectJson.select.length ||
  7028. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7029. .toolChoose[toolIndex].selectJson.answer.length
  7030. ) {
  7031. this.openTools(itemTaskIndex, 41, toolIndex);
  7032. return;
  7033. }
  7034. }
  7035. if (i == 42) {
  7036. if (
  7037. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7038. .toolChoose[toolIndex].answerQ ||
  7039. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7040. .toolChoose[toolIndex].answerQ == ""
  7041. ) {
  7042. this.openTools(itemTaskIndex, 42, toolIndex);
  7043. return;
  7044. }
  7045. }
  7046. if (
  7047. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7048. .toolChoose[toolIndex].tool.length > 0
  7049. ) {
  7050. if (
  7051. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7052. itemTaskIndex
  7053. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7054. ) {
  7055. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7056. itemTaskIndex
  7057. ].toolChoose[toolIndex].tool.splice(
  7058. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7059. itemTaskIndex
  7060. ].toolChoose[toolIndex].tool.indexOf(i),
  7061. 1
  7062. );
  7063. } else {
  7064. // this.$message({
  7065. // message: "每个工具只能添加一个",
  7066. // type: "error",
  7067. // });
  7068. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7069. itemTaskIndex
  7070. ].toolChoose[toolIndex].tool = [];
  7071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7072. itemTaskIndex
  7073. ].toolChoose[toolIndex].tool.push(i);
  7074. }
  7075. } else {
  7076. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7077. itemTaskIndex
  7078. ].toolChoose[toolIndex].tool.push(i);
  7079. }
  7080. this.$forceUpdate();
  7081. },
  7082. addAskList(index) {
  7083. this.askJson.askJson.splice(index + 1, 0, {
  7084. askstitle: "",
  7085. askItem: 1,
  7086. checkList: [],
  7087. })
  7088. this.askJson.askCount++;
  7089. },
  7090. addTestList(index) {
  7091. this.testJson.testJson.splice(index + 1, 0, {
  7092. teststitle: "",
  7093. testItem: 1,
  7094. checkList: [],
  7095. timuList: [],
  7096. answer: [],
  7097. type: "1",
  7098. })
  7099. this.testJson.testCount++;
  7100. },
  7101. deleteAskList(index) {
  7102. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7103. this.askJson.askJson.splice(index, 1);
  7104. this.askJson.askCount--;
  7105. } else {
  7106. let _this = this;
  7107. _this
  7108. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7109. confirmButtonText: "确定",
  7110. cancelButtonText: "取消",
  7111. type: "warning",
  7112. })
  7113. .then(() => {
  7114. _this.askJson.askJson.splice(index, 1);
  7115. _this.askJson.askCount--;
  7116. })
  7117. .catch(() => {
  7118. return;
  7119. });
  7120. }
  7121. },
  7122. deleteTestList(index) {
  7123. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7124. this.testJson.testJson.splice(index, 1);
  7125. this.testJson.testCount--;
  7126. } else {
  7127. let _this = this;
  7128. _this
  7129. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7130. confirmButtonText: "确定",
  7131. cancelButtonText: "取消",
  7132. type: "warning",
  7133. })
  7134. .then(() => {
  7135. _this.testJson.testJson.splice(index, 1);
  7136. _this.testJson.testCount--;
  7137. })
  7138. .catch(() => {
  7139. return;
  7140. });
  7141. }
  7142. },
  7143. askMove(type, index) {
  7144. if (type == 1) {
  7145. if (index > 0) {
  7146. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7147. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7148. this.askJson.askJson[index - 1] = b;
  7149. this.askJson.askJson[index] = a;
  7150. }
  7151. } else {
  7152. if (
  7153. index < this.askJson.askJson.length - 1
  7154. ) {
  7155. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7156. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7157. this.askJson.askJson[index + 1] = b;
  7158. this.askJson.askJson[index] = a;
  7159. }
  7160. }
  7161. this.$forceUpdate();
  7162. },
  7163. checkMove(type, index, checkIndex) {
  7164. if (type == 1) {
  7165. if (checkIndex > 0) {
  7166. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7167. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7168. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7169. this.askJson.askJson[index].checkList[checkIndex] = a;
  7170. }
  7171. } else {
  7172. if (
  7173. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7174. ) {
  7175. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  7176. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7177. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  7178. this.askJson.askJson[index].checkList[checkIndex] = a;
  7179. }
  7180. }
  7181. this.$forceUpdate();
  7182. },
  7183. testMove(type, index) {
  7184. if (type == 1) {
  7185. if (index > 0) {
  7186. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  7187. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7188. this.testJson.testJson[index - 1] = b;
  7189. this.testJson.testJson[index] = a;
  7190. }
  7191. } else {
  7192. if (
  7193. index < this.testJson.testJson.length - 1
  7194. ) {
  7195. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  7196. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7197. this.testJson.testJson[index + 1] = b;
  7198. this.testJson.testJson[index] = a;
  7199. }
  7200. }
  7201. this.$forceUpdate();
  7202. },
  7203. tcheckMove(type, index, checkIndex) {
  7204. if (type == 1) {
  7205. if (checkIndex > 0) {
  7206. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  7207. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7208. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  7209. this.testJson.testJson[index].checkList[checkIndex] = a;
  7210. }
  7211. } else {
  7212. if (
  7213. checkIndex < this.testJson.testJson[index].checkList.length - 1
  7214. ) {
  7215. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  7216. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7217. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  7218. this.testJson.testJson[index].checkList[checkIndex] = a;
  7219. }
  7220. }
  7221. this.$forceUpdate();
  7222. },
  7223. addcheckList(json, index) {
  7224. // json.checkList.length++;
  7225. json.checkList.splice(index + 1, 0, '')
  7226. json.askItem++;
  7227. this.$forceUpdate();
  7228. },
  7229. deletecheckList(json, index) {
  7230. // json.checkList.length--;
  7231. json.checkList.splice(index, 1)
  7232. json.askItem--;
  7233. this.$forceUpdate();
  7234. },
  7235. addTcheckList(json, index) {
  7236. // json.checkList.length++;
  7237. json.checkList.splice(index + 1, 0, '')
  7238. json.testItem++;
  7239. this.$forceUpdate();
  7240. },
  7241. deleteTcheckList(json, index) {
  7242. // json.checkList.length--;
  7243. json.checkList.splice(index, 1)
  7244. json.testItem--;
  7245. this.$forceUpdate();
  7246. },
  7247. checkTestType(type, json) {
  7248. json.type = type;
  7249. setTimeout(() => {
  7250. json.answer = [];
  7251. }, 100)
  7252. },
  7253. checkAskType(type, json) {
  7254. json.type = type;
  7255. // json.checkList = [];
  7256. this.$forceUpdate();
  7257. },
  7258. addSelectList(json) {
  7259. json.select.push("");
  7260. json.answer.push("");
  7261. },
  7262. deleteSelectList(json) {
  7263. // json.select.length--;
  7264. // json.answer.length--;
  7265. json.select.splice(json.select.length - 1, 1);
  7266. json.answer.splice(json.answer.length - 1, 1);
  7267. },
  7268. addAsk() {
  7269. if (this.askJson.askTitle === "") {
  7270. this.$message.error("标题不能为空!");
  7271. return;
  7272. }
  7273. var aj = this.askJson.askJson;
  7274. var b = 1;
  7275. for (var i = 0; i < aj.length; i++) {
  7276. if (aj[i].askstitle === "") {
  7277. var a = 1;
  7278. for (let index = 0; index < aj[i].askItem; index++) {
  7279. const element = aj[i].checkList[index]
  7280. ? aj[i].checkList[index]
  7281. : "";
  7282. if (element != "") {
  7283. b++;
  7284. this.$message.error(`请将题目${i + 1}填写完整。`);
  7285. return;
  7286. } else {
  7287. a++;
  7288. }
  7289. }
  7290. if (b == 1) {
  7291. this.$message.error("至少填写一个问题");
  7292. return;
  7293. }
  7294. } else if (aj[i].askstitle != "") {
  7295. for (let index = 0; index < aj[i].askItem; index++) {
  7296. const element = aj[i].checkList[index]
  7297. ? aj[i].checkList[index]
  7298. : "";
  7299. var index = 0;
  7300. for (var z = 0; z < aj[i].checkList.length; z++) {
  7301. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7302. if (checkC != "") {
  7303. index++;
  7304. } else {
  7305. this.$message.error(`题目${i + 1}选项不能为空!`);
  7306. return;
  7307. }
  7308. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7309. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7310. if (checkC == checkC2) {
  7311. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7312. return;
  7313. }
  7314. }
  7315. }
  7316. b++;
  7317. if (index < 2) {
  7318. this.$message.error("每道题目至少需要设置2个选项。");
  7319. return;
  7320. }
  7321. }
  7322. }
  7323. }
  7324. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7325. var elc = el.checkList.filter((element) => {
  7326. return element != "";
  7327. });
  7328. return el.askstitle != "" && elc.length != 0;
  7329. });
  7330. if (!this.dialogVisible4) {
  7331. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7332. this.taskCount
  7333. ].toolChoose[this.toolIndex] = this.askJson;
  7334. }
  7335. this.dialogVisible5 = false;
  7336. if (
  7337. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7338. .toolChoose[this.toolIndex].tool != 4
  7339. ) {
  7340. this.addTools(4, this.taskCount, this.toolIndex);
  7341. }
  7342. },
  7343. addTest() {
  7344. // if (this.testJson.testTitle === "") {
  7345. // this.$message.error("标题不能为空!");
  7346. // return;
  7347. // }
  7348. var aj = this.testJson.testJson;
  7349. var b = 1;
  7350. for (var i = 0; i < aj.length; i++) {
  7351. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7352. var a = 1;
  7353. for (let index = 0; index < aj[i].testItem; index++) {
  7354. const element = aj[i].checkList[index]
  7355. ? aj[i].checkList[index]
  7356. : "";
  7357. if (element != "") {
  7358. b++;
  7359. this.$message.error(`请将题目${i + 1}填写完整。`);
  7360. return;
  7361. } else {
  7362. a++;
  7363. }
  7364. }
  7365. if (b == 1) {
  7366. this.$message.error("至少填写一个问题");
  7367. return;
  7368. }
  7369. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  7370. for (let index = 0; index < aj[i].testItem; index++) {
  7371. const element = aj[i].checkList[index]
  7372. ? aj[i].checkList[index]
  7373. : "";
  7374. var index = 0;
  7375. for (var z = 0; z < aj[i].checkList.length; z++) {
  7376. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7377. if (checkC != "") {
  7378. index++;
  7379. } else {
  7380. this.$message.error(`题目${i + 1}选项不能为空!`);
  7381. return;
  7382. }
  7383. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7384. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7385. if (checkC == checkC2) {
  7386. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7387. return;
  7388. }
  7389. }
  7390. }
  7391. b++;
  7392. if (index < 2) {
  7393. this.$message.error("每道题目至少需要设置2个选项。");
  7394. return;
  7395. }
  7396. if (
  7397. (aj[i].type == "2" && !aj[i].answer.length) ||
  7398. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  7399. ) {
  7400. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  7401. return;
  7402. }
  7403. }
  7404. }
  7405. }
  7406. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7407. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7408. var elc = el.checkList.filter((element) => {
  7409. return element != "";
  7410. });
  7411. return (
  7412. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7413. );
  7414. });
  7415. isTestJson.testCount = isTestJson.testJson.length;
  7416. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7417. this.taskCount
  7418. ].toolChoose[this.toolIndex].testJson = isTestJson;
  7419. this.dialogVisibleChoice = false;
  7420. if (
  7421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7422. .toolChoose[this.toolIndex].tool != 45
  7423. ) {
  7424. this.addTools(45, this.taskCount, this.toolIndex);
  7425. }
  7426. },
  7427. addVideoJson(videoJson) {
  7428. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7429. this.taskCount
  7430. ].toolChoose[this.toolIndex].videoJson = videoJson;
  7431. this.dialogVisibleVideo = false;
  7432. if (
  7433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7434. .toolChoose[this.toolIndex].tool != 62
  7435. ) {
  7436. this.addTools(62, this.taskCount, this.toolIndex);
  7437. }
  7438. },
  7439. //自动获取剪贴板
  7440. pasteOption() {
  7441. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7442. if (!iframe) {
  7443. this.$message.error("请使用AI共创生成题目");
  7444. return;
  7445. }
  7446. let copyData = iframe.contentWindow.copyData;
  7447. if (!copyData || !copyData.selectData.length) {
  7448. this.$message.error("请使用AI共创生成题目");
  7449. return;
  7450. }
  7451. let selectData = copyData.selectData;
  7452. for (var i = 0; i < selectData.length; i++) {
  7453. let answer = 0;
  7454. switch (selectData[i].answer[0]) {
  7455. case "A":
  7456. answer = 0;
  7457. break;
  7458. case "B":
  7459. answer = 1;
  7460. break;
  7461. case "C":
  7462. answer = 2;
  7463. break;
  7464. case "D":
  7465. answer = 3;
  7466. break;
  7467. case "E":
  7468. answer = 4;
  7469. break;
  7470. default:
  7471. break;
  7472. }
  7473. this.testJson.testJson.push({
  7474. teststitle: selectData[i].subject,
  7475. testItem: selectData[i].options.length,
  7476. checkList: selectData[i].options,
  7477. timuList: [],
  7478. answer: answer,
  7479. type: "1",
  7480. });
  7481. this.testJson.testCount++;
  7482. }
  7483. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7484. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7485. var elc = el.checkList.filter((element) => {
  7486. return element != "";
  7487. });
  7488. return (
  7489. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7490. );
  7491. });
  7492. isTestJson.testCount = isTestJson.testJson.length;
  7493. this.testJson = isTestJson;
  7494. this.$forceUpdate();
  7495. },
  7496. pasteTask() {
  7497. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7498. if (!iframe) {
  7499. this.$message.error("请使用AI共创生成");
  7500. return;
  7501. }
  7502. let copyData = iframe.contentWindow.copyData;
  7503. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  7504. this.$message.error("请使用AI共创生成");
  7505. return;
  7506. }
  7507. let stageTasksData = copyData.tasksData;
  7508. let taskA = [];
  7509. let tasks = stageTasksData;
  7510. for (var j = 0; j < tasks.length; j++) {
  7511. taskA.push({
  7512. task: tasks[j].taskName,
  7513. taskDetail: tasks[j].taskDecs,
  7514. chapterData: [],
  7515. toolText: "",
  7516. toolChoose: [
  7517. {
  7518. tool: [],
  7519. toolDetail: "",
  7520. toolType: 0,
  7521. askCount: 1,
  7522. askTitle: "",
  7523. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7524. },
  7525. ],
  7526. isShowTools: false,
  7527. askCount: 1,
  7528. isFold: 0,
  7529. askTitle: "",
  7530. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7531. checkJson: [{ checkCount: [], checkPerent: [] }],
  7532. homeworkList: [],
  7533. });
  7534. }
  7535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  7536. this.$forceUpdate();
  7537. },
  7538. pasteStage() {
  7539. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7540. if (!iframe) {
  7541. this.$message.error("请使用AI共创生成");
  7542. return;
  7543. }
  7544. let copyData = iframe.contentWindow.copyData;
  7545. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  7546. this.$message.error("请使用AI共创生成");
  7547. return;
  7548. }
  7549. let stageData = copyData.stageData;
  7550. let stage = [];
  7551. for (var i = 0; i < stageData.length; i++) {
  7552. stage.push({
  7553. dyName: stageData[i], //单元标题
  7554. chapterInfo: [
  7555. {
  7556. isread: false,
  7557. chapterid: this.guid(),
  7558. title: "",
  7559. courseName: "",
  7560. taskJson: [
  7561. {
  7562. task: "",
  7563. taskDetail: "",
  7564. chapterData: [],
  7565. toolText: "",
  7566. toolChoose: [
  7567. {
  7568. tool: [],
  7569. toolDetail: "",
  7570. toolType: 0,
  7571. askCount: 1,
  7572. askTitle: "",
  7573. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7574. },
  7575. ],
  7576. isShowTools: false,
  7577. askCount: 1,
  7578. isFold: 0,
  7579. askTitle: "",
  7580. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7581. checkJson: [{ checkCount: [], checkPerent: [] }],
  7582. homeworkList: [],
  7583. },
  7584. ],
  7585. itemCount: 1,
  7586. fileList1: [],
  7587. video: [],
  7588. testData: [],
  7589. pData: [],
  7590. templateArray: [],
  7591. },
  7592. ],
  7593. });
  7594. }
  7595. let _this = this;
  7596. _this
  7597. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  7598. confirmButtonText: "确定",
  7599. cancelButtonText: "取消",
  7600. type: "warning",
  7601. })
  7602. .then(() => {
  7603. _this.unitIndex = 0;
  7604. _this.unitJson = stage;
  7605. _this.steps++;
  7606. _this.updateWork();
  7607. })
  7608. .catch(() => {
  7609. return;
  7610. });
  7611. },
  7612. openStageBox() {
  7613. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  7614. this.dialogVisibleStageChange = true;
  7615. },
  7616. updateChange() {
  7617. this.$confirm(
  7618. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  7619. "提示",
  7620. {
  7621. confirmButtonText: "确定",
  7622. cancelButtonText: "取消",
  7623. type: "warning",
  7624. }
  7625. )
  7626. .then(() => {
  7627. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  7628. this.updateWork()
  7629. this.dialogVisibleStageChange = false;
  7630. })
  7631. .catch(() => {
  7632. return;
  7633. });
  7634. },
  7635. addAnswer() {
  7636. if (this.answerQ == "") {
  7637. this.$message.error("请输入您想要问的问题");
  7638. return;
  7639. }
  7640. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7641. this.taskCount
  7642. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7643. this.dialogVisible8 = false;
  7644. if (
  7645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7646. .toolChoose[this.toolIndex].tool != 15
  7647. ) {
  7648. this.addTools(15, this.taskCount, this.toolIndex);
  7649. }
  7650. },
  7651. addMp3Answer() {
  7652. if (this.answerQ == "") {
  7653. this.$message.error("请输入您想要回答的问题");
  7654. return;
  7655. }
  7656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7657. this.taskCount
  7658. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7659. this.dialogVisibleMp3 = false;
  7660. },
  7661. addRateAnswer() {
  7662. var a = 1;
  7663. for (var i = 0; i < this.rateJson.length; i++) {
  7664. if (this.rateJson[i].value == "") {
  7665. a = 2;
  7666. break;
  7667. }
  7668. }
  7669. if (a == 2) {
  7670. this.$message.error("请把评价信息填写完整");
  7671. return;
  7672. }
  7673. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7674. this.taskCount
  7675. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7676. this.dialogVisibleRate = false;
  7677. if (
  7678. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7679. .toolChoose[this.toolIndex].tool != 40
  7680. ) {
  7681. this.addTools(40, this.taskCount, this.toolIndex);
  7682. }
  7683. },
  7684. addSelectAnswer() {
  7685. if (this.selectJson.url == "") {
  7686. this.$message.error("请上传题目");
  7687. return;
  7688. }
  7689. if (!this.selectJson.select.length) {
  7690. this.$message.error("请添加选项");
  7691. return;
  7692. }
  7693. if (!this.selectJson.answer.length) {
  7694. this.$message.error("请设置答案");
  7695. return;
  7696. }
  7697. var a = 1;
  7698. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7699. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7700. a = 2;
  7701. }
  7702. }
  7703. if (a == 2) {
  7704. this.$message.error("请设置答案");
  7705. return;
  7706. }
  7707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7708. this.taskCount
  7709. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7710. this.dialogVisibleSelect = false;
  7711. if (
  7712. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7713. .toolChoose[this.toolIndex].tool != 41
  7714. ) {
  7715. this.addTools(41, this.taskCount, this.toolIndex);
  7716. }
  7717. },
  7718. nextSelectSteps() {
  7719. if (this.selectJson.url == "") {
  7720. this.$message.error("请上传题目");
  7721. return;
  7722. }
  7723. if (!this.selectJson.select.length) {
  7724. this.$message.error("请添加选项");
  7725. return;
  7726. } else {
  7727. for (var z = 0; z < this.selectJson.select.length; z++) {
  7728. let checkC = this.selectJson.select[z];
  7729. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  7730. let checkC2 = this.selectJson.select[z2];
  7731. if (checkC == checkC2) {
  7732. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7733. return;
  7734. }
  7735. }
  7736. }
  7737. }
  7738. var a = 1;
  7739. for (var i = 0; i < this.selectJson.select.length; i++) {
  7740. if (!this.selectJson.select[i]) {
  7741. a = 2;
  7742. }
  7743. }
  7744. if (a == 2) {
  7745. this.$message.error("添加的选项不能为空");
  7746. return;
  7747. }
  7748. this.selectSteps++;
  7749. },
  7750. selectCourseDetail() {
  7751. if (this.cid == "" || this.cid == undefined) {
  7752. console.log("这是新增课程");
  7753. this.selectAllType();
  7754. } else {
  7755. this.cidType = 1;
  7756. let params = {
  7757. cid: this.cid,
  7758. };
  7759. this.ajax
  7760. .get(this.$store.state.api + "select_course_detail", params)
  7761. .then((res) => {
  7762. this.loading = true;
  7763. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7764. for (var j = 0; j < this.unitJson.length; j++) {
  7765. for (
  7766. var k = 0;
  7767. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  7768. k++
  7769. ) {
  7770. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  7771. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7772. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7773. : [];
  7774. let _chapterData = [];
  7775. for (
  7776. var c = 0;
  7777. c <
  7778. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  7779. .length;
  7780. c++
  7781. ) {
  7782. if (
  7783. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7784. ) {
  7785. _chapterData.push(
  7786. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7787. );
  7788. }
  7789. }
  7790. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  7791. _chapterData;
  7792. }
  7793. }
  7794. this.$forceUpdate();
  7795. this.courseName = res.data[0][0].title;
  7796. this.courseText = res.data[0][0].brief;
  7797. this.evalua = res.data[0][0].evaId;
  7798. this.cover = JSON.parse(res.data[0][0].cover);
  7799. this.noneBtnImg = this.cover.length >= 1;
  7800. // this.checkboxList =
  7801. // res.data[0][0].course_student.length > 0
  7802. // ? JSON.parse(res.data[0][0].course_student)
  7803. // : [];
  7804. this.checkboxList2 = res.data[0][0].juri
  7805. ? res.data[0][0].juri.split(",")
  7806. : [];
  7807. this.inviteCode = [];
  7808. for (var i = 0; i < res.data[2].length; i++) {
  7809. this.inviteCode.push({
  7810. cid: res.data[2][i].classid,
  7811. ic: res.data[2][i].code,
  7812. });
  7813. }
  7814. this.checkboxList3 = res.data[0][0].course_teacher
  7815. ? res.data[0][0].course_teacher.split(",")
  7816. : [];
  7817. // this.isTeacherSee =
  7818. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7819. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7820. this.myWord = res.data[0][0].template;
  7821. this.templateC.id = "123";
  7822. this.courseUserid = res.data[0][0].userid;
  7823. // if(this.courseUserid == this.userid){
  7824. // this.InviteChange(this.checkboxList2)
  7825. // }
  7826. this.nbOrder = res.data[0][0].ordernumber;
  7827. this.courseTypeId = [];
  7828. for (var i = 0; i < res.data[1].length; i++) {
  7829. this.courseTypeId.push(res.data[1][i].typeid);
  7830. }
  7831. console.log(this.courseTypeId);
  7832. // if (this.timer) clearInterval(this.timer);
  7833. if (this.timer) clearTimeout(this.timer);
  7834. this.timer = null;
  7835. // this.timer = setInterval(() => {
  7836. this.seleteCourseUpdate();
  7837. this.setMan();
  7838. this.selectAllType();
  7839. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  7840. // }, 5000);
  7841. this.$forceUpdate();
  7842. setTimeout(() => {
  7843. this.checkEva(this.evalua);
  7844. setTimeout(() => {
  7845. this.checkEva(this.evalua);
  7846. }, 100);
  7847. }, 100);
  7848. })
  7849. .catch((err) => {
  7850. console.error(err);
  7851. });
  7852. }
  7853. },
  7854. seleteCourseUpdate() {
  7855. let params = {
  7856. cid: this.cid,
  7857. };
  7858. this.ajax
  7859. .get(this.$store.state.api + "select_course_detail", params)
  7860. .then((res) => {
  7861. // console.log(this.unitJson);
  7862. let unitJson = JSON.parse(res.data[0][0].chapters);
  7863. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7864. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7865. let _unitJson = [];
  7866. let _chapAarry = [];
  7867. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7868. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7869. let index = 1;
  7870. let chapindex;
  7871. if (_unitJson2.length > unitJson.length) {
  7872. for (let c = 0; c < _unitJson2.length; c++) {
  7873. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7874. }
  7875. for (let j = 0; j < unitJson.length; j++) {
  7876. let count = 0;
  7877. for (let k = 0; k < _unitJson2.length; k++) {
  7878. if (
  7879. unitJson[j].chapterInfo[0].chapterid ==
  7880. _unitJson2[k].chapterInfo[0].chapterid
  7881. ) {
  7882. count++;
  7883. _chapAarry.splice(
  7884. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7885. 1
  7886. );
  7887. _unitJson.push(unitJson[j]);
  7888. break;
  7889. }
  7890. }
  7891. // if(count === 0){
  7892. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7893. // }
  7894. }
  7895. for (let k = 0; k < _unitJson2.length; k++) {
  7896. if (_unitJson2[k].isUpdate == 1) {
  7897. _chapAarry.splice(
  7898. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7899. 1
  7900. );
  7901. _unitJson.push(_unitJson2[k]);
  7902. }
  7903. }
  7904. console.log(_chapAarry);
  7905. for (let d = 0; d < _unitJson2.length; d++) {
  7906. if (
  7907. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7908. ) {
  7909. if (_unitIndex == d) {
  7910. index = 2;
  7911. }
  7912. chapindex = d;
  7913. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7914. }
  7915. }
  7916. } else {
  7917. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7918. }
  7919. for (let i = 0; i < unitJson.length; i++) {
  7920. if (
  7921. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7922. _unitJson[i].chapterInfo[0].chapterid !=
  7923. unitJson[i].chapterInfo[0].chapterid
  7924. ) {
  7925. if (i == _unitJson.length - 1) {
  7926. // this.unitIndex++
  7927. _unitIndex2++;
  7928. }
  7929. _unitJson.splice(i, 0, unitJson[i]);
  7930. } else if (i > _unitJson.length - 1) {
  7931. _unitJson.push(unitJson[i]);
  7932. } else if (
  7933. _unitJson[i].chapterInfo[0].chapterid ==
  7934. unitJson[i].chapterInfo[0].chapterid
  7935. ) {
  7936. _unitJson[i] = unitJson[i];
  7937. }
  7938. // if (i == _unitIndex) {
  7939. // continue;
  7940. // } else
  7941. }
  7942. if (_chapAarry.length && index != 2) {
  7943. if (chapindex < _unitIndex) {
  7944. this.isDelete = 2;
  7945. // this.unitIndex--;
  7946. _unitIndex2--;
  7947. } else if (
  7948. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7949. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7950. ) {
  7951. this.isDelete = 2;
  7952. for (let n = 0; n < _unitJson.length; n++) {
  7953. if (
  7954. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7955. _unitJson[n].chapterInfo[0].chapterid
  7956. ) {
  7957. // this.unitIndex = n;
  7958. _unitIndex2 = n;
  7959. _unitJson[n] = _unitJson2[_unitIndex];
  7960. break;
  7961. }
  7962. }
  7963. }
  7964. } else if (index != 2) {
  7965. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  7966. _unitJson2[_unitIndex];
  7967. for (
  7968. var ci = 0;
  7969. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7970. ci++
  7971. ) {
  7972. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7973. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7974. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7975. .toolChoose
  7976. : [];
  7977. let _chapterData = [];
  7978. for (
  7979. var c = 0;
  7980. c <
  7981. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7982. .length;
  7983. c++
  7984. ) {
  7985. if (
  7986. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7987. .chapterData[c]
  7988. ) {
  7989. _chapterData.push(
  7990. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7991. .chapterData[c]
  7992. );
  7993. }
  7994. }
  7995. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7996. _chapterData;
  7997. }
  7998. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7999. }
  8000. if (index == 1) {
  8001. this.unitJson = _unitJson;
  8002. this.$forceUpdate();
  8003. setTimeout(() => {
  8004. if (this.unitIndex != _unitIndex2) {
  8005. this.isDelete = 2;
  8006. this.unitIndex = _unitIndex2;
  8007. }
  8008. }, 0);
  8009. this.timer = setTimeout(() => {
  8010. this.seleteCourseUpdate();
  8011. }, 1000);
  8012. } else if (index == 2) {
  8013. let _this = this;
  8014. _this
  8015. .$confirm(
  8016. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8017. "提示",
  8018. {
  8019. confirmButtonText: "需要",
  8020. cancelButtonText: "取消",
  8021. type: "warning",
  8022. }
  8023. )
  8024. .then(() => {
  8025. if (_this.time()) {
  8026. _this.restoreWork(
  8027. _chapAarry[0],
  8028. _unitJson,
  8029. chapindex,
  8030. _unitJson2,
  8031. _unitIndex2
  8032. );
  8033. }
  8034. })
  8035. .catch(() => {
  8036. _this.unitJson = _unitJson;
  8037. _this.$forceUpdate();
  8038. setTimeout(() => {
  8039. if (this.unitIndex != _unitIndex2) {
  8040. this.isDelete = 2;
  8041. this.unitIndex = _unitIndex2;
  8042. }
  8043. }, 0);
  8044. _this.timer = setTimeout(() => {
  8045. _this.seleteCourseUpdate();
  8046. }, 1000);
  8047. });
  8048. }
  8049. })
  8050. .catch((err) => {
  8051. console.error(err);
  8052. });
  8053. },
  8054. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8055. let params = [
  8056. {
  8057. cid: this.cid,
  8058. chapters: JSON.stringify(this.unitJson),
  8059. uid: this.userid,
  8060. chapid: chapid,
  8061. },
  8062. ];
  8063. this.ajax
  8064. .post(this.$store.state.api + "restoreWork", params)
  8065. .then((res) => {
  8066. this.$message({
  8067. message: "恢复成功",
  8068. type: "success",
  8069. });
  8070. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8071. this.unitJson = unitJson;
  8072. this.$forceUpdate();
  8073. setTimeout(() => {
  8074. if (this.unitIndex != unitIndex2) {
  8075. this.isDelete = 2;
  8076. this.unitIndex = unitIndex2;
  8077. }
  8078. }, 0);
  8079. this.timer = setTimeout(() => {
  8080. this.seleteCourseUpdate();
  8081. }, 1000);
  8082. })
  8083. .catch((err) => {
  8084. this.$message.error("网络不佳");
  8085. console.error(err);
  8086. });
  8087. },
  8088. getTypeName() {
  8089. console.log(this.courseTypeId);
  8090. this.$forceUpdate();
  8091. },
  8092. selectAllType() {
  8093. let params = {
  8094. org: this.org && this.org != "" ? this.org : "",
  8095. oid: this.oid && this.oid != "" ? this.oid : "",
  8096. };
  8097. this.ajax
  8098. .get(this.$store.state.api + "selectAllType", params)
  8099. .then((res) => {
  8100. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8101. res.data[0] = [...res.data[0], ...res.data[4]]
  8102. }
  8103. this.CourseType = res.data;
  8104. this.CourseType2 = [
  8105. { name: "智见课程", id: [] },
  8106. { name: "智行课程", id: [] },
  8107. { name: "智创课程", id: [] },
  8108. ];
  8109. for (var cti = 0; cti < res.data[0].length; cti++) {
  8110. if (
  8111. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8112. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8113. ) {
  8114. this.CourseType2[0].id.push(res.data[0][cti].id);
  8115. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8116. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8117. this.CourseType2[1].id.push(res.data[0][cti].id);
  8118. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8119. this.CourseType2[2].id.push(res.data[0][cti].id);
  8120. }
  8121. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8122. res.data[0][cti].name = "年级";
  8123. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8124. res.data[0][cti].name = "学科";
  8125. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8126. res.data[0][cti].name = "主题";
  8127. }
  8128. }
  8129. let _courseTypeId = [];
  8130. for (var i = 0; i < res.data[0].length; i++) {
  8131. if (!this.cid) {
  8132. this.courseTypeId[res.data[0][i].id] = [];
  8133. }
  8134. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8135. // }
  8136. this.CourseTypeJson[res.data[0][i].id] = [];
  8137. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8138. if (res.data[0][i].name == "栏目") {
  8139. this.CourseType[0][i].name = "主题";
  8140. }
  8141. }
  8142. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8143. for (var j = 0; j < res.data[1].length; j++) {
  8144. if (
  8145. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8146. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8147. ) {
  8148. _courseTypeId.push(res.data[1][j].id);
  8149. }
  8150. if (res.data[0][i].id == res.data[1][j].pid) {
  8151. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8152. }
  8153. }
  8154. } else {
  8155. if (res.data[2].length > 0) {
  8156. for (var j = 0; j < res.data[2].length; j++) {
  8157. if (
  8158. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8159. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8160. ) {
  8161. _courseTypeId.push(res.data[2][j].id);
  8162. }
  8163. if (res.data[0][i].id == res.data[2][j].pid) {
  8164. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8165. }
  8166. }
  8167. }
  8168. if (res.data[3].length > 0) {
  8169. for (var j = 0; j < res.data[3].length; j++) {
  8170. if (
  8171. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8172. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8173. ) {
  8174. _courseTypeId.push(res.data[3][j].id);
  8175. }
  8176. if (res.data[0][i].id == res.data[3][j].pid) {
  8177. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8178. }
  8179. }
  8180. }
  8181. }
  8182. }
  8183. this.courseTypeId = _courseTypeId;
  8184. })
  8185. .catch((err) => {
  8186. console.error(err);
  8187. });
  8188. },
  8189. selectType() {
  8190. this.ajax
  8191. .get(this.$store.state.api + "selectType")
  8192. .then((res) => {
  8193. this.CourseType = res.data;
  8194. for (var i = 0; i < res.data[0].length; i++) {
  8195. if (!this.cid) {
  8196. this.courseTypeId[res.data[0][i].id] = "";
  8197. }
  8198. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8199. if (res.data[0][i].name == "栏目") {
  8200. this.CourseType[0][i].name = "主题";
  8201. }
  8202. }
  8203. for (var j = 0; j < res.data[1].length; j++) {
  8204. if (res.data[0][i].id == res.data[1][j].pid) {
  8205. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8206. this.CourseTypeJson[res.data[0][i].id] = [];
  8207. }
  8208. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8209. }
  8210. }
  8211. }
  8212. this.selectTypeByOid();
  8213. this.selectTypeByOrg();
  8214. })
  8215. .catch((err) => {
  8216. console.error(err);
  8217. });
  8218. },
  8219. selectTypeByOid() {
  8220. let params = {
  8221. oid: this.oid,
  8222. };
  8223. this.ajax
  8224. .get(this.$store.state.api + "selectTypeByOid", params)
  8225. .then((res) => {
  8226. for (var i = 0; i < res.data[0].length; i++) {
  8227. for (var j = 0; j < res.data[1].length; j++) {
  8228. if (res.data[0][i].id == res.data[1][j].pid) {
  8229. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8230. this.CourseTypeJson[res.data[0][i].id] = [];
  8231. }
  8232. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8233. }
  8234. }
  8235. }
  8236. })
  8237. .catch((err) => {
  8238. console.error(err);
  8239. });
  8240. },
  8241. selectTypeByOrg() {
  8242. let params = {
  8243. oid: this.org,
  8244. };
  8245. this.ajax
  8246. .get(this.$store.state.api + "selectTypeByOrg", params)
  8247. .then((res) => {
  8248. for (var i = 0; i < res.data[0].length; i++) {
  8249. for (var j = 0; j < res.data[1].length; j++) {
  8250. if (res.data[0][i].id == res.data[1][j].pid) {
  8251. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8252. this.CourseTypeJson[res.data[0][i].id] = [];
  8253. }
  8254. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8255. }
  8256. }
  8257. }
  8258. this.$forceUpdate();
  8259. })
  8260. .catch((err) => {
  8261. console.error(err);
  8262. });
  8263. },
  8264. OtherMb(type) {
  8265. this.typeMode = type;
  8266. setTimeout(() => {
  8267. this.checkEva(this.checkId);
  8268. setTimeout(() => {
  8269. this.checkEva(this.checkId);
  8270. }, 100);
  8271. }, 100);
  8272. },
  8273. openMember() {
  8274. this.searchTN = "";
  8275. this.getTeacher();
  8276. this.dialogVisibleMember = true;
  8277. },
  8278. checkEva(id, type) {
  8279. this.dialogVisiblemb = false;
  8280. this.selectEva();
  8281. if (this.evalua != id && type == 2) {
  8282. this.$message.success("导入成功");
  8283. setTimeout(() => {
  8284. this.checkEva(id)
  8285. }, 100);
  8286. }
  8287. this.evalua = id;
  8288. this.checkId = id;
  8289. if (this.evalua != "") {
  8290. for (var i = 0; i < this.evaJuri.length; i++) {
  8291. if (this.evalua == this.evaJuri[i].id) {
  8292. this.eTitle = this.evaJuri[i].title;
  8293. this.eJson = JSON.parse(this.evaJuri[i].content);
  8294. }
  8295. }
  8296. this.data.data = [];
  8297. this.$forceUpdate();
  8298. setTimeout(() => {
  8299. this.setMindData();
  8300. }, 1000);
  8301. }
  8302. },
  8303. deleteEva() {
  8304. let _this = this;
  8305. if (_this.evalua == "") {
  8306. this.$message.warning("内容已经清空了,请勿重复清空");
  8307. return;
  8308. }
  8309. _this
  8310. .$confirm("确定删除此目标吗?", "提示", {
  8311. confirmButtonText: "确定",
  8312. cancelButtonText: "取消",
  8313. type: "warning",
  8314. })
  8315. .then(() => {
  8316. _this.evalua = "";
  8317. _this.checkId = "";
  8318. _this.eTitle = "";
  8319. let _unitJson = _this.unitJson;
  8320. for (var i = 0; i < _unitJson.length; i++) {
  8321. let _task = _unitJson[i].chapterInfo[0].taskJson;
  8322. for (var j = 0; j < _task.length; j++) {
  8323. let _eList = _task[j].eList;
  8324. for (var k = 0; k < _eList.length; k++) {
  8325. delete _eList[k].target;
  8326. }
  8327. }
  8328. }
  8329. _this.$forceUpdate();
  8330. if (_this.cid) {
  8331. _this.updateWork();
  8332. }
  8333. })
  8334. .catch(() => {
  8335. return;
  8336. });
  8337. },
  8338. selectEva() {
  8339. let params = {
  8340. oid: this.oid,
  8341. };
  8342. this.ajax
  8343. .get(this.$store.state.api + "selectAllEvaluation", params)
  8344. .then((res) => {
  8345. this.evaJuri = res.data[0];
  8346. })
  8347. .catch((err) => {
  8348. console.error(err);
  8349. });
  8350. },
  8351. setMindData() {
  8352. let targetArray = [];
  8353. this.data.data = [];
  8354. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8355. let _eJson = Object.keys(this.eJson);
  8356. let _e = this.eJson;
  8357. for (let i = 0; i < _eJson.length; i++) {
  8358. let element = _e[_eJson[i]];
  8359. this.data.data.push({
  8360. id: element.id,
  8361. parentid: "root",
  8362. topic: element.name,
  8363. });
  8364. // targetArray.push({
  8365. // id: element.id,
  8366. // parentid: "root",
  8367. // name: element.name,
  8368. // });
  8369. targetArray.push({
  8370. value: element.name,
  8371. label: element.name,
  8372. children: [],
  8373. });
  8374. let _eJsonc = Object.keys(element.child);
  8375. let _e2 = element.child;
  8376. for (let j = 0; j < _eJsonc.length; j++) {
  8377. let _ec = _e2[_eJsonc[j]];
  8378. this.data.data.push({
  8379. id: _ec.id,
  8380. parentid: element.id,
  8381. topic: _ec.name,
  8382. });
  8383. // targetArray.push({
  8384. // id: _ec.id,
  8385. // parentid: element.id,
  8386. // name: _ec.name,
  8387. // });
  8388. targetArray[i].children.push({
  8389. value: _ec.name,
  8390. label: _ec.name,
  8391. children: [],
  8392. });
  8393. let _eJsonz = Object.keys(_ec.child);
  8394. let _e3 = _ec.child;
  8395. for (let z = 0; z < _eJsonz.length; z++) {
  8396. let _ez = _e3[_eJsonz[z]];
  8397. this.data.data.push({
  8398. id: _ez.id,
  8399. parentid: _ec.id,
  8400. topic: _ez.name,
  8401. });
  8402. // targetArray.push({
  8403. // id: _ez.id,
  8404. // parentid: _ec.id,
  8405. // name: _ez.name,
  8406. // });
  8407. targetArray[i].children[j].children.push({
  8408. value: _ez.name,
  8409. label: _ez.name,
  8410. });
  8411. }
  8412. }
  8413. }
  8414. this.targetArray = targetArray;
  8415. this.$forceUpdate();
  8416. },
  8417. /*添加评价 */
  8418. addEList(index, tIndex) {
  8419. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8420. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8421. value: "",
  8422. detail: "",
  8423. score: 5,
  8424. })
  8425. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8426. { value: "", detail: "", score: 5 },
  8427. ]);
  8428. this.$forceUpdate();
  8429. },
  8430. forceUpdate() {
  8431. this.$forceUpdate();
  8432. },
  8433. deletEList(index, tIndex, eIndex) {
  8434. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8435. eIndex,
  8436. 1
  8437. );
  8438. this.$forceUpdate();
  8439. },
  8440. getChoosePic(t) {
  8441. this.chooseType = t;
  8442. this.getAllBanner();
  8443. },
  8444. getAllBanner() {
  8445. this.sysPicVisible = true;
  8446. let params = {
  8447. t: this.chooseType,
  8448. };
  8449. this.ajax
  8450. .get(this.$store.state.api + "selectAllBanner", params)
  8451. .then((res) => {
  8452. this.sysPic = res.data[0];
  8453. })
  8454. .catch((err) => {
  8455. console.error(err);
  8456. });
  8457. },
  8458. // getClass() {
  8459. // let params = {
  8460. // oid: this.oid,
  8461. // };
  8462. // this.ajax
  8463. // .get(this.$store.state.api + "selectClassBySchool", params)
  8464. // .then((res) => {
  8465. // this.classJuri = res.data[0];
  8466. // })
  8467. // .catch((err) => {
  8468. // console.error(err);
  8469. // });
  8470. // },
  8471. deleteSysPic() {
  8472. this.cover = [];
  8473. this.isSysPic = false;
  8474. this.isSysPic2 = false;
  8475. },
  8476. deleteSelectPic() {
  8477. this.selectJson.url = "";
  8478. },
  8479. setEListStar() {
  8480. this.$forceUpdate();
  8481. },
  8482. deletRateList(i) {
  8483. this.rateJson.splice(i, 1);
  8484. },
  8485. addRateList() {
  8486. this.rateJson.push({ detail: "", score: 5, value: "" });
  8487. },
  8488. addSt() {
  8489. this.sentenceList.push({
  8490. sentenceTitle: "",
  8491. addSentence: [],
  8492. rightAnswer: [],
  8493. });
  8494. },
  8495. addSen(i) {
  8496. if (!this.sentenceList[i].sentenceTitle) {
  8497. this.$message.error("请填写卡片内容!");
  8498. return;
  8499. }
  8500. if (this.sentenceList[i].sentenceTitle.length > 10) {
  8501. this.$message.error("卡片内容字数不能超过10位");
  8502. return;
  8503. }
  8504. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  8505. this.$message.error("不能添加重复的卡片内容!");
  8506. return;
  8507. }
  8508. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8509. // this.isPushTitleList.push(this.sentenceTitle);
  8510. this.sentenceList[i].sentenceTitle = "";
  8511. },
  8512. setRightAnswer(s, i, j) {
  8513. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8514. this.sentenceList[i].rightAnswer.push(s);
  8515. }
  8516. },
  8517. returnCard(r, i, j) {
  8518. this.sentenceList[i].rightAnswer.splice(j, 1);
  8519. },
  8520. addSentenceTool() {
  8521. for (var i = 0; i < this.sentenceList.length; i++) {
  8522. if (this.sentenceList[i].rightAnswer.length == 0) {
  8523. this.$message.error(`请将题目${i + 1}设置完整。`);
  8524. return;
  8525. }
  8526. if (
  8527. this.sentenceList[i].addSentence.length !=
  8528. this.sentenceList[i].rightAnswer.length
  8529. ) {
  8530. this.$message.error(`请将题目${i + 1}设置完整。`);
  8531. return;
  8532. }
  8533. }
  8534. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8535. this.taskCount
  8536. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8537. this.sentenceList = [
  8538. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8539. ];
  8540. this.dialogVisibleSentence = false;
  8541. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8542. // itemTaskIndex
  8543. // ].toolChoose[toolIndex].tool = [];
  8544. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8545. // itemTaskIndex
  8546. // ].toolChoose[toolIndex].tool.push(i);
  8547. if (
  8548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8549. .toolChoose[this.toolIndex].tool != 47
  8550. ) {
  8551. this.addTools(47, this.taskCount, this.toolIndex);
  8552. }
  8553. },
  8554. addTableJson() {
  8555. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8556. // this.$message.error("请将信息填写完整!");
  8557. // return;
  8558. // }
  8559. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8560. this.taskCount
  8561. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8562. // this.tableJson = [{ text: "" }];
  8563. // this.dialogVisibleTable = false;
  8564. this.$message.success("上传成功");
  8565. if (
  8566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8567. .toolChoose[this.toolIndex].tool != 48
  8568. ) {
  8569. this.addTools(48, this.taskCount, this.toolIndex);
  8570. }
  8571. },
  8572. addWordJson() {
  8573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8574. this.taskCount
  8575. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8576. // this.wordJson = [{ text: "" }];
  8577. // this.dialogVisibleWord = false;
  8578. this.$message.success("上传成功");
  8579. if (
  8580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8581. .toolChoose[this.toolIndex].tool != 52
  8582. ) {
  8583. this.addTools(52, this.taskCount, this.toolIndex);
  8584. }
  8585. },
  8586. addMoreUpload() {
  8587. if (this.uploadJson.length == 0) {
  8588. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8589. this.taskCount
  8590. ].toolChoose[this.toolIndex].uploadJson = [];
  8591. } else {
  8592. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8593. this.taskCount
  8594. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8595. }
  8596. this.uploadJson = [];
  8597. this.dialogVisibleMoreUpload = false;
  8598. if (
  8599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8600. .toolChoose[this.toolIndex].tool != 50
  8601. ) {
  8602. this.addTools(50, this.taskCount, this.toolIndex);
  8603. }
  8604. },
  8605. addPreTime() {
  8606. if (this.preTime == 0) {
  8607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8608. this.taskCount
  8609. ].toolChoose[this.toolIndex].preTime = 0;
  8610. } else {
  8611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8612. this.taskCount
  8613. ].toolChoose[this.toolIndex].preTime = this.preTime;
  8614. }
  8615. this.preTime = 0;
  8616. this.dialogVisiblePreTime = false;
  8617. if (
  8618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8619. .toolChoose[this.toolIndex].tool != 10
  8620. ) {
  8621. this.addTools(10, this.taskCount, this.toolIndex);
  8622. }
  8623. },
  8624. goToTask(i) {
  8625. this.toolIndexType = ''
  8626. if (this.isClickColor == (i + 1)) {
  8627. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  8628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8629. } else {
  8630. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8631. }
  8632. this.$forceUpdate();
  8633. return;
  8634. }
  8635. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  8636. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8637. } else {
  8638. document.querySelectorAll(".basic_box")[0].scrollTop =
  8639. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  8640. this.isClickColor = i + 1;
  8641. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8642. }
  8643. this.$forceUpdate();
  8644. },
  8645. taskMove(type, index) {
  8646. this.$confirm(
  8647. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8648. "提示",
  8649. {
  8650. confirmButtonText: "确定",
  8651. cancelButtonText: "取消",
  8652. type: "warning",
  8653. }
  8654. )
  8655. .then(() => {
  8656. if (type == 1) {
  8657. if (index > 0) {
  8658. let a = JSON.parse(
  8659. JSON.stringify(
  8660. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8661. index - 1
  8662. ]
  8663. )
  8664. );
  8665. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8667. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8668. }
  8669. } else {
  8670. if (
  8671. index <
  8672. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8673. ) {
  8674. let a = JSON.parse(
  8675. JSON.stringify(
  8676. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8677. index + 1
  8678. ]
  8679. )
  8680. );
  8681. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8682. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8684. }
  8685. }
  8686. this.$forceUpdate();
  8687. })
  8688. .catch(() => {
  8689. return;
  8690. });
  8691. },
  8692. stageMove(type, index) {
  8693. if (type == 1) {
  8694. if (index > 0) {
  8695. let a = JSON.parse(
  8696. JSON.stringify(
  8697. this.unitJson3[index - 1]
  8698. )
  8699. );
  8700. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  8701. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8702. this.unitJson3[index - 1] = this.unitJson3[index];
  8703. this.unitJson3[index] = a;
  8704. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  8705. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8706. }
  8707. } else {
  8708. if (
  8709. index <
  8710. this.unitJson3.length - 1
  8711. ) {
  8712. let a = JSON.parse(
  8713. JSON.stringify(
  8714. this.unitJson3[
  8715. index + 1
  8716. ]
  8717. )
  8718. );
  8719. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  8720. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8721. this.unitJson3[index + 1] =
  8722. this.unitJson3[index];
  8723. this.unitJson3[index] = a;
  8724. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  8725. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8726. }
  8727. }
  8728. this.$forceUpdate();
  8729. },
  8730. addGroup(i) {
  8731. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8732. this.groupJson.group.push({
  8733. name: "第" + (this.groupJson.group.length + 1) + "组",
  8734. });
  8735. },
  8736. deleteGroup(i) {
  8737. this.groupJson.group.splice(i, 1);
  8738. },
  8739. numberPan() {
  8740. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  8741. this.$message.error('请输入2-10的数字')
  8742. this.groupJson.number = ''
  8743. }
  8744. },
  8745. addGroupJson() {
  8746. for (var i = 0; i < this.groupJson.group.length; i++) {
  8747. if (!this.groupJson.group[i].name) {
  8748. this.$message.error("请将信息填写完整!");
  8749. return;
  8750. }
  8751. }
  8752. if (!this.groupJson.number) {
  8753. this.$message.error("请将信息填写完整!");
  8754. return;
  8755. }
  8756. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8757. this.taskCount
  8758. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8759. JSON.stringify(this.groupJson)
  8760. );
  8761. this.dialogVisibleGroup = false;
  8762. this.groupJson = {};
  8763. if (
  8764. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8765. .toolChoose[this.toolIndex].tool != 49
  8766. ) {
  8767. this.addTools(49, this.taskCount, this.toolIndex);
  8768. }
  8769. },
  8770. updateTime(preTime) {
  8771. this.preTime = preTime;
  8772. },
  8773. InviteChange(val) {
  8774. console.log(val);
  8775. let _check = []
  8776. let _check2 = []
  8777. for (var i = 0; i < this.grade2.length; i++) {
  8778. var gid = this.grade2[i].id
  8779. _check.push(gid)
  8780. }
  8781. for (var i = 0; i < this.checkboxList2.length; i++) {
  8782. var _id = this.checkboxList2[i]
  8783. if (_check.indexOf(_id) !== -1) {
  8784. _check2.push(_id)
  8785. }
  8786. }
  8787. this.checkAll = _check2.length === _check.length;
  8788. return;
  8789. let array = JSON.parse(JSON.stringify(val));
  8790. this.inviteCode = this.inviteCode.filter((el) => {
  8791. if (val.indexOf(el.cid) != -1) {
  8792. array.splice(array.indexOf(el.cid), 1);
  8793. return el;
  8794. }
  8795. });
  8796. for (var i = 0; i < array.length; i++) {
  8797. this.getInviteCode(array[i]);
  8798. }
  8799. },
  8800. handleCheckAllChange(val) {
  8801. if (val) {
  8802. for (var i = 0; i < this.grade2.length; i++) {
  8803. var gid = this.grade2[i].id
  8804. if (this.checkboxList2.indexOf(gid) === -1) {
  8805. this.checkboxList2.push(gid)
  8806. }
  8807. }
  8808. } else {
  8809. let _check = []
  8810. let _check2 = []
  8811. for (var i = 0; i < this.grade2.length; i++) {
  8812. var gid = this.grade2[i].id
  8813. _check.push(gid)
  8814. }
  8815. for (var i = 0; i < this.checkboxList2.length; i++) {
  8816. var _id = this.checkboxList2[i]
  8817. if (_check.indexOf(_id) === -1) {
  8818. _check2.push(_id)
  8819. }
  8820. }
  8821. this.checkboxList2 = _check2
  8822. }
  8823. this.isIndeterminate = false;
  8824. },
  8825. async getInviteCode(cid) {
  8826. let code = this.randomNumber();
  8827. let params = {
  8828. code: code,
  8829. oid: this.oid,
  8830. };
  8831. let type = 1;
  8832. for (var i = 0; i < this.inviteCode.length; i++) {
  8833. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  8834. type = 2;
  8835. }
  8836. }
  8837. if (type == 2) {
  8838. this.getInviteCode(cid);
  8839. return;
  8840. }
  8841. const res = await this.ajax.get(
  8842. this.$store.state.api + "selectInviteCode2",
  8843. params
  8844. );
  8845. if (
  8846. res.data.length &&
  8847. res.data[0].length &&
  8848. res.data[0][0].courseId != this.cid
  8849. ) {
  8850. this.getInviteCode(cid);
  8851. return;
  8852. }
  8853. let array = [];
  8854. for (var i = 0; i < this.inviteCode.length; i++) {
  8855. array.push(this.inviteCode[i].cid);
  8856. }
  8857. if (array.indexOf(cid) != -1) {
  8858. this.inviteCode[array.indexOf(cid)].ic = code;
  8859. } else {
  8860. this.inviteCode.push({ cid: cid, ic: code });
  8861. }
  8862. },
  8863. OpenInviteD(cid) {
  8864. let array = [];
  8865. this.icode = "";
  8866. for (var i = 0; i < this.inviteCode.length; i++) {
  8867. array.push(this.inviteCode[i].cid);
  8868. }
  8869. if (array.indexOf(cid) != -1) {
  8870. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  8871. }
  8872. this.inviteId = cid;
  8873. this.dialogVisibleInvite = true;
  8874. },
  8875. addInvite() {
  8876. let reg = /^[A-Za-z0-9]{4,}$/;
  8877. if (!reg.test(this.icode)) {
  8878. this.$message.error("请输入至少四位数字或英文组合的随机码");
  8879. return;
  8880. }
  8881. let type = 1;
  8882. for (var i = 0; i < this.inviteCode.length; i++) {
  8883. if (
  8884. this.inviteCode[i].cid != this.inviteId &&
  8885. this.icode == this.inviteCode[i].ic
  8886. ) {
  8887. type = 2;
  8888. }
  8889. }
  8890. if (type == 2) {
  8891. this.$message.error("已有此随机码,不能重复");
  8892. return;
  8893. }
  8894. let params = {
  8895. code: this.icode,
  8896. oid: this.oid,
  8897. };
  8898. this.ajax
  8899. .get(this.$store.state.api + "selectInviteCode", params)
  8900. .then((res) => {
  8901. if (
  8902. res.data.length &&
  8903. res.data[0].length &&
  8904. res.data[0][0].courseId != this.cid
  8905. ) {
  8906. this.$message.error("已有此随机码,不能重复");
  8907. return;
  8908. }
  8909. let array = [];
  8910. for (var i = 0; i < this.inviteCode.length; i++) {
  8911. array.push(this.inviteCode[i].cid);
  8912. }
  8913. if (array.indexOf(this.inviteId) != -1) {
  8914. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  8915. } else {
  8916. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  8917. }
  8918. this.icode = "";
  8919. this.dialogVisibleInvite = false;
  8920. })
  8921. .catch((err) => {
  8922. console.error(err);
  8923. });
  8924. },
  8925. randomNumber() {
  8926. // 随机生成两位数
  8927. // let num = Math.floor(Math.random() * 900) + 100;
  8928. // 生成 0 到 99 之间的随机整数
  8929. const randomNumber = Math.floor(Math.random() * 100);
  8930. // 如果随机数小于 10,补上前导零
  8931. const num =
  8932. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  8933. // 随机生成两个大写字母
  8934. let letters = "";
  8935. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  8936. for (let i = 0; i < 3; i++) {
  8937. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  8938. }
  8939. // 随机生成两位数字和字母的组合
  8940. let mix = "";
  8941. let chars =
  8942. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  8943. for (let i = 0; i < 3; i++) {
  8944. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  8945. mix += char;
  8946. }
  8947. // 随机选择一种类型
  8948. let type = Math.floor(Math.random() * 3);
  8949. return num;
  8950. // 根据类型输出结果
  8951. switch (type) {
  8952. case 0:
  8953. console.log(num); // 输出两位数
  8954. return num;
  8955. case 1:
  8956. console.log(letters); // 输出两个大写字母
  8957. return letters;
  8958. case 2:
  8959. console.log(mix); // 输出两位数字和字母的组合
  8960. return mix;
  8961. }
  8962. },
  8963. getPaste() {
  8964. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8965. if (!iframe) {
  8966. return;
  8967. }
  8968. let copyData = iframe.contentWindow.copyData;
  8969. if (copyData && copyData.stageData && copyData.stageData.length) {
  8970. this.isPasteStage = true
  8971. }
  8972. if (copyData && copyData.selectData.length) {
  8973. this.isPasteChoice = true
  8974. }
  8975. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  8976. this.isPasteTask = true
  8977. }
  8978. },
  8979. searchImage() {
  8980. var _this = this;
  8981. _this.imageList = []
  8982. if (!_this.searchImageValue) {
  8983. _this.sysPicVisible2 = true
  8984. return
  8985. }
  8986. _this.imageloading = true
  8987. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  8988. page: _this.ppage,
  8989. pagesize: 9,
  8990. query: _this.searchImageValue
  8991. }).then(function (response) {
  8992. // console.log(response.data.data);
  8993. var data = response.data.FunctionResponse.result;
  8994. for (var i = 0; i < data.length; i++) {
  8995. _this.imageList.push({ url: data[i].thumbnail })
  8996. }
  8997. _this.imageloading = false
  8998. }).catch(function (error) {
  8999. console.log(error);
  9000. });
  9001. _this.sysPicVisible2 = true
  9002. },
  9003. changePicture() {
  9004. this.ppage++
  9005. this.searchImage()
  9006. },
  9007. resetImage() {
  9008. this.ppage = 1
  9009. this.searchImage()
  9010. },
  9011. jumpGj(i, j) {
  9012. if ((i + 1) != this.isClickColor) {
  9013. this.isClickColor = (i + 1)
  9014. }
  9015. var a = document.scrollingElement;
  9016. this.toolIndexType = `gj${i}${j}`
  9017. let target = document.querySelector(`#gj${i}${j}`);
  9018. if (target) {
  9019. target.scrollIntoView(true);
  9020. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  9021. setTimeout(() => {
  9022. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9023. }, 0);
  9024. }
  9025. },
  9026. dragStart(val, i, j) {
  9027. console.log(this.taskCount);
  9028. this.taskCount = j
  9029. this.oldIndex = i;
  9030. this.oldData = val;
  9031. },
  9032. dragOver(i) {
  9033. this.newIndex = i;
  9034. },
  9035. dragEnd() {
  9036. console.log(this.taskCount);
  9037. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9038. // 删除老的节点
  9039. newItems.splice(this.oldIndex, 1);
  9040. // 在列表中目标位置增加新的节点
  9041. newItems.splice(this.newIndex, 0, this.oldData);
  9042. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9043. this.newIndex = "";
  9044. this.$forceUpdate()
  9045. },
  9046. dragTaskStart(val, i) {
  9047. this.oldIndex = i;
  9048. this.oldData = val;
  9049. },
  9050. dragTaskOver(i) {
  9051. this.newIndex = i;
  9052. },
  9053. dragTaskEnd() {
  9054. if(this.newIndex == this.oldIndex){
  9055. return;
  9056. }
  9057. this.$confirm(
  9058. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9059. "提示",
  9060. {
  9061. confirmButtonText: "确定",
  9062. cancelButtonText: "取消",
  9063. type: "warning",
  9064. }
  9065. )
  9066. .then(() => {
  9067. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9068. // 删除老的节点
  9069. newItems.splice(this.oldIndex, 1);
  9070. // 在列表中目标位置增加新的节点
  9071. newItems.splice(this.newIndex, 0, this.oldData);
  9072. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9073. this.newIndex = "";
  9074. this.$forceUpdate()
  9075. })
  9076. .catch(() => {
  9077. this.newIndex = "";
  9078. return;
  9079. });
  9080. },
  9081. },
  9082. beforeDestroy() {
  9083. clearTimeout(this.timer);
  9084. this.timer = null;
  9085. clearInterval(this.timer2);
  9086. this.timer2 = null;
  9087. clearInterval(this.pasteTimer);
  9088. this.pasteTimer = null;
  9089. },
  9090. beforeRouteLeave(to, from, next) {
  9091. clearTimeout(this.timer);
  9092. this.timer = null;
  9093. clearInterval(this.timer2);
  9094. this.timer2 = null;
  9095. clearInterval(this.pasteTimer);
  9096. this.pasteTimer = null;
  9097. next();
  9098. },
  9099. created() {
  9100. this.getStudent();
  9101. this.getTeacher();
  9102. this.getClass();
  9103. this.selectGrage();
  9104. this.getTemplate();
  9105. // this.selectType();
  9106. this.selectEva();
  9107. this.loading = false;
  9108. this.timer2 = setInterval(() => {
  9109. this.selectEva();
  9110. }, 5000);
  9111. this.pasteTimer = setInterval(() => {
  9112. this.getPaste();
  9113. }, 1000);
  9114. setTimeout(() => {
  9115. this.selectCourseDetail();
  9116. }, 500);
  9117. },
  9118. };
  9119. </script>
  9120. <style scoped>
  9121. @media screen and (max-width: 1280px) {
  9122. .mbCss {
  9123. flex-direction: column !important;
  9124. }
  9125. .pjCss {
  9126. width: 100% !important;
  9127. }
  9128. .evaCss {
  9129. width: 100% !important;
  9130. }
  9131. }
  9132. .dialog_diy>>>.el-dialog__header {
  9133. background: #3c3c3c !important;
  9134. padding: 15px 20px;
  9135. }
  9136. .dialog_diy>>>.el-dialog__title {
  9137. color: #fff;
  9138. }
  9139. .dialog_diy>>>.el-dialog__headerbtn {
  9140. top: 19px;
  9141. }
  9142. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  9143. color: #fff;
  9144. }
  9145. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  9146. color: #fff;
  9147. }
  9148. .dialog_diy>>>.el-dialog__body,
  9149. .dialog_diy>>>.el-dialog__footer {
  9150. background: #fafafa;
  9151. }
  9152. .dialog_diy3>>>.el-dialog__body,
  9153. .dialog_diy3>>>.el-dialog__footer {
  9154. background: #eee !important;
  9155. }
  9156. .dialog_diy3>>>.el-dialog__body {
  9157. padding: 20px 20px;
  9158. }
  9159. .dialog_diyStage>>>.el-dialog__body {
  9160. padding: 10px;
  9161. }
  9162. .source_diy>>>.el-dialog {
  9163. height: 100% !important;
  9164. margin: 0 auto !important;
  9165. }
  9166. .source_diy>>>.el-dialog__body {
  9167. height: calc(100% - 185px);
  9168. overflow: auto;
  9169. background: #e6eaf0;
  9170. }
  9171. .source_diy>>>.el-dialog__footer {
  9172. background: #e6eaf0 !important;
  9173. }
  9174. .left {
  9175. border-right: 1px solid rgb(60, 94, 143);
  9176. display: flex;
  9177. flex-direction: column;
  9178. align-items: center;
  9179. min-height: 600px;
  9180. width: 385px;
  9181. height: 80%;
  9182. }
  9183. .tips {
  9184. color: rgb(128, 128, 128);
  9185. font-size: 12px;
  9186. width: 270px;
  9187. margin: 40px;
  9188. }
  9189. .pb_content {
  9190. height: 100% !important;
  9191. /* margin: 0 20px 0 20px; */
  9192. }
  9193. .pb_content_body {
  9194. width: 100% !important;
  9195. height: 100%;
  9196. }
  9197. .info_solid {
  9198. width: 270px;
  9199. height: 30px;
  9200. border-left: 1px solid #bdbdbd;
  9201. margin: 10px 0px 10px 30px;
  9202. }
  9203. .info_steps {
  9204. width: 270px;
  9205. font-size: 0.875rem;
  9206. display: flex;
  9207. align-items: center;
  9208. }
  9209. .info_steps span:nth-child(1) {
  9210. width: 30px;
  9211. height: 30px;
  9212. background: rgba(0, 0, 0, 0.38);
  9213. display: block;
  9214. color: #fff;
  9215. border-radius: 40px;
  9216. text-align: center;
  9217. line-height: 30px;
  9218. }
  9219. .steps_active {
  9220. background: #3d67bc !important;
  9221. }
  9222. .info_steps span:nth-child(2) {
  9223. margin-left: 5px;
  9224. }
  9225. .right {
  9226. height: 100%;
  9227. width: 100%;
  9228. display: flex;
  9229. overflow: hidden;
  9230. flex-direction: column;
  9231. }
  9232. .basic_box {
  9233. margin: 0 auto;
  9234. position: relative;
  9235. padding: 0 20px 0 20px;
  9236. }
  9237. .basic_box_success {
  9238. width: 100%;
  9239. min-height: 455px;
  9240. padding: 50px 0;
  9241. position: relative;
  9242. text-align: center;
  9243. border-bottom: 1px solid #bfbfbf;
  9244. box-sizing: border-box;
  9245. display: flex;
  9246. align-items: center;
  9247. flex-direction: column;
  9248. justify-content: center;
  9249. }
  9250. .info_title {
  9251. font-size: 1.5em;
  9252. margin-right: 25px;
  9253. /* margin: 20px 30px 20px 30px; */
  9254. }
  9255. .bInfo_title {
  9256. text-align: left;
  9257. margin: 10px 0;
  9258. }
  9259. .small_title {
  9260. font-size: 14px;
  9261. line-height: 40px;
  9262. }
  9263. .chapter_beizhu {
  9264. font-size: 12px;
  9265. font-weight: bold;
  9266. float: right;
  9267. color: rgb(128, 128, 128);
  9268. margin-top: 5px;
  9269. }
  9270. .chapter_uploadBox1 {
  9271. text-align: left;
  9272. background-color: rgb(242, 242, 242);
  9273. width: 100%;
  9274. height: 67px;
  9275. padding: 0px 15px;
  9276. border-radius: 8px;
  9277. overflow: hidden;
  9278. font-size: 16px;
  9279. box-sizing: border-box;
  9280. position: relative;
  9281. }
  9282. .chapter_add {
  9283. width: 100%;
  9284. height: 32px;
  9285. margin-top: 15px;
  9286. cursor: pointer;
  9287. }
  9288. .chapter_add_l {
  9289. margin-left: 5px;
  9290. width: 30px;
  9291. height: 30px;
  9292. float: left;
  9293. border: 1px solid #aaa;
  9294. color: #aaa;
  9295. border-radius: 50%;
  9296. font-size: 25px;
  9297. text-align: center;
  9298. }
  9299. .chapter_add_r {
  9300. font-size: 18px;
  9301. height: 40px;
  9302. line-height: 30px;
  9303. text-indent: 10px;
  9304. color: #aaa;
  9305. }
  9306. .chapter_add_r span {
  9307. font-size: 12px;
  9308. color: rgb(204, 204, 204);
  9309. }
  9310. .chapter_add_input {
  9311. display: none;
  9312. }
  9313. .line {
  9314. width: 85%;
  9315. margin: 0 auto;
  9316. border-top: 1px solid #e5e5e5;
  9317. margin-top: 20px;
  9318. }
  9319. .info_btnBox {
  9320. width: calc(100%);
  9321. display: flex;
  9322. justify-content: center;
  9323. height: 80px;
  9324. align-items: center;
  9325. background: #fff;
  9326. margin: 0 auto;
  9327. border-top: 2px solid rgb(228, 232, 237);
  9328. box-sizing: border-box;
  9329. }
  9330. .info_btnBox2 {
  9331. width: calc(100%);
  9332. display: flex;
  9333. justify-content: center;
  9334. height: 20px;
  9335. align-items: center;
  9336. background: #fff;
  9337. margin: 0 auto;
  9338. border-top: 2px solid rgb(228, 232, 237);
  9339. box-sizing: border-box;
  9340. overflow: hidden;
  9341. cursor: pointer;
  9342. }
  9343. .info_btnBox3 {
  9344. width: calc(100%);
  9345. display: flex;
  9346. justify-content: flex-end;
  9347. padding: 0 20px;
  9348. height: 60px;
  9349. align-items: center;
  9350. background: unset;
  9351. margin: 0 auto;
  9352. /* border-top: 1px solid rgb(228, 232, 237); */
  9353. box-sizing: border-box;
  9354. overflow: hidden;
  9355. cursor: pointer;
  9356. background: #fff;
  9357. border-radius: 10px;
  9358. }
  9359. .info_btn+.info_btn {
  9360. margin-left: 15px;
  9361. }
  9362. .info_btn,
  9363. .teacherWord {
  9364. color: #fff;
  9365. background-color: #0f7eff;
  9366. padding: 8px 24px;
  9367. font-size: 0.9375rem;
  9368. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9369. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9370. min-width: 64px;
  9371. font-weight: 500;
  9372. border-radius: 4px;
  9373. box-sizing: border-box;
  9374. border: none;
  9375. cursor: pointer;
  9376. }
  9377. .teacherWord {
  9378. width: 105px !important;
  9379. text-align: center !important;
  9380. line-height: 36px !important;
  9381. padding: 0 !important;
  9382. font-size: 14px !important;
  9383. margin: 10px 0 !important;
  9384. }
  9385. .wordTeacher {
  9386. display: flex;
  9387. flex-direction: column;
  9388. width: 145px;
  9389. text-align: center;
  9390. font-size: 14px;
  9391. margin: 30px 0 0 10px;
  9392. background: #fff;
  9393. position: relative;
  9394. border-radius: 5px;
  9395. padding: 25px 0px;
  9396. }
  9397. .wordPic {
  9398. margin: 0 auto;
  9399. width: 60px;
  9400. height: 60px;
  9401. cursor: pointer;
  9402. }
  9403. .deleteWord {
  9404. width: 22px;
  9405. height: 22px;
  9406. position: absolute;
  9407. right: 5px;
  9408. top: -15px;
  9409. cursor: pointer;
  9410. display: none;
  9411. z-index: 999;
  9412. }
  9413. .wordPic>img,
  9414. .deleteWord>img,
  9415. .addToolImg>img {
  9416. width: 100%;
  9417. height: 100%;
  9418. }
  9419. .info_btn:hover {
  9420. background-color: #4f7cd5 !important;
  9421. }
  9422. .cru_selectBox {
  9423. display: flex;
  9424. margin: 24px 0 10px;
  9425. flex-wrap: nowrap;
  9426. white-space: nowrap;
  9427. overflow: auto;
  9428. position: relative;
  9429. height: 40px;
  9430. max-width: calc(100% - 175px);
  9431. }
  9432. .cru_selectBox::-webkit-scrollbar {
  9433. /*滚动条整体样式*/
  9434. width: 6px;
  9435. /*高宽分别对应横竖滚动条的尺寸*/
  9436. height: 6px;
  9437. }
  9438. /*定义滚动条轨道 内阴影+圆角*/
  9439. .cru_selectBox::-webkit-scrollbar-track {
  9440. border-radius: 10px;
  9441. background-color: #eee;
  9442. }
  9443. /*定义滑块 内阴影+圆角*/
  9444. .cru_selectBox::-webkit-scrollbar-thumb {
  9445. border-radius: 10px;
  9446. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9447. background-color: rgba(0, 0, 0, 0.1);
  9448. }
  9449. .cru_line {
  9450. position: absolute;
  9451. bottom: 0px;
  9452. transition: all 0.5s;
  9453. left: 0px;
  9454. width: 50px;
  9455. height: 4px;
  9456. left: 10px;
  9457. border-radius: 2px;
  9458. background: #3681FC;
  9459. }
  9460. .cru_select {
  9461. font-size: 18px;
  9462. margin-right: 20px;
  9463. margin-left: 5px;
  9464. cursor: pointer;
  9465. color: #0E1E33;
  9466. }
  9467. .cru_select:hover {
  9468. color: #3681FC !important;
  9469. }
  9470. .cru_selected {
  9471. color: #3681FC !important;
  9472. font-weight: bold;
  9473. }
  9474. .chapter_box {
  9475. margin-top: 10px;
  9476. width: 100%;
  9477. padding: 10px 20px;
  9478. background: #fff;
  9479. border-radius: 8px;
  9480. box-sizing: border-box;
  9481. }
  9482. .chapter_contentbox {
  9483. display: flex;
  9484. align-items: center;
  9485. /* margin-top: 15px; */
  9486. }
  9487. .chapter_contentbox .cc_title {
  9488. margin: 0px;
  9489. color: black;
  9490. display: block;
  9491. white-space: nowrap;
  9492. overflow: hidden;
  9493. text-overflow: ellipsis;
  9494. margin-right: 20px;
  9495. font-size: 18px;
  9496. height: 20px;
  9497. line-height: 22px;
  9498. min-width: fit-content;
  9499. display: flex;
  9500. }
  9501. .chapter_contentbox .cc_title::before {
  9502. content: '';
  9503. height: 100%;
  9504. width: 3px;
  9505. background: #3681FC;
  9506. border-radius: 3px;
  9507. opacity: 1;
  9508. display: block;
  9509. margin-right: 10px;
  9510. }
  9511. .chapter_contentbox .cc_input {
  9512. width: 100%;
  9513. display: flex;
  9514. }
  9515. .show_taskD {
  9516. min-width: fit-content;
  9517. margin-left: 10px;
  9518. display: flex;
  9519. align-items: center;
  9520. font-size: 14px;
  9521. cursor: pointer;
  9522. color: #717C8D;
  9523. }
  9524. .show_taskD>img {
  9525. width: 15px;
  9526. margin-right: 5px;
  9527. transition: .2s all;
  9528. transform: rotate(-90deg);
  9529. }
  9530. .show_taskD.show>img {
  9531. transform: rotate(0deg);
  9532. }
  9533. .show_toolD {
  9534. min-width: fit-content;
  9535. margin-left: 10px;
  9536. display: flex;
  9537. align-items: center;
  9538. font-size: 14px;
  9539. cursor: pointer;
  9540. color: #717C8D;
  9541. position: absolute;
  9542. right: 45px;
  9543. top: 5px;
  9544. }
  9545. .show_toolD>img {
  9546. width: 15px;
  9547. margin-right: 5px;
  9548. transition: .2s all;
  9549. transform: rotate(-90deg);
  9550. }
  9551. .show_toolD.show>img {
  9552. transform: rotate(0deg);
  9553. }
  9554. .remove {
  9555. background-image: url("../../assets/icon/new/delete_u.png");
  9556. cursor: pointer;
  9557. opacity: 0.5;
  9558. width: 30px;
  9559. min-width: 30px;
  9560. height: 30px;
  9561. background-size: 100% 100%;
  9562. background-repeat: no-repeat;
  9563. margin-left: 10px;
  9564. }
  9565. .remove1 {
  9566. background-image: url("../../assets/remove1.png");
  9567. background-repeat: no-repeat;
  9568. background-position: 5px 10px;
  9569. width: 40px;
  9570. height: 50px;
  9571. cursor: pointer;
  9572. margin-left: 10px;
  9573. }
  9574. .binfo_input {
  9575. width: 100%;
  9576. margin: 0;
  9577. padding: 12px 14px;
  9578. display: block;
  9579. min-width: 0;
  9580. outline: none;
  9581. box-sizing: border-box;
  9582. background: none;
  9583. border: none;
  9584. border-radius: 4px;
  9585. background: #fff;
  9586. font-size: 16px;
  9587. resize: none;
  9588. font-family: 'Microsoft YaHei';
  9589. min-height: 48px;
  9590. /* border: 1px solid #3682fc00; */
  9591. border: 1.5px solid #CAD1DC;
  9592. }
  9593. .binfo_textarea {
  9594. border: 1.5px solid #CAD1DC;
  9595. font-size: 16px;
  9596. resize: none;
  9597. /* background: #f6f6f6; */
  9598. font-family: 'Microsoft YaHei';
  9599. }
  9600. .binfo_input:focus-visible {
  9601. border: 1.5px solid #3681FC !important;
  9602. }
  9603. .time {
  9604. display: flex;
  9605. margin: 35px 0 80px 0;
  9606. }
  9607. .chapter_btnbox {
  9608. width: 160px;
  9609. border-radius: 5px;
  9610. border: 2px dashed gray;
  9611. display: flex;
  9612. padding: 8px 50px;
  9613. align-items: center;
  9614. justify-content: center;
  9615. margin: 30px auto 0;
  9616. cursor: pointer;
  9617. }
  9618. .icon_add {
  9619. position: relative;
  9620. width: 24px;
  9621. padding-top: 20px;
  9622. border-radius: 100%;
  9623. border-width: 2px;
  9624. border-style: solid;
  9625. border-color: gray;
  9626. }
  9627. .icon_add i:nth-child(1) {
  9628. position: absolute;
  9629. left: 50%;
  9630. top: 50%;
  9631. height: 60%;
  9632. transform: translate(-50%, -50%);
  9633. border-width: 1px;
  9634. border-style: solid;
  9635. border-color: inherit;
  9636. }
  9637. .icon_add i:nth-child(2) {
  9638. position: absolute;
  9639. top: 50%;
  9640. left: 50%;
  9641. width: 60%;
  9642. transform: translate(-50%, -50%);
  9643. border-width: 1px;
  9644. border-style: solid;
  9645. border-color: inherit;
  9646. }
  9647. .chapter_btn_w {
  9648. font-size: 0.9375rem;
  9649. font-weight: bold;
  9650. color: gray;
  9651. margin-left: 20px;
  9652. }
  9653. .disUoloadSty>>>.el-icon-plus {
  9654. display: none !important;
  9655. /* 上传按钮隐藏 */
  9656. }
  9657. .imgLeft {
  9658. margin: 15px 0;
  9659. }
  9660. .add_info_box {
  9661. margin: 0 0 0 auto;
  9662. display: flex;
  9663. flex-wrap: wrap;
  9664. }
  9665. .add_info_box button {
  9666. margin: 0 5px 10px 0;
  9667. }
  9668. .add_info_box2 {
  9669. display: flex;
  9670. align-items: center;
  9671. flex-wrap: wrap;
  9672. }
  9673. .add_info_box2::after {
  9674. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9675. color: red;
  9676. font-size: 14px;
  9677. margin-bottom: 10px;
  9678. }
  9679. .add_chapters_box {
  9680. text-align: left;
  9681. background-color: #fff;
  9682. width: 100%;
  9683. border-radius: 4px;
  9684. font-size: 16px;
  9685. box-sizing: border-box;
  9686. position: relative;
  9687. padding: 0 15px;
  9688. height: auto;
  9689. overflow-y: auto;
  9690. overflow-x: hidden;
  9691. border: 1px solid #CAD1DC;
  9692. }
  9693. .add_chapters_box.add_c_none {
  9694. display: flex;
  9695. justify-content: center;
  9696. align-items: center;
  9697. padding: 15px;
  9698. }
  9699. .add_c_none>img {
  9700. width: 25px;
  9701. }
  9702. .add_chapters_box.add_c_none>span {
  9703. font-size: 14px;
  9704. font-weight: 400;
  9705. margin: 0 0 5px 5px;
  9706. }
  9707. .homework_box {
  9708. display: flex;
  9709. align-items: flex-start;
  9710. flex-wrap: wrap;
  9711. margin: 15px 0 0 0;
  9712. flex-direction: column;
  9713. align-content: flex-start;
  9714. }
  9715. .course_homework {
  9716. display: flex;
  9717. justify-content: center;
  9718. flex-direction: row;
  9719. align-items: center;
  9720. margin: 0 10px 0 0;
  9721. }
  9722. .course_homework>>>.el-input__inner {
  9723. width: 140px;
  9724. margin-left: 15px;
  9725. }
  9726. .chapter_upload_move {
  9727. position: relative;
  9728. background-color: #fff;
  9729. position: absolute;
  9730. width: 100%;
  9731. top: 0px;
  9732. left: 0px;
  9733. border: 1px solid #eee;
  9734. border-radius: 5px;
  9735. transition: width 2s;
  9736. -moz-transition: width 2s;
  9737. -webkit-transition: width 2s;
  9738. -o-transition: width 2s;
  9739. }
  9740. .chapter_upload_l_i {
  9741. background-image: url("../../assets/icon.png");
  9742. background-position: 3px -165px;
  9743. width: 30px;
  9744. height: 30px;
  9745. margin: 10px auto 0 auto;
  9746. }
  9747. .course_input_box {
  9748. display: flex;
  9749. margin-right: 20px;
  9750. width: 100%;
  9751. align-items: center;
  9752. position: relative;
  9753. }
  9754. .course_input_box>.binfo_input {
  9755. width: calc(100% - 0 - 200px - 20px);
  9756. margin: 0 10px;
  9757. }
  9758. .bb_courseIcon {
  9759. width: 57px;
  9760. height: 45px;
  9761. background: #F0F4FA;
  9762. border-radius: 5px 0px 0px 5px;
  9763. display: flex;
  9764. align-items: center;
  9765. justify-content: center;
  9766. border-right: 1.5px solid rgb(202, 209, 220);
  9767. box-sizing: border-box;
  9768. position: absolute;
  9769. left: 1.5px
  9770. }
  9771. .bb_courseIcon>img {
  9772. width: 25px;
  9773. height: auto
  9774. }
  9775. .big_box {
  9776. /* margin-top: 20px; */
  9777. display: flex;
  9778. justify-content: space-between;
  9779. /* border-bottom: 1px solid #E0E2ED; */
  9780. }
  9781. .left_first {
  9782. display: flex;
  9783. flex-direction: column;
  9784. flex-wrap: nowrap;
  9785. width: calc(100% - 310px);
  9786. padding: 20px;
  9787. box-sizing: border-box;
  9788. background: #fff;
  9789. border-radius: 5px;
  9790. }
  9791. .right_first {
  9792. width: 300px;
  9793. display: flex;
  9794. align-items: center;
  9795. justify-content: center;
  9796. /* border-left: 1px solid #E0E2ED; */
  9797. box-sizing: border-box;
  9798. padding: 20px;
  9799. flex-direction: column;
  9800. background: #fff;
  9801. border-radius: 5px;
  9802. }
  9803. .ai_box {
  9804. width: 204px;
  9805. display: flex;
  9806. justify-content: flex-end;
  9807. margin-bottom: 15px;
  9808. }
  9809. .ai_content {
  9810. display: flex;
  9811. align-items: center;
  9812. font-size: 14px;
  9813. padding: 7px 20px;
  9814. box-sizing: border-box;
  9815. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  9816. border-radius: 12px;
  9817. font-weight: 700;
  9818. cursor: pointer;
  9819. }
  9820. .ai_content>img {
  9821. width: 40px;
  9822. margin-right: 5px;
  9823. }
  9824. .c_info_title {
  9825. padding: 15px 0 15px 0;
  9826. font-size: 16px;
  9827. font-weight: bold;
  9828. margin: 0 0 0 20px;
  9829. box-sizing: border-box;
  9830. display: flex;
  9831. align-items: center;
  9832. line-height: 20px;
  9833. }
  9834. .c_info_title::before {
  9835. content: '';
  9836. display: block;
  9837. width: 3px;
  9838. height: 20px;
  9839. background: #0061FF;
  9840. border-radius: 3px;
  9841. margin: 0 5px 0 0;
  9842. }
  9843. .right_title {
  9844. height: 30px;
  9845. padding: 15px 0 15px 20px;
  9846. border-bottom: 1px solid #f2f2f2;
  9847. font-size: 1.5em;
  9848. font-weight: bold;
  9849. color: #0f7eff;
  9850. margin: 0 auto;
  9851. }
  9852. .people {
  9853. border: 1px solid rgb(229 229 229);
  9854. /* height: 495px; */
  9855. height: 350px;
  9856. border-radius: 5px;
  9857. width: 100%;
  9858. overflow: auto;
  9859. }
  9860. .people_top {
  9861. display: flex;
  9862. width: 100%;
  9863. /* justify-content: space-between; */
  9864. /* align-items: center; */
  9865. flex-direction: column;
  9866. padding: 10px 10px 0;
  9867. box-sizing: border-box;
  9868. }
  9869. .people_nav,
  9870. .people_top_right {
  9871. /* padding: 20px 0 0 20px; */
  9872. }
  9873. .people_top_right {
  9874. height: 40px;
  9875. margin-bottom: 10px;
  9876. }
  9877. .people_search {
  9878. display: flex;
  9879. position: relative;
  9880. }
  9881. .people_search>>>.el-input__inner {
  9882. /* height: 25px; */
  9883. width: 95%;
  9884. }
  9885. .search_img {
  9886. width: 20px;
  9887. height: 20px;
  9888. position: absolute;
  9889. right: 30px;
  9890. top: 50%;
  9891. transform: translateY(-50%);
  9892. }
  9893. .search_img>img {
  9894. width: 100%;
  9895. height: 100%;
  9896. }
  9897. .people_name {
  9898. display: flex;
  9899. justify-content: flex-start;
  9900. padding: 20px 10px;
  9901. flex-direction: column;
  9902. flex-wrap: wrap;
  9903. }
  9904. .p_box {
  9905. position: relative;
  9906. }
  9907. .people_name>>>.el-checkbox {
  9908. width: 100%;
  9909. display: flex;
  9910. align-items: center;
  9911. margin-bottom: 10px;
  9912. }
  9913. .people_name>>>.el-checkbox__label {
  9914. text-overflow: ellipsis;
  9915. overflow: hidden;
  9916. width: calc(100%);
  9917. }
  9918. .people_name2>>>.el-checkbox__label {
  9919. width: calc(100% - 130px);
  9920. }
  9921. .inviteCode {
  9922. position: absolute;
  9923. right: 30px;
  9924. color: #237ade;
  9925. top: 0;
  9926. cursor: pointer;
  9927. font-size: 13px;
  9928. }
  9929. .noneInvite {
  9930. color: #a8a8a8;
  9931. }
  9932. .inviteImg {
  9933. position: absolute;
  9934. right: 5px;
  9935. top: 0;
  9936. width: 20px;
  9937. }
  9938. .right_img {
  9939. width: 150px;
  9940. height: 150px;
  9941. margin: 0 auto;
  9942. }
  9943. .right_img>img {
  9944. width: 100%;
  9945. height: 100%;
  9946. }
  9947. .number {
  9948. margin-top: 20px;
  9949. color: #4aa6ff;
  9950. text-decoration: underline;
  9951. }
  9952. .success_button {
  9953. display: flex;
  9954. text-align: center;
  9955. margin: 5% 0 auto;
  9956. flex-direction: row;
  9957. justify-content: center;
  9958. }
  9959. .look_course {
  9960. margin-right: 40px;
  9961. background: #3d67bc;
  9962. width: 200px;
  9963. height: 35px;
  9964. line-height: 35px;
  9965. color: #fff;
  9966. text-align: center;
  9967. font-size: 14px;
  9968. border-radius: 5px;
  9969. cursor: pointer;
  9970. }
  9971. .attend_others {
  9972. width: 250px;
  9973. background: #4fb13c;
  9974. height: 35px;
  9975. line-height: 35px;
  9976. color: #fff;
  9977. text-align: center;
  9978. font-size: 14px;
  9979. border-radius: 5px;
  9980. cursor: pointer;
  9981. }
  9982. .dialog_diy2>>>.el-dialog__body {
  9983. text-align: center;
  9984. }
  9985. .write_togother {
  9986. position: absolute;
  9987. right: 45px;
  9988. display: flex;
  9989. top: 5%;
  9990. }
  9991. .write_people {
  9992. font-size: 14px;
  9993. line-height: 50px;
  9994. padding-right: 10px;
  9995. }
  9996. .end_write {
  9997. background: #3d67bc;
  9998. color: #fff;
  9999. width: 100px;
  10000. height: 35px;
  10001. line-height: 35px;
  10002. text-align: center;
  10003. font-size: 14px;
  10004. border-radius: 5px;
  10005. cursor: pointer;
  10006. }
  10007. .chapter_upload+.chapter_upload {
  10008. /* margin-top: 15px; */
  10009. border-top: 1px solid #E7EBF1;
  10010. }
  10011. .chapter_upload {
  10012. height: 45px;
  10013. position: relative;
  10014. display: flex;
  10015. align-items: center;
  10016. width: 100%;
  10017. min-height: 45px;
  10018. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10019. /* border-radius: 4px; */
  10020. /* overflow: hidden; */
  10021. box-sizing: border-box;
  10022. }
  10023. .chapter_upload_drag {
  10024. position: absolute;
  10025. cursor: pointer;
  10026. width: 16px;
  10027. height: 16px;
  10028. left: -9px;
  10029. background-image: url("../../assets/icon/new/icon_course_drag.png");
  10030. background-size: 100% 100%;
  10031. z-index: 10;
  10032. }
  10033. .chapter_upload_t {
  10034. background-color: #fff;
  10035. position: absolute;
  10036. height: 100%;
  10037. top: 0px;
  10038. left: 0px;
  10039. box-sizing: border-box;
  10040. }
  10041. .chapter_upload_o {
  10042. width: 100%;
  10043. height: 100%;
  10044. position: relative;
  10045. z-index: 1;
  10046. }
  10047. .chapter_upload_ic {
  10048. margin: 0 15px 0px auto;
  10049. display: flex;
  10050. align-items: center;
  10051. }
  10052. .chapter_upload_ic_l {
  10053. width: 50px;
  10054. height: 50px;
  10055. float: left;
  10056. }
  10057. .chapter_upload_ic_l div {
  10058. width: 30px;
  10059. height: 35px;
  10060. background: url("../../assets/icon/icon.png");
  10061. }
  10062. .chapter_upload_ic_edit {
  10063. height: 100%;
  10064. display: flex;
  10065. align-items: center;
  10066. cursor: pointer;
  10067. margin: 0 10px 0 0;
  10068. }
  10069. .chapter_upload_ic_edit div {
  10070. width: 18px;
  10071. height: 18px;
  10072. background-image: url("../../assets/icon/new/edit_u.png");
  10073. background-size: 100% 100%;
  10074. }
  10075. .chapter_upload_ic_r {
  10076. height: 100%;
  10077. display: flex;
  10078. align-items: center;
  10079. cursor: pointer;
  10080. }
  10081. .chapter_upload_ic_r div {
  10082. width: 18px;
  10083. height: 18px;
  10084. background-image: url("../../assets/icon/new/delete_u.png");
  10085. background-size: 100% 100%;
  10086. }
  10087. .chapter_upload_n {
  10088. display: flex;
  10089. text-indent: 10px;
  10090. text-decoration: none;
  10091. text-overflow: ellipsis;
  10092. white-space: nowrap;
  10093. overflow: hidden;
  10094. width: 55%;
  10095. margin-left: 10px;
  10096. cursor: pointer;
  10097. margin-top: 2px;
  10098. align-items: center;
  10099. }
  10100. .chapter_upload_l_i2,
  10101. .chapter_upload_l_i3,
  10102. .chapter_upload_l_i8,
  10103. .chapter_upload_l_i6,
  10104. .chapter_upload_l_i12,
  10105. .chapter_upload_l_i14,
  10106. .chapter_upload_l_i13 {
  10107. width: 15px;
  10108. height: 15px;
  10109. background-size: 100% 100%;
  10110. }
  10111. .chapter_upload_l_i2 {
  10112. background-image: url("../../assets/icon/new/u_word.png");
  10113. }
  10114. .chapter_upload_l_i3 {
  10115. background-image: url("../../assets/icon/new/u_video.png");
  10116. }
  10117. .chapter_upload_l_i8 {
  10118. background-image: url("../../assets/icon/new/u_url.png");
  10119. }
  10120. .chapter_upload_l_i14 {
  10121. background-image: url("../../assets/icon/new/u_source.png");
  10122. }
  10123. .chapter_upload_l_i6 {
  10124. background-image: url("../../assets/icon/new/u_picture.png");
  10125. }
  10126. .chapter_upload_l_i12 {
  10127. background-image: url("../../assets/icon/new/u_word.png");
  10128. }
  10129. .chapter_upload_l_i13 {
  10130. background-image: url("../../assets/icon/new/u_img.png");
  10131. }
  10132. .chapter_upload_noSee {
  10133. background-image: url("../../assets/icon/new/u_noUpload.png");
  10134. width: 18px;
  10135. height: 18px;
  10136. background-size: 100% 100%;
  10137. display: block;
  10138. margin-right: 10px;
  10139. }
  10140. .chapter_upload_ud {
  10141. display: flex;
  10142. flex-direction: row;
  10143. justify-content: center;
  10144. margin: 0 10px 0 0;
  10145. }
  10146. .chapter_upload_ud>.chapter_upload_up {
  10147. margin-bottom: 0;
  10148. margin-right: 10px;
  10149. }
  10150. .chapter_upload_down,
  10151. .chapter_upload_up {
  10152. width: 20px;
  10153. height: 20px;
  10154. background: #e4eaf2;
  10155. cursor: pointer;
  10156. margin: 0 auto;
  10157. border-radius: 5px;
  10158. display: flex;
  10159. justify-content: center;
  10160. align-items: center;
  10161. }
  10162. .chapter_upload_up::after,
  10163. .chapter_upload_down::after {
  10164. content: '';
  10165. background-image: url('../../assets/icon/new/downBtn.png');
  10166. width: 13px;
  10167. height: 13px;
  10168. background-size: 100% 100%;
  10169. display: block;
  10170. }
  10171. .chapter_upload_up::after {
  10172. background-image: url('../../assets/icon/new/upBtn.png') !important;
  10173. }
  10174. .chapter_upload_up {
  10175. margin-bottom: 5px;
  10176. }
  10177. .addWordStyle {
  10178. display: flex;
  10179. flex-direction: row;
  10180. justify-content: flex-start;
  10181. overflow-x: auto;
  10182. white-space: nowrap;
  10183. flex-wrap: wrap;
  10184. }
  10185. /* table 样式 */
  10186. .cont>>>table {
  10187. border-top: 1px solid #ccc;
  10188. border-left: 1px solid #ccc;
  10189. }
  10190. .cont>>>table td,
  10191. .cont>>>table th {
  10192. border-bottom: 1px solid #ccc;
  10193. border-right: 1px solid #ccc;
  10194. /* padding: 20px 5px; */
  10195. padding: 5px 10px;
  10196. max-width: 0px;
  10197. height: 30px;
  10198. vertical-align: baseline;
  10199. }
  10200. .cont>>>table th {
  10201. border-bottom: 2px solid #ccc;
  10202. text-align: center;
  10203. }
  10204. /* blockquote 样式 */
  10205. .cont>>>blockquote {
  10206. display: block;
  10207. border-left: 8px solid #d0e5f2;
  10208. padding: 5px 10px;
  10209. margin: 10px 0;
  10210. line-height: 1.4;
  10211. font-size: 100%;
  10212. background-color: #f1f1f1;
  10213. }
  10214. /* code 样式 */
  10215. .cont>>>code {
  10216. display: inline-block;
  10217. /* *display: inline; */
  10218. zoom: 1;
  10219. background-color: #f1f1f1;
  10220. border-radius: 3px;
  10221. padding: 3px 5px;
  10222. margin: 0 3px;
  10223. }
  10224. .cont>>>pre code {
  10225. display: block;
  10226. }
  10227. /* ul ol 样式 */
  10228. .cont>>>ul,
  10229. ol {
  10230. margin: 10px 0 10px 20px;
  10231. }
  10232. .wordbox {
  10233. display: flex;
  10234. flex-wrap: wrap;
  10235. cursor: pointer;
  10236. width: 100%;
  10237. }
  10238. .checkword {
  10239. width: 22px;
  10240. height: 22px;
  10241. margin: 10px auto 0;
  10242. cursor: pointer;
  10243. }
  10244. .checkword img {
  10245. width: 100%;
  10246. }
  10247. .stepBg {
  10248. display: flex;
  10249. justify-content: space-between;
  10250. align-items: center;
  10251. background: #fff;
  10252. width: calc(100%);
  10253. margin: 0 auto;
  10254. }
  10255. .stepBorder {
  10256. height: 3px !important;
  10257. background: #CAD1DC;
  10258. width: 100px !important;
  10259. margin: 0 15px !important;
  10260. position: relative;
  10261. }
  10262. .border-active {
  10263. background: #3681FC !important
  10264. }
  10265. .border-active::before,
  10266. .border-active::after {
  10267. border-color: #3681FC !important
  10268. }
  10269. .stepBorder::before,
  10270. .stepBorder::after {
  10271. content: '';
  10272. width: 9px;
  10273. height: 9px;
  10274. background: #FFFFFF;
  10275. opacity: 1;
  10276. border: 2px solid #ACB4BF;
  10277. display: block;
  10278. box-sizing: border-box;
  10279. border-radius: 50%;
  10280. position: absolute;
  10281. top: 50%;
  10282. transform: translateY(-50%);
  10283. }
  10284. .stepBorder::after {
  10285. right: -9px;
  10286. }
  10287. .stepTop {
  10288. width: 100%;
  10289. /* border-radius: 10px; */
  10290. display: flex;
  10291. justify-content: center;
  10292. align-items: center;
  10293. flex-wrap: nowrap;
  10294. background: #fff;
  10295. /* top: 18%; */
  10296. height: 80px;
  10297. border-bottom: 2px solid rgb(228, 232, 237);
  10298. box-sizing: border-box;
  10299. }
  10300. .stepTop2 {
  10301. width: 100%;
  10302. /* border-radius: 10px; */
  10303. display: flex;
  10304. justify-content: center;
  10305. align-items: center;
  10306. flex-wrap: nowrap;
  10307. background: #fff;
  10308. /* top: 18%; */
  10309. height: 20px;
  10310. border-bottom: 2px solid rgb(228, 232, 237);
  10311. box-sizing: border-box;
  10312. overflow: hidden;
  10313. cursor: pointer;
  10314. }
  10315. .stepTop>div img {
  10316. width: 100%;
  10317. }
  10318. .stepTop>div {
  10319. height: 50px;
  10320. width: 180px;
  10321. cursor: pointer;
  10322. margin: 10px 0;
  10323. border-radius: 10px;
  10324. }
  10325. .first,
  10326. .second,
  10327. .third,
  10328. .four {
  10329. background: #3681FC;
  10330. height: 90px;
  10331. color: #fff;
  10332. display: flex;
  10333. flex-direction: row;
  10334. align-items: center;
  10335. justify-content: center;
  10336. }
  10337. .first>div:nth-child(1),
  10338. .second>div:nth-child(1),
  10339. .third>div:nth-child(1),
  10340. .four>div:nth-child(1) {
  10341. margin: 5px 10px 0 0;
  10342. width: 2rem;
  10343. }
  10344. .firstNo,
  10345. .secondNo,
  10346. .thirdNo,
  10347. .fourNo {
  10348. background: #e7e7e7;
  10349. color: #adadad;
  10350. display: flex;
  10351. flex-direction: row;
  10352. align-items: center;
  10353. justify-content: center;
  10354. }
  10355. .firstNo>div:nth-child(1),
  10356. .secondNo>div:nth-child(1),
  10357. .thirdNo>div:nth-child(1),
  10358. .fourNo>div:nth-child(1) {
  10359. margin: 5px 10px 0 0;
  10360. width: 2rem;
  10361. }
  10362. .uploadWidth>>>.el-upload {
  10363. width: 60px;
  10364. height: 60px;
  10365. position: relative;
  10366. }
  10367. .addPeople {
  10368. background: #fa6060;
  10369. width: 150px;
  10370. height: 40px;
  10371. color: #fff;
  10372. border-radius: 5px;
  10373. text-align: center;
  10374. line-height: 40px;
  10375. font-size: 14px;
  10376. cursor: pointer;
  10377. }
  10378. .kcImg {
  10379. width: 60px;
  10380. margin-left: 10px;
  10381. }
  10382. .zyImg {
  10383. width: 55px;
  10384. margin: 0 10px;
  10385. }
  10386. .deleteZy {
  10387. width: 20px;
  10388. position: absolute;
  10389. top: 5px;
  10390. right: 5px;
  10391. cursor: pointer;
  10392. }
  10393. .kcImg>img,
  10394. .zyImg>img,
  10395. .deleteZy>img {
  10396. width: 100%;
  10397. height: 100%;
  10398. }
  10399. .zyBox {
  10400. display: flex;
  10401. flex-direction: row;
  10402. align-items: center;
  10403. background: #67d37d;
  10404. color: #fff;
  10405. width: 210px;
  10406. margin: 20px 20px 0 0;
  10407. border-radius: 10px;
  10408. height: 70px;
  10409. position: relative;
  10410. }
  10411. .upCss {
  10412. display: flex;
  10413. flex-direction: row;
  10414. justify-content: flex-start;
  10415. }
  10416. .upCss>>>.el-icon-plus {
  10417. position: none !important;
  10418. width: 200px;
  10419. height: 100px;
  10420. display: flex;
  10421. flex-wrap: nowrap;
  10422. flex-direction: column;
  10423. align-items: center;
  10424. justify-content: center;
  10425. border: 1px dashed #ccc;
  10426. min-width: 78px;
  10427. min-height: 100px;
  10428. z-index: 999;
  10429. }
  10430. .upCss>>>.el-upload-list__item-name {
  10431. width: 100px;
  10432. white-space: nowrap;
  10433. overflow: hidden;
  10434. text-overflow: ellipsis;
  10435. }
  10436. .upCss>>>.el-upload-list__item .el-icon-close {
  10437. font-size: 20px;
  10438. z-index: 9999;
  10439. }
  10440. .addStageImg {
  10441. min-width: 20px;
  10442. min-height: 20px;
  10443. width: 20px;
  10444. height: 20px;
  10445. cursor: pointer;
  10446. }
  10447. .addHW {
  10448. width: 28px;
  10449. height: 28px;
  10450. cursor: pointer;
  10451. }
  10452. .addStageImg>img,
  10453. .addHW>img {
  10454. width: 100%;
  10455. height: 100%;
  10456. }
  10457. .addNewPP>>>.el-dialog__body {
  10458. padding: 5px 20px;
  10459. }
  10460. .addNewPP>>>.el-dialog {
  10461. margin-top: 5vh !important;
  10462. }
  10463. .addNewPP2>>>.el-dialog__body {
  10464. padding: 5px 0;
  10465. }
  10466. .addNewPP2>>>.el-dialog {
  10467. margin-top: 5vh !important;
  10468. }
  10469. .isHeight {
  10470. height: 680px;
  10471. }
  10472. .toolChoose {
  10473. display: flex;
  10474. /* width: 100%; */
  10475. flex-direction: row;
  10476. flex-wrap: wrap;
  10477. }
  10478. .tool,
  10479. .isToolChoose {
  10480. display: flex;
  10481. flex-direction: column;
  10482. flex-wrap: nowrap;
  10483. width: fit-content;
  10484. margin: 10px 0 10px 0;
  10485. align-items: center;
  10486. border: 2px solid #dbdbdb00;
  10487. padding: 10px 20px;
  10488. border-radius: 5px;
  10489. cursor: pointer;
  10490. /* box-shadow: 0 0 2px 0px #dedede; */
  10491. position: relative;
  10492. box-sizing: border-box;
  10493. }
  10494. .tool:hover {
  10495. border: 2px solid #a5c7ff;
  10496. }
  10497. .tool:hover>.noCTool {
  10498. display: block;
  10499. opacity: 0.5;
  10500. }
  10501. .isToolChoose {
  10502. border: 2px solid #438aff !important;
  10503. box-shadow: 0 0 2px 0px #438aff;
  10504. opacity: 1 !important;
  10505. }
  10506. .isCTool,
  10507. .noCTool {
  10508. width: 30px;
  10509. height: 30px;
  10510. position: absolute;
  10511. top: -4px;
  10512. right: -4px;
  10513. }
  10514. .noCTool {
  10515. display: none;
  10516. }
  10517. .isCTool>img,
  10518. .noCTool>img {
  10519. width: 100%;
  10520. height: 100%;
  10521. }
  10522. .tool+.tool {
  10523. margin-right: 45px;
  10524. }
  10525. .whiteBIcon {
  10526. width: 80px;
  10527. cursor: pointer;
  10528. display: flex;
  10529. flex-direction: column;
  10530. flex-wrap: nowrap;
  10531. align-items: center;
  10532. font-size: 14px;
  10533. }
  10534. .whiteBIcon>img,
  10535. .toolIcon>img,
  10536. .arrow>img {
  10537. width: 100%;
  10538. height: 100%;
  10539. }
  10540. .check img {
  10541. width: 20px;
  10542. height: 20px;
  10543. }
  10544. .whiteBIcon>img {
  10545. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10546. border-radius: 15px;
  10547. }
  10548. .whiteBIcon>div:nth-child(2) {
  10549. height: 20px;
  10550. line-height: 20px;
  10551. }
  10552. .check {
  10553. /* width: 20px;
  10554. height: 20px; */
  10555. cursor: pointer;
  10556. margin: 10px 0 0;
  10557. }
  10558. .checkDiv {
  10559. display: flex;
  10560. align-items: center;
  10561. }
  10562. .checkDiv span {
  10563. margin-left: 5px;
  10564. color: #858585;
  10565. }
  10566. .customWidth>>>.el-dialog {
  10567. min-width: 500px !important;
  10568. }
  10569. .a_addBox {
  10570. margin: 10px 0;
  10571. background: #fff;
  10572. padding: 15px;
  10573. /* max-height: 600px; */
  10574. overflow: auto;
  10575. }
  10576. .a_add_box {
  10577. border-bottom: 2px solid #eee;
  10578. padding-bottom: 25px;
  10579. }
  10580. .a_add_head {
  10581. display: flex;
  10582. align-items: center;
  10583. justify-content: space-between;
  10584. margin: 10px 0 0 0;
  10585. font-size: 18px;
  10586. }
  10587. .a_add_checkType {
  10588. margin-top: 10px;
  10589. display: flex;
  10590. font-size: 14px;
  10591. align-items: center;
  10592. }
  10593. .a_add_checkType span {
  10594. box-sizing: border-box;
  10595. padding: 0 0 5px 0;
  10596. cursor: pointer;
  10597. }
  10598. .a_add_checkType span+span {
  10599. margin-left: 10px;
  10600. }
  10601. .a_add_checkType .active {
  10602. border-bottom: 2px solid #409eff;
  10603. color: #409eff;
  10604. }
  10605. .a_add_head .a_add_head_input {
  10606. /* width: 540px; */
  10607. width: 100%;
  10608. }
  10609. .a_add_head .a_add_head_div {
  10610. display: flex;
  10611. align-items: center;
  10612. justify-content: space-between;
  10613. }
  10614. .a_add_body {
  10615. display: flex;
  10616. /* align-items: center; */
  10617. align-items: flex-end;
  10618. }
  10619. .a_add_input {
  10620. display: flex;
  10621. align-items: center;
  10622. flex-wrap: wrap;
  10623. }
  10624. .a_add_input_choice {
  10625. flex-direction: column;
  10626. margin-right: 10px;
  10627. }
  10628. .a_add_input_choice>>>.el-radio {
  10629. display: flex;
  10630. align-items: center;
  10631. flex-direction: row-reverse;
  10632. margin: 30px 0 0 0;
  10633. position: relative;
  10634. }
  10635. .a_add_input_choice>>>.el-checkbox {
  10636. display: flex;
  10637. align-items: center;
  10638. flex-direction: row-reverse;
  10639. margin: 30px 0 0 0;
  10640. position: relative;
  10641. }
  10642. .width100 {
  10643. width: 100%;
  10644. }
  10645. .a_add_input .a_add_persent {
  10646. width: 100%;
  10647. }
  10648. .a_add_persent_div {
  10649. width: 100%;
  10650. display: flex;
  10651. align-items: center;
  10652. }
  10653. .a_add_persent_div span {
  10654. margin: 5px 0;
  10655. }
  10656. .a_add_persent_div span:nth-child(1) {
  10657. width: 30%;
  10658. }
  10659. .a_add_persent_div span:nth-child(2) {
  10660. width: 7%;
  10661. }
  10662. .a_add_persent_div span:nth-child(3) {
  10663. width: 40%;
  10664. }
  10665. .a_add_body_div {
  10666. display: flex;
  10667. align-items: center;
  10668. justify-content: center;
  10669. /* flex-direction: column; */
  10670. position: absolute;
  10671. right: -20px;
  10672. transform: translateX(100%);
  10673. }
  10674. .a_add_body_div>>>.el-button--primary {
  10675. background: #466b99;
  10676. border: none;
  10677. }
  10678. .all_choose {
  10679. display: flex;
  10680. flex-direction: row;
  10681. align-items: flex-start;
  10682. width: 100%;
  10683. }
  10684. .all_choose+.all_choose {
  10685. /* margin-top: 10px */
  10686. }
  10687. .all_choose>span {
  10688. min-width: fit-content;
  10689. display: block;
  10690. white-space: nowrap;
  10691. overflow: hidden;
  10692. text-overflow: ellipsis;
  10693. margin-right: 20px;
  10694. font-weight: bold;
  10695. font-size: 14px;
  10696. }
  10697. .all_choose>>>.el-checkbox-group {
  10698. display: flex;
  10699. flex-direction: row;
  10700. width: 100%;
  10701. flex-wrap: wrap;
  10702. align-content: center;
  10703. justify-content: flex-start;
  10704. align-items: center;
  10705. margin-top: 3px;
  10706. }
  10707. .all_choose>.el-checkbox-group>>>.el-checkbox {
  10708. margin-bottom: 10px;
  10709. display: flex;
  10710. flex-direction: row;
  10711. align-items: center;
  10712. margin-right: 10px;
  10713. }
  10714. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  10715. min-width: 80px;
  10716. overflow: hidden;
  10717. width: 80px;
  10718. text-overflow: ellipsis;
  10719. white-space: nowrap;
  10720. }
  10721. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  10722. width: auto;
  10723. }
  10724. .choose>div:nth-child(3)>span {
  10725. /* letter-spacing: 0 !important; */
  10726. }
  10727. .choose {
  10728. display: flex;
  10729. flex-direction: column;
  10730. flex-wrap: nowrap;
  10731. height: 100%;
  10732. justify-content: space-evenly;
  10733. align-items: flex-start;
  10734. }
  10735. .both {
  10736. display: flex;
  10737. flex-direction: row;
  10738. flex-wrap: wrap;
  10739. width: 100%;
  10740. align-items: center;
  10741. justify-content: flex-start;
  10742. margin: 15px 0;
  10743. }
  10744. .notice>>>.el-dialog {
  10745. width: 500px !important;
  10746. text-align: center;
  10747. }
  10748. .notice>>>.el-button {
  10749. margin-top: 20px;
  10750. }
  10751. .whiteBg {
  10752. /* background: #fff; */
  10753. border-radius: 10px;
  10754. }
  10755. .wb_j_box {
  10756. display: flex;
  10757. width: 100%;
  10758. padding: 0 20px 0;
  10759. box-sizing: border-box;
  10760. }
  10761. .wb_j_box_content {
  10762. width: calc(100% - 55% - 100px);
  10763. display: flex;
  10764. align-items: center;
  10765. }
  10766. .wb_j_box_p_box {
  10767. max-width: calc(100% - 200px);
  10768. word-break: break-all;
  10769. overflow: hidden;
  10770. margin: 0 0 0 10px;
  10771. font-size: 14px;
  10772. color: #6e6e6e;
  10773. z-index: 999;
  10774. }
  10775. .chooseWho {
  10776. display: flex;
  10777. width: 410px;
  10778. flex-direction: row;
  10779. flex-wrap: nowrap;
  10780. justify-content: space-between;
  10781. padding-bottom: 10px;
  10782. }
  10783. .chooseWho>div {
  10784. cursor: pointer;
  10785. padding-bottom: 10px;
  10786. font-weight: bold;
  10787. }
  10788. .isChooseActive {
  10789. color: #3e88f4;
  10790. border-bottom: 2px solid #2f80f3;
  10791. }
  10792. .toolSort {
  10793. display: flex;
  10794. flex-direction: row;
  10795. flex-wrap: wrap;
  10796. justify-content: flex-start;
  10797. align-items: flex-start;
  10798. }
  10799. .toolSort>div {
  10800. margin-right: 45px;
  10801. }
  10802. .tools {
  10803. width: 100%;
  10804. display: flex;
  10805. flex-direction: column;
  10806. flex-wrap: nowrap;
  10807. align-items: flex-start;
  10808. }
  10809. .leftTools,
  10810. .rightTools {
  10811. width: 50%;
  10812. }
  10813. .leftTools+.leftTools {
  10814. border-top: 1px solid #dbdbdb;
  10815. padding-top: 30px;
  10816. }
  10817. .rightTools {
  10818. display: flex;
  10819. flex-direction: row;
  10820. flex-wrap: nowrap;
  10821. justify-content: space-around;
  10822. }
  10823. .firstToolList {
  10824. display: flex;
  10825. flex-direction: column;
  10826. flex-wrap: nowrap;
  10827. align-items: center;
  10828. }
  10829. .iconList {
  10830. display: flex;
  10831. flex-direction: row;
  10832. flex-wrap: wrap;
  10833. justify-content: flex-start;
  10834. align-items: center;
  10835. margin: 20px 0 5px 0;
  10836. width: 240px;
  10837. min-width: 240px;
  10838. }
  10839. .iconTool {
  10840. display: flex;
  10841. flex-direction: column;
  10842. flex-wrap: nowrap;
  10843. align-items: center;
  10844. justify-content: flex-start;
  10845. margin: 15px 10px;
  10846. }
  10847. .toolIcon {
  10848. width: 50px;
  10849. }
  10850. .taskBorder {
  10851. /* border: 1px solid #CAD1DC; */
  10852. border-radius: 10px;
  10853. margin-top: 10px;
  10854. min-height: 670px;
  10855. position: relative;
  10856. background: #fff;
  10857. padding: 20px;
  10858. overflow: hidden;
  10859. box-sizing: border-box;
  10860. }
  10861. .smallTaskBorder {
  10862. height: 280px;
  10863. min-height: 280px !important;
  10864. overflow: hidden;
  10865. }
  10866. /* .taskBorder>div {
  10867. padding: 30px 30px 10px;
  10868. } */
  10869. .addTaskBorder {
  10870. /* border: 2px solid #5E9AFC; */
  10871. border-radius: 8px;
  10872. margin-top: 10px;
  10873. cursor: pointer;
  10874. /* height: 50px;
  10875. line-height: 50px; */
  10876. background: #fff;
  10877. padding: 15px 0;
  10878. display: flex;
  10879. align-items: center;
  10880. justify-content: center;
  10881. }
  10882. /* .addTaskBorder>div {
  10883. margin: 0 auto;
  10884. display: flex;
  10885. align-items: center;
  10886. justify-content: center;
  10887. }
  10888. .addTaskBorder>div>img {
  10889. width: 20px;
  10890. }
  10891. .addTaskBorder>div>span {
  10892. font-size: 16px;
  10893. margin-left: 10px;
  10894. color: #5E9AFC;
  10895. } */
  10896. .funBlock {
  10897. display: flex;
  10898. padding: 15px 0;
  10899. flex-direction: row;
  10900. justify-content: center;
  10901. align-items: center;
  10902. position: absolute;
  10903. right: 0;
  10904. bottom: 0;
  10905. background: #fff;
  10906. width: 100%;
  10907. height: 60px;
  10908. z-index: 9999;
  10909. }
  10910. .fold {
  10911. display: flex;
  10912. margin: 0 20px;
  10913. flex-direction: row;
  10914. align-items: center;
  10915. cursor: pointer;
  10916. color: #2b7bff;
  10917. }
  10918. .arrow {
  10919. margin-right: 8px;
  10920. width: 16px;
  10921. height: 16px;
  10922. min-width: 16px;
  10923. min-height: 16px;
  10924. background-size: 100% 100%;
  10925. display: block;
  10926. background-image: url(../../assets/icon/new/u_up.png);
  10927. /* border-left: 7px solid transparent;
  10928. border-bottom: 7px solid #717C8D;
  10929. border-top: 0px solid transparent;
  10930. border-right: 7px solid transparent; */
  10931. /* box-sizing: border-box; */
  10932. transition: all .3s;
  10933. }
  10934. .arrowZ {
  10935. transform: rotate(180deg);
  10936. }
  10937. .addToolFun {
  10938. display: flex;
  10939. width: 150px;
  10940. flex-direction: row;
  10941. align-items: center;
  10942. justify-content: center;
  10943. border: 2px dashed #CAD1DC;
  10944. border-radius: 5px;
  10945. height: 50px;
  10946. margin: 35px auto 0;
  10947. cursor: pointer;
  10948. }
  10949. .addToolFun2 {
  10950. display: flex;
  10951. width: 150px;
  10952. border: 2px dashed #CAD1DC;
  10953. flex-direction: row;
  10954. align-items: center;
  10955. justify-content: center;
  10956. border-radius: 5px;
  10957. height: 50px;
  10958. margin: 0 auto 0;
  10959. cursor: pointer;
  10960. }
  10961. .addToolFun2>div,
  10962. .addToolFun>div {
  10963. display: flex;
  10964. line-height: 50px;
  10965. }
  10966. .addToolImg {
  10967. width: 20px;
  10968. height: 20px;
  10969. margin-right: 10px;
  10970. }
  10971. .addToolsDia>>>.el-dialog__body {
  10972. padding: 20px;
  10973. }
  10974. .addToolsDia>>>.el-dialog__body>.toolChoose {
  10975. padding: 0;
  10976. }
  10977. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  10978. padding: 0;
  10979. border-bottom: none;
  10980. margin-bottom: 0;
  10981. }
  10982. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  10983. width: 100%;
  10984. }
  10985. .lineCss>>>.el-form-item__label {
  10986. width: auto !important;
  10987. }
  10988. .lineCss>>>.el-form-item__content {
  10989. margin-left: 50px !important;
  10990. }
  10991. .newSteps {
  10992. display: flex;
  10993. width: 100% !important;
  10994. /* height: 80px; */
  10995. cursor: pointer;
  10996. margin: 10px 0;
  10997. border-radius: 10px;
  10998. flex-direction: row;
  10999. align-content: center;
  11000. justify-content: center;
  11001. align-items: center;
  11002. margin: 0 !important;
  11003. }
  11004. /* 评价样式 */
  11005. .elist_css {
  11006. padding-bottom: 75px !important;
  11007. }
  11008. .elist_title {
  11009. margin-bottom: 10px;
  11010. }
  11011. .elist_input {}
  11012. .elist_input_box {
  11013. display: flex;
  11014. align-items: center;
  11015. flex-wrap: wrap;
  11016. }
  11017. .elist_input_box+.elist_input_box {
  11018. margin-top: 30px;
  11019. }
  11020. .elist_input .elist_input_box input {
  11021. font: inherit;
  11022. color: currentColor;
  11023. /* width: 200px; */
  11024. max-width: 200px;
  11025. padding: 8px 14px;
  11026. display: block;
  11027. min-width: 0;
  11028. outline: none;
  11029. border: 1px solid rgba(0, 0, 0, 0.23);
  11030. border-radius: 4px;
  11031. box-sizing: border-box;
  11032. background: #fff;
  11033. margin: 0 20px 0 0;
  11034. }
  11035. .elist_input .elist_input_box span {
  11036. height: 36px;
  11037. line-height: 36px;
  11038. color: rgb(82, 82, 82);
  11039. min-width: 80px;
  11040. }
  11041. .elist_input .elist_input_box .remove {
  11042. height: 20px;
  11043. width: 20px;
  11044. min-height: 20px;
  11045. min-width: 20px;
  11046. background-size: 100% 100%;
  11047. background-position: unset;
  11048. margin-left: 5px;
  11049. }
  11050. .elist_input_box>>>.el-rate {
  11051. display: flex;
  11052. height: 36px;
  11053. align-items: center;
  11054. }
  11055. .elist_input_box .elist_inptu_text {
  11056. width: 100%;
  11057. display: flex;
  11058. align-items: center;
  11059. margin-top: 10px;
  11060. }
  11061. .elist_input_box .elist_inptu_text input {
  11062. /* width: 500px; */
  11063. width: 100%;
  11064. max-width: unset;
  11065. }
  11066. .elist_input_box>>>.el-rate__icon {
  11067. font-size: 24px;
  11068. }
  11069. .elist_btn {
  11070. margin-top: 10px;
  11071. }
  11072. .lineTitle {
  11073. /* margin-top: 15px; */
  11074. width: 110px;
  11075. font-size: 16px;
  11076. display: flex;
  11077. align-items: center;
  11078. line-height: 20px;
  11079. }
  11080. .lineTitle::before {
  11081. content: '';
  11082. display: block;
  11083. width: 3px;
  11084. height: 20px;
  11085. background: #0061FF;
  11086. border-radius: 3px;
  11087. margin: 0 5px 0 0;
  11088. }
  11089. .courseTop {
  11090. display: flex;
  11091. flex-direction: row;
  11092. justify-content: space-between;
  11093. align-items: center;
  11094. width: calc(100% - 40px);
  11095. margin: 0 auto;
  11096. padding: 10px 0;
  11097. }
  11098. .stepsNav {
  11099. display: flex;
  11100. flex-direction: row;
  11101. justify-content: flex-start;
  11102. align-items: center;
  11103. }
  11104. .stepsWord {
  11105. font-size: 18px;
  11106. color: #fff;
  11107. font-weight: bold;
  11108. margin-left: auto;
  11109. background: rgb(15, 126, 255);
  11110. border-radius: 5px;
  11111. padding: 3px 25px;
  11112. box-sizing: border-box;
  11113. }
  11114. .stepBox {
  11115. width: calc(100% - 40px);
  11116. height: calc(100% - 50px);
  11117. overflow: hidden;
  11118. border-radius: 5px;
  11119. margin: 0 auto;
  11120. }
  11121. .rightBox {
  11122. width: calc(100%);
  11123. background: #F0F2F5;
  11124. /* border-radius: 10px; */
  11125. overflow: auto;
  11126. height: calc(100% - 150px);
  11127. margin: 0 auto;
  11128. position: relative;
  11129. box-sizing: border-box;
  11130. }
  11131. .e_add_top {
  11132. display: flex;
  11133. justify-content: space-between;
  11134. background: #fff;
  11135. position: absolute;
  11136. right: 20px;
  11137. height: 50px;
  11138. align-items: center;
  11139. }
  11140. .e_add_title2 {
  11141. display: flex;
  11142. align-items: center;
  11143. }
  11144. .e_add_title2 span {
  11145. width: 40px;
  11146. }
  11147. .e_add_title {
  11148. display: flex;
  11149. align-items: center;
  11150. color: #b8b8b8;
  11151. font-size: 18px;
  11152. position: relative;
  11153. height: 40px;
  11154. }
  11155. .e_add_title span {
  11156. margin-right: 10px;
  11157. }
  11158. .e_add_title .el_input {
  11159. width: 300px;
  11160. }
  11161. .e_add_title>>>.el-input__inner {
  11162. width: 400px;
  11163. }
  11164. .e_add_btn {}
  11165. .e_add_content {
  11166. display: flex;
  11167. width: 100%;
  11168. }
  11169. .e_add_list {
  11170. background: #fff;
  11171. height: 500px;
  11172. width: 210px;
  11173. position: relative;
  11174. margin: 15px 5px 0 0;
  11175. flex-shrink: 0;
  11176. display: flex;
  11177. flex-direction: column;
  11178. }
  11179. .e_add_list_title {
  11180. font-size: 20px;
  11181. width: 100%;
  11182. box-sizing: border-box;
  11183. padding: 15px 40px;
  11184. text-align: center;
  11185. border-bottom: 1px solid #eaeaea;
  11186. position: relative;
  11187. display: flex;
  11188. align-items: center;
  11189. justify-content: center;
  11190. height: 57px;
  11191. background: #f6f6f6;
  11192. }
  11193. .e_add_list_title span {
  11194. overflow: hidden;
  11195. white-space: nowrap;
  11196. text-overflow: ellipsis;
  11197. }
  11198. .e_add_list_title img {
  11199. position: absolute;
  11200. right: 15px;
  11201. width: 25px;
  11202. cursor: pointer;
  11203. top: 50%;
  11204. transform: translateY(-50%);
  11205. }
  11206. .e_add_list_body {
  11207. height: calc(100% - 187px);
  11208. overflow: auto;
  11209. }
  11210. .e_add_list_child {
  11211. width: 100%;
  11212. display: flex;
  11213. align-items: center;
  11214. justify-content: center;
  11215. position: relative;
  11216. box-sizing: border-box;
  11217. padding: 15px 40px;
  11218. text-align: center;
  11219. }
  11220. .e_add_list_child span {
  11221. overflow: hidden;
  11222. white-space: nowrap;
  11223. text-overflow: ellipsis;
  11224. cursor: pointer;
  11225. }
  11226. .e_add_list_child img {
  11227. position: absolute;
  11228. right: 10px;
  11229. width: 21px;
  11230. cursor: pointer;
  11231. top: 50%;
  11232. transform: translateY(-50%);
  11233. }
  11234. .e_add_list_child+.e_add_list_child {
  11235. border-top: 1px solid #eaeaea;
  11236. }
  11237. .e_add_list_child .active {
  11238. color: #409eff;
  11239. }
  11240. .e_add_list_btn {
  11241. position: absolute;
  11242. bottom: 0;
  11243. height: 50px;
  11244. background: rgb(120, 120, 254);
  11245. width: 100%;
  11246. color: #fff;
  11247. font-size: 16px;
  11248. text-align: center;
  11249. line-height: 50px;
  11250. cursor: pointer;
  11251. }
  11252. .e_add_list_detail {
  11253. position: absolute;
  11254. bottom: 0;
  11255. height: 130px;
  11256. background: rgb(120, 120, 254);
  11257. width: 100%;
  11258. color: #fff;
  11259. font-size: 16px;
  11260. display: flex;
  11261. align-items: center;
  11262. justify-content: center;
  11263. }
  11264. .e_add_list_detail textarea {
  11265. height: 90%;
  11266. width: 95%;
  11267. border: none;
  11268. resize: none;
  11269. outline: none;
  11270. padding: 5px;
  11271. box-sizing: border-box;
  11272. }
  11273. .e_add_list_pbox {
  11274. width: 100%;
  11275. }
  11276. .e_add_list_pbox_title {
  11277. height: 50px;
  11278. background: #fff;
  11279. display: flex;
  11280. align-items: center;
  11281. width: 100%;
  11282. box-sizing: border-box;
  11283. padding: 0 20px;
  11284. flex-direction: row;
  11285. flex-wrap: wrap;
  11286. }
  11287. .type_title {
  11288. font-size: 18px;
  11289. font-weight: 700;
  11290. }
  11291. .type_content {
  11292. font-size: 16px;
  11293. margin-left: 30px;
  11294. }
  11295. .type_content span+span {
  11296. margin-left: 20px;
  11297. }
  11298. .type_content span {
  11299. cursor: pointer;
  11300. padding-bottom: 5px;
  11301. box-sizing: border-box;
  11302. }
  11303. .type_content .active {
  11304. color: #409eff;
  11305. border-bottom: 2px solid #409eff;
  11306. }
  11307. .e_add_list_pbox_content {
  11308. height: calc(100% - 50px);
  11309. display: flex;
  11310. align-items: center;
  11311. width: 100%;
  11312. background: #fff;
  11313. }
  11314. .mbCss {
  11315. width: 100%;
  11316. display: flex;
  11317. flex-direction: row;
  11318. flex-wrap: nowrap;
  11319. align-content: center;
  11320. align-items: flex-start;
  11321. justify-content: flex-start;
  11322. }
  11323. .pjCss {
  11324. /* width: 42%; */
  11325. width: calc(100% - 55%);
  11326. display: flex;
  11327. flex-direction: column;
  11328. flex-wrap: nowrap;
  11329. align-items: flex-start;
  11330. }
  11331. .e_box {
  11332. display: flex;
  11333. flex-wrap: wrap;
  11334. max-height: 500px;
  11335. align-items: flex-start;
  11336. overflow: auto;
  11337. }
  11338. .e_card {
  11339. border: 1px solid #ccc;
  11340. background: #fff;
  11341. margin-right: 20px;
  11342. width: 270px;
  11343. display: flex;
  11344. flex-direction: column;
  11345. align-items: center;
  11346. border-radius: 5px;
  11347. margin-top: 10px;
  11348. text-align: center;
  11349. }
  11350. .e_card_picture {
  11351. margin: 10px 0;
  11352. }
  11353. .e_card_picture>img {
  11354. width: 50px;
  11355. }
  11356. .e_card_name {
  11357. width: 100%;
  11358. padding: 0 10px;
  11359. box-sizing: border-box;
  11360. margin-bottom: 10px;
  11361. overflow: hidden;
  11362. text-overflow: ellipsis;
  11363. white-space: nowrap;
  11364. }
  11365. .e_card_time {
  11366. width: 100%;
  11367. padding: 0 10px;
  11368. box-sizing: border-box;
  11369. font-size: 15px;
  11370. color: #c3c3c3;
  11371. margin-bottom: 10px;
  11372. }
  11373. .e_card_btn {
  11374. height: 40px;
  11375. display: flex;
  11376. align-items: center;
  11377. width: 100%;
  11378. background: rgb(244, 244, 244);
  11379. }
  11380. .e_card_btn:hover {
  11381. background: rgb(221 221 221);
  11382. }
  11383. .e_card_btn span {
  11384. flex: 1 1 auto;
  11385. text-align: center;
  11386. cursor: pointer;
  11387. }
  11388. .addEva {
  11389. border: 1px solid #ccc;
  11390. background: #fff;
  11391. margin-right: 20px;
  11392. width: 270px;
  11393. height: 149px;
  11394. display: flex;
  11395. flex-direction: column;
  11396. align-items: center;
  11397. border-radius: 5px;
  11398. margin-top: 10px;
  11399. text-align: center;
  11400. cursor: pointer;
  11401. justify-content: center;
  11402. }
  11403. .addEva>img {
  11404. width: 50px;
  11405. object-fit: cover;
  11406. }
  11407. .uploadFm {
  11408. border: 1px dashed #ccc;
  11409. width: 100%;
  11410. height: 140px;
  11411. position: relative;
  11412. cursor: pointer;
  11413. display: flex;
  11414. flex-direction: column;
  11415. justify-content: center;
  11416. align-items: center;
  11417. font-size: 14px;
  11418. color: #6e6e6e;
  11419. }
  11420. .uploadFm>img {
  11421. width: 50px;
  11422. }
  11423. .fileCss {
  11424. width: 100%;
  11425. display: flex;
  11426. flex-direction: row;
  11427. flex-wrap: nowrap;
  11428. justify-content: space-around;
  11429. align-items: center;
  11430. padding-top: 15px;
  11431. }
  11432. .fileCss>div {
  11433. display: flex;
  11434. flex-direction: column;
  11435. align-items: center;
  11436. }
  11437. .fileCss .spanName {
  11438. margin-top: 10px
  11439. }
  11440. .sysPicBox {
  11441. display: flex;
  11442. flex-direction: row;
  11443. flex-wrap: wrap;
  11444. align-content: flex-start;
  11445. height: 435px;
  11446. overflow: auto;
  11447. position: relative;
  11448. }
  11449. .picNone {
  11450. position: absolute;
  11451. left: 50%;
  11452. top: 45%;
  11453. transform: translate(-50%, -50%);
  11454. width: fit-content;
  11455. color: #9c9c9c;
  11456. }
  11457. .sysPic {
  11458. width: 200px;
  11459. height: 115px;
  11460. margin: 0 20px 20px 0;
  11461. cursor: pointer;
  11462. }
  11463. .sysPic>img,
  11464. .isSysPic>img,
  11465. .deletePic>img {
  11466. width: 100%;
  11467. height: 100%;
  11468. object-fit: cover;
  11469. }
  11470. .isSysPic {
  11471. width: 200px;
  11472. height: 115px;
  11473. position: relative;
  11474. }
  11475. .deletePic {
  11476. width: 20px;
  11477. height: 20px;
  11478. position: absolute;
  11479. top: 0;
  11480. right: 0;
  11481. cursor: pointer;
  11482. }
  11483. .select_box1 {
  11484. height: 100%;
  11485. }
  11486. .select_box1_img {
  11487. background: #fff;
  11488. border-radius: 5px;
  11489. padding: 15px;
  11490. box-sizing: border-box;
  11491. margin-bottom: 20px;
  11492. }
  11493. .select_box1_title {
  11494. padding: 0 0 15px 0;
  11495. border-bottom: 1px solid #eee;
  11496. margin-bottom: 15px;
  11497. }
  11498. .select_box1_title span:nth-child(1) {
  11499. font-size: 16px;
  11500. margin-right: 20px;
  11501. color: #000;
  11502. }
  11503. .select_box1_title span:nth-child(2) {
  11504. font-size: 14px;
  11505. color: rgb(112, 112, 112);
  11506. }
  11507. .select_box1_add_img {}
  11508. .select_box1_select {
  11509. background: #fff;
  11510. border-radius: 5px;
  11511. padding: 15px;
  11512. box-sizing: border-box;
  11513. height: calc(100% - 200px);
  11514. overflow: auto;
  11515. }
  11516. .select_box2 {
  11517. height: 100%;
  11518. }
  11519. .select_box2_title {
  11520. background: #fff;
  11521. border-radius: 5px;
  11522. padding: 5px 10px;
  11523. box-sizing: border-box;
  11524. margin-bottom: 10px;
  11525. }
  11526. .select_box2_box {
  11527. display: flex;
  11528. height: calc(100% - 30px);
  11529. }
  11530. .select_box2_img {
  11531. width: calc(100% - 310px);
  11532. height: 100%;
  11533. overflow: auto;
  11534. background: #fff;
  11535. border-radius: 5px;
  11536. }
  11537. .select_box2_img img {
  11538. width: 100%;
  11539. }
  11540. .select_box2_answer {
  11541. background: #fff;
  11542. margin-left: 10px;
  11543. border-radius: 5px;
  11544. width: 300px;
  11545. overflow: auto;
  11546. height: 100%;
  11547. display: flex;
  11548. flex-direction: column;
  11549. align-items: center;
  11550. padding-top: 10px;
  11551. box-sizing: border-box;
  11552. }
  11553. .select_box2_answer_box {
  11554. margin: 0 0 10px 0;
  11555. width: 85%;
  11556. }
  11557. .rate_textarea {
  11558. font: inherit;
  11559. color: currentColor;
  11560. width: 100%;
  11561. padding: 8px 14px;
  11562. display: block;
  11563. min-width: 0;
  11564. outline: none;
  11565. border: 1px solid rgba(0, 0, 0, 0.23);
  11566. border-radius: 4px;
  11567. box-sizing: border-box;
  11568. background: #fff;
  11569. margin: 0 20px 0 0;
  11570. resize: none;
  11571. }
  11572. .select_answer_title {
  11573. text-align: left;
  11574. width: 85%;
  11575. margin-bottom: 10px;
  11576. font-size: 18px;
  11577. color: #8e8e8e;
  11578. }
  11579. .mask {
  11580. background-color: rgb(0 0 0 / 30%);
  11581. /* position: fixed; */
  11582. position: absolute;
  11583. top: 0;
  11584. left: 0;
  11585. width: 100%;
  11586. height: 100%;
  11587. z-index: 90;
  11588. display: flex;
  11589. align-items: center;
  11590. justify-content: center;
  11591. }
  11592. .progressBox {
  11593. width: 300px;
  11594. height: 150px;
  11595. background: #fff;
  11596. border-radius: 10px;
  11597. box-shadow: 0 0 6px 1px #bfbfbf;
  11598. display: flex;
  11599. align-items: center;
  11600. justify-content: center;
  11601. flex-direction: column;
  11602. position: relative;
  11603. color: #6c6c6c;
  11604. }
  11605. .progressBox>>>.el-progress-bar__outer {
  11606. background-color: #d1dfff !important;
  11607. }
  11608. .progressBox .lbox {
  11609. height: 50px;
  11610. font-size: 19px;
  11611. display: flex;
  11612. align-items: center;
  11613. color: #747474;
  11614. }
  11615. .progressBox .lbox img {
  11616. width: 40px;
  11617. margin-right: 20px;
  11618. }
  11619. .closeCss {
  11620. position: absolute;
  11621. top: 8px;
  11622. right: 8px;
  11623. cursor: pointer;
  11624. width: 20px;
  11625. height: 20px;
  11626. }
  11627. .closeCss>img {
  11628. width: 100%;
  11629. height: 100%;
  11630. }
  11631. .updateTips::before {
  11632. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  11633. font-size: 14px;
  11634. margin-left: 20px;
  11635. font-weight: 400;
  11636. color: #ff3a3a;
  11637. margin-bottom: 10px;
  11638. display: block;
  11639. }
  11640. .updateMask {
  11641. width: 100%;
  11642. z-index: 3;
  11643. top: 0;
  11644. position: absolute;
  11645. /* background-color: rgba(0,0,0,.3); */
  11646. }
  11647. .t_j_box {
  11648. display: flex;
  11649. }
  11650. .t_j_box span:nth-child(1) {
  11651. width: 15%;
  11652. overflow: hidden;
  11653. margin-right: 10px;
  11654. text-overflow: ellipsis;
  11655. white-space: nowrap;
  11656. }
  11657. .t_j_box span:nth-child(2) {
  11658. width: 30%;
  11659. overflow: hidden;
  11660. text-overflow: ellipsis;
  11661. margin-right: 10px;
  11662. }
  11663. .t_j_box span:nth-child(3) {
  11664. max-width: calc(55% - 20px);
  11665. overflow: hidden;
  11666. text-overflow: ellipsis;
  11667. }
  11668. .sentenBox {
  11669. background: #fff;
  11670. height: 600px;
  11671. overflow: auto;
  11672. background-image: url("../../assets/icon/conSentences/csBg.png");
  11673. background-position: 102%;
  11674. background-repeat: no-repeat;
  11675. background-size: 60%;
  11676. }
  11677. .sentenBox>.sentenContent {
  11678. padding-bottom: 10px;
  11679. width: 97%;
  11680. margin: 0 auto;
  11681. }
  11682. .sentenBox>.sentenContent+.sentenContent {
  11683. border-top: 1px solid #cbcbcb;
  11684. }
  11685. .addSen {
  11686. background: #409efe;
  11687. width: 90px;
  11688. color: #fff;
  11689. height: 35px;
  11690. text-align: center;
  11691. line-height: 35px;
  11692. border-radius: 5px;
  11693. float: right;
  11694. margin: 10px 20px 0 0;
  11695. cursor: pointer;
  11696. }
  11697. .sentenTop {
  11698. display: flex;
  11699. flex-direction: row;
  11700. flex-wrap: nowrap;
  11701. align-items: center;
  11702. }
  11703. .sentenTop::before {
  11704. content: attr(index);
  11705. background: #3681fc;
  11706. border-radius: 50%;
  11707. color: #fff;
  11708. width: 25px;
  11709. height: 25px;
  11710. min-width: 25px;
  11711. min-height: 25px;
  11712. text-align: center;
  11713. line-height: 25px;
  11714. margin-right: 5px;
  11715. }
  11716. .sentenTop>div:nth-child(2) {
  11717. width: 300px;
  11718. margin: 0 15px;
  11719. }
  11720. .sentenTop>div:nth-child(3) {
  11721. background: #409efe;
  11722. color: #fff;
  11723. width: 65px;
  11724. height: 35px;
  11725. text-align: center;
  11726. line-height: 35px;
  11727. border-radius: 5px;
  11728. cursor: pointer;
  11729. }
  11730. .cardList {
  11731. padding: 30px 0 20px 0;
  11732. display: flex;
  11733. flex-direction: row;
  11734. flex-wrap: wrap;
  11735. align-items: center;
  11736. box-sizing: border-box;
  11737. border-bottom: 1px solid #f4f4f4;
  11738. width: 98%;
  11739. margin: 0 auto;
  11740. }
  11741. .rightCardList {
  11742. display: flex;
  11743. flex-wrap: wrap;
  11744. }
  11745. .cardBox {
  11746. display: flex;
  11747. flex-direction: row;
  11748. flex-wrap: wrap;
  11749. align-items: center;
  11750. align-content: center;
  11751. }
  11752. .isCard,
  11753. .isCard1 {
  11754. width: auto;
  11755. padding: 0 20px;
  11756. height: 65px;
  11757. text-align: center;
  11758. line-height: 65px;
  11759. font-size: 14px;
  11760. cursor: pointer;
  11761. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  11762. background-size: 100% 100%;
  11763. position: relative;
  11764. z-index: 99;
  11765. }
  11766. .isCard1 {
  11767. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  11768. }
  11769. .isCard:hover .deleteWord {
  11770. display: block;
  11771. }
  11772. .isCard>div:nth-child(1),
  11773. .isCard1>div:nth-child(1) {
  11774. white-space: nowrap;
  11775. overflow: hidden;
  11776. text-overflow: ellipsis;
  11777. width: 100%;
  11778. margin: 0 auto;
  11779. }
  11780. .card {
  11781. width: 140px;
  11782. height: 65px;
  11783. }
  11784. .card>img {
  11785. width: 100%;
  11786. height: 100%;
  11787. }
  11788. .rightCardBox {
  11789. width: 98%;
  11790. margin: 10px auto 0;
  11791. }
  11792. .rightCardBox>div:nth-child(1) {
  11793. margin-bottom: 10px;
  11794. }
  11795. .cardCss {
  11796. display: flex;
  11797. flex-direction: column;
  11798. flex-wrap: nowrap;
  11799. align-items: center;
  11800. border-bottom: 3px solid #b4c3d3;
  11801. padding: 0 0 5px 0;
  11802. /* margin-right: 10px; */
  11803. }
  11804. .cardCss>div:nth-child(2) {
  11805. background: #5b7b9d;
  11806. color: #fff;
  11807. width: 20px;
  11808. height: 20px;
  11809. border-radius: 50%;
  11810. text-align: center;
  11811. line-height: 20px;
  11812. }
  11813. .sentenTopBox {
  11814. display: flex;
  11815. flex-direction: row;
  11816. flex-wrap: nowrap;
  11817. align-items: center;
  11818. justify-content: space-between;
  11819. padding: 55px 0 0 20px;
  11820. box-sizing: border-box;
  11821. width: 85%;
  11822. }
  11823. .stepsBottom {
  11824. width: 100%;
  11825. box-shadow: 0 0 10px 10px #f7f7f7;
  11826. /* background: #f7f7f7; */
  11827. border-radius: 10px;
  11828. overflow: hidden;
  11829. height: 100%
  11830. }
  11831. .navTop {
  11832. background: #53749b;
  11833. color: #fff;
  11834. height: 40px;
  11835. line-height: 40px;
  11836. padding-left: 15px;
  11837. font-size: 18px;
  11838. }
  11839. .navBottom {
  11840. /* background: #6b91b7; */
  11841. height: 100%;
  11842. overflow: auto;
  11843. }
  11844. .navTask {
  11845. display: flex;
  11846. flex-direction: row;
  11847. flex-wrap: nowrap;
  11848. align-items: center;
  11849. padding: 10px 10px 10px 0;
  11850. cursor: pointer;
  11851. background: #ffffff;
  11852. width: 95%;
  11853. margin: 10px auto 0;
  11854. box-sizing: border-box;
  11855. border-radius: 5px;
  11856. flex-wrap: wrap;
  11857. position: relative;
  11858. }
  11859. .navTask::before {
  11860. content: '';
  11861. display: block;
  11862. width: 16px;
  11863. height: 16px;
  11864. background-image: url(../../assets/icon/new/icon_arrow.png);
  11865. background-size: 100%;
  11866. margin-left: 23px;
  11867. }
  11868. .noImage::before {
  11869. display: none;
  11870. background-image: unset !important;
  11871. }
  11872. .isNavOpen::before {
  11873. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  11874. }
  11875. .isNavTask {
  11876. /* background: #3681FC; */
  11877. background: #EEF3FB;
  11878. }
  11879. .isNavTask>.chapter_upload_drag {
  11880. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  11881. }
  11882. .isNavTask .nt_taskName {
  11883. /* color: #fff !important; */
  11884. font-weight: bold !important;
  11885. color: #0061FF !important;
  11886. }
  11887. .isNavTask .nt_taskTitle {
  11888. /* color: #AECCFE !important; */
  11889. font-weight: bold !important;
  11890. color: #0061FF !important;
  11891. }
  11892. .navTask .nt_taskBox {
  11893. width: calc(100% - 40px);
  11894. padding: 0 0 0 5px;
  11895. box-sizing: border-box;
  11896. box-sizing: border-box;
  11897. display: flex;
  11898. flex-direction: row;
  11899. flex-wrap: nowrap;
  11900. align-items: baseline;
  11901. }
  11902. .navTask .nt_taskTitle {
  11903. /* color: #717C8D; */
  11904. color: #060E17;
  11905. line-height: 25px;
  11906. font-size: 16px;
  11907. min-width: 50px;
  11908. }
  11909. .navTask .nt_taskName {
  11910. /* color: #fff; */
  11911. /* max-width: 130px; */
  11912. /* width: 100%; */
  11913. max-width: calc(100% - 50px);
  11914. white-space: nowrap;
  11915. overflow: hidden;
  11916. text-overflow: ellipsis;
  11917. font-size: 16px;
  11918. color: #060E17;
  11919. /* color: #0E1E33; */
  11920. }
  11921. .gjBox {
  11922. width: calc(100% - 25px);
  11923. padding: 0 0 0 0;
  11924. box-sizing: border-box;
  11925. border-left: 1px solid #CAD1DC;
  11926. margin-left: 25px;
  11927. }
  11928. .gjBox>div {
  11929. display: flex;
  11930. align-items: center;
  11931. }
  11932. .gjBox>div::before {
  11933. content: '';
  11934. height: 1px;
  11935. width: 10px;
  11936. background: #CAD1DC;
  11937. display: block;
  11938. margin-right: 5px;
  11939. }
  11940. .gjCss {
  11941. display: flex;
  11942. flex-direction: row;
  11943. flex-wrap: nowrap;
  11944. align-items: center;
  11945. padding: 15px 0;
  11946. box-sizing: border-box;
  11947. font-size: 14px;
  11948. cursor: pointer;
  11949. }
  11950. .isGjCss {
  11951. color: #0061ff;
  11952. }
  11953. .groupBox {}
  11954. .groupContent+.groupContent {
  11955. margin-top: 30px;
  11956. }
  11957. .groupTitle {
  11958. font-size: 24px;
  11959. color: rgb(80, 80, 80);
  11960. margin-bottom: 20px;
  11961. }
  11962. .groupName {
  11963. display: flex;
  11964. align-items: center;
  11965. }
  11966. .groupn {
  11967. font-size: 15px;
  11968. margin-right: 10px;
  11969. }
  11970. .groupName+.groupName {
  11971. margin-top: 15px;
  11972. }
  11973. .groupBtn {
  11974. margin-left: 10px;
  11975. }
  11976. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  11977. text-align: left;
  11978. }
  11979. .radioBox>div {
  11980. margin: 10px 0 0 10px;
  11981. }
  11982. .radioBox>>>.el-radio__input,
  11983. .radioBox>>>.el-checkbox__inner {
  11984. margin-left: 10px;
  11985. }
  11986. .radioBox>>>.el-radio__label,
  11987. .radioBox>>>.el-checkbox__label {
  11988. display: flex;
  11989. align-items: center;
  11990. }
  11991. .inImg {
  11992. width: 50px;
  11993. }
  11994. .inImg>img {
  11995. width: 100%;
  11996. height: 100%;
  11997. object-fit: cover;
  11998. }
  11999. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12000. height: auto;
  12001. padding: 10px;
  12002. margin: 0;
  12003. }
  12004. .upCss>>>.el-upload-list {
  12005. width: 100%;
  12006. }
  12007. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12008. width: 100%;
  12009. height: 120px;
  12010. object-fit: contain;
  12011. background: unset;
  12012. margin-left: 0;
  12013. }
  12014. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12015. display: none;
  12016. }
  12017. .tcMember+.tcMember::before {
  12018. content: "、";
  12019. }
  12020. .xzUpImg {
  12021. width: 25px;
  12022. height: 25px;
  12023. min-width: 25px;
  12024. min-height: 25px;
  12025. cursor: pointer;
  12026. margin: 0 10px;
  12027. }
  12028. .xzUpImg>img {
  12029. width: 100%;
  12030. height: 100%;
  12031. }
  12032. .closeCss {
  12033. position: absolute;
  12034. top: 8px;
  12035. right: 8px;
  12036. cursor: pointer;
  12037. width: 20px;
  12038. height: 20px;
  12039. }
  12040. .closeCss>img {
  12041. width: 100%;
  12042. height: 100%;
  12043. }
  12044. .moveBtn {
  12045. display: flex;
  12046. flex-direction: row;
  12047. flex-wrap: nowrap;
  12048. align-items: center;
  12049. width: 55px;
  12050. }
  12051. .timuUpImg {
  12052. display: flex;
  12053. flex-direction: row;
  12054. align-items: center;
  12055. width: 100%;
  12056. margin-right: 10px;
  12057. }
  12058. .timuUpImg>div:nth-child(1) {
  12059. margin-right: 10px;
  12060. display: flex;
  12061. align-items: center;
  12062. width: 100%;
  12063. }
  12064. .timuImgBox {
  12065. margin: 10px 0;
  12066. display: flex;
  12067. flex-direction: column;
  12068. flex-wrap: wrap;
  12069. align-items: flex-start;
  12070. }
  12071. .timuImg {
  12072. width: 100px;
  12073. margin: 5px 0;
  12074. cursor: pointer;
  12075. position: relative;
  12076. }
  12077. .timuImg:hover .deleteWord {
  12078. display: block;
  12079. }
  12080. .deleteWord {
  12081. width: 25px;
  12082. height: 25px;
  12083. position: absolute;
  12084. right: -5px;
  12085. top: -5px;
  12086. cursor: pointer;
  12087. display: none;
  12088. }
  12089. .timuImg>img,
  12090. .deleteWord>img {
  12091. width: 100%;
  12092. height: 100%;
  12093. object-fit: cover;
  12094. }
  12095. .e_add_delete {
  12096. cursor: pointer;
  12097. margin-left: 10px;
  12098. }
  12099. .pType_box {
  12100. margin-top: 30px;
  12101. align-items: flex-end;
  12102. }
  12103. .noneBox {
  12104. height: 200px;
  12105. width: 100%;
  12106. display: flex;
  12107. align-items: center;
  12108. justify-content: center;
  12109. flex-direction: column;
  12110. /* margin-top: 150px; */
  12111. }
  12112. .noneBox>img {
  12113. width: 95px;
  12114. }
  12115. .noneBox>span {
  12116. margin-top: 10px;
  12117. color: #717C8D;
  12118. }
  12119. .rb_c_box {
  12120. width: 100%;
  12121. height: 100%;
  12122. display: flex;
  12123. /* padding: 20px; */
  12124. box-sizing: border-box;
  12125. justify-content: space-between;
  12126. }
  12127. .rb_c_box_left {
  12128. height: 100%;
  12129. background: #fff;
  12130. width: 270px;
  12131. min-width: 270px;
  12132. border-radius: 8px;
  12133. margin-right: 10px;
  12134. }
  12135. .rb_c_box_right {
  12136. height: 100%;
  12137. width: calc(100%);
  12138. overflow: hidden;
  12139. }
  12140. .rb_c_box_btn {
  12141. display: flex;
  12142. justify-content: flex-start;
  12143. height: 50px;
  12144. align-items: center;
  12145. }
  12146. .rb_c_box_right>.basic_box {
  12147. /* background: #fff; */
  12148. border-radius: 0;
  12149. height: calc(100% - 0px);
  12150. overflow: auto;
  12151. padding: 0;
  12152. }
  12153. .textarea_css {
  12154. display: block;
  12155. resize: none;
  12156. padding: 10px 15px;
  12157. line-height: 1.5;
  12158. box-sizing: border-box;
  12159. width: 100%;
  12160. font-size: 14px;
  12161. color: #606266;
  12162. background-color: #FFF;
  12163. background-image: none;
  12164. border: 1px solid #DCDFE6;
  12165. border-radius: 4px;
  12166. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  12167. outline: none;
  12168. overflow: hidden;
  12169. height: 46px;
  12170. font-family: 'Microsoft YaHei';
  12171. }
  12172. .textarea_css::-webkit-input-placeholder {
  12173. color: #C0C4CC
  12174. }
  12175. .textarea_css:focus {
  12176. border-color: #409EFF;
  12177. outline: 0;
  12178. }
  12179. .addEditor>>>.text {
  12180. height: auto;
  12181. min-height: 100px;
  12182. }
  12183. .addEditor>>>.w-e-text-container {
  12184. min-height: 100px;
  12185. }
  12186. .moveBtn2 {
  12187. flex-direction: column;
  12188. width: fit-content;
  12189. margin: 0 10px 0 10px;
  12190. }
  12191. .moveBtn2 .chapter_upload_down,
  12192. .moveBtn2 .chapter_upload_up {
  12193. width: 16px;
  12194. height: 16px;
  12195. }
  12196. .moveBtn2 .chapter_upload_up::after,
  12197. .moveBtn2 .chapter_upload_down::after {
  12198. width: 10px;
  12199. height: 10px;
  12200. }
  12201. .fullStyle>>>.el-dialog__body {
  12202. height: calc(100% - 125px) !important;
  12203. box-sizing: border-box;
  12204. }
  12205. .fullStyle>>>.el-dialog {
  12206. width: 100% !important;
  12207. max-width: 100% !important;
  12208. height: 100% !important;
  12209. margin: 0 !important;
  12210. }
  12211. .fullStyle {
  12212. width: 100% !important;
  12213. max-width: 100% !important;
  12214. height: 100% !important;
  12215. margin: 0 auto !important;
  12216. }
  12217. .wb_j_box_btn {
  12218. width: calc(100% - 30px);
  12219. display: flex;
  12220. height: 40px;
  12221. border: 1.5px solid #CAD1DC;
  12222. border-radius: 4px;
  12223. box-sizing: border-box;
  12224. align-items: center;
  12225. font-size: 14px;
  12226. cursor: pointer;
  12227. overflow: hidden;
  12228. }
  12229. .wb_j_box_btn:hover {
  12230. border: 1.5px solid #0061FF;
  12231. }
  12232. .wb_j_box_title {
  12233. background: #F0F4FA;
  12234. height: 100%;
  12235. line-height: 40px;
  12236. width: 90px;
  12237. text-align: center;
  12238. color: #060E17;
  12239. border-right: 1.5px solid #CAD1DC;
  12240. box-sizing: border-box;
  12241. }
  12242. .wb_j_box_btn_c {
  12243. width: calc(100% - 90px);
  12244. padding: 0 35px 0 10px;
  12245. box-sizing: border-box;
  12246. position: relative;
  12247. }
  12248. .wb_j_box_span {
  12249. width: 100%;
  12250. overflow: hidden;
  12251. white-space: nowrap;
  12252. text-overflow: ellipsis;
  12253. word-wrap: break-word;
  12254. color: #717C8D;
  12255. }
  12256. .wb_j_box_arrow {
  12257. content: '';
  12258. width: 14px;
  12259. height: 14px;
  12260. background: url(../../assets/icon/new/u_arrow.png);
  12261. background-size: 100% 100%;
  12262. position: absolute;
  12263. right: 12px;
  12264. top: 50%;
  12265. transform: translateY(-50%);
  12266. }
  12267. .check_classBox {
  12268. height: 400px;
  12269. display: flex;
  12270. border-top: 1.5px solid #E7EBF1;
  12271. border-bottom: 1.5px solid #E7EBF1;
  12272. }
  12273. .check_class_right {
  12274. width: 130px;
  12275. border-right: 1px solid #E7EBF1;
  12276. display: flex;
  12277. align-items: center;
  12278. flex-direction: column;
  12279. height: 100%;
  12280. overflow: auto;
  12281. padding: 15px 0;
  12282. box-sizing: border-box;
  12283. }
  12284. .check_class {
  12285. width: 85%;
  12286. border-radius: 5px;
  12287. height: 30px;
  12288. line-height: 30px;
  12289. text-align: center;
  12290. padding: 0 10px;
  12291. box-sizing: border-box;
  12292. cursor: pointer;
  12293. white-space: nowrap;
  12294. overflow: hidden;
  12295. text-overflow: ellipsis;
  12296. }
  12297. .check_class.activeX {
  12298. background: #E0EAFB;
  12299. color: #3681FC;
  12300. font-weight: 700;
  12301. }
  12302. .check_class+.check_class {
  12303. margin-top: 15px;
  12304. }
  12305. .check_class_left {
  12306. background: #FAFAFA;
  12307. width: calc(100% - 130px);
  12308. padding: 15px;
  12309. box-sizing: border-box;
  12310. }
  12311. .check_class_all_box {
  12312. display: flex;
  12313. margin-bottom: 10px;
  12314. }
  12315. .all_check {
  12316. display: flex;
  12317. align-items: center;
  12318. padding: 2px 0 0;
  12319. margin-left: 10px;
  12320. }
  12321. .all_check>>>.el-checkbox__label {
  12322. line-height: unset;
  12323. }
  12324. .check_class_left_title {
  12325. font-size: 16px;
  12326. font-weight: 700;
  12327. margin-bottom: 10px;
  12328. }
  12329. .check_class_item {
  12330. display: flex;
  12331. flex-wrap: wrap;
  12332. height: calc(100% - 45px);
  12333. overflow: auto;
  12334. justify-content: flex-start;
  12335. align-items: flex-start;
  12336. align-content: flex-start;
  12337. }
  12338. .class_item {
  12339. margin: 0 15px 15px 0;
  12340. }
  12341. .class_item:hover>>>.el-checkbox__label {
  12342. color: #409EFF;
  12343. }
  12344. .class_item>>>.el-checkbox__label {
  12345. color: #0E1E33;
  12346. }
  12347. .class_item:hover>>>.el-checkbox__inner {
  12348. border-color: #409EFF;
  12349. }
  12350. .class_item>>>.el-checkbox,
  12351. .class_item>>>.el-checkbox__input {
  12352. display: flex;
  12353. align-items: center;
  12354. }</style>