addCourse.vue 84 KB

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