raceDetail.vue 63 KB

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