addCourse.vue 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096
  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">
  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">
  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">
  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">
  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">
  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">邀请老师协同编辑</div>
  847. <div class="attend_others" @click="dialogVisible = true">
  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. courseName: "",
  1007. isTeacherSee: false,
  1008. courseText: "",
  1009. formLabelWidth: "100px",
  1010. uploadLoading1: false,
  1011. noneBtnImg: false,
  1012. updateBoolean2: false,
  1013. unitIndex: 0,
  1014. dialogVisible: false,
  1015. dialogVisible1: false,
  1016. dialogVisible2: false,
  1017. dialogVisible3: false,
  1018. dialogVisible4: false,
  1019. publicTool: 0,
  1020. searchPeople: "",
  1021. userid: this.$route.query.userid,
  1022. oid: this.$route.query.oid,
  1023. cid: this.$route.query.cid != "" ? this.$route.query.cid : "",
  1024. cover: [], //课程封面
  1025. myWord: [],
  1026. unitJson: [
  1027. {
  1028. dyName: "", //单元标题
  1029. dyText: "",
  1030. startTime: "", //开始时间
  1031. endTime: "", //结束时间
  1032. isTalk: false, //是否开启评价
  1033. chapterInfo: [
  1034. {
  1035. isread: false,
  1036. chapterid: this.guid(),
  1037. title: "",
  1038. courseName: "",
  1039. question: "",
  1040. chapterData: [],
  1041. toolChoose: [],
  1042. askCount: 1,
  1043. askTitle: "",
  1044. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1045. checkJson: [{ checkCount: [], checkPerent: [] }],
  1046. itemCount: 1,
  1047. fileList1: [],
  1048. homeworkList: [],
  1049. video: [],
  1050. testData: [],
  1051. pData: [],
  1052. templateArray: [],
  1053. },
  1054. ],
  1055. },
  1056. ],
  1057. studentJuri: [],
  1058. checkboxList: [],
  1059. number: "",
  1060. tTitle: "",
  1061. tdetail: "",
  1062. templateC: {},
  1063. cTemplate: "",
  1064. CourseType: [],
  1065. CourseTypeJson: {},
  1066. courseTypeId: [],
  1067. courseTypeSon: [],
  1068. clearArray: [],
  1069. loading:false,
  1070. };
  1071. },
  1072. computed: {
  1073. offsetLetfPx: function () {
  1074. //addnum可以直接在模板语法里面用,相当于data内的值
  1075. return (
  1076. $(".cru_select")[this.unitIndex] &&
  1077. $(".cru_select")[this.unitIndex].offsetLeft
  1078. );
  1079. },
  1080. },
  1081. methods: {
  1082. handleCheckAllChange(val) {
  1083. this.checkedCities = val ? cityOptions : [];
  1084. this.isIndeterminate = false;
  1085. },
  1086. handleCheckedCitiesChange(value) {
  1087. let checkedCount = value.length;
  1088. this.checkAll = checkedCount === this.cities.length;
  1089. this.isIndeterminate =
  1090. checkedCount > 0 && checkedCount < this.cities.length;
  1091. },
  1092. addHw(e) {
  1093. var el = e.currentTarget;
  1094. el.getElementsByTagName("input")[0].click();
  1095. },
  1096. change(val) {
  1097. console.log(val);
  1098. },
  1099. handleClose(done) {
  1100. done();
  1101. },
  1102. imgChange1(file, fileList, type) {
  1103. if (type == 1) {
  1104. var _tmp = this.cover;
  1105. } else if (type == 2 || type == 3) {
  1106. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].chapterData;
  1107. } else if (type == 4) {
  1108. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  1109. } else {
  1110. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].homeworkList;
  1111. }
  1112. this.noneBtnImg = _tmp.length >= 1;
  1113. },
  1114. goTo(path) {
  1115. this.$router.push(path);
  1116. },
  1117. guid() {
  1118. var _num,
  1119. i,
  1120. _guid = "";
  1121. for (i = 0; i < 32; i++) {
  1122. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  1123. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  1124. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  1125. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  1126. _guid += "-";
  1127. }
  1128. }
  1129. return _guid;
  1130. },
  1131. lastSteps() {
  1132. if (this.steps == 4) {
  1133. // window.location.href =
  1134. // "./course.vue?userid=" + this.userid + "&oid=" + this.oid;
  1135. this.goTo("/course?userid=" + this.userid + "&oid=" + this.oid);
  1136. } else {
  1137. this.steps--;
  1138. }
  1139. },
  1140. navSteps(s) {
  1141. if (s == 1) {
  1142. this.steps = 1;
  1143. }
  1144. if (s == 2) {
  1145. if (
  1146. this.courseName != "" &&
  1147. this.courseText != "" &&
  1148. this.cover.length != 0 &&
  1149. this.courseTypeId.length != 0 &&
  1150. this.checkboxList.length != 0
  1151. ) {
  1152. this.steps = 2;
  1153. } else {
  1154. this.$message.error("请将信息填写完整");
  1155. }
  1156. }
  1157. if (s == 3) {
  1158. if (this.templateC.id != undefined) {
  1159. this.cTemplate = this.templateC.content;
  1160. this.dialogVisible2 = false;
  1161. this.steps = 3;
  1162. } else {
  1163. this.$message.error("请选择文档");
  1164. return;
  1165. }
  1166. }
  1167. },
  1168. nextSteps() {
  1169. if (this.steps == 1) {
  1170. if (
  1171. this.courseName != "" &&
  1172. this.courseText != "" &&
  1173. this.cover.length != 0 &&
  1174. this.courseTypeId.length != 0 &&
  1175. this.checkboxList.length != 0
  1176. ) {
  1177. this.steps++;
  1178. } else {
  1179. this.$message.error("请将信息填写完整");
  1180. }
  1181. } else if (this.steps == 2) {
  1182. if (this.templateC.id == "" || this.templateC.id == undefined) {
  1183. this.$message.error("请选择文档");
  1184. return;
  1185. }
  1186. this.cTemplate = this.templateC.content;
  1187. this.dialogVisible2 = false;
  1188. this.steps++;
  1189. } else if (this.steps == 3) {
  1190. if (this.cid == "" || this.cid == undefined) {
  1191. this.addWork();
  1192. this.steps++;
  1193. } else {
  1194. this.updateWork();
  1195. this.steps++;
  1196. }
  1197. }
  1198. },
  1199. unitSet(i) {
  1200. this.unitIndex = i;
  1201. },
  1202. time() {
  1203. if (!this.now) {
  1204. this.now = new Date().getTime();
  1205. return true;
  1206. } else {
  1207. let time = new Date().getTime();
  1208. if (time - this.now > 3000) {
  1209. this.now = time;
  1210. return true;
  1211. } else {
  1212. return false;
  1213. }
  1214. }
  1215. },
  1216. deleteUnit(i) {
  1217. var _this = this;
  1218. if (_this.time()) {
  1219. _this
  1220. .$confirm("确定删除此单元吗?", "提示", {
  1221. confirmButtonText: "确定",
  1222. cancelButtonText: "取消",
  1223. type: "warning",
  1224. })
  1225. .then(() => {
  1226. _this.unitJson.splice(i, 1);
  1227. // var a = 0;
  1228. // if (_this.unitIndex > 0) {
  1229. // a = _this.unitIndex - 1;
  1230. // }
  1231. this.unitIndex = this.unitIndex - 1;
  1232. _this.$message.success("删除成功");
  1233. })
  1234. .catch(() => {
  1235. return;
  1236. });
  1237. }
  1238. },
  1239. handlePictureCardPreview(file) {
  1240. this.dialogImageUrl = file.url;
  1241. },
  1242. clean(i, c) {
  1243. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  1244. },
  1245. handle_remove1(file, fileList, type) {
  1246. var _tmp = this.cover;
  1247. for (var i = 0, len = _tmp.length; i < len; i++) {
  1248. if (_tmp[i].uid == file.uid) {
  1249. _tmp.splice(i, 1);
  1250. break;
  1251. }
  1252. this.cover = _tmp;
  1253. }
  1254. this.noneBtnImg = _tmp.length >= 1;
  1255. },
  1256. addImg(e) {
  1257. var el = e.currentTarget;
  1258. el.getElementsByTagName("input")[0].click();
  1259. },
  1260. beforeUpload1(event, type) {
  1261. const loading = this.openLoading();
  1262. var file = event.file;
  1263. var credentials = {
  1264. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1265. secretAccessKey: "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",
  1266. }; //秘钥形式的登录上传
  1267. window.AWS.config.update(credentials);
  1268. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1269. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1270. var _this = this;
  1271. if (file) {
  1272. var params = {
  1273. Key:
  1274. file.name.split(".")[0] +
  1275. new Date().getTime() +
  1276. "." +
  1277. file.name.split(".")[1],
  1278. ContentType: file.type,
  1279. Body: file,
  1280. "Access-Control-Allow-Credentials": "*",
  1281. ACL: "public-read",
  1282. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1283. var options = {
  1284. partSize: 2048 * 1024 * 1024,
  1285. queueSize: 2,
  1286. leavePartsOnError: true,
  1287. };
  1288. bucket
  1289. .upload(params, options)
  1290. .on("httpUploadProgress", function (evt) {
  1291. //这里可以写进度条
  1292. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1293. })
  1294. .send(function (err, data) {
  1295. loading.close();
  1296. if (err) {
  1297. var a = _this.$refs.upload1.uploadFiles;
  1298. a.splice(a.length - 1, a.length);
  1299. _this.$message.error("上传失败");
  1300. } else {
  1301. _this.cover.push({
  1302. name: file.name,
  1303. url: data.Location,
  1304. uid: file.uid,
  1305. });
  1306. _this.imgChange1(null, null, 1);
  1307. console.log(data.Location);
  1308. }
  1309. });
  1310. }
  1311. },
  1312. beforeUpload(data) {
  1313. this.$refs.upload1.uploadFiles;
  1314. this.uploadLoading1 = true;
  1315. var file = data.file;
  1316. var credentials = {
  1317. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1318. secretAccessKey: "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",
  1319. }; //秘钥形式的登录上传
  1320. window.AWS.config.update(credentials);
  1321. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1322. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1323. var _this = this;
  1324. if (file) {
  1325. var params = {
  1326. Key:
  1327. file.name.split(".")[0] +
  1328. new Date().getTime() +
  1329. "." +
  1330. file.name.split(".")[1],
  1331. ContentType: file.type,
  1332. Body: file,
  1333. "Access-Control-Allow-Credentials": "*",
  1334. ACL: "public-read",
  1335. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1336. var options = {
  1337. partSize: 2048 * 1024 * 1024,
  1338. queueSize: 2,
  1339. leavePartsOnError: true,
  1340. };
  1341. bucket
  1342. .upload(params, options)
  1343. .on("httpUploadProgress", function (evt) {
  1344. //这里可以写进度条
  1345. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1346. })
  1347. .send(function (err, data) {
  1348. _this.uploadLoading1 = false;
  1349. if (err) {
  1350. var a = _this.$refs.upload1.uploadFiles;
  1351. a.splice(a.length - 1, a.length);
  1352. _this.$message.error("上传失败");
  1353. } else {
  1354. //上传成功处理
  1355. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  1356. name: file.name,
  1357. url: data.Location,
  1358. uid: file.uid,
  1359. });
  1360. _this.imgChange();
  1361. console.log(data.Location);
  1362. }
  1363. });
  1364. }
  1365. },
  1366. onExceed() {
  1367. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  1368. },
  1369. beforeUpload2(event, unitIndex, type) {
  1370. const loading = this.openLoading();
  1371. var file = event.target.files[0];
  1372. var credentials = {
  1373. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1374. secretAccessKey: "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",
  1375. }; //秘钥形式的登录上传
  1376. window.AWS.config.update(credentials);
  1377. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1378. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1379. var _this = this;
  1380. if (file) {
  1381. var params = {
  1382. Key:
  1383. file.name.split(".")[0] +
  1384. new Date().getTime() +
  1385. "." +
  1386. file.name.split(".")[1],
  1387. ContentType: file.type,
  1388. Body: file,
  1389. "Access-Control-Allow-Credentials": "*",
  1390. ACL: "public-read",
  1391. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1392. var options = {
  1393. partSize: 2048 * 1024 * 1024,
  1394. queueSize: 2,
  1395. leavePartsOnError: true,
  1396. };
  1397. bucket
  1398. .upload(params, options)
  1399. .on("httpUploadProgress", function (evt) {
  1400. //这里可以写进度条
  1401. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1402. })
  1403. .send(function (err, data) {
  1404. loading.close();
  1405. if (err) {
  1406. var a = _this.$refs.upload1.uploadFiles;
  1407. a.splice(a.length - 1, a.length);
  1408. _this.$message.error("上传失败");
  1409. } else {
  1410. if (type == 2 || type == 3) {
  1411. _this.unitJson[unitIndex].chapterInfo[0].chapterData.push({
  1412. name: file.name,
  1413. url: data.Location,
  1414. uid: file.uid,
  1415. type: type,
  1416. });
  1417. _this.imgChange1(null, null, type);
  1418. } else if (type == 4) {
  1419. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  1420. name: file.name,
  1421. url: data.Location,
  1422. uid: file.uid,
  1423. });
  1424. _this.imgChange1(null, null, type);
  1425. } else if (type == 5) {
  1426. _this.unitJson[
  1427. _this.unitIndex
  1428. ].chapterInfo[0].homeworkList.push({
  1429. name: file.name,
  1430. url: data.Location,
  1431. uid: file.uid,
  1432. });
  1433. _this.imgChange1(null, null, type);
  1434. }
  1435. console.log(data.Location);
  1436. }
  1437. });
  1438. }
  1439. },
  1440. addunit() {
  1441. this.unitJson.push({
  1442. dyName: "", //单元标题
  1443. dyText: "",
  1444. startTime: "", //开始时间
  1445. endTime: "", //结束时间
  1446. isTalk: false, //是否开启评价
  1447. chapterInfo: [
  1448. {
  1449. isread: false,
  1450. chapterid: this.guid(),
  1451. title: "",
  1452. courseName: "",
  1453. question: "",
  1454. chapterData: [],
  1455. toolChoose: [],
  1456. askCount: 1,
  1457. askTitle: "",
  1458. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1459. checkJson: [{ checkCount: [], checkPerent: [] }],
  1460. itemCount: 1,
  1461. fileList1: [],
  1462. homeworkList: [],
  1463. video: [],
  1464. testData: [],
  1465. pData: [],
  1466. templateArray: [],
  1467. },
  1468. ],
  1469. });
  1470. },
  1471. add(e, i) {
  1472. var el = e.currentTarget;
  1473. el.getElementsByTagName("input")[0].click();
  1474. },
  1475. deleteHomeworkBox(unitIndex, index, i) {
  1476. this.unitJson[unitIndex].chapterInfo[index].homeworkList.splice(i, 1);
  1477. },
  1478. getStudent() {
  1479. let params = {
  1480. cn: this.searchPeople,
  1481. oid: this.oid,
  1482. uid: this.userid,
  1483. };
  1484. this.ajax
  1485. .get(this.$store.state.api + "selectProjectStudent", params)
  1486. .then((res) => {
  1487. this.studentJuri = res.data[0];
  1488. })
  1489. .catch((err) => {});
  1490. },
  1491. searchStudent() {
  1492. this.getStudent();
  1493. },
  1494. getChapterData(e, i, j, ic, type) {
  1495. e.stopPropagation();
  1496. this.updataC = true;
  1497. this.icc = ic;
  1498. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  1499. console.log("还不能下载图片喔");
  1500. }
  1501. },
  1502. deleteChapterData(e, i, j, ic) {
  1503. // window.U.UF.EV.stopBubble();
  1504. e.stopPropagation();
  1505. this.unitJson[i].chapterInfo[j].chapterData.splice(ic, 1);
  1506. },
  1507. updataVideoT(e, i, j, ic) {
  1508. e.stopPropagation();
  1509. this.unitJson[i].chapterInfo[j].chapterData[ic].name = e.target.value;
  1510. },
  1511. upCd(e, i, j, ic) {
  1512. e.stopPropagation();
  1513. if (ic == 0) {
  1514. return;
  1515. }
  1516. var a = this.unitJson[i].chapterInfo[j].chapterData[ic - 1];
  1517. this.unitJson[i].chapterInfo[j].chapterData[ic - 1] =
  1518. this.unitJson[i].chapterInfo[j].chapterData[ic];
  1519. this.unitJson[i].chapterInfo[j].chapterData[ic] = a;
  1520. },
  1521. downCd(e, i, j, ic) {
  1522. e.stopPropagation();
  1523. if (ic == this.unitJson[i].chapterInfo[j].chapterData.length - 1) {
  1524. return;
  1525. }
  1526. var a = this.unitJson[i].chapterInfo[j].chapterData[ic + 1];
  1527. this.unitJson[i].chapterInfo[j].chapterData[ic + 1] =
  1528. this.unitJson[i].chapterInfo[j].chapterData[ic];
  1529. this.unitJson[i].chapterInfo[j].chapterData[ic] = a;
  1530. },
  1531. addWork() {
  1532. let params = [
  1533. {
  1534. uid: this.userid,
  1535. title: this.courseName,
  1536. brief: this.courseText.replace(/%/g, "%25"),
  1537. cover: this.cover.length > 0 ? JSON.stringify(this.cover) : "",
  1538. astudent:
  1539. this.checkboxList.length > 0
  1540. ? JSON.stringify(this.checkboxList)
  1541. : "",
  1542. see: this.isTeacherSee == true ? 0 : 1,
  1543. chapters: JSON.stringify(this.unitJson),
  1544. template: this.cTemplate,
  1545. courseType: JSON.stringify(this.courseTypeId),
  1546. },
  1547. ];
  1548. this.ajax
  1549. // .post(this.$store.state.api + "addWork", params)
  1550. .post(this.$store.state.api + "addWorkNew", params)
  1551. .then((res) => {
  1552. this.$message({
  1553. message: "新增成功",
  1554. type: "success",
  1555. });
  1556. this.number = res.data.ordernumber;
  1557. this.islogin = true;
  1558. })
  1559. .catch((err) => {
  1560. this.$message.error("新增失败");
  1561. console.error(err);
  1562. });
  1563. },
  1564. updateWork() {
  1565. let params = [
  1566. {
  1567. cid: this.cid,
  1568. title: this.courseName,
  1569. brief: this.courseText.replace(/%/g, "%25"),
  1570. cover: this.cover.length > 0 ? JSON.stringify(this.cover) : "",
  1571. astudent:
  1572. this.checkboxList.length > 0
  1573. ? JSON.stringify(this.checkboxList)
  1574. : "",
  1575. see: this.isTeacherSee == true ? 0 : 1,
  1576. chapters: JSON.stringify(this.unitJson),
  1577. template: this.myWord,
  1578. uid: this.userid,
  1579. courseType: JSON.stringify(this.courseTypeId),
  1580. },
  1581. ];
  1582. this.ajax
  1583. .post(this.$store.state.api + "updateWorkNew", params)
  1584. .then((res) => {
  1585. this.$message({
  1586. message: "修改成功",
  1587. type: "success",
  1588. });
  1589. this.number = this.nbOrder;
  1590. })
  1591. .catch((err) => {
  1592. this.$message.error("修改失败");
  1593. console.error(err);
  1594. });
  1595. },
  1596. guid() {
  1597. var _num,
  1598. i,
  1599. _guid = "";
  1600. for (i = 0; i < 32; i++) {
  1601. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  1602. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  1603. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  1604. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  1605. _guid += "-";
  1606. }
  1607. }
  1608. return _guid;
  1609. },
  1610. insertWord() {
  1611. this.dialogVisible1 = true;
  1612. this.updateBoolean2 = false;
  1613. this.tTitle = "";
  1614. this.tdetail = "";
  1615. },
  1616. addWord() {
  1617. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  1618. name: this.tTitle,
  1619. content: this.tdetail,
  1620. uid: this.guid(),
  1621. });
  1622. this.dialogVisible1 = false;
  1623. },
  1624. upWord() {},
  1625. selectWord(uid, i, c) {
  1626. this.dialogVisible1 = true;
  1627. this.updateBoolean2 = true;
  1628. if (
  1629. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  1630. ) {
  1631. this.tTitle =
  1632. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  1633. this.tdetail =
  1634. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  1635. }
  1636. },
  1637. isAddPP() {
  1638. if (this.checkboxList.length > 0) {
  1639. this.$message({
  1640. message: "添加成功",
  1641. type: "success",
  1642. });
  1643. this.dialogVisible3 = false;
  1644. } else {
  1645. this.$message({
  1646. message: "请添加项目成员",
  1647. type: "error",
  1648. });
  1649. }
  1650. },
  1651. getTemplate() {
  1652. this.ajax
  1653. .get(this.$store.state.api + "getTemplateT", "")
  1654. .then((res) => {
  1655. this.templateArray = res.data[0];
  1656. })
  1657. .catch((err) => {});
  1658. },
  1659. clearChoose() {
  1660. this.clearArray.splice(this.templateC.id, 1);
  1661. this.dialogVisible2 = false;
  1662. },
  1663. checkTemplate(res) {
  1664. this.clearArray.push(res.id);
  1665. this.templateC = res;
  1666. this.cTemplate = res.content;
  1667. this.dialogVisible2 = true;
  1668. },
  1669. checkTemplate1(w) {
  1670. this.clearArray.splice(0, this.clearArray.length);
  1671. this.templateC.title = "我的文档";
  1672. this.cTemplate = w;
  1673. this.dialogVisible2 = true;
  1674. },
  1675. wordNext() {
  1676. // this.cTemplate = this.templateC.content;
  1677. // this.steps++;
  1678. this.dialogVisible2 = false;
  1679. },
  1680. addPP() {
  1681. this.dialogVisible3 = true;
  1682. },
  1683. goTo(path) {
  1684. this.$router.push(path);
  1685. },
  1686. addTools(i) {
  1687. if (this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.length == 0) {
  1688. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.push(i);
  1689. if (i == 1) {
  1690. window.parent.postMessage({ tools: "1" }, "*");
  1691. } else if (i == 2) {
  1692. window.parent.postMessage({ tools: "2" }, "*");
  1693. } else if (i == 3) {
  1694. window.parent.postMessage({ tools: "3" }, "*");
  1695. } else if (i == 4) {
  1696. window.parent.postMessage({ tools: "4" }, "*");
  1697. }
  1698. // else if(i == 5){
  1699. // window.parent.postMessage({ tools: "5" }, "*");
  1700. // }
  1701. else {
  1702. window.parent.postMessage({ tools: "6" }, "*");
  1703. }
  1704. } else {
  1705. if (
  1706. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(i) !=
  1707. -1
  1708. ) {
  1709. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.splice(
  1710. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(i),
  1711. 1
  1712. );
  1713. } else {
  1714. this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.push(i);
  1715. if (i == 1) {
  1716. window.parent.postMessage({ tools: "1" }, "*");
  1717. } else if (i == 2) {
  1718. window.parent.postMessage({ tools: "2" }, "*");
  1719. } else if (i == 3) {
  1720. window.parent.postMessage({ tools: "3" }, "*");
  1721. } else if (i == 4) {
  1722. window.parent.postMessage({ tools: "4" }, "*");
  1723. }
  1724. // else if(i == 5){
  1725. // window.parent.postMessage({ tools: "5" }, "*");
  1726. // }
  1727. else {
  1728. window.parent.postMessage({ tools: "6" }, "*");
  1729. }
  1730. }
  1731. }
  1732. this.$forceUpdate();
  1733. },
  1734. // cleanAsk(p) {
  1735. // this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.splice(
  1736. // this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(p),
  1737. // 1
  1738. // );
  1739. // this.unitJson[this.unitIndex].chapterInfo[0].askTitle = "";
  1740. // this.unitJson[this.unitIndex].chapterInfo[0].askJson = [];
  1741. // this.unitJson[this.unitIndex].chapterInfo[0].askJson.push({
  1742. // askstitle: "",
  1743. // askItem: 1,
  1744. // checkList: [],
  1745. // });
  1746. // this.dialogVisible4 = false;
  1747. // },
  1748. addAskList() {
  1749. this.unitJson[this.unitIndex].chapterInfo[0].checkJson.push({
  1750. checkCount: [],
  1751. checkPerent: [],
  1752. });
  1753. this.unitJson[this.unitIndex].chapterInfo[0].askJson.push({
  1754. askstitle: "",
  1755. askItem: 1,
  1756. checkList: [],
  1757. });
  1758. this.unitJson[this.unitIndex].chapterInfo[0].askCount++;
  1759. },
  1760. deleteAskList() {
  1761. this.unitJson[this.unitIndex].chapterInfo[0].askJson.splice(-1);
  1762. this.unitJson[this.unitIndex].chapterInfo[0].askCount--;
  1763. },
  1764. addcheckList(json) {
  1765. json.checkList.length++;
  1766. json.askItem++;
  1767. },
  1768. deletecheckList(json) {
  1769. json.checkList.length--;
  1770. json.askItem--;
  1771. },
  1772. addAsk() {
  1773. if (this.unitJson[this.unitIndex].chapterInfo[0].askTitle === "") {
  1774. this.$message.error("问卷调查标题不能为空!");
  1775. return;
  1776. }
  1777. var aj = this.unitJson[this.unitIndex].chapterInfo[0].askJson;
  1778. var b = 1;
  1779. for (var i = 0; i < aj.length; i++) {
  1780. if (aj[i].askstitle === "") {
  1781. var a = 1;
  1782. for (let index = 0; index < aj[i].askItem; index++) {
  1783. const element = aj[i].checkList[index]
  1784. ? aj[i].checkList[index]
  1785. : "";
  1786. if (element != "") {
  1787. b++;
  1788. this.$message.error("填写了问卷调查选项,问卷调查题目不能为空!");
  1789. return;
  1790. } else {
  1791. a++;
  1792. }
  1793. }
  1794. if (b == 1) {
  1795. this.$message.error("至少填写一个问题");
  1796. return;
  1797. }
  1798. // if (a > 1) {
  1799. // aj.splice(i, 1);
  1800. // }
  1801. } else if (aj[i].askstitle != "") {
  1802. for (let index = 0; index < aj[i].askItem; index++) {
  1803. const element = aj[i].checkList[index]
  1804. ? aj[i].checkList[index]
  1805. : "";
  1806. var index = 0;
  1807. for (var z = 0; z < aj[i].checkList.length; z++) {
  1808. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  1809. if (checkC != "") {
  1810. index++;
  1811. } else {
  1812. this.$message.error("问卷调查选项不能为空!");
  1813. return;
  1814. }
  1815. }
  1816. b++;
  1817. if (index < 2) {
  1818. this.$message.error(
  1819. "填写了问卷调查的题目,问卷调查选项至少要有两项!"
  1820. );
  1821. return;
  1822. }
  1823. // if (element == "") {
  1824. // this.$message.error(
  1825. // "填写了问卷调查的题目,问卷调查选项不能为空!"
  1826. // );
  1827. // return;
  1828. // }
  1829. }
  1830. }
  1831. }
  1832. this.unitJson[this.unitIndex].chapterInfo[0].askJson = this.unitJson[
  1833. this.unitIndex
  1834. ].chapterInfo[0].askJson.filter((el) => {
  1835. var elc = el.checkList.filter((element) => {
  1836. return element != "";
  1837. });
  1838. return el.askstitle != "" && elc.length != 0;
  1839. });
  1840. this.dialogVisible4 = false;
  1841. },
  1842. selectCourseDetail() {
  1843. if (this.cid == "" || this.cid == undefined) {
  1844. console.log("这是新增课程");
  1845. } else {
  1846. let params = {
  1847. cid: this.cid,
  1848. };
  1849. this.ajax
  1850. .get(this.$store.state.api + "select_course_detail", params)
  1851. .then((res) => {
  1852. this.loading = true;
  1853. this.unitJson = JSON.parse(res.data[0][0].chapters);
  1854. // this.unitJson[0].chapterInfo = JSON.parse(res.data[0][0].chapters);
  1855. for (var j in this.unitJson) {
  1856. for (var i in this.unitJson[j].chapterInfo) {
  1857. this.unitJson[j].chapterInfo[i].toolChoose = this.unitJson[j]
  1858. .chapterInfo[i].toolChoose
  1859. ? this.unitJson[j].chapterInfo[i].toolChoose
  1860. : [];
  1861. }
  1862. }
  1863. // this.unitJson[0].dyText = "";
  1864. this.courseName = res.data[0][0].title;
  1865. this.courseText = res.data[0][0].brief;
  1866. this.checkboxList = JSON.parse(res.data[0][0].course_student);
  1867. this.cover = JSON.parse(res.data[0][0].cover);
  1868. this.noneBtnImg = this.cover.length >= 1;
  1869. this.isTeacherSee =
  1870. res.data[0][0].is_teacher_look == 0 ? true : false;
  1871. this.myWord = res.data[0][0].template;
  1872. this.templateC.id = "123";
  1873. this.nbOrder = res.data[0][0].ordernumber;
  1874. // this.CourseType[0] = res.data[1];
  1875. // this.selectType();
  1876. for (var i = 0; i < res.data[1].length; i++) {
  1877. // this.courseTypeId[this.CourseType[0][i].typePid] =
  1878. // this.CourseType[0][i].typeid;
  1879. this.courseTypeId.push(res.data[1][i].typeid);
  1880. }
  1881. console.log(this.courseTypeId);
  1882. this.$forceUpdate();
  1883. })
  1884. .catch((err) => {
  1885. console.error(err);
  1886. });
  1887. }
  1888. },
  1889. getTypeName() {
  1890. console.log(this.courseTypeId);
  1891. this.$forceUpdate();
  1892. },
  1893. selectType() {
  1894. this.ajax
  1895. .get(this.$store.state.api + "selectType")
  1896. .then((res) => {
  1897. this.CourseType = res.data;
  1898. for (var i = 0; i < res.data[0].length; i++) {
  1899. if (!this.cid) {
  1900. this.courseTypeId[res.data[0][i].id] = "";
  1901. }
  1902. for (var j = 0; j < res.data[1].length; j++) {
  1903. if (res.data[0][i].id == res.data[1][j].pid) {
  1904. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1905. this.CourseTypeJson[res.data[0][i].id] = [];
  1906. }
  1907. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1908. }
  1909. }
  1910. }
  1911. })
  1912. .catch((err) => {
  1913. console.error(err);
  1914. });
  1915. },
  1916. },
  1917. created() {
  1918. this.getStudent();
  1919. this.getTemplate();
  1920. this.selectType();
  1921. this.loading = false;
  1922. setTimeout(() => {
  1923. this.selectCourseDetail();
  1924. }, 500);
  1925. },
  1926. };
  1927. </script>
  1928. <style scoped>
  1929. .dialog_diy >>> .el-dialog__header {
  1930. background: #3d67bc !important;
  1931. padding: 15px 20px;
  1932. }
  1933. .dialog_diy >>> .el-dialog__title {
  1934. color: #fff;
  1935. }
  1936. .dialog_diy >>> .el-dialog__headerbtn {
  1937. top: 19px;
  1938. }
  1939. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  1940. color: #fff;
  1941. }
  1942. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  1943. color: #fff;
  1944. }
  1945. .dialog_diy >>> .el-dialog__body,
  1946. .dialog_diy >>> .el-dialog__footer {
  1947. background: #fafafa;
  1948. }
  1949. .left {
  1950. border-right: 1px solid rgb(60, 94, 143);
  1951. display: flex;
  1952. flex-direction: column;
  1953. align-items: center;
  1954. min-height: 600px;
  1955. width: 385px;
  1956. height: 80%;
  1957. }
  1958. .tips {
  1959. color: rgb(128, 128, 128);
  1960. font-size: 12px;
  1961. width: 270px;
  1962. margin: 40px;
  1963. }
  1964. .pb_content {
  1965. /* background: #fff; */
  1966. height: 100%;
  1967. margin: 20px 20px 20px 20px;
  1968. }
  1969. .pb_content_body {
  1970. width: 100% !important;
  1971. height: 100%;
  1972. }
  1973. .info_solid {
  1974. width: 270px;
  1975. height: 30px;
  1976. border-left: 1px solid #bdbdbd;
  1977. margin: 10px 0px 10px 30px;
  1978. }
  1979. .info_steps {
  1980. width: 270px;
  1981. font-size: 0.875rem;
  1982. display: flex;
  1983. align-items: center;
  1984. }
  1985. .info_steps span:nth-child(1) {
  1986. width: 30px;
  1987. height: 30px;
  1988. background: rgba(0, 0, 0, 0.38);
  1989. display: block;
  1990. color: #fff;
  1991. border-radius: 40px;
  1992. text-align: center;
  1993. line-height: 30px;
  1994. }
  1995. .steps_active {
  1996. background: #3d67bc !important;
  1997. }
  1998. .info_steps span:nth-child(2) {
  1999. margin-left: 5px;
  2000. }
  2001. .right {
  2002. height: 100%;
  2003. width: 100%;
  2004. }
  2005. .basic_box {
  2006. width: 90%;
  2007. margin: 0 auto;
  2008. position: relative;
  2009. }
  2010. .basic_box_success {
  2011. width: 80%;
  2012. min-height: 455px;
  2013. margin: 50px auto;
  2014. position: relative;
  2015. text-align: center;
  2016. border-bottom: 1px solid #bfbfbf;
  2017. }
  2018. .info_title {
  2019. font-size: 1.5em;
  2020. margin: 20px 30px 20px 30px;
  2021. }
  2022. .bInfo_title {
  2023. font-size: 16px;
  2024. text-align: left;
  2025. margin-top: 20px;
  2026. margin-bottom: 10px;
  2027. }
  2028. .small_title {
  2029. font-size: 14px;
  2030. line-height: 40px;
  2031. }
  2032. .binfo_input {
  2033. font: inherit;
  2034. color: currentColor;
  2035. width: 100%;
  2036. margin: 0;
  2037. padding: 15px 14px;
  2038. display: block;
  2039. min-width: 0;
  2040. outline: none;
  2041. box-sizing: content-box;
  2042. background: none;
  2043. -webkit-tap-highlight-color: transparent;
  2044. border: 1px solid rgba(0, 0, 0, 0.23);
  2045. border-radius: 4px;
  2046. box-sizing: border-box;
  2047. resize: none;
  2048. }
  2049. .binfo_input:focus-visible {
  2050. border: 1px solid rgba(61, 103, 188);
  2051. }
  2052. .chapter_beizhu {
  2053. font-size: 12px;
  2054. font-weight: bold;
  2055. float: right;
  2056. color: rgb(128, 128, 128);
  2057. margin-top: 5px;
  2058. }
  2059. .chapter_uploadBox1 {
  2060. text-align: left;
  2061. background-color: rgb(242, 242, 242);
  2062. width: 100%;
  2063. height: 67px;
  2064. padding: 0px 15px;
  2065. border-radius: 8px;
  2066. overflow: hidden;
  2067. font-size: 16px;
  2068. box-sizing: border-box;
  2069. position: relative;
  2070. }
  2071. .chapter_add {
  2072. width: 100%;
  2073. height: 32px;
  2074. margin-top: 15px;
  2075. cursor: pointer;
  2076. }
  2077. .chapter_add_l {
  2078. margin-left: 5px;
  2079. width: 30px;
  2080. height: 30px;
  2081. float: left;
  2082. border: 1px solid #aaa;
  2083. color: #aaa;
  2084. border-radius: 50%;
  2085. font-size: 25px;
  2086. text-align: center;
  2087. }
  2088. .chapter_add_r {
  2089. font-size: 18px;
  2090. height: 40px;
  2091. line-height: 30px;
  2092. text-indent: 10px;
  2093. color: #aaa;
  2094. }
  2095. .chapter_add_r span {
  2096. font-size: 12px;
  2097. color: rgb(204, 204, 204);
  2098. }
  2099. .chapter_add_input {
  2100. display: none;
  2101. }
  2102. .line {
  2103. width: 85%;
  2104. margin: 0 auto;
  2105. border-top: 1px solid #e5e5e5;
  2106. margin-top: 20px;
  2107. }
  2108. .info_btnBox {
  2109. width: 100%;
  2110. display: flex;
  2111. justify-content: space-evenly;
  2112. margin: 20px 0 25px 0;
  2113. }
  2114. .info_btn,
  2115. .teacherWord {
  2116. color: #fff;
  2117. background-color: #6a8ed5;
  2118. padding: 8px 24px;
  2119. font-size: 0.9375rem;
  2120. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  2121. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  2122. min-width: 64px;
  2123. font-weight: 500;
  2124. border-radius: 4px;
  2125. box-sizing: border-box;
  2126. border: none;
  2127. cursor: pointer;
  2128. }
  2129. .teacherWord {
  2130. width: 105px !important;
  2131. text-align: center !important;
  2132. line-height: 36px !important;
  2133. padding: 0 !important;
  2134. font-size: 14px !important;
  2135. margin: 10px 0 !important;
  2136. }
  2137. .wordTeacher {
  2138. display: flex;
  2139. flex-direction: column;
  2140. width: 20%;
  2141. text-align: center;
  2142. font-size: 14px;
  2143. margin: 30px 30px 0 10px;
  2144. background: #fff;
  2145. position: relative;
  2146. border-radius: 5px;
  2147. padding: 25px 0px;
  2148. }
  2149. .wordPic {
  2150. margin: 0 auto;
  2151. width: 60px;
  2152. height: 60px;
  2153. cursor: pointer;
  2154. }
  2155. .deleteWord {
  2156. width: 22px;
  2157. height: 22px;
  2158. position: absolute;
  2159. right: 20px;
  2160. top: -10px;
  2161. cursor: pointer;
  2162. }
  2163. .wordPic > img,
  2164. .deleteWord > img {
  2165. width: 100%;
  2166. height: 100%;
  2167. }
  2168. .info_btn:hover {
  2169. background-color: #4f7cd5 !important;
  2170. }
  2171. .cru_selectBox {
  2172. display: flex;
  2173. margin: 24px 0 10px;
  2174. flex-wrap: nowrap;
  2175. white-space: nowrap;
  2176. overflow: auto;
  2177. position: relative;
  2178. height: 47px;
  2179. }
  2180. .cru_selectBox::-webkit-scrollbar {
  2181. /*滚动条整体样式*/
  2182. width: 6px;
  2183. /*高宽分别对应横竖滚动条的尺寸*/
  2184. height: 6px;
  2185. }
  2186. /*定义滚动条轨道 内阴影+圆角*/
  2187. .cru_selectBox::-webkit-scrollbar-track {
  2188. border-radius: 10px;
  2189. background-color: #eee;
  2190. }
  2191. /*定义滑块 内阴影+圆角*/
  2192. .cru_selectBox::-webkit-scrollbar-thumb {
  2193. border-radius: 10px;
  2194. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  2195. background-color: rgba(0, 0, 0, 0.1);
  2196. }
  2197. .cru_line {
  2198. position: absolute;
  2199. bottom: 0px;
  2200. transition: all 0.5s;
  2201. left: 0px;
  2202. width: 125px;
  2203. margin-left: -25px;
  2204. }
  2205. .cru_select {
  2206. font-size: 21px;
  2207. margin-right: 37px;
  2208. margin-left: 5px;
  2209. cursor: pointer;
  2210. color: #a6a6a6;
  2211. }
  2212. .cru_selected {
  2213. color: #0b7fc2 !important;
  2214. }
  2215. .chapter_contentbox {
  2216. display: flex;
  2217. align-items: center;
  2218. margin-top: 15px;
  2219. }
  2220. .chapter_contentbox div:nth-child(1) {
  2221. width: 150px;
  2222. margin: 0px;
  2223. font-size: 2em;
  2224. color: black;
  2225. display: block;
  2226. white-space: nowrap;
  2227. overflow: hidden;
  2228. text-overflow: ellipsis;
  2229. font-weight: 600;
  2230. }
  2231. .chapter_contentbox div:nth-child(2) {
  2232. width: 380px;
  2233. }
  2234. .chapter_contentbox div:nth-child(3) {
  2235. background-image: url(../../assets/remove.png);
  2236. cursor: pointer;
  2237. opacity: 0.5;
  2238. width: 40px;
  2239. height: 50px;
  2240. background-repeat: no-repeat;
  2241. background-position: 5px 10px;
  2242. }
  2243. .binfo_input {
  2244. font: inherit;
  2245. color: currentColor;
  2246. width: 100%;
  2247. margin: 0;
  2248. padding: 15px 14px;
  2249. display: block;
  2250. min-width: 0;
  2251. outline: none;
  2252. box-sizing: content-box;
  2253. background: none;
  2254. border: 1px solid rgba(0, 0, 0, 0.23);
  2255. border-radius: 4px;
  2256. box-sizing: border-box;
  2257. background: #fff;
  2258. }
  2259. .binfo_input:focus-visible {
  2260. border: 1px solid rgba(61, 103, 188);
  2261. }
  2262. .time {
  2263. display: flex;
  2264. margin: 35px 0 80px 0;
  2265. }
  2266. .chapter_btnbox {
  2267. width: 160px;
  2268. border-radius: 5px;
  2269. border: 2px dashed gray;
  2270. display: flex;
  2271. padding: 8px 50px;
  2272. align-items: center;
  2273. justify-content: center;
  2274. margin: 30px auto 0;
  2275. cursor: pointer;
  2276. }
  2277. .icon_add {
  2278. position: relative;
  2279. width: 24px;
  2280. padding-top: 20px;
  2281. border-radius: 100%;
  2282. border-width: 2px;
  2283. border-style: solid;
  2284. border-color: gray;
  2285. }
  2286. .icon_add i:nth-child(1) {
  2287. position: absolute;
  2288. left: 50%;
  2289. top: 50%;
  2290. height: 60%;
  2291. transform: translate(-50%, -50%);
  2292. border-width: 1px;
  2293. border-style: solid;
  2294. border-color: inherit;
  2295. }
  2296. .icon_add i:nth-child(2) {
  2297. position: absolute;
  2298. top: 50%;
  2299. left: 50%;
  2300. width: 60%;
  2301. transform: translate(-50%, -50%);
  2302. border-width: 1px;
  2303. border-style: solid;
  2304. border-color: inherit;
  2305. }
  2306. .chapter_btn_w {
  2307. font-size: 0.9375rem;
  2308. font-weight: bold;
  2309. color: gray;
  2310. margin-left: 20px;
  2311. }
  2312. .disUoloadSty >>> .el-icon-plus {
  2313. display: none !important; /* 上传按钮隐藏 */
  2314. }
  2315. .imgLeft {
  2316. margin: 15px 0;
  2317. }
  2318. .add_info_box {
  2319. margin: 20px 0;
  2320. }
  2321. .add_info_box button {
  2322. margin: 0 10px 10px 0;
  2323. }
  2324. .add_chapters_box {
  2325. text-align: left;
  2326. background-color: rgb(242, 242, 242);
  2327. width: 100%;
  2328. padding: 0px 15px;
  2329. border-radius: 15px;
  2330. font-size: 16px;
  2331. box-sizing: border-box;
  2332. position: relative;
  2333. padding: 0 10px 5px 10px;
  2334. height: 185px;
  2335. overflow-y: auto;
  2336. overflow-x: hidden;
  2337. }
  2338. .homework_box {
  2339. display: flex;
  2340. align-items: center;
  2341. flex-wrap: wrap;
  2342. margin: 15px 0 0 0;
  2343. }
  2344. .course_homework {
  2345. display: flex;
  2346. justify-content: center;
  2347. flex-direction: row;
  2348. align-items: center;
  2349. margin: 0 10px 0 0;
  2350. }
  2351. .course_homework >>> .el-input__inner {
  2352. width: 140px;
  2353. margin-left: 15px;
  2354. }
  2355. .chapter_upload_move {
  2356. position: relative;
  2357. background-color: #fff;
  2358. position: absolute;
  2359. width: 100%;
  2360. top: 0px;
  2361. left: 0px;
  2362. border: 1px solid #eee;
  2363. border-radius: 5px;
  2364. transition: width 2s;
  2365. -moz-transition: width 2s;
  2366. -webkit-transition: width 2s;
  2367. -o-transition: width 2s;
  2368. }
  2369. .chapter_upload_l_i {
  2370. background-image: url("../../assets/icon.png");
  2371. background-position: 3px -165px;
  2372. width: 30px;
  2373. height: 30px;
  2374. margin: 10px auto 0 auto;
  2375. }
  2376. .left_first {
  2377. display: flex;
  2378. flex-direction: column;
  2379. flex-wrap: nowrap;
  2380. width: 65%;
  2381. }
  2382. .right_first {
  2383. width: 70%;
  2384. height: 100%;
  2385. margin-top: 15px;
  2386. }
  2387. .right_title {
  2388. height: 30px;
  2389. padding: 20px 0 10px 30px;
  2390. border-bottom: 1px solid #f2f2f2;
  2391. }
  2392. .people {
  2393. border: 1px solid rgb(229 229 229);
  2394. height: 495px;
  2395. border-radius: 5px;
  2396. width: 100%;
  2397. overflow: auto;
  2398. }
  2399. .people_top {
  2400. display: flex;
  2401. width: 100%;
  2402. justify-content: space-between;
  2403. align-items: center;
  2404. }
  2405. .people_nav,
  2406. .people_top_right {
  2407. padding: 20px 0 0 20px;
  2408. }
  2409. .people_search {
  2410. display: flex;
  2411. position: relative;
  2412. }
  2413. .people_search >>> .el-input__inner {
  2414. height: 25px;
  2415. width: 95%;
  2416. }
  2417. .search_img {
  2418. width: 20px;
  2419. height: 20px;
  2420. position: absolute;
  2421. right: 15px;
  2422. top: 3px;
  2423. }
  2424. .search_img > img {
  2425. width: 100%;
  2426. height: 100%;
  2427. }
  2428. .people_name {
  2429. display: flex;
  2430. justify-content: flex-start;
  2431. padding: 20px 0 0 25px;
  2432. flex-direction: column;
  2433. flex-wrap: wrap;
  2434. }
  2435. .people_name >>> .el-checkbox {
  2436. width: 100%;
  2437. display: flex;
  2438. align-items: center;
  2439. margin-bottom: 10px;
  2440. }
  2441. .people_name >>> .el-checkbox__label {
  2442. text-overflow: ellipsis;
  2443. overflow: hidden;
  2444. width: 100%;
  2445. }
  2446. .right_img {
  2447. width: 150px;
  2448. height: 150px;
  2449. margin: 0 auto;
  2450. }
  2451. .right_img > img {
  2452. width: 100%;
  2453. height: 100%;
  2454. }
  2455. .number {
  2456. margin-top: 20px;
  2457. color: #4aa6ff;
  2458. text-decoration: underline;
  2459. }
  2460. .success_button {
  2461. display: flex;
  2462. text-align: center;
  2463. margin: 5% 0 auto;
  2464. flex-direction: row;
  2465. justify-content: center;
  2466. }
  2467. .look_course {
  2468. margin-right: 40px;
  2469. background: #3d67bc;
  2470. width: 200px;
  2471. height: 35px;
  2472. line-height: 35px;
  2473. color: #fff;
  2474. text-align: center;
  2475. font-size: 14px;
  2476. border-radius: 5px;
  2477. cursor: pointer;
  2478. }
  2479. .attend_others {
  2480. width: 250px;
  2481. background: #4fb13c;
  2482. height: 35px;
  2483. line-height: 35px;
  2484. color: #fff;
  2485. text-align: center;
  2486. font-size: 14px;
  2487. border-radius: 5px;
  2488. cursor: pointer;
  2489. }
  2490. .dialog_diy2 >>> .el-dialog__body {
  2491. text-align: center;
  2492. }
  2493. .write_togother {
  2494. position: absolute;
  2495. right: 45px;
  2496. display: flex;
  2497. top: 5%;
  2498. }
  2499. .write_people {
  2500. font-size: 14px;
  2501. line-height: 50px;
  2502. padding-right: 10px;
  2503. }
  2504. .end_write {
  2505. background: #3d67bc;
  2506. color: #fff;
  2507. width: 100px;
  2508. height: 35px;
  2509. line-height: 35px;
  2510. text-align: center;
  2511. font-size: 14px;
  2512. border-radius: 5px;
  2513. cursor: pointer;
  2514. }
  2515. .chapter_upload {
  2516. height: 50px;
  2517. margin-top: 12px;
  2518. position: relative;
  2519. display: flex;
  2520. align-items: center;
  2521. width: 100%;
  2522. }
  2523. .chapter_upload_t {
  2524. background-color: #fff;
  2525. position: absolute;
  2526. height: 100%;
  2527. top: 0px;
  2528. left: 0px;
  2529. border-radius: 40px;
  2530. box-sizing: border-box;
  2531. box-shadow: 0 0 3px 3px #dfdfdf;
  2532. }
  2533. .chapter_upload_o {
  2534. width: 100%;
  2535. height: 100%;
  2536. position: relative;
  2537. z-index: 1;
  2538. }
  2539. .chapter_upload_l {
  2540. /* width: 50px;
  2541. height: 50px;
  2542. border-right: 1px solid #eee;
  2543. float: left; */
  2544. }
  2545. .chapter_upload_ic {
  2546. height: 30px;
  2547. float: right;
  2548. }
  2549. .chapter_upload_ic_l {
  2550. width: 50px;
  2551. height: 50px;
  2552. float: left;
  2553. }
  2554. .chapter_upload_ic_l div {
  2555. width: 30px;
  2556. height: 35px;
  2557. background: url("../../assets/icon/icon.png");
  2558. }
  2559. .chapter_upload_ic_r {
  2560. width: 50px;
  2561. height: 50px;
  2562. float: left;
  2563. margin-left: 0px;
  2564. display: flex;
  2565. align-items: center;
  2566. }
  2567. .chapter_upload_ic_r div {
  2568. width: 25px;
  2569. height: 25px;
  2570. background-image: url("../../assets/delete.png");
  2571. background-size: 100% 100%;
  2572. }
  2573. .chapter_upload_n {
  2574. display: flex;
  2575. text-indent: 10px;
  2576. text-decoration: none;
  2577. text-overflow: ellipsis;
  2578. white-space: nowrap;
  2579. overflow: hidden;
  2580. width: 55%;
  2581. margin-left: 20px;
  2582. }
  2583. .chapter_upload_l_i1 {
  2584. background-image: url("../../assets/icon/video.png");
  2585. width: 28px;
  2586. height: 28px;
  2587. /* margin: 10px auto 0 auto; */
  2588. background-size: 100% 100%;
  2589. }
  2590. .chapter_upload_l_i5 {
  2591. background-image: url("../../assets/icon/word.png");
  2592. width: 24px;
  2593. height: 24px;
  2594. /* margin: 10px auto 0 auto; */
  2595. background-size: 100% 100%;
  2596. }
  2597. .chapter_upload_ud {
  2598. display: flex;
  2599. flex-direction: column;
  2600. margin-left: 5px;
  2601. justify-content: center;
  2602. }
  2603. .chapter_upload_up {
  2604. background-image: url("../../assets/icon/up.png");
  2605. width: 17px;
  2606. height: 15px;
  2607. background-size: 100% 100%;
  2608. cursor: pointer;
  2609. }
  2610. .chapter_upload_down {
  2611. background-image: url("../../assets/icon/down.png");
  2612. width: 17px;
  2613. height: 15px;
  2614. margin: 2px auto 0 auto;
  2615. background-size: 100% 100%;
  2616. cursor: pointer;
  2617. }
  2618. .addWordStyle {
  2619. display: flex;
  2620. flex-direction: row;
  2621. justify-content: flex-start;
  2622. overflow-x: auto;
  2623. white-space: nowrap;
  2624. flex-wrap: wrap;
  2625. }
  2626. /* table 样式 */
  2627. .cont >>> table {
  2628. border-top: 1px solid #ccc;
  2629. border-left: 1px solid #ccc;
  2630. }
  2631. .cont >>> table td,
  2632. .cont >>> table th {
  2633. border-bottom: 1px solid #ccc;
  2634. border-right: 1px solid #ccc;
  2635. padding: 3px 5px;
  2636. }
  2637. .cont >>> table th {
  2638. border-bottom: 2px solid #ccc;
  2639. text-align: center;
  2640. }
  2641. /* blockquote 样式 */
  2642. .cont >>> blockquote {
  2643. display: block;
  2644. border-left: 8px solid #d0e5f2;
  2645. padding: 5px 10px;
  2646. margin: 10px 0;
  2647. line-height: 1.4;
  2648. font-size: 100%;
  2649. background-color: #f1f1f1;
  2650. }
  2651. /* code 样式 */
  2652. .cont >>> code {
  2653. display: inline-block;
  2654. *display: inline;
  2655. *zoom: 1;
  2656. background-color: #f1f1f1;
  2657. border-radius: 3px;
  2658. padding: 3px 5px;
  2659. margin: 0 3px;
  2660. }
  2661. .cont >>> pre code {
  2662. display: block;
  2663. }
  2664. /* ul ol 样式 */
  2665. .cont >>> ul,
  2666. ol {
  2667. margin: 10px 0 10px 20px;
  2668. }
  2669. .wordbox {
  2670. display: flex;
  2671. flex-wrap: wrap;
  2672. cursor: pointer;
  2673. width: 100%;
  2674. }
  2675. .checkword {
  2676. width: 22px;
  2677. height: 22px;
  2678. margin: 10px auto 0;
  2679. cursor: pointer;
  2680. }
  2681. .checkword img {
  2682. width: 100%;
  2683. }
  2684. .stepBg {
  2685. margin: 0 25px 0 0;
  2686. width: 17%;
  2687. min-width: 230px;
  2688. border-radius: 10px;
  2689. display: flex;
  2690. flex-direction: column;
  2691. justify-content: flex-start;
  2692. align-items: center;
  2693. flex-wrap: nowrap;
  2694. background: #fff;
  2695. max-height: 700px;
  2696. }
  2697. .stepBg > div {
  2698. height: 80px;
  2699. width: 85%;
  2700. cursor: pointer;
  2701. margin: 10px 0;
  2702. border-radius: 10px;
  2703. }
  2704. .first,
  2705. .second,
  2706. .third,
  2707. .four {
  2708. background: #4a83d0;
  2709. height: 90px;
  2710. color: #fff;
  2711. display: flex;
  2712. flex-direction: row;
  2713. align-items: center;
  2714. justify-content: center;
  2715. }
  2716. .first > div:nth-child(1),
  2717. .second > div:nth-child(1),
  2718. .third > div:nth-child(1),
  2719. .four > div:nth-child(1) {
  2720. margin: 5px 10px 0 0;
  2721. width: 2rem;
  2722. }
  2723. .firstNo,
  2724. .secondNo,
  2725. .thirdNo,
  2726. .fourNo {
  2727. background: #e7e7e7;
  2728. color: #adadad;
  2729. display: flex;
  2730. flex-direction: row;
  2731. align-items: center;
  2732. justify-content: center;
  2733. }
  2734. .firstNo > div:nth-child(1),
  2735. .secondNo > div:nth-child(1),
  2736. .thirdNo > div:nth-child(1),
  2737. .fourNo > div:nth-child(1) {
  2738. margin: 5px 10px 0 0;
  2739. width: 2rem;
  2740. }
  2741. .uploadWidth >>> .el-upload {
  2742. width: 60px;
  2743. height: 60px;
  2744. position: relative;
  2745. }
  2746. .addPeople {
  2747. background: #fa6060;
  2748. width: 135px;
  2749. height: 40px;
  2750. color: #fff;
  2751. border-radius: 5px;
  2752. text-align: center;
  2753. line-height: 40px;
  2754. font-size: 15px;
  2755. cursor: pointer;
  2756. }
  2757. .kcImg {
  2758. width: 60px;
  2759. margin-left: 10px;
  2760. }
  2761. .zyImg {
  2762. width: 55px;
  2763. margin: 0 10px;
  2764. }
  2765. .deleteZy {
  2766. width: 20px;
  2767. position: absolute;
  2768. top: 5px;
  2769. right: 5px;
  2770. cursor: pointer;
  2771. }
  2772. .kcImg > img,
  2773. .zyImg > img,
  2774. .deleteZy > img {
  2775. width: 100%;
  2776. height: 100%;
  2777. }
  2778. .zyBox {
  2779. display: flex;
  2780. flex-direction: row;
  2781. align-items: center;
  2782. background: #67d37d;
  2783. color: #fff;
  2784. width: 210px;
  2785. margin-left: 20px;
  2786. border-radius: 10px;
  2787. height: 70px;
  2788. position: relative;
  2789. }
  2790. .upCss {
  2791. display: flex;
  2792. flex-direction: row;
  2793. justify-content: flex-start;
  2794. }
  2795. /* .upCss >>> .el-upload {
  2796. margin-right: 30px;
  2797. } */
  2798. .upCss >>> .el-icon-plus {
  2799. position: none !important;
  2800. width: 200px;
  2801. height: 100px;
  2802. display: flex;
  2803. flex-wrap: nowrap;
  2804. flex-direction: column;
  2805. align-items: center;
  2806. justify-content: center;
  2807. border: 1px dashed #ccc;
  2808. min-width: 78px;
  2809. min-height: 100px;
  2810. z-index: 999;
  2811. }
  2812. .addStageImg {
  2813. min-width: 25px;
  2814. min-height: 25px;
  2815. width: 25px;
  2816. height: 25px;
  2817. cursor: pointer;
  2818. }
  2819. .addHW {
  2820. width: 70px;
  2821. height: 70px;
  2822. cursor: pointer;
  2823. }
  2824. .addStageImg > img,
  2825. .addHW > img {
  2826. width: 100%;
  2827. height: 100%;
  2828. }
  2829. .addNewPP >>> .el-dialog__body {
  2830. padding: 5px 20px;
  2831. }
  2832. .isHeight {
  2833. height: 680px;
  2834. }
  2835. .toolChoose {
  2836. display: flex;
  2837. width: 100%;
  2838. flex-direction: row;
  2839. flex-wrap: wrap;
  2840. }
  2841. .tool {
  2842. display: flex;
  2843. flex-direction: column;
  2844. flex-wrap: nowrap;
  2845. width: 20%;
  2846. margin: 0 20px;
  2847. align-items: center;
  2848. }
  2849. .whiteBIcon {
  2850. width: 150px;
  2851. cursor: pointer;
  2852. }
  2853. .whiteBIcon > img,
  2854. .check > img {
  2855. width: 100%;
  2856. height: 100%;
  2857. }
  2858. .check {
  2859. width: 25px;
  2860. height: 25px;
  2861. cursor: pointer;
  2862. margin: 10px 0;
  2863. }
  2864. .customWidth >>> .el-dialog {
  2865. min-width: 500px !important;
  2866. }
  2867. .a_addBox {
  2868. margin: 10px 0;
  2869. background: #fff;
  2870. padding: 15px;
  2871. max-height: 400px;
  2872. overflow: auto;
  2873. }
  2874. .a_add_box {
  2875. border-bottom: 2px solid #eee;
  2876. padding-bottom: 10px;
  2877. }
  2878. .a_add_head {
  2879. display: flex;
  2880. align-items: center;
  2881. justify-content: space-between;
  2882. margin: 10px 0;
  2883. font-size: 18px;
  2884. }
  2885. .a_add_head .a_add_head_input {
  2886. width: 300px;
  2887. }
  2888. .a_add_head .a_add_head_div {
  2889. display: flex;
  2890. align-items: center;
  2891. justify-content: space-between;
  2892. }
  2893. .a_add_body {
  2894. display: flex;
  2895. align-items: center;
  2896. }
  2897. .a_add_input {
  2898. display: flex;
  2899. align-items: center;
  2900. flex-wrap: wrap;
  2901. /* flex-direction: column; */
  2902. /* width: 100%; */
  2903. }
  2904. .width100 {
  2905. width: 100%;
  2906. }
  2907. .a_add_input .a_add_persent {
  2908. /* display: flex; */
  2909. /* flex-direction: column; */
  2910. width: 100%;
  2911. }
  2912. .a_add_persent_div {
  2913. width: 100%;
  2914. display: flex;
  2915. align-items: center;
  2916. }
  2917. .a_add_persent_div span {
  2918. margin: 5px 0;
  2919. }
  2920. .a_add_persent_div span:nth-child(1) {
  2921. width: 30%;
  2922. }
  2923. .a_add_persent_div span:nth-child(2) {
  2924. width: 7%;
  2925. }
  2926. .a_add_persent_div span:nth-child(3) {
  2927. width: 40%;
  2928. }
  2929. .a_add_persent_title {
  2930. /* margin-bottom: 10px; */
  2931. }
  2932. .a_add_body_div {
  2933. display: flex;
  2934. align-items: center;
  2935. justify-content: center;
  2936. flex-direction: column;
  2937. }
  2938. .all_choose {
  2939. display: flex;
  2940. flex-direction: row;
  2941. align-items: flex-start;
  2942. }
  2943. .all_choose > span {
  2944. width: 80px;
  2945. display: block;
  2946. letter-spacing: 14px;
  2947. }
  2948. .all_choose >>> .el-checkbox-group {
  2949. display: flex;
  2950. flex-direction: row;
  2951. width: 820px;
  2952. flex-wrap: wrap;
  2953. align-content: center;
  2954. justify-content: flex-start;
  2955. align-items: center;
  2956. }
  2957. .all_choose > .el-checkbox-group >>> .el-checkbox {
  2958. margin-bottom: 10px;
  2959. }
  2960. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  2961. min-width: 80px;
  2962. }
  2963. .choose > div:nth-child(3) > span {
  2964. letter-spacing: 0 !important;
  2965. }
  2966. .choose {
  2967. display: flex;
  2968. flex-direction: column;
  2969. flex-wrap: nowrap;
  2970. height: 100%;
  2971. justify-content: space-evenly;
  2972. align-items: flex-start;
  2973. }
  2974. .both {
  2975. display: flex;
  2976. flex-direction: row;
  2977. flex-wrap: wrap;
  2978. width: 100%;
  2979. height: 350px;
  2980. align-items: center;
  2981. justify-content: flex-start;
  2982. }
  2983. .notice >>> .el-dialog {
  2984. width: 500px !important;
  2985. text-align: center;
  2986. }
  2987. .notice >>> .el-button {
  2988. margin-top: 20px;
  2989. }
  2990. .whiteBg {
  2991. background: #fff;
  2992. border-radius: 10px;
  2993. min-width: 800px;
  2994. }
  2995. </style>