addCourse.vue 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative">
  4. <div class="right">
  5. <div
  6. style="
  7. display: flex;
  8. flex-direction: row;
  9. justify-content: flex-start;
  10. align-items: center;
  11. width: 100%;
  12. background: #fff;
  13. border-radius: 10px;
  14. "
  15. >
  16. <div
  17. style="
  18. display: flex;
  19. flex-direction: row;
  20. justify-content: flex-start;
  21. align-items: center;
  22. border-radius: 80px;
  23. box-shadow: 0px 1px 2px 3px #f2f2f2;
  24. margin: 30px 20px 20px 45px;
  25. min-width: 420px;
  26. "
  27. >
  28. <h3 class="info_title" v-if="steps == 1">项目内容填写</h3>
  29. <h3 class="info_title" v-if="steps == 2">请选择文档模板</h3>
  30. <h3 class="info_title" v-if="steps == 3">项目内容填写</h3>
  31. <h3 class="info_title" v-if="steps == 4">上传项目</h3>
  32. <el-breadcrumb
  33. separator-class="el-icon-arrow-right"
  34. style="margin-top: 15px"
  35. >
  36. <el-breadcrumb-item
  37. :to="{ path: '/course?userid=' + userid + '&oid=' + oid }"
  38. >项目管理</el-breadcrumb-item
  39. >
  40. <el-breadcrumb-item>添加项目</el-breadcrumb-item>
  41. </el-breadcrumb>
  42. </div>
  43. <div
  44. v-if="steps == 1 || steps == 2 || steps == 3"
  45. style="
  46. font-size: 25px;
  47. color: #dedede;
  48. font-weight: bold;
  49. margin-left: auto;
  50. margin-right: 2%;
  51. "
  52. >
  53. {{
  54. steps == 1
  55. ? "第一步"
  56. : steps == 2
  57. ? "第二步"
  58. : steps == 3
  59. ? "第三步"
  60. : ""
  61. }}
  62. </div>
  63. </div>
  64. <div style="display: flex; margin-top: 20px">
  65. <div class="stepBg" :class="steps == 3 ? 'isHeight' : ''">
  66. <div v-if="steps == 1" class="first" @click="navSteps(1)">
  67. <div><img src="../../assets/icon/first.png" alt="" /></div>
  68. <div>填写基本信息</div>
  69. </div>
  70. <div v-else class="firstNo" @click="navSteps(1)">
  71. <div><img src="../../assets/icon/firstNo.png" alt="" /></div>
  72. <div>填写基本信息</div>
  73. </div>
  74. <div v-if="steps == 2" class="second" @click="navSteps(2)">
  75. <div><img src="../../assets/icon/second.png" alt="" /></div>
  76. <div>选择文档模板</div>
  77. </div>
  78. <div v-else class="secondNo" @click="navSteps(2)">
  79. <div><img src="../../assets/icon/secondNo.png" alt="" /></div>
  80. <div>选择文档模板</div>
  81. </div>
  82. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  83. <div><img src="../../assets/icon/third.png" alt="" /></div>
  84. <div>上传项目内容</div>
  85. </div>
  86. <div v-else class="thirdNo" @click="navSteps(3)">
  87. <div><img src="../../assets/icon/thirdNo.png" alt="" /></div>
  88. <div>上传项目内容</div>
  89. </div>
  90. <div v-if="steps == 4" class="four">
  91. <div><img src="../../assets/icon/four.png" alt="" /></div>
  92. <div>上传完成</div>
  93. </div>
  94. <div v-else class="fourNo">
  95. <div><img src="../../assets/icon/fourNo.png" alt="" /></div>
  96. <div>上传完成</div>
  97. </div>
  98. </div>
  99. <div style="width: 100%" v-if="this.steps == 1">
  100. <div class="whiteBg">
  101. <div class="basic_box">
  102. <div class="big_box">
  103. <div class="left_first">
  104. <div>
  105. <div>
  106. <div class="bInfo_title">
  107. <span style="color: red">*</span>项目名称
  108. </div>
  109. <div style="display: flex">
  110. <img
  111. src="../../assets/icon/projectName.png"
  112. alt=""
  113. style="margin-right: 8px"
  114. />
  115. <input
  116. type="text"
  117. placeholder="请输入项目名称"
  118. class="binfo_input"
  119. v-model="courseName"
  120. />
  121. </div>
  122. </div>
  123. <div class="both">
  124. <div class="choose">
  125. <div
  126. class="all_choose"
  127. v-for="(item, index) in CourseType[0]"
  128. :key="index"
  129. >
  130. <span>{{ item.name }}</span>
  131. <!-- <el-select
  132. v-model="courseTypeId[item.id]"
  133. placeholder="请选择"
  134. @change="getTypeName"
  135. >
  136. <el-option
  137. v-for="item1 in CourseTypeJson[item.id]"
  138. :key="item1.id"
  139. :label="item1.name"
  140. :value="item1.id"
  141. >
  142. </el-option>
  143. </el-select> -->
  144. <el-checkbox-group v-model="courseTypeId">
  145. <el-checkbox
  146. v-for="item1 in CourseTypeJson[item.id]"
  147. :key="item1.id"
  148. :label="item1.id"
  149. >{{ item1.name }}</el-checkbox
  150. >
  151. </el-checkbox-group>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="whiteBg" style="border-radius: 0">
  161. <div class="right_first">
  162. <div class="right_title">上传封面与成员</div>
  163. <div
  164. style="
  165. padding: 0 0 50px 0;
  166. display: flex;
  167. align-items: baseline;
  168. justify-content: flex-start;
  169. "
  170. >
  171. <div style="margin: 45px 0px 0px 80px">
  172. <div class="bInfo_title" style="margin-top: 0 !important">
  173. <span style="color: red">*</span>课程封面
  174. </div>
  175. <el-upload
  176. :class="{ disUoloadSty: noneBtnImg }"
  177. class="upCss"
  178. action="#"
  179. list-type="picture"
  180. v-loading="uploadLoading1"
  181. :http-request="beforeUpload1"
  182. ref="upload1"
  183. :on-preview="handlePictureCardPreview"
  184. :on-remove="handle_remove1"
  185. :show-file-list="true"
  186. :file-list="cover"
  187. accept="image/*"
  188. :limit="1"
  189. :on-exceed="onExceed"
  190. >
  191. <i class="el-icon-plus"></i>
  192. </el-upload>
  193. </div>
  194. <div
  195. style="
  196. display: flex;
  197. flex-flow: row nowrap;
  198. flex-direction: row;
  199. align-items: baseline; ;
  200. "
  201. >
  202. <div style="margin: 0 80px">
  203. <div class="bInfo_title">
  204. <span style="color: red">*</span>选择项目成员
  205. </div>
  206. <div
  207. class="addPeople"
  208. @click="addPP"
  209. v-if="this.checkboxList.length == 0"
  210. >
  211. 添加成员
  212. </div>
  213. <div class="addPeople" @click="addPP" v-else>
  214. 已添加,点击查看
  215. </div>
  216. </div>
  217. <div style="flex: 0.5 1 0%; margin-top: 30px">
  218. <div class="bInfo_title">协同编辑</div>
  219. <div
  220. class="addPeople"
  221. @click="dialogVisible4 = true"
  222. style="background: #6b92c9"
  223. >
  224. 添加协同成员
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  232. <div style="width: 55%; padding: 10px 0 10px 80px">
  233. <div class="bInfo_title">
  234. <span style="color: red">*</span>简要描述
  235. </div>
  236. <div>
  237. <textarea
  238. rows="8"
  239. class="binfo_input"
  240. cols=""
  241. v-model="courseText"
  242. ></textarea>
  243. </div>
  244. </div>
  245. <el-switch
  246. v-model="isTeacherSee"
  247. active-text="允许给其他老师查看"
  248. style="margin: 30px 0px 10px 110px; padding-bottom: 30px"
  249. >
  250. </el-switch>
  251. </div>
  252. </div>
  253. <div
  254. style="
  255. width: calc(100% - 17% - 25px);
  256. background: #fff;
  257. border-radius: 10px;
  258. min-height: 550px;
  259. min-width: 800px;
  260. "
  261. v-if="this.steps == 2"
  262. >
  263. <div class="basic_box" style="margin: 20px 30px 0 !important">
  264. <div
  265. style="
  266. color: #b8b8b8;
  267. background: #fff;
  268. width: 26%;
  269. height: 40px;
  270. border-radius: 15px;
  271. padding-left: 20px;
  272. line-height: 40px;
  273. font-size: 17px;
  274. box-shadow: 0px 1px 2px 2px #e0e0e0;
  275. "
  276. >
  277. 请选择合适的项目模板
  278. </div>
  279. <div class="wordbox">
  280. <div
  281. class="wordTeacher"
  282. v-for="(aa, indexF) in templateArray"
  283. :key="indexF"
  284. @click="checkTemplate(aa)"
  285. >
  286. <div class="wordPic">
  287. <img src="../../assets/icon/wordMub.png" alt="" />
  288. </div>
  289. <div
  290. style="
  291. margin-top: 10px;
  292. line-height: 19px;
  293. overflow: hidden;
  294. text-overflow: ellipsis;
  295. white-space: nowrap;
  296. padding: 0 20px;
  297. "
  298. >
  299. {{ aa.title }}
  300. </div>
  301. <div class="checkword">
  302. <img
  303. src="../../assets/icon/checked.png"
  304. alt=""
  305. v-if="clearArray.indexOf(aa.id) == 0"
  306. />
  307. <img src="../../assets/icon/check.png" alt="" v-else />
  308. </div>
  309. </div>
  310. <div
  311. class="wordTeacher"
  312. @click="checkTemplate1(myWord)"
  313. v-if="cid != '' && cid != undefined"
  314. >
  315. <div class="wordPic">
  316. <img src="../../assets/icon/wordMub.png" alt="" />
  317. </div>
  318. <div
  319. style="
  320. margin-top: 10px;
  321. line-height: 19px;
  322. overflow: hidden;
  323. text-overflow: ellipsis;
  324. white-space: nowrap;
  325. padding: 0 20px;
  326. "
  327. >
  328. 我的文档
  329. </div>
  330. <div class="checkword">
  331. <img
  332. src="../../assets/icon/checked.png"
  333. alt=""
  334. v-if="
  335. cid != '' && cid != undefined && clearArray.length == 0
  336. "
  337. />
  338. <img src="../../assets/icon/check.png" alt="" v-else />
  339. </div>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. <div
  345. style="
  346. width: calc(100% - 17% - 25px);
  347. background: #fff;
  348. border-radius: 10px;
  349. min-height: 550px;
  350. min-width: 800px;
  351. "
  352. v-if="this.steps == 3"
  353. >
  354. <div class="basic_box" style="margin: 0px 0 0 30px">
  355. <div
  356. style="display: flex; flex-direction: row; align-items: center"
  357. >
  358. <div class="cru_selectBox">
  359. <div
  360. v-for="(item, index) in unitJson"
  361. :key="index"
  362. class="cru_select"
  363. :class="unitIndex == index ? 'cru_selected' : 'cru_select'"
  364. @click="unitSet(index)"
  365. >
  366. 第{{ index + 1 }}阶段
  367. </div>
  368. <img
  369. src="../../assets/line.png"
  370. class="cru_line"
  371. :style="{
  372. left: offsetLetfPx + 'px',
  373. }"
  374. />
  375. </div>
  376. <div class="addStageImg" @click="addunit">
  377. <img src="../../assets/icon/add.png" alt="" />
  378. </div>
  379. </div>
  380. <div
  381. class="chapter_box"
  382. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  383. :key="index"
  384. >
  385. <div>
  386. <div class="chapter_contentbox">
  387. <div>第{{ unitIndex + 1 }}阶段</div>
  388. <div>
  389. <input
  390. type="text"
  391. placeholder="阶段标题"
  392. class="binfo_input"
  393. v-model="unitJson[unitIndex].dyName"
  394. />
  395. </div>
  396. <div
  397. v-if="unitJson.length > 1"
  398. @click="deleteUnit(unitIndex)"
  399. ></div>
  400. </div>
  401. <div style="margin: 30px 0 10px; font-size: 18px">
  402. 阶段描述
  403. </div>
  404. <div>
  405. <textarea
  406. rows="6"
  407. class="binfo_input"
  408. cols=""
  409. style="width: 80% !important; height: 90px"
  410. v-model="unitJson[unitIndex].dyText"
  411. ></textarea>
  412. </div>
  413. <el-switch
  414. v-model="unitJson[unitIndex].isTalk"
  415. active-text="是否开启评价"
  416. style="margin: 25px 0px 0px 0"
  417. >
  418. </el-switch>
  419. </div>
  420. <div
  421. style="
  422. display: flex;
  423. margin: 23px 0;
  424. flex-direction: row;
  425. justify-content: flex-start;
  426. align-items: center;
  427. "
  428. >
  429. <div
  430. style="
  431. font-size: 1.5em;
  432. font-weight: bold;
  433. margin-top: 15px;
  434. "
  435. >
  436. 添加提问
  437. </div>
  438. <div class="line"></div>
  439. </div>
  440. <div>
  441. <input
  442. type="text"
  443. placeholder="请输入问题"
  444. class="binfo_input"
  445. v-model="unitJson[unitIndex].question"
  446. />
  447. </div>
  448. <div
  449. style="
  450. display: flex;
  451. margin: 23px 0;
  452. flex-direction: row;
  453. justify-content: flex-start;
  454. align-items: center;
  455. "
  456. >
  457. <div
  458. style="
  459. font-size: 1.5em;
  460. font-weight: bold;
  461. margin-top: 15px;
  462. "
  463. >
  464. 添加工具
  465. </div>
  466. <div class="line"></div>
  467. </div>
  468. <div class="toolChoose">
  469. <div class="tool">
  470. <div class="whiteBIcon" @click="addTools(1)">
  471. <img src="../../assets/icon/whiteBordIcon.png" alt="" />
  472. </div>
  473. <div class="check" @click="addTools(1)">
  474. <img
  475. src="../../assets/icon/checkNo.png"
  476. alt=""
  477. v-if="item.toolChoose.indexOf(1) == -1"
  478. />
  479. <img
  480. src="../../assets/icon/checkedIs.png"
  481. alt=""
  482. v-else
  483. />
  484. </div>
  485. </div>
  486. <div class="tool">
  487. <div class="whiteBIcon" @click="addTools(2)">
  488. <img src="../../assets/icon/noteIcon.png" alt="" />
  489. </div>
  490. <div class="check" @click="addTools(2)">
  491. <img
  492. src="../../assets/icon/checkNo.png"
  493. alt=""
  494. v-if="item.toolChoose.indexOf(2) == -1"
  495. />
  496. <img
  497. src="../../assets/icon/checkedIs.png"
  498. alt=""
  499. v-else
  500. />
  501. </div>
  502. </div>
  503. <div class="tool">
  504. <div class="whiteBIcon" @click="addTools(3)">
  505. <img src="../../assets/icon/mindIcon.png" alt="" />
  506. </div>
  507. <div class="check" @click="addTools(3)">
  508. <img
  509. src="../../assets/icon/checkNo.png"
  510. alt=""
  511. v-if="item.toolChoose.indexOf(3) == -1"
  512. />
  513. <img
  514. src="../../assets/icon/checkedIs.png"
  515. alt=""
  516. v-else
  517. />
  518. </div>
  519. </div>
  520. <div class="tool">
  521. <div class="whiteBIcon" @click="addTools(4)">
  522. <img src="../../assets/icon/askIcon.png" alt="" />
  523. </div>
  524. <div class="check" @click="addTools(4)">
  525. <img
  526. src="../../assets/icon/checkNo.png"
  527. alt=""
  528. v-if="item.toolChoose.indexOf(4) == -1"
  529. />
  530. <img
  531. src="../../assets/icon/checkedIs.png"
  532. alt=""
  533. v-else
  534. />
  535. </div>
  536. </div>
  537. <!-- <div class="tool">
  538. <div class="whiteBIcon" @click="addTools(5)">
  539. <img src="../../assets/icon/scoreIcon.png" alt="" />
  540. </div>
  541. <div class="check">
  542. <img
  543. src="../../assets/icon/checkNo.png"
  544. alt=""
  545. v-if="item.toolChoose.indexOf(5) == -1"
  546. />
  547. <img
  548. src="../../assets/icon/checkedIs.png"
  549. alt=""
  550. v-else
  551. />
  552. </div>
  553. </div> -->
  554. <div class="tool">
  555. <div class="whiteBIcon" @click="addTools(6)">
  556. <img src="../../assets/icon/wordIcon.png" alt="" />
  557. </div>
  558. <div class="check" @click="addTools(6)">
  559. <img
  560. src="../../assets/icon/checkNo.png"
  561. alt=""
  562. v-if="item.toolChoose.indexOf(6) == -1"
  563. />
  564. <img
  565. src="../../assets/icon/checkedIs.png"
  566. alt=""
  567. v-else
  568. />
  569. </div>
  570. </div>
  571. </div>
  572. <div
  573. class="basic_box"
  574. style="margin: 45px 0 0 15px; min-height: 0"
  575. >
  576. <div
  577. style="
  578. display: flex;
  579. margin: 15px 0;
  580. flex-direction: row;
  581. justify-content: flex-start;
  582. align-items: center;
  583. "
  584. >
  585. <div
  586. style="
  587. font-size: 1.5em;
  588. font-weight: bold;
  589. margin-top: 15px;
  590. "
  591. >
  592. 教学视频与课件添加
  593. </div>
  594. <div class="line"></div>
  595. </div>
  596. <!-- <h3 class="info_title" style="margin: 0"></h3> -->
  597. <div>
  598. <div
  599. class="add_chapters_box"
  600. v-if="item.chapterData.length == 0"
  601. style="height: 185px"
  602. ></div>
  603. <div
  604. v-else
  605. class="add_chapters_box"
  606. style="display: flex; flex-direction: column"
  607. >
  608. <div
  609. class="chapter_upload"
  610. v-for="(item1, index1) in item.chapterData"
  611. :key="item1.id"
  612. @click="
  613. getChapterData(
  614. $event,
  615. unitIndex,
  616. index,
  617. index1,
  618. item1.type
  619. )
  620. "
  621. >
  622. <div class="chapter_upload_t" style="width: 100%"></div>
  623. <div
  624. class="chapter_upload_o"
  625. style="
  626. position: relative;
  627. display: flex;
  628. align-items: center;
  629. "
  630. >
  631. <div
  632. class="chapter_upload_l"
  633. style="padding: 1px 0 0 10px"
  634. >
  635. <div
  636. v-if="item1.type == 2"
  637. class="chapter_upload_l_i1"
  638. ></div>
  639. <div
  640. v-if="item1.type == 3"
  641. class="chapter_upload_l_i5"
  642. style="margin-right: 4px"
  643. ></div>
  644. </div>
  645. <div
  646. class="chapter_upload_ic"
  647. style="
  648. cursor: pointer;
  649. position: absolute;
  650. width: 45px;
  651. right: 0;
  652. top: 0;
  653. "
  654. >
  655. <div class="chapter_upload_ic_l"></div>
  656. <div
  657. class="chapter_upload_ic_r"
  658. style="position: absolute"
  659. @click.stop="
  660. deleteChapterData(
  661. $event,
  662. unitIndex,
  663. index,
  664. index1
  665. )
  666. "
  667. >
  668. <div></div>
  669. </div>
  670. </div>
  671. <div class="chapter_upload_n">
  672. <input
  673. v-if="item1.type == 2 || item1.type == 3"
  674. :placeholder="item1.name"
  675. @change="
  676. updataVideoT(
  677. $event,
  678. unitIndex,
  679. chapterIndex,
  680. index1
  681. )
  682. "
  683. style="
  684. border: none;
  685. outline: none;
  686. width: 55%;
  687. minwidth: 215px;
  688. z-index: 99;
  689. font-size: 14px;
  690. "
  691. />
  692. <input
  693. :placeholder="item1.name"
  694. v-else
  695. style="
  696. border: none;
  697. outline: none;
  698. width: 55%;
  699. minwidth: 215px;
  700. "
  701. readonly="true"
  702. />
  703. <div class="chapter_upload_ud" style="z-index: 99">
  704. <div
  705. class="chapter_upload_up"
  706. @click="upCd($event, unitIndex, index, index1)"
  707. ></div>
  708. <div
  709. class="chapter_upload_down"
  710. @click="
  711. downCd($event, unitIndex, index, index1)
  712. "
  713. ></div>
  714. </div>
  715. </div>
  716. </div>
  717. </div>
  718. </div>
  719. </div>
  720. <div class="add_info_box">
  721. <button class="info_btn" @click="addImg($event)">
  722. 添加视频
  723. <input
  724. type="file"
  725. accept="video/mp4,video/quicktime,video/x-msvideo"
  726. style="display: none"
  727. @change="beforeUpload2($event, unitIndex, 2)"
  728. />
  729. </button>
  730. <button class="info_btn" @click="addImg($event)">
  731. 添加附件
  732. <input
  733. type="file"
  734. accept="application/pdf,.ppt,.pptx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  735. style="display: none"
  736. @change="beforeUpload2($event, unitIndex, 3)"
  737. />
  738. </button>
  739. </div>
  740. </div>
  741. <div
  742. class="basic_box"
  743. style="margin: 45px 0 0 15px; min-height: 0"
  744. >
  745. <div
  746. style="
  747. display: flex;
  748. margin: 15px 0;
  749. flex-direction: row;
  750. justify-content: flex-start;
  751. align-items: center;
  752. "
  753. >
  754. <div
  755. style="
  756. font-size: 1.5em;
  757. font-weight: bold;
  758. margin-top: 15px;
  759. "
  760. >
  761. 作业设置
  762. </div>
  763. <div class="line"></div>
  764. </div>
  765. <div class="homework_box">
  766. <div style="display: flex; justify-content: flex-start">
  767. <div class="addHW" @click="addHw($event)">
  768. <img src="../../assets/icon/addHW.png" alt="" />
  769. <input
  770. type="file"
  771. style="display: none"
  772. @change="beforeUpload2($event, unitIndex, 5)"
  773. />
  774. </div>
  775. <div
  776. class="zyBox"
  777. v-for="(item2, index2) in item.homeworkList"
  778. :key="index2"
  779. >
  780. <div
  781. class="deleteZy"
  782. @click="deleteHomeworkBox(unitIndex, index, index2)"
  783. >
  784. <img src="../../assets/icon/delete.png" alt="" />
  785. </div>
  786. <div class="zyImg">
  787. <img src="../../assets/zy.png" alt="" />
  788. </div>
  789. <div
  790. style="
  791. width: 110px;
  792. font-size: 15px;
  793. overflow: hidden;
  794. white-space: nowrap;
  795. "
  796. >
  797. {{ item2.name }}
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. <div class="time">
  803. <div class="small_title">
  804. 开始时间<span style="color: red">*</span>
  805. </div>
  806. <el-date-picker
  807. v-model="unitJson[unitIndex].startTime"
  808. type="date"
  809. placeholder="选择日期"
  810. style="margin-left: 5px"
  811. >
  812. </el-date-picker>
  813. <div class="small_title" style="margin-left: 40px">
  814. 结束时间<span style="color: red">*</span>
  815. </div>
  816. <el-date-picker
  817. v-model="unitJson[unitIndex].endTime"
  818. type="date"
  819. placeholder="选择日期"
  820. style="margin-left: 5px"
  821. >
  822. </el-date-picker>
  823. </div>
  824. </div>
  825. </div>
  826. </div>
  827. </div>
  828. <div
  829. style="
  830. width: calc(100% - 17% - 25px);
  831. background: #fff;
  832. border-radius: 10px;
  833. min-height: 550px;
  834. min-width: 800px;
  835. "
  836. v-if="this.steps == 4"
  837. >
  838. <div class="basic_box_success">
  839. <div class="right_img">
  840. <img src="../../assets/icon/right.png" alt="" />
  841. </div>
  842. <div style="font-weight: bold">成功</div>
  843. <div>您的课程编号</div>
  844. <div class="number">{{ number }}</div>
  845. <div class="success_button">
  846. <div class="look_course" @click="dialogVisible4 = true">邀请老师协同编辑</div>
  847. <div class="attend_others" @click="goCourse">
  848. 预览课程
  849. </div>
  850. </div>
  851. </div>
  852. </div>
  853. </div>
  854. <!-- <div class="line"></div> -->
  855. <div class="info_btnBox">
  856. <button
  857. class="info_btn"
  858. v-if="steps == 1"
  859. @click="goTo('/course?userid=' + userid + '&oid=' + oid)"
  860. >
  861. 返回课程
  862. </button>
  863. <button
  864. class="info_btn"
  865. v-if="steps > 1 && steps != 5"
  866. @click="lastSteps"
  867. >
  868. {{ steps == 4 ? "返回首页" : "上一步" }}
  869. </button>
  870. <button class="info_btn" v-if="steps < 5" @click="nextSteps">
  871. {{ steps == 3 ? "确认上传" : "下一步" }}
  872. </button>
  873. </div>
  874. </div>
  875. </div>
  876. <el-dialog
  877. title="提示"
  878. :visible.sync="dialogVisible"
  879. :append-to-body="true"
  880. width="25%"
  881. :before-close="handleClose"
  882. class="dialog_diy2 customWidth"
  883. >
  884. <div>请复制该链接邀请协同编辑</div>
  885. <div>http://www.boomyon.com/index-zhang.com</div>
  886. <span slot="footer" class="dialog-footer">
  887. <el-button type="primary">复制链接分享</el-button>
  888. <el-button @click="dialogVisible = false">取消</el-button>
  889. </span>
  890. </el-dialog>
  891. <el-dialog
  892. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  893. :visible.sync="dialogVisible1"
  894. :append-to-body="true"
  895. width="25%"
  896. :before-close="handleClose"
  897. class="dialog_diy2 customWidth"
  898. >
  899. <el-form>
  900. <el-form-item label="文档标题">
  901. <el-input
  902. v-model="tTitle"
  903. auto-complete="off"
  904. placeholder="请输入文档标题名..."
  905. ></el-input>
  906. </el-form-item>
  907. <div>文档简介</div>
  908. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  909. </el-form>
  910. <span slot="footer" class="dialog-footer">
  911. <el-button @click="dialogVisible1 = false">取 消</el-button>
  912. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  913. >添加</el-button
  914. >
  915. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  916. </span>
  917. </el-dialog>
  918. <el-dialog
  919. title="添加文档"
  920. :visible.sync="dialogVisible2"
  921. :append-to-body="true"
  922. width="500px"
  923. :before-close="handleClose"
  924. class="dialog_diy"
  925. >
  926. <el-form>
  927. <el-form-item label="文档标题">
  928. <el-input
  929. v-model="templateC.title"
  930. auto-complete="off"
  931. placeholder="请输入文档标题名..."
  932. ></el-input>
  933. </el-form-item>
  934. <div>文档内容</div>
  935. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  936. </el-form>
  937. <span slot="footer" class="dialog-footer">
  938. <el-button @click="clearChoose">取 消</el-button>
  939. <el-button type="primary" @click="wordNext()">确定</el-button>
  940. </span>
  941. </el-dialog>
  942. <el-dialog
  943. title="添加项目成员"
  944. :visible.sync="dialogVisible3"
  945. :append-to-body="true"
  946. width="25%"
  947. height="80%"
  948. :before-close="handleClose"
  949. class="addNewPP customWidth"
  950. >
  951. <div class="people">
  952. <div class="people_top">
  953. <div class="people_nav">选择成员</div>
  954. <div class="people_top_right">
  955. <div class="people_search">
  956. <el-input
  957. placeholder="搜索成员"
  958. v-model="searchPeople"
  959. ></el-input>
  960. <div class="search_img" @click="searchStudent">
  961. <img src="../../assets/icon/search.png" alt="" />
  962. </div>
  963. </div>
  964. </div>
  965. </div>
  966. <el-checkbox-group v-model="checkboxList" class="people_name">
  967. <el-checkbox
  968. v-for="item in studentJuri"
  969. :key="item.userid"
  970. :label="item.userid"
  971. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  972. >
  973. </el-checkbox-group>
  974. </div>
  975. <span slot="footer" class="dialog-footer">
  976. <el-button @click="dialogVisible3 = false">取 消</el-button>
  977. <el-button type="primary" @click="isAddPP">确定</el-button>
  978. </span>
  979. </el-dialog>
  980. <el-dialog
  981. title="提示"
  982. :visible.sync="dialogVisible4"
  983. :append-to-body="true"
  984. width="800px"
  985. :before-close="handleClose"
  986. class="dialog_diy notice"
  987. >
  988. <div>此功能暂未开放!</div>
  989. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  990. </el-dialog>
  991. </div>
  992. </template>
  993. <script>
  994. import "../../common/aws-sdk-2.235.1.min.js";
  995. import $ from "jquery";
  996. import EditorBar from "../../components/tools/wangEnduit";
  997. export default {
  998. components: { EditorBar },
  999. data() {
  1000. return {
  1001. checkAll: false,
  1002. checkedCities: [],
  1003. isIndeterminate: true,
  1004. steps: 1,
  1005. nbOrder: 0,
  1006. courseId:"",
  1007. courseName: "",
  1008. isTeacherSee: false,
  1009. courseText: "",
  1010. formLabelWidth: "100px",
  1011. uploadLoading1: false,
  1012. noneBtnImg: false,
  1013. updateBoolean2: false,
  1014. unitIndex: 0,
  1015. dialogVisible: false,
  1016. dialogVisible1: false,
  1017. dialogVisible2: false,
  1018. dialogVisible3: false,
  1019. dialogVisible4: false,
  1020. publicTool: 0,
  1021. searchPeople: "",
  1022. userid: this.$route.query.userid,
  1023. oid: this.$route.query.oid,
  1024. cid: this.$route.query.cid != "" ? this.$route.query.cid : "",
  1025. cover: [], //课程封面
  1026. myWord: [],
  1027. unitJson: [
  1028. {
  1029. dyName: "", //单元标题
  1030. dyText: "",
  1031. startTime: "", //开始时间
  1032. endTime: "", //结束时间
  1033. isTalk: false, //是否开启评价
  1034. chapterInfo: [
  1035. {
  1036. isread: false,
  1037. chapterid: this.guid(),
  1038. title: "",
  1039. courseName: "",
  1040. question: "",
  1041. chapterData: [],
  1042. toolChoose: [],
  1043. askCount: 1,
  1044. askTitle: "",
  1045. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1046. checkJson: [{ checkCount: [], checkPerent: [] }],
  1047. itemCount: 1,
  1048. fileList1: [],
  1049. homeworkList: [],
  1050. video: [],
  1051. testData: [],
  1052. pData: [],
  1053. templateArray: [],
  1054. },
  1055. ],
  1056. },
  1057. ],
  1058. studentJuri: [],
  1059. checkboxList: [],
  1060. number: "",
  1061. tTitle: "",
  1062. tdetail: "",
  1063. templateC: {},
  1064. cTemplate: "",
  1065. CourseType: [],
  1066. CourseTypeJson: {},
  1067. courseTypeId: [],
  1068. courseTypeSon: [],
  1069. clearArray: [],
  1070. loading:false,
  1071. };
  1072. },
  1073. computed: {
  1074. offsetLetfPx: function () {
  1075. //addnum可以直接在模板语法里面用,相当于data内的值
  1076. return (
  1077. $(".cru_select")[this.unitIndex] &&
  1078. $(".cru_select")[this.unitIndex].offsetLeft
  1079. );
  1080. },
  1081. },
  1082. methods: {
  1083. handleCheckAllChange(val) {
  1084. this.checkedCities = val ? cityOptions : [];
  1085. this.isIndeterminate = false;
  1086. },
  1087. handleCheckedCitiesChange(value) {
  1088. let checkedCount = value.length;
  1089. this.checkAll = checkedCount === this.cities.length;
  1090. this.isIndeterminate =
  1091. checkedCount > 0 && checkedCount < this.cities.length;
  1092. },
  1093. addHw(e) {
  1094. var el = e.currentTarget;
  1095. el.getElementsByTagName("input")[0].click();
  1096. },
  1097. change(val) {
  1098. console.log(val);
  1099. },
  1100. handleClose(done) {
  1101. done();
  1102. },
  1103. imgChange1(file, fileList, type) {
  1104. if (type == 1) {
  1105. var _tmp = this.cover;
  1106. } else if (type == 2 || type == 3) {
  1107. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].chapterData;
  1108. } else if (type == 4) {
  1109. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  1110. } else {
  1111. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].homeworkList;
  1112. }
  1113. this.noneBtnImg = _tmp.length >= 1;
  1114. },
  1115. goTo(path) {
  1116. this.$router.push(path);
  1117. },
  1118. guid() {
  1119. var _num,
  1120. i,
  1121. _guid = "";
  1122. for (i = 0; i < 32; i++) {
  1123. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  1124. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  1125. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  1126. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  1127. _guid += "-";
  1128. }
  1129. }
  1130. return _guid;
  1131. },
  1132. lastSteps() {
  1133. if (this.steps == 4) {
  1134. // window.location.href =
  1135. // "./course.vue?userid=" + this.userid + "&oid=" + this.oid;
  1136. this.goTo("/course?userid=" + this.userid + "&oid=" + this.oid);
  1137. } else {
  1138. this.steps--;
  1139. }
  1140. },
  1141. navSteps(s) {
  1142. if (s == 1) {
  1143. this.steps = 1;
  1144. }
  1145. if (s == 2) {
  1146. if (
  1147. this.courseName != "" &&
  1148. this.courseText != "" &&
  1149. this.cover.length != 0 &&
  1150. this.courseTypeId.length != 0 &&
  1151. this.checkboxList.length != 0
  1152. ) {
  1153. this.steps = 2;
  1154. } else {
  1155. this.$message.error("请将信息填写完整");
  1156. }
  1157. }
  1158. if (s == 3) {
  1159. if (this.templateC.id != undefined) {
  1160. this.cTemplate = this.templateC.content;
  1161. this.dialogVisible2 = false;
  1162. this.steps = 3;
  1163. } else {
  1164. this.$message.error("请选择文档");
  1165. return;
  1166. }
  1167. }
  1168. },
  1169. nextSteps() {
  1170. if (this.steps == 1) {
  1171. if (
  1172. this.courseName != "" &&
  1173. this.courseText != "" &&
  1174. this.cover.length != 0 &&
  1175. this.courseTypeId.length != 0 &&
  1176. this.checkboxList.length != 0
  1177. ) {
  1178. this.steps++;
  1179. } else {
  1180. this.$message.error("请将信息填写完整");
  1181. }
  1182. } else if (this.steps == 2) {
  1183. if (this.templateC.id == "" || this.templateC.id == undefined) {
  1184. this.$message.error("请选择文档");
  1185. return;
  1186. }
  1187. this.cTemplate = this.templateC.content;
  1188. this.dialogVisible2 = false;
  1189. this.steps++;
  1190. } else if (this.steps == 3) {
  1191. if (this.cid == "" || this.cid == undefined) {
  1192. this.addWork();
  1193. this.steps++;
  1194. } else {
  1195. this.updateWork();
  1196. this.steps++;
  1197. }
  1198. }
  1199. },
  1200. unitSet(i) {
  1201. this.unitIndex = i;
  1202. },
  1203. time() {
  1204. if (!this.now) {
  1205. this.now = new Date().getTime();
  1206. return true;
  1207. } else {
  1208. let time = new Date().getTime();
  1209. if (time - this.now > 3000) {
  1210. this.now = time;
  1211. return true;
  1212. } else {
  1213. return false;
  1214. }
  1215. }
  1216. },
  1217. deleteUnit(i) {
  1218. var _this = this;
  1219. if (_this.time()) {
  1220. _this
  1221. .$confirm("确定删除此单元吗?", "提示", {
  1222. confirmButtonText: "确定",
  1223. cancelButtonText: "取消",
  1224. type: "warning",
  1225. })
  1226. .then(() => {
  1227. _this.unitJson.splice(i, 1);
  1228. // var a = 0;
  1229. // if (_this.unitIndex > 0) {
  1230. // a = _this.unitIndex - 1;
  1231. // }
  1232. this.unitIndex = this.unitIndex - 1;
  1233. _this.$message.success("删除成功");
  1234. })
  1235. .catch(() => {
  1236. return;
  1237. });
  1238. }
  1239. },
  1240. handlePictureCardPreview(file) {
  1241. this.dialogImageUrl = file.url;
  1242. },
  1243. clean(i, c) {
  1244. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  1245. },
  1246. handle_remove1(file, fileList, type) {
  1247. var _tmp = this.cover;
  1248. for (var i = 0, len = _tmp.length; i < len; i++) {
  1249. if (_tmp[i].uid == file.uid) {
  1250. _tmp.splice(i, 1);
  1251. break;
  1252. }
  1253. this.cover = _tmp;
  1254. }
  1255. this.noneBtnImg = _tmp.length >= 1;
  1256. },
  1257. addImg(e) {
  1258. var el = e.currentTarget;
  1259. el.getElementsByTagName("input")[0].click();
  1260. },
  1261. beforeUpload1(event, type) {
  1262. const loading = this.openLoading();
  1263. var file = event.file;
  1264. var credentials = {
  1265. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1266. secretAccessKey: "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",
  1267. }; //秘钥形式的登录上传
  1268. window.AWS.config.update(credentials);
  1269. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1270. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1271. var _this = this;
  1272. if (file) {
  1273. var params = {
  1274. Key:
  1275. file.name.split(".")[0] +
  1276. new Date().getTime() +
  1277. "." +
  1278. file.name.split(".")[1],
  1279. ContentType: file.type,
  1280. Body: file,
  1281. "Access-Control-Allow-Credentials": "*",
  1282. ACL: "public-read",
  1283. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1284. var options = {
  1285. partSize: 2048 * 1024 * 1024,
  1286. queueSize: 2,
  1287. leavePartsOnError: true,
  1288. };
  1289. bucket
  1290. .upload(params, options)
  1291. .on("httpUploadProgress", function (evt) {
  1292. //这里可以写进度条
  1293. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1294. })
  1295. .send(function (err, data) {
  1296. loading.close();
  1297. if (err) {
  1298. var a = _this.$refs.upload1.uploadFiles;
  1299. a.splice(a.length - 1, a.length);
  1300. _this.$message.error("上传失败");
  1301. } else {
  1302. _this.cover.push({
  1303. name: file.name,
  1304. url: data.Location,
  1305. uid: file.uid,
  1306. });
  1307. _this.imgChange1(null, null, 1);
  1308. console.log(data.Location);
  1309. }
  1310. });
  1311. }
  1312. },
  1313. beforeUpload(data) {
  1314. this.$refs.upload1.uploadFiles;
  1315. this.uploadLoading1 = true;
  1316. var file = data.file;
  1317. var credentials = {
  1318. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1319. secretAccessKey: "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",
  1320. }; //秘钥形式的登录上传
  1321. window.AWS.config.update(credentials);
  1322. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1323. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1324. var _this = this;
  1325. if (file) {
  1326. var params = {
  1327. Key:
  1328. file.name.split(".")[0] +
  1329. new Date().getTime() +
  1330. "." +
  1331. file.name.split(".")[1],
  1332. ContentType: file.type,
  1333. Body: file,
  1334. "Access-Control-Allow-Credentials": "*",
  1335. ACL: "public-read",
  1336. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1337. var options = {
  1338. partSize: 2048 * 1024 * 1024,
  1339. queueSize: 2,
  1340. leavePartsOnError: true,
  1341. };
  1342. bucket
  1343. .upload(params, options)
  1344. .on("httpUploadProgress", function (evt) {
  1345. //这里可以写进度条
  1346. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1347. })
  1348. .send(function (err, data) {
  1349. _this.uploadLoading1 = false;
  1350. if (err) {
  1351. var a = _this.$refs.upload1.uploadFiles;
  1352. a.splice(a.length - 1, a.length);
  1353. _this.$message.error("上传失败");
  1354. } else {
  1355. //上传成功处理
  1356. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  1357. name: file.name,
  1358. url: data.Location,
  1359. uid: file.uid,
  1360. });
  1361. _this.imgChange();
  1362. console.log(data.Location);
  1363. }
  1364. });
  1365. }
  1366. },
  1367. onExceed() {
  1368. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  1369. },
  1370. beforeUpload2(event, unitIndex, type) {
  1371. const loading = this.openLoading();
  1372. var file = event.target.files[0];
  1373. var credentials = {
  1374. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1375. secretAccessKey: "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",
  1376. }; //秘钥形式的登录上传
  1377. window.AWS.config.update(credentials);
  1378. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1379. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1380. var _this = this;
  1381. if (file) {
  1382. var params = {
  1383. Key:
  1384. file.name.split(".")[0] +
  1385. new Date().getTime() +
  1386. "." +
  1387. file.name.split(".")[1],
  1388. ContentType: file.type,
  1389. Body: file,
  1390. "Access-Control-Allow-Credentials": "*",
  1391. ACL: "public-read",
  1392. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1393. var options = {
  1394. partSize: 2048 * 1024 * 1024,
  1395. queueSize: 2,
  1396. leavePartsOnError: true,
  1397. };
  1398. bucket
  1399. .upload(params, options)
  1400. .on("httpUploadProgress", function (evt) {
  1401. //这里可以写进度条
  1402. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1403. })
  1404. .send(function (err, data) {
  1405. loading.close();
  1406. if (err) {
  1407. var a = _this.$refs.upload1.uploadFiles;
  1408. a.splice(a.length - 1, a.length);
  1409. _this.$message.error("上传失败");
  1410. } else {
  1411. if (type == 2 || type == 3) {
  1412. _this.unitJson[unitIndex].chapterInfo[0].chapterData.push({
  1413. name: file.name,
  1414. url: data.Location,
  1415. uid: file.uid,
  1416. type: type,
  1417. });
  1418. _this.imgChange1(null, null, type);
  1419. } else if (type == 4) {
  1420. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  1421. name: file.name,
  1422. url: data.Location,
  1423. uid: file.uid,
  1424. });
  1425. _this.imgChange1(null, null, type);
  1426. } else if (type == 5) {
  1427. _this.unitJson[
  1428. _this.unitIndex
  1429. ].chapterInfo[0].homeworkList.push({
  1430. name: file.name,
  1431. url: data.Location,
  1432. uid: file.uid,
  1433. });
  1434. _this.imgChange1(null, null, type);
  1435. }
  1436. console.log(data.Location);
  1437. }
  1438. });
  1439. }
  1440. },
  1441. addunit() {
  1442. this.unitJson.push({
  1443. dyName: "", //单元标题
  1444. dyText: "",
  1445. startTime: "", //开始时间
  1446. endTime: "", //结束时间
  1447. isTalk: false, //是否开启评价
  1448. chapterInfo: [
  1449. {
  1450. isread: false,
  1451. chapterid: this.guid(),
  1452. title: "",
  1453. courseName: "",
  1454. question: "",
  1455. chapterData: [],
  1456. toolChoose: [],
  1457. askCount: 1,
  1458. askTitle: "",
  1459. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1460. checkJson: [{ checkCount: [], checkPerent: [] }],
  1461. itemCount: 1,
  1462. fileList1: [],
  1463. homeworkList: [],
  1464. video: [],
  1465. testData: [],
  1466. pData: [],
  1467. templateArray: [],
  1468. },
  1469. ],
  1470. });
  1471. },
  1472. add(e, i) {
  1473. var el = e.currentTarget;
  1474. el.getElementsByTagName("input")[0].click();
  1475. },
  1476. deleteHomeworkBox(unitIndex, index, i) {
  1477. this.unitJson[unitIndex].chapterInfo[index].homeworkList.splice(i, 1);
  1478. },
  1479. getStudent() {
  1480. let params = {
  1481. cn: this.searchPeople,
  1482. oid: this.oid,
  1483. uid: this.userid,
  1484. };
  1485. this.ajax
  1486. .get(this.$store.state.api + "selectProjectStudent", params)
  1487. .then((res) => {
  1488. this.studentJuri = res.data[0];
  1489. })
  1490. .catch((err) => {});
  1491. },
  1492. searchStudent() {
  1493. this.getStudent();
  1494. },
  1495. getChapterData(e, i, j, ic, type) {
  1496. e.stopPropagation();
  1497. this.updataC = true;
  1498. this.icc = ic;
  1499. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  1500. console.log("还不能下载图片喔");
  1501. }
  1502. },
  1503. deleteChapterData(e, i, j, ic) {
  1504. // window.U.UF.EV.stopBubble();
  1505. e.stopPropagation();
  1506. this.unitJson[i].chapterInfo[j].chapterData.splice(ic, 1);
  1507. },
  1508. updataVideoT(e, i, j, ic) {
  1509. e.stopPropagation();
  1510. this.unitJson[i].chapterInfo[j].chapterData[ic].name = e.target.value;
  1511. },
  1512. upCd(e, i, j, ic) {
  1513. e.stopPropagation();
  1514. if (ic == 0) {
  1515. return;
  1516. }
  1517. var a = this.unitJson[i].chapterInfo[j].chapterData[ic - 1];
  1518. this.unitJson[i].chapterInfo[j].chapterData[ic - 1] =
  1519. this.unitJson[i].chapterInfo[j].chapterData[ic];
  1520. this.unitJson[i].chapterInfo[j].chapterData[ic] = a;
  1521. },
  1522. downCd(e, i, j, ic) {
  1523. e.stopPropagation();
  1524. if (ic == this.unitJson[i].chapterInfo[j].chapterData.length - 1) {
  1525. return;
  1526. }
  1527. var a = this.unitJson[i].chapterInfo[j].chapterData[ic + 1];
  1528. this.unitJson[i].chapterInfo[j].chapterData[ic + 1] =
  1529. this.unitJson[i].chapterInfo[j].chapterData[ic];
  1530. this.unitJson[i].chapterInfo[j].chapterData[ic] = a;
  1531. },
  1532. addWork() {
  1533. let params = [
  1534. {
  1535. uid: this.userid,
  1536. title: this.courseName,
  1537. brief: this.courseText.replace(/%/g, "%25"),
  1538. cover: this.cover.length > 0 ? JSON.stringify(this.cover) : "",
  1539. astudent:
  1540. this.checkboxList.length > 0
  1541. ? JSON.stringify(this.checkboxList)
  1542. : "",
  1543. see: this.isTeacherSee == true ? 0 : 1,
  1544. chapters: JSON.stringify(this.unitJson),
  1545. template: this.cTemplate,
  1546. courseType: JSON.stringify(this.courseTypeId),
  1547. },
  1548. ];
  1549. this.ajax
  1550. // .post(this.$store.state.api + "addWork", params)
  1551. .post(this.$store.state.api + "addWorkNew", params)
  1552. .then((res) => {
  1553. this.$message({
  1554. message: "新增成功",
  1555. type: "success",
  1556. });
  1557. this.number = res.data.ordernumber;
  1558. this.courseId = res.data.courseId;
  1559. this.islogin = true;
  1560. })
  1561. .catch((err) => {
  1562. this.$message.error("新增失败");
  1563. console.error(err);
  1564. });
  1565. },
  1566. goCourse(){
  1567. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  1568. },
  1569. updateWork() {
  1570. let params = [
  1571. {
  1572. cid: this.cid,
  1573. title: this.courseName,
  1574. brief: this.courseText.replace(/%/g, "%25"),
  1575. cover: this.cover.length > 0 ? JSON.stringify(this.cover) : "",
  1576. astudent:
  1577. this.checkboxList.length > 0
  1578. ? JSON.stringify(this.checkboxList)
  1579. : "",
  1580. see: this.isTeacherSee == true ? 0 : 1,
  1581. chapters: JSON.stringify(this.unitJson),
  1582. template: this.myWord,
  1583. uid: this.userid,
  1584. courseType: JSON.stringify(this.courseTypeId),
  1585. },
  1586. ];
  1587. this.ajax
  1588. .post(this.$store.state.api + "updateWorkNew", params)
  1589. .then((res) => {
  1590. this.$message({
  1591. message: "修改成功",
  1592. type: "success",
  1593. });
  1594. this.number = this.nbOrder;
  1595. })
  1596. .catch((err) => {
  1597. this.$message.error("修改失败");
  1598. console.error(err);
  1599. });
  1600. },
  1601. guid() {
  1602. var _num,
  1603. i,
  1604. _guid = "";
  1605. for (i = 0; i < 32; i++) {
  1606. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  1607. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  1608. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  1609. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  1610. _guid += "-";
  1611. }
  1612. }
  1613. return _guid;
  1614. },
  1615. insertWord() {
  1616. this.dialogVisible1 = true;
  1617. this.updateBoolean2 = false;
  1618. this.tTitle = "";
  1619. this.tdetail = "";
  1620. },
  1621. addWord() {
  1622. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  1623. name: this.tTitle,
  1624. content: this.tdetail,
  1625. uid: this.guid(),
  1626. });
  1627. this.dialogVisible1 = false;
  1628. },
  1629. upWord() {},
  1630. selectWord(uid, i, c) {
  1631. this.dialogVisible1 = true;
  1632. this.updateBoolean2 = true;
  1633. if (
  1634. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  1635. ) {
  1636. this.tTitle =
  1637. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  1638. this.tdetail =
  1639. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  1640. }
  1641. },
  1642. isAddPP() {
  1643. if (this.checkboxList.length > 0) {
  1644. this.$message({
  1645. message: "添加成功",
  1646. type: "success",
  1647. });
  1648. this.dialogVisible3 = false;
  1649. } else {
  1650. this.$message({
  1651. message: "请添加项目成员",
  1652. type: "error",
  1653. });
  1654. }
  1655. },
  1656. getTemplate() {
  1657. this.ajax
  1658. .get(this.$store.state.api + "getTemplateT", "")
  1659. .then((res) => {
  1660. this.templateArray = res.data[0];
  1661. })
  1662. .catch((err) => {});
  1663. },
  1664. clearChoose() {
  1665. this.clearArray.splice(this.templateC.id, 1);
  1666. this.dialogVisible2 = false;
  1667. },
  1668. checkTemplate(res) {
  1669. this.clearArray.push(res.id);
  1670. this.templateC = res;
  1671. this.cTemplate = res.content;
  1672. this.dialogVisible2 = true;
  1673. },
  1674. checkTemplate1(w) {
  1675. this.clearArray.splice(0, this.clearArray.length);
  1676. this.templateC.title = "我的文档";
  1677. this.cTemplate = w;
  1678. this.dialogVisible2 = true;
  1679. },
  1680. wordNext() {
  1681. // this.cTemplate = this.templateC.content;
  1682. // this.steps++;
  1683. this.dialogVisible2 = false;
  1684. },
  1685. addPP() {
  1686. this.dialogVisible3 = true;
  1687. },
  1688. goTo(path) {
  1689. this.$router.push(path);
  1690. },
  1691. addTools(i) {
  1692. if (this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.length == 0) {
  1693. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.push(i);
  1694. if (i == 1) {
  1695. window.parent.postMessage({ tools: "1" }, "*");
  1696. } else if (i == 2) {
  1697. window.parent.postMessage({ tools: "2" }, "*");
  1698. } else if (i == 3) {
  1699. window.parent.postMessage({ tools: "3" }, "*");
  1700. } else if (i == 4) {
  1701. window.parent.postMessage({ tools: "4" }, "*");
  1702. }
  1703. // else if(i == 5){
  1704. // window.parent.postMessage({ tools: "5" }, "*");
  1705. // }
  1706. else {
  1707. window.parent.postMessage({ tools: "6" }, "*");
  1708. }
  1709. } else {
  1710. if (
  1711. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(i) !=
  1712. -1
  1713. ) {
  1714. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.splice(
  1715. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(i),
  1716. 1
  1717. );
  1718. } else {
  1719. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.push(i);
  1720. if (i == 1) {
  1721. window.parent.postMessage({ tools: "1" }, "*");
  1722. } else if (i == 2) {
  1723. window.parent.postMessage({ tools: "2" }, "*");
  1724. } else if (i == 3) {
  1725. window.parent.postMessage({ tools: "3" }, "*");
  1726. } else if (i == 4) {
  1727. window.parent.postMessage({ tools: "4" }, "*");
  1728. }
  1729. // else if(i == 5){
  1730. // window.parent.postMessage({ tools: "5" }, "*");
  1731. // }
  1732. else {
  1733. window.parent.postMessage({ tools: "6" }, "*");
  1734. }
  1735. }
  1736. }
  1737. this.$forceUpdate();
  1738. },
  1739. // cleanAsk(p) {
  1740. // this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.splice(
  1741. // this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(p),
  1742. // 1
  1743. // );
  1744. // this.unitJson[this.unitIndex].chapterInfo[0].askTitle = "";
  1745. // this.unitJson[this.unitIndex].chapterInfo[0].askJson = [];
  1746. // this.unitJson[this.unitIndex].chapterInfo[0].askJson.push({
  1747. // askstitle: "",
  1748. // askItem: 1,
  1749. // checkList: [],
  1750. // });
  1751. // this.dialogVisible4 = false;
  1752. // },
  1753. addAskList() {
  1754. this.unitJson[this.unitIndex].chapterInfo[0].checkJson.push({
  1755. checkCount: [],
  1756. checkPerent: [],
  1757. });
  1758. this.unitJson[this.unitIndex].chapterInfo[0].askJson.push({
  1759. askstitle: "",
  1760. askItem: 1,
  1761. checkList: [],
  1762. });
  1763. this.unitJson[this.unitIndex].chapterInfo[0].askCount++;
  1764. },
  1765. deleteAskList() {
  1766. this.unitJson[this.unitIndex].chapterInfo[0].askJson.splice(-1);
  1767. this.unitJson[this.unitIndex].chapterInfo[0].askCount--;
  1768. },
  1769. addcheckList(json) {
  1770. json.checkList.length++;
  1771. json.askItem++;
  1772. },
  1773. deletecheckList(json) {
  1774. json.checkList.length--;
  1775. json.askItem--;
  1776. },
  1777. addAsk() {
  1778. if (this.unitJson[this.unitIndex].chapterInfo[0].askTitle === "") {
  1779. this.$message.error("问卷调查标题不能为空!");
  1780. return;
  1781. }
  1782. var aj = this.unitJson[this.unitIndex].chapterInfo[0].askJson;
  1783. var b = 1;
  1784. for (var i = 0; i < aj.length; i++) {
  1785. if (aj[i].askstitle === "") {
  1786. var a = 1;
  1787. for (let index = 0; index < aj[i].askItem; index++) {
  1788. const element = aj[i].checkList[index]
  1789. ? aj[i].checkList[index]
  1790. : "";
  1791. if (element != "") {
  1792. b++;
  1793. this.$message.error("填写了问卷调查选项,问卷调查题目不能为空!");
  1794. return;
  1795. } else {
  1796. a++;
  1797. }
  1798. }
  1799. if (b == 1) {
  1800. this.$message.error("至少填写一个问题");
  1801. return;
  1802. }
  1803. // if (a > 1) {
  1804. // aj.splice(i, 1);
  1805. // }
  1806. } else if (aj[i].askstitle != "") {
  1807. for (let index = 0; index < aj[i].askItem; index++) {
  1808. const element = aj[i].checkList[index]
  1809. ? aj[i].checkList[index]
  1810. : "";
  1811. var index = 0;
  1812. for (var z = 0; z < aj[i].checkList.length; z++) {
  1813. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  1814. if (checkC != "") {
  1815. index++;
  1816. } else {
  1817. this.$message.error("问卷调查选项不能为空!");
  1818. return;
  1819. }
  1820. }
  1821. b++;
  1822. if (index < 2) {
  1823. this.$message.error(
  1824. "填写了问卷调查的题目,问卷调查选项至少要有两项!"
  1825. );
  1826. return;
  1827. }
  1828. // if (element == "") {
  1829. // this.$message.error(
  1830. // "填写了问卷调查的题目,问卷调查选项不能为空!"
  1831. // );
  1832. // return;
  1833. // }
  1834. }
  1835. }
  1836. }
  1837. this.unitJson[this.unitIndex].chapterInfo[0].askJson = this.unitJson[
  1838. this.unitIndex
  1839. ].chapterInfo[0].askJson.filter((el) => {
  1840. var elc = el.checkList.filter((element) => {
  1841. return element != "";
  1842. });
  1843. return el.askstitle != "" && elc.length != 0;
  1844. });
  1845. this.dialogVisible4 = false;
  1846. },
  1847. selectCourseDetail() {
  1848. if (this.cid == "" || this.cid == undefined) {
  1849. console.log("这是新增课程");
  1850. } else {
  1851. let params = {
  1852. cid: this.cid,
  1853. };
  1854. this.ajax
  1855. .get(this.$store.state.api + "select_course_detail", params)
  1856. .then((res) => {
  1857. this.loading = true;
  1858. this.unitJson = JSON.parse(res.data[0][0].chapters);
  1859. // this.unitJson[0].chapterInfo = JSON.parse(res.data[0][0].chapters);
  1860. for (var j in this.unitJson) {
  1861. for (var i in this.unitJson[j].chapterInfo) {
  1862. this.unitJson[j].chapterInfo[i].toolChoose = this.unitJson[j]
  1863. .chapterInfo[i].toolChoose
  1864. ? this.unitJson[j].chapterInfo[i].toolChoose
  1865. : [];
  1866. }
  1867. }
  1868. // this.unitJson[0].dyText = "";
  1869. this.courseName = res.data[0][0].title;
  1870. this.courseText = res.data[0][0].brief;
  1871. this.checkboxList = JSON.parse(res.data[0][0].course_student);
  1872. this.cover = JSON.parse(res.data[0][0].cover);
  1873. this.noneBtnImg = this.cover.length >= 1;
  1874. this.isTeacherSee =
  1875. res.data[0][0].is_teacher_look == 0 ? true : false;
  1876. this.myWord = res.data[0][0].template;
  1877. this.templateC.id = "123";
  1878. this.nbOrder = res.data[0][0].ordernumber;
  1879. // this.CourseType[0] = res.data[1];
  1880. // this.selectType();
  1881. for (var i = 0; i < res.data[1].length; i++) {
  1882. // this.courseTypeId[this.CourseType[0][i].typePid] =
  1883. // this.CourseType[0][i].typeid;
  1884. this.courseTypeId.push(res.data[1][i].typeid);
  1885. }
  1886. console.log(this.courseTypeId);
  1887. this.$forceUpdate();
  1888. })
  1889. .catch((err) => {
  1890. console.error(err);
  1891. });
  1892. }
  1893. },
  1894. getTypeName() {
  1895. console.log(this.courseTypeId);
  1896. this.$forceUpdate();
  1897. },
  1898. selectType() {
  1899. this.ajax
  1900. .get(this.$store.state.api + "selectType")
  1901. .then((res) => {
  1902. this.CourseType = res.data;
  1903. for (var i = 0; i < res.data[0].length; i++) {
  1904. if (!this.cid) {
  1905. this.courseTypeId[res.data[0][i].id] = "";
  1906. }
  1907. for (var j = 0; j < res.data[1].length; j++) {
  1908. if (res.data[0][i].id == res.data[1][j].pid) {
  1909. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1910. this.CourseTypeJson[res.data[0][i].id] = [];
  1911. }
  1912. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1913. }
  1914. }
  1915. }
  1916. })
  1917. .catch((err) => {
  1918. console.error(err);
  1919. });
  1920. },
  1921. },
  1922. created() {
  1923. this.getStudent();
  1924. this.getTemplate();
  1925. this.selectType();
  1926. this.loading = false;
  1927. setTimeout(() => {
  1928. this.selectCourseDetail();
  1929. }, 500);
  1930. },
  1931. };
  1932. </script>
  1933. <style scoped>
  1934. .dialog_diy >>> .el-dialog__header {
  1935. background: #3d67bc !important;
  1936. padding: 15px 20px;
  1937. }
  1938. .dialog_diy >>> .el-dialog__title {
  1939. color: #fff;
  1940. }
  1941. .dialog_diy >>> .el-dialog__headerbtn {
  1942. top: 19px;
  1943. }
  1944. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  1945. color: #fff;
  1946. }
  1947. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  1948. color: #fff;
  1949. }
  1950. .dialog_diy >>> .el-dialog__body,
  1951. .dialog_diy >>> .el-dialog__footer {
  1952. background: #fafafa;
  1953. }
  1954. .left {
  1955. border-right: 1px solid rgb(60, 94, 143);
  1956. display: flex;
  1957. flex-direction: column;
  1958. align-items: center;
  1959. min-height: 600px;
  1960. width: 385px;
  1961. height: 80%;
  1962. }
  1963. .tips {
  1964. color: rgb(128, 128, 128);
  1965. font-size: 12px;
  1966. width: 270px;
  1967. margin: 40px;
  1968. }
  1969. .pb_content {
  1970. /* background: #fff; */
  1971. height: 100%;
  1972. margin: 20px 20px 20px 20px;
  1973. }
  1974. .pb_content_body {
  1975. width: 100% !important;
  1976. height: 100%;
  1977. }
  1978. .info_solid {
  1979. width: 270px;
  1980. height: 30px;
  1981. border-left: 1px solid #bdbdbd;
  1982. margin: 10px 0px 10px 30px;
  1983. }
  1984. .info_steps {
  1985. width: 270px;
  1986. font-size: 0.875rem;
  1987. display: flex;
  1988. align-items: center;
  1989. }
  1990. .info_steps span:nth-child(1) {
  1991. width: 30px;
  1992. height: 30px;
  1993. background: rgba(0, 0, 0, 0.38);
  1994. display: block;
  1995. color: #fff;
  1996. border-radius: 40px;
  1997. text-align: center;
  1998. line-height: 30px;
  1999. }
  2000. .steps_active {
  2001. background: #3d67bc !important;
  2002. }
  2003. .info_steps span:nth-child(2) {
  2004. margin-left: 5px;
  2005. }
  2006. .right {
  2007. height: 100%;
  2008. width: 100%;
  2009. }
  2010. .basic_box {
  2011. width: 90%;
  2012. margin: 0 auto;
  2013. position: relative;
  2014. }
  2015. .basic_box_success {
  2016. width: 80%;
  2017. min-height: 455px;
  2018. margin: 50px auto;
  2019. position: relative;
  2020. text-align: center;
  2021. border-bottom: 1px solid #bfbfbf;
  2022. }
  2023. .info_title {
  2024. font-size: 1.5em;
  2025. margin: 20px 30px 20px 30px;
  2026. }
  2027. .bInfo_title {
  2028. font-size: 16px;
  2029. text-align: left;
  2030. margin-top: 20px;
  2031. margin-bottom: 10px;
  2032. }
  2033. .small_title {
  2034. font-size: 14px;
  2035. line-height: 40px;
  2036. }
  2037. .binfo_input {
  2038. font: inherit;
  2039. color: currentColor;
  2040. width: 100%;
  2041. margin: 0;
  2042. padding: 15px 14px;
  2043. display: block;
  2044. min-width: 0;
  2045. outline: none;
  2046. box-sizing: content-box;
  2047. background: none;
  2048. -webkit-tap-highlight-color: transparent;
  2049. border: 1px solid rgba(0, 0, 0, 0.23);
  2050. border-radius: 4px;
  2051. box-sizing: border-box;
  2052. resize: none;
  2053. }
  2054. .binfo_input:focus-visible {
  2055. border: 1px solid rgba(61, 103, 188);
  2056. }
  2057. .chapter_beizhu {
  2058. font-size: 12px;
  2059. font-weight: bold;
  2060. float: right;
  2061. color: rgb(128, 128, 128);
  2062. margin-top: 5px;
  2063. }
  2064. .chapter_uploadBox1 {
  2065. text-align: left;
  2066. background-color: rgb(242, 242, 242);
  2067. width: 100%;
  2068. height: 67px;
  2069. padding: 0px 15px;
  2070. border-radius: 8px;
  2071. overflow: hidden;
  2072. font-size: 16px;
  2073. box-sizing: border-box;
  2074. position: relative;
  2075. }
  2076. .chapter_add {
  2077. width: 100%;
  2078. height: 32px;
  2079. margin-top: 15px;
  2080. cursor: pointer;
  2081. }
  2082. .chapter_add_l {
  2083. margin-left: 5px;
  2084. width: 30px;
  2085. height: 30px;
  2086. float: left;
  2087. border: 1px solid #aaa;
  2088. color: #aaa;
  2089. border-radius: 50%;
  2090. font-size: 25px;
  2091. text-align: center;
  2092. }
  2093. .chapter_add_r {
  2094. font-size: 18px;
  2095. height: 40px;
  2096. line-height: 30px;
  2097. text-indent: 10px;
  2098. color: #aaa;
  2099. }
  2100. .chapter_add_r span {
  2101. font-size: 12px;
  2102. color: rgb(204, 204, 204);
  2103. }
  2104. .chapter_add_input {
  2105. display: none;
  2106. }
  2107. .line {
  2108. width: 85%;
  2109. margin: 0 auto;
  2110. border-top: 1px solid #e5e5e5;
  2111. margin-top: 20px;
  2112. }
  2113. .info_btnBox {
  2114. width: 100%;
  2115. display: flex;
  2116. justify-content: space-evenly;
  2117. margin: 20px 0 25px 0;
  2118. }
  2119. .info_btn,
  2120. .teacherWord {
  2121. color: #fff;
  2122. background-color: #6a8ed5;
  2123. padding: 8px 24px;
  2124. font-size: 0.9375rem;
  2125. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  2126. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  2127. min-width: 64px;
  2128. font-weight: 500;
  2129. border-radius: 4px;
  2130. box-sizing: border-box;
  2131. border: none;
  2132. cursor: pointer;
  2133. }
  2134. .teacherWord {
  2135. width: 105px !important;
  2136. text-align: center !important;
  2137. line-height: 36px !important;
  2138. padding: 0 !important;
  2139. font-size: 14px !important;
  2140. margin: 10px 0 !important;
  2141. }
  2142. .wordTeacher {
  2143. display: flex;
  2144. flex-direction: column;
  2145. width: 20%;
  2146. text-align: center;
  2147. font-size: 14px;
  2148. margin: 30px 30px 0 10px;
  2149. background: #fff;
  2150. position: relative;
  2151. border-radius: 5px;
  2152. padding: 25px 0px;
  2153. }
  2154. .wordPic {
  2155. margin: 0 auto;
  2156. width: 60px;
  2157. height: 60px;
  2158. cursor: pointer;
  2159. }
  2160. .deleteWord {
  2161. width: 22px;
  2162. height: 22px;
  2163. position: absolute;
  2164. right: 20px;
  2165. top: -10px;
  2166. cursor: pointer;
  2167. }
  2168. .wordPic > img,
  2169. .deleteWord > img {
  2170. width: 100%;
  2171. height: 100%;
  2172. }
  2173. .info_btn:hover {
  2174. background-color: #4f7cd5 !important;
  2175. }
  2176. .cru_selectBox {
  2177. display: flex;
  2178. margin: 24px 0 10px;
  2179. flex-wrap: nowrap;
  2180. white-space: nowrap;
  2181. overflow: auto;
  2182. position: relative;
  2183. height: 47px;
  2184. }
  2185. .cru_selectBox::-webkit-scrollbar {
  2186. /*滚动条整体样式*/
  2187. width: 6px;
  2188. /*高宽分别对应横竖滚动条的尺寸*/
  2189. height: 6px;
  2190. }
  2191. /*定义滚动条轨道 内阴影+圆角*/
  2192. .cru_selectBox::-webkit-scrollbar-track {
  2193. border-radius: 10px;
  2194. background-color: #eee;
  2195. }
  2196. /*定义滑块 内阴影+圆角*/
  2197. .cru_selectBox::-webkit-scrollbar-thumb {
  2198. border-radius: 10px;
  2199. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  2200. background-color: rgba(0, 0, 0, 0.1);
  2201. }
  2202. .cru_line {
  2203. position: absolute;
  2204. bottom: 0px;
  2205. transition: all 0.5s;
  2206. left: 0px;
  2207. width: 125px;
  2208. margin-left: -25px;
  2209. }
  2210. .cru_select {
  2211. font-size: 21px;
  2212. margin-right: 37px;
  2213. margin-left: 5px;
  2214. cursor: pointer;
  2215. color: #a6a6a6;
  2216. }
  2217. .cru_selected {
  2218. color: #0b7fc2 !important;
  2219. }
  2220. .chapter_contentbox {
  2221. display: flex;
  2222. align-items: center;
  2223. margin-top: 15px;
  2224. }
  2225. .chapter_contentbox div:nth-child(1) {
  2226. width: 150px;
  2227. margin: 0px;
  2228. font-size: 2em;
  2229. color: black;
  2230. display: block;
  2231. white-space: nowrap;
  2232. overflow: hidden;
  2233. text-overflow: ellipsis;
  2234. font-weight: 600;
  2235. }
  2236. .chapter_contentbox div:nth-child(2) {
  2237. width: 380px;
  2238. }
  2239. .chapter_contentbox div:nth-child(3) {
  2240. background-image: url(../../assets/remove.png);
  2241. cursor: pointer;
  2242. opacity: 0.5;
  2243. width: 40px;
  2244. height: 50px;
  2245. background-repeat: no-repeat;
  2246. background-position: 5px 10px;
  2247. }
  2248. .binfo_input {
  2249. font: inherit;
  2250. color: currentColor;
  2251. width: 100%;
  2252. margin: 0;
  2253. padding: 15px 14px;
  2254. display: block;
  2255. min-width: 0;
  2256. outline: none;
  2257. box-sizing: content-box;
  2258. background: none;
  2259. border: 1px solid rgba(0, 0, 0, 0.23);
  2260. border-radius: 4px;
  2261. box-sizing: border-box;
  2262. background: #fff;
  2263. }
  2264. .binfo_input:focus-visible {
  2265. border: 1px solid rgba(61, 103, 188);
  2266. }
  2267. .time {
  2268. display: flex;
  2269. margin: 35px 0 80px 0;
  2270. }
  2271. .chapter_btnbox {
  2272. width: 160px;
  2273. border-radius: 5px;
  2274. border: 2px dashed gray;
  2275. display: flex;
  2276. padding: 8px 50px;
  2277. align-items: center;
  2278. justify-content: center;
  2279. margin: 30px auto 0;
  2280. cursor: pointer;
  2281. }
  2282. .icon_add {
  2283. position: relative;
  2284. width: 24px;
  2285. padding-top: 20px;
  2286. border-radius: 100%;
  2287. border-width: 2px;
  2288. border-style: solid;
  2289. border-color: gray;
  2290. }
  2291. .icon_add i:nth-child(1) {
  2292. position: absolute;
  2293. left: 50%;
  2294. top: 50%;
  2295. height: 60%;
  2296. transform: translate(-50%, -50%);
  2297. border-width: 1px;
  2298. border-style: solid;
  2299. border-color: inherit;
  2300. }
  2301. .icon_add i:nth-child(2) {
  2302. position: absolute;
  2303. top: 50%;
  2304. left: 50%;
  2305. width: 60%;
  2306. transform: translate(-50%, -50%);
  2307. border-width: 1px;
  2308. border-style: solid;
  2309. border-color: inherit;
  2310. }
  2311. .chapter_btn_w {
  2312. font-size: 0.9375rem;
  2313. font-weight: bold;
  2314. color: gray;
  2315. margin-left: 20px;
  2316. }
  2317. .disUoloadSty >>> .el-icon-plus {
  2318. display: none !important; /* 上传按钮隐藏 */
  2319. }
  2320. .imgLeft {
  2321. margin: 15px 0;
  2322. }
  2323. .add_info_box {
  2324. margin: 20px 0;
  2325. }
  2326. .add_info_box button {
  2327. margin: 0 10px 10px 0;
  2328. }
  2329. .add_chapters_box {
  2330. text-align: left;
  2331. background-color: rgb(242, 242, 242);
  2332. width: 100%;
  2333. padding: 0px 15px;
  2334. border-radius: 15px;
  2335. font-size: 16px;
  2336. box-sizing: border-box;
  2337. position: relative;
  2338. padding: 0 10px 5px 10px;
  2339. height: 185px;
  2340. overflow-y: auto;
  2341. overflow-x: hidden;
  2342. }
  2343. .homework_box {
  2344. display: flex;
  2345. align-items: center;
  2346. flex-wrap: wrap;
  2347. margin: 15px 0 0 0;
  2348. }
  2349. .course_homework {
  2350. display: flex;
  2351. justify-content: center;
  2352. flex-direction: row;
  2353. align-items: center;
  2354. margin: 0 10px 0 0;
  2355. }
  2356. .course_homework >>> .el-input__inner {
  2357. width: 140px;
  2358. margin-left: 15px;
  2359. }
  2360. .chapter_upload_move {
  2361. position: relative;
  2362. background-color: #fff;
  2363. position: absolute;
  2364. width: 100%;
  2365. top: 0px;
  2366. left: 0px;
  2367. border: 1px solid #eee;
  2368. border-radius: 5px;
  2369. transition: width 2s;
  2370. -moz-transition: width 2s;
  2371. -webkit-transition: width 2s;
  2372. -o-transition: width 2s;
  2373. }
  2374. .chapter_upload_l_i {
  2375. background-image: url("../../assets/icon.png");
  2376. background-position: 3px -165px;
  2377. width: 30px;
  2378. height: 30px;
  2379. margin: 10px auto 0 auto;
  2380. }
  2381. .left_first {
  2382. display: flex;
  2383. flex-direction: column;
  2384. flex-wrap: nowrap;
  2385. width: 65%;
  2386. }
  2387. .right_first {
  2388. width: 70%;
  2389. height: 100%;
  2390. margin-top: 15px;
  2391. }
  2392. .right_title {
  2393. height: 30px;
  2394. padding: 20px 0 10px 30px;
  2395. border-bottom: 1px solid #f2f2f2;
  2396. }
  2397. .people {
  2398. border: 1px solid rgb(229 229 229);
  2399. height: 495px;
  2400. border-radius: 5px;
  2401. width: 100%;
  2402. overflow: auto;
  2403. }
  2404. .people_top {
  2405. display: flex;
  2406. width: 100%;
  2407. justify-content: space-between;
  2408. align-items: center;
  2409. }
  2410. .people_nav,
  2411. .people_top_right {
  2412. padding: 20px 0 0 20px;
  2413. }
  2414. .people_search {
  2415. display: flex;
  2416. position: relative;
  2417. }
  2418. .people_search >>> .el-input__inner {
  2419. height: 25px;
  2420. width: 95%;
  2421. }
  2422. .search_img {
  2423. width: 20px;
  2424. height: 20px;
  2425. position: absolute;
  2426. right: 15px;
  2427. top: 3px;
  2428. }
  2429. .search_img > img {
  2430. width: 100%;
  2431. height: 100%;
  2432. }
  2433. .people_name {
  2434. display: flex;
  2435. justify-content: flex-start;
  2436. padding: 20px 0 0 25px;
  2437. flex-direction: column;
  2438. flex-wrap: wrap;
  2439. }
  2440. .people_name >>> .el-checkbox {
  2441. width: 100%;
  2442. display: flex;
  2443. align-items: center;
  2444. margin-bottom: 10px;
  2445. }
  2446. .people_name >>> .el-checkbox__label {
  2447. text-overflow: ellipsis;
  2448. overflow: hidden;
  2449. width: 100%;
  2450. }
  2451. .right_img {
  2452. width: 150px;
  2453. height: 150px;
  2454. margin: 0 auto;
  2455. }
  2456. .right_img > img {
  2457. width: 100%;
  2458. height: 100%;
  2459. }
  2460. .number {
  2461. margin-top: 20px;
  2462. color: #4aa6ff;
  2463. text-decoration: underline;
  2464. }
  2465. .success_button {
  2466. display: flex;
  2467. text-align: center;
  2468. margin: 5% 0 auto;
  2469. flex-direction: row;
  2470. justify-content: center;
  2471. }
  2472. .look_course {
  2473. margin-right: 40px;
  2474. background: #3d67bc;
  2475. width: 200px;
  2476. height: 35px;
  2477. line-height: 35px;
  2478. color: #fff;
  2479. text-align: center;
  2480. font-size: 14px;
  2481. border-radius: 5px;
  2482. cursor: pointer;
  2483. }
  2484. .attend_others {
  2485. width: 250px;
  2486. background: #4fb13c;
  2487. height: 35px;
  2488. line-height: 35px;
  2489. color: #fff;
  2490. text-align: center;
  2491. font-size: 14px;
  2492. border-radius: 5px;
  2493. cursor: pointer;
  2494. }
  2495. .dialog_diy2 >>> .el-dialog__body {
  2496. text-align: center;
  2497. }
  2498. .write_togother {
  2499. position: absolute;
  2500. right: 45px;
  2501. display: flex;
  2502. top: 5%;
  2503. }
  2504. .write_people {
  2505. font-size: 14px;
  2506. line-height: 50px;
  2507. padding-right: 10px;
  2508. }
  2509. .end_write {
  2510. background: #3d67bc;
  2511. color: #fff;
  2512. width: 100px;
  2513. height: 35px;
  2514. line-height: 35px;
  2515. text-align: center;
  2516. font-size: 14px;
  2517. border-radius: 5px;
  2518. cursor: pointer;
  2519. }
  2520. .chapter_upload {
  2521. height: 50px;
  2522. margin-top: 12px;
  2523. position: relative;
  2524. display: flex;
  2525. align-items: center;
  2526. width: 100%;
  2527. }
  2528. .chapter_upload_t {
  2529. background-color: #fff;
  2530. position: absolute;
  2531. height: 100%;
  2532. top: 0px;
  2533. left: 0px;
  2534. border-radius: 40px;
  2535. box-sizing: border-box;
  2536. box-shadow: 0 0 3px 3px #dfdfdf;
  2537. }
  2538. .chapter_upload_o {
  2539. width: 100%;
  2540. height: 100%;
  2541. position: relative;
  2542. z-index: 1;
  2543. }
  2544. .chapter_upload_l {
  2545. /* width: 50px;
  2546. height: 50px;
  2547. border-right: 1px solid #eee;
  2548. float: left; */
  2549. }
  2550. .chapter_upload_ic {
  2551. height: 30px;
  2552. float: right;
  2553. }
  2554. .chapter_upload_ic_l {
  2555. width: 50px;
  2556. height: 50px;
  2557. float: left;
  2558. }
  2559. .chapter_upload_ic_l div {
  2560. width: 30px;
  2561. height: 35px;
  2562. background: url("../../assets/icon/icon.png");
  2563. }
  2564. .chapter_upload_ic_r {
  2565. width: 50px;
  2566. height: 50px;
  2567. float: left;
  2568. margin-left: 0px;
  2569. display: flex;
  2570. align-items: center;
  2571. }
  2572. .chapter_upload_ic_r div {
  2573. width: 25px;
  2574. height: 25px;
  2575. background-image: url("../../assets/delete.png");
  2576. background-size: 100% 100%;
  2577. }
  2578. .chapter_upload_n {
  2579. display: flex;
  2580. text-indent: 10px;
  2581. text-decoration: none;
  2582. text-overflow: ellipsis;
  2583. white-space: nowrap;
  2584. overflow: hidden;
  2585. width: 55%;
  2586. margin-left: 20px;
  2587. }
  2588. .chapter_upload_l_i1 {
  2589. background-image: url("../../assets/icon/video.png");
  2590. width: 28px;
  2591. height: 28px;
  2592. /* margin: 10px auto 0 auto; */
  2593. background-size: 100% 100%;
  2594. }
  2595. .chapter_upload_l_i5 {
  2596. background-image: url("../../assets/icon/word.png");
  2597. width: 24px;
  2598. height: 24px;
  2599. /* margin: 10px auto 0 auto; */
  2600. background-size: 100% 100%;
  2601. }
  2602. .chapter_upload_ud {
  2603. display: flex;
  2604. flex-direction: column;
  2605. margin-left: 5px;
  2606. justify-content: center;
  2607. }
  2608. .chapter_upload_up {
  2609. background-image: url("../../assets/icon/up.png");
  2610. width: 17px;
  2611. height: 15px;
  2612. background-size: 100% 100%;
  2613. cursor: pointer;
  2614. }
  2615. .chapter_upload_down {
  2616. background-image: url("../../assets/icon/down.png");
  2617. width: 17px;
  2618. height: 15px;
  2619. margin: 2px auto 0 auto;
  2620. background-size: 100% 100%;
  2621. cursor: pointer;
  2622. }
  2623. .addWordStyle {
  2624. display: flex;
  2625. flex-direction: row;
  2626. justify-content: flex-start;
  2627. overflow-x: auto;
  2628. white-space: nowrap;
  2629. flex-wrap: wrap;
  2630. }
  2631. /* table 样式 */
  2632. .cont >>> table {
  2633. border-top: 1px solid #ccc;
  2634. border-left: 1px solid #ccc;
  2635. }
  2636. .cont >>> table td,
  2637. .cont >>> table th {
  2638. border-bottom: 1px solid #ccc;
  2639. border-right: 1px solid #ccc;
  2640. padding: 3px 5px;
  2641. }
  2642. .cont >>> table th {
  2643. border-bottom: 2px solid #ccc;
  2644. text-align: center;
  2645. }
  2646. /* blockquote 样式 */
  2647. .cont >>> blockquote {
  2648. display: block;
  2649. border-left: 8px solid #d0e5f2;
  2650. padding: 5px 10px;
  2651. margin: 10px 0;
  2652. line-height: 1.4;
  2653. font-size: 100%;
  2654. background-color: #f1f1f1;
  2655. }
  2656. /* code 样式 */
  2657. .cont >>> code {
  2658. display: inline-block;
  2659. *display: inline;
  2660. *zoom: 1;
  2661. background-color: #f1f1f1;
  2662. border-radius: 3px;
  2663. padding: 3px 5px;
  2664. margin: 0 3px;
  2665. }
  2666. .cont >>> pre code {
  2667. display: block;
  2668. }
  2669. /* ul ol 样式 */
  2670. .cont >>> ul,
  2671. ol {
  2672. margin: 10px 0 10px 20px;
  2673. }
  2674. .wordbox {
  2675. display: flex;
  2676. flex-wrap: wrap;
  2677. cursor: pointer;
  2678. width: 100%;
  2679. }
  2680. .checkword {
  2681. width: 22px;
  2682. height: 22px;
  2683. margin: 10px auto 0;
  2684. cursor: pointer;
  2685. }
  2686. .checkword img {
  2687. width: 100%;
  2688. }
  2689. .stepBg {
  2690. margin: 0 25px 0 0;
  2691. width: 17%;
  2692. min-width: 230px;
  2693. border-radius: 10px;
  2694. display: flex;
  2695. flex-direction: column;
  2696. justify-content: flex-start;
  2697. align-items: center;
  2698. flex-wrap: nowrap;
  2699. background: #fff;
  2700. max-height: 700px;
  2701. }
  2702. .stepBg > div {
  2703. height: 80px;
  2704. width: 85%;
  2705. cursor: pointer;
  2706. margin: 10px 0;
  2707. border-radius: 10px;
  2708. }
  2709. .first,
  2710. .second,
  2711. .third,
  2712. .four {
  2713. background: #4a83d0;
  2714. height: 90px;
  2715. color: #fff;
  2716. display: flex;
  2717. flex-direction: row;
  2718. align-items: center;
  2719. justify-content: center;
  2720. }
  2721. .first > div:nth-child(1),
  2722. .second > div:nth-child(1),
  2723. .third > div:nth-child(1),
  2724. .four > div:nth-child(1) {
  2725. margin: 5px 10px 0 0;
  2726. width: 2rem;
  2727. }
  2728. .firstNo,
  2729. .secondNo,
  2730. .thirdNo,
  2731. .fourNo {
  2732. background: #e7e7e7;
  2733. color: #adadad;
  2734. display: flex;
  2735. flex-direction: row;
  2736. align-items: center;
  2737. justify-content: center;
  2738. }
  2739. .firstNo > div:nth-child(1),
  2740. .secondNo > div:nth-child(1),
  2741. .thirdNo > div:nth-child(1),
  2742. .fourNo > div:nth-child(1) {
  2743. margin: 5px 10px 0 0;
  2744. width: 2rem;
  2745. }
  2746. .uploadWidth >>> .el-upload {
  2747. width: 60px;
  2748. height: 60px;
  2749. position: relative;
  2750. }
  2751. .addPeople {
  2752. background: #fa6060;
  2753. width: 135px;
  2754. height: 40px;
  2755. color: #fff;
  2756. border-radius: 5px;
  2757. text-align: center;
  2758. line-height: 40px;
  2759. font-size: 15px;
  2760. cursor: pointer;
  2761. }
  2762. .kcImg {
  2763. width: 60px;
  2764. margin-left: 10px;
  2765. }
  2766. .zyImg {
  2767. width: 55px;
  2768. margin: 0 10px;
  2769. }
  2770. .deleteZy {
  2771. width: 20px;
  2772. position: absolute;
  2773. top: 5px;
  2774. right: 5px;
  2775. cursor: pointer;
  2776. }
  2777. .kcImg > img,
  2778. .zyImg > img,
  2779. .deleteZy > img {
  2780. width: 100%;
  2781. height: 100%;
  2782. }
  2783. .zyBox {
  2784. display: flex;
  2785. flex-direction: row;
  2786. align-items: center;
  2787. background: #67d37d;
  2788. color: #fff;
  2789. width: 210px;
  2790. margin-left: 20px;
  2791. border-radius: 10px;
  2792. height: 70px;
  2793. position: relative;
  2794. }
  2795. .upCss {
  2796. display: flex;
  2797. flex-direction: row;
  2798. justify-content: flex-start;
  2799. }
  2800. /* .upCss >>> .el-upload {
  2801. margin-right: 30px;
  2802. } */
  2803. .upCss >>> .el-icon-plus {
  2804. position: none !important;
  2805. width: 200px;
  2806. height: 100px;
  2807. display: flex;
  2808. flex-wrap: nowrap;
  2809. flex-direction: column;
  2810. align-items: center;
  2811. justify-content: center;
  2812. border: 1px dashed #ccc;
  2813. min-width: 78px;
  2814. min-height: 100px;
  2815. z-index: 999;
  2816. }
  2817. .addStageImg {
  2818. min-width: 25px;
  2819. min-height: 25px;
  2820. width: 25px;
  2821. height: 25px;
  2822. cursor: pointer;
  2823. }
  2824. .addHW {
  2825. width: 70px;
  2826. height: 70px;
  2827. cursor: pointer;
  2828. }
  2829. .addStageImg > img,
  2830. .addHW > img {
  2831. width: 100%;
  2832. height: 100%;
  2833. }
  2834. .addNewPP >>> .el-dialog__body {
  2835. padding: 5px 20px;
  2836. }
  2837. .isHeight {
  2838. height: 680px;
  2839. }
  2840. .toolChoose {
  2841. display: flex;
  2842. width: 100%;
  2843. flex-direction: row;
  2844. flex-wrap: wrap;
  2845. }
  2846. .tool {
  2847. display: flex;
  2848. flex-direction: column;
  2849. flex-wrap: nowrap;
  2850. width: 20%;
  2851. margin: 0 20px;
  2852. align-items: center;
  2853. }
  2854. .whiteBIcon {
  2855. width: 150px;
  2856. cursor: pointer;
  2857. }
  2858. .whiteBIcon > img,
  2859. .check > img {
  2860. width: 100%;
  2861. height: 100%;
  2862. }
  2863. .check {
  2864. width: 25px;
  2865. height: 25px;
  2866. cursor: pointer;
  2867. margin: 10px 0;
  2868. }
  2869. .customWidth >>> .el-dialog {
  2870. min-width: 500px !important;
  2871. }
  2872. .a_addBox {
  2873. margin: 10px 0;
  2874. background: #fff;
  2875. padding: 15px;
  2876. max-height: 400px;
  2877. overflow: auto;
  2878. }
  2879. .a_add_box {
  2880. border-bottom: 2px solid #eee;
  2881. padding-bottom: 10px;
  2882. }
  2883. .a_add_head {
  2884. display: flex;
  2885. align-items: center;
  2886. justify-content: space-between;
  2887. margin: 10px 0;
  2888. font-size: 18px;
  2889. }
  2890. .a_add_head .a_add_head_input {
  2891. width: 300px;
  2892. }
  2893. .a_add_head .a_add_head_div {
  2894. display: flex;
  2895. align-items: center;
  2896. justify-content: space-between;
  2897. }
  2898. .a_add_body {
  2899. display: flex;
  2900. align-items: center;
  2901. }
  2902. .a_add_input {
  2903. display: flex;
  2904. align-items: center;
  2905. flex-wrap: wrap;
  2906. /* flex-direction: column; */
  2907. /* width: 100%; */
  2908. }
  2909. .width100 {
  2910. width: 100%;
  2911. }
  2912. .a_add_input .a_add_persent {
  2913. /* display: flex; */
  2914. /* flex-direction: column; */
  2915. width: 100%;
  2916. }
  2917. .a_add_persent_div {
  2918. width: 100%;
  2919. display: flex;
  2920. align-items: center;
  2921. }
  2922. .a_add_persent_div span {
  2923. margin: 5px 0;
  2924. }
  2925. .a_add_persent_div span:nth-child(1) {
  2926. width: 30%;
  2927. }
  2928. .a_add_persent_div span:nth-child(2) {
  2929. width: 7%;
  2930. }
  2931. .a_add_persent_div span:nth-child(3) {
  2932. width: 40%;
  2933. }
  2934. .a_add_persent_title {
  2935. /* margin-bottom: 10px; */
  2936. }
  2937. .a_add_body_div {
  2938. display: flex;
  2939. align-items: center;
  2940. justify-content: center;
  2941. flex-direction: column;
  2942. }
  2943. .all_choose {
  2944. display: flex;
  2945. flex-direction: row;
  2946. align-items: flex-start;
  2947. }
  2948. .all_choose > span {
  2949. width: 80px;
  2950. display: block;
  2951. letter-spacing: 14px;
  2952. }
  2953. .all_choose >>> .el-checkbox-group {
  2954. display: flex;
  2955. flex-direction: row;
  2956. width: 820px;
  2957. flex-wrap: wrap;
  2958. align-content: center;
  2959. justify-content: flex-start;
  2960. align-items: center;
  2961. }
  2962. .all_choose > .el-checkbox-group >>> .el-checkbox {
  2963. margin-bottom: 10px;
  2964. }
  2965. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  2966. min-width: 80px;
  2967. }
  2968. .choose > div:nth-child(3) > span {
  2969. letter-spacing: 0 !important;
  2970. }
  2971. .choose {
  2972. display: flex;
  2973. flex-direction: column;
  2974. flex-wrap: nowrap;
  2975. height: 100%;
  2976. justify-content: space-evenly;
  2977. align-items: flex-start;
  2978. }
  2979. .both {
  2980. display: flex;
  2981. flex-direction: row;
  2982. flex-wrap: wrap;
  2983. width: 100%;
  2984. height: 350px;
  2985. align-items: center;
  2986. justify-content: flex-start;
  2987. }
  2988. .notice >>> .el-dialog {
  2989. width: 500px !important;
  2990. text-align: center;
  2991. }
  2992. .notice >>> .el-button {
  2993. margin-top: 20px;
  2994. }
  2995. .whiteBg {
  2996. background: #fff;
  2997. border-radius: 10px;
  2998. min-width: 800px;
  2999. }
  3000. </style>