addCourse.vue 73 KB

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