addCourse.vue 234 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="stepBg">
  6. <div v-if="steps == 1" class="first" @click="navSteps(1)">
  7. <div>
  8. <img src="../../assets/icon/first.png" alt />
  9. </div>
  10. <div>填写基本信息</div>
  11. </div>
  12. <div v-else class="firstNo" @click="navSteps(1)">
  13. <div>
  14. <img src="../../assets/icon/firstNo.png" alt />
  15. </div>
  16. <div>填写基本信息</div>
  17. </div>
  18. <div v-show="cidType === 0" class="secondNo">
  19. <div v-if="steps == 2" class="newSteps second" @click="navSteps(2)">
  20. <div style="margin: 5px 10px 0 0; width: 2rem">
  21. <img src="../../assets/icon/second.png" alt />
  22. </div>
  23. <div>选择项目框架</div>
  24. </div>
  25. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  26. <div>
  27. <img src="../../assets/icon/secondNo.png" alt />
  28. </div>
  29. <div>选择项目框架</div>
  30. </div>
  31. </div>
  32. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  33. <div>
  34. <img src="../../assets/icon/third.png" alt />
  35. </div>
  36. <div>上传项目内容</div>
  37. </div>
  38. <div v-else class="thirdNo" @click="navSteps(3)">
  39. <div>
  40. <img src="../../assets/icon/thirdNo.png" alt />
  41. </div>
  42. <div>上传项目内容</div>
  43. </div>
  44. <div v-if="steps == 4" class="four">
  45. <div>
  46. <img src="../../assets/icon/four.png" alt />
  47. </div>
  48. <div>上传完成</div>
  49. </div>
  50. <div v-else class="fourNo">
  51. <div>
  52. <img src="../../assets/icon/fourNo.png" alt />
  53. </div>
  54. <div>上传完成</div>
  55. </div>
  56. </div>
  57. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  58. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  59. <div class="courseTop">
  60. <div class="stepsNav">
  61. <h3 class="info_title" v-if="steps == 1">项目内容填写</h3>
  62. <h3 class="info_title" v-if="steps == 2">请选择项目框架</h3>
  63. <h3 class="info_title" v-if="steps == 3">项目内容填写</h3>
  64. <h3 class="info_title" v-if="steps == 4">上传项目</h3>
  65. <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 15px">
  66. <el-breadcrumb-item :to="{
  67. path:
  68. '/course?userid=' +
  69. userid +
  70. '&oid=' +
  71. oid +
  72. '&org=' +
  73. org,
  74. }">项目管理</el-breadcrumb-item>
  75. <el-breadcrumb-item>
  76. <span style="color: rgb(15, 126, 255)">添加项目</span>
  77. </el-breadcrumb-item>
  78. </el-breadcrumb>
  79. </div>
  80. <div v-if="steps == 1 || steps == 2 || steps == 3" class="stepsWord">
  81. {{
  82. steps == 1
  83. ? "第一步"
  84. : steps == 2
  85. ? "第二步"
  86. : steps == 3
  87. ? "第三步"
  88. : ""
  89. }}
  90. </div>
  91. </div>
  92. <div class="rightBox" v-if="this.steps == 1">
  93. <div class="updateMask" :style="{ height: rightBoxHeight + 'px' }" v-if="cid && userid != courseUserid">
  94. </div>
  95. <div class="whiteBg">
  96. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid }">
  97. 项目基本信息
  98. </div>
  99. <div class="basic_box">
  100. <div class="big_box">
  101. <div class="left_first">
  102. <div>
  103. <div>
  104. <div class="bInfo_title" style="margin-bottom: 15px">
  105. <!-- <span style="color: red">*</span> -->
  106. 项目名称
  107. </div>
  108. <div style="display: flex; margin-right: 20px">
  109. <img src="../../assets/icon/projectName.png" alt style="margin-right: 8px" />
  110. <input type="text" placeholder="请输入项目名称" class="binfo_input" v-model="courseName" />
  111. </div>
  112. </div>
  113. <div class="both">
  114. <div class="choose">
  115. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  116. <span>{{ item.name }}</span>
  117. <el-checkbox-group v-model="courseTypeId">
  118. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  119. item1.name
  120. }}</el-checkbox>
  121. </el-checkbox-group>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="whiteBg" style="border-radius: 0">
  131. <div class="right_first">
  132. <div class="right_title">上传封面与成员</div>
  133. <div style="
  134. padding: 0 0 50px 20px;
  135. display: flex;
  136. align-items: baseline;
  137. justify-content: flex-start;
  138. margin: 0 auto;
  139. ">
  140. <div>
  141. <div class="bInfo_title" style="margin-top: 0 !important">
  142. 项目封面
  143. </div>
  144. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  145. <img src="../../assets/icon/addPoster.png" alt="" />
  146. </div>
  147. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  148. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  149. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  150. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  151. <i class="el-icon-plus"></i>
  152. </el-upload>
  153. </div>
  154. <div style="
  155. display: flex;
  156. flex-flow: row nowrap;
  157. flex-direction: row;
  158. flex-wrap: wrap;
  159. align-items: baseline;
  160. margin: 0 30px;
  161. ">
  162. <!-- <div style="margin: 0 80px">
  163. <div class="bInfo_title">
  164. 选择项目成员
  165. </div>
  166. <div
  167. class="addPeople"
  168. @click="addPP"
  169. v-if="this.checkboxList.length == 0"
  170. >添加成员</div>
  171. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  172. </div>-->
  173. <div style="margin: 0 30px 0 0">
  174. <div class="bInfo_title">添加班级</div>
  175. <div class="addPeople" @click="dialogVisibleClass = true">
  176. 添加班级
  177. </div>
  178. </div>
  179. <div style="flex: 0.5 1 0%; margin: 0" v-if="courseUserid != '' ? courseUserid == userid : true">
  180. <div class="bInfo_title">协同编辑</div>
  181. <div class="addPeople" @click="dialogVisibleMember = true" style="background: #6b92c9">
  182. 添加协同成员
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  190. <div class="right_title">项目简要描述</div>
  191. <div style="width: 95%; margin: 15px auto">
  192. <div style="width: 55%">
  193. <textarea rows="8" class="binfo_input" cols v-model="courseText"></textarea>
  194. </div>
  195. </div>
  196. <!-- <div style="width: 95%; margin: 15px auto">
  197. <el-switch
  198. v-model="isTeacherSee"
  199. active-text="允许给其他老师查看"
  200. style="padding-bottom: 30px"
  201. ></el-switch>
  202. </div>-->
  203. <div style="width: 95%; margin: 15px auto">
  204. <el-switch v-model="isTeacherSee" active-text="是否公开此项目" style="padding-bottom: 30px"></el-switch>
  205. </div>
  206. </div>
  207. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  208. <div class="right_title">目标管理</div>
  209. <div style="margin: 15px auto; padding: 0 0 0 20px">
  210. <div style="
  211. width: 100%%;
  212. display: flex;
  213. flex-direction: row;
  214. flex-wrap: nowrap;
  215. align-content: center;
  216. align-items: center;
  217. justify-content: space-between;
  218. ">
  219. <div style="
  220. display: flex;
  221. flex-flow: row nowrap;
  222. align-items: flex-start;
  223. width: 100%;
  224. flex-direction: column;
  225. flex-wrap: nowrap;
  226. position: relative;
  227. ">
  228. <!-- <div style="margin-right: 15px; min-width: 120px">
  229. 请选择评价指标
  230. </div>
  231. <div>
  232. <el-select
  233. v-model="evalua"
  234. placeholder="请选择体系"
  235. @change="checkEva"
  236. >
  237. <el-option
  238. v-for="(e, eIndex) in evaJuri"
  239. :key="eIndex"
  240. :label="e.title"
  241. :value="e.id"
  242. ></el-option>
  243. </el-select>
  244. </div> -->
  245. <!-- <div
  246. @click="openT"
  247. class="addPeople"
  248. style="
  249. background: #6b92c9;
  250. margin: 0 0 0 15px;
  251. position: absolute;
  252. right: 23%;
  253. "
  254. >
  255. 前往设置目标管理
  256. </div> -->
  257. <div class="e_box">
  258. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  259. <div class="e_card_picture">
  260. <img src="../../assets/e_picture.png" />
  261. </div>
  262. <div class="e_card_name">
  263. <span>{{ item.title }}</span>
  264. </div>
  265. <!-- <div class="e_card_time">
  266. <span>{{ item.time }}</span>
  267. </div> -->
  268. <div class="e_card_btn">
  269. <span @click="checkEva(item.id)">导入</span>
  270. <!-- <span @click="openT">前往设置</span> -->
  271. </div>
  272. </div>
  273. <div class="addEva" @click="openT">
  274. <img src="../../assets/icon/addEva.png" alt="" />
  275. </div>
  276. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  277. 暂无数据
  278. </div>
  279. </div>
  280. </div>
  281. </div>
  282. <div v-if="evalua" style="
  283. border: 1px solid #e5e5e5;
  284. width: 95%;
  285. margin-top: 30px;
  286. box-shadow: 3px 1px 15px 3px #e0e0e0;
  287. ">
  288. <div class="e_add_top">
  289. <div class="e_add_title">
  290. <span>当前使用目标管理</span>
  291. <span>{{ eTitle }}</span>
  292. <img src="../../assets/line.png" class="cru_line" style="
  293. width: 125px;
  294. height: 20px;
  295. bottom: -10px;
  296. left: 155px;
  297. " />
  298. <!-- <el-input
  299. v-model="eTitle"
  300. placeholder="请输入名称"
  301. @change="setMindData"
  302. ></el-input>-->
  303. </div>
  304. </div>
  305. <div class="e_add_content">
  306. <div class="e_add_list_pbox">
  307. <div class="e_add_list_pbox_title">
  308. <span class="type_title">切换模式</span>
  309. <div class="type_content">
  310. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  311. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  312. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  313. </div>
  314. </div>
  315. <div class="e_add_list_pbox_content">
  316. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  317. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  318. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  319. v-if="typeMode == 3"></SeeBoard>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. </div>
  327. <div class="rightBox" v-if="this.steps == 2">
  328. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  329. <!-- <div
  330. style="
  331. color: #b8b8b8;
  332. background: #fff;
  333. width: 26%;
  334. height: 40px;
  335. border-radius: 15px;
  336. padding-left: 20px;
  337. line-height: 40px;
  338. font-size: 17px;
  339. box-shadow: 0px 1px 2px 2px #e0e0e0;
  340. "
  341. >-->
  342. <div class="right_title" style="border: none; margin: 0; padding: 0">
  343. 请选择合适的项目模板
  344. </div>
  345. <div class="wordbox">
  346. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  347. <div class="wordPic">
  348. <img src="../../assets/icon/wordMub.png" alt />
  349. </div>
  350. <div style="
  351. margin-top: 10px;
  352. line-height: 19px;
  353. overflow: hidden;
  354. text-overflow: ellipsis;
  355. white-space: nowrap;
  356. padding: 0 20px;
  357. ">
  358. {{ aa.title }}
  359. </div>
  360. </div>
  361. <div class="wordTeacher" @click="checkTemplate2()">
  362. <div class="wordPic">
  363. <img src="../../assets/icon/wordMub.png" alt />
  364. </div>
  365. <div style="
  366. margin-top: 10px;
  367. line-height: 19px;
  368. overflow: hidden;
  369. text-overflow: ellipsis;
  370. white-space: nowrap;
  371. padding: 0 20px;
  372. ">
  373. 新建项目
  374. </div>
  375. </div>
  376. <div class="wordTeacher" @click="checkTemplate1()">
  377. <div class="wordPic">
  378. <img src="../../assets/icon/wordMub.png" alt />
  379. </div>
  380. <div style="
  381. margin-top: 10px;
  382. line-height: 19px;
  383. overflow: hidden;
  384. text-overflow: ellipsis;
  385. white-space: nowrap;
  386. padding: 0 20px;
  387. ">
  388. 我的项目
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  395. <div class="basic_box">
  396. <div style="
  397. display: flex;
  398. flex-direction: row;
  399. align-items: center;
  400. position: sticky;
  401. top: 0;
  402. background: #fff;
  403. z-index: 99;
  404. width: 100%;
  405. padding: 0 20px 0 20px;
  406. box-sizing: border-box;
  407. ">
  408. <div class="cru_selectBox">
  409. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  410. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  411. 第{{ index + 1 }}阶段
  412. </div>
  413. <img src="../../assets/line.png" class="cru_line" :style="{
  414. left: offsetLetfPx + 'px',
  415. }" />
  416. </div>
  417. <div class="addStageImg" @click="addunit()">
  418. <img src="../../assets/icon/add.png" alt />
  419. </div>
  420. </div>
  421. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  422. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  423. <div>
  424. <div class="chapter_contentbox">
  425. <div>第{{ unitIndex + 1 }}阶段</div>
  426. <div>
  427. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  428. </div>
  429. <div v-if="unitJson.length > 1" @click="deleteUnit(unitIndex)"></div>
  430. </div>
  431. </div>
  432. <div style="
  433. margin: 50px 0px 10px;
  434. font-size: 1.5em;
  435. font-weight: 700;
  436. color: #0f7eff;
  437. ">
  438. 添加任务
  439. </div>
  440. <div class="taskBorder" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  441. <div>
  442. <div>
  443. <div style="font-size: 22px; color: #8e8e8e">
  444. 任务{{ itemTaskIndex + 1 }}
  445. </div>
  446. <div class="chapter_contentbox" style="
  447. flex-direction: row;
  448. justify-content: flex-start;
  449. align-items: center;
  450. ">
  451. <div style="
  452. border-left: 6px solid #5699e8;
  453. height: 20px;
  454. padding-left: 10px;
  455. line-height: 22px;
  456. ">
  457. 任务名称
  458. </div>
  459. <div>
  460. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  461. v-model="
  462. unitJson[unitIndex].chapterInfo[0].taskJson[
  463. itemTaskIndex
  464. ].task
  465. " />
  466. </div>
  467. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"
  468. style="position: absolute; right: 55px"></div>
  469. </div>
  470. <div style="
  471. display: flex;
  472. margin: 0 0 20px 0;
  473. flex-direction: row;
  474. justify-content: flex-start;
  475. align-items: center;
  476. width: 70.5% !important;
  477. padding-top: 30px;
  478. ">
  479. <div class="lineTitle">任务描述</div>
  480. <div class="line"></div>
  481. </div>
  482. <div>
  483. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="
  484. unitJson[unitIndex].chapterInfo[0].taskJson[
  485. itemTaskIndex
  486. ].taskDetail
  487. " @change="change"></editor-bar>
  488. <!-- <textarea
  489. rows="6"
  490. class="binfo_input"
  491. placeholder="请输入任务描述"
  492. cols
  493. style="width: 70.5% !important; height: 120px"
  494. v-model="
  495. unitJson[unitIndex].chapterInfo[0].taskJson[
  496. itemTaskIndex
  497. ].taskDetail
  498. "
  499. ></textarea>-->
  500. </div>
  501. </div>
  502. </div>
  503. <div class="basic_box" style="
  504. margin: 0;
  505. min-height: 0;
  506. width: 90% !important;
  507. paddint-top: 10px !important;
  508. ">
  509. <div style="
  510. display: flex;
  511. margin: 0 0 20px 0;
  512. flex-direction: row;
  513. justify-content: flex-start;
  514. align-items: center;
  515. ">
  516. <div class="lineTitle">学习内容</div>
  517. <div class="line"></div>
  518. </div>
  519. <div>
  520. <div class="add_chapters_box" v-if="
  521. itemTask.chapterData &&
  522. itemTask.chapterData.length == 0
  523. " style="height: 185px"></div>
  524. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  525. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  526. @click="
  527. getChapterData(
  528. $event,
  529. unitIndex,
  530. index,
  531. index1,
  532. item1.type
  533. )
  534. ">
  535. <div class="chapter_upload_t" style="width: 100%"></div>
  536. <div class="chapter_upload_o" style="
  537. position: relative;
  538. display: flex;
  539. align-items: center;
  540. ">
  541. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  542. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  543. <div v-if="
  544. item1.type == 3 ||
  545. item1.type == 6 ||
  546. item1.type == 7
  547. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  548. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  549. </div>
  550. <div class="chapter_upload_ic" style="
  551. cursor: pointer;
  552. position: absolute;
  553. width: 45px;
  554. right: 0;
  555. top: 0;
  556. ">
  557. <div class="chapter_upload_ic_l"></div>
  558. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  559. deleteChapterData(
  560. $event,
  561. unitIndex,
  562. index,
  563. index1,
  564. itemTaskIndex
  565. )
  566. ">
  567. <div></div>
  568. </div>
  569. </div>
  570. <div class="chapter_upload_n">
  571. <input v-if="
  572. item1.type == 2 ||
  573. item1.type == 3 ||
  574. item1.type == 7
  575. " :placeholder="item1.name" @change="
  576. updataVideoT(
  577. $event,
  578. unitIndex,
  579. chapterIndex,
  580. index1
  581. )
  582. " style="
  583. border: none;
  584. outline: none;
  585. width: 80%;
  586. minwidth: 215px;
  587. z-index: 99;
  588. font-size: 14px;
  589. white-space: nowrap;
  590. overflow: hidden;
  591. text-overflow: ellipsis;
  592. " />
  593. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  594. border: none;
  595. outline: none;
  596. width: 80%;
  597. white-space: nowrap;
  598. overflow: hidden;
  599. text-overflow: ellipsis;
  600. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  601. <input :placeholder="item1.title ? item1.title : '链接'" v-if="item1.type == 8" style="
  602. border: none;
  603. outline: none;
  604. width: 80%;
  605. white-space: nowrap;
  606. overflow: hidden;
  607. text-overflow: ellipsis;
  608. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  609. <div class="chapter_upload_ud" style="z-index: 99">
  610. <div class="chapter_upload_up" @click="
  611. upCd($event, unitIndex, index, index1)
  612. "></div>
  613. <div class="chapter_upload_down" @click="
  614. downCd($event, unitIndex, index, index1)
  615. "></div>
  616. </div>
  617. </div>
  618. </div>
  619. </div>
  620. </div>
  621. </div>
  622. <div class="add_info_box">
  623. <button class="info_btn" @click="addImg($event)">
  624. 添加教学视频
  625. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  626. capture="camera" v-if="inputShow" @change="
  627. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  628. " />
  629. </button>
  630. <button class="info_btn" @click="addImg($event)">
  631. 添加教学附件
  632. <input type="file"
  633. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  634. style="display: none" v-if="inputShow" @change="
  635. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  636. " />
  637. </button>
  638. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  639. 添加图文
  640. </button>
  641. <button class="info_btn" @click="openLine(itemTaskIndex)">
  642. 添加链接
  643. </button>
  644. </div>
  645. <div v-if="
  646. unitJson[unitIndex].chapterInfo[0].taskJson[
  647. itemTaskIndex
  648. ].proVisible
  649. " class="mask">
  650. <div class="progressBox">
  651. <div class="lbox">
  652. <img src="../../assets/loading.gif" />上传中,请稍后
  653. </div>
  654. <el-progress :text-inside="true" :stroke-width="20" :percentage="
  655. unitJson[unitIndex].chapterInfo[0].taskJson[
  656. itemTaskIndex
  657. ].progress
  658. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  659. itemTaskIndex
  660. ].progress
  661. : 0
  662. " style="width: 80%"></el-progress>
  663. </div>
  664. </div>
  665. </div>
  666. <div style="
  667. flex-direction: row;
  668. justify-content: flex-start;
  669. align-items: center;
  670. padding: 0 0 0 30px;
  671. paddint-top: 10px !important;
  672. ">
  673. <div style="
  674. display: flex;
  675. flex-direction: row;
  676. align-items: center;
  677. margin-bottom: 20px;
  678. ">
  679. <div class="lineTitle">练习内容</div>
  680. <div class="line" style="width: 90%"></div>
  681. </div>
  682. </div>
  683. <div class="toolChoose" style="padding: 0 0 0 30px">
  684. <div class="tools">
  685. <div class="leftTools" style="
  686. width: 95%;
  687. padding: 0 0 15px 0;
  688. border-bottom: 1px solid #efefef;
  689. margin-bottom: 15px;
  690. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  691. <div>
  692. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  693. style="margin: 0 0 20px 0; width: 71.5% !important"
  694. v-model="itemTool.toolDetail"></textarea>
  695. </div>
  696. <div style="
  697. display: flex;
  698. flex-direction: row;
  699. align-items: baseline;
  700. flex-wrap: nowrap;
  701. justify-content: flex-start;
  702. position: relative;
  703. ">
  704. <div style="margin-right: 20px; font-weight: bold">
  705. 工具 {{ toolIndex + 1 }} :
  706. </div>
  707. <div class="chooseWho">
  708. <div :class="
  709. itemTool.toolType == 0 ? 'isChooseActive' : ''
  710. " @click="(itemTool.toolType = 0), $forceUpdate()">
  711. 互动类
  712. </div>
  713. <div :class="
  714. itemTool.toolType == 1 ? 'isChooseActive' : ''
  715. " @click="(itemTool.toolType = 1), $forceUpdate()">
  716. 思维类
  717. </div>
  718. <div :class="
  719. itemTool.toolType == 2 ? 'isChooseActive' : ''
  720. " @click="(itemTool.toolType = 2), $forceUpdate()">
  721. 评价类
  722. </div>
  723. <div :class="
  724. itemTool.toolType == 3 ? 'isChooseActive' : ''
  725. " @click="(itemTool.toolType = 3), $forceUpdate()">
  726. 编程类
  727. </div>
  728. <div :class="
  729. itemTool.toolType == 5 ? 'isChooseActive' : ''
  730. " @click="(itemTool.toolType = 5), $forceUpdate()">
  731. 学科类
  732. </div>
  733. <div :class="
  734. itemTool.toolType == 4 ? 'isChooseActive' : ''
  735. " @click="(itemTool.toolType = 4), $forceUpdate()">
  736. 其他
  737. </div>
  738. </div>
  739. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  740. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  741. </div>
  742. <div style="min-height: 163px">
  743. <div class="toolSort" v-if="itemTool.toolType == 0">
  744. <!-- <div class="tool">
  745. <div
  746. class="whiteBIcon"
  747. @click="addTools(8, itemTaskIndex, toolIndex)"
  748. >
  749. <img src="../../assets/icon/secondToolList/library.png" alt />
  750. <div style="margin: 5px 0">素材库</div>
  751. </div>
  752. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  753. <img
  754. src="../../assets/icon/checkNo.png"
  755. alt
  756. v-if="itemTool.tool.indexOf(8) == -1"
  757. />
  758. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  759. alt /><span>已选择</span></div>
  760. </div>
  761. </div>-->
  762. <!-- <div class="tool">
  763. <div
  764. class="whiteBIcon"
  765. @click="addTools(17, itemTaskIndex, toolIndex)"
  766. >
  767. <img
  768. src="../../assets/icon/secondToolList/library.png"
  769. alt
  770. />
  771. <div style="margin: 5px 0">学习资料</div>
  772. </div>
  773. <div
  774. class="check"
  775. @click="addTools(17, itemTaskIndex, toolIndex)"
  776. >
  777. <img
  778. src="../../assets/icon/checkNo.png"
  779. alt
  780. v-if="itemTool.tool.indexOf(17) == -1"
  781. />
  782. <img
  783. src="../../assets/icon/checkedIs.png"
  784. alt
  785. v-else
  786. />
  787. </div>
  788. </div> -->
  789. <div class="tool">
  790. <div class="whiteBIcon" @click="addTools(10, itemTaskIndex, toolIndex)">
  791. <img src="../../assets/icon/thirdToolList/time.png" alt />
  792. <div style="margin: 5px 0">倒计时</div>
  793. </div>
  794. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  795. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  796. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  797. alt /><span>已选择</span></div>
  798. </div>
  799. </div>
  800. </div>
  801. <div class="toolSort" v-if="itemTool.toolType == 1">
  802. <div class="tool">
  803. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  804. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  805. <div style="margin: 5px 0">思维网格</div>
  806. </div>
  807. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  808. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  809. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  810. alt /><span>已选择</span></div>
  811. </div>
  812. </div>
  813. <div class="tool">
  814. <div class="whiteBIcon" @click="addTools(1, itemTaskIndex, toolIndex)">
  815. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  816. <div style="margin: 5px 0">电子白板</div>
  817. </div>
  818. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  819. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  820. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  821. alt /><span>已选择</span></div>
  822. </div>
  823. </div>
  824. <div class="tool">
  825. <div class="whiteBIcon" @click="addTools(2, itemTaskIndex, toolIndex)">
  826. <img src="../../assets/icon/secondToolList/note.png" alt />
  827. <div style="margin: 5px 0">便签</div>
  828. </div>
  829. <div class="check" @click="addTools(2, itemTaskIndex, toolIndex)">
  830. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(2) == -1" />
  831. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  832. alt /><span>已选择</span></div>
  833. </div>
  834. </div>
  835. <div class="tool">
  836. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  837. <img src="../../assets/icon/secondToolList/doc.png" alt />
  838. <div style="margin: 5px 0">协同文档</div>
  839. </div>
  840. <div class="check" @click="addTools(6, itemTaskIndex, toolIndex)">
  841. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(6) == -1" />
  842. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  843. alt /><span>已选择</span></div>
  844. </div>
  845. </div>
  846. <div class="tool">
  847. <div class="whiteBIcon" @click="addTools(3, itemTaskIndex, toolIndex)">
  848. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  849. <div style="margin: 5px 0">思维导图</div>
  850. </div>
  851. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  852. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  853. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  854. alt /><span>已选择</span></div>
  855. </div>
  856. </div>
  857. </div>
  858. <div class="toolSort" v-if="itemTool.toolType == 2">
  859. <!-- <div class="tool">
  860. <div
  861. class="whiteBIcon"
  862. @click="addTools(5, itemTaskIndex, toolIndex)"
  863. >
  864. <img
  865. src="../../assets/icon/thirdToolList/score.png"
  866. alt
  867. />
  868. <div style="margin: 5px 0">量规评分</div>
  869. </div>
  870. <div
  871. class="check"
  872. @click="addTools(5, itemTaskIndex, toolIndex)"
  873. >
  874. <img
  875. src="../../assets/icon/checkNo.png"
  876. alt
  877. v-if="itemTool.tool.indexOf(5) == -1"
  878. />
  879. <img
  880. src="../../assets/icon/checkedIs.png"
  881. alt
  882. v-else
  883. />
  884. </div>
  885. </div>-->
  886. <div class="tool">
  887. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  888. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  889. <div style="margin: 5px 0">问卷调查</div>
  890. </div>
  891. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  892. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  893. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  894. alt /><span>已选择</span></div>
  895. </div>
  896. </div>
  897. <div class="tool">
  898. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  899. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  900. <div style="margin: 5px 0">选择题</div>
  901. </div>
  902. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  903. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  904. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  905. alt /><span>已选择</span></div>
  906. </div>
  907. </div>
  908. <div class="tool">
  909. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  910. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  911. <div style="margin: 5px 0">问答工具</div>
  912. </div>
  913. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  914. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  915. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  916. alt /><span>已选择</span></div>
  917. </div>
  918. </div>
  919. <div class="tool">
  920. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  921. <img src="../../assets/icon/thirdToolList/work.png" alt />
  922. <div style="margin: 5px 0">作业提交</div>
  923. </div>
  924. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  925. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  926. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  927. alt /><span>已选择</span></div>
  928. </div>
  929. </div>
  930. <div class="tool">
  931. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  932. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  933. <div style="margin: 5px 0">学生互评</div>
  934. </div>
  935. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  936. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  937. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  938. alt /><span>已选择</span></div>
  939. </div>
  940. </div>
  941. <div class="tool">
  942. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  943. <img src="../../assets/icon/thirdToolList/select.png" alt />
  944. <div style="margin: 5px 0">选择填空</div>
  945. </div>
  946. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  947. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  948. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  949. alt /><span>已选择</span></div>
  950. </div>
  951. </div>
  952. <div class="tool">
  953. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  954. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  955. <div style="margin: 5px 0">连词成句</div>
  956. </div>
  957. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  958. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  959. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  960. alt /><span>已选择</span></div>
  961. </div>
  962. </div>
  963. <div class="tool">
  964. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  965. <img src="../../assets/icon/fourthToolList/table.png" alt />
  966. <div style="margin: 5px 0">表格</div>
  967. </div>
  968. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  969. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  970. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  971. alt /><span>已选择</span></div>
  972. </div>
  973. </div>
  974. <!-- <div class="tool">
  975. <div
  976. class="whiteBIcon"
  977. @click="openTools(itemTaskIndex, 42, toolIndex)"
  978. >
  979. <img
  980. src="../../assets/icon/thirdToolList/mp3.png"
  981. alt
  982. />
  983. <div style="margin: 5px 0">上传音频</div>
  984. </div>
  985. <div
  986. class="check"
  987. @click="addTools(42, itemTaskIndex, toolIndex)"
  988. >
  989. <img
  990. src="../../assets/icon/checkNo.png"
  991. alt
  992. v-if="itemTool.tool.indexOf(42) == -1"
  993. />
  994. <img
  995. src="../../assets/icon/checkedIs.png"
  996. alt
  997. v-else
  998. />
  999. </div>
  1000. </div> -->
  1001. </div>
  1002. <div class="toolSort" v-if="itemTool.toolType == 3">
  1003. <div class="tool">
  1004. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1005. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1006. <div style="margin: 5px 0">训练平台</div>
  1007. </div>
  1008. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1009. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1010. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1011. alt /><span>已选择</span></div>
  1012. </div>
  1013. </div>
  1014. <div class="tool">
  1015. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1016. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1017. <div style="margin: 5px 0">编程平台</div>
  1018. </div>
  1019. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1020. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  1021. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1022. alt /><span>已选择</span></div>
  1023. </div>
  1024. </div>
  1025. <div class="tool">
  1026. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1027. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1028. <div style="margin: 5px 0">AI体验</div>
  1029. </div>
  1030. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1031. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1032. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1033. alt /><span>已选择</span></div>
  1034. </div>
  1035. </div>
  1036. <div class="tool">
  1037. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1038. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1039. <div style="margin: 5px 0">Python</div>
  1040. </div>
  1041. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1042. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1043. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1044. alt /><span>已选择</span></div>
  1045. </div>
  1046. </div>
  1047. <div class="tool">
  1048. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1049. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1050. <div style="margin: 5px 0">AI平台</div>
  1051. </div>
  1052. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1053. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  1054. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1055. alt /><span>已选择</span></div>
  1056. </div>
  1057. </div>
  1058. <div class="tool">
  1059. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1060. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1061. <div style="margin: 5px 0">源码编辑</div>
  1062. </div>
  1063. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1064. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1065. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1066. alt /><span>已选择</span></div>
  1067. </div>
  1068. </div>
  1069. </div>
  1070. <div class="toolSort" v-if="itemTool.toolType == 5">
  1071. <div class="tool">
  1072. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1073. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1074. <div style="margin: 5px 0">翻译</div>
  1075. </div>
  1076. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1077. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1078. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1079. alt /><span>已选择</span></div>
  1080. </div>
  1081. </div>
  1082. <div class="tool">
  1083. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1084. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  1085. <div style="margin: 5px 0">魔盒识字</div>
  1086. </div>
  1087. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1088. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1089. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1090. alt /><span>已选择</span></div>
  1091. </div>
  1092. </div>
  1093. <div class="tool">
  1094. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1095. <img src="../../assets/icon/secondToolList/24game.png" alt />
  1096. <div style="margin: 5px 0">24点</div>
  1097. </div>
  1098. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1099. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1100. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1101. alt /><span>已选择</span></div>
  1102. </div>
  1103. </div>
  1104. <div class="tool">
  1105. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1106. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1107. <div style="margin: 5px 0">数学画板</div>
  1108. </div>
  1109. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1110. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1111. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1112. alt /><span>已选择</span></div>
  1113. </div>
  1114. </div>
  1115. <div class="tool">
  1116. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1117. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1118. <div style="margin: 5px 0">GeoGebra</div>
  1119. </div>
  1120. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1121. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1122. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1123. alt /><span>已选择</span></div>
  1124. </div>
  1125. </div>
  1126. </div>
  1127. <div class="toolSort" v-if="itemTool.toolType == 4">
  1128. <div class="tool">
  1129. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1130. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  1131. <div style="margin: 5px 0">项目设计</div>
  1132. </div>
  1133. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1134. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1135. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1136. alt /><span>已选择</span></div>
  1137. </div>
  1138. </div>
  1139. <div class="tool">
  1140. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1141. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  1142. <div style="margin: 5px 0">目标管理</div>
  1143. </div>
  1144. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1145. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1146. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1147. alt /><span>已选择</span></div>
  1148. </div>
  1149. </div>
  1150. <div class="tool">
  1151. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1152. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  1153. <div style="margin: 5px 0">汉字宫</div>
  1154. </div>
  1155. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1156. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1157. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1158. alt /><span>已选择</span></div>
  1159. </div>
  1160. </div>
  1161. </div>
  1162. </div>
  1163. </div>
  1164. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  1165. <div class="addToolImg">
  1166. <img src="../../assets/icon/add.png" alt />
  1167. </div>
  1168. <div>添加工具</div>
  1169. </div>
  1170. </div>
  1171. </div>
  1172. <div class="elist_css">
  1173. <div class="elist_title">
  1174. <div style="
  1175. display: flex;
  1176. flex-direction: row;
  1177. align-items: center;
  1178. margin-bottom: 20px;
  1179. ">
  1180. <div class="lineTitle">评价设置</div>
  1181. <div class="line" style="width: 90%"></div>
  1182. </div>
  1183. </div>
  1184. <div class="mbCss">
  1185. <div class="pjCss">
  1186. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  1187. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  1188. <span>评价名称:</span>
  1189. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  1190. <span>评星等级:</span>
  1191. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  1192. <div class="remove" @click="
  1193. deletEList(unitIndex, itemTaskIndex, eIndex)
  1194. "></div>
  1195. <div class="elist_inptu_text">
  1196. <span>评价描述:</span>
  1197. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  1198. </div>
  1199. <div class="elist_inptu_text" v-if="evalua">
  1200. <span>目标:</span>
  1201. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  1202. <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  1203. @change="forceUpdate()">
  1204. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  1205. :value="e.name">
  1206. </el-option>
  1207. </el-select>
  1208. </div>
  1209. </div>
  1210. </div>
  1211. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  1212. style="margin: 35px 35px 0 0">
  1213. <div class="addToolImg">
  1214. <img src="../../assets/icon/add.png" alt />
  1215. </div>
  1216. <div>添加</div>
  1217. </div>
  1218. </div>
  1219. <div v-if="evalua" style="
  1220. border: 1px solid #e5e5e5;
  1221. width: 55%;
  1222. margin-top: 20px;
  1223. box-shadow: 3px 1px 15px 3px #e0e0e0;
  1224. " class="evaCss">
  1225. <div class="e_add_top">
  1226. <div class="e_add_title">
  1227. <span>当前使用目标管理</span>
  1228. <span>{{ eTitle }}</span>
  1229. <img src="../../assets/line.png" class="cru_line" style="
  1230. width: 125px;
  1231. height: 20px;
  1232. bottom: -10px;
  1233. left: 155px;
  1234. " />
  1235. <!-- <el-input
  1236. v-model="eTitle"
  1237. placeholder="请输入名称"
  1238. @change="setMindData"
  1239. ></el-input>-->
  1240. </div>
  1241. </div>
  1242. <div class="e_add_content" style="width: 100%">
  1243. <div class="e_add_list_pbox" style="width: 100%">
  1244. <div class="e_add_list_pbox_title">
  1245. <span class="type_title">切换模式</span>
  1246. <div class="type_content">
  1247. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  1248. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  1249. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  1250. </div>
  1251. </div>
  1252. <div class="e_add_list_pbox_content">
  1253. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="
  1254. unitIndex + '-' + itemTaskIndex + 'mind'
  1255. " v-if="typeMode == 1"></Mind>
  1256. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  1257. </Sunburst>
  1258. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  1259. v-if="typeMode == 3"></SeeBoard>
  1260. </div>
  1261. </div>
  1262. </div>
  1263. </div>
  1264. </div>
  1265. </div>
  1266. <div class="funBlock" style="padding: 0">
  1267. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  1268. <div>折叠</div>
  1269. <div class="arrow">
  1270. <img src="../../assets/icon/fold.png" alt />
  1271. </div>
  1272. </div>
  1273. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  1274. <div>展开</div>
  1275. <div class="arrow">
  1276. <img src="../../assets/icon/expand.png" alt />
  1277. </div>
  1278. </div>
  1279. </div>
  1280. </div>
  1281. <div class="addTaskBorder" @click="addTaskBorder">
  1282. <div>
  1283. <img src="../../assets/icon/addHw.png" alt />
  1284. <span>添加任务</span>
  1285. </div>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. </div>
  1290. <div style="
  1291. width: calc(100% - 20px);
  1292. background: rgb(255, 255, 255);
  1293. border-radius: 10px;
  1294. " v-if="this.steps == 4">
  1295. <div class="basic_box_success">
  1296. <div class="right_img">
  1297. <img src="../../assets/icon/right.png" alt />
  1298. </div>
  1299. <div style="font-weight: bold">成功</div>
  1300. <!-- <div>您的项目编号</div>
  1301. <div class="number">{{ number }}</div>-->
  1302. <!-- <div class="success_button">
  1303. <div class="look_course" @click="isNoFinsh">
  1304. 邀请老师协同编辑
  1305. </div>
  1306. <div class="attend_others" @click="goCourse">预览项目</div>
  1307. </div> -->
  1308. </div>
  1309. </div>
  1310. <div class="info_btnBox">
  1311. <button class="info_btn" v-if="steps == 1" @click="
  1312. goTo('/course?userid=' + userid + '&oid=' + oid + '&org=' + org)
  1313. ">
  1314. 返回项目
  1315. </button>
  1316. <button class="info_btn" v-if="steps > 1 && steps != 5" @click="lastSteps">
  1317. {{ steps == 4 ? "返回首页" : "上一步" }}
  1318. </button>
  1319. <button class="info_btn" v-if="steps < 4" @click="nextSteps">
  1320. {{ steps == 3 ? "确认上传" : "下一步" }}
  1321. </button>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  1327. class="dialog_diy2 customWidth">
  1328. <div>请复制该链接邀请协同编辑</div>
  1329. <div>http://www.boomyon.com/index-zhang.com</div>
  1330. <span slot="footer" class="dialog-footer">
  1331. <el-button type="primary">复制链接分享</el-button>
  1332. <el-button @click="dialogVisible = false">取消</el-button>
  1333. </span>
  1334. </el-dialog>
  1335. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true"
  1336. width="25%" :before-close="handleClose" class="dialog_diy2 customWidth">
  1337. <el-form>
  1338. <el-form-item label="文档标题">
  1339. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1340. </el-form-item>
  1341. <div>文档简介</div>
  1342. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1343. </el-form>
  1344. <span slot="footer" class="dialog-footer">
  1345. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1346. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1347. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1348. </span>
  1349. </el-dialog>
  1350. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1351. :before-close="handleClose" class="dialog_diy">
  1352. <el-form>
  1353. <el-form-item label="文档标题">
  1354. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1355. </el-form-item>
  1356. <div>文档内容</div>
  1357. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1358. </el-form>
  1359. <span slot="footer" class="dialog-footer">
  1360. <el-button @click="clearChoose">取 消</el-button>
  1361. <el-button type="primary" @click="wordNext()">确定</el-button>
  1362. </span>
  1363. </el-dialog>
  1364. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1365. :before-close="handleClose" class="dialog_diy">
  1366. <el-form>
  1367. <el-form-item label="文本标题">
  1368. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1369. </el-form-item>
  1370. <div>富文本内容</div>
  1371. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  1372. </el-form>
  1373. <span slot="footer" class="dialog-footer">
  1374. <el-button @click="clearAttText">取 消</el-button>
  1375. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1376. </span>
  1377. </el-dialog>
  1378. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1379. :before-close="handleClose" class="dialog_diy lineCss">
  1380. <el-form>
  1381. <el-form-item label="标题" :label-width="formLabelWidth">
  1382. <span>
  1383. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1384. </span>
  1385. </el-form-item>
  1386. <el-form-item label="链接" :label-width="formLabelWidth">
  1387. <span>
  1388. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1389. </span>
  1390. </el-form-item>
  1391. </el-form>
  1392. <span slot="footer" class="dialog-footer">
  1393. <el-button @click="clearLine">取 消</el-button>
  1394. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1395. </span>
  1396. </el-dialog>
  1397. <el-dialog title="添加项目成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1398. :before-close="handleClose" class="addNewPP customWidth">
  1399. <div class="people">
  1400. <div class="people_top">
  1401. <div class="people_nav">选择成员</div>
  1402. <div class="people_top_right">
  1403. <div class="people_search">
  1404. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  1405. <div class="search_img" @click="searchStudent">
  1406. <img src="../../assets/icon/search.png" alt />
  1407. </div>
  1408. </div>
  1409. </div>
  1410. </div>
  1411. <el-checkbox-group v-model="checkboxList" class="people_name">
  1412. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1413. "暂无学生可选"
  1414. }}</el-checkbox>
  1415. </el-checkbox-group>
  1416. </div>
  1417. <span slot="footer" class="dialog-footer">
  1418. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1419. <el-button type="primary" @click="isAddPP">确定</el-button>
  1420. </span>
  1421. </el-dialog>
  1422. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1423. :before-close="handleClose" class="addNewPP">
  1424. <div class="people" style="height: 300px">
  1425. <div class="people_top">
  1426. <div class="people_nav">选择班级</div>
  1427. </div>
  1428. <el-checkbox-group v-model="checkboxList2" class="people_name">
  1429. <div v-for="(item, index) in grade" :key="item.id">
  1430. <el-checkbox :label="item.id">
  1431. {{ item.name ? item.name : "暂无班级可选" }}
  1432. </el-checkbox>
  1433. <div>
  1434. <span>{{ index }}</span>
  1435. </div>
  1436. </div>
  1437. </el-checkbox-group>
  1438. </div>
  1439. <span slot="footer" class="dialog-footer">
  1440. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1441. <el-button type="primary" @click="isAddClass">确定</el-button>
  1442. </span>
  1443. </el-dialog>
  1444. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1445. :before-close="handleClose" class="addNewPP customWidth">
  1446. <div class="people">
  1447. <div class="people_top">
  1448. <div class="people_top_right">
  1449. <div class="people_search">
  1450. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1451. <div class="search_img" @click="getTeacher">
  1452. <img src="../../assets/icon/search.png" alt />
  1453. </div>
  1454. </div>
  1455. </div>
  1456. <div class="people_nav">选择成员</div>
  1457. </div>
  1458. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1459. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1460. <div class="t_j_box">
  1461. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1462. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1463. </el-tooltip>
  1464. <el-tooltip placement="top" :content="item.username">
  1465. <span>{{ item.username }}</span>
  1466. </el-tooltip>
  1467. <el-tooltip placement="top" :content="item.school">
  1468. <span>{{ item.school }}</span>
  1469. </el-tooltip>
  1470. </div>
  1471. </el-checkbox>
  1472. </el-checkbox-group>
  1473. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1474. </div>
  1475. <span slot="footer" class="dialog-footer">
  1476. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1477. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1478. </span>
  1479. </el-dialog>
  1480. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1481. :before-close="handleClose" class="dialog_diy">
  1482. <div>
  1483. <div class="a_add_title" style="
  1484. display: flex;
  1485. flex-direction: row;
  1486. align-items: center;
  1487. justify-content: center;
  1488. ">
  1489. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1490. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1491. </div>
  1492. <div class="a_addBox">
  1493. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1494. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1495. <div class="a_add_head">
  1496. <div>
  1497. {{ index1 + 1 + "、" }}
  1498. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  1499. </el-input>
  1500. </div>
  1501. <div class="a_add_head_div">
  1502. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  1503. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1504. </el-button>
  1505. </div>
  1506. </div>
  1507. <div class="a_add_body">
  1508. <div class="a_add_input">
  1509. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1510. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1511. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1512. </div>
  1513. <div class="a_add_body_div">
  1514. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1515. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1516. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1517. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1518. </el-button>
  1519. </div>
  1520. </div>
  1521. </div>
  1522. </div>
  1523. </div>
  1524. <span slot="footer" class="dialog-footer">
  1525. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1526. <el-button type="primary" @click="addAsk">确 定</el-button>
  1527. </span>
  1528. </el-dialog>
  1529. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1530. :before-close="handleClose" class="dialog_diy">
  1531. <div>
  1532. <!-- <div class="a_add_title" style="
  1533. display: flex;
  1534. flex-direction: row;
  1535. align-items: center;
  1536. justify-content: center;
  1537. ">
  1538. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1539. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1540. </div> -->
  1541. <div class="a_addBox">
  1542. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1543. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1544. <div class="a_add_checkType">
  1545. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1546. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1547. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1548. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1549. </div>
  1550. <div class="a_add_head">
  1551. <div>
  1552. {{ index1 + 1 + "、" }}
  1553. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  1554. placeholder="请输入题目...">
  1555. </el-input>
  1556. </div>
  1557. <div class="a_add_head_div">
  1558. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  1559. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1560. </el-button>
  1561. </div>
  1562. </div>
  1563. <div class="a_add_body">
  1564. <div class="a_add_input a_add_input_choice">
  1565. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  1566. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1567. .testItem" :key="checkIndex" :label="checkIndex">
  1568. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1569. style="width: 300px; margin-right: 10px"></el-input>
  1570. </el-radio>
  1571. </el-radio-group>
  1572. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  1573. v-if="testJson.testJson[index1].type == '2'">
  1574. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1575. .testItem" :key="checkIndex" :label="checkIndex">
  1576. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1577. style="width: 300px; margin-right: 10px"></el-input>
  1578. </el-checkbox>
  1579. </el-checkbox-group>
  1580. </div>
  1581. <div class="a_add_body_div">
  1582. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  1583. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  1584. v-if="testJson.testJson[index1].testItem != 1">删除
  1585. </el-button>
  1586. </div>
  1587. </div>
  1588. </div>
  1589. </div>
  1590. </div>
  1591. <span slot="footer" class="dialog-footer">
  1592. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  1593. <el-button type="primary" @click="addTest">确 定</el-button>
  1594. </span>
  1595. </el-dialog>
  1596. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  1597. :before-close="handleClose" class="dialog_diy addToolsDia">
  1598. <div class="toolChoose" style="padding: 0 0 0 30px">
  1599. <div class="tools">
  1600. <div class="leftTools" style="
  1601. width: 95%;
  1602. padding: 0 0 15px 0;
  1603. border-bottom: 1px solid #efefef;
  1604. margin-bottom: 15px;
  1605. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  1606. <div style="
  1607. display: flex;
  1608. flex-direction: row;
  1609. align-items: baseline;
  1610. flex-wrap: nowrap;
  1611. justify-content: flex-start;
  1612. position: relative;
  1613. ">
  1614. <div class="chooseWho">
  1615. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  1616. 互动类
  1617. </div>
  1618. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  1619. 思维类
  1620. </div>
  1621. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  1622. 评价类
  1623. </div>
  1624. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  1625. 其他
  1626. </div>
  1627. </div>
  1628. </div>
  1629. <div style="min-height: 163px">
  1630. <div class="toolSort" v-if="chapToolsType == 0">
  1631. <div class="tool">
  1632. <div class="whiteBIcon" @click="chapAddTools(8)">
  1633. <img src="../../assets/icon/secondToolList/library.png" alt />
  1634. <div style="margin: 5px 0">素材库</div>
  1635. </div>
  1636. <div class="check" @click="chapAddTools(8)">
  1637. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  1638. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1639. </div>
  1640. </div>
  1641. </div>
  1642. <div class="toolSort" v-if="chapToolsType == 1">
  1643. <div class="tool">
  1644. <div class="whiteBIcon" @click="chapAddTools(7)">
  1645. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1646. <div style="margin: 5px 0">思维网格</div>
  1647. </div>
  1648. <div class="check" @click="chapAddTools(7)">
  1649. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  1650. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1651. </div>
  1652. </div>
  1653. <div class="tool">
  1654. <div class="whiteBIcon" @click="chapAddTools(1)">
  1655. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1656. <div style="margin: 5px 0">电子白板</div>
  1657. </div>
  1658. <div class="check" @click="chapAddTools(1)">
  1659. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  1660. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1661. </div>
  1662. </div>
  1663. <div class="tool">
  1664. <div class="whiteBIcon" @click="chapAddTools(2)">
  1665. <img src="../../assets/icon/secondToolList/note.png" alt />
  1666. <div style="margin: 5px 0">便签</div>
  1667. </div>
  1668. <div class="check" @click="chapAddTools(2)">
  1669. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  1670. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1671. </div>
  1672. </div>
  1673. <div class="tool">
  1674. <div class="whiteBIcon" @click="chapAddTools(6)">
  1675. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1676. <div style="margin: 5px 0">协同文档</div>
  1677. </div>
  1678. <div class="check" @click="chapAddTools(6)">
  1679. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  1680. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1681. </div>
  1682. </div>
  1683. <div class="tool">
  1684. <div class="whiteBIcon" @click="chapAddTools(3)">
  1685. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1686. <div style="margin: 5px 0">思维导图</div>
  1687. </div>
  1688. <div class="check" @click="chapAddTools(3)">
  1689. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  1690. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1691. </div>
  1692. </div>
  1693. <div class="tool">
  1694. <div class="whiteBIcon" @click="chapAddTools(31)">
  1695. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1696. <div style="margin: 5px 0">数学画板</div>
  1697. </div>
  1698. <div class="check" @click="chapAddTools(31)">
  1699. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  1700. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1701. </div>
  1702. </div>
  1703. </div>
  1704. <div class="toolSort" v-if="chapToolsType == 2">
  1705. <div class="tool">
  1706. <div class="whiteBIcon" @click="chapAddTools(5)">
  1707. <img src="../../assets/icon/thirdToolList/score.png" alt />
  1708. <div style="margin: 5px 0">量规评分</div>
  1709. </div>
  1710. <div class="check" @click="chapAddTools(5)">
  1711. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  1712. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1713. </div>
  1714. </div>
  1715. <div class="tool">
  1716. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  1717. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1718. <div style="margin: 5px 0">问卷调查</div>
  1719. </div>
  1720. <div class="check" @click="chapAddTools(4)">
  1721. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  1722. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span></div>
  1723. </div>
  1724. </div>
  1725. </div>
  1726. </div>
  1727. <div>
  1728. <input type="text" placeholder="添加工具描述" class="binfo_input"
  1729. style="margin: 20px 0; width: 71.5% !important" v-model="itemTools.toolDetail" />
  1730. </div>
  1731. </div>
  1732. </div>
  1733. </div>
  1734. <span slot="footer" class="dialog-footer">
  1735. <el-button @click="dialogVisible4 = false">取 消</el-button>
  1736. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  1737. </span>
  1738. </el-dialog>
  1739. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  1740. :before-close="handleClose" class="dialog_diy">
  1741. <div>
  1742. <div class="a_add_title" style="
  1743. display: flex;
  1744. flex-direction: column;
  1745. align-items: flex-start;
  1746. justify-content: center;
  1747. ">
  1748. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1749. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  1750. </div>
  1751. </div>
  1752. <span slot="footer" class="dialog-footer">
  1753. <el-button @click="dialogVisible8 = false">取 消</el-button>
  1754. <el-button type="primary" @click="addAnswer">确 定</el-button>
  1755. </span>
  1756. </el-dialog>
  1757. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  1758. :before-close="handleClose" class="dialog_diy">
  1759. <div>
  1760. <div class="a_add_title" style="
  1761. display: flex;
  1762. flex-direction: column;
  1763. align-items: flex-start;
  1764. justify-content: center;
  1765. ">
  1766. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1767. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  1768. </div>
  1769. </div>
  1770. <span slot="footer" class="dialog-footer">
  1771. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  1772. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  1773. </span>
  1774. </el-dialog>
  1775. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  1776. :before-close="handleClose" class="dialog_diy">
  1777. <div>
  1778. <div class="fileCss" style="padding-top: 20px">
  1779. <div>
  1780. <button class="info_btn" @click="addImg($event)">
  1781. 选择本地文件
  1782. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  1783. </button>
  1784. </div>
  1785. <div>
  1786. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  1787. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  1788. <img :src="cover[0].url" alt="" />
  1789. <div class="deletePic" @click="deleteSysPic">
  1790. <img src="../../assets/icon/delete.png" alt="" />
  1791. </div>
  1792. </div>
  1793. </div>
  1794. </div>
  1795. <div class="fileCss">
  1796. <div>选择本地文件</div>
  1797. <div>选择系统文件</div>
  1798. </div>
  1799. </div>
  1800. <span slot="footer" class="dialog-footer">
  1801. <el-button @click="choosePicVisible = false">取 消</el-button>
  1802. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  1803. </span>
  1804. </el-dialog>
  1805. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="700px"
  1806. :before-close="handleClose" class="dialog_diy">
  1807. <div class="cru_selectBox" style="margin: 0">
  1808. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  1809. 绘画
  1810. </div>
  1811. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  1812. 科技
  1813. </div>
  1814. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  1815. 人文
  1816. </div>
  1817. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  1818. 艺术
  1819. </div>
  1820. </div>
  1821. <div class="sysPicBox">
  1822. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  1823. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  1824. </div>
  1825. </div>
  1826. <span slot="footer" class="dialog-footer">
  1827. <el-button @click="sysPicVisible = false">取 消</el-button>
  1828. <el-button type="primary">确 定</el-button>
  1829. </span>
  1830. </el-dialog>
  1831. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  1832. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1833. <div v-if="selectJson">
  1834. <div class="select_box1" v-if="selectSteps == 1">
  1835. <div class="select_box1_img">
  1836. <div class="select_box1_title">
  1837. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  1838. </div>
  1839. <div class="select_box1_add_img">
  1840. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  1841. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  1842. <img src="../../assets/icon/addPoster.png" alt="" />
  1843. </div>
  1844. <div class="isSysPic" v-else>
  1845. <img :src="selectJson.url" alt="" />
  1846. <div class="deletePic" @click="deleteSelectPic">
  1847. <img src="../../assets/icon/delete.png" alt="" />
  1848. </div>
  1849. </div>
  1850. </div>
  1851. </div>
  1852. <div class="select_box1_select">
  1853. <div class="select_box1_title">
  1854. <span>添加选项</span><span>提示:请输入题目选项</span>
  1855. </div>
  1856. <div class="select_box1_select_box">
  1857. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  1858. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  1859. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1860. <div class="select_box1_select_box_add">
  1861. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  1862. 添加</el-button>
  1863. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  1864. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  1865. </div>
  1866. </div>
  1867. </div>
  1868. </div>
  1869. <div v-if="selectSteps == 2">
  1870. <div class="select_box2">
  1871. <div class="select_box2_title">设置答案</div>
  1872. <div class="select_box2_box">
  1873. <div class="select_box2_img">
  1874. <img :src="selectJson.url" alt="" />
  1875. </div>
  1876. <div class="select_box2_answer">
  1877. <div class="select_answer_title">根据题目选择对应答案</div>
  1878. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1879. <span>{{ checkIndex + 1 }}、</span>
  1880. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  1881. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1882. </el-option>
  1883. </el-select>
  1884. </div>
  1885. </div>
  1886. </div>
  1887. </div>
  1888. </div>
  1889. </div>
  1890. <span slot="footer" class="dialog-footer">
  1891. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  1892. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  1893. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  1894. </span>
  1895. </el-dialog>
  1896. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  1897. :before-close="handleClose" class="dialog_diy">
  1898. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  1899. <div style="font-size: 18px; color: #a9a9a9">请输入学生评价指标:</div>
  1900. <div class="pjCss" style="width: 100%">
  1901. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  1902. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  1903. <span style="min-width: 100px; text-align: right">学生评价指标:</span>
  1904. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  1905. <div class="remove" @click="deletRateList(eIndex)"></div>
  1906. <div style="width: 100%; display: flex">
  1907. <span style="min-width: 100px; text-align: right">评星等级:</span>
  1908. <el-rate v-model="eItem.score" disabled></el-rate>
  1909. </div>
  1910. <div class="elist_inptu_text" style="align-items: flex-start">
  1911. <span style="min-width: 100px; text-align: right">描述:</span>
  1912. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  1913. </div>
  1914. </div>
  1915. </div>
  1916. <div class="addToolFun" @click="addRateList()">
  1917. <div class="addToolImg">
  1918. <img src="../../assets/icon/add.png" alt />
  1919. </div>
  1920. <div>添加</div>
  1921. </div>
  1922. </div>
  1923. </div>
  1924. <span slot="footer" class="dialog-footer">
  1925. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  1926. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  1927. </span>
  1928. </el-dialog>
  1929. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  1930. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1931. <div>
  1932. <div class="sentenBox">
  1933. <div class="addSen" @click="addSt">添加题目</div>
  1934. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1935. <div class="sentenTopBox">
  1936. <div class="sentenTop">
  1937. <div>题目设置</div>
  1938. <div>
  1939. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  1940. </div>
  1941. <div @click="addSen(stIndex)">添加</div>
  1942. </div>
  1943. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  1944. </div>
  1945. <div class="cardList">
  1946. <div v-if="st.addSentence.length > 0" class="cardBox">
  1947. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  1948. @click="setRightAnswer(s, stIndex, sIndex)">
  1949. <el-tooltip class="item" effect="light" :content="s" placement="top">
  1950. <div>{{ s }}</div>
  1951. </el-tooltip>
  1952. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  1953. <img src="../../assets/icon/delete.png" alt="" />
  1954. </div>
  1955. </div>
  1956. </div>
  1957. <div class="card">
  1958. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  1959. </div>
  1960. </div>
  1961. <div class="rightCardBox">
  1962. <div>正确顺序</div>
  1963. <div class="rightCardList">
  1964. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  1965. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  1966. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  1967. <el-tooltip class="item" effect="light" :content="r" placement="top">
  1968. <div>{{ r }}</div>
  1969. </el-tooltip>
  1970. </div>
  1971. <div>{{ rIndex + 1 }}</div>
  1972. </div>
  1973. </div>
  1974. <div class="card" v-if="st.rightAnswer.length == 0">
  1975. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  1976. </div>
  1977. </div>
  1978. </div>
  1979. </div>
  1980. </div>
  1981. </div>
  1982. <span slot="footer" class="dialog-footer">
  1983. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  1984. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  1985. </span>
  1986. </el-dialog>
  1987. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  1988. :before-close="handleClose" class="dialog_diy">
  1989. <el-form>
  1990. <!-- <el-form-item label="文本标题">
  1991. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1992. </el-form-item> -->
  1993. <div>表格内容</div>
  1994. <Table v-model="tableJson.text" @change="change"></Table>
  1995. </el-form>
  1996. <span slot="footer" class="dialog-footer">
  1997. <el-button @click="(dialogVisibleTable = false)">取 消</el-button>
  1998. <el-button type="primary" @click="addTableJson">确定</el-button>
  1999. </span>
  2000. </el-dialog>
  2001. </div>
  2002. </template>
  2003. <script>
  2004. import "../../common/aws-sdk-2.235.1.min.js";
  2005. import $ from "jquery";
  2006. import EditorBar from "../../components/tools/wangEnduit";
  2007. import Table from "../../components/tools/table";
  2008. import Mind from "../tools/jsmind2";
  2009. import Sunburst from "../tools/sunburst";
  2010. import SeeBoard from "../tools/seeBoard";
  2011. export default {
  2012. components: { EditorBar, Mind, Sunburst, SeeBoard, Table },
  2013. data() {
  2014. return {
  2015. checkAll: false,
  2016. chooseType: 1,
  2017. checkedCities: [],
  2018. isIndeterminate: true,
  2019. isSysPic: false,
  2020. steps: 1,
  2021. nbOrder: 0,
  2022. courseId: "",
  2023. chapToolsType: 0,
  2024. chapTools: [
  2025. {
  2026. tools: [],
  2027. toolDetail: "",
  2028. },
  2029. ],
  2030. line: "",
  2031. lineTitle: "",
  2032. sysPic: [],
  2033. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2034. isPushTitleList: [],
  2035. lineCount: 0,
  2036. lineType: 0,
  2037. chapCount: 0,
  2038. courseName: "",
  2039. isTeacherSee: true,
  2040. courseText: "",
  2041. formLabelWidth: "100px",
  2042. choosePicVisible: false,
  2043. sysPicVisible: false,
  2044. uploadLoading1: false,
  2045. noneBtnImg: false,
  2046. updateBoolean2: false,
  2047. unitIndex: 0,
  2048. taskCount: 0,
  2049. dialogVisible: false,
  2050. dialogVisible1: false,
  2051. dialogVisible2: false,
  2052. dialogVisible3: false,
  2053. dialogVisible4: false,
  2054. dialogVisible5: false,
  2055. dialogVisible6: false,
  2056. dialogVisible7: false,
  2057. dialogVisible8: false,
  2058. dialogVisible9: false,
  2059. dialogVisibleClass: false,
  2060. dialogVisibleMember: false,
  2061. dialogVisibleMp3: false,
  2062. dialogVisibleSelect: false,
  2063. dialogVisibleSentence: false,
  2064. dialogVisibleRate: false,
  2065. dialogVisibleChoice: false,
  2066. publicTool: 0,
  2067. searchPeople: "",
  2068. searchTN: "",
  2069. userid: this.$route.query.userid,
  2070. oid: this.$route.query.oid,
  2071. org: this.$route.query.org,
  2072. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2073. dialogVisibleTable: false,
  2074. tableJson: { text: "" },
  2075. cover: [], //项目封面
  2076. myWord: [],
  2077. evaJuri: [],
  2078. evalua: "",
  2079. targetArray: [],
  2080. eTitle: "",
  2081. eJson: {},
  2082. fid: "", //一级
  2083. sid: "", //二级
  2084. tid: "", //二级
  2085. typeMode: 1,
  2086. eJSONNum: 0,
  2087. data: {
  2088. meta: {
  2089. name: "example",
  2090. author: "dd@163.com",
  2091. version: "0.2",
  2092. },
  2093. format: "node_array",
  2094. data: [{ id: "root", isroot: true, topic: "" }],
  2095. },
  2096. askJson: {
  2097. askCount: 1,
  2098. askTitle: "",
  2099. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2100. },
  2101. testJson: {},
  2102. selectJson: {},
  2103. rateJson: [],
  2104. unitJson2: [],
  2105. unitJson: [
  2106. {
  2107. dyName: "", //单元标题
  2108. chapterInfo: [
  2109. {
  2110. isread: false,
  2111. chapterid: this.guid(),
  2112. title: "",
  2113. courseName: "",
  2114. taskJson: [
  2115. {
  2116. task: "",
  2117. taskDetail: "",
  2118. chapterData: [],
  2119. toolText: "",
  2120. toolChoose: [
  2121. {
  2122. tool: [],
  2123. toolDetail: "",
  2124. toolType: 0,
  2125. askCount: 1,
  2126. askTitle: "",
  2127. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2128. },
  2129. ],
  2130. isShowTools: false,
  2131. askCount: 1,
  2132. isFold: 0,
  2133. askTitle: "",
  2134. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2135. checkJson: [{ checkCount: [], checkPerent: [] }],
  2136. homeworkList: [],
  2137. },
  2138. ],
  2139. itemCount: 1,
  2140. fileList1: [],
  2141. video: [],
  2142. testData: [],
  2143. pData: [],
  2144. templateArray: [],
  2145. },
  2146. ],
  2147. },
  2148. ],
  2149. studentJuri: [],
  2150. teacherJuri: [],
  2151. checkboxList: [],
  2152. checkboxList2: [],
  2153. checkboxList3: [],
  2154. number: "",
  2155. tTitle: "",
  2156. tdetail: "",
  2157. templateC: {},
  2158. AttText: {},
  2159. AttTextType: 0,
  2160. AttTextIndex: 0,
  2161. cTemplate: "",
  2162. CourseType: [],
  2163. CourseTypeJson: {},
  2164. courseTypeId: [],
  2165. courseTypeSon: [],
  2166. clearArray: [],
  2167. loading: false,
  2168. toolType: 0,
  2169. inputShow: true,
  2170. toolIndex: 0,
  2171. cidType: 0,
  2172. answerQ: "",
  2173. grade: [],
  2174. courseUserid: "",
  2175. timer: null,
  2176. checkId: "",
  2177. isDelete: 1,
  2178. addindex: 0,
  2179. selectSteps: 1,
  2180. };
  2181. },
  2182. computed: {
  2183. rightBoxHeight: function () {
  2184. return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 100;
  2185. },
  2186. offsetLetfPx: function () {
  2187. //addnum可以直接在模板语法里面用,相当于data内的值
  2188. return (
  2189. $(".cru_select")[this.unitIndex] &&
  2190. $(".cru_select")[this.unitIndex].offsetLeft
  2191. );
  2192. },
  2193. },
  2194. watch: {
  2195. unitIndex(newValue, oldValue) {
  2196. if (this.isDelete == 2) {
  2197. this.isDelete = 1;
  2198. return;
  2199. }
  2200. if (this.cid != "") {
  2201. let _unitIndex = oldValue;
  2202. if (
  2203. JSON.stringify(this.unitJson2[_unitIndex]) ==
  2204. JSON.stringify(this.unitJson[_unitIndex])
  2205. ) {
  2206. this.$refs.rightboxR.scrollTop = 0;
  2207. return;
  2208. }
  2209. let cPan = 1;
  2210. for (
  2211. var j = 0;
  2212. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  2213. j++
  2214. ) {
  2215. if (
  2216. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  2217. .length > 1
  2218. ) {
  2219. for (
  2220. var z = 0;
  2221. z <
  2222. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  2223. .length;
  2224. z++
  2225. ) {
  2226. if (
  2227. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  2228. .toolChoose[z].tool.length
  2229. ) {
  2230. this.$message.error("请把工具添加完整");
  2231. cPan = 2;
  2232. break;
  2233. }
  2234. }
  2235. }
  2236. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  2237. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  2238. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  2239. (ele) => {
  2240. return ele.value != "";
  2241. }
  2242. );
  2243. }
  2244. }
  2245. if (cPan == 2) {
  2246. this.unitIndex = oldValue;
  2247. return;
  2248. }
  2249. for (var i = 0; i < this.unitJson.length; i++) {
  2250. if (this.addindex != i) {
  2251. delete this.unitJson[i].isUpdate;
  2252. }
  2253. }
  2254. this.$refs.rightboxR.scrollTop = 0;
  2255. this.addindex = -1;
  2256. let params = [
  2257. {
  2258. cid: this.cid,
  2259. chapters: JSON.stringify(this.unitJson),
  2260. uid: this.userid,
  2261. unitIndex: _unitIndex,
  2262. },
  2263. ];
  2264. this.ajax
  2265. .post(this.$store.state.api + "updateWorkNew4", params)
  2266. .then((res) => {
  2267. // this.$message({
  2268. // message: "修改成功",
  2269. // type: "success",
  2270. // });
  2271. // this.courseId = this.cid;
  2272. })
  2273. .catch((err) => {
  2274. this.$message.error("网络不佳");
  2275. console.error(err);
  2276. });
  2277. }
  2278. },
  2279. },
  2280. methods: {
  2281. handleCheckAllChange(val) {
  2282. this.checkedCities = val ? cityOptions : [];
  2283. this.isIndeterminate = false;
  2284. },
  2285. handleCheckedCitiesChange(value) {
  2286. let checkedCount = value.length;
  2287. this.checkAll = checkedCount === this.cities.length;
  2288. this.isIndeterminate =
  2289. checkedCount > 0 && checkedCount < this.cities.length;
  2290. },
  2291. addHw(e) {
  2292. var el = e.currentTarget;
  2293. el.getElementsByTagName("input")[0].click();
  2294. },
  2295. change(val) {
  2296. console.log(val);
  2297. },
  2298. change2(val) {
  2299. console.log(val);
  2300. this.$forceUpdate();
  2301. },
  2302. handleClose(done) {
  2303. done();
  2304. },
  2305. imgChange1(file, fileList, type, itemTaskIndex) {
  2306. if (type == 1) {
  2307. var _tmp = this.cover;
  2308. } else if (
  2309. type == 2 ||
  2310. type == 3 ||
  2311. type == 6 ||
  2312. type == 7 ||
  2313. type == 8
  2314. ) {
  2315. var _tmp =
  2316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  2317. .chapterData;
  2318. } else if (type == 4) {
  2319. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  2320. } else {
  2321. var _tmp =
  2322. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  2323. .homeworkList;
  2324. }
  2325. this.noneBtnImg = _tmp.length >= 1;
  2326. },
  2327. goTo(path) {
  2328. this.$router.push(path);
  2329. },
  2330. guid() {
  2331. var _num,
  2332. i,
  2333. _guid = "";
  2334. for (i = 0; i < 32; i++) {
  2335. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  2336. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  2337. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  2338. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  2339. _guid += "-";
  2340. }
  2341. }
  2342. return _guid;
  2343. },
  2344. lastSteps() {
  2345. if (this.steps == 4) {
  2346. this.goTo(
  2347. "/course?userid=" +
  2348. this.userid +
  2349. "&oid=" +
  2350. this.oid +
  2351. "&org=" +
  2352. this.org
  2353. );
  2354. } else {
  2355. if (this.cidType == 0) {
  2356. this.steps--;
  2357. if (this.steps == 1) {
  2358. setTimeout(() => {
  2359. this.checkEva(this.checkId);
  2360. }, 0);
  2361. }
  2362. } else {
  2363. if (this.steps == 3) {
  2364. this.steps = 1;
  2365. setTimeout(() => {
  2366. this.checkEva(this.checkId);
  2367. }, 0);
  2368. }
  2369. }
  2370. }
  2371. },
  2372. navSteps(s) {
  2373. if (this.courseName == "") {
  2374. this.$message.error("请将信息填写完整");
  2375. return;
  2376. }
  2377. if (this.cidType == 0) {
  2378. if (this.steps == 1) {
  2379. if (this.cid == "" || this.cid == undefined) {
  2380. this.addWork();
  2381. } else {
  2382. if (this.userid != this.courseUserid) {
  2383. // this.updateWork2();
  2384. } else {
  2385. this.updateWork();
  2386. }
  2387. }
  2388. }
  2389. if (s == 1) {
  2390. this.steps = 1;
  2391. setTimeout(() => {
  2392. this.checkEva(this.checkId);
  2393. }, 0);
  2394. }
  2395. if (s == 2) {
  2396. this.steps = 2;
  2397. }
  2398. if (s == 3) {
  2399. this.cTemplate = this.templateC.content;
  2400. this.dialogVisible2 = false;
  2401. this.steps = 3;
  2402. setTimeout(() => {
  2403. this.checkEva(this.checkId);
  2404. }, 1000);
  2405. }
  2406. } else {
  2407. if (this.steps == 1) {
  2408. if (this.cid == "" || this.cid == undefined) {
  2409. this.addWork();
  2410. } else {
  2411. if (this.userid != this.courseUserid) {
  2412. // this.updateWork2();
  2413. } else {
  2414. this.updateWork();
  2415. }
  2416. }
  2417. }
  2418. if (s == 1) {
  2419. this.steps = 1;
  2420. setTimeout(() => {
  2421. this.checkEva(this.checkId);
  2422. }, 0);
  2423. }
  2424. if (s == 3) {
  2425. this.cTemplate = this.templateC.content;
  2426. this.dialogVisible2 = false;
  2427. this.steps = 3;
  2428. setTimeout(() => {
  2429. this.checkEva(this.checkId);
  2430. }, 1000);
  2431. }
  2432. }
  2433. this.$refs.stepBox.scrollTop = 0;
  2434. },
  2435. nextSteps() {
  2436. if (this.cidType == 1) {
  2437. if (this.steps == 1) {
  2438. if (this.courseName != "") {
  2439. this.steps = 3;
  2440. setTimeout(() => {
  2441. this.checkEva(this.checkId);
  2442. }, 1000);
  2443. if (this.cid == "" || this.cid == undefined) {
  2444. this.addWork();
  2445. } else {
  2446. if (this.userid != this.courseUserid) {
  2447. // this.updateWork2();
  2448. } else {
  2449. this.updateWork();
  2450. }
  2451. }
  2452. } else {
  2453. this.$message.error("请将信息填写完整");
  2454. return;
  2455. }
  2456. } else if (this.steps == 3) {
  2457. if (this.cid == "" || this.cid == undefined) {
  2458. if (this.courseName == "") {
  2459. this.$message.error("请将信息填写完整");
  2460. return;
  2461. } else {
  2462. this.addWork();
  2463. this.steps++;
  2464. }
  2465. } else {
  2466. if (this.courseName == "") {
  2467. this.$message.error("请将信息填写完整");
  2468. return;
  2469. } else {
  2470. if (this.userid != this.courseUserid) {
  2471. this.updateWork2();
  2472. } else {
  2473. this.updateWork();
  2474. }
  2475. this.steps++;
  2476. }
  2477. }
  2478. }
  2479. } else {
  2480. if (this.steps == 1) {
  2481. if (this.courseName != "") {
  2482. if (this.cid == "" || this.cid == undefined) {
  2483. this.addWork();
  2484. } else {
  2485. if (this.userid != this.courseUserid) {
  2486. // this.updateWork2();
  2487. } else {
  2488. this.updateWork();
  2489. }
  2490. }
  2491. this.steps++;
  2492. } else {
  2493. this.$message.error("请将信息填写完整");
  2494. return;
  2495. }
  2496. } else if (this.steps == 2) {
  2497. if (this.templateC.id != "" || this.templateC.id != undefined) {
  2498. this.cTemplate = this.templateC.content;
  2499. }
  2500. this.dialogVisible2 = false;
  2501. this.steps++;
  2502. setTimeout(() => {
  2503. this.checkEva(this.checkId);
  2504. }, 1000);
  2505. } else if (this.steps == 3) {
  2506. if (this.cid == "" || this.cid == undefined) {
  2507. if (this.courseName == "") {
  2508. this.$message.error("请将信息填写完整");
  2509. return;
  2510. } else {
  2511. this.addWork();
  2512. this.steps++;
  2513. }
  2514. } else {
  2515. if (this.courseName == "") {
  2516. this.$message.error("请将信息填写完整");
  2517. return;
  2518. } else {
  2519. if (this.userid != this.courseUserid) {
  2520. this.updateWork2();
  2521. } else {
  2522. this.updateWork();
  2523. }
  2524. this.steps++;
  2525. }
  2526. }
  2527. }
  2528. }
  2529. this.$refs.stepBox.scrollTop = 0;
  2530. },
  2531. unitSet(i) {
  2532. this.unitIndex = i;
  2533. // this.$refs.rightboxR.scrollTop = 0;
  2534. },
  2535. time() {
  2536. if (!this.now) {
  2537. this.now = new Date().getTime();
  2538. return true;
  2539. } else {
  2540. let time = new Date().getTime();
  2541. if (time - this.now > 3000) {
  2542. this.now = time;
  2543. return true;
  2544. } else {
  2545. return false;
  2546. }
  2547. }
  2548. },
  2549. deleteUnit(i) {
  2550. var _this = this;
  2551. if (_this.time()) {
  2552. _this
  2553. .$confirm("确定删除此单元吗?", "提示", {
  2554. confirmButtonText: "确定",
  2555. cancelButtonText: "取消",
  2556. type: "warning",
  2557. })
  2558. .then(() => {
  2559. _this.isDelete = 2;
  2560. // _this.unitIndex = _this.unitIndex - 1;
  2561. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  2562. // _this.$message.success("删除成功");
  2563. })
  2564. .catch(() => {
  2565. return;
  2566. });
  2567. }
  2568. },
  2569. deleteWork(chapid) {
  2570. let params = [
  2571. {
  2572. cid: this.cid,
  2573. chapters: JSON.stringify(this.unitJson),
  2574. uid: this.userid,
  2575. chapid: chapid,
  2576. },
  2577. ];
  2578. this.ajax
  2579. .post(this.$store.state.api + "deleteWork", params)
  2580. .then((res) => {
  2581. this.$message({
  2582. message: "删除成功",
  2583. type: "success",
  2584. });
  2585. this.unitJson.splice(this.unitIndex, 1);
  2586. this.unitIndex = this.unitIndex - 1;
  2587. })
  2588. .catch((err) => {
  2589. this.$message.error("网络不佳");
  2590. console.error(err);
  2591. });
  2592. },
  2593. deleteTool(itemTaskIndex, i) {
  2594. var _this = this;
  2595. if (_this.time()) {
  2596. _this
  2597. .$confirm("确定删除此工具吗?", "提示", {
  2598. confirmButtonText: "确定",
  2599. cancelButtonText: "取消",
  2600. type: "warning",
  2601. })
  2602. .then(() => {
  2603. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  2604. itemTaskIndex
  2605. ].toolChoose.splice(i, 1);
  2606. _this.$message.success("删除成功");
  2607. })
  2608. .catch(() => {
  2609. return;
  2610. });
  2611. }
  2612. },
  2613. deleteSentence(i) {
  2614. var _this = this;
  2615. if (_this.time()) {
  2616. _this
  2617. .$confirm("确定删除此题目吗?", "提示", {
  2618. confirmButtonText: "确定",
  2619. cancelButtonText: "取消",
  2620. type: "warning",
  2621. })
  2622. .then(() => {
  2623. _this.sentenceList.splice(i, 1);
  2624. _this.$message.success("删除成功");
  2625. })
  2626. .catch(() => {
  2627. return;
  2628. });
  2629. }
  2630. },
  2631. deleteS(s, i, j) {
  2632. this.sentenceList[i].addSentence.splice(j, 1);
  2633. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  2634. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  2635. this.sentenceList[i].rightAnswer.splice(a, 1);
  2636. }
  2637. },
  2638. openT() {
  2639. window.parent.postMessage({ tools: "25" }, "*");
  2640. },
  2641. deleteTask(i) {
  2642. var _this = this;
  2643. if (_this.time()) {
  2644. _this
  2645. .$confirm("确定删除此任务吗?", "提示", {
  2646. confirmButtonText: "确定",
  2647. cancelButtonText: "取消",
  2648. type: "warning",
  2649. })
  2650. .then(() => {
  2651. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  2652. i,
  2653. 1
  2654. );
  2655. _this.$message.success("删除成功");
  2656. })
  2657. .catch(() => {
  2658. return;
  2659. });
  2660. }
  2661. },
  2662. handlePictureCardPreview(file) {
  2663. this.dialogImageUrl = file.url;
  2664. },
  2665. clean(i, c) {
  2666. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  2667. },
  2668. handle_remove1(file, fileList, type) {
  2669. var _tmp = this.cover;
  2670. for (var i = 0, len = _tmp.length; i < len; i++) {
  2671. if (_tmp[i].uid == file.uid) {
  2672. _tmp.splice(i, 1);
  2673. break;
  2674. }
  2675. this.cover = _tmp;
  2676. }
  2677. this.noneBtnImg = _tmp.length >= 1;
  2678. this.isSysPic = false;
  2679. },
  2680. addImg(e) {
  2681. var el = e.currentTarget;
  2682. el.getElementsByTagName("input")[0].click();
  2683. },
  2684. addChaptersTools(i) {
  2685. this.chapTools = [
  2686. {
  2687. tools: [],
  2688. toolDetail: "",
  2689. },
  2690. ];
  2691. this.chapCount = i;
  2692. this.dialogVisible4 = true;
  2693. },
  2694. isNoFinsh() {
  2695. this.$message.warning("功能正在开发中");
  2696. },
  2697. addAttText(i) {
  2698. this.AttText = {
  2699. title: "",
  2700. text: "",
  2701. };
  2702. this.taskCount = i;
  2703. this.AttTextType = 0;
  2704. this.$forceUpdate();
  2705. this.dialogVisible6 = true;
  2706. },
  2707. openLine(i) {
  2708. this.line = "";
  2709. this.lineCount = i;
  2710. this.lineType = 0;
  2711. this.$forceUpdate();
  2712. this.dialogVisible7 = true;
  2713. },
  2714. beforeUpload1(event, type) {
  2715. const loading = this.openLoading();
  2716. var file = event.target.files[0];
  2717. var credentials = {
  2718. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2719. secretAccessKey: "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",
  2720. }; //秘钥形式的登录上传
  2721. window.AWS.config.update(credentials);
  2722. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2723. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2724. var _this = this;
  2725. if (file) {
  2726. var params = {
  2727. Key:
  2728. file.name.split(".")[0] +
  2729. new Date().getTime() +
  2730. "." +
  2731. file.name.split(".")[file.name.split(".").length - 1],
  2732. ContentType: file.type,
  2733. Body: file,
  2734. "Access-Control-Allow-Credentials": "*",
  2735. ACL: "public-read",
  2736. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2737. var options = {
  2738. partSize: 2048 * 1024 * 1024,
  2739. queueSize: 2,
  2740. leavePartsOnError: true,
  2741. };
  2742. bucket
  2743. .upload(params, options)
  2744. .on("httpUploadProgress", function (evt) {
  2745. //这里可以写进度条
  2746. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2747. })
  2748. .send(function (err, data) {
  2749. loading.close();
  2750. if (err) {
  2751. var a = _this.$refs.upload1.uploadFiles;
  2752. a.splice(a.length - 1, a.length);
  2753. _this.$message.error("上传失败");
  2754. } else {
  2755. _this.cover.push({
  2756. name: file.name,
  2757. url: data.Location,
  2758. uid: file.uid,
  2759. });
  2760. _this.imgChange1(null, null, 1, null);
  2761. _this.choosePicVisible = false;
  2762. console.log(data.Location);
  2763. }
  2764. });
  2765. }
  2766. },
  2767. beforeUploadSelect(event, type) {
  2768. const loading = this.openLoading();
  2769. var file = event.target.files[0];
  2770. var credentials = {
  2771. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2772. secretAccessKey: "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",
  2773. }; //秘钥形式的登录上传
  2774. window.AWS.config.update(credentials);
  2775. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2776. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2777. var _this = this;
  2778. if (file) {
  2779. var params = {
  2780. Key:
  2781. file.name.split(".")[0] +
  2782. new Date().getTime() +
  2783. "." +
  2784. file.name.split(".")[file.name.split(".").length - 1],
  2785. ContentType: file.type,
  2786. Body: file,
  2787. "Access-Control-Allow-Credentials": "*",
  2788. ACL: "public-read",
  2789. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2790. var options = {
  2791. partSize: 2048 * 1024 * 1024,
  2792. queueSize: 2,
  2793. leavePartsOnError: true,
  2794. };
  2795. bucket
  2796. .upload(params, options)
  2797. .on("httpUploadProgress", function (evt) {
  2798. //这里可以写进度条
  2799. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2800. })
  2801. .send(function (err, data) {
  2802. loading.close();
  2803. if (err) {
  2804. _this.$message.error("上传失败");
  2805. } else {
  2806. _this.selectJson.url = data.Location;
  2807. console.log(data.Location);
  2808. }
  2809. });
  2810. }
  2811. },
  2812. chooseSysPic(p) {
  2813. this.cover.push({
  2814. name: "系统图片.png",
  2815. url: p,
  2816. });
  2817. this.imgChange1(null, null, 1, null);
  2818. this.isSysPic = true;
  2819. this.sysPicVisible = false;
  2820. },
  2821. beforeUpload(data) {
  2822. this.$refs.upload1.uploadFiles;
  2823. this.uploadLoading1 = true;
  2824. var file = data.file;
  2825. var credentials = {
  2826. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2827. secretAccessKey: "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",
  2828. }; //秘钥形式的登录上传
  2829. window.AWS.config.update(credentials);
  2830. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2831. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2832. var _this = this;
  2833. if (file) {
  2834. var params = {
  2835. Key:
  2836. file.name.split(".")[0] +
  2837. new Date().getTime() +
  2838. "." +
  2839. file.name.split(".")[file.name.split(".").length - 1],
  2840. ContentType: file.type,
  2841. Body: file,
  2842. "Access-Control-Allow-Credentials": "*",
  2843. ACL: "public-read",
  2844. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2845. var options = {
  2846. partSize: 2048 * 1024 * 1024,
  2847. queueSize: 2,
  2848. leavePartsOnError: true,
  2849. };
  2850. bucket
  2851. .upload(params, options)
  2852. .on("httpUploadProgress", function (evt) {
  2853. //这里可以写进度条
  2854. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2855. })
  2856. .send(function (err, data) {
  2857. _this.uploadLoading1 = false;
  2858. if (err) {
  2859. var a = _this.$refs.upload1.uploadFiles;
  2860. a.splice(a.length - 1, a.length);
  2861. _this.$message.error("上传失败");
  2862. } else {
  2863. //上传成功处理
  2864. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  2865. name: file.name,
  2866. url: data.Location,
  2867. uid: file.uid,
  2868. });
  2869. _this.imgChange();
  2870. console.log(data.Location);
  2871. }
  2872. });
  2873. }
  2874. },
  2875. onExceed() {
  2876. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  2877. },
  2878. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  2879. // const loading = this.openLoading();
  2880. var file = event.target.files[0];
  2881. this.inputShow = false;
  2882. var credentials = {
  2883. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2884. secretAccessKey: "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",
  2885. }; //秘钥形式的登录上传
  2886. window.AWS.config.update(credentials);
  2887. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2888. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2889. var _this = this;
  2890. if (type == 3) {
  2891. var b = [
  2892. "DOC",
  2893. "DOCX",
  2894. "DOCM",
  2895. "DOTM",
  2896. "DOTX",
  2897. "PPTX",
  2898. "PPSX",
  2899. "PPT",
  2900. "PPS",
  2901. "PPTM",
  2902. "POTM",
  2903. "PPAM",
  2904. "POTX",
  2905. "PPSM",
  2906. ];
  2907. if (
  2908. b.indexOf(
  2909. file.name
  2910. .split(".")
  2911. [file.name.split(".").length - 1].toLocaleUpperCase()
  2912. ) != -1
  2913. ) {
  2914. if (file.size / 1024 / 1024 > 10) {
  2915. this.$message.error("上传文件大于10兆,请重新选择文件!");
  2916. this.inputShow = true;
  2917. var a = _this.$refs.upload1.uploadFiles;
  2918. a.splice(a.length - 1, a.length);
  2919. // loading.close();
  2920. return;
  2921. }
  2922. } else if (
  2923. file.name
  2924. .split(".")
  2925. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  2926. ) {
  2927. if (file.size / 1024 / 1024 > 5) {
  2928. this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  2929. this.inputShow = true;
  2930. var a = _this.$refs.upload1.uploadFiles;
  2931. a.splice(a.length - 1, a.length);
  2932. // loading.close();
  2933. return;
  2934. }
  2935. }
  2936. }
  2937. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  2938. itemTaskIndex
  2939. ].progress = 0;
  2940. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  2941. itemTaskIndex
  2942. ].proVisible = true;
  2943. if (file) {
  2944. var params = {
  2945. Key:
  2946. file.name.split(".")[0] +
  2947. new Date().getTime() +
  2948. "." +
  2949. file.name.split(".")[file.name.split(".").length - 1],
  2950. ContentType: file.type,
  2951. Body: file,
  2952. "Access-Control-Allow-Credentials": "*",
  2953. ACL: "public-read",
  2954. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2955. var options = {
  2956. partSize: 2048 * 1024 * 1024,
  2957. queueSize: 2,
  2958. leavePartsOnError: true,
  2959. };
  2960. bucket
  2961. .upload(params, options)
  2962. .on("httpUploadProgress", function (evt) {
  2963. //这里可以写进度条
  2964. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2965. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  2966. itemTaskIndex
  2967. ].progress = parseInt((evt.loaded * 80) / evt.total);
  2968. })
  2969. .send(function (err, data) {
  2970. // loading.close();
  2971. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  2972. itemTaskIndex
  2973. ].progress = 100;
  2974. setTimeout(() => {
  2975. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  2976. itemTaskIndex
  2977. ].proVisible = false;
  2978. _this.$forceUpdate();
  2979. }, 1000);
  2980. _this.inputShow = true;
  2981. if (err) {
  2982. var a = _this.$refs.upload1.uploadFiles;
  2983. a.splice(a.length - 1, a.length);
  2984. _this.$message.error("上传失败");
  2985. } else {
  2986. if (type == 2 || type == 3) {
  2987. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  2988. itemTaskIndex
  2989. ].chapterData.push({
  2990. name: file.name,
  2991. url: data.Location,
  2992. uid: file.uid,
  2993. type: type,
  2994. });
  2995. _this.imgChange1(null, null, type, itemTaskIndex);
  2996. } else if (type == 4) {
  2997. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  2998. itemTaskIndex
  2999. ].fileList1.push({
  3000. name: file.name,
  3001. url: data.Location,
  3002. uid: file.uid,
  3003. });
  3004. _this.imgChange1(null, null, type, itemTaskIndex);
  3005. } else if (type == 5) {
  3006. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3007. itemTaskIndex
  3008. ].homeworkList.push({
  3009. name: file.name,
  3010. url: data.Location,
  3011. uid: file.uid,
  3012. });
  3013. _this.imgChange1(null, null, type, itemTaskIndex);
  3014. }
  3015. console.log(data.Location);
  3016. }
  3017. });
  3018. }
  3019. },
  3020. addunit() {
  3021. this.unitJson.push({
  3022. dyName: "", //单元标题
  3023. isUpdate: 1,
  3024. chapterInfo: [
  3025. {
  3026. isread: false,
  3027. chapterid: this.guid(),
  3028. title: "",
  3029. courseName: "",
  3030. taskJson: [
  3031. {
  3032. task: "",
  3033. taskDetail: "",
  3034. chapterData: [],
  3035. toolText: "",
  3036. toolChoose: [
  3037. {
  3038. tool: [],
  3039. toolDetail: "",
  3040. toolType: 0,
  3041. askCount: 1,
  3042. askTitle: "",
  3043. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3044. },
  3045. ],
  3046. isShowTools: false,
  3047. askCount: 1,
  3048. isFold: 0,
  3049. askTitle: "",
  3050. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3051. checkJson: [{ checkCount: [], checkPerent: [] }],
  3052. homeworkList: [],
  3053. },
  3054. ],
  3055. itemCount: 1,
  3056. fileList1: [],
  3057. video: [],
  3058. testData: [],
  3059. pData: [],
  3060. templateArray: [],
  3061. },
  3062. ],
  3063. });
  3064. this.addindex = this.unitJson.length - 1;
  3065. setTimeout(() => {
  3066. this.unitIndex = this.unitJson.length - 1;
  3067. this.unitSet(this.unitIndex);
  3068. }, 0);
  3069. },
  3070. addToolFun(itemTaskIndex) {
  3071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3072. itemTaskIndex
  3073. ].toolChoose.push({
  3074. tool: [],
  3075. toolDetail: "",
  3076. toolType: 0,
  3077. askCount: 1,
  3078. askTitle: "",
  3079. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3080. });
  3081. },
  3082. addTaskBorder() {
  3083. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  3084. task: "",
  3085. taskDetail: "",
  3086. chapterData: [],
  3087. toolText: "",
  3088. toolChoose: [
  3089. {
  3090. tool: [],
  3091. toolDetail: "",
  3092. toolType: 0,
  3093. askCount: 1,
  3094. askTitle: "",
  3095. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3096. },
  3097. ],
  3098. isShowTools: false,
  3099. askCount: 1,
  3100. isFold: 0,
  3101. askTitle: "",
  3102. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3103. checkJson: [{ checkCount: [], checkPerent: [] }],
  3104. homeworkList: [],
  3105. });
  3106. },
  3107. add(e, i) {
  3108. var el = e.currentTarget;
  3109. el.getElementsByTagName("input")[0].click();
  3110. },
  3111. fold(i, e, type) {
  3112. var a = e.currentTarget.parentElement.parentElement;
  3113. var b = e.currentTarget.parentElement;
  3114. if (type == 1) {
  3115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  3116. a.className += " smallTaskBorder";
  3117. b.className += " funBlockTop";
  3118. } else {
  3119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  3120. a.className = "taskBorder";
  3121. b.className = "funBlock";
  3122. }
  3123. console.log(e);
  3124. },
  3125. deleteHomeworkBox(unitIndex, index, i) {
  3126. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  3127. this.taskCount
  3128. ].homeworkList.splice(i, 1);
  3129. },
  3130. getStudent() {
  3131. let params = {
  3132. oid: this.oid,
  3133. cu: "",
  3134. cn: this.searchPeople,
  3135. };
  3136. this.ajax
  3137. .get(this.$store.state.api + "selectStudentAdd", params)
  3138. .then((res) => {
  3139. this.studentJuri = res.data[0];
  3140. })
  3141. .catch((err) => {
  3142. this.isLoading = false;
  3143. console.error(err);
  3144. });
  3145. },
  3146. getTeacher() {
  3147. let params = {
  3148. oid:
  3149. this.org && this.org != "undefined" && this.org != "null"
  3150. ? this.org
  3151. : this.oid,
  3152. cu: "",
  3153. cn: this.searchTN,
  3154. };
  3155. this.ajax
  3156. .get(
  3157. this.$store.state.api +
  3158. (this.org && this.org != "undefined" && this.org != "null"
  3159. ? "selectTeacherAddOrg"
  3160. : "selectTeacherAdd"),
  3161. params
  3162. )
  3163. .then((res) => {
  3164. let teacherJuri = res.data[0];
  3165. for (var i = 0; i < teacherJuri.length; i++) {
  3166. if (teacherJuri[i].userid == this.userid) {
  3167. teacherJuri.splice(i, 1);
  3168. break;
  3169. }
  3170. }
  3171. this.teacherJuri = teacherJuri;
  3172. })
  3173. .catch((err) => {
  3174. console.error(err);
  3175. });
  3176. },
  3177. searchStudent() {
  3178. this.getStudent();
  3179. },
  3180. //获取班级列表
  3181. getClass() {
  3182. let params = {
  3183. oid: this.oid,
  3184. };
  3185. this.ajax
  3186. .get(this.$store.state.api + "selectClassBySchool", params)
  3187. .then((res) => {
  3188. this.grade = res.data[0];
  3189. })
  3190. .catch((err) => {
  3191. this.isLoading = false;
  3192. console.error(err);
  3193. });
  3194. },
  3195. getChapterData(e, i, j, ic, type) {
  3196. e.stopPropagation();
  3197. this.updataC = true;
  3198. this.icc = ic;
  3199. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  3200. console.log("还不能下载图片喔");
  3201. }
  3202. },
  3203. deleteChapterData(e, i, j, ic, taskI) {
  3204. e.stopPropagation();
  3205. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  3206. },
  3207. updataVideoT(e, i, j, ic) {
  3208. e.stopPropagation();
  3209. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  3210. ic
  3211. ].name = e.target.value;
  3212. },
  3213. upCd(e, i, j, ic) {
  3214. e.stopPropagation();
  3215. if (ic == 0) {
  3216. return;
  3217. }
  3218. var a =
  3219. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  3220. ic - 1
  3221. ];
  3222. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  3223. ic - 1
  3224. ] =
  3225. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  3226. ic
  3227. ];
  3228. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  3229. a;
  3230. },
  3231. downCd(e, i, j, ic) {
  3232. e.stopPropagation();
  3233. if (ic == this.unitJson[i].chapterInfo[j].chapterData.length - 1) {
  3234. return;
  3235. }
  3236. var a =
  3237. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  3238. ic + 1
  3239. ];
  3240. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  3241. ic + 1
  3242. ] =
  3243. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  3244. ic
  3245. ];
  3246. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  3247. a;
  3248. },
  3249. addWork() {
  3250. let cPan = 1;
  3251. for (var i = 0; i < this.unitJson.length; i++) {
  3252. for (
  3253. var j = 0;
  3254. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3255. j++
  3256. ) {
  3257. if (
  3258. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  3259. ) {
  3260. for (
  3261. var z = 0;
  3262. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  3263. z++
  3264. ) {
  3265. if (
  3266. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  3267. .length
  3268. ) {
  3269. this.$message.error("请把工具添加完整");
  3270. cPan = 2;
  3271. break;
  3272. }
  3273. }
  3274. }
  3275. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3276. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  3277. i
  3278. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  3279. return ele.value != "";
  3280. });
  3281. }
  3282. }
  3283. }
  3284. if (cPan == 2) {
  3285. this.steps--;
  3286. return;
  3287. }
  3288. for (var i = 0; i < this.unitJson.length; i++) {
  3289. delete this.unitJson[i].isUpdate;
  3290. }
  3291. let params = [
  3292. {
  3293. uid: this.userid,
  3294. title: this.courseName.replace(/%/g, "%25"),
  3295. brief: this.courseText.replace(/%/g, "%25"),
  3296. cover:
  3297. this.cover.length > 0
  3298. ? JSON.stringify(this.cover)
  3299. : JSON.stringify([
  3300. {
  3301. name: "noBanner.jpg",
  3302. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  3303. uid: 1656409780264,
  3304. status: "success",
  3305. },
  3306. ]),
  3307. evaId: this.evalua,
  3308. astudent:
  3309. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  3310. see: this.isTeacherSee == true ? 1 : 0,
  3311. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  3312. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  3313. courseType: JSON.stringify(this.courseTypeId),
  3314. ateacher:
  3315. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  3316. },
  3317. ];
  3318. this.ajax
  3319. .post(this.$store.state.api + "addWorkNew2", params)
  3320. .then((res) => {
  3321. console.log(this.steps);
  3322. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  3323. this.$message({
  3324. message: "新增成功",
  3325. type: "success",
  3326. });
  3327. }
  3328. this.number = res.data.ordernumber;
  3329. this.courseId = res.data.courseId;
  3330. this.cid = res.data.courseId;
  3331. this.courseUserid = this.userid;
  3332. this.islogin = true;
  3333. })
  3334. .catch((err) => {
  3335. this.$message.error("网络不佳");
  3336. console.error(err);
  3337. });
  3338. },
  3339. goCourse() {
  3340. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  3341. },
  3342. updateWork2() {
  3343. let _unitIndex = this.unitIndex;
  3344. let cPan = 1;
  3345. for (
  3346. var j = 0;
  3347. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3348. j++
  3349. ) {
  3350. if (
  3351. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3352. .length > 1
  3353. ) {
  3354. for (
  3355. var z = 0;
  3356. z <
  3357. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3358. .length;
  3359. z++
  3360. ) {
  3361. if (
  3362. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  3363. z
  3364. ].tool.length
  3365. ) {
  3366. this.$message.error("请把工具添加完整");
  3367. cPan = 2;
  3368. break;
  3369. }
  3370. }
  3371. }
  3372. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3373. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3374. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3375. (ele) => {
  3376. return ele.value != "";
  3377. }
  3378. );
  3379. }
  3380. }
  3381. if (cPan == 2) {
  3382. this.steps--;
  3383. return;
  3384. }
  3385. let params = [
  3386. {
  3387. cid: this.cid,
  3388. chapters: JSON.stringify(this.unitJson),
  3389. uid: this.userid,
  3390. unitIndex: _unitIndex,
  3391. },
  3392. ];
  3393. this.ajax
  3394. .post(this.$store.state.api + "updateWorkNew4", params)
  3395. .then((res) => {
  3396. this.$message({
  3397. message: "修改成功",
  3398. type: "success",
  3399. });
  3400. this.courseId = this.cid;
  3401. })
  3402. .catch((err) => {
  3403. this.$message.error("网络不佳");
  3404. console.error(err);
  3405. });
  3406. },
  3407. updateWork() {
  3408. let cPan = 1;
  3409. for (var i = 0; i < this.unitJson.length; i++) {
  3410. for (
  3411. var j = 0;
  3412. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3413. j++
  3414. ) {
  3415. if (
  3416. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  3417. ) {
  3418. for (
  3419. var z = 0;
  3420. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  3421. z++
  3422. ) {
  3423. if (
  3424. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  3425. .length
  3426. ) {
  3427. this.$message.error("请把工具添加完整");
  3428. cPan = 2;
  3429. break;
  3430. }
  3431. }
  3432. }
  3433. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3434. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  3435. i
  3436. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  3437. return ele.value != "";
  3438. });
  3439. }
  3440. }
  3441. }
  3442. if (cPan == 2) {
  3443. this.steps--;
  3444. return;
  3445. }
  3446. for (var i = 0; i < this.unitJson.length; i++) {
  3447. delete this.unitJson[i].isUpdate;
  3448. }
  3449. let params = [
  3450. {
  3451. cid: this.cid,
  3452. title: this.courseName.replace(/%/g, "%25"),
  3453. brief: this.courseText.replace(/%/g, "%25"),
  3454. cover:
  3455. this.cover.length > 0
  3456. ? JSON.stringify(this.cover)
  3457. : JSON.stringify([
  3458. {
  3459. name: "noBanner.jpg",
  3460. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  3461. uid: 1656409780264,
  3462. status: "success",
  3463. },
  3464. ]),
  3465. evaId: this.evalua,
  3466. astudent:
  3467. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  3468. see: this.isTeacherSee == true ? 1 : 0,
  3469. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  3470. template: this.myWord != "undefined" ? this.myWord : [],
  3471. uid: this.userid,
  3472. courseType: JSON.stringify(this.courseTypeId),
  3473. ateacher:
  3474. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  3475. },
  3476. ];
  3477. this.ajax
  3478. .post(this.$store.state.api + "updateWorkNew2", params)
  3479. .then((res) => {
  3480. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  3481. if (this.cidType == 1) {
  3482. this.$message({
  3483. message: "修改成功",
  3484. type: "success",
  3485. });
  3486. } else {
  3487. this.$message({
  3488. message: "新增成功",
  3489. type: "success",
  3490. });
  3491. }
  3492. }
  3493. this.number = this.nbOrder;
  3494. this.courseId = this.cid;
  3495. })
  3496. .catch((err) => {
  3497. this.$message.error("网络不佳");
  3498. console.error(err);
  3499. });
  3500. },
  3501. guid() {
  3502. var _num,
  3503. i,
  3504. _guid = "";
  3505. for (i = 0; i < 32; i++) {
  3506. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3507. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3508. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3509. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3510. _guid += "-";
  3511. }
  3512. }
  3513. return _guid;
  3514. },
  3515. insertWord() {
  3516. this.dialogVisible1 = true;
  3517. this.updateBoolean2 = false;
  3518. this.tTitle = "";
  3519. this.tdetail = "";
  3520. },
  3521. addWord() {
  3522. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  3523. name: this.tTitle,
  3524. content: this.tdetail,
  3525. uid: this.guid(),
  3526. });
  3527. this.dialogVisible1 = false;
  3528. },
  3529. upWord() { },
  3530. selectWord(uid, i, c) {
  3531. this.dialogVisible1 = true;
  3532. this.updateBoolean2 = true;
  3533. if (
  3534. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  3535. ) {
  3536. this.tTitle =
  3537. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  3538. this.tdetail =
  3539. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  3540. }
  3541. },
  3542. isAddPP() {
  3543. if (this.checkboxList.length > 0) {
  3544. this.$message({
  3545. message: "添加成功",
  3546. type: "success",
  3547. });
  3548. this.dialogVisible3 = false;
  3549. } else {
  3550. this.$message({
  3551. message: "请添加项目成员",
  3552. type: "error",
  3553. });
  3554. }
  3555. },
  3556. isAddClass() {
  3557. this.dialogVisibleClass = false;
  3558. },
  3559. isAddPPTeacher() {
  3560. this.dialogVisibleMember = false;
  3561. },
  3562. getTemplate() {
  3563. this.ajax
  3564. .get(this.$store.state.api + "getCourseTemplateT", "")
  3565. .then((res) => {
  3566. this.templateArray = res.data[0];
  3567. })
  3568. .catch((err) => { });
  3569. },
  3570. clearChoose() {
  3571. this.clearArray.splice(this.templateC.id, 1);
  3572. this.dialogVisible2 = false;
  3573. },
  3574. clearAttText() {
  3575. this.AttText = {
  3576. title: "",
  3577. text: "",
  3578. };
  3579. this.dialogVisible6 = false;
  3580. },
  3581. clearLine() {
  3582. this.line = "";
  3583. this.dialogVisible7 = false;
  3584. },
  3585. checkTemplate(res) {
  3586. let _this = this;
  3587. _this
  3588. .$confirm("确定选择此模板吗?", "提示", {
  3589. confirmButtonText: "确定",
  3590. cancelButtonText: "取消",
  3591. type: "warning",
  3592. })
  3593. .then(() => {
  3594. _this.unitJson = JSON.parse(res.chapters);
  3595. _this.steps++;
  3596. setTimeout(() => {
  3597. this.checkEva(this.checkId);
  3598. }, 1000);
  3599. })
  3600. .catch(() => {
  3601. return;
  3602. });
  3603. },
  3604. checkTemplate1(w) {
  3605. this.steps++;
  3606. },
  3607. checkTemplate2() {
  3608. let _this = this;
  3609. _this
  3610. .$confirm("确定选择空模板吗?", "提示", {
  3611. confirmButtonText: "确定",
  3612. cancelButtonText: "取消",
  3613. type: "warning",
  3614. })
  3615. .then(() => {
  3616. _this.unitJson = [
  3617. {
  3618. dyName: "", //单元标题
  3619. chapterInfo: [
  3620. {
  3621. isread: false,
  3622. chapterid: this.guid(),
  3623. title: "",
  3624. courseName: "",
  3625. taskJson: [
  3626. {
  3627. task: "",
  3628. taskDetail: "",
  3629. chapterData: [],
  3630. toolText: "",
  3631. toolChoose: [
  3632. {
  3633. tool: [],
  3634. toolDetail: "",
  3635. toolType: 0,
  3636. askCount: 1,
  3637. askTitle: "",
  3638. askJson: [
  3639. { askstitle: "", askItem: 1, checkList: [] },
  3640. ],
  3641. },
  3642. ],
  3643. isShowTools: false,
  3644. askCount: 1,
  3645. isFold: 0,
  3646. askTitle: "",
  3647. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3648. checkJson: [{ checkCount: [], checkPerent: [] }],
  3649. homeworkList: [],
  3650. },
  3651. ],
  3652. itemCount: 1,
  3653. fileList1: [],
  3654. video: [],
  3655. testData: [],
  3656. pData: [],
  3657. templateArray: [],
  3658. },
  3659. ],
  3660. },
  3661. ];
  3662. this.steps++;
  3663. })
  3664. .catch(() => {
  3665. return;
  3666. });
  3667. },
  3668. wordNext() {
  3669. this.dialogVisible2 = false;
  3670. },
  3671. isAddOrUpdateAttText() {
  3672. if (this.AttTextType == 0) {
  3673. this.addAttTextMessage();
  3674. } else {
  3675. this.updateAttText();
  3676. }
  3677. },
  3678. isAddOrUpdateLine() {
  3679. if (!this.lineTitle) {
  3680. this.$message.error("请填写链接标题")
  3681. return;
  3682. }
  3683. if (this.lineType == 0) {
  3684. this.addLine();
  3685. } else {
  3686. this.updateLine();
  3687. }
  3688. },
  3689. addAttTextMessage() {
  3690. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3691. this.taskCount
  3692. ].chapterData.push({
  3693. name: this.AttText.title,
  3694. url: this.AttText.text,
  3695. type: 6,
  3696. });
  3697. this.imgChange1(null, null, 6, this.taskCount);
  3698. this.dialogVisible6 = false;
  3699. },
  3700. selectAttText(itemTaskIndex, i) {
  3701. this.AttText.title =
  3702. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3703. itemTaskIndex
  3704. ].chapterData[i].name;
  3705. this.AttText.text =
  3706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3707. itemTaskIndex
  3708. ].chapterData[i].url;
  3709. this.taskCount = itemTaskIndex;
  3710. this.AttTextIndex = i;
  3711. this.AttTextType = 1;
  3712. this.dialogVisible6 = true;
  3713. },
  3714. updateAttText() {
  3715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3716. this.taskCount
  3717. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  3718. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3719. this.taskCount
  3720. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  3721. this.dialogVisible6 = false;
  3722. },
  3723. addLine() {
  3724. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3725. this.lineCount
  3726. ].chapterData.push({
  3727. name: "链接",
  3728. title: this.lineTitle,
  3729. url: this.line,
  3730. type: 8,
  3731. });
  3732. this.imgChange1(null, null, 8, this.lineCount);
  3733. this.dialogVisible7 = false;
  3734. },
  3735. selectLine(itemTaskIndex, i) {
  3736. this.line =
  3737. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3738. itemTaskIndex
  3739. ].chapterData[i].url;
  3740. this.lineTitle =
  3741. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3742. itemTaskIndex
  3743. ].chapterData[i].title ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3744. itemTaskIndex
  3745. ].chapterData[i].title : '';
  3746. this.taskCount = itemTaskIndex;
  3747. this.lineCount = i;
  3748. this.lineType = 1;
  3749. this.dialogVisible7 = true;
  3750. },
  3751. updateLine() {
  3752. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3753. this.taskCount
  3754. ].chapterData[this.lineCount].url = this.line;
  3755. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3756. this.taskCount
  3757. ].chapterData[this.lineCount].title = this.lineTitle;
  3758. this.dialogVisible7 = false;
  3759. },
  3760. addPP() {
  3761. this.dialogVisible3 = true;
  3762. },
  3763. goTo(path) {
  3764. this.$router.push(path);
  3765. },
  3766. openTools(itemTaskIndex, i, toolIndex) {
  3767. this.toolIndex = toolIndex;
  3768. this.taskCount = itemTaskIndex;
  3769. if (i == 4) {
  3770. if (toolIndex == null) {
  3771. var a =
  3772. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3773. .chapterData;
  3774. for (var i = 0; i < a.length; i++) {
  3775. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  3776. this.askJson =
  3777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3778. itemTaskIndex
  3779. ].chapterData[i].askJson;
  3780. }
  3781. }
  3782. } else {
  3783. this.askJson = JSON.parse(
  3784. JSON.stringify(
  3785. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3786. itemTaskIndex
  3787. ].toolChoose[toolIndex]
  3788. )
  3789. );
  3790. }
  3791. this.dialogVisible5 = true;
  3792. } else if (i == 45) {
  3793. if (
  3794. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3795. .toolChoose[toolIndex].testJson
  3796. ) {
  3797. this.testJson = JSON.parse(
  3798. JSON.stringify(
  3799. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3800. itemTaskIndex
  3801. ].toolChoose[toolIndex].testJson
  3802. )
  3803. );
  3804. } else {
  3805. var testJson = {
  3806. testCount: 1,
  3807. testTitle: "",
  3808. testJson: [
  3809. {
  3810. teststitle: "",
  3811. testItem: 1,
  3812. checkList: [],
  3813. answer: [],
  3814. type: "1",
  3815. },
  3816. ],
  3817. };
  3818. this.testJson = testJson;
  3819. }
  3820. this.dialogVisibleChoice = true;
  3821. } else if (i == 47) {
  3822. if (
  3823. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3824. .toolChoose[toolIndex].sentenceList
  3825. ) {
  3826. this.sentenceList = JSON.parse(
  3827. JSON.stringify(
  3828. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3829. itemTaskIndex
  3830. ].toolChoose[toolIndex].sentenceList
  3831. )
  3832. );
  3833. } else {
  3834. var sentenceList = [
  3835. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  3836. ];
  3837. this.sentenceList = sentenceList;
  3838. }
  3839. this.dialogVisibleSentence = true;
  3840. }else if (i == 48) {
  3841. if (
  3842. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3843. .toolChoose[toolIndex].tableJson
  3844. ) {
  3845. this.tableJson = JSON.parse(
  3846. JSON.stringify(
  3847. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3848. itemTaskIndex
  3849. ].toolChoose[toolIndex].tableJson
  3850. )
  3851. );
  3852. } else {
  3853. var tableJson = {text:""};
  3854. this.tableJson = tableJson;
  3855. }
  3856. this.dialogVisibleTable = true;
  3857. } else if (i == 15) {
  3858. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3859. itemTaskIndex
  3860. ].toolChoose[toolIndex].answerQ
  3861. ? JSON.parse(
  3862. JSON.stringify(
  3863. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3864. itemTaskIndex
  3865. ].toolChoose[toolIndex].answerQ
  3866. )
  3867. )
  3868. : "";
  3869. this.dialogVisible8 = true;
  3870. } else if (i == 40) {
  3871. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3872. itemTaskIndex
  3873. ].toolChoose[toolIndex].rateJson
  3874. ? JSON.parse(
  3875. JSON.stringify(
  3876. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3877. itemTaskIndex
  3878. ].toolChoose[toolIndex].rateJson
  3879. )
  3880. )
  3881. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  3882. this.selectSteps = 1;
  3883. this.dialogVisibleRate = true;
  3884. } else if (i == 42) {
  3885. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3886. itemTaskIndex
  3887. ].toolChoose[toolIndex].answerQ
  3888. ? JSON.parse(
  3889. JSON.stringify(
  3890. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3891. itemTaskIndex
  3892. ].toolChoose[toolIndex].answerQ
  3893. )
  3894. )
  3895. : "";
  3896. this.dialogVisibleMp3 = true;
  3897. } else if (i == 41) {
  3898. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3899. itemTaskIndex
  3900. ].toolChoose[toolIndex].selectJson
  3901. ? JSON.parse(
  3902. JSON.stringify(
  3903. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3904. itemTaskIndex
  3905. ].toolChoose[toolIndex].selectJson
  3906. )
  3907. )
  3908. : { url: "", select: [], answer: [] };
  3909. this.selectSteps = 1;
  3910. this.dialogVisibleSelect = true;
  3911. }
  3912. },
  3913. chapAddTools(i) {
  3914. if (this.chapTools[0].tools.length == 0) {
  3915. this.chapTools[0].tools.push(i);
  3916. } else {
  3917. if (this.chapTools[0].tools.indexOf(i) != -1) {
  3918. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  3919. } else {
  3920. this.chapTools[0].tools.push(i);
  3921. }
  3922. }
  3923. this.$forceUpdate();
  3924. },
  3925. addChaptersDataTools() {
  3926. if (this.chapTools[0].tools.indexOf(4) != -1) {
  3927. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3928. this.chapCount
  3929. ].chapterData.push({
  3930. name: this.chapTools[0].toolDetail,
  3931. url: this.chapTools[0].tools,
  3932. type: 7,
  3933. askJson: this.askJson,
  3934. });
  3935. } else {
  3936. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3937. this.chapCount
  3938. ].chapterData.push({
  3939. name: this.chapTools[0].toolDetail,
  3940. url: this.chapTools[0].tools,
  3941. type: 7,
  3942. });
  3943. }
  3944. this.imgChange1(null, null, 7, this.chapCount);
  3945. this.dialogVisible4 = false;
  3946. },
  3947. addTools(i, itemTaskIndex, toolIndex) {
  3948. // if (
  3949. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3950. // .toolChoose[toolIndex].tool.length == 0
  3951. // ) {
  3952. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3953. // itemTaskIndex
  3954. // ].toolChoose[toolIndex].tool.push(i);
  3955. // } else {
  3956. // if (
  3957. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3958. // itemTaskIndex
  3959. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  3960. // ) {
  3961. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3962. // itemTaskIndex
  3963. // ].toolChoose[toolIndex].tool.splice(
  3964. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3965. // itemTaskIndex
  3966. // ].toolChoose[toolIndex].tool.indexOf(i),
  3967. // 1
  3968. // );
  3969. // } else {
  3970. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3971. // itemTaskIndex
  3972. // ].toolChoose[toolIndex].tool.push(i);
  3973. // }
  3974. // console.log(
  3975. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3976. // .toolChoose[toolIndex].tool
  3977. // );
  3978. // }
  3979. if (i == 4) {
  3980. if (
  3981. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3982. .toolChoose[toolIndex].askJson.askTitle == "" ||
  3983. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3984. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  3985. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3986. .toolChoose[toolIndex].askJson[0].checkList < 2
  3987. ) {
  3988. this.openTools(itemTaskIndex, 4, toolIndex);
  3989. // this.$message({
  3990. // message: "请填写完整问卷内容",
  3991. // type: "error",
  3992. // });
  3993. return;
  3994. }
  3995. }
  3996. if (i == 45) {
  3997. if (
  3998. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3999. .toolChoose[toolIndex].testJson ||
  4000. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4001. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  4002. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4003. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  4004. ) {
  4005. this.openTools(itemTaskIndex, 45, toolIndex);
  4006. // this.$message({
  4007. // message: "请填写完整问卷内容",
  4008. // type: "error",
  4009. // });
  4010. return;
  4011. }
  4012. }
  4013. if (i == 47) {
  4014. if (
  4015. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4016. .toolChoose[toolIndex].sentenceList ||
  4017. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4018. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  4019. ) {
  4020. this.openTools(itemTaskIndex, 47, toolIndex);
  4021. return;
  4022. }
  4023. }
  4024. if (i == 48) {
  4025. if (
  4026. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4027. .toolChoose[toolIndex].tableJson
  4028. ) {
  4029. this.openTools(itemTaskIndex, 48, toolIndex);
  4030. return;
  4031. }
  4032. }
  4033. if (i == 15) {
  4034. if (
  4035. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4036. .toolChoose[toolIndex].answerQ ||
  4037. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4038. .toolChoose[toolIndex].answerQ == ""
  4039. ) {
  4040. this.openTools(itemTaskIndex, 15, toolIndex);
  4041. // this.$message({
  4042. // message: "请填写问答内容",
  4043. // type: "error",
  4044. // });
  4045. return;
  4046. }
  4047. }
  4048. if (i == 40) {
  4049. if (
  4050. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4051. .toolChoose[toolIndex].rateJson ||
  4052. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4053. .toolChoose[toolIndex].rateJson.length
  4054. ) {
  4055. this.openTools(itemTaskIndex, 40, toolIndex);
  4056. return;
  4057. }
  4058. }
  4059. if (i == 41) {
  4060. if (
  4061. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4062. .toolChoose[toolIndex].selectJson ||
  4063. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4064. .toolChoose[toolIndex].selectJson.url == "" ||
  4065. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4066. .toolChoose[toolIndex].selectJson.select.length ||
  4067. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4068. .toolChoose[toolIndex].selectJson.answer.length
  4069. ) {
  4070. this.openTools(itemTaskIndex, 41, toolIndex);
  4071. return;
  4072. }
  4073. }
  4074. if (i == 42) {
  4075. if (
  4076. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4077. .toolChoose[toolIndex].answerQ ||
  4078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4079. .toolChoose[toolIndex].answerQ == ""
  4080. ) {
  4081. this.openTools(itemTaskIndex, 42, toolIndex);
  4082. return;
  4083. }
  4084. }
  4085. if (
  4086. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4087. .toolChoose[toolIndex].tool.length > 0
  4088. ) {
  4089. if (
  4090. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4091. itemTaskIndex
  4092. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  4093. ) {
  4094. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4095. itemTaskIndex
  4096. ].toolChoose[toolIndex].tool.splice(
  4097. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4098. itemTaskIndex
  4099. ].toolChoose[toolIndex].tool.indexOf(i),
  4100. 1
  4101. );
  4102. } else {
  4103. // this.$message({
  4104. // message: "每个工具只能添加一个",
  4105. // type: "error",
  4106. // });
  4107. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4108. itemTaskIndex
  4109. ].toolChoose[toolIndex].tool = [];
  4110. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4111. itemTaskIndex
  4112. ].toolChoose[toolIndex].tool.push(i);
  4113. }
  4114. } else {
  4115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4116. itemTaskIndex
  4117. ].toolChoose[toolIndex].tool.push(i);
  4118. }
  4119. this.$forceUpdate();
  4120. },
  4121. addAskList() {
  4122. this.askJson.askJson.push({
  4123. askstitle: "",
  4124. askItem: 1,
  4125. checkList: [],
  4126. });
  4127. this.askJson.askCount++;
  4128. },
  4129. addTestList() {
  4130. this.testJson.testJson.push({
  4131. teststitle: "",
  4132. testItem: 1,
  4133. checkList: [],
  4134. answer: [],
  4135. type: "1",
  4136. });
  4137. this.testJson.testCount++;
  4138. },
  4139. deleteAskList(index) {
  4140. this.askJson.askJson.splice(index, 1);
  4141. this.askJson.askCount--;
  4142. },
  4143. deleteTestList(index) {
  4144. this.testJson.testJson.splice(index, 1);
  4145. this.testJson.testCount--;
  4146. },
  4147. addcheckList(json) {
  4148. json.checkList.length++;
  4149. json.askItem++;
  4150. },
  4151. deletecheckList(json) {
  4152. json.checkList.length--;
  4153. json.askItem--;
  4154. },
  4155. addTcheckList(json) {
  4156. json.checkList.length++;
  4157. json.testItem++;
  4158. },
  4159. deleteTcheckList(json) {
  4160. json.checkList.length--;
  4161. json.testItem--;
  4162. },
  4163. checkTestType(type, json) {
  4164. json.type = type;
  4165. json.answer = [];
  4166. },
  4167. addSelectList(json) {
  4168. json.select.push("");
  4169. json.answer.push("");
  4170. },
  4171. deleteSelectList(json) {
  4172. // json.select.length--;
  4173. // json.answer.length--;
  4174. json.select.splice(json.select.length - 1, 1);
  4175. json.answer.splice(json.answer.length - 1, 1);
  4176. },
  4177. addAsk() {
  4178. if (this.askJson.askTitle === "") {
  4179. this.$message.error("标题不能为空!");
  4180. return;
  4181. }
  4182. var aj = this.askJson.askJson;
  4183. var b = 1;
  4184. for (var i = 0; i < aj.length; i++) {
  4185. if (aj[i].askstitle === "") {
  4186. var a = 1;
  4187. for (let index = 0; index < aj[i].askItem; index++) {
  4188. const element = aj[i].checkList[index]
  4189. ? aj[i].checkList[index]
  4190. : "";
  4191. if (element != "") {
  4192. b++;
  4193. this.$message.error("填写了选项,题目不能为空!");
  4194. return;
  4195. } else {
  4196. a++;
  4197. }
  4198. }
  4199. if (b == 1) {
  4200. this.$message.error("至少填写一个问题");
  4201. return;
  4202. }
  4203. } else if (aj[i].askstitle != "") {
  4204. for (let index = 0; index < aj[i].askItem; index++) {
  4205. const element = aj[i].checkList[index]
  4206. ? aj[i].checkList[index]
  4207. : "";
  4208. var index = 0;
  4209. for (var z = 0; z < aj[i].checkList.length; z++) {
  4210. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  4211. if (checkC != "") {
  4212. index++;
  4213. } else {
  4214. this.$message.error("选项不能为空!");
  4215. return;
  4216. }
  4217. }
  4218. b++;
  4219. if (index < 2) {
  4220. this.$message.error("填写了的题目,选项至少要有两项!");
  4221. return;
  4222. }
  4223. }
  4224. }
  4225. }
  4226. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  4227. var elc = el.checkList.filter((element) => {
  4228. return element != "";
  4229. });
  4230. return el.askstitle != "" && elc.length != 0;
  4231. });
  4232. if (!this.dialogVisible4) {
  4233. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4234. this.taskCount
  4235. ].toolChoose[this.toolIndex] = this.askJson;
  4236. }
  4237. this.dialogVisible5 = false;
  4238. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4239. this.taskCount
  4240. ].toolChoose[this.toolIndex].tool != 4) {
  4241. this.addTools(4, this.taskCount, this.toolIndex)
  4242. }
  4243. },
  4244. addTest() {
  4245. // if (this.testJson.testTitle === "") {
  4246. // this.$message.error("标题不能为空!");
  4247. // return;
  4248. // }
  4249. var aj = this.testJson.testJson;
  4250. var b = 1;
  4251. for (var i = 0; i < aj.length; i++) {
  4252. if (aj[i].teststitle === "") {
  4253. var a = 1;
  4254. for (let index = 0; index < aj[i].testItem; index++) {
  4255. const element = aj[i].checkList[index]
  4256. ? aj[i].checkList[index]
  4257. : "";
  4258. if (element != "") {
  4259. b++;
  4260. this.$message.error("填写了选项,题目不能为空!");
  4261. return;
  4262. } else {
  4263. a++;
  4264. }
  4265. }
  4266. if (b == 1) {
  4267. this.$message.error("至少填写一个问题");
  4268. return;
  4269. }
  4270. } else if (aj[i].teststitle != "") {
  4271. for (let index = 0; index < aj[i].testItem; index++) {
  4272. const element = aj[i].checkList[index]
  4273. ? aj[i].checkList[index]
  4274. : "";
  4275. var index = 0;
  4276. for (var z = 0; z < aj[i].checkList.length; z++) {
  4277. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  4278. if (checkC != "") {
  4279. index++;
  4280. } else {
  4281. this.$message.error("选项不能为空!");
  4282. return;
  4283. }
  4284. }
  4285. b++;
  4286. if (index < 2) {
  4287. this.$message.error("填写了的题目,选项至少要有两项!");
  4288. return;
  4289. }
  4290. if (
  4291. (aj[i].type == "2" && !aj[i].answer.length) ||
  4292. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  4293. ) {
  4294. this.$message.error("有题目未选择答案请选择答案");
  4295. return;
  4296. }
  4297. }
  4298. }
  4299. }
  4300. this.testJson.testJson = this.testJson.testJson.filter((el) => {
  4301. var elc = el.checkList.filter((element) => {
  4302. return element != "";
  4303. });
  4304. return el.teststitle != "" && elc.length != 0;
  4305. });
  4306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4307. this.taskCount
  4308. ].toolChoose[this.toolIndex].testJson = this.testJson;
  4309. this.dialogVisibleChoice = false;
  4310. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4311. this.taskCount
  4312. ].toolChoose[this.toolIndex].tool != 45) {
  4313. this.addTools(45, this.taskCount, this.toolIndex)
  4314. }
  4315. },
  4316. addAnswer() {
  4317. if (this.answerQ == "") {
  4318. this.$message.error("请输入您想要问的问题");
  4319. return;
  4320. }
  4321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4322. this.taskCount
  4323. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  4324. this.dialogVisible8 = false;
  4325. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4326. this.taskCount
  4327. ].toolChoose[this.toolIndex].tool != 15) {
  4328. this.addTools(15, this.taskCount, this.toolIndex)
  4329. }
  4330. },
  4331. addMp3Answer() {
  4332. if (this.answerQ == "") {
  4333. this.$message.error("请输入您想要回答的问题");
  4334. return;
  4335. }
  4336. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4337. this.taskCount
  4338. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  4339. this.dialogVisibleMp3 = false;
  4340. },
  4341. addRateAnswer() {
  4342. var a = 1;
  4343. for (var i = 0; i < this.rateJson.length; i++) {
  4344. if (this.rateJson[i].value == "") {
  4345. a = 2;
  4346. break;
  4347. }
  4348. }
  4349. if (a == 2) {
  4350. this.$message.error("请把评价信息填写完整");
  4351. return;
  4352. }
  4353. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4354. this.taskCount
  4355. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  4356. this.dialogVisibleRate = false;
  4357. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4358. this.taskCount
  4359. ].toolChoose[this.toolIndex].tool != 40) {
  4360. this.addTools(40, this.taskCount, this.toolIndex)
  4361. }
  4362. },
  4363. addSelectAnswer() {
  4364. if (this.selectJson.url == "") {
  4365. this.$message.error("请上传题目");
  4366. return;
  4367. }
  4368. if (!this.selectJson.select.length) {
  4369. this.$message.error("请添加选项");
  4370. return;
  4371. }
  4372. if (!this.selectJson.answer.length) {
  4373. this.$message.error("请设置答案");
  4374. return;
  4375. }
  4376. var a = 1;
  4377. for (var i = 0; i < this.selectJson.answer.length; i++) {
  4378. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  4379. a = 2;
  4380. }
  4381. }
  4382. if (a == 2) {
  4383. this.$message.error("请设置答案");
  4384. return;
  4385. }
  4386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4387. this.taskCount
  4388. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  4389. this.dialogVisibleSelect = false;
  4390. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4391. this.taskCount
  4392. ].toolChoose[this.toolIndex].tool != 41) {
  4393. this.addTools(41, this.taskCount, this.toolIndex)
  4394. }
  4395. },
  4396. nextSelectSteps() {
  4397. if (this.selectJson.url == "") {
  4398. this.$message.error("请上传题目");
  4399. return;
  4400. }
  4401. if (!this.selectJson.select.length) {
  4402. this.$message.error("请添加选项");
  4403. return;
  4404. }
  4405. var a = 1;
  4406. for (var i = 0; i < this.selectJson.select.length; i++) {
  4407. if (!this.selectJson.select[i]) {
  4408. a = 2;
  4409. }
  4410. }
  4411. if (a == 2) {
  4412. this.$message.error("添加的选项不能为空");
  4413. return;
  4414. }
  4415. this.selectSteps++;
  4416. },
  4417. selectCourseDetail() {
  4418. if (this.cid == "" || this.cid == undefined) {
  4419. console.log("这是新增项目");
  4420. } else {
  4421. this.cidType = 1;
  4422. let params = {
  4423. cid: this.cid,
  4424. };
  4425. this.ajax
  4426. .get(this.$store.state.api + "select_course_detail", params)
  4427. .then((res) => {
  4428. this.loading = true;
  4429. this.unitJson = JSON.parse(res.data[0][0].chapters);
  4430. for (var j in this.unitJson) {
  4431. for (var i in this.unitJson[j].chapterInfo) {
  4432. this.unitJson[j].chapterInfo[i].taskJson[
  4433. this.taskCount
  4434. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  4435. this.taskCount
  4436. ].toolChoose
  4437. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  4438. .toolChoose
  4439. : [];
  4440. for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
  4441. let _chapterData = [];
  4442. for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
  4443. .chapterData) {
  4444. if (
  4445. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
  4446. ) {
  4447. _chapterData.push(
  4448. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
  4449. c
  4450. ]
  4451. );
  4452. }
  4453. }
  4454. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
  4455. _chapterData;
  4456. }
  4457. }
  4458. }
  4459. this.courseName = res.data[0][0].title;
  4460. this.courseText = res.data[0][0].brief;
  4461. this.evalua = res.data[0][0].evaId;
  4462. this.cover = JSON.parse(res.data[0][0].cover);
  4463. this.noneBtnImg = this.cover.length >= 1;
  4464. // this.checkboxList =
  4465. // res.data[0][0].course_student.length > 0
  4466. // ? JSON.parse(res.data[0][0].course_student)
  4467. // : [];
  4468. this.checkboxList2 = res.data[0][0].juri
  4469. ? res.data[0][0].juri.split(",")
  4470. : [];
  4471. this.checkboxList3 = res.data[0][0].course_teacher
  4472. ? res.data[0][0].course_teacher.split(",")
  4473. : [];
  4474. // this.isTeacherSee =
  4475. // res.data[0][0].is_teacher_look == 0 ? true : false;
  4476. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  4477. this.myWord = res.data[0][0].template;
  4478. this.templateC.id = "123";
  4479. this.courseUserid = res.data[0][0].userid;
  4480. this.nbOrder = res.data[0][0].ordernumber;
  4481. for (var i = 0; i < res.data[1].length; i++) {
  4482. this.courseTypeId.push(res.data[1][i].typeid);
  4483. }
  4484. console.log(this.courseTypeId);
  4485. // if (this.timer) clearInterval(this.timer);
  4486. if (this.timer) clearTimeout(this.timer);
  4487. this.timer = null;
  4488. // this.timer = setInterval(() => {
  4489. this.seleteCourseUpdate();
  4490. // }, 5000);
  4491. this.$forceUpdate();
  4492. setTimeout(() => {
  4493. this.checkEva(this.evalua);
  4494. }, 0);
  4495. })
  4496. .catch((err) => {
  4497. console.error(err);
  4498. });
  4499. }
  4500. },
  4501. seleteCourseUpdate() {
  4502. let params = {
  4503. cid: this.cid,
  4504. };
  4505. this.ajax
  4506. .get(this.$store.state.api + "select_course_detail", params)
  4507. .then((res) => {
  4508. // console.log(this.unitJson);
  4509. let unitJson = JSON.parse(res.data[0][0].chapters);
  4510. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  4511. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  4512. let _unitJson = [];
  4513. let _chapAarry = [];
  4514. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  4515. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  4516. let index = 1;
  4517. let chapindex;
  4518. if (_unitJson2.length > unitJson.length) {
  4519. for (let c = 0; c < _unitJson2.length; c++) {
  4520. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  4521. }
  4522. for (let j = 0; j < unitJson.length; j++) {
  4523. let count = 0;
  4524. for (let k = 0; k < _unitJson2.length; k++) {
  4525. if (
  4526. unitJson[j].chapterInfo[0].chapterid ==
  4527. _unitJson2[k].chapterInfo[0].chapterid
  4528. ) {
  4529. count++;
  4530. _chapAarry.splice(
  4531. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  4532. 1
  4533. );
  4534. _unitJson.push(unitJson[j]);
  4535. break;
  4536. }
  4537. }
  4538. // if(count === 0){
  4539. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  4540. // }
  4541. }
  4542. for (let k = 0; k < _unitJson2.length; k++) {
  4543. if (_unitJson2[k].isUpdate == 1) {
  4544. _chapAarry.splice(
  4545. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  4546. 1
  4547. );
  4548. _unitJson.push(_unitJson2[k]);
  4549. }
  4550. }
  4551. console.log(_chapAarry);
  4552. for (let d = 0; d < _unitJson2.length; d++) {
  4553. if (
  4554. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  4555. ) {
  4556. if (_unitIndex == d) {
  4557. index = 2;
  4558. }
  4559. chapindex = d;
  4560. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  4561. }
  4562. }
  4563. } else {
  4564. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  4565. }
  4566. for (let i = 0; i < unitJson.length; i++) {
  4567. if (
  4568. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  4569. _unitJson[i].chapterInfo[0].chapterid !=
  4570. unitJson[i].chapterInfo[0].chapterid
  4571. ) {
  4572. if (i == _unitJson.length - 1) {
  4573. // this.unitIndex++
  4574. _unitIndex2++;
  4575. }
  4576. _unitJson.splice(i, 0, unitJson[i]);
  4577. } else if (i > _unitJson.length - 1) {
  4578. _unitJson.push(unitJson[i]);
  4579. } else if (
  4580. _unitJson[i].chapterInfo[0].chapterid ==
  4581. unitJson[i].chapterInfo[0].chapterid
  4582. ) {
  4583. _unitJson[i] = unitJson[i];
  4584. }
  4585. // if (i == _unitIndex) {
  4586. // continue;
  4587. // } else
  4588. }
  4589. if (_chapAarry.length && index != 2) {
  4590. if (chapindex < _unitIndex) {
  4591. this.isDelete = 2;
  4592. // this.unitIndex--;
  4593. _unitIndex2--;
  4594. } else if (
  4595. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  4596. _unitJson[_unitIndex].chapterInfo[0].chapterid
  4597. ) {
  4598. this.isDelete = 2;
  4599. for (let n = 0; n < _unitJson.length; n++) {
  4600. if (
  4601. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  4602. _unitJson[n].chapterInfo[0].chapterid
  4603. ) {
  4604. // this.unitIndex = n;
  4605. _unitIndex2 = n;
  4606. _unitJson[n] = _unitJson2[_unitIndex];
  4607. break;
  4608. }
  4609. }
  4610. }
  4611. } else if (index != 2) {
  4612. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  4613. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  4614. }
  4615. if (index == 1) {
  4616. this.unitJson = _unitJson;
  4617. this.$forceUpdate();
  4618. setTimeout(() => {
  4619. if (this.unitIndex != _unitIndex2) {
  4620. this.isDelete = 2;
  4621. this.unitIndex = _unitIndex2;
  4622. }
  4623. }, 0);
  4624. this.timer = setTimeout(() => {
  4625. this.seleteCourseUpdate();
  4626. }, 1000);
  4627. } else if (index == 2) {
  4628. let _this = this;
  4629. _this
  4630. .$confirm(
  4631. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  4632. "提示",
  4633. {
  4634. confirmButtonText: "需要",
  4635. cancelButtonText: "取消",
  4636. type: "warning",
  4637. }
  4638. )
  4639. .then(() => {
  4640. if (_this.time()) {
  4641. _this.restoreWork(
  4642. _chapAarry[0],
  4643. _unitJson,
  4644. chapindex,
  4645. _unitJson2,
  4646. _unitIndex2
  4647. );
  4648. }
  4649. })
  4650. .catch(() => {
  4651. _this.unitJson = _unitJson;
  4652. _this.$forceUpdate();
  4653. setTimeout(() => {
  4654. if (this.unitIndex != _unitIndex2) {
  4655. this.isDelete = 2;
  4656. this.unitIndex = _unitIndex2;
  4657. }
  4658. }, 0);
  4659. _this.timer = setTimeout(() => {
  4660. _this.seleteCourseUpdate();
  4661. }, 1000);
  4662. });
  4663. }
  4664. })
  4665. .catch((err) => {
  4666. console.error(err);
  4667. });
  4668. },
  4669. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  4670. let params = [
  4671. {
  4672. cid: this.cid,
  4673. chapters: JSON.stringify(this.unitJson),
  4674. uid: this.userid,
  4675. chapid: chapid,
  4676. },
  4677. ];
  4678. this.ajax
  4679. .post(this.$store.state.api + "restoreWork", params)
  4680. .then((res) => {
  4681. this.$message({
  4682. message: "恢复成功",
  4683. type: "success",
  4684. });
  4685. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  4686. this.unitJson = unitJson;
  4687. this.$forceUpdate();
  4688. setTimeout(() => {
  4689. if (this.unitIndex != unitIndex2) {
  4690. this.isDelete = 2;
  4691. this.unitIndex = unitIndex2;
  4692. }
  4693. }, 0);
  4694. this.timer = setTimeout(() => {
  4695. this.seleteCourseUpdate();
  4696. }, 1000);
  4697. })
  4698. .catch((err) => {
  4699. this.$message.error("网络不佳");
  4700. console.error(err);
  4701. });
  4702. },
  4703. getTypeName() {
  4704. console.log(this.courseTypeId);
  4705. this.$forceUpdate();
  4706. },
  4707. selectType() {
  4708. this.ajax
  4709. .get(this.$store.state.api + "selectType")
  4710. .then((res) => {
  4711. this.CourseType = res.data;
  4712. for (var i = 0; i < res.data[0].length; i++) {
  4713. if (!this.cid) {
  4714. this.courseTypeId[res.data[0][i].id] = "";
  4715. }
  4716. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  4717. if (res.data[0][i].name == "栏目") {
  4718. this.CourseType[0][i].name = "主题";
  4719. }
  4720. }
  4721. for (var j = 0; j < res.data[1].length; j++) {
  4722. if (res.data[0][i].id == res.data[1][j].pid) {
  4723. if (!this.CourseTypeJson[res.data[0][i].id]) {
  4724. this.CourseTypeJson[res.data[0][i].id] = [];
  4725. }
  4726. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  4727. }
  4728. }
  4729. }
  4730. this.selectTypeByOid();
  4731. this.selectTypeByOrg();
  4732. })
  4733. .catch((err) => {
  4734. console.error(err);
  4735. });
  4736. },
  4737. selectTypeByOid() {
  4738. let params = {
  4739. oid: this.oid,
  4740. };
  4741. this.ajax
  4742. .get(this.$store.state.api + "selectTypeByOid", params)
  4743. .then((res) => {
  4744. for (var i = 0; i < res.data[0].length; i++) {
  4745. for (var j = 0; j < res.data[1].length; j++) {
  4746. if (res.data[0][i].id == res.data[1][j].pid) {
  4747. if (!this.CourseTypeJson[res.data[0][i].id]) {
  4748. this.CourseTypeJson[res.data[0][i].id] = [];
  4749. }
  4750. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  4751. }
  4752. }
  4753. }
  4754. })
  4755. .catch((err) => {
  4756. console.error(err);
  4757. });
  4758. },
  4759. selectTypeByOrg() {
  4760. let params = {
  4761. oid: this.org,
  4762. };
  4763. this.ajax
  4764. .get(this.$store.state.api + "selectTypeByOrg", params)
  4765. .then((res) => {
  4766. for (var i = 0; i < res.data[0].length; i++) {
  4767. for (var j = 0; j < res.data[1].length; j++) {
  4768. if (res.data[0][i].id == res.data[1][j].pid) {
  4769. if (!this.CourseTypeJson[res.data[0][i].id]) {
  4770. this.CourseTypeJson[res.data[0][i].id] = [];
  4771. }
  4772. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  4773. }
  4774. }
  4775. }
  4776. this.$forceUpdate();
  4777. })
  4778. .catch((err) => {
  4779. console.error(err);
  4780. });
  4781. },
  4782. OtherMb(type) {
  4783. this.typeMode = type;
  4784. setTimeout(() => {
  4785. this.checkEva(this.checkId);
  4786. }, 0);
  4787. },
  4788. checkEva(id) {
  4789. this.selectEva();
  4790. this.evalua = id;
  4791. this.checkId = id;
  4792. if (this.evalua != "") {
  4793. for (var i = 0; i < this.evaJuri.length; i++) {
  4794. if (this.evalua == this.evaJuri[i].id) {
  4795. this.eTitle = this.evaJuri[i].title;
  4796. this.eJson = JSON.parse(this.evaJuri[i].content);
  4797. }
  4798. }
  4799. this.data.data = [];
  4800. this.$forceUpdate();
  4801. setTimeout(() => {
  4802. this.setMindData();
  4803. }, 500);
  4804. }
  4805. },
  4806. selectEva() {
  4807. let params = {
  4808. oid: this.oid,
  4809. };
  4810. this.ajax
  4811. .get(this.$store.state.api + "selectAllEvaluation", params)
  4812. .then((res) => {
  4813. this.evaJuri = res.data[0];
  4814. })
  4815. .catch((err) => {
  4816. console.error(err);
  4817. });
  4818. },
  4819. setMindData() {
  4820. let targetArray = [];
  4821. this.data.data = [];
  4822. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  4823. let _eJson = Object.keys(this.eJson);
  4824. let _e = this.eJson;
  4825. for (let i = 0; i < _eJson.length; i++) {
  4826. let element = _e[_eJson[i]];
  4827. this.data.data.push({
  4828. id: element.id,
  4829. parentid: "root",
  4830. topic: element.name,
  4831. });
  4832. targetArray.push({
  4833. id: element.id,
  4834. parentid: "root",
  4835. name: element.name,
  4836. });
  4837. let _eJsonc = Object.keys(element.child);
  4838. let _e2 = element.child;
  4839. for (let j = 0; j < _eJsonc.length; j++) {
  4840. let _ec = _e2[_eJsonc[j]];
  4841. this.data.data.push({
  4842. id: _ec.id,
  4843. parentid: element.id,
  4844. topic: _ec.name,
  4845. });
  4846. targetArray.push({
  4847. id: _ec.id,
  4848. parentid: element.id,
  4849. name: _ec.name,
  4850. });
  4851. let _eJsonz = Object.keys(_ec.child);
  4852. let _e3 = _ec.child;
  4853. for (let z = 0; z < _eJsonz.length; z++) {
  4854. let _ez = _e3[_eJsonz[z]];
  4855. this.data.data.push({
  4856. id: _ez.id,
  4857. parentid: _ec.id,
  4858. topic: _ez.name,
  4859. });
  4860. targetArray.push({
  4861. id: _ez.id,
  4862. parentid: _ec.id,
  4863. name: _ez.name,
  4864. });
  4865. }
  4866. }
  4867. }
  4868. this.targetArray = targetArray;
  4869. this.$forceUpdate();
  4870. },
  4871. /*添加评价 */
  4872. addEList(index, tIndex) {
  4873. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  4874. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  4875. value: "",
  4876. detail: "",
  4877. score: 5,
  4878. })
  4879. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  4880. { value: "", detail: "", score: 5 },
  4881. ]);
  4882. this.$forceUpdate();
  4883. },
  4884. forceUpdate() {
  4885. this.$forceUpdate();
  4886. },
  4887. deletEList(index, tIndex, eIndex) {
  4888. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  4889. eIndex,
  4890. 1
  4891. );
  4892. this.$forceUpdate();
  4893. },
  4894. getChoosePic(t) {
  4895. this.chooseType = t;
  4896. this.getAllBanner();
  4897. },
  4898. getAllBanner() {
  4899. this.sysPicVisible = true;
  4900. let params = {
  4901. t: this.chooseType,
  4902. };
  4903. this.ajax
  4904. .get(this.$store.state.api + "selectAllBanner", params)
  4905. .then((res) => {
  4906. this.sysPic = res.data[0];
  4907. })
  4908. .catch((err) => {
  4909. console.error(err);
  4910. });
  4911. },
  4912. deleteSysPic() {
  4913. this.cover = [];
  4914. this.isSysPic = false;
  4915. },
  4916. deleteSelectPic() {
  4917. this.selectJson.url = "";
  4918. },
  4919. setEListStar() {
  4920. this.$forceUpdate();
  4921. },
  4922. deletRateList(i) {
  4923. this.rateJson.splice(i, 1);
  4924. },
  4925. addRateList() {
  4926. this.rateJson.push({ detail: "", score: 5, value: "" });
  4927. },
  4928. addSt() {
  4929. this.sentenceList.push({
  4930. sentenceTitle: "",
  4931. addSentence: [],
  4932. rightAnswer: [],
  4933. });
  4934. },
  4935. addSen(i) {
  4936. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  4937. // this.isPushTitleList.push(this.sentenceTitle);
  4938. this.sentenceList[i].sentenceTitle = "";
  4939. },
  4940. setRightAnswer(s, i, j) {
  4941. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  4942. this.sentenceList[i].rightAnswer.push(s);
  4943. }
  4944. },
  4945. returnCard(r, i, j) {
  4946. this.sentenceList[i].rightAnswer.splice(j, 1);
  4947. },
  4948. addSentenceTool() {
  4949. for (var i = 0; i < this.sentenceList.length; i++) {
  4950. if (this.sentenceList[i].rightAnswer.length == 0) {
  4951. this.$message.error("请将信息填写完整!");
  4952. return;
  4953. }
  4954. if (
  4955. this.sentenceList[i].addSentence.length !=
  4956. this.sentenceList[i].rightAnswer.length
  4957. ) {
  4958. this.$message.error("请将信息填写完整!");
  4959. return;
  4960. }
  4961. }
  4962. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4963. this.taskCount
  4964. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  4965. this.sentenceList = [
  4966. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  4967. ];
  4968. this.dialogVisibleSentence = false;
  4969. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4970. // itemTaskIndex
  4971. // ].toolChoose[toolIndex].tool = [];
  4972. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4973. // itemTaskIndex
  4974. // ].toolChoose[toolIndex].tool.push(i);
  4975. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4976. this.taskCount
  4977. ].toolChoose[this.toolIndex].tool != 47) {
  4978. this.addTools(47, this.taskCount, this.toolIndex)
  4979. }
  4980. },
  4981. addTableJson(){
  4982. if(this.tableJson.text == '' || this.tableJson.text == '<p></p>'){
  4983. this.$message.error("请将信息填写完整!");
  4984. return;
  4985. }
  4986. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4987. this.taskCount
  4988. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  4989. this.tableJson = [
  4990. { text:"" },
  4991. ];
  4992. this.dialogVisibleTable = false;
  4993. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4994. this.taskCount
  4995. ].toolChoose[this.toolIndex].tool != 48) {
  4996. this.addTools(48, this.taskCount, this.toolIndex)
  4997. }
  4998. }
  4999. },
  5000. beforeDestroy() {
  5001. clearTimeout(this.timer);
  5002. this.timer = null;
  5003. },
  5004. beforeRouteLeave(to, from, next) {
  5005. clearTimeout(this.timer);
  5006. this.timer = null;
  5007. next();
  5008. },
  5009. created() {
  5010. this.getStudent();
  5011. this.getTeacher();
  5012. this.getClass();
  5013. this.getTemplate();
  5014. this.selectType();
  5015. this.selectEva();
  5016. this.loading = false;
  5017. setTimeout(() => {
  5018. this.selectCourseDetail();
  5019. this.selectEva();
  5020. }, 500);
  5021. },
  5022. };
  5023. </script>
  5024. <style scoped>
  5025. @media screen and (max-width: 1280px) {
  5026. .mbCss {
  5027. flex-direction: column !important;
  5028. }
  5029. .pjCss {
  5030. width: 100% !important;
  5031. }
  5032. .evaCss {
  5033. width: 100% !important;
  5034. }
  5035. }
  5036. .dialog_diy>>>.el-dialog__header {
  5037. background: #3c3c3c !important;
  5038. padding: 15px 20px;
  5039. }
  5040. .dialog_diy>>>.el-dialog__title {
  5041. color: #fff;
  5042. }
  5043. .dialog_diy>>>.el-dialog__headerbtn {
  5044. top: 19px;
  5045. }
  5046. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  5047. color: #fff;
  5048. }
  5049. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  5050. color: #fff;
  5051. }
  5052. .dialog_diy>>>.el-dialog__body,
  5053. .dialog_diy>>>.el-dialog__footer {
  5054. background: #fafafa;
  5055. }
  5056. .dialog_diy3>>>.el-dialog__body,
  5057. .dialog_diy3>>>.el-dialog__footer {
  5058. background: #eee !important;
  5059. }
  5060. .dialog_diy3>>>.el-dialog__body {
  5061. padding: 20px 20px;
  5062. }
  5063. .left {
  5064. border-right: 1px solid rgb(60, 94, 143);
  5065. display: flex;
  5066. flex-direction: column;
  5067. align-items: center;
  5068. min-height: 600px;
  5069. width: 385px;
  5070. height: 80%;
  5071. }
  5072. .tips {
  5073. color: rgb(128, 128, 128);
  5074. font-size: 12px;
  5075. width: 270px;
  5076. margin: 40px;
  5077. }
  5078. .pb_content {
  5079. height: 100% !important;
  5080. /* margin: 0 20px 0 20px; */
  5081. }
  5082. .pb_content_body {
  5083. width: 100% !important;
  5084. height: 100%;
  5085. }
  5086. .info_solid {
  5087. width: 270px;
  5088. height: 30px;
  5089. border-left: 1px solid #bdbdbd;
  5090. margin: 10px 0px 10px 30px;
  5091. }
  5092. .info_steps {
  5093. width: 270px;
  5094. font-size: 0.875rem;
  5095. display: flex;
  5096. align-items: center;
  5097. }
  5098. .info_steps span:nth-child(1) {
  5099. width: 30px;
  5100. height: 30px;
  5101. background: rgba(0, 0, 0, 0.38);
  5102. display: block;
  5103. color: #fff;
  5104. border-radius: 40px;
  5105. text-align: center;
  5106. line-height: 30px;
  5107. }
  5108. .steps_active {
  5109. background: #3d67bc !important;
  5110. }
  5111. .info_steps span:nth-child(2) {
  5112. margin-left: 5px;
  5113. }
  5114. .right {
  5115. height: 100%;
  5116. width: 100%;
  5117. display: flex;
  5118. overflow: hidden;
  5119. }
  5120. .basic_box {
  5121. margin: 0 auto;
  5122. position: relative;
  5123. padding: 0 20px 0 20px;
  5124. }
  5125. .basic_box_success {
  5126. width: 100%;
  5127. min-height: 455px;
  5128. padding: 50px 0;
  5129. position: relative;
  5130. text-align: center;
  5131. border-bottom: 1px solid #bfbfbf;
  5132. box-sizing: border-box;
  5133. display: flex;
  5134. align-items: center;
  5135. flex-direction: column;
  5136. justify-content: center;
  5137. }
  5138. .info_title {
  5139. font-size: 1.5em;
  5140. margin-right: 25px;
  5141. /* margin: 20px 30px 20px 30px; */
  5142. }
  5143. .bInfo_title {
  5144. text-align: left;
  5145. margin: 10px 0;
  5146. }
  5147. .small_title {
  5148. font-size: 14px;
  5149. line-height: 40px;
  5150. }
  5151. .chapter_beizhu {
  5152. font-size: 12px;
  5153. font-weight: bold;
  5154. float: right;
  5155. color: rgb(128, 128, 128);
  5156. margin-top: 5px;
  5157. }
  5158. .chapter_uploadBox1 {
  5159. text-align: left;
  5160. background-color: rgb(242, 242, 242);
  5161. width: 100%;
  5162. height: 67px;
  5163. padding: 0px 15px;
  5164. border-radius: 8px;
  5165. overflow: hidden;
  5166. font-size: 16px;
  5167. box-sizing: border-box;
  5168. position: relative;
  5169. }
  5170. .chapter_add {
  5171. width: 100%;
  5172. height: 32px;
  5173. margin-top: 15px;
  5174. cursor: pointer;
  5175. }
  5176. .chapter_add_l {
  5177. margin-left: 5px;
  5178. width: 30px;
  5179. height: 30px;
  5180. float: left;
  5181. border: 1px solid #aaa;
  5182. color: #aaa;
  5183. border-radius: 50%;
  5184. font-size: 25px;
  5185. text-align: center;
  5186. }
  5187. .chapter_add_r {
  5188. font-size: 18px;
  5189. height: 40px;
  5190. line-height: 30px;
  5191. text-indent: 10px;
  5192. color: #aaa;
  5193. }
  5194. .chapter_add_r span {
  5195. font-size: 12px;
  5196. color: rgb(204, 204, 204);
  5197. }
  5198. .chapter_add_input {
  5199. display: none;
  5200. }
  5201. .line {
  5202. width: 85%;
  5203. margin: 0 auto;
  5204. border-top: 1px solid #e5e5e5;
  5205. margin-top: 20px;
  5206. }
  5207. .info_btnBox {
  5208. width: 100%;
  5209. display: flex;
  5210. justify-content: space-evenly;
  5211. margin: 10px 0 10px 0;
  5212. }
  5213. .info_btn,
  5214. .teacherWord {
  5215. color: #fff;
  5216. background-color: #0f7eff;
  5217. padding: 8px 24px;
  5218. font-size: 0.9375rem;
  5219. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  5220. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  5221. min-width: 64px;
  5222. font-weight: 500;
  5223. border-radius: 4px;
  5224. box-sizing: border-box;
  5225. border: none;
  5226. cursor: pointer;
  5227. }
  5228. .teacherWord {
  5229. width: 105px !important;
  5230. text-align: center !important;
  5231. line-height: 36px !important;
  5232. padding: 0 !important;
  5233. font-size: 14px !important;
  5234. margin: 10px 0 !important;
  5235. }
  5236. .wordTeacher {
  5237. display: flex;
  5238. flex-direction: column;
  5239. width: 20%;
  5240. text-align: center;
  5241. font-size: 14px;
  5242. margin: 30px 30px 0 10px;
  5243. background: #fff;
  5244. position: relative;
  5245. border-radius: 5px;
  5246. padding: 25px 0px;
  5247. }
  5248. .wordPic {
  5249. margin: 0 auto;
  5250. width: 60px;
  5251. height: 60px;
  5252. cursor: pointer;
  5253. }
  5254. .deleteWord {
  5255. width: 22px;
  5256. height: 22px;
  5257. position: absolute;
  5258. right: 5px;
  5259. top: -15px;
  5260. cursor: pointer;
  5261. display: none;
  5262. z-index: 999;
  5263. }
  5264. .wordPic>img,
  5265. .deleteWord>img,
  5266. .addToolImg>img {
  5267. width: 100%;
  5268. height: 100%;
  5269. }
  5270. .info_btn:hover {
  5271. background-color: #4f7cd5 !important;
  5272. }
  5273. .cru_selectBox {
  5274. display: flex;
  5275. margin: 24px 0 10px;
  5276. flex-wrap: nowrap;
  5277. white-space: nowrap;
  5278. overflow: auto;
  5279. position: relative;
  5280. height: 47px;
  5281. }
  5282. .cru_selectBox::-webkit-scrollbar {
  5283. /*滚动条整体样式*/
  5284. width: 6px;
  5285. /*高宽分别对应横竖滚动条的尺寸*/
  5286. height: 6px;
  5287. }
  5288. /*定义滚动条轨道 内阴影+圆角*/
  5289. .cru_selectBox::-webkit-scrollbar-track {
  5290. border-radius: 10px;
  5291. background-color: #eee;
  5292. }
  5293. /*定义滑块 内阴影+圆角*/
  5294. .cru_selectBox::-webkit-scrollbar-thumb {
  5295. border-radius: 10px;
  5296. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  5297. background-color: rgba(0, 0, 0, 0.1);
  5298. }
  5299. .cru_line {
  5300. position: absolute;
  5301. bottom: 0px;
  5302. transition: all 0.5s;
  5303. left: 0px;
  5304. width: 125px;
  5305. margin-left: -25px;
  5306. }
  5307. .cru_select {
  5308. font-size: 21px;
  5309. margin-right: 37px;
  5310. margin-left: 5px;
  5311. cursor: pointer;
  5312. color: #a6a6a6;
  5313. }
  5314. .cru_selected {
  5315. color: #0b7fc2 !important;
  5316. }
  5317. .chapter_contentbox {
  5318. display: flex;
  5319. align-items: center;
  5320. margin-top: 15px;
  5321. }
  5322. .chapter_contentbox div:nth-child(1) {
  5323. /* width: 150px; */
  5324. margin: 0px;
  5325. /* font-size: 2em; */
  5326. color: black;
  5327. display: block;
  5328. white-space: nowrap;
  5329. overflow: hidden;
  5330. text-overflow: ellipsis;
  5331. /* font-weight: 600; */
  5332. margin-right: 20px;
  5333. font-size: 18px;
  5334. }
  5335. .chapter_contentbox div:nth-child(2) {
  5336. width: 380px;
  5337. }
  5338. .chapter_contentbox div:nth-child(3),
  5339. .remove {
  5340. background-image: url("../../assets/remove.png");
  5341. cursor: pointer;
  5342. opacity: 0.5;
  5343. width: 40px;
  5344. height: 50px;
  5345. background-repeat: no-repeat;
  5346. background-position: 5px 10px;
  5347. }
  5348. .remove1 {
  5349. background-image: url("../../assets/remove1.png");
  5350. background-repeat: no-repeat;
  5351. background-position: 5px 10px;
  5352. width: 40px;
  5353. height: 50px;
  5354. cursor: pointer;
  5355. }
  5356. .binfo_input {
  5357. font: inherit;
  5358. color: currentColor;
  5359. width: 100%;
  5360. margin: 0;
  5361. /* padding: 15px 14px; */
  5362. padding: 8px 14px;
  5363. display: block;
  5364. min-width: 0;
  5365. outline: none;
  5366. box-sizing: content-box;
  5367. background: none;
  5368. border: 1px solid rgba(0, 0, 0, 0.23);
  5369. border-radius: 4px;
  5370. box-sizing: border-box;
  5371. background: #fff;
  5372. font-size: 18px;
  5373. }
  5374. .binfo_input:focus-visible {
  5375. border: 1px solid rgba(61, 103, 188);
  5376. }
  5377. .time {
  5378. display: flex;
  5379. margin: 35px 0 80px 0;
  5380. }
  5381. .chapter_btnbox {
  5382. width: 160px;
  5383. border-radius: 5px;
  5384. border: 2px dashed gray;
  5385. display: flex;
  5386. padding: 8px 50px;
  5387. align-items: center;
  5388. justify-content: center;
  5389. margin: 30px auto 0;
  5390. cursor: pointer;
  5391. }
  5392. .icon_add {
  5393. position: relative;
  5394. width: 24px;
  5395. padding-top: 20px;
  5396. border-radius: 100%;
  5397. border-width: 2px;
  5398. border-style: solid;
  5399. border-color: gray;
  5400. }
  5401. .icon_add i:nth-child(1) {
  5402. position: absolute;
  5403. left: 50%;
  5404. top: 50%;
  5405. height: 60%;
  5406. transform: translate(-50%, -50%);
  5407. border-width: 1px;
  5408. border-style: solid;
  5409. border-color: inherit;
  5410. }
  5411. .icon_add i:nth-child(2) {
  5412. position: absolute;
  5413. top: 50%;
  5414. left: 50%;
  5415. width: 60%;
  5416. transform: translate(-50%, -50%);
  5417. border-width: 1px;
  5418. border-style: solid;
  5419. border-color: inherit;
  5420. }
  5421. .chapter_btn_w {
  5422. font-size: 0.9375rem;
  5423. font-weight: bold;
  5424. color: gray;
  5425. margin-left: 20px;
  5426. }
  5427. .disUoloadSty>>>.el-icon-plus {
  5428. display: none !important;
  5429. /* 上传按钮隐藏 */
  5430. }
  5431. .imgLeft {
  5432. margin: 15px 0;
  5433. }
  5434. .add_info_box {
  5435. margin: 20px 0;
  5436. }
  5437. .add_info_box button {
  5438. margin: 0 10px 10px 0;
  5439. }
  5440. .add_chapters_box {
  5441. text-align: left;
  5442. background-color: rgb(232 234 237);
  5443. width: 100%;
  5444. padding: 0px 15px;
  5445. border-radius: 15px;
  5446. font-size: 16px;
  5447. box-sizing: border-box;
  5448. position: relative;
  5449. padding: 0 10px 5px 10px;
  5450. height: 185px;
  5451. overflow-y: auto;
  5452. overflow-x: hidden;
  5453. }
  5454. .homework_box {
  5455. display: flex;
  5456. align-items: flex-start;
  5457. flex-wrap: wrap;
  5458. margin: 15px 0 0 0;
  5459. flex-direction: column;
  5460. align-content: flex-start;
  5461. }
  5462. .course_homework {
  5463. display: flex;
  5464. justify-content: center;
  5465. flex-direction: row;
  5466. align-items: center;
  5467. margin: 0 10px 0 0;
  5468. }
  5469. .course_homework>>>.el-input__inner {
  5470. width: 140px;
  5471. margin-left: 15px;
  5472. }
  5473. .chapter_upload_move {
  5474. position: relative;
  5475. background-color: #fff;
  5476. position: absolute;
  5477. width: 100%;
  5478. top: 0px;
  5479. left: 0px;
  5480. border: 1px solid #eee;
  5481. border-radius: 5px;
  5482. transition: width 2s;
  5483. -moz-transition: width 2s;
  5484. -webkit-transition: width 2s;
  5485. -o-transition: width 2s;
  5486. }
  5487. .chapter_upload_l_i {
  5488. background-image: url("../../assets/icon.png");
  5489. background-position: 3px -165px;
  5490. width: 30px;
  5491. height: 30px;
  5492. margin: 10px auto 0 auto;
  5493. }
  5494. .left_first {
  5495. display: flex;
  5496. flex-direction: column;
  5497. flex-wrap: nowrap;
  5498. }
  5499. .right_first {
  5500. width: 100%;
  5501. height: 100%;
  5502. margin-top: 15px;
  5503. }
  5504. .right_title {
  5505. height: 30px;
  5506. padding: 15px 0 15px 20px;
  5507. border-bottom: 1px solid #f2f2f2;
  5508. font-size: 1.5em;
  5509. font-weight: bold;
  5510. color: #0f7eff;
  5511. margin: 0 auto;
  5512. }
  5513. .people {
  5514. border: 1px solid rgb(229 229 229);
  5515. height: 495px;
  5516. border-radius: 5px;
  5517. width: 100%;
  5518. overflow: auto;
  5519. }
  5520. .people_top {
  5521. display: flex;
  5522. width: 100%;
  5523. /* justify-content: space-between; */
  5524. /* align-items: center; */
  5525. flex-direction: column;
  5526. padding: 10px 25px 0;
  5527. box-sizing: border-box;
  5528. }
  5529. .people_nav,
  5530. .people_top_right {
  5531. /* padding: 20px 0 0 20px; */
  5532. }
  5533. .people_top_right {
  5534. height: 40px;
  5535. margin-bottom: 10px;
  5536. }
  5537. .people_search {
  5538. display: flex;
  5539. position: relative;
  5540. }
  5541. .people_search>>>.el-input__inner {
  5542. /* height: 25px; */
  5543. width: 95%;
  5544. }
  5545. .search_img {
  5546. width: 20px;
  5547. height: 20px;
  5548. position: absolute;
  5549. right: 30px;
  5550. top: 50%;
  5551. transform: translateY(-50%);
  5552. }
  5553. .search_img>img {
  5554. width: 100%;
  5555. height: 100%;
  5556. }
  5557. .people_name {
  5558. display: flex;
  5559. justify-content: flex-start;
  5560. padding: 20px 0 0 25px;
  5561. flex-direction: column;
  5562. flex-wrap: wrap;
  5563. }
  5564. .people_name>>>.el-checkbox {
  5565. width: 100%;
  5566. display: flex;
  5567. align-items: center;
  5568. margin-bottom: 10px;
  5569. }
  5570. .people_name>>>.el-checkbox__label {
  5571. text-overflow: ellipsis;
  5572. overflow: hidden;
  5573. width: 100%;
  5574. }
  5575. .right_img {
  5576. width: 150px;
  5577. height: 150px;
  5578. margin: 0 auto;
  5579. }
  5580. .right_img>img {
  5581. width: 100%;
  5582. height: 100%;
  5583. }
  5584. .number {
  5585. margin-top: 20px;
  5586. color: #4aa6ff;
  5587. text-decoration: underline;
  5588. }
  5589. .success_button {
  5590. display: flex;
  5591. text-align: center;
  5592. margin: 5% 0 auto;
  5593. flex-direction: row;
  5594. justify-content: center;
  5595. }
  5596. .look_course {
  5597. margin-right: 40px;
  5598. background: #3d67bc;
  5599. width: 200px;
  5600. height: 35px;
  5601. line-height: 35px;
  5602. color: #fff;
  5603. text-align: center;
  5604. font-size: 14px;
  5605. border-radius: 5px;
  5606. cursor: pointer;
  5607. }
  5608. .attend_others {
  5609. width: 250px;
  5610. background: #4fb13c;
  5611. height: 35px;
  5612. line-height: 35px;
  5613. color: #fff;
  5614. text-align: center;
  5615. font-size: 14px;
  5616. border-radius: 5px;
  5617. cursor: pointer;
  5618. }
  5619. .dialog_diy2>>>.el-dialog__body {
  5620. text-align: center;
  5621. }
  5622. .write_togother {
  5623. position: absolute;
  5624. right: 45px;
  5625. display: flex;
  5626. top: 5%;
  5627. }
  5628. .write_people {
  5629. font-size: 14px;
  5630. line-height: 50px;
  5631. padding-right: 10px;
  5632. }
  5633. .end_write {
  5634. background: #3d67bc;
  5635. color: #fff;
  5636. width: 100px;
  5637. height: 35px;
  5638. line-height: 35px;
  5639. text-align: center;
  5640. font-size: 14px;
  5641. border-radius: 5px;
  5642. cursor: pointer;
  5643. }
  5644. .chapter_upload {
  5645. height: 50px;
  5646. margin-top: 12px;
  5647. position: relative;
  5648. display: flex;
  5649. align-items: center;
  5650. width: 100%;
  5651. min-height: 50px;
  5652. }
  5653. .chapter_upload_t {
  5654. background-color: #fff;
  5655. position: absolute;
  5656. height: 100%;
  5657. top: 0px;
  5658. left: 0px;
  5659. border-radius: 40px;
  5660. box-sizing: border-box;
  5661. box-shadow: 0 0 3px 3px #dfdfdf;
  5662. }
  5663. .chapter_upload_o {
  5664. width: 100%;
  5665. height: 100%;
  5666. position: relative;
  5667. z-index: 1;
  5668. }
  5669. .chapter_upload_ic {
  5670. height: 30px;
  5671. float: right;
  5672. }
  5673. .chapter_upload_ic_l {
  5674. width: 50px;
  5675. height: 50px;
  5676. float: left;
  5677. }
  5678. .chapter_upload_ic_l div {
  5679. width: 30px;
  5680. height: 35px;
  5681. background: url("../../assets/icon/icon.png");
  5682. }
  5683. .chapter_upload_ic_r {
  5684. width: 50px;
  5685. height: 50px;
  5686. float: left;
  5687. margin-left: 0px;
  5688. display: flex;
  5689. align-items: center;
  5690. }
  5691. .chapter_upload_ic_r div {
  5692. width: 25px;
  5693. height: 25px;
  5694. background-image: url("../../assets/delete.png");
  5695. background-size: 100% 100%;
  5696. }
  5697. .chapter_upload_n {
  5698. display: flex;
  5699. text-indent: 10px;
  5700. text-decoration: none;
  5701. text-overflow: ellipsis;
  5702. white-space: nowrap;
  5703. overflow: hidden;
  5704. width: 55%;
  5705. margin-left: 10px;
  5706. cursor: pointer;
  5707. margin-top: 2px;
  5708. }
  5709. .chapter_upload_l_i1 {
  5710. background-image: url("../../assets/icon/video.png");
  5711. width: 28px;
  5712. height: 28px;
  5713. background-size: 100% 100%;
  5714. }
  5715. .chapter_upload_l_i5 {
  5716. background-image: url("../../assets/icon/word.png");
  5717. width: 24px;
  5718. height: 24px;
  5719. background-size: 100% 100%;
  5720. }
  5721. .chapter_upload_l_i8 {
  5722. background-image: url("../../assets/icon/line.png");
  5723. width: 24px;
  5724. height: 24px;
  5725. background-size: 100% 100%;
  5726. }
  5727. .chapter_upload_ud {
  5728. display: flex;
  5729. flex-direction: column;
  5730. margin-left: 5px;
  5731. justify-content: center;
  5732. }
  5733. .chapter_upload_up {
  5734. background-image: url("../../assets/icon/up.png");
  5735. width: 17px;
  5736. height: 15px;
  5737. background-size: 100% 100%;
  5738. cursor: pointer;
  5739. }
  5740. .chapter_upload_down {
  5741. background-image: url("../../assets/icon/down.png");
  5742. width: 17px;
  5743. height: 15px;
  5744. margin: 2px auto 0 auto;
  5745. background-size: 100% 100%;
  5746. cursor: pointer;
  5747. }
  5748. .addWordStyle {
  5749. display: flex;
  5750. flex-direction: row;
  5751. justify-content: flex-start;
  5752. overflow-x: auto;
  5753. white-space: nowrap;
  5754. flex-wrap: wrap;
  5755. }
  5756. /* table 样式 */
  5757. .cont>>>table {
  5758. border-top: 1px solid #ccc;
  5759. border-left: 1px solid #ccc;
  5760. }
  5761. .cont>>>table td,
  5762. .cont>>>table th {
  5763. border-bottom: 1px solid #ccc;
  5764. border-right: 1px solid #ccc;
  5765. padding: 20px 5px;
  5766. }
  5767. .cont>>>table th {
  5768. border-bottom: 2px solid #ccc;
  5769. text-align: center;
  5770. }
  5771. /* blockquote 样式 */
  5772. .cont>>>blockquote {
  5773. display: block;
  5774. border-left: 8px solid #d0e5f2;
  5775. padding: 5px 10px;
  5776. margin: 10px 0;
  5777. line-height: 1.4;
  5778. font-size: 100%;
  5779. background-color: #f1f1f1;
  5780. }
  5781. /* code 样式 */
  5782. .cont>>>code {
  5783. display: inline-block;
  5784. *display: inline;
  5785. *zoom: 1;
  5786. background-color: #f1f1f1;
  5787. border-radius: 3px;
  5788. padding: 3px 5px;
  5789. margin: 0 3px;
  5790. }
  5791. .cont>>>pre code {
  5792. display: block;
  5793. }
  5794. /* ul ol 样式 */
  5795. .cont>>>ul,
  5796. ol {
  5797. margin: 10px 0 10px 20px;
  5798. }
  5799. .wordbox {
  5800. display: flex;
  5801. flex-wrap: wrap;
  5802. cursor: pointer;
  5803. width: 100%;
  5804. }
  5805. .checkword {
  5806. width: 22px;
  5807. height: 22px;
  5808. margin: 10px auto 0;
  5809. cursor: pointer;
  5810. }
  5811. .checkword img {
  5812. width: 100%;
  5813. }
  5814. .stepBg {
  5815. margin: 0 25px 0 0;
  5816. /* width: 17%; */
  5817. min-width: 300px;
  5818. width: 300px;
  5819. /* border-radius: 10px; */
  5820. display: flex;
  5821. flex-direction: column;
  5822. justify-content: flex-start;
  5823. align-items: center;
  5824. flex-wrap: nowrap;
  5825. background: #fff;
  5826. min-height: 700px;
  5827. height: 100%;
  5828. /* top: 18%; */
  5829. }
  5830. .stepBg>div {
  5831. height: 80px;
  5832. width: 85%;
  5833. cursor: pointer;
  5834. margin: 10px 0;
  5835. border-radius: 10px;
  5836. }
  5837. .first,
  5838. .second,
  5839. .third,
  5840. .four {
  5841. background: #4a83d0;
  5842. height: 90px;
  5843. color: #fff;
  5844. display: flex;
  5845. flex-direction: row;
  5846. align-items: center;
  5847. justify-content: center;
  5848. }
  5849. .first>div:nth-child(1),
  5850. .second>div:nth-child(1),
  5851. .third>div:nth-child(1),
  5852. .four>div:nth-child(1) {
  5853. margin: 5px 10px 0 0;
  5854. width: 2rem;
  5855. }
  5856. .firstNo,
  5857. .secondNo,
  5858. .thirdNo,
  5859. .fourNo {
  5860. background: #e7e7e7;
  5861. color: #adadad;
  5862. display: flex;
  5863. flex-direction: row;
  5864. align-items: center;
  5865. justify-content: center;
  5866. }
  5867. .firstNo>div:nth-child(1),
  5868. .secondNo>div:nth-child(1),
  5869. .thirdNo>div:nth-child(1),
  5870. .fourNo>div:nth-child(1) {
  5871. margin: 5px 10px 0 0;
  5872. width: 2rem;
  5873. }
  5874. .uploadWidth>>>.el-upload {
  5875. width: 60px;
  5876. height: 60px;
  5877. position: relative;
  5878. }
  5879. .addPeople {
  5880. background: #fa6060;
  5881. width: 150px;
  5882. height: 40px;
  5883. color: #fff;
  5884. border-radius: 5px;
  5885. text-align: center;
  5886. line-height: 40px;
  5887. font-size: 14px;
  5888. cursor: pointer;
  5889. margin-top: 20px;
  5890. }
  5891. .kcImg {
  5892. width: 60px;
  5893. margin-left: 10px;
  5894. }
  5895. .zyImg {
  5896. width: 55px;
  5897. margin: 0 10px;
  5898. }
  5899. .deleteZy {
  5900. width: 20px;
  5901. position: absolute;
  5902. top: 5px;
  5903. right: 5px;
  5904. cursor: pointer;
  5905. }
  5906. .kcImg>img,
  5907. .zyImg>img,
  5908. .deleteZy>img {
  5909. width: 100%;
  5910. height: 100%;
  5911. }
  5912. .zyBox {
  5913. display: flex;
  5914. flex-direction: row;
  5915. align-items: center;
  5916. background: #67d37d;
  5917. color: #fff;
  5918. width: 210px;
  5919. margin: 20px 20px 0 0;
  5920. border-radius: 10px;
  5921. height: 70px;
  5922. position: relative;
  5923. }
  5924. .upCss {
  5925. display: flex;
  5926. flex-direction: row;
  5927. justify-content: flex-start;
  5928. }
  5929. .upCss>>>.el-icon-plus {
  5930. position: none !important;
  5931. width: 200px;
  5932. height: 100px;
  5933. display: flex;
  5934. flex-wrap: nowrap;
  5935. flex-direction: column;
  5936. align-items: center;
  5937. justify-content: center;
  5938. border: 1px dashed #ccc;
  5939. min-width: 78px;
  5940. min-height: 100px;
  5941. z-index: 999;
  5942. }
  5943. .upCss>>>.el-upload-list__item-name {
  5944. width: 100px;
  5945. white-space: nowrap;
  5946. overflow: hidden;
  5947. text-overflow: ellipsis;
  5948. }
  5949. .addStageImg {
  5950. min-width: 25px;
  5951. min-height: 25px;
  5952. width: 25px;
  5953. height: 25px;
  5954. cursor: pointer;
  5955. }
  5956. .addHW {
  5957. width: 28px;
  5958. height: 28px;
  5959. cursor: pointer;
  5960. }
  5961. .addStageImg>img,
  5962. .addHW>img {
  5963. width: 100%;
  5964. height: 100%;
  5965. }
  5966. .addNewPP>>>.el-dialog__body {
  5967. padding: 5px 20px;
  5968. }
  5969. .isHeight {
  5970. height: 680px;
  5971. }
  5972. .toolChoose {
  5973. display: flex;
  5974. /* width: 100%; */
  5975. flex-direction: row;
  5976. flex-wrap: wrap;
  5977. }
  5978. .tool {
  5979. display: flex;
  5980. flex-direction: column;
  5981. flex-wrap: nowrap;
  5982. width: fit-content;
  5983. margin: 10px 0 10px 0;
  5984. align-items: center;
  5985. }
  5986. .tool+.tool {
  5987. margin-right: 45px;
  5988. }
  5989. .whiteBIcon {
  5990. width: 80px;
  5991. cursor: pointer;
  5992. display: flex;
  5993. flex-direction: column;
  5994. flex-wrap: nowrap;
  5995. align-items: center;
  5996. }
  5997. .whiteBIcon>img,
  5998. .toolIcon>img,
  5999. .arrow>img {
  6000. width: 100%;
  6001. height: 100%;
  6002. }
  6003. .check img {
  6004. width: 20px;
  6005. height: 20px;
  6006. }
  6007. .whiteBIcon>img {
  6008. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  6009. border-radius: 15px;
  6010. }
  6011. .check {
  6012. /* width: 20px;
  6013. height: 20px; */
  6014. cursor: pointer;
  6015. margin: 10px 0;
  6016. }
  6017. .checkDiv {
  6018. display: flex;
  6019. align-items: center;
  6020. }
  6021. .checkDiv span {
  6022. margin-left: 5px;
  6023. color: #858585;
  6024. }
  6025. .customWidth>>>.el-dialog {
  6026. min-width: 500px !important;
  6027. }
  6028. .a_addBox {
  6029. margin: 10px 0;
  6030. background: #fff;
  6031. padding: 15px;
  6032. max-height: 600px;
  6033. overflow: auto;
  6034. }
  6035. .a_add_box {
  6036. border-bottom: 2px solid #eee;
  6037. padding-bottom: 10px;
  6038. }
  6039. .a_add_head {
  6040. display: flex;
  6041. align-items: center;
  6042. justify-content: space-between;
  6043. margin: 10px 0;
  6044. font-size: 18px;
  6045. }
  6046. .a_add_checkType {
  6047. margin-top: 10px;
  6048. display: flex;
  6049. font-size: 16px;
  6050. }
  6051. .a_add_checkType span {
  6052. box-sizing: border-box;
  6053. padding: 0 0 5px 0;
  6054. cursor: pointer;
  6055. }
  6056. .a_add_checkType span+span {
  6057. margin-left: 10px;
  6058. }
  6059. .a_add_checkType .active {
  6060. border-bottom: 2px solid #409eff;
  6061. color: #409eff;
  6062. }
  6063. .a_add_head .a_add_head_input {
  6064. width: 300px;
  6065. }
  6066. .a_add_head .a_add_head_div {
  6067. display: flex;
  6068. align-items: center;
  6069. justify-content: space-between;
  6070. }
  6071. .a_add_body {
  6072. display: flex;
  6073. /* align-items: center; */
  6074. align-items: flex-end;
  6075. }
  6076. .a_add_input {
  6077. display: flex;
  6078. align-items: center;
  6079. flex-wrap: wrap;
  6080. }
  6081. .a_add_input_choice {
  6082. flex-direction: column;
  6083. margin-right: 10px;
  6084. }
  6085. .a_add_input_choice>>>.el-radio {
  6086. display: flex;
  6087. align-items: center;
  6088. flex-direction: row-reverse;
  6089. margin: 10px 0 0 0;
  6090. }
  6091. .a_add_input_choice>>>.el-checkbox {
  6092. display: flex;
  6093. align-items: center;
  6094. flex-direction: row-reverse;
  6095. margin: 10px 0 0 0;
  6096. }
  6097. .width100 {
  6098. width: 100%;
  6099. }
  6100. .a_add_input .a_add_persent {
  6101. width: 100%;
  6102. }
  6103. .a_add_persent_div {
  6104. width: 100%;
  6105. display: flex;
  6106. align-items: center;
  6107. }
  6108. .a_add_persent_div span {
  6109. margin: 5px 0;
  6110. }
  6111. .a_add_persent_div span:nth-child(1) {
  6112. width: 30%;
  6113. }
  6114. .a_add_persent_div span:nth-child(2) {
  6115. width: 7%;
  6116. }
  6117. .a_add_persent_div span:nth-child(3) {
  6118. width: 40%;
  6119. }
  6120. .a_add_body_div {
  6121. display: flex;
  6122. align-items: center;
  6123. justify-content: center;
  6124. /* flex-direction: column; */
  6125. }
  6126. .all_choose {
  6127. display: flex;
  6128. flex-direction: row;
  6129. align-items: flex-start;
  6130. width: 100%;
  6131. }
  6132. .all_choose>span {
  6133. width: 100px;
  6134. display: block;
  6135. letter-spacing: 14px;
  6136. white-space: nowrap;
  6137. overflow: hidden;
  6138. text-overflow: ellipsis;
  6139. }
  6140. .all_choose>>>.el-checkbox-group {
  6141. display: flex;
  6142. flex-direction: row;
  6143. width: 100%;
  6144. flex-wrap: wrap;
  6145. align-content: center;
  6146. justify-content: flex-start;
  6147. align-items: center;
  6148. margin-top: 3px;
  6149. }
  6150. .all_choose>.el-checkbox-group>>>.el-checkbox {
  6151. margin-bottom: 10px;
  6152. display: flex;
  6153. flex-direction: row;
  6154. align-items: center;
  6155. }
  6156. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  6157. min-width: 80px;
  6158. overflow: hidden;
  6159. width: 80px;
  6160. text-overflow: ellipsis;
  6161. white-space: nowrap;
  6162. }
  6163. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  6164. width: auto;
  6165. }
  6166. .choose>div:nth-child(3)>span {
  6167. letter-spacing: 0 !important;
  6168. }
  6169. .choose {
  6170. display: flex;
  6171. flex-direction: column;
  6172. flex-wrap: nowrap;
  6173. height: 100%;
  6174. justify-content: space-evenly;
  6175. align-items: flex-start;
  6176. }
  6177. .both {
  6178. display: flex;
  6179. flex-direction: row;
  6180. flex-wrap: wrap;
  6181. width: 100%;
  6182. align-items: center;
  6183. justify-content: flex-start;
  6184. margin: 30px 0;
  6185. }
  6186. .notice>>>.el-dialog {
  6187. width: 500px !important;
  6188. text-align: center;
  6189. }
  6190. .notice>>>.el-button {
  6191. margin-top: 20px;
  6192. }
  6193. .whiteBg {
  6194. background: #fff;
  6195. border-radius: 10px;
  6196. }
  6197. .chooseWho {
  6198. display: flex;
  6199. width: 380px;
  6200. flex-direction: row;
  6201. flex-wrap: nowrap;
  6202. justify-content: space-between;
  6203. padding-bottom: 10px;
  6204. }
  6205. .chooseWho>div {
  6206. cursor: pointer;
  6207. padding-bottom: 10px;
  6208. font-weight: bold;
  6209. }
  6210. .isChooseActive {
  6211. color: #3e88f4;
  6212. border-bottom: 2px solid #2f80f3;
  6213. }
  6214. .toolSort {
  6215. display: flex;
  6216. flex-direction: row;
  6217. flex-wrap: wrap;
  6218. justify-content: flex-start;
  6219. align-items: flex-start;
  6220. }
  6221. .toolSort>div {
  6222. margin-right: 45px;
  6223. }
  6224. .tools {
  6225. width: 100%;
  6226. display: flex;
  6227. flex-direction: column;
  6228. flex-wrap: nowrap;
  6229. align-items: flex-start;
  6230. }
  6231. .leftTools,
  6232. .rightTools {
  6233. width: 50%;
  6234. }
  6235. .rightTools {
  6236. display: flex;
  6237. flex-direction: row;
  6238. flex-wrap: nowrap;
  6239. justify-content: space-around;
  6240. }
  6241. .firstToolList {
  6242. display: flex;
  6243. flex-direction: column;
  6244. flex-wrap: nowrap;
  6245. align-items: center;
  6246. }
  6247. .iconList {
  6248. display: flex;
  6249. flex-direction: row;
  6250. flex-wrap: wrap;
  6251. justify-content: flex-start;
  6252. align-items: center;
  6253. margin: 20px 0 5px 0;
  6254. width: 240px;
  6255. min-width: 240px;
  6256. }
  6257. .iconTool {
  6258. display: flex;
  6259. flex-direction: column;
  6260. flex-wrap: nowrap;
  6261. align-items: center;
  6262. justify-content: flex-start;
  6263. margin: 15px 10px;
  6264. }
  6265. .toolIcon {
  6266. width: 50px;
  6267. }
  6268. .taskBorder {
  6269. border: 1px solid #e1e1e1;
  6270. border-radius: 10px;
  6271. margin-top: 20px;
  6272. min-height: 1160px;
  6273. position: relative;
  6274. background: #fbfbfb;
  6275. }
  6276. .smallTaskBorder {
  6277. height: 170px;
  6278. min-height: 170px !important;
  6279. overflow: hidden;
  6280. }
  6281. .taskBorder>div {
  6282. padding: 30px 0 10px 30px;
  6283. }
  6284. .addTaskBorder {
  6285. border: 2px solid #e1e1e1;
  6286. border-radius: 10px;
  6287. margin-top: 25px;
  6288. cursor: pointer;
  6289. }
  6290. .addTaskBorder>div {
  6291. margin: 0 auto;
  6292. display: flex;
  6293. align-items: center;
  6294. justify-content: center;
  6295. }
  6296. .addTaskBorder>div>img {
  6297. width: 100px;
  6298. }
  6299. .addTaskBorder>div>span {
  6300. font-size: 23px;
  6301. color: #dbdbdb;
  6302. }
  6303. .funBlock {
  6304. display: flex;
  6305. padding: 15px 0;
  6306. flex-direction: row;
  6307. justify-content: flex-end;
  6308. align-items: center;
  6309. position: absolute;
  6310. right: 15px;
  6311. bottom: 35px;
  6312. }
  6313. .fold {
  6314. display: flex;
  6315. margin: 0 10px;
  6316. flex-direction: row;
  6317. align-items: center;
  6318. cursor: pointer;
  6319. }
  6320. .arrow {
  6321. width: 15px;
  6322. height: 15px;
  6323. margin-left: 10px;
  6324. }
  6325. .addToolFun {
  6326. display: flex;
  6327. width: 150px;
  6328. flex-direction: row;
  6329. align-items: center;
  6330. justify-content: center;
  6331. border: 1px dashed;
  6332. border-radius: 5px;
  6333. height: 50px;
  6334. margin: 35px auto 0;
  6335. cursor: pointer;
  6336. }
  6337. .addToolImg {
  6338. width: 30px;
  6339. height: 30px;
  6340. margin-right: 20px;
  6341. }
  6342. .addToolsDia>>>.el-dialog__body {
  6343. padding: 20px;
  6344. }
  6345. .addToolsDia>>>.el-dialog__body>.toolChoose {
  6346. padding: 0;
  6347. }
  6348. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  6349. padding: 0;
  6350. border-bottom: none;
  6351. margin-bottom: 0;
  6352. }
  6353. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  6354. width: 100%;
  6355. }
  6356. .lineCss>>>.el-form-item__label {
  6357. width: auto !important;
  6358. }
  6359. .lineCss>>>.el-form-item__content {
  6360. margin-left: 50px !important;
  6361. }
  6362. .newSteps {
  6363. display: flex;
  6364. width: 100% !important;
  6365. height: 80px;
  6366. cursor: pointer;
  6367. margin: 10px 0;
  6368. border-radius: 10px;
  6369. flex-direction: row;
  6370. align-content: center;
  6371. justify-content: center;
  6372. align-items: center;
  6373. margin: 0 !important;
  6374. }
  6375. /* 评价样式 */
  6376. .elist_css {
  6377. padding-bottom: 60px !important;
  6378. }
  6379. .elist_title {
  6380. margin-bottom: 10px;
  6381. }
  6382. .elist_input {}
  6383. .elist_input_box {
  6384. display: flex;
  6385. align-items: center;
  6386. flex-wrap: wrap;
  6387. }
  6388. .elist_input_box+.elist_input_box {
  6389. margin-top: 30px;
  6390. }
  6391. .elist_input .elist_input_box input {
  6392. font: inherit;
  6393. color: currentColor;
  6394. /* width: 200px; */
  6395. max-width: 200px;
  6396. padding: 8px 14px;
  6397. display: block;
  6398. min-width: 0;
  6399. outline: none;
  6400. border: 1px solid rgba(0, 0, 0, 0.23);
  6401. border-radius: 4px;
  6402. box-sizing: border-box;
  6403. background: #fff;
  6404. margin: 0 20px 0 0;
  6405. }
  6406. .elist_input .elist_input_box span {
  6407. height: 36px;
  6408. line-height: 36px;
  6409. color: rgb(82, 82, 82);
  6410. min-width: 80px;
  6411. }
  6412. .elist_input .elist_input_box .remove {
  6413. height: 20px;
  6414. width: 20px;
  6415. background-size: 100% 100%;
  6416. background-position: unset;
  6417. margin-left: 5px;
  6418. }
  6419. .elist_input_box>>>.el-rate {
  6420. display: flex;
  6421. height: 36px;
  6422. align-items: center;
  6423. }
  6424. .elist_input_box .elist_inptu_text {
  6425. width: 100%;
  6426. display: flex;
  6427. align-items: center;
  6428. margin-top: 10px;
  6429. }
  6430. .elist_input_box .elist_inptu_text input {
  6431. /* width: 500px; */
  6432. width: 100%;
  6433. max-width: unset;
  6434. }
  6435. .elist_input_box>>>.el-rate__icon {
  6436. font-size: 24px;
  6437. }
  6438. .elist_btn {
  6439. margin-top: 10px;
  6440. }
  6441. .lineTitle {
  6442. margin-top: 15px;
  6443. width: 110px;
  6444. }
  6445. .courseTop {
  6446. display: flex;
  6447. flex-direction: row;
  6448. justify-content: flex-start;
  6449. align-items: center;
  6450. /* width: 100%; */
  6451. width: calc(100% - 20px);
  6452. /* background: rgb(255, 255, 255); */
  6453. /* border-radius: 10px; */
  6454. padding: 20px 0;
  6455. }
  6456. .stepsNav {
  6457. display: flex;
  6458. flex-direction: row;
  6459. justify-content: flex-start;
  6460. align-items: center;
  6461. }
  6462. .stepsWord {
  6463. font-size: 18px;
  6464. color: #fff;
  6465. font-weight: bold;
  6466. margin-left: auto;
  6467. background: rgb(15, 126, 255);
  6468. border-radius: 5px;
  6469. padding: 3px 25px;
  6470. box-sizing: border-box;
  6471. }
  6472. .rightBox {
  6473. width: calc(100% - 20px);
  6474. background: rgb(255, 255, 255);
  6475. border-radius: 10px;
  6476. overflow: auto;
  6477. height: calc(100% - 130px);
  6478. position: relative;
  6479. }
  6480. .e_add_top {
  6481. display: flex;
  6482. justify-content: space-between;
  6483. padding: 20px 20px 0 20px;
  6484. border-radius: 3px;
  6485. background: #fff;
  6486. }
  6487. .e_add_title2 {
  6488. display: flex;
  6489. align-items: center;
  6490. }
  6491. .e_add_title2 span {
  6492. width: 40px;
  6493. }
  6494. .e_add_title {
  6495. display: flex;
  6496. align-items: center;
  6497. color: #b8b8b8;
  6498. font-size: 18px;
  6499. position: relative;
  6500. height: 40px;
  6501. }
  6502. .e_add_title span {
  6503. margin-right: 10px;
  6504. }
  6505. .e_add_title .el_input {
  6506. width: 300px;
  6507. }
  6508. .e_add_title>>>.el-input__inner {
  6509. width: 400px;
  6510. }
  6511. .e_add_btn {}
  6512. .e_add_content {
  6513. display: flex;
  6514. width: 100%;
  6515. }
  6516. .e_add_list {
  6517. background: #fff;
  6518. height: 500px;
  6519. width: 210px;
  6520. position: relative;
  6521. margin: 15px 5px 0 0;
  6522. flex-shrink: 0;
  6523. display: flex;
  6524. flex-direction: column;
  6525. }
  6526. .e_add_list_title {
  6527. font-size: 20px;
  6528. width: 100%;
  6529. box-sizing: border-box;
  6530. padding: 15px 40px;
  6531. text-align: center;
  6532. border-bottom: 1px solid #eaeaea;
  6533. position: relative;
  6534. display: flex;
  6535. align-items: center;
  6536. justify-content: center;
  6537. height: 57px;
  6538. background: #f6f6f6;
  6539. }
  6540. .e_add_list_title span {
  6541. overflow: hidden;
  6542. white-space: nowrap;
  6543. text-overflow: ellipsis;
  6544. }
  6545. .e_add_list_title img {
  6546. position: absolute;
  6547. right: 15px;
  6548. width: 25px;
  6549. cursor: pointer;
  6550. top: 50%;
  6551. transform: translateY(-50%);
  6552. }
  6553. .e_add_list_body {
  6554. height: calc(100% - 187px);
  6555. overflow: auto;
  6556. }
  6557. .e_add_list_child {
  6558. width: 100%;
  6559. display: flex;
  6560. align-items: center;
  6561. justify-content: center;
  6562. position: relative;
  6563. box-sizing: border-box;
  6564. padding: 15px 40px;
  6565. text-align: center;
  6566. }
  6567. .e_add_list_child span {
  6568. overflow: hidden;
  6569. white-space: nowrap;
  6570. text-overflow: ellipsis;
  6571. cursor: pointer;
  6572. }
  6573. .e_add_list_child img {
  6574. position: absolute;
  6575. right: 10px;
  6576. width: 21px;
  6577. cursor: pointer;
  6578. top: 50%;
  6579. transform: translateY(-50%);
  6580. }
  6581. .e_add_list_child+.e_add_list_child {
  6582. border-top: 1px solid #eaeaea;
  6583. }
  6584. .e_add_list_child .active {
  6585. color: #409eff;
  6586. }
  6587. .e_add_list_btn {
  6588. position: absolute;
  6589. bottom: 0;
  6590. height: 50px;
  6591. background: rgb(120, 120, 254);
  6592. width: 100%;
  6593. color: #fff;
  6594. font-size: 16px;
  6595. text-align: center;
  6596. line-height: 50px;
  6597. cursor: pointer;
  6598. }
  6599. .e_add_list_detail {
  6600. position: absolute;
  6601. bottom: 0;
  6602. height: 130px;
  6603. background: rgb(120, 120, 254);
  6604. width: 100%;
  6605. color: #fff;
  6606. font-size: 16px;
  6607. display: flex;
  6608. align-items: center;
  6609. justify-content: center;
  6610. }
  6611. .e_add_list_detail textarea {
  6612. height: 90%;
  6613. width: 95%;
  6614. border: none;
  6615. resize: none;
  6616. outline: none;
  6617. padding: 5px;
  6618. box-sizing: border-box;
  6619. }
  6620. .e_add_list_pbox {
  6621. width: 100%;
  6622. }
  6623. .e_add_list_pbox_title {
  6624. height: 50px;
  6625. background: #fff;
  6626. display: flex;
  6627. align-items: center;
  6628. width: 100%;
  6629. box-sizing: border-box;
  6630. padding: 0 20px;
  6631. flex-direction: row;
  6632. flex-wrap: wrap;
  6633. }
  6634. .type_title {
  6635. font-size: 18px;
  6636. font-weight: 700;
  6637. }
  6638. .type_content {
  6639. font-size: 16px;
  6640. margin-left: 30px;
  6641. }
  6642. .type_content span+span {
  6643. margin-left: 20px;
  6644. }
  6645. .type_content span {
  6646. cursor: pointer;
  6647. padding-bottom: 5px;
  6648. box-sizing: border-box;
  6649. }
  6650. .type_content .active {
  6651. color: #409eff;
  6652. border-bottom: 2px solid #409eff;
  6653. }
  6654. .e_add_list_pbox_content {
  6655. height: calc(100% - 50px);
  6656. display: flex;
  6657. align-items: center;
  6658. width: 100%;
  6659. background: #fff;
  6660. }
  6661. .mbCss {
  6662. width: 100%;
  6663. display: flex;
  6664. flex-direction: row;
  6665. flex-wrap: nowrap;
  6666. align-content: center;
  6667. align-items: flex-start;
  6668. justify-content: flex-start;
  6669. }
  6670. .pjCss {
  6671. /* width: 42%; */
  6672. width: calc(100% - 55%);
  6673. display: flex;
  6674. flex-direction: column;
  6675. flex-wrap: nowrap;
  6676. align-items: flex-start;
  6677. margin-top: 1.5%;
  6678. }
  6679. .e_box {
  6680. display: flex;
  6681. flex-wrap: wrap;
  6682. max-height: 500px;
  6683. align-items: flex-start;
  6684. overflow: auto;
  6685. }
  6686. .e_card {
  6687. border: 1px solid #ccc;
  6688. background: #fff;
  6689. margin-right: 20px;
  6690. width: 270px;
  6691. display: flex;
  6692. flex-direction: column;
  6693. align-items: center;
  6694. border-radius: 5px;
  6695. margin-top: 10px;
  6696. text-align: center;
  6697. }
  6698. .e_card_picture {
  6699. margin: 10px 0;
  6700. }
  6701. .e_card_picture>img {
  6702. width: 50px;
  6703. }
  6704. .e_card_name {
  6705. width: 100%;
  6706. padding: 0 10px;
  6707. box-sizing: border-box;
  6708. margin-bottom: 10px;
  6709. overflow: hidden;
  6710. text-overflow: ellipsis;
  6711. white-space: nowrap;
  6712. }
  6713. .e_card_time {
  6714. width: 100%;
  6715. padding: 0 10px;
  6716. box-sizing: border-box;
  6717. font-size: 15px;
  6718. color: #c3c3c3;
  6719. margin-bottom: 10px;
  6720. }
  6721. .e_card_btn {
  6722. height: 40px;
  6723. display: flex;
  6724. align-items: center;
  6725. width: 100%;
  6726. background: rgb(244, 244, 244);
  6727. }
  6728. .e_card_btn:hover {
  6729. background: rgb(221 221 221);
  6730. }
  6731. .e_card_btn span {
  6732. flex: 1 1 auto;
  6733. text-align: center;
  6734. cursor: pointer;
  6735. }
  6736. .addEva {
  6737. border: 1px solid #ccc;
  6738. background: #fff;
  6739. margin-right: 20px;
  6740. width: 270px;
  6741. height: 149px;
  6742. display: flex;
  6743. flex-direction: column;
  6744. align-items: center;
  6745. border-radius: 5px;
  6746. margin-top: 10px;
  6747. text-align: center;
  6748. cursor: pointer;
  6749. justify-content: center;
  6750. }
  6751. .addEva>img {
  6752. width: 50px;
  6753. object-fit: cover;
  6754. }
  6755. .uploadFm {
  6756. border: 1px dashed #ccc;
  6757. width: 202px;
  6758. height: 102px;
  6759. position: relative;
  6760. cursor: pointer;
  6761. }
  6762. .uploadFm>img {
  6763. position: absolute;
  6764. top: 25px;
  6765. left: 35%;
  6766. width: 50px;
  6767. }
  6768. .fileCss {
  6769. width: 100%;
  6770. display: flex;
  6771. flex-direction: row;
  6772. flex-wrap: nowrap;
  6773. justify-content: space-around;
  6774. align-items: center;
  6775. padding-top: 15px;
  6776. }
  6777. .sysPicBox {
  6778. display: flex;
  6779. flex-direction: row;
  6780. flex-wrap: wrap;
  6781. align-content: flex-start;
  6782. height: 435px;
  6783. overflow: auto;
  6784. }
  6785. .sysPic {
  6786. width: 200px;
  6787. height: 115px;
  6788. margin: 0 20px 20px 0;
  6789. cursor: pointer;
  6790. }
  6791. .sysPic>img,
  6792. .isSysPic>img,
  6793. .deletePic>img {
  6794. width: 100%;
  6795. height: 100%;
  6796. object-fit: cover;
  6797. }
  6798. .isSysPic {
  6799. width: 200px;
  6800. height: 115px;
  6801. position: relative;
  6802. }
  6803. .deletePic {
  6804. width: 20px;
  6805. height: 20px;
  6806. position: absolute;
  6807. top: 0;
  6808. right: 0;
  6809. cursor: pointer;
  6810. }
  6811. .select_box1 {}
  6812. .select_box1_img {
  6813. background: #fff;
  6814. border-radius: 5px;
  6815. padding: 15px;
  6816. box-sizing: border-box;
  6817. margin-bottom: 20px;
  6818. }
  6819. .select_box1_title {
  6820. padding: 0 0 15px 0;
  6821. border-bottom: 1px solid #eee;
  6822. margin-bottom: 15px;
  6823. }
  6824. .select_box1_title span:nth-child(1) {
  6825. font-size: 16px;
  6826. margin-right: 20px;
  6827. color: #000;
  6828. }
  6829. .select_box1_title span:nth-child(2) {
  6830. font-size: 14px;
  6831. color: rgb(112, 112, 112);
  6832. }
  6833. .select_box1_add_img {}
  6834. .select_box1_select {
  6835. background: #fff;
  6836. border-radius: 5px;
  6837. padding: 15px;
  6838. box-sizing: border-box;
  6839. }
  6840. .select_box2 {}
  6841. .select_box2_title {
  6842. background: #fff;
  6843. border-radius: 5px;
  6844. padding: 5px 10px;
  6845. box-sizing: border-box;
  6846. margin-bottom: 10px;
  6847. }
  6848. .select_box2_box {
  6849. display: flex;
  6850. height: 500px;
  6851. }
  6852. .select_box2_img {
  6853. width: calc(100% - 310px);
  6854. height: 100%;
  6855. overflow: auto;
  6856. background: #fff;
  6857. border-radius: 5px;
  6858. }
  6859. .select_box2_img img {
  6860. width: 100%;
  6861. }
  6862. .select_box2_answer {
  6863. background: #fff;
  6864. margin-left: 10px;
  6865. border-radius: 5px;
  6866. width: 300px;
  6867. overflow: auto;
  6868. height: 100%;
  6869. display: flex;
  6870. flex-direction: column;
  6871. align-items: center;
  6872. padding-top: 10px;
  6873. box-sizing: border-box;
  6874. }
  6875. .select_box2_answer_box {
  6876. margin: 0 0 10px 0;
  6877. width: 85%;
  6878. }
  6879. .rate_textarea {
  6880. font: inherit;
  6881. color: currentColor;
  6882. width: 100%;
  6883. padding: 8px 14px;
  6884. display: block;
  6885. min-width: 0;
  6886. outline: none;
  6887. border: 1px solid rgba(0, 0, 0, 0.23);
  6888. border-radius: 4px;
  6889. box-sizing: border-box;
  6890. background: #fff;
  6891. margin: 0 20px 0 0;
  6892. resize: none;
  6893. }
  6894. .select_answer_title {
  6895. text-align: left;
  6896. width: 85%;
  6897. margin-bottom: 10px;
  6898. font-size: 18px;
  6899. color: #8e8e8e;
  6900. }
  6901. .mask {
  6902. background-color: rgb(0 0 0 / 30%);
  6903. /* position: fixed; */
  6904. position: absolute;
  6905. top: 0;
  6906. left: 0;
  6907. width: 100%;
  6908. height: 100%;
  6909. z-index: 90;
  6910. display: flex;
  6911. align-items: center;
  6912. justify-content: center;
  6913. }
  6914. .progressBox {
  6915. width: 300px;
  6916. height: 150px;
  6917. background: #fff;
  6918. border-radius: 10px;
  6919. box-shadow: 0 0 6px 1px #bfbfbf;
  6920. display: flex;
  6921. align-items: center;
  6922. justify-content: center;
  6923. flex-direction: column;
  6924. }
  6925. .progressBox .lbox {
  6926. height: 100px;
  6927. font-size: 16px;
  6928. display: flex;
  6929. align-items: center;
  6930. }
  6931. .progressBox .lbox img {
  6932. width: 40px;
  6933. margin-right: 20px;
  6934. }
  6935. .progressBox>>>.el-progress-bar__outer {
  6936. background-color: #d1dfff !important;
  6937. }
  6938. .progressBox .lbox {
  6939. height: 100px;
  6940. font-size: 19px;
  6941. display: flex;
  6942. align-items: center;
  6943. }
  6944. .progressBox .lbox img {
  6945. width: 40px;
  6946. margin-right: 20px;
  6947. }
  6948. .updateTips::after {
  6949. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  6950. font-size: 14px;
  6951. margin-left: 20px;
  6952. font-weight: 400;
  6953. color: #ff3a3a;
  6954. }
  6955. .updateMask {
  6956. width: 100%;
  6957. z-index: 3;
  6958. top: 0;
  6959. position: absolute;
  6960. }
  6961. .t_j_box {
  6962. display: flex;
  6963. }
  6964. .t_j_box span:nth-child(1) {
  6965. width: 15%;
  6966. overflow: hidden;
  6967. margin-right: 10px;
  6968. text-overflow: ellipsis;
  6969. white-space: nowrap;
  6970. }
  6971. .t_j_box span:nth-child(2) {
  6972. width: 30%;
  6973. overflow: hidden;
  6974. text-overflow: ellipsis;
  6975. margin-right: 10px;
  6976. }
  6977. .t_j_box span:nth-child(3) {
  6978. width: calc(55% - 20px);
  6979. overflow: hidden;
  6980. text-overflow: ellipsis;
  6981. }
  6982. .sentenBox {
  6983. background: #fff;
  6984. height: 600px;
  6985. overflow: auto;
  6986. background-image: url("../../assets/icon/conSentences/csBg.png");
  6987. background-position: 102%;
  6988. background-repeat: no-repeat;
  6989. background-size: 60%;
  6990. }
  6991. .addSen {
  6992. background: #409efe;
  6993. width: 90px;
  6994. color: #fff;
  6995. height: 35px;
  6996. text-align: center;
  6997. line-height: 35px;
  6998. border-radius: 5px;
  6999. float: right;
  7000. margin: 10px 20px 0 0;
  7001. cursor: pointer;
  7002. }
  7003. .sentenTop {
  7004. display: flex;
  7005. flex-direction: row;
  7006. flex-wrap: nowrap;
  7007. align-items: center;
  7008. }
  7009. .sentenTop>div:nth-child(2) {
  7010. width: 300px;
  7011. margin: 0 15px;
  7012. }
  7013. .sentenTop>div:nth-child(3) {
  7014. background: #409efe;
  7015. color: #fff;
  7016. width: 65px;
  7017. height: 35px;
  7018. text-align: center;
  7019. line-height: 35px;
  7020. border-radius: 5px;
  7021. cursor: pointer;
  7022. }
  7023. .cardList {
  7024. padding: 30px 0 20px 0;
  7025. display: flex;
  7026. flex-direction: row;
  7027. flex-wrap: wrap;
  7028. align-items: center;
  7029. box-sizing: border-box;
  7030. border-bottom: 1px solid #f4f4f4;
  7031. width: 98%;
  7032. margin: 0 auto;
  7033. }
  7034. .cardBox {
  7035. display: flex;
  7036. flex-direction: row;
  7037. flex-wrap: wrap;
  7038. align-items: center;
  7039. align-content: center;
  7040. }
  7041. .isCard,
  7042. .isCard1 {
  7043. width: 140px;
  7044. height: 65px;
  7045. text-align: center;
  7046. line-height: 65px;
  7047. font-size: 20px;
  7048. cursor: pointer;
  7049. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  7050. background-size: cover;
  7051. position: relative;
  7052. z-index: 99;
  7053. }
  7054. .isCard1 {
  7055. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  7056. }
  7057. .isCard:hover .deleteWord {
  7058. display: block;
  7059. }
  7060. .isCard>div:nth-child(1),
  7061. .isCard1>div:nth-child(1) {
  7062. white-space: nowrap;
  7063. overflow: hidden;
  7064. text-overflow: ellipsis;
  7065. width: 80%;
  7066. margin: 0 auto;
  7067. }
  7068. .card {
  7069. width: 140px;
  7070. height: 65px;
  7071. }
  7072. .card>img {
  7073. width: 100%;
  7074. height: 100%;
  7075. }
  7076. .rightCardBox {
  7077. margin: 10px 0 0 10px;
  7078. }
  7079. .rightCardBox>div:nth-child(1) {
  7080. margin-bottom: 10px;
  7081. }
  7082. .cardCss {
  7083. display: flex;
  7084. flex-direction: column;
  7085. flex-wrap: nowrap;
  7086. align-items: center;
  7087. border-bottom: 3px solid #b4c3d3;
  7088. padding: 0 0 5px 0;
  7089. margin-right: 10px;
  7090. }
  7091. .cardCss>div:nth-child(2) {
  7092. background: #5b7b9d;
  7093. color: #fff;
  7094. width: 20px;
  7095. height: 20px;
  7096. border-radius: 50%;
  7097. text-align: center;
  7098. line-height: 20px;
  7099. }
  7100. .sentenTopBox {
  7101. display: flex;
  7102. flex-direction: row;
  7103. flex-wrap: nowrap;
  7104. align-items: center;
  7105. justify-content: space-between;
  7106. padding: 55px 0 0 20px;
  7107. box-sizing: border-box;
  7108. width: 85%;
  7109. }
  7110. </style>