raceDetail.vue 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419
  1. <template>
  2. <!-- 项目基础信息 -->
  3. <div class="pb_content">
  4. <div class="race_content_body">
  5. <div class="raceBox">
  6. <div class="stepBg">
  7. <div class="steps">
  8. <div>
  9. <img src="../../../../assets/icon/race/progress.png" alt="" />
  10. </div>
  11. <div class="stepRightNav" @click="jump('first')">
  12. <div>项目基本信息</div>
  13. <div
  14. class="isFinishCss"
  15. v-if="raceDetail.title != '' && raceDetail.type.length > 0"
  16. >
  17. <div class="isFinish">
  18. <img src="../../../../assets/icon/race/finish.png" alt="" />
  19. </div>
  20. <div>已填写</div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="steps">
  25. <div>
  26. <img src="../../../../assets/icon/race/progress.png" alt="" />
  27. </div>
  28. <div class="stepRightNav" @click="jump('second')">
  29. <div>案例封面设置</div>
  30. <div class="isFinishCss" v-if="raceDetail.cover.length > 0">
  31. <div class="isFinish">
  32. <img src="../../../../assets/icon/race/finish.png" alt="" />
  33. </div>
  34. <div>已填写</div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="steps">
  39. <div>
  40. <img src="../../../../assets/icon/race/progress.png" alt="" />
  41. </div>
  42. <div class="stepRightNav" @click="jump('third')">
  43. <div>联系人</div>
  44. <div class="isFinishCss" v-if="raceDetail.autor.length > 0">
  45. <div class="isFinish">
  46. <img src="../../../../assets/icon/race/finish.png" alt="" />
  47. </div>
  48. <div>已填写</div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="steps">
  53. <div>
  54. <img src="../../../../assets/icon/race/progress.png" alt="" />
  55. </div>
  56. <div class="stepRightNav" @click="jump('sixth')">
  57. <div>协作者</div>
  58. <div class="isFinishCss" v-if="raceDetail.tableData.length > 0">
  59. <div class="isFinish">
  60. <img src="../../../../assets/icon/race/finish.png" alt="" />
  61. </div>
  62. <div>已填写</div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="steps">
  67. <div>
  68. <img src="../../../../assets/icon/race/progress.png" alt="" />
  69. </div>
  70. <div class="stepRightNav" @click="jump('fouth')">
  71. <div>项目简介</div>
  72. <div class="isFinishCss" v-if="raceDetail.courseText != ''">
  73. <div class="isFinish">
  74. <img src="../../../../assets/icon/race/finish.png" alt="" />
  75. </div>
  76. <div>已填写</div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="steps">
  81. <div>
  82. <img src="../../../../assets/icon/race/progress.png" alt="" />
  83. </div>
  84. <div class="stepRightNav" @click="jump('fivth')">
  85. <div>文件上传</div>
  86. <div class="isFinishCss" v-if="raceDetail.data.length > 0">
  87. <div class="isFinish">
  88. <img src="../../../../assets/icon/race/finish.png" alt="" />
  89. </div>
  90. <div>已填写</div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="right">
  96. <div class="whiteBg">
  97. <div class="right_title" id="first">
  98. <span style="color: red">*</span>项目基本信息
  99. </div>
  100. <div class="basic_box">
  101. <div class="big_box">
  102. <div class="left_first">
  103. <div>
  104. <div>
  105. <div class="bInfo_title" style="margin-bottom: 15px">
  106. <span style="color: red">*</span> 案例名称
  107. </div>
  108. <div style="display: flex; margin-right: 20px">
  109. <img
  110. src="../../../../assets/icon/projectName.png"
  111. alt
  112. style="margin-right: 8px"
  113. />
  114. <input
  115. type="text"
  116. placeholder="请输入项目名称"
  117. class="binfo_input"
  118. v-model="raceDetail.title"
  119. @input="updateTitle"
  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. <div
  131. v-if="item.name == '案例组别' || item.name == '类型'"
  132. style="position: relative; width: 120px;margin-right: 10px;"
  133. >
  134. <span
  135. style="
  136. color: red;
  137. position: absolute;
  138. top: 0;
  139. left: 0;
  140. "
  141. >*</span
  142. ><span style="width: 100px px; margin-left: 10px">{{
  143. item.name
  144. }}</span>
  145. </div>
  146. <span v-else>{{ item.name }}</span>
  147. <el-checkbox-group
  148. :class="item.name == '案例组别' ? 'radiusCss' : ''"
  149. v-model="raceDetail.type"
  150. @change="updateTitle"
  151. >
  152. <el-checkbox
  153. @change="updateType(item1)"
  154. v-for="item1 in arrayPan(CourseTypeJson[item.id], item.id)"
  155. :key="item1.id"
  156. :label="item1.id"
  157. :class="
  158. item1.id ==
  159. '6b6ac83d-c923-11ed-9546-005056b86db5'
  160. ? 'isOtherCss'
  161. : ''
  162. "
  163. >{{ item1.name }}
  164. <div
  165. v-if="
  166. isOther &&
  167. item.name == '学科' &&
  168. item1.name == '其他'
  169. "
  170. class="isOtherInput"
  171. >
  172. <el-input
  173. v-model="raceDetail.typeOtherName"
  174. @change="updateTitle"
  175. ></el-input>
  176. <div
  177. class="otherIcon"
  178. v-if="raceDetail.typeOtherName != ''"
  179. >
  180. <img
  181. src="../../../../assets/icon/otherIcon.png"
  182. alt=""
  183. />
  184. </div></div
  185. ></el-checkbox>
  186. </el-checkbox-group>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. <div class="whiteBg" style="border-radius: 0">
  196. <div class="right_first">
  197. <div class="right_title" id="second">案例封面设置</div>
  198. <div class="fmBox">
  199. <div>
  200. <div class="bInfo_title" style="margin-top: 0 !important">
  201. 案例封面
  202. </div>
  203. <div class="picBox">
  204. <div>
  205. <div
  206. class="uploadFm"
  207. v-if="raceDetail.cover.length === 0"
  208. @click="choosePicVisible = true"
  209. >
  210. <!-- @click="addImg($event)" -->
  211. <img
  212. src="../../../../assets/icon/addPoster.png"
  213. alt=""
  214. />
  215. <!-- <input
  216. type="file"
  217. accept="image/*"
  218. style="display: none"
  219. @change="beforeUpload1"
  220. /> -->
  221. </div>
  222. <el-upload
  223. :class="{ disUoloadSty: noneBtnImg }"
  224. class="upCss"
  225. action="#"
  226. list-type="picture"
  227. v-loading="uploadLoading1"
  228. :http-request="beforeUpload1"
  229. ref="upload1"
  230. :on-preview="handlePictureCardPreview"
  231. :on-remove="handle_remove1"
  232. :show-file-list="true"
  233. :file-list="raceDetail.cover"
  234. accept="image/*"
  235. :limit="1"
  236. :on-exceed="onExceed"
  237. v-else
  238. >
  239. <i class="el-icon-plus"></i>
  240. </el-upload>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. <div class="whiteBg" style="border-radius: 0">
  248. <div class="right_first">
  249. <div class="right_title" id="third">
  250. <span style="color: red">*</span>联系人
  251. </div>
  252. <div
  253. class="addPeople"
  254. @click="addAutor(0)"
  255. v-if="raceDetail.autor.length == 0"
  256. >
  257. 添加联系人
  258. </div>
  259. <div class="raTable">
  260. <el-table
  261. class="tableColor"
  262. ref="table"
  263. :data="raceDetail.autor"
  264. :height="tableHeight"
  265. :fit="true"
  266. style="width: 100%"
  267. :header-cell-style="{
  268. background: '#f1f1f1',
  269. fontSize: '17px',
  270. }"
  271. :row-class-name="tableRowClassName"
  272. >
  273. <el-table-column label="姓名" min-width="15" align="center">
  274. <template slot-scope="scope">
  275. <!-- <div class="userImg">
  276. <div class="tx">
  277. <img :src="tx" alt />
  278. </div>
  279. <div class="fontWidth">
  280. {{ scope.row.sn }}
  281. </div>
  282. </div> -->
  283. <div class="fontWidth">
  284. {{ scope.row.sn }}
  285. </div>
  286. </template>
  287. </el-table-column>
  288. <el-table-column label="学科" min-width="15" align="center">
  289. <template slot-scope="scope">
  290. <div>{{ scope.row.su ? scope.row.su : "" }}</div>
  291. </template>
  292. </el-table-column>
  293. <el-table-column label="学校" min-width="20" align="center">
  294. <template slot-scope="scope">
  295. <div>{{ scope.row.sc ? scope.row.sc : "" }}</div>
  296. </template>
  297. </el-table-column>
  298. <el-table-column label="邮箱" min-width="20" align="center">
  299. <template slot-scope="scope">
  300. <div>{{ scope.row.em ? scope.row.em : "" }}</div>
  301. </template>
  302. </el-table-column>
  303. <el-table-column label="电话" min-width="15" align="center">
  304. <template slot-scope="scope">
  305. <div>
  306. {{ scope.row.ph ? scope.row.ph : "" }}
  307. </div>
  308. </template>
  309. </el-table-column>
  310. <el-table-column label="操作" min-width="20">
  311. <template slot-scope="scope">
  312. <div class="pb_buttonBox">
  313. <!-- <el-button
  314. size="mini"
  315. type="primary"
  316. style="cursor: pointer"
  317. @click="updateStudent(scope.row, scope.$index)"
  318. >修改</el-button
  319. > -->
  320. <div
  321. class="delete"
  322. style="margin-left: 0"
  323. @click="updateStudent(scope.row, scope.$index, 0)"
  324. >
  325. <img src="../../../../assets/autorUp.png" alt />
  326. </div>
  327. <div
  328. class="delete"
  329. @click="deleteStudent(scope.$index, 0)"
  330. >
  331. <img src="../../../../assets/remove.png" alt />
  332. </div>
  333. </div>
  334. </template>
  335. </el-table-column>
  336. </el-table>
  337. </div>
  338. <div
  339. style="
  340. color: #cd0808;
  341. width: 97%;
  342. margin: 10px auto;
  343. font-size: 14px;
  344. "
  345. >
  346. *项目联系人的所有信息为必填项,每个项目只限1名联系人。
  347. </div>
  348. </div>
  349. </div>
  350. <div class="whiteBg" style="border-radius: 0">
  351. <div class="right_first">
  352. <div class="right_title" id="sixth">协作者</div>
  353. <div
  354. class="addPeople"
  355. @click="addAutor(1)"
  356. v-if="raceDetail.tableData.length < 4"
  357. >
  358. 添加协作者
  359. </div>
  360. <div class="raTable">
  361. <el-table
  362. class="tableColor"
  363. ref="table"
  364. :data="raceDetail.tableData"
  365. :height="tableHeight"
  366. :fit="true"
  367. style="width: 100%"
  368. :header-cell-style="{
  369. background: '#f1f1f1',
  370. fontSize: '17px',
  371. }"
  372. >
  373. <el-table-column label="姓名" min-width="20" align="center">
  374. <template slot-scope="scope">
  375. <!-- <div class="userImg">
  376. <div class="tx">
  377. <img :src="tx" alt />
  378. </div>
  379. </div> -->
  380. <div class="fontWidth">
  381. {{ scope.row.sn }}
  382. </div>
  383. </template>
  384. </el-table-column>
  385. <el-table-column label="学科" min-width="15" align="center">
  386. <template slot-scope="scope">
  387. <div>{{ scope.row.su ? scope.row.su : "" }}</div>
  388. </template>
  389. </el-table-column>
  390. <el-table-column label="学校" min-width="15" align="center">
  391. <template slot-scope="scope">
  392. <div>{{ scope.row.sc ? scope.row.sc : "" }}</div>
  393. </template>
  394. </el-table-column>
  395. <el-table-column label="邮箱" min-width="15" align="center">
  396. <template slot-scope="scope">
  397. <div>{{ scope.row.em ? scope.row.em : "" }}</div>
  398. </template>
  399. </el-table-column>
  400. <el-table-column label="电话" min-width="15" align="center">
  401. <template slot-scope="scope">
  402. <div>
  403. {{ scope.row.ph ? scope.row.ph : "" }}
  404. </div>
  405. </template>
  406. </el-table-column>
  407. <el-table-column label="操作" min-width="20">
  408. <template slot-scope="scope">
  409. <div class="pb_buttonBox">
  410. <!-- <el-button
  411. size="mini"
  412. type="primary"
  413. style="cursor: pointer"
  414. @click="updateStudent(scope.row, scope.$index)"
  415. >修改</el-button
  416. > -->
  417. <div
  418. class="delete"
  419. style="margin-left: 0"
  420. @click="updateStudent(scope.row, scope.$index, 1)"
  421. >
  422. <img src="../../../../assets/autorUp.png" alt />
  423. </div>
  424. <div
  425. class="delete"
  426. @click="deleteStudent(scope.$index, 1)"
  427. >
  428. <img src="../../../../assets/remove.png" alt />
  429. </div>
  430. </div>
  431. </template>
  432. </el-table-column>
  433. </el-table>
  434. </div>
  435. <div
  436. style="
  437. color: #cd0808;
  438. width: 97%;
  439. margin: 10px auto;
  440. font-size: 14px;
  441. "
  442. >
  443. 协作者(不含联系人)不超过4人;姓名为必填项,其余信息非必填项。
  444. </div>
  445. </div>
  446. </div>
  447. <div class="whiteBg" style="border-radius: 0">
  448. <div class="right_first">
  449. <div class="right_title" id="fouth">
  450. <span style="color: red">*</span>项目简介
  451. </div>
  452. <div class="secondTop">
  453. <el-input
  454. type="textarea"
  455. placeholder="200字以内,介绍项目背景,描述生活中的现象,引出要解决的核心问题,概述解决问题的思路及预期成果等。"
  456. v-model="raceDetail.courseText"
  457. @input="updateTitle"
  458. maxlength="200"
  459. show-word-limit
  460. rows="8"
  461. class="tAreaCss"
  462. cols
  463. >
  464. </el-input>
  465. <!-- <textarea
  466. rows="8"
  467. class="binfo_input tAreaCss"
  468. cols
  469. v-model="raceDetail.courseText"
  470. @input="updateTitle"
  471. maxlength="200"
  472. show-word-limit
  473. placeholder="200字以内,介绍项目背景,描述生活中的现象,引出要解决的核心问题,概述解决问题的思路及预期成果等。"
  474. style="font-size: 14px"
  475. ></textarea> -->
  476. </div>
  477. </div>
  478. </div>
  479. <div class="whiteBg" style="border-radius: 0">
  480. <div class="right_first">
  481. <div class="right_title" id="fivth">
  482. <span style="color: red">*</span>文件上传
  483. </div>
  484. <div class="secondTop">
  485. <div>
  486. <div class="basic_box1" style="width: 100%">
  487. <div>
  488. <div
  489. class="add_chapters_box"
  490. v-if="raceDetail.data && raceDetail.data.length == 0"
  491. ></div>
  492. <div
  493. v-else
  494. class="add_chapters_box"
  495. style="display: flex; flex-direction: column"
  496. >
  497. <div
  498. class="chapter_upload"
  499. v-for="(item, index) in raceDetail.data"
  500. :key="index"
  501. draggable="true"
  502. @dragstart="handleDragStart($event, index)"
  503. @dragover.prevent="handleDragOver($event, index)"
  504. @dragenter="handleDragEnter($event, index)"
  505. @dragend="handleDragEnd($event, index)"
  506. >
  507. <div class="chapter_upload_t"></div>
  508. <div class="chapter_upload_o">
  509. <div class="chapter_upload_l">
  510. <div
  511. v-if="item.type == 2"
  512. class="chapter_upload_l_i1"
  513. ></div>
  514. <div
  515. v-if="item.type == 1 || item.type == 3"
  516. class="chapter_upload_l_i5"
  517. ></div>
  518. </div>
  519. <div class="chapter_upload_ic">
  520. <div class="chapter_upload_ic_l"></div>
  521. <div
  522. class="chapter_upload_ic_r"
  523. @click.stop="
  524. deleteChapterData($event, index, 0)
  525. "
  526. >
  527. <div></div>
  528. </div>
  529. </div>
  530. <div class="chapter_upload_n">
  531. <input
  532. class="first"
  533. v-if="item.type == 1 || item.type == 3"
  534. :placeholder="item.name"
  535. />
  536. <input
  537. class="first"
  538. v-if="item.type == 2"
  539. :placeholder="item.name"
  540. />
  541. <div class="chapter_upload_ud">
  542. <div
  543. class="chapter_upload_up"
  544. @click="upCd($event, index)"
  545. ></div>
  546. <div
  547. class="chapter_upload_down"
  548. @click="downCd($event, index)"
  549. ></div>
  550. </div>
  551. </div>
  552. </div>
  553. </div>
  554. </div>
  555. </div>
  556. <div class="add_info_box">
  557. <div class="upTips">
  558. <button
  559. class="info_btn"
  560. @click="addImg($event)"
  561. style="min-width: 108px"
  562. id="forUp"
  563. >
  564. 上传附件
  565. <input
  566. type="file"
  567. accept="application/pdf,application/zip"
  568. style="display: none"
  569. @change="beforeUpload($event, null, 0)"
  570. />
  571. </button>
  572. <div style="color: red">
  573. *此处需提交《项目式学习案例格式》的PDF格式文件。建议大小为80M以内。
  574. </div>
  575. </div>
  576. </div>
  577. <div v-if="raceDetail.data.proVisible" class="mask">
  578. <div class="progressBox">
  579. <!-- <div id="closePro" class="closeCss">
  580. <img
  581. src="../../../../assets/icon/proClose.png"
  582. alt=""
  583. />
  584. </div> -->
  585. <div class="lbox">
  586. <img
  587. src="../../../../assets/loading.gif"
  588. />上传中,请稍后
  589. </div>
  590. <div style="margin-bottom: 10px">
  591. <div>
  592. {{ raceDetail.data.isFinishSize }}M /
  593. {{
  594. raceDetail.data.isAllSize
  595. ? raceDetail.data.isAllSize
  596. : 0
  597. }}M
  598. </div>
  599. </div>
  600. <el-progress
  601. :text-inside="true"
  602. :stroke-width="20"
  603. :percentage="
  604. raceDetail.data.progress
  605. ? raceDetail.data.progress
  606. : 0
  607. "
  608. style="width: 80%"
  609. ></el-progress>
  610. </div>
  611. </div>
  612. </div>
  613. </div>
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. <!-- <div class="buttonCss">
  619. <div class="info_btn noBg">预览</div>
  620. <div class="info_btn noBg">保存</div>
  621. <div class="info_btn" style="margin-right: 25px">下一步</div>
  622. </div> -->
  623. </div>
  624. </div>
  625. <el-dialog
  626. :title="isAddOrUp == true ? '修改项目成员' : '添加项目成员'"
  627. :visible.sync="dialogVisibleMember"
  628. :append-to-body="true"
  629. width="700px"
  630. height="80%"
  631. :before-close="handleClose"
  632. class="add_student"
  633. >
  634. <el-form>
  635. <el-form-item label="姓名" :label-width="formLabelWidth">
  636. <span>
  637. <el-input
  638. placeholder="请输入姓名"
  639. clearable
  640. v-model="sName"
  641. class="add_input"
  642. ></el-input>
  643. </span>
  644. </el-form-item>
  645. <el-form-item label="学科" :label-width="formLabelWidth">
  646. <span>
  647. <el-input
  648. placeholder="请输入学科"
  649. clearable
  650. v-model="sSubject"
  651. class="add_input"
  652. ></el-input>
  653. </span>
  654. </el-form-item>
  655. <el-form-item label="学校" :label-width="formLabelWidth">
  656. <span>
  657. <el-input
  658. placeholder="请输入学校"
  659. clearable
  660. v-model="sSchool"
  661. class="add_input"
  662. ></el-input>
  663. </span>
  664. </el-form-item>
  665. <el-form-item label="邮箱" :label-width="formLabelWidth">
  666. <span>
  667. <el-input
  668. placeholder="请输入邮箱"
  669. clearable
  670. v-model="sEmail"
  671. class="add_input"
  672. ></el-input>
  673. </span>
  674. </el-form-item>
  675. <el-form-item label="电话" :label-width="formLabelWidth">
  676. <span>
  677. <el-input
  678. placeholder="请输入电话"
  679. clearable
  680. v-model="sPhone"
  681. class="add_input"
  682. ></el-input>
  683. </span>
  684. </el-form-item>
  685. </el-form>
  686. <span slot="footer" class="dialog-footer">
  687. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  688. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  689. </span>
  690. </el-dialog>
  691. <el-dialog
  692. title="上传图片"
  693. :visible.sync="choosePicVisible"
  694. :append-to-body="true"
  695. width="500px"
  696. :before-close="handleClose"
  697. class="dialog_diy"
  698. >
  699. <div>
  700. <div class="fileCss" style="padding-top: 20px">
  701. <div>
  702. <button class="info_btn" @click="addImg($event)">
  703. 选择本地文件
  704. <input
  705. type="file"
  706. accept="image/*"
  707. style="display: none"
  708. @change="beforeUpload1"
  709. />
  710. </button>
  711. </div>
  712. <div>
  713. <el-button
  714. @click="getAllBanner"
  715. v-if="isSysPic == false && raceDetail.cover.length == 0"
  716. >选择系统文件</el-button
  717. >
  718. <div
  719. class="isSysPic"
  720. v-if="isSysPic == true && raceDetail.cover.length > 0"
  721. >
  722. <img :src="raceDetail.cover[0].url" alt="" />
  723. <div class="deletePic" @click="deleteSysPic">
  724. <img src="../../../../assets/icon/delete.png" alt="" />
  725. </div>
  726. </div>
  727. </div>
  728. </div>
  729. <div class="fileCss" v-if="raceDetail.cover.length > 0">
  730. <div>选择本地文件</div>
  731. <div>选择系统文件</div>
  732. </div>
  733. </div>
  734. <span slot="footer" class="dialog-footer">
  735. <el-button @click="choosePicVisible = false">取 消</el-button>
  736. <el-button type="primary" @click="choosePicVisible = false"
  737. >确 定</el-button
  738. >
  739. </span>
  740. </el-dialog>
  741. <el-dialog
  742. title="选择系统文件"
  743. :visible.sync="sysPicVisible"
  744. :append-to-body="true"
  745. width="700px"
  746. :before-close="handleClose"
  747. class="dialog_diy"
  748. >
  749. <div class="cru_selectBox" style="margin: 0">
  750. <div
  751. @click="getChoosePic(1)"
  752. class="cru_select"
  753. :class="chooseType == 1 ? 'cru_selected' : ''"
  754. >
  755. 绘画
  756. </div>
  757. <div
  758. @click="getChoosePic(2)"
  759. class="cru_select"
  760. :class="chooseType == 2 ? 'cru_selected' : ''"
  761. >
  762. 科技
  763. </div>
  764. <div
  765. @click="getChoosePic(3)"
  766. class="cru_select"
  767. :class="chooseType == 3 ? 'cru_selected' : ''"
  768. >
  769. 人文
  770. </div>
  771. <div
  772. @click="getChoosePic(4)"
  773. class="cru_select"
  774. :class="chooseType == 4 ? 'cru_selected' : ''"
  775. >
  776. 艺术
  777. </div>
  778. </div>
  779. <div class="sysPicBox">
  780. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  781. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  782. </div>
  783. </div>
  784. <span slot="footer" class="dialog-footer">
  785. <el-button @click="sysPicVisible = false">取 消</el-button>
  786. <el-button type="primary">确 定</el-button>
  787. </span>
  788. </el-dialog>
  789. </div>
  790. </template>
  791. <script>
  792. export default {
  793. props: ["raceInfo"],
  794. data() {
  795. return {
  796. tableHeight: "500px",
  797. formLabelWidth: "100px",
  798. chooseType: 1,
  799. CourseType: [],
  800. CourseTypeJson: [],
  801. noneBtnImg: false,
  802. uploadLoading1: false,
  803. dialogVisibleMember: false,
  804. isAddOrUp: false,
  805. choosePicVisible: false,
  806. sysPicVisible: false,
  807. isSysPic: false,
  808. isAutor: false,
  809. isOther: false,
  810. sysPic: [],
  811. upIndex: -1,
  812. sName: "",
  813. sSubject: "",
  814. sSchool: "",
  815. sEmail: "",
  816. sPhone: "",
  817. raceDetail: {
  818. title: "",
  819. type: [],
  820. typeOtherName: "",
  821. cover: [],
  822. autor: [],
  823. tableData: [],
  824. courseText: "",
  825. data: [],
  826. },
  827. tx: require("../../../../assets/avatar.png"),
  828. ending: null,
  829. dragging: null,
  830. };
  831. },
  832. mounted() {
  833. this.$nextTick(function () {
  834. this.tableHeight =
  835. window.innerHeight - this.$refs.table.$el.offsetTop - 200;
  836. if (this.tableHeight <= 530) {
  837. this.tableHeight = 530;
  838. }
  839. // 监听窗口大小变化
  840. let self = this;
  841. window.onresize = function () {
  842. self.tableHeight =
  843. window.innerHeight - self.$refs.table.$el.offsetTop - 200;
  844. if (self.tableHeight <= 530) {
  845. self.tableHeight = 530;
  846. }
  847. };
  848. });
  849. },
  850. beforeRouteLeave(to, from, next) {
  851. window.onresize = null;
  852. next();
  853. },
  854. computed: {
  855. arrayPan() {
  856. return function(res, pid){
  857. var a = [
  858. "课时项目",
  859. "单元项目",
  860. "作业项目",
  861. ]
  862. var b = [
  863. "社会类项目式学习",
  864. "科技类项目式学习",
  865. "综合",
  866. ]
  867. if(pid == '428574f9-593f-4d77-929c-506ea98db35b'){
  868. if(this.raceDetail.type.indexOf('247f4e75-bfca-4876-a7cf-4f16e33c09af') != -1){
  869. return res.filter(el => a.indexOf(el.name) !== -1)
  870. }else if(this.raceDetail.type.indexOf('e4035a71-877b-4d93-ab21-f323a80838c4') != -1){
  871. return res.filter(el => b.indexOf(el.name) !== -1)
  872. }else {
  873. return res
  874. }
  875. }else {
  876. return res
  877. }
  878. }
  879. }
  880. },
  881. watch: {
  882. raceInfo: {
  883. immediate: true,
  884. deep: true,
  885. handler(newValue, oldValue) {
  886. this.getValue();
  887. },
  888. },
  889. },
  890. methods: {
  891. tableRowClassName({ row, rowIndex }) {
  892. // if ((rowIndex + 1) % 2 === 0) {
  893. // return "even_row";
  894. // } else {
  895. // return "";
  896. // }
  897. if (rowIndex === 0) {
  898. return "tr-blue";
  899. } else {
  900. return "";
  901. }
  902. },
  903. handlePictureCardPreview(file) {
  904. this.dialogImageUrl = file.url;
  905. },
  906. handleDragStart(e, item) {
  907. this.dragging = item;
  908. },
  909. handleDragEnd(e, item) {
  910. if (this.ending === this.dragging) {
  911. return;
  912. }
  913. let newItems = [...this.raceDetail.data];
  914. const src = newItems[this.dragging];
  915. const dst = newItems[this.ending];
  916. this.raceDetail.data[this.dragging] = dst;
  917. this.raceDetail.data[this.ending] = src;
  918. this.$forceUpdate();
  919. this.$nextTick(() => {
  920. this.dragging = null;
  921. this.ending = null;
  922. });
  923. },
  924. handleDragOver(e) {
  925. // 首先把div变成可以放置的元素,即重写dragenter/dragover
  926. // 在dragenter中针对放置目标来设置
  927. e.dataTransfer.dropEffect = "move";
  928. },
  929. handleDragEnter(e, item) {
  930. // 为需要移动的元素设置dragstart事件
  931. e.dataTransfer.effectAllowed = "move";
  932. this.ending = item;
  933. },
  934. onExceed() {
  935. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  936. },
  937. handleClose(done) {
  938. this.isAddOrUp = false;
  939. this.isAutor = false;
  940. done();
  941. },
  942. jump(t) {
  943. var a = document.getElementById(t);
  944. var b = document.getElementsByClassName("right")[0];
  945. b.scrollTop = a.offsetTop;
  946. },
  947. handle_remove1(file, fileList, type) {
  948. var _tmp = this.raceDetail.cover;
  949. for (var i = 0, len = _tmp.length; i < len; i++) {
  950. if (_tmp[i].uid == file.uid) {
  951. _tmp.splice(i, 1);
  952. break;
  953. }
  954. this.raceDetail.cover = _tmp;
  955. }
  956. this.noneBtnImg = _tmp.length >= 1;
  957. this.isSysPic = false;
  958. },
  959. addImg(e) {
  960. var el = e.currentTarget;
  961. el.getElementsByTagName("input")[0].click();
  962. e.target.value = "";
  963. },
  964. imgChange1(file, fileList, type, itemTaskIndex) {
  965. if (type == 1) {
  966. var _tmp = this.raceDetail.cover;
  967. }
  968. this.noneBtnImg = _tmp.length >= 1;
  969. },
  970. imgChange(file, fileList, type, jT) {
  971. var _tmp = this.raceDetail.data;
  972. this.noneBtnImg = _tmp.length >= 1;
  973. },
  974. deleteChapterData(e, i, t) {
  975. e.stopPropagation();
  976. this.raceDetail.data.splice(i, 1);
  977. },
  978. chooseSysPic(p) {
  979. if (this.raceDetail.cover.length == 0) {
  980. this.raceDetail.cover.push({
  981. name: "系统图片.png",
  982. url: p,
  983. });
  984. } else {
  985. console.log(this.raceDetail.cover);
  986. }
  987. this.imgChange1(null, null, 1, null);
  988. this.isSysPic = true;
  989. this.sysPicVisible = false;
  990. },
  991. deleteSysPic() {
  992. this.raceDetail.cover = [];
  993. this.isSysPic = false;
  994. },
  995. getChoosePic(t) {
  996. this.chooseType = t;
  997. this.getAllBanner();
  998. },
  999. beforeUpload1(event, type) {
  1000. const loading = this.openLoading();
  1001. var file = event.target.files[0];
  1002. var credentials = {
  1003. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1004. secretAccessKey: "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",
  1005. }; //秘钥形式的登录上传
  1006. window.AWS.config.update(credentials);
  1007. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1008. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1009. var _this = this;
  1010. if (file) {
  1011. var params = {
  1012. Key:
  1013. file.name.split(".")[0] +
  1014. new Date().getTime() +
  1015. "." +
  1016. file.name.split(".")[file.name.split(".").length - 1],
  1017. ContentType: file.type,
  1018. Body: file,
  1019. "Access-Control-Allow-Credentials": "*",
  1020. ACL: "public-read",
  1021. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1022. var options = {
  1023. partSize: 2048 * 1024 * 1024,
  1024. queueSize: 2,
  1025. leavePartsOnError: true,
  1026. };
  1027. bucket
  1028. .upload(params, options)
  1029. .on("httpUploadProgress", function (evt) {
  1030. //这里可以写进度条
  1031. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1032. })
  1033. .send(function (err, data) {
  1034. loading.close();
  1035. if (err) {
  1036. var a = _this.$refs.upload1.uploadFiles;
  1037. a.splice(a.length - 1, a.length);
  1038. _this.$message.error("上传失败");
  1039. } else {
  1040. if (file.name.indexOf("微信图片") != -1) {
  1041. _this.raceDetail.cover.push({
  1042. name: "图片.png",
  1043. url: data.Location,
  1044. });
  1045. } else {
  1046. _this.raceDetail.cover.push({
  1047. name: file.name,
  1048. url: data.Location,
  1049. });
  1050. }
  1051. _this.imgChange1(null, null, 1, null);
  1052. _this.choosePicVisible = false;
  1053. console.log(data.Location);
  1054. }
  1055. });
  1056. }
  1057. },
  1058. beforeUpload(event, type, jsonType) {
  1059. var file = event.target.files[0];
  1060. var credentials = {
  1061. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1062. secretAccessKey: "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",
  1063. }; //秘钥形式的登录上传
  1064. window.AWS.config.update(credentials);
  1065. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1066. var type1 = type;
  1067. let bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1068. var _this = this;
  1069. var b = [
  1070. "DOC",
  1071. "DOCX",
  1072. "DOCM",
  1073. "DOTM",
  1074. "DOTX",
  1075. "PPTX",
  1076. "PPSX",
  1077. "PPT",
  1078. "PPS",
  1079. "PPTM",
  1080. "POTM",
  1081. "PPAM",
  1082. "POTX",
  1083. "PPSM",
  1084. ];
  1085. var c = ["PDF", "DOT", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  1086. var d = [
  1087. "BMP",
  1088. "PJP",
  1089. "APNG",
  1090. "PNG",
  1091. "JPG",
  1092. "GIF",
  1093. "SVG",
  1094. "JPEG",
  1095. "JPG",
  1096. "ICO",
  1097. "PGPEG",
  1098. "AVIF",
  1099. ];
  1100. // if (
  1101. // b.indexOf(
  1102. // file.name
  1103. // .split(".")
  1104. // [file.name.split(".").length - 1].toLocaleUpperCase()
  1105. // ) != -1
  1106. // ) {
  1107. // if (file.size / 1024 / 1024 > 10) {
  1108. // this.$message.error("上传文件大于10M,请重新选择文件!");
  1109. // return;
  1110. // }
  1111. // } else if (
  1112. // c.indexOf(
  1113. // file.name
  1114. // .split(".")
  1115. // [file.name.split(".").length - 1].toLocaleUpperCase()
  1116. // ) != -1
  1117. // ) {
  1118. // if (file.size / 1024 / 1024 > 5) {
  1119. // this.$message.error("添加的上传文件大于5M,请重新选择文件!");
  1120. // return;
  1121. // }
  1122. // }
  1123. if (
  1124. file.name
  1125. .split(".")
  1126. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF" &&
  1127. file.name
  1128. .split(".")
  1129. [file.name.split(".").length - 1].toLocaleUpperCase() != "ZIP"
  1130. ) {
  1131. this.$message.error("请上传PDF或者ZIP文件!");
  1132. return;
  1133. }
  1134. if (
  1135. c.indexOf(
  1136. file.name
  1137. .split(".")
  1138. [file.name.split(".").length - 1].toLocaleUpperCase()
  1139. ) != -1
  1140. ) {
  1141. type1 = 1;
  1142. } else if (
  1143. d.indexOf(
  1144. file.name
  1145. .split(".")
  1146. [file.name.split(".").length - 1].toLocaleUpperCase()
  1147. ) != -1
  1148. ) {
  1149. type1 = 3;
  1150. } else {
  1151. type1 = 2;
  1152. }
  1153. _this.raceDetail.data.progress = 0;
  1154. _this.raceDetail.data.proVisible = true;
  1155. _this.raceDetail.data.isFinishSize = 0;
  1156. _this.raceDetail.data.isAllSize = 0;
  1157. _this.$nextTick(() => {
  1158. setTimeout(() => {
  1159. document.getElementById("closePro").onclick = () => {
  1160. bucket.abort.bind(bucket);
  1161. };
  1162. }, 500);
  1163. });
  1164. var a = (file.size / 1024 / 1024).toFixed(2);
  1165. _this.raceDetail.data.isAllSize = a - 0;
  1166. _this.$forceUpdate();
  1167. if (file) {
  1168. var params = {
  1169. Key:
  1170. file.name.split(".")[0] +
  1171. new Date().getTime() +
  1172. "." +
  1173. file.name.split(".")[file.name.split(".").length - 1],
  1174. ContentType: file.type,
  1175. Body: file,
  1176. "Access-Control-Allow-Credentials": "*",
  1177. ACL: "public-read",
  1178. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1179. var options = {
  1180. partSize: 2048 * 1024 * 1024,
  1181. queueSize: 2,
  1182. leavePartsOnError: true,
  1183. };
  1184. bucket
  1185. .upload(params, options)
  1186. .on("httpUploadProgress", function (evt) {
  1187. //这里可以写进度条
  1188. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1189. _this.raceDetail.data.isFinishSize = (
  1190. evt.loaded /
  1191. 1024 /
  1192. 1024
  1193. ).toFixed(2);
  1194. _this.raceDetail.data.progress = parseInt(
  1195. (evt.loaded / evt.total) * 100
  1196. );
  1197. _this.$forceUpdate();
  1198. // _this.raceDetail.data.progress =
  1199. // Math.floor(
  1200. // (evt.loaded / 1024 / 1024 / (evt.total / 1024 / 1024)) * 100
  1201. // ) + "%";
  1202. })
  1203. .send(function (err, data) {
  1204. // loading.close();
  1205. _this.raceDetail.data.progress = 100;
  1206. _this.raceDetail.data.isFinishSize =
  1207. _this.raceDetail.data.isAllSize;
  1208. _this.$forceUpdate();
  1209. setTimeout(() => {
  1210. _this.raceDetail.data.proVisible = false;
  1211. _this.$forceUpdate();
  1212. }, 1000);
  1213. if (err) {
  1214. _this.$message.error("上传失败");
  1215. } else {
  1216. _this.raceDetail.data.push({
  1217. name: file.name,
  1218. url: data.Location,
  1219. type: type1,
  1220. id: "data" + _this.raceDetail.data.length,
  1221. });
  1222. _this.imgChange(null, null, type1, jsonType);
  1223. console.log(data.Location);
  1224. }
  1225. });
  1226. }
  1227. },
  1228. updateTitle() {
  1229. this.$emit("updateTitle", this.raceDetail);
  1230. },
  1231. updateType(sid) {
  1232. var a = this.raceDetail.type;
  1233. var c = [];
  1234. var b = sid.pid;
  1235. var d = [];
  1236. // for (var i = 0; i < this.CourseType[1].length; i++) {
  1237. // if (this.CourseType[1][i].id == sid) {
  1238. // b = this.CourseType[1][i].pid;
  1239. // }
  1240. // }
  1241. if (
  1242. b == "34629bcc-d02f-11ec-8c78-005056b86db5" &&
  1243. a.indexOf(sid.id) != -1
  1244. ) {
  1245. for (var j = 0; j < this.CourseTypeJson[b].length; j++) {
  1246. d.push(this.CourseTypeJson[b][j].id);
  1247. }
  1248. for (var j = 0; j < this.CourseTypeJson['428574f9-593f-4d77-929c-506ea98db35b'].length; j++) {
  1249. d.push(this.CourseTypeJson['428574f9-593f-4d77-929c-506ea98db35b'][j].id);
  1250. }
  1251. for (var i = 0; i < a.length; i++) {
  1252. if (d.indexOf(a[i]) == -1) {
  1253. c.push(a[i]);
  1254. }
  1255. }
  1256. c.push(sid.id);
  1257. this.raceDetail.type = c;
  1258. }
  1259. if (a.indexOf("6b6ac83d-c923-11ed-9546-005056b86db5") != -1) {
  1260. this.isOther = true;
  1261. } else {
  1262. this.isOther = false;
  1263. this.raceDetail.typeOtherName = "";
  1264. }
  1265. },
  1266. isAddPPTeacher() {
  1267. if (this.isAutor == true) {
  1268. if (this.sName === "") {
  1269. this.$message.error("姓名不能为空");
  1270. return;
  1271. } else if (this.sSubject === "") {
  1272. this.$message.error("学科不能为空");
  1273. return;
  1274. } else if (this.sSchool === "") {
  1275. this.$message.error("学校不能为空");
  1276. return;
  1277. } else if (this.sPhone == "") {
  1278. this.$message.error("手机号不能为空");
  1279. return;
  1280. } else if (!/^1[3456789]\d{9}$/.test(this.sPhone)) {
  1281. this.$message.error("手机号格式不正确");
  1282. return;
  1283. } else if (this.sEmail == "") {
  1284. this.$message.error("邮箱不能为空");
  1285. return;
  1286. } else if (this.sEmail != "") {
  1287. if (
  1288. !/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(
  1289. this.sEmail
  1290. )
  1291. ) {
  1292. this.$message.error("邮箱格式不正确");
  1293. return;
  1294. }
  1295. }
  1296. } else {
  1297. if (this.sName === "") {
  1298. this.$message.error("姓名不能为空");
  1299. return;
  1300. } else if (this.sPhone != "") {
  1301. if (!/^1[3456789]\d{9}$/.test(this.sPhone)) {
  1302. this.$message.error("手机号格式不正确");
  1303. return;
  1304. }
  1305. } else if (this.sEmail != "") {
  1306. if (
  1307. !/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(
  1308. this.sEmail
  1309. )
  1310. ) {
  1311. this.$message.error("邮箱格式不正确");
  1312. return;
  1313. }
  1314. }
  1315. }
  1316. if (this.isAutor == true) {
  1317. if (this.isAddOrUp == true) {
  1318. this.raceDetail.autor[0].sn = this.sName;
  1319. this.raceDetail.autor[0].su = this.sSubject;
  1320. this.raceDetail.autor[0].sc = this.sSchool;
  1321. this.raceDetail.autor[0].em = this.sEmail;
  1322. this.raceDetail.autor[0].ph = this.sPhone;
  1323. } else {
  1324. this.raceDetail.autor.push({
  1325. sn: this.sName,
  1326. su: this.sSubject,
  1327. sc: this.sSchool,
  1328. em: this.sEmail,
  1329. ph: this.sPhone,
  1330. });
  1331. }
  1332. } else {
  1333. if (this.isAddOrUp == true) {
  1334. this.raceDetail.tableData[this.upIndex].sn = this.sName;
  1335. this.raceDetail.tableData[this.upIndex].su = this.sSubject;
  1336. this.raceDetail.tableData[this.upIndex].sc = this.sSchool;
  1337. this.raceDetail.tableData[this.upIndex].em = this.sEmail;
  1338. this.raceDetail.tableData[this.upIndex].ph = this.sPhone;
  1339. } else {
  1340. this.raceDetail.tableData.push({
  1341. sn: this.sName,
  1342. su: this.sSubject,
  1343. sc: this.sSchool,
  1344. em: this.sEmail,
  1345. ph: this.sPhone,
  1346. });
  1347. }
  1348. }
  1349. this.sName = "";
  1350. this.sSubject = "";
  1351. this.sSchool = "";
  1352. this.sEmail = "";
  1353. this.sPhone = "";
  1354. this.isAddOrUp = false;
  1355. this.isAutor = false;
  1356. this.upIndex = -1;
  1357. this.dialogVisibleMember = false;
  1358. this.$emit("updateTitle", this.raceDetail);
  1359. },
  1360. updateStudent(r, i, t) {
  1361. this.sName = r.sn;
  1362. this.sSubject = r.su;
  1363. this.sSchool = r.sc;
  1364. this.sEmail = r.em;
  1365. this.sPhone = r.ph;
  1366. this.isAddOrUp = true;
  1367. if (t == 0) {
  1368. this.isAutor = true;
  1369. }
  1370. this.upIndex = i;
  1371. this.dialogVisibleMember = true;
  1372. },
  1373. deleteStudent(i, t) {
  1374. this.$confirm("确定删除此作者吗?", "提示", {
  1375. confirmButtonText: "确定",
  1376. cancelButtonText: "取消",
  1377. type: "warning",
  1378. })
  1379. .then(() => {
  1380. this.$message({
  1381. message: "删除成功",
  1382. type: "success",
  1383. });
  1384. if (t == 0) {
  1385. this.raceDetail.autor = [];
  1386. } else {
  1387. this.raceDetail.tableData.splice(i, 1);
  1388. }
  1389. this.$emit("updateTitle", this.raceDetail);
  1390. })
  1391. .catch(() => {});
  1392. },
  1393. selectType() {
  1394. this.ajax
  1395. .get(this.$store.state.api + "selectMatType")
  1396. .then((res) => {
  1397. this.CourseType = res.data;
  1398. for (var i = 0; i < res.data[0].length; i++) {
  1399. if (!this.cid) {
  1400. this.raceDetail.type[res.data[0][i].id] = "";
  1401. }
  1402. for (var j = 0; j < res.data[1].length; j++) {
  1403. if (res.data[0][i].id == res.data[1][j].pid) {
  1404. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1405. this.CourseTypeJson[res.data[0][i].id] = [];
  1406. }
  1407. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1408. }
  1409. }
  1410. }
  1411. })
  1412. .catch((err) => {
  1413. console.error(err);
  1414. });
  1415. },
  1416. getAllBanner() {
  1417. this.sysPicVisible = true;
  1418. let params = {
  1419. t: this.chooseType,
  1420. };
  1421. this.ajax
  1422. .get(this.$store.state.api + "selectAllBanner", params)
  1423. .then((res) => {
  1424. this.sysPic = res.data[0];
  1425. })
  1426. .catch((err) => {
  1427. console.error(err);
  1428. });
  1429. },
  1430. getValue() {
  1431. this.raceDetail.title = this.raceInfo.title;
  1432. this.raceDetail.type = this.raceInfo.type;
  1433. this.raceDetail.typeOtherName = this.raceInfo.typeOtherName;
  1434. if (this.raceDetail.typeOtherName != "") {
  1435. this.isOther = true;
  1436. }
  1437. this.raceDetail.cover = this.raceInfo.cover;
  1438. this.raceDetail.autor = this.raceInfo.autor;
  1439. this.raceDetail.tableData = this.raceInfo.tableData;
  1440. this.raceDetail.courseText = this.raceInfo.courseText;
  1441. this.raceDetail.data = this.raceInfo.data;
  1442. this.imgChange1(null, null, 1, null);
  1443. this.$forceUpdate();
  1444. },
  1445. addAutor(t) {
  1446. if (t == 0) {
  1447. this.isAutor = true;
  1448. }
  1449. this.dialogVisibleMember = true;
  1450. },
  1451. upCd(e, i) {
  1452. e.stopPropagation();
  1453. if (i == 0) {
  1454. return;
  1455. }
  1456. var a = this.raceDetail.data[i - 1];
  1457. this.raceDetail.data[i - 1] = this.raceDetail.data[i];
  1458. this.raceDetail.data[i] = a;
  1459. this.$forceUpdate();
  1460. },
  1461. downCd(e, i) {
  1462. e.stopPropagation();
  1463. if (i == this.raceDetail.data.length - 1) {
  1464. return;
  1465. }
  1466. var a = this.raceDetail.data[i + 1];
  1467. this.raceDetail.data[i + 1] = this.raceDetail.data[i];
  1468. this.raceDetail.data[i] = a;
  1469. this.$forceUpdate();
  1470. },
  1471. },
  1472. created() {
  1473. this.getValue();
  1474. this.selectType();
  1475. },
  1476. };
  1477. </script>
  1478. <style scoped>
  1479. @media screen and (max-width: 1280px) {
  1480. .upTips {
  1481. align-items: flex-start !important;
  1482. }
  1483. }
  1484. .dialog_diy >>> .el-dialog__header {
  1485. background: #3c3c3c !important;
  1486. padding: 15px 20px;
  1487. }
  1488. .dialog_diy >>> .el-dialog__title {
  1489. color: #fff;
  1490. }
  1491. .dialog_diy >>> .el-dialog__headerbtn {
  1492. top: 19px;
  1493. }
  1494. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  1495. color: #fff;
  1496. }
  1497. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  1498. color: #fff;
  1499. }
  1500. .dialog_diy >>> .el-dialog__body,
  1501. .dialog_diy >>> .el-dialog__footer {
  1502. background: #fafafa;
  1503. }
  1504. .pb_content {
  1505. width: 100%;
  1506. height: 100%;
  1507. }
  1508. .race_content_body {
  1509. width: 100%;
  1510. position: relative;
  1511. margin: 0;
  1512. height: 100%;
  1513. }
  1514. .raceBox {
  1515. width: 100%;
  1516. height: 100%;
  1517. display: flex;
  1518. flex-direction: row;
  1519. flex-wrap: nowrap;
  1520. align-items: flex-start;
  1521. }
  1522. .stepBg {
  1523. font-size: 16px;
  1524. padding: 80px 0 0 0;
  1525. margin: 0 25px 0 0;
  1526. width: 15%;
  1527. display: flex;
  1528. justify-content: flex-start;
  1529. align-items: center;
  1530. flex-wrap: nowrap;
  1531. background: #fff;
  1532. /* min-height: 800px; */
  1533. height: calc(100% - 80px);
  1534. border-radius: 15px;
  1535. overflow: auto;
  1536. min-width: 260px;
  1537. flex-direction: column;
  1538. }
  1539. .steps {
  1540. display: flex;
  1541. flex-direction: row;
  1542. flex-wrap: nowrap;
  1543. position: relative;
  1544. width: 145px;
  1545. height: 130px;
  1546. }
  1547. .steps > div:nth-child(1) > img {
  1548. z-index: 9;
  1549. position: relative;
  1550. }
  1551. .stepLeft,
  1552. .isSteps {
  1553. width: 30px;
  1554. height: 30px;
  1555. border-radius: 50%;
  1556. text-align: center;
  1557. line-height: 30px;
  1558. border: 2px solid #eee;
  1559. color: #c0c0c0;
  1560. }
  1561. .isSteps {
  1562. background: #1990ff;
  1563. color: #fff;
  1564. border: none;
  1565. }
  1566. .stepRightNav {
  1567. display: flex;
  1568. flex-direction: column;
  1569. flex-wrap: nowrap;
  1570. justify-content: space-between;
  1571. align-items: flex-start;
  1572. margin: 10px 0 0 10px;
  1573. height: 40px;
  1574. cursor: pointer;
  1575. }
  1576. .stepRightNav > div {
  1577. margin-bottom: 5px;
  1578. }
  1579. .stepRightNav:hover {
  1580. color: #999;
  1581. }
  1582. .line,
  1583. .isLine {
  1584. position: absolute;
  1585. width: 5px;
  1586. height: 50px;
  1587. border-left: 1px solid #dadada;
  1588. top: 38px;
  1589. left: 15px;
  1590. }
  1591. .isLine {
  1592. border-left: 1px solid #1d92ff !important;
  1593. }
  1594. .right {
  1595. width: 100%;
  1596. background: rgb(255, 255, 255);
  1597. border-radius: 10px;
  1598. overflow: auto;
  1599. height: 100%;
  1600. border-radius: 15px;
  1601. /* max-height: 800px; */
  1602. }
  1603. .allBox {
  1604. padding: 25px;
  1605. }
  1606. .allBox > div:nth-child(1) {
  1607. color: #0f40f5;
  1608. font-size: 18px;
  1609. font-weight: bold;
  1610. }
  1611. .raceTop > div:nth-child(2) {
  1612. width: 80%;
  1613. margin-top: 10px;
  1614. }
  1615. .choose {
  1616. display: flex;
  1617. flex-direction: column;
  1618. flex-wrap: nowrap;
  1619. height: 100%;
  1620. justify-content: space-evenly;
  1621. align-items: flex-start;
  1622. }
  1623. .both {
  1624. display: flex;
  1625. flex-direction: row;
  1626. flex-wrap: wrap;
  1627. width: 100%;
  1628. align-items: center;
  1629. justify-content: flex-start;
  1630. margin: 30px 0;
  1631. }
  1632. .all_choose {
  1633. display: flex;
  1634. flex-direction: row;
  1635. align-items: flex-start;
  1636. width: 100%;
  1637. }
  1638. .choose > .all_choose:nth-child(2) > span,
  1639. .choose > .all_choose:nth-child(4) > span,
  1640. .choose > .all_choose:nth-child(3) > span {
  1641. letter-spacing: 31px;
  1642. margin-left: 10px;
  1643. }
  1644. .all_choose > span {
  1645. width: 120px;
  1646. /* display: block;
  1647. letter-spacing: 33px;
  1648. white-space: nowrap;
  1649. overflow: hidden;
  1650. text-overflow: ellipsis; */
  1651. }
  1652. .all_choose >>> .el-checkbox-group {
  1653. display: flex;
  1654. flex-direction: row;
  1655. width: 95%;
  1656. flex-wrap: wrap;
  1657. align-content: center;
  1658. justify-content: flex-start;
  1659. align-items: center;
  1660. margin-top: 3px;
  1661. }
  1662. .all_choose > .el-checkbox-group >>> .el-checkbox {
  1663. margin-bottom: 10px;
  1664. display: flex;
  1665. flex-direction: row;
  1666. align-items: center;
  1667. }
  1668. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  1669. width: 85px;
  1670. min-width: 85px;
  1671. /* min-width: 80px;
  1672. overflow: hidden; */
  1673. /* width: 80px; */
  1674. /* text-overflow: ellipsis;
  1675. white-space: nowrap; */
  1676. }
  1677. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  1678. width: auto;
  1679. }
  1680. .disUoloadSty >>> .el-icon-plus {
  1681. display: none !important;
  1682. /* 上传按钮隐藏 */
  1683. }
  1684. .upCss {
  1685. display: flex;
  1686. flex-direction: row;
  1687. justify-content: flex-start;
  1688. }
  1689. .upCss >>> .el-icon-plus {
  1690. position: none !important;
  1691. width: 200px;
  1692. height: 100px;
  1693. display: flex;
  1694. flex-wrap: nowrap;
  1695. flex-direction: column;
  1696. align-items: center;
  1697. justify-content: center;
  1698. border: 1px dashed #ccc;
  1699. min-width: 78px;
  1700. min-height: 100px;
  1701. z-index: 999;
  1702. }
  1703. .upCss >>> .el-upload-list__item-name {
  1704. width: 100px;
  1705. white-space: nowrap;
  1706. overflow: hidden;
  1707. text-overflow: ellipsis;
  1708. }
  1709. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  1710. object-fit: cover;
  1711. }
  1712. .uploadFm {
  1713. border: 1px dashed #ccc;
  1714. width: 202px;
  1715. height: 102px;
  1716. position: relative;
  1717. cursor: pointer;
  1718. }
  1719. .uploadFm > img {
  1720. position: absolute;
  1721. top: 25px;
  1722. left: 35%;
  1723. width: 50px;
  1724. }
  1725. .picBox {
  1726. display: flex;
  1727. flex-direction: row;
  1728. flex-wrap: nowrap;
  1729. align-items: flex-start;
  1730. margin-top: 10px;
  1731. }
  1732. .picNav {
  1733. margin-left: 10px;
  1734. color: #aaabaa;
  1735. }
  1736. .addPeople {
  1737. color: #75a1f4;
  1738. padding: 10px 20px 10px 0;
  1739. float: right;
  1740. cursor: pointer;
  1741. }
  1742. .binfo_input {
  1743. font: inherit;
  1744. color: currentColor;
  1745. width: 100%;
  1746. margin: 0;
  1747. /* padding: 15px 14px; */
  1748. padding: 8px 14px;
  1749. display: block;
  1750. min-width: 0;
  1751. outline: none;
  1752. box-sizing: content-box;
  1753. background: none;
  1754. border: 1px solid rgba(0, 0, 0, 0.23);
  1755. border-radius: 4px;
  1756. box-sizing: border-box;
  1757. background: #fff;
  1758. font-size: 18px;
  1759. }
  1760. .binfo_input:focus-visible {
  1761. border: 1px solid rgba(61, 103, 188);
  1762. }
  1763. .secondTop {
  1764. width: 97%;
  1765. margin: 10px auto;
  1766. }
  1767. .tAreaCss >>> .el-textarea__inner {
  1768. resize: none;
  1769. font-size: 16px;
  1770. }
  1771. .tAreaCss >>> .el-textarea__inner {
  1772. font-family: "微软雅黑";
  1773. }
  1774. .addNewPP >>> .el-dialog__body {
  1775. padding: 5px 20px;
  1776. }
  1777. .customWidth >>> .el-dialog {
  1778. min-width: 500px !important;
  1779. }
  1780. .whiteBg {
  1781. background: #fff;
  1782. border-radius: 10px;
  1783. }
  1784. .right_title {
  1785. height: 30px;
  1786. padding: 15px 0 15px 20px;
  1787. border-bottom: 1px solid #f2f2f2;
  1788. font-size: 1.5em;
  1789. font-weight: bold;
  1790. color: #0f7eff;
  1791. margin: 0 auto;
  1792. }
  1793. .basic_box {
  1794. margin: 0 auto;
  1795. position: relative;
  1796. padding: 0 20px 0 20px;
  1797. }
  1798. .basic_box1 {
  1799. position: relative;
  1800. margin: 0;
  1801. min-height: 0;
  1802. width: 90%;
  1803. }
  1804. .left_first {
  1805. display: flex;
  1806. flex-direction: column;
  1807. flex-wrap: nowrap;
  1808. }
  1809. .bInfo_title {
  1810. text-align: left;
  1811. margin: 10px 0;
  1812. }
  1813. .fmBox {
  1814. padding: 10px 0 0 20px;
  1815. display: flex;
  1816. align-items: baseline;
  1817. justify-content: flex-start;
  1818. margin: 0 auto;
  1819. }
  1820. .logoImg {
  1821. width: 30px;
  1822. }
  1823. .logoImg > img {
  1824. width: 100%;
  1825. height: 100%;
  1826. }
  1827. .title_add_student {
  1828. margin: 0 auto;
  1829. color: #fff;
  1830. }
  1831. .add_input {
  1832. width: 365px;
  1833. }
  1834. .userImg {
  1835. display: flex;
  1836. flex-direction: row;
  1837. justify-content: center;
  1838. align-items: center;
  1839. }
  1840. .tx {
  1841. width: 40px;
  1842. margin-right: 10px;
  1843. }
  1844. .pb_buttonBox {
  1845. display: flex;
  1846. flex-direction: row;
  1847. flex-wrap: nowrap;
  1848. align-items: flex-start;
  1849. }
  1850. .delete {
  1851. width: 25px;
  1852. cursor: pointer;
  1853. margin-left: 10px;
  1854. }
  1855. .tx > img,
  1856. .delete > img {
  1857. width: 100%;
  1858. height: 100%;
  1859. }
  1860. .add_student >>> .el-dialog__header {
  1861. padding: 20px 20px 10px;
  1862. text-align: center;
  1863. background: #32455b;
  1864. }
  1865. .add_student >>> .el-dialog__title {
  1866. font-size: 14px !important;
  1867. color: #fff !important;
  1868. }
  1869. .add_student >>> .el-dialog__headerbtn {
  1870. font-size: 20px !important;
  1871. }
  1872. .add_student >>> .el-form-item__label {
  1873. margin-left: 65px;
  1874. }
  1875. .add_student >>> .el-form-item {
  1876. display: flex;
  1877. }
  1878. .add_student >>> .el-form-item__content {
  1879. margin: 0 !important;
  1880. }
  1881. .add_student >>> .el-dialog__footer {
  1882. text-align: center !important;
  1883. }
  1884. .header-title {
  1885. display: flex;
  1886. }
  1887. .stepBg .steps:nth-child(1) ::after,
  1888. .stepBg .steps:nth-child(2) ::after,
  1889. .stepBg .steps:nth-child(3) ::after,
  1890. .stepBg .steps:nth-child(4) ::after,
  1891. .stepBg .steps:nth-child(5) ::after {
  1892. content: "";
  1893. height: 100%;
  1894. background: #eee;
  1895. width: 4px;
  1896. position: absolute;
  1897. left: 15px;
  1898. top: calc(50% + (35px / 2));
  1899. transform: translateY(-50%);
  1900. z-index: 1;
  1901. }
  1902. .fileCss {
  1903. width: 100%;
  1904. display: flex;
  1905. flex-direction: row;
  1906. flex-wrap: nowrap;
  1907. justify-content: space-around;
  1908. align-items: center;
  1909. padding-top: 15px;
  1910. }
  1911. .sysPicBox {
  1912. display: flex;
  1913. flex-direction: row;
  1914. flex-wrap: wrap;
  1915. align-content: flex-start;
  1916. height: 435px;
  1917. overflow: auto;
  1918. }
  1919. .sysPic {
  1920. width: 200px;
  1921. height: 115px;
  1922. margin: 0 10px 20px 0;
  1923. cursor: pointer;
  1924. }
  1925. .sysPic > img,
  1926. .isSysPic > img,
  1927. .deletePic > img {
  1928. width: 100%;
  1929. height: 100%;
  1930. object-fit: cover;
  1931. }
  1932. .isSysPic {
  1933. width: 200px;
  1934. height: 115px;
  1935. position: relative;
  1936. }
  1937. .deletePic {
  1938. width: 20px;
  1939. height: 20px;
  1940. position: absolute;
  1941. top: 0;
  1942. right: 0;
  1943. cursor: pointer;
  1944. }
  1945. .cru_selectBox {
  1946. display: flex;
  1947. margin: 24px 0 10px;
  1948. flex-wrap: nowrap;
  1949. white-space: nowrap;
  1950. overflow: auto;
  1951. position: relative;
  1952. height: 47px;
  1953. }
  1954. .cru_selectBox::-webkit-scrollbar {
  1955. /*滚动条整体样式*/
  1956. width: 6px;
  1957. /*高宽分别对应横竖滚动条的尺寸*/
  1958. height: 6px;
  1959. }
  1960. /*定义滚动条轨道 内阴影+圆角*/
  1961. .cru_selectBox::-webkit-scrollbar-track {
  1962. border-radius: 10px;
  1963. background-color: #eee;
  1964. }
  1965. /*定义滑块 内阴影+圆角*/
  1966. .cru_selectBox::-webkit-scrollbar-thumb {
  1967. border-radius: 10px;
  1968. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  1969. background-color: rgba(0, 0, 0, 0.1);
  1970. }
  1971. .cru_select {
  1972. font-size: 21px;
  1973. margin-right: 37px;
  1974. margin-left: 5px;
  1975. cursor: pointer;
  1976. color: #a6a6a6;
  1977. }
  1978. .cru_selected {
  1979. color: #0b7fc2 !important;
  1980. }
  1981. .info_btn {
  1982. color: #fff;
  1983. background-color: #0f7eff;
  1984. padding: 8px 24px;
  1985. font-size: 0.9375rem;
  1986. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  1987. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  1988. min-width: 64px;
  1989. font-weight: 500;
  1990. border-radius: 4px;
  1991. box-sizing: border-box;
  1992. border: none;
  1993. cursor: pointer;
  1994. }
  1995. .raTable {
  1996. width: 97%;
  1997. margin: 0 auto;
  1998. height: auto;
  1999. }
  2000. .raTable >>> .el-table,
  2001. .raTable >>> .el-table__body-wrapper {
  2002. height: auto !important;
  2003. font-size: 16px !important;
  2004. }
  2005. .add_chapters_box {
  2006. text-align: left;
  2007. background-color: rgb(232 234 237);
  2008. width: 100%;
  2009. padding: 0px 15px;
  2010. border-radius: 15px;
  2011. font-size: 16px;
  2012. box-sizing: border-box;
  2013. position: relative;
  2014. padding: 0 10px 5px 10px;
  2015. height: 125px;
  2016. overflow-y: auto;
  2017. overflow-x: hidden;
  2018. }
  2019. .chapter_upload {
  2020. height: 50px;
  2021. margin-top: 8px;
  2022. position: relative;
  2023. display: flex;
  2024. align-items: center;
  2025. width: 100%;
  2026. min-height: 50px;
  2027. transition: all linear 0.3s;
  2028. }
  2029. .chapter_upload_t {
  2030. background-color: #fff;
  2031. position: absolute;
  2032. height: 100%;
  2033. top: 0px;
  2034. left: 0px;
  2035. border-radius: 40px;
  2036. box-sizing: border-box;
  2037. box-shadow: 0 0 3px 3px #dfdfdf;
  2038. width: 100%;
  2039. }
  2040. .chapter_upload_o {
  2041. width: 100%;
  2042. height: 100%;
  2043. position: relative;
  2044. z-index: 1;
  2045. display: flex;
  2046. align-items: center;
  2047. }
  2048. .chapter_upload_ic {
  2049. height: 30px;
  2050. float: right;
  2051. cursor: pointer;
  2052. position: absolute;
  2053. width: 45px;
  2054. right: 0;
  2055. top: 0;
  2056. }
  2057. .chapter_upload_ic_l {
  2058. width: 50px;
  2059. height: 50px;
  2060. float: left;
  2061. }
  2062. .chapter_upload_ic_l div {
  2063. width: 30px;
  2064. height: 35px;
  2065. background: url("../../../../assets/icon/icon.png");
  2066. }
  2067. .chapter_upload_ic_r {
  2068. width: 50px;
  2069. height: 50px;
  2070. float: left;
  2071. margin-left: 0px;
  2072. display: flex;
  2073. align-items: center;
  2074. position: absolute;
  2075. }
  2076. .chapter_upload_ic_r div {
  2077. width: 25px;
  2078. height: 25px;
  2079. background-image: url("../../../../assets/delete.png");
  2080. background-size: 100% 100%;
  2081. }
  2082. .chapter_upload_n {
  2083. display: flex;
  2084. text-indent: 10px;
  2085. text-decoration: none;
  2086. text-overflow: ellipsis;
  2087. white-space: nowrap;
  2088. overflow: hidden;
  2089. width: 55%;
  2090. margin-left: 10px;
  2091. cursor: pointer;
  2092. margin-top: 2px;
  2093. }
  2094. .chapter_upload_l_i1 {
  2095. background-image: url("../../../../assets/icon/video.png");
  2096. width: 28px;
  2097. height: 28px;
  2098. background-size: 100% 100%;
  2099. }
  2100. .chapter_upload_l_i5 {
  2101. background-image: url("../../../../assets/icon/word.png");
  2102. width: 24px;
  2103. height: 24px;
  2104. background-size: 100% 100%;
  2105. margin-left: 1px;
  2106. }
  2107. .chapter_upload_l_i8 {
  2108. background-image: url("../../../../assets/icon/line.png");
  2109. width: 24px;
  2110. height: 24px;
  2111. background-size: 100% 100%;
  2112. margin-left: 1px;
  2113. }
  2114. .chapter_upload_ud {
  2115. display: flex;
  2116. flex-direction: column;
  2117. margin-left: 5px;
  2118. justify-content: center;
  2119. z-index: 99;
  2120. }
  2121. .chapter_upload_up {
  2122. background-image: url("../../../../assets/icon/up.png");
  2123. width: 17px;
  2124. height: 15px;
  2125. background-size: 100% 100%;
  2126. cursor: pointer;
  2127. }
  2128. .chapter_upload_down {
  2129. background-image: url("../../../../assets/icon/down.png");
  2130. width: 17px;
  2131. height: 15px;
  2132. margin: 2px auto 0 auto;
  2133. background-size: 100% 100%;
  2134. cursor: pointer;
  2135. }
  2136. .chapter_upload_l {
  2137. padding: 1px 0 0 10px;
  2138. }
  2139. .first {
  2140. border: none;
  2141. outline: none;
  2142. width: 80%;
  2143. min-width: 215px;
  2144. z-index: 99;
  2145. font-size: 14px;
  2146. white-space: nowrap;
  2147. overflow: hidden;
  2148. text-overflow: ellipsis;
  2149. }
  2150. .add_info_box {
  2151. margin: 20px 0;
  2152. }
  2153. .add_info_box button {
  2154. margin: 0 10px 10px 0;
  2155. }
  2156. .mask {
  2157. background-color: rgb(0 0 0 / 30%);
  2158. /* position: fixed; */
  2159. position: absolute;
  2160. top: 0;
  2161. left: 0;
  2162. width: 100%;
  2163. height: 100%;
  2164. z-index: 20000;
  2165. display: flex;
  2166. align-items: center;
  2167. justify-content: center;
  2168. }
  2169. .progressBox {
  2170. width: 300px;
  2171. height: 150px;
  2172. background: #fff;
  2173. border-radius: 10px;
  2174. box-shadow: 0 0 6px 1px #bfbfbf;
  2175. display: flex;
  2176. align-items: center;
  2177. justify-content: center;
  2178. flex-direction: column;
  2179. position: relative;
  2180. }
  2181. .progressBox >>> .el-progress-bar__outer {
  2182. background-color: #d1dfff !important;
  2183. }
  2184. .progressBox .lbox {
  2185. height: 50px;
  2186. font-size: 19px;
  2187. display: flex;
  2188. align-items: center;
  2189. color: #747474;
  2190. }
  2191. .progressBox .lbox img {
  2192. width: 40px;
  2193. margin-right: 20px;
  2194. }
  2195. .closeCss {
  2196. position: absolute;
  2197. top: 8px;
  2198. right: 8px;
  2199. cursor: pointer;
  2200. width: 20px;
  2201. height: 20px;
  2202. }
  2203. .closeCss > img {
  2204. width: 100%;
  2205. height: 100%;
  2206. }
  2207. .upTips {
  2208. display: flex;
  2209. flex-direction: row;
  2210. flex-wrap: nowrap;
  2211. align-items: baseline;
  2212. }
  2213. .upTips > div {
  2214. margin-left: 10px;
  2215. color: #999;
  2216. font-size: 14px;
  2217. }
  2218. .tableColor >>> .tr-blue {
  2219. color: #628ff3 !important;
  2220. }
  2221. .lxr {
  2222. color: #fff;
  2223. background: center center #4a54ff;
  2224. background-image: linear-gradient(315deg, #6772ff 0, #00f9e5 100%);
  2225. background-size: 104% 104%;
  2226. min-width: 50px;
  2227. margin-left: 3px;
  2228. border-radius: 3px;
  2229. }
  2230. .isFinishCss {
  2231. display: flex;
  2232. flex-direction: row;
  2233. flex-wrap: nowrap;
  2234. align-items: flex-end;
  2235. }
  2236. .isFinishCss > div:nth-child(2) {
  2237. margin-left: 5px;
  2238. color: #939393;
  2239. }
  2240. .isFinish {
  2241. width: 16px;
  2242. height: 16px;
  2243. margin-top: 5px;
  2244. }
  2245. .isFinish > img {
  2246. width: 100%;
  2247. height: 100%;
  2248. }
  2249. .fontWidth {
  2250. text-align: center;
  2251. white-space: nowrap;
  2252. overflow: hidden;
  2253. text-overflow: ellipsis;
  2254. }
  2255. .radiusCss >>> .el-checkbox__inner {
  2256. border-radius: 50% !important;
  2257. }
  2258. .radiusCss {
  2259. /* margin-left: 10px !important; */
  2260. }
  2261. .isOtherCss >>> .el-checkbox__label {
  2262. width: auto !important;
  2263. min-width: auto !important;
  2264. margin-right: 10px;
  2265. position: relative;
  2266. }
  2267. .isOtherInput {
  2268. position: absolute;
  2269. top: 30px;
  2270. left: -15px;
  2271. display: flex;
  2272. flex-direction: row;
  2273. align-items: center;
  2274. }
  2275. .isOtherInput >>> .el-input__inner {
  2276. width: 150px;
  2277. }
  2278. .otherIcon {
  2279. width: 30px;
  2280. cursor: context-menu;
  2281. }
  2282. .otherIcon > img {
  2283. width: 100%;
  2284. height: 100%;
  2285. }
  2286. </style>