index.vue 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" :style="{marginTop : gotype ? '75px' : 0}">
  4. <div v-if="gotype" class="r_pub_button_retrun" @click.stop="backliyuan">
  5. <img src="../assets/icon/course/backPage.svg" alt="">
  6. AI通识课
  7. </div>
  8. <div class="student_head" v-else>
  9. <el-carousel trigger="click" style="width: 100%; height: 100%">
  10. <el-carousel-item v-for="item in bannerList" :key="item.id">
  11. <img class="imgS" :src="item.poster" alt="" />
  12. </el-carousel-item>
  13. </el-carousel>
  14. </div>
  15. <div class="reBox">
  16. <div class="reTop">
  17. <div>{{ lang.ssCourse }}</div>
  18. <div>
  19. <div class="search" @click="search">
  20. <img src="../assets/icon/search.png" alt="" />
  21. </div>
  22. <input class="sInput" type="text" :placeholder="lang.ssEnterKeyword" v-model="sCourse" @keyup.enter="search"/>
  23. </div>
  24. </div>
  25. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  26. <span>{{ lang.ssType }}</span>
  27. <el-radio-group v-model="pTypeCheckName" style="display: flex; align-items: center">
  28. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType3" :key="index">
  29. <el-radio :label="item.name" @click.native.prevent="CourseType2Click(item.name)">{{
  30. item.name
  31. }}</el-radio>
  32. </div>
  33. </el-radio-group>
  34. </div>
  35. <div class="choose" v-if="oid != '91796dfb-8791-11ef-9b30-005056b86db5'">
  36. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index"
  37. :style="{ margin: !CourseTypeJson[item.id].length && 0 }">
  38. <span v-if="CourseTypeJson[item.id].length &&
  39. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  40. ? pTypeCheck.indexOf(item.id) != -1
  41. : true)">{{ item.name }}:</span>
  42. <div class="typeCss" v-if="CourseTypeJson[item.id].length &&
  43. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  44. ? pTypeCheck.indexOf(item.id) != -1
  45. : true)">
  46. <div class="cName" @click="getCourse(item.name, '', item.id, 1)"
  47. :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''">
  48. {{ lang.ssAll }}
  49. </div>
  50. <div v-for="(item1, index1) in CourseTypeJson[item.id]" :key="index + '-' + index1" :label="item1.id"
  51. @click="getCourse(item.name, item.id, item1.id, 2)">
  52. <div class="cName" :class="
  53. typea == item1.id || typeb == item1.id || typed == item1.id
  54. ? 'isCType'
  55. : ''
  56. ">
  57. {{ item1.name }}
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="body_student" v-loading="loading">
  65. <div class="typeCheck">
  66. <div><el-switch v-model="orderBy"></el-switch><span>{{ lang.ssSortByName }}</span></div>
  67. <div><el-switch v-model="typeCheck"></el-switch><span>{{ lang.ssCategoryDisplay }}</span></div>
  68. <div v-if="oidArray.indexOf(oid) !== -1"><el-switch v-model="typeCheck2"></el-switch><span>{{ lang.ssDisplayByGrade }}</span></div>
  69. </div>
  70. <div>
  71. <div class="main_box">
  72. <div :class="zoneClass.length > 5 ? 'claList' : 'claListFlex'" v-if="!typeCheck && !typeCheck2">
  73. <div :class="zoneClass.length > 5 ? 'box_course' : 'box_courseFlex'" v-for="(item, index) in zoneClass" :key="index" @click="goTo(
  74. '/courseDetail?courseId=' +
  75. item.courseId +
  76. '&userid=' +
  77. userid +
  78. '&oid=' +
  79. oid +
  80. '&org=' +
  81. org +
  82. '&cid=' +
  83. classId +
  84. '&tType=' +
  85. tType +
  86. '&screenType=' +
  87. screenType,item.courseId
  88. )">
  89. <div class="wheel">
  90. <img :src="
  91. item.cover
  92. ? JSON.parse(item.cover)[0].url
  93. : require('../assets/wheel.png')
  94. " alt="" />
  95. </div>
  96. <div class="middle_white">
  97. <div class="textOverflow">
  98. <el-tooltip effect="light" :content="item.title" placement="top">
  99. <span class="utitle">{{ item.title }}</span>
  100. </el-tooltip>
  101. <el-tooltip effect="light" :content="item.uname" placement="top" v-if="oidArray.indexOf(oid) == -1">
  102. <span class="uname">{{ item.uname }}</span>
  103. </el-tooltip>
  104. </div>
  105. <div class="nameAndLength">
  106. <el-tooltip class="typeN" effect="light" :content="item.typename" placement="top">
  107. <div>{{ item.typename }}</div>
  108. </el-tooltip>
  109. <template v-if="item.state != 7">
  110. <div>{{ lang.ssStage.replace(/\*/g, JSON.parse(item.chapters).length) }}</div>
  111. </template>
  112. </div>
  113. <div class="school_box">
  114. <el-tooltip effect="light" :content="item.school" placement="top">
  115. <div class="school">
  116. {{ item.school }}
  117. </div>
  118. </el-tooltip>
  119. <div style="color: #b4b4b4">{{ item.utime }}</div>
  120. </div>
  121. </div>
  122. <div class="now_study" @click="
  123. goTo(
  124. '/courseDetail?courseId=' +
  125. item.courseId +
  126. '&userid=' +
  127. userid +
  128. '&oid=' +
  129. oid +
  130. '&org=' +
  131. org +
  132. '&cid=' +
  133. classId +
  134. '&tType=' +
  135. tType +
  136. '&screenType=' +
  137. screenType,item.courseId
  138. )
  139. ">
  140. {{ lang.ssStartLearning }}
  141. </div>
  142. </div>
  143. </div>
  144. <div v-else>
  145. <div class="FirstTypeBox" v-for="(type, tindex) in CourseType2" :key="tindex">
  146. <div class="title">{{ type.name }}</div>
  147. <div class="typeCheckFlex" style="margin-top: 20px;">
  148. <div class="box_courseFlex" v-for="(item, index) in type.course" :key="tindex + '-' + index" @click="goTo(
  149. '/courseDetail?courseId=' +
  150. item.courseId +
  151. '&userid=' +
  152. userid +
  153. '&oid=' +
  154. oid +
  155. '&org=' +
  156. org +
  157. '&cid=' +
  158. classId +
  159. '&tType=' +
  160. tType +
  161. '&screenType=' +
  162. screenType,item.courseId
  163. )">
  164. <div class="wheel">
  165. <img :src="
  166. item.cover
  167. ? JSON.parse(item.cover)[0].url
  168. : require('../assets/wheel.png')
  169. " alt="" />
  170. </div>
  171. <div class="middle_white">
  172. <div class="textOverflow">
  173. <el-tooltip effect="light" :content="item.title" placement="top">
  174. <span class="utitle">{{ item.title }}</span>
  175. </el-tooltip>
  176. <el-tooltip effect="light" :content="item.uname" placement="top" v-if="oidArray.indexOf(oid) == -1">
  177. <span class="uname">{{ item.uname }}</span>
  178. </el-tooltip>
  179. </div>
  180. <div class="nameAndLength">
  181. <el-tooltip class="typeN" effect="light" :content="item.typename" placement="top">
  182. <div>{{ item.typename }}</div>
  183. </el-tooltip>
  184. <template v-if="item.state != 7">
  185. <div>{{ lang.ssStage.replace(/\*/g, JSON.parse(item.chapters).length) }}</div>
  186. </template>
  187. </div>
  188. <div class="school_box">
  189. <el-tooltip effect="light" :content="item.school" placement="top">
  190. <div class="school">
  191. {{ item.school }}
  192. </div>
  193. </el-tooltip>
  194. <div style="color: #b4b4b4">{{ item.utime }}</div>
  195. </div>
  196. </div>
  197. <div class="now_study" @click="
  198. goTo(
  199. '/courseDetail?courseId=' +
  200. item.courseId +
  201. '&userid=' +
  202. userid +
  203. '&oid=' +
  204. oid +
  205. '&org=' +
  206. org +
  207. '&cid=' +
  208. classId +
  209. '&tType=' +
  210. tType +
  211. '&screenType=' +
  212. screenType,item.courseId
  213. )
  214. ">
  215. {{ lang.ssStartLearning }}
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. <div class="course_empty" v-if="zoneClass.length == 0">
  222. {{ lang.ssNoCourse }}
  223. </div>
  224. </div>
  225. </div>
  226. <div class="student_page" style="margin: 15px 0 0" v-if="zoneClass.length > 0 && !typeCheck && !typeCheck2">
  227. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total" v-if="page"
  228. @current-change="handleCurrentChange">
  229. </el-pagination>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </template>
  235. <script>
  236. import { myMixin } from "@/mixins/mixin.js"
  237. export default {
  238. mixins: [ myMixin ],
  239. data() {
  240. return {
  241. gotype: sessionStorage.getItem('gotype'),
  242. zoneList: [],
  243. zoneClass: [],
  244. page: 1,
  245. total: 0,
  246. pageSize: 20, //每页显示记录数(10)。必须设置为正确的值,以便生成href
  247. isListAjax: false,
  248. zoneListId: "",
  249. bannerList: [],
  250. userid: this.$route.query.userid,
  251. oid: this.$route.query.oid,
  252. classId: this.$route.query.cid,
  253. tType: this.$route.query.tType,
  254. org: this.$route.query.org,
  255. screenType: this.$route.query.screenType,
  256. role: this.$route.query.role,
  257. CourseType: [],
  258. CourseType2: [],
  259. CourseTypeJson: {},
  260. courseTypeId: {},
  261. sCourse: "",
  262. isCType: "",
  263. typea: "",
  264. typeb: "",
  265. typed: "",
  266. typeE: [],
  267. loading: "",
  268. typeCheck: false,
  269. typeCheck2: false,
  270. isUpdatingChecks: false,
  271. orderBy: false,
  272. CourseType3: [],
  273. pTypeCheck:[],
  274. pTypeCheckName: [],
  275. oidArray: ['91305d49-01ba-11ed-8c78-005056b86db4']
  276. };
  277. },
  278. watch: {
  279. typeCheck(newValue, oldValue) {
  280. if (this.isUpdatingChecks) return;
  281. this.isUpdatingChecks = true;
  282. this.typeCheck2 = false;
  283. if (newValue) {
  284. this.loading = true;
  285. this.selectAll();
  286. } else if (!this.typeCheck2) {
  287. this.loading = true;
  288. this.page = 1;
  289. this.selectAll2();
  290. }
  291. this.$nextTick(() => {
  292. this.isUpdatingChecks = false;
  293. });
  294. },
  295. typeCheck2(newValue, oldValue) {
  296. if (this.isUpdatingChecks) return;
  297. this.isUpdatingChecks = true;
  298. this.typeCheck = false;
  299. if (newValue) {
  300. this.loading = true;
  301. this.selectAll();
  302. } else if (!this.typeCheck) {
  303. this.page = 1;
  304. this.loading = true;
  305. this.selectAll2();
  306. } else {
  307. this.loading = false;
  308. }
  309. this.$nextTick(() => {
  310. this.isUpdatingChecks = false;
  311. });
  312. },
  313. orderBy(newValue, oldValue) {
  314. this.loading = true
  315. if (this.typeCheck || this.typeCheck2) {
  316. this.selectAll()
  317. } else {
  318. this.page = 1
  319. this.selectAll2()
  320. }
  321. },
  322. },
  323. methods: {
  324. backliyuan(){
  325. let betaL = window.location.href.includes("beta") ? "beta" : "cloud"
  326. if (betaL == 'beta') {
  327. window.location.href = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/CourseCon?userid=${this.userid}&oid=${this.oid}&org=${this.org}&role=${this.role}&tType=${this.tType}`
  328. }else{
  329. window.location.href = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CourseCon?userid=${this.userid}&oid=${this.oid}&org=${this.org}&role=${this.role}&tType=${this.tType}`
  330. }
  331. try {
  332. window.topU.gotype = ''
  333. } catch (error) {
  334. console.log(error);
  335. }
  336. sessionStorage.removeItem('gotype');
  337. },
  338. search(){
  339. if(this.typeCheck || this.typeCheck2){
  340. this.selectAll()
  341. }else{
  342. this.page = 1
  343. this.selectAll2()
  344. }
  345. this.$forceUpdate();
  346. },
  347. goTo(path,id) {
  348. this.$router.push(path);
  349. this.addOp3('1', "", { courseid: id,type: "course_open" }, "success")
  350. },
  351. //获取专区下的课程
  352. getZoneClass(zid) {
  353. this.isListAjax = true;
  354. // const loading = this.openLoading(document.querySelector(".main_box"));
  355. let params = {
  356. bid: zid,
  357. oid: this.oid,
  358. page: this.page,
  359. };
  360. this.ajax
  361. .get(this.$store.state.api + "getZoneClassStudent", params)
  362. .then((res) => {
  363. // loading.close();
  364. this.isListAjax = false;
  365. this.zoneClass = res.data[0];
  366. this.total = res.data[0].length ? res.data[0][0].num : 0;
  367. })
  368. .catch((err) => {
  369. console.error(err);
  370. });
  371. },
  372. getCourse(typeName, ftypeId, typeid, type) {
  373. this.page = 1;
  374. this.zoneClass = [];
  375. if (typeid == "34628934-d02f-11ec-8c78-005056b86db5" || ftypeId == '34628934-d02f-11ec-8c78-005056b86db5' || typeid == "34628934-d02f-11ec-8c78-005056b86ac5" || ftypeId == "34628934-d02f-11ec-8c78-005056b86ac5") {
  376. if (type == 1) {
  377. if (this.typeE.indexOf(typeid) != -1) {
  378. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  379. return
  380. }else{
  381. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  382. }
  383. } else {
  384. this.typeE.push(typeid);
  385. if (this.typea != "") {
  386. this.typea = "";
  387. }
  388. }
  389. } else {
  390. if (this.typea == typeid) {
  391. this.typea = "";
  392. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  393. this.typeE.push(ftypeId);
  394. }
  395. } else {
  396. this.typea = typeid;
  397. if (this.typeE.indexOf(ftypeId) != -1) {
  398. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  399. }
  400. }
  401. }
  402. } else if (typeName == this.lang.ssColumn) {
  403. if (type == 1) {
  404. if (this.typeE.indexOf(typeid) != -1) {
  405. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  406. return
  407. }else{
  408. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  409. }
  410. } else {
  411. this.typeE.push(typeid);
  412. if (this.typeb != "") {
  413. this.typeb = "";
  414. }
  415. }
  416. } else {
  417. if (this.typeb == typeid) {
  418. this.typeb = "";
  419. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  420. this.typeE.push(ftypeId);
  421. }
  422. } else {
  423. this.typeb = typeid;
  424. if (this.typeE.indexOf(ftypeId) != -1) {
  425. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  426. }
  427. }
  428. }
  429. } else if (typeName == this.lang.ssCategory) {
  430. if (type == 1) {
  431. if (this.typeE.indexOf(typeid) != -1) {
  432. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  433. return
  434. }else{
  435. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  436. }
  437. } else {
  438. this.typeE.push(typeid);
  439. if (this.typeb != "") {
  440. this.typeb = "";
  441. }
  442. }
  443. } else {
  444. if (this.typeb == typeid) {
  445. this.typeb = "";
  446. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  447. this.typeE.push(ftypeId);
  448. }
  449. } else {
  450. this.typeb = typeid;
  451. if (this.typeE.indexOf(ftypeId) != -1) {
  452. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  453. }
  454. }
  455. }
  456. } else if (typeName == this.lang.ssTopic) {
  457. if (type == 1) {
  458. if (this.typeE.indexOf(typeid) != -1) {
  459. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  460. return
  461. }else{
  462. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  463. }
  464. } else {
  465. this.typeE.push(typeid);
  466. if (this.typeb != "") {
  467. this.typeb = "";
  468. }
  469. }
  470. } else {
  471. if (this.typeb == typeid) {
  472. this.typeb = "";
  473. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  474. this.typeE.push(ftypeId);
  475. }
  476. } else {
  477. this.typeb = typeid;
  478. if (this.typeE.indexOf(ftypeId) != -1) {
  479. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  480. }
  481. }
  482. }
  483. } else if (typeName == this.lang.ssCollege) {
  484. if (type == 1) {
  485. if (this.typeE.indexOf(typeid) != -1) {
  486. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  487. return
  488. }else{
  489. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  490. }
  491. } else {
  492. this.typeE.push(typeid);
  493. if (this.typeb != "") {
  494. this.typeb = "";
  495. }
  496. }
  497. } else {
  498. if (this.typeb == typeid) {
  499. this.typeb = "";
  500. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  501. this.typeE.push(ftypeId);
  502. }
  503. } else {
  504. this.typeb = typeid;
  505. if (this.typeE.indexOf(ftypeId) != -1) {
  506. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  507. }
  508. }
  509. }
  510. } else if (typeid == "34629907-d02f-11ec-8c78-005056b86db5" || ftypeId == '34629907-d02f-11ec-8c78-005056b86db5' || typeid == "34629907-d02f-11ec-8c78-005056b86ac5" || ftypeId == "34629907-d02f-11ec-8c78-005056b86ac5") {
  511. if (type == 1) {
  512. if (this.typeE.indexOf(typeid) != -1) {
  513. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  514. return
  515. }else{
  516. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  517. }
  518. } else {
  519. this.typeE.push(typeid);
  520. if (this.typed != "") {
  521. this.typed = "";
  522. }
  523. }
  524. } else {
  525. if (this.typed == typeid) {
  526. this.typed = "";
  527. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  528. this.typeE.push(ftypeId);
  529. }
  530. } else {
  531. this.typed = typeid;
  532. if (this.typeE.indexOf(ftypeId) != -1) {
  533. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  534. }
  535. }
  536. }
  537. }
  538. this.loading = true;
  539. if (this.typeCheck || this.typeCheck2) {
  540. this.selectAll();
  541. }else {
  542. this.selectAll2();
  543. }
  544. },
  545. CourseType2Click(val){
  546. this.pTypeCheck = [];
  547. this.typeE = []
  548. if(val === this.pTypeCheckName){
  549. this.pTypeCheckName = ''
  550. }else{
  551. this.pTypeCheckName = val
  552. for (var i = 0; i < this.CourseType3.length; i++) {
  553. let typeA = this.CourseType3[i];
  554. if (val.indexOf(typeA.name) != -1) {
  555. this.pTypeCheck.push(...typeA.id);
  556. this.typeE = [...typeA.id]
  557. }
  558. }
  559. }
  560. this.typea = ""
  561. this.typeb = ""
  562. this.typed = ""
  563. this.loading = true;
  564. if (this.typeCheck || this.typeCheck2) {
  565. this.selectAll();
  566. }else {
  567. this.selectAll2();
  568. }
  569. },
  570. arrayToArray(arrayo, arrayt) {
  571. let array1 = arrayo;
  572. let array2 = arrayt;
  573. let commonElements = [];
  574. for (let i = 0; i < array1.length; i++) {
  575. for (let j = 0; j < array2.length; j++) {
  576. if (array1[i] === array2[j]) {
  577. commonElements.push(array1[i]);
  578. }
  579. }
  580. }
  581. return commonElements;
  582. },
  583. selectAll() {
  584. this.zoneListId = 0;
  585. this.isListAjax = true;
  586. let params = {
  587. uid: this.userid,
  588. oid: this.oid,
  589. typea: this.typea != undefined ? this.typea : "",
  590. typeb: this.typeb != undefined ? this.typeb : "",
  591. typec: "",
  592. typed: this.typed != undefined ? this.typed : "",
  593. typeE: this.typeE.join(","),
  594. // typeE: "",
  595. cu: "",
  596. cn: this.sCourse,
  597. classid: this.classId,
  598. org: this.org,
  599. page: this.page,
  600. orderBy: this.orderBy ? '2' : '1'
  601. };
  602. this.ajax
  603. .get(this.$store.state.api + "selectTypeCourse2Mode2", params)
  604. .then((res) => {
  605. this.loading = false;
  606. this.isListAjax = false;
  607. this.zoneClass = res.data[0];
  608. // this.total = res.data[0].length ? res.data[0][0].num : 0;
  609. let CourseType2 = []
  610. if(this.typeCheck){
  611. CourseType2 = JSON.parse(JSON.stringify(this.CourseType[0]))
  612. }else if(this.typeCheck2){
  613. CourseType2 = JSON.parse(JSON.stringify(this.CourseType[2].filter(item => {
  614. return item.pid == "34628934-d02f-11ec-8c78-005056b86db5"
  615. })))
  616. }else{
  617. CourseType2 = JSON.parse(JSON.stringify(this.CourseType[0]))
  618. }
  619. if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
  620. if(this.pTypeCheckName.length){
  621. CourseType2 = this.CourseType3.filter(el => {
  622. return el.name == this.pTypeCheckName
  623. })
  624. }else{
  625. CourseType2 = JSON.parse(JSON.stringify(this.CourseType3))
  626. }
  627. }
  628. for (var i = 0; i < CourseType2.length; i++) {
  629. CourseType2[i].course = []
  630. for (var j = 0; j < res.data[0].length; j++) {
  631. // if (res.data[0][j].pid && res.data[0][j].pid.indexOf(CourseType2[i].id) != -1) {
  632. // CourseType2[i].course.push(res.data[0][j])
  633. // }
  634. let pid = CourseType2[i].id
  635. if(typeof pid != "object") pid = pid.split(",")
  636. if(this.typeCheck2){
  637. if(res.data[0][j].typeid && this.arrayToArray(pid,res.data[0][j].typeid.split(",")).length){
  638. CourseType2[i].course.push(res.data[0][j])
  639. }
  640. }else {
  641. if(res.data[0][j].pid && this.arrayToArray(pid,res.data[0][j].pid.split(",")).length){
  642. CourseType2[i].course.push(res.data[0][j])
  643. }
  644. }
  645. }
  646. }
  647. let noTypeCourse = []
  648. for (var j = 0; j < res.data[0].length; j++) {
  649. if (!res.data[0][j].pid) {
  650. noTypeCourse.push(res.data[0][j])
  651. }
  652. }
  653. if (noTypeCourse.length > 0 && !this.pTypeCheckName.length) {
  654. CourseType2.push({
  655. course: noTypeCourse,
  656. name: this.lang.ssOther
  657. })
  658. }
  659. CourseType2 = CourseType2.filter(item => {
  660. return item.course.length > 0;
  661. })
  662. this.CourseType2 = CourseType2
  663. // this.selectType({
  664. // data: [res.data[1], res.data[2], res.data[3], res.data[4]],
  665. // });
  666. this.getBanner({
  667. data: [res.data[6], res.data[5], res.data[7]],
  668. });
  669. })
  670. .catch((err) => {
  671. console.error(err);
  672. });
  673. },
  674. selectAll2() {
  675. this.zoneListId = 0;
  676. this.isListAjax = true;
  677. let params = {
  678. uid: this.userid,
  679. oid: this.oid,
  680. typea: this.typea != undefined ? this.typea : "",
  681. typeb: this.typeb != undefined ? this.typeb : "",
  682. typec: "",
  683. typed: this.typed != undefined ? this.typed : "",
  684. typeE: this.typeE.join(","),
  685. // typeE: "",
  686. cu: "",
  687. cn: this.sCourse,
  688. classid: this.classId,
  689. org: this.org,
  690. page: this.page,
  691. pageSize:this.pageSize,
  692. orderBy: this.orderBy ? '2' : '1'
  693. };
  694. this.ajax
  695. .get(this.$store.state.api + "selectTypeCourse22", params)
  696. .then((res) => {
  697. this.loading = false;
  698. this.isListAjax = false;
  699. this.zoneClass = res.data[0];
  700. this.total = res.data[0].length ? res.data[0][0].num : 0;
  701. let CourseType2 = []
  702. // this.selectType({
  703. // data: [res.data[1], res.data[2], res.data[3], res.data[4]],
  704. // });
  705. this.getBanner({
  706. data: [res.data[6], res.data[5], res.data[7]],
  707. });
  708. })
  709. .catch((err) => {
  710. console.error(err);
  711. });
  712. },
  713. checkZone(id) {
  714. this.page = 1;
  715. this.zoneListId = id;
  716. this.getZoneClass(id);
  717. },
  718. // handleCurrentChange(val) {
  719. // this.page = val;
  720. // this.getZoneClass(this.zoneListId);
  721. // },
  722. handleCurrentChange(val) {
  723. this.loading = true;
  724. this.page = val;
  725. this.selectAll2();
  726. },
  727. //获取banner
  728. getBanner(res) {
  729. // var a = false;
  730. // if (this.org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  731. // a = true;
  732. // }
  733. // let params = {
  734. // oid: this.org,
  735. // };
  736. // this.ajax
  737. // .get(this.$store.state.api + "selectBannerByOid", params)
  738. // .then((res) => {
  739. if (res.data[0].length > 0) {
  740. this.bannerList = res.data[0];
  741. } else {
  742. this.getBannerByOid({
  743. data: [res.data[1], res.data[2]],
  744. });
  745. }
  746. // })
  747. // .catch((err) => {
  748. // console.error(err);
  749. // });
  750. },
  751. getBannerByOid(res) {
  752. // let params = {
  753. // oid: this.oid,
  754. // };
  755. // this.ajax
  756. // .get(this.$store.state.api + "selectBannerByOid", params)
  757. // .then((res) => {
  758. if (res.data[0].length > 0) {
  759. this.bannerList = res.data[0];
  760. } else {
  761. this.getOldBanner({
  762. data: [res.data[1]],
  763. });
  764. }
  765. // })
  766. // .catch((err) => {
  767. // console.error(err);
  768. // });
  769. },
  770. getOldBanner(res) {
  771. // this.ajax
  772. // .get(this.$store.state.api + "getBanner", "")
  773. // .then((res) => {
  774. this.bannerList = res.data[0];
  775. // })
  776. // .catch((err) => {
  777. // console.error(err);
  778. // });
  779. },
  780. selectAllType() {
  781. let params = {
  782. org: this.org && this.org != "" ? this.org : "",
  783. oid: this.oid && this.oid != "" ? this.oid : "",
  784. stand: "cn"
  785. };
  786. this.ajax
  787. .get(this.$store.state.api + "selectAllTypeStand", params)
  788. .then((res) => {
  789. if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
  790. res.data[0] = [...res.data[0],...res.data[4]]
  791. }
  792. this.CourseTypeJson = {};
  793. this.CourseType = res.data;
  794. this.CourseType3 = [
  795. { name: this.lang.ssWisdomSeeCourse, id: [] },
  796. { name: this.lang.ssWisdomDoCourse, id: [] },
  797. { name: this.lang.ssWisdomCreateCourse, id: [] },
  798. ];
  799. for (var cti = 0; cti < res.data[0].length; cti++) {
  800. if (
  801. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  802. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  803. ) {
  804. this.CourseType3[0].id.push(res.data[0][cti].id);
  805. }else if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  806. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  807. this.CourseType3[1].id.push(res.data[0][cti].id);
  808. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  809. this.CourseType3[2].id.push(res.data[0][cti].id);
  810. }
  811. if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"){
  812. res.data[0][cti].name = this.lang.ssGrade;
  813. }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  814. res.data[0][cti].name = this.lang.ssSubjectName;
  815. }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
  816. res.data[0][cti].name = this.lang.ssTopic;
  817. }
  818. }
  819. for (var i = 0; i < res.data[0].length; i++) {
  820. if (!this.cid) {
  821. this.courseTypeId[res.data[0][i].id] = "";
  822. }
  823. if (!this.CourseTypeJson[res.data[0][i].id]) {
  824. this.CourseTypeJson[res.data[0][i].id] = [];
  825. }
  826. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  827. if (res.data[0][i].name == this.lang.ssCategory) {
  828. this.CourseType[0][i].name = this.lang.ssTopic;
  829. }
  830. }
  831. if (res.data[2].length == 0 && res.data[3].length == 0) {
  832. for (var j = 0; j < res.data[1].length; j++) {
  833. if (res.data[0][i].id == res.data[1][j].pid) {
  834. if (!this.CourseTypeJson[res.data[0][i].id]) {
  835. this.CourseTypeJson[res.data[0][i].id] = [];
  836. }
  837. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  838. }
  839. }
  840. } else {
  841. if (res.data[2].length > 0) {
  842. for (var j = 0; j < res.data[2].length; j++) {
  843. if (res.data[0][i].id == res.data[2][j].pid) {
  844. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  845. }
  846. }
  847. }
  848. if (res.data[3].length > 0) {
  849. for (var j = 0; j < res.data[3].length; j++) {
  850. if (res.data[0][i].id == res.data[3][j].pid) {
  851. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  852. }
  853. }
  854. }
  855. }
  856. }
  857. if (this.CourseType[0] && this.CourseType[0].length && this.lang.lang == 'com') {
  858. this.CourseType[0] = this.CourseType[0].filter(item => item.id != '34629bcc-d02f-11ec-8c78-005056b86db5');
  859. }
  860. if (this.typeCheck || this.typeCheck2) {
  861. this.selectAll();
  862. } else {
  863. this.selectAll2();
  864. }
  865. this.$forceUpdate();
  866. })
  867. .catch((err) => {
  868. console.error(err);
  869. });
  870. },
  871. selectType(res) {
  872. // this.ajax
  873. // .get(this.$store.state.api + "selectType")
  874. // .then((res) => {
  875. this.CourseTypeJson = {};
  876. this.CourseType = res.data;
  877. for (var i = 0; i < res.data[0].length; i++) {
  878. if (!this.cid) {
  879. this.courseTypeId[res.data[0][i].id] = "";
  880. }
  881. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  882. if (res.data[0][i].name == this.lang.ssCategory) {
  883. this.CourseType[0][i].name = this.lang.ssTopic;
  884. }
  885. }
  886. for (var j = 0; j < res.data[1].length; j++) {
  887. if (res.data[0][i].id == res.data[1][j].pid) {
  888. if (!this.CourseTypeJson[res.data[0][i].id]) {
  889. this.CourseTypeJson[res.data[0][i].id] = [];
  890. }
  891. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  892. }
  893. }
  894. }
  895. this.selectTypeByOid({ data: [res.data[0], res.data[2]] });
  896. this.selectTypeByOrg({ data: [res.data[0], res.data[3]] });
  897. // })
  898. // .catch((err) => {
  899. // console.error(err);
  900. // });
  901. },
  902. selectTypeByOid(res) {
  903. // let params = {
  904. // oid: this.oid,
  905. // };
  906. // this.ajax
  907. // .get(this.$store.state.api + "selectTypeByOid", params)
  908. // .then((res) => {
  909. for (var i = 0; i < res.data[0].length; i++) {
  910. for (var j = 0; j < res.data[1].length; j++) {
  911. if (res.data[0][i].id == res.data[1][j].pid) {
  912. if (!this.CourseTypeJson[res.data[0][i].id]) {
  913. this.CourseTypeJson[res.data[0][i].id] = [];
  914. }
  915. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  916. }
  917. }
  918. }
  919. this.$forceUpdate();
  920. // })
  921. // .catch((err) => {
  922. // console.error(err);
  923. // });
  924. },
  925. selectTypeByOrg(res) {
  926. // let params = {
  927. // oid: this.org,
  928. // };
  929. // this.ajax
  930. // .get(this.$store.state.api + "selectTypeByOrg", params)
  931. // .then((res) => {
  932. for (var i = 0; i < res.data[0].length; i++) {
  933. for (var j = 0; j < res.data[1].length; j++) {
  934. if (res.data[0][i].id == res.data[1][j].pid) {
  935. if (!this.CourseTypeJson[res.data[0][i].id]) {
  936. this.CourseTypeJson[res.data[0][i].id] = [];
  937. }
  938. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  939. }
  940. }
  941. }
  942. this.$forceUpdate();
  943. // })
  944. // .catch((err) => {
  945. // console.error(err);
  946. // });
  947. },
  948. },
  949. beforeDestroy() {
  950. clearInterval(this.timer);
  951. this.timer = null;
  952. },
  953. created() {
  954. let typea = this.$route.query.typea
  955. let typeb = this.$route.query.typeb
  956. let typed = this.$route.query.typed
  957. if(this.oidArray.indexOf(this.oid) !== -1){
  958. this.typeCheck2 = true
  959. }
  960. if(typea || typeb || typed){
  961. this.typea = typea ? typea : ''
  962. this.typeb = typeb ? typeb : ''
  963. this.typed = typed ? typed : ''
  964. }
  965. this.loading = true;
  966. // this.selectType();
  967. this.selectAllType();
  968. // this.getBanner();
  969. this.timer = setInterval(() => {
  970. this.selectAllType();
  971. // this.getBanner();
  972. }, 60000);
  973. document.scrollingElement.scrollTop = 0;
  974. },
  975. };
  976. </script>
  977. <style scoped>
  978. @media screen and (max-width: 1024px) {
  979. /* .box_course {
  980. width: 300px !important;
  981. } */
  982. .typeCheckFlex{
  983. display: grid !important;
  984. grid-template-columns: repeat(3, 1fr) !important;
  985. }
  986. .claList{
  987. grid-template-columns: repeat(3, 1fr) !important;
  988. }
  989. }
  990. .student_head .imgS {
  991. width: 100%;
  992. height: 100%;
  993. cursor: pointer;
  994. object-fit: cover;
  995. }
  996. .top {
  997. padding: 20px 30px 20px 1%;
  998. box-sizing: border-box;
  999. display: flex;
  1000. align-items: center;
  1001. }
  1002. .top div {
  1003. cursor: pointer;
  1004. box-sizing: border-box;
  1005. height: 35px;
  1006. line-height: 35px;
  1007. margin: 0 10px 0 0;
  1008. padding-bottom: 5px;
  1009. width: 80px;
  1010. text-align: center;
  1011. }
  1012. .top .active {
  1013. border-bottom: 3px solid #0e71e6;
  1014. }
  1015. .isactive {
  1016. border-bottom: 3px solid #0e71e6;
  1017. }
  1018. .box_fk {
  1019. width: 8px;
  1020. height: 21px;
  1021. background: #0e71e6;
  1022. margin-right: 5px;
  1023. }
  1024. .wheel {
  1025. width: 100%;
  1026. height: 140px;
  1027. }
  1028. .man {
  1029. width: 16px;
  1030. height: 16px;
  1031. }
  1032. .wheel>img,
  1033. .man>img {
  1034. width: 100%;
  1035. height: 100%;
  1036. object-fit: cover;
  1037. }
  1038. .box_course {
  1039. display: flex;
  1040. flex-direction: column;
  1041. flex-wrap: nowrap;
  1042. /* margin: 0px 1% 20px; */
  1043. /* margin: 0 15px 20px 0; */
  1044. /* width: 300px; */
  1045. /* height: 260px; */
  1046. max-width: 400px;
  1047. /*border: 1px solid #cecece; */
  1048. border-radius: 10px;
  1049. overflow: hidden;
  1050. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  1051. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  1052. justify-content: space-between;
  1053. cursor: pointer;
  1054. }
  1055. .middle_white {
  1056. font-size: 14px;
  1057. margin: 5px 10px 10px;
  1058. }
  1059. .people {
  1060. display: flex;
  1061. align-items: center;
  1062. }
  1063. .people>div:nth-child(2) {
  1064. margin-left: 10px;
  1065. }
  1066. .now_study {
  1067. width: 100%;
  1068. height: 40px;
  1069. color: #fff;
  1070. background: #4a9eed;
  1071. text-align: center;
  1072. line-height: 40px;
  1073. font-size: 13px;
  1074. cursor: pointer;
  1075. display: none;
  1076. }
  1077. .now_study:hover {
  1078. background: #205cc6;
  1079. }
  1080. .main_box {
  1081. width: 100%;
  1082. /* display: flex; */
  1083. /* flex-direction: row; */
  1084. /* flex-wrap: wrap; */
  1085. /* justify-content: flex-start; */
  1086. margin: 0 auto;
  1087. }
  1088. .right_bottom_flex {
  1089. width: 219px;
  1090. height: 144px;
  1091. margin: auto 0;
  1092. }
  1093. .right_bottom_flex>img {
  1094. width: 100%;
  1095. height: 100%;
  1096. }
  1097. .body_student {
  1098. margin: 0 auto;
  1099. width: 90%;
  1100. height: 100%;
  1101. }
  1102. .student_head {
  1103. width: 100%;
  1104. /* height: 30%; */
  1105. }
  1106. .textOverflow {
  1107. padding: 0 5px 0 0px;
  1108. width: 100%;
  1109. display: flex;
  1110. align-items: center;
  1111. justify-content: space-between;
  1112. font-size: 16px;
  1113. }
  1114. .textOverflow > .utitle{
  1115. max-width: calc(100%);
  1116. overflow: hidden;
  1117. white-space: nowrap;
  1118. text-overflow: ellipsis;
  1119. font-weight: bold;
  1120. display: block;
  1121. }
  1122. .textOverflow > .uname{
  1123. min-width: fit-content;
  1124. overflow: hidden;
  1125. white-space: nowrap;
  1126. text-overflow: ellipsis;
  1127. display: block;
  1128. }
  1129. .student_page {
  1130. margin-top: 10px;
  1131. }
  1132. .course_empty {
  1133. width: 100%;
  1134. height: 200px;
  1135. display: flex;
  1136. align-items: center;
  1137. justify-content: center;
  1138. }
  1139. .choose {
  1140. display: flex;
  1141. flex-direction: column;
  1142. flex-wrap: nowrap;
  1143. height: 100%;
  1144. justify-content: space-evenly;
  1145. align-items: flex-start;
  1146. padding: 10px 0;
  1147. gap: 10px;
  1148. }
  1149. .all_choose {
  1150. display: flex;
  1151. flex-direction: row;
  1152. align-items: baseline;
  1153. /* margin: 2px 0; */
  1154. width: 100%;
  1155. }
  1156. .all_choose > span {
  1157. min-width: 85px;
  1158. display: block;
  1159. /* letter-spacing: 14px; */
  1160. }
  1161. .all_choose>span:nth-child(1) {
  1162. font-weight: bold;
  1163. }
  1164. .all_choose>>>.el-checkbox-group {
  1165. display: flex;
  1166. flex-direction: row;
  1167. width: 820px;
  1168. flex-wrap: wrap;
  1169. align-content: center;
  1170. justify-content: flex-start;
  1171. align-items: center;
  1172. margin-top: 3px;
  1173. }
  1174. .all_choose>.el-checkbox-group>>>.el-checkbox {
  1175. margin-bottom: 10px;
  1176. display: flex;
  1177. flex-direction: row;
  1178. align-items: center;
  1179. }
  1180. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  1181. min-width: 80px;
  1182. overflow: hidden;
  1183. width: 80px;
  1184. text-overflow: ellipsis;
  1185. white-space: nowrap;
  1186. }
  1187. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  1188. width: auto;
  1189. }
  1190. .cName {
  1191. cursor: pointer;
  1192. /* margin: 0 10px 10px 0; */
  1193. color: #b9b6b9;
  1194. /* min-width: 80px; */
  1195. /* width: 80px; */
  1196. flex-shrink: 0;
  1197. display: flex;
  1198. align-items: center;
  1199. justify-content: center;
  1200. /* white-space: nowrap; */
  1201. /* overflow: hidden;
  1202. text-overflow: ellipsis; */
  1203. }
  1204. .reBox {
  1205. position: relative;
  1206. top: -25px;
  1207. z-index: 999;
  1208. /* left: auto; */
  1209. /* right: auto; */
  1210. background: #fff;
  1211. width: 90%;
  1212. border-radius: 5px;
  1213. padding-left: 20px;
  1214. margin: 0 auto;
  1215. box-sizing: border-box;
  1216. }
  1217. .reTop {
  1218. padding: 20px 0 0 0;
  1219. border-bottom: 1px solid #eee;
  1220. width: 98%;
  1221. display: flex;
  1222. flex-direction: row;
  1223. flex-wrap: nowrap;
  1224. align-items: center;
  1225. justify-content: space-between;
  1226. }
  1227. .reTop>div:nth-child(1) {
  1228. font-weight: bold;
  1229. width: 40px;
  1230. border-bottom: 1px solid #205cc6;
  1231. padding-bottom: 20px;
  1232. color: #205cc6;
  1233. font-size: 20px;
  1234. }
  1235. .reTop>div:nth-child(2) {
  1236. display: flex;
  1237. flex-direction: row;
  1238. align-items: center;
  1239. border: 1px solid #ccced3;
  1240. width: 300px;
  1241. border-radius: 8px;
  1242. padding: 5px 0;
  1243. margin-bottom: 10px;
  1244. }
  1245. .search {
  1246. width: 20px;
  1247. padding: 0 5px;
  1248. }
  1249. .search>img {
  1250. width: 100%;
  1251. height: 100%;
  1252. }
  1253. .sInput {
  1254. border: none;
  1255. width: 85%;
  1256. }
  1257. .sInput:focus-visible {
  1258. outline: none;
  1259. }
  1260. .nameAndLength {
  1261. display: flex;
  1262. flex-direction: row;
  1263. flex-wrap: nowrap;
  1264. align-items: center;
  1265. justify-content: space-between;
  1266. margin: 5px 0;
  1267. }
  1268. .typeN {
  1269. width: 200px;
  1270. white-space: nowrap;
  1271. overflow: hidden;
  1272. text-overflow: ellipsis;
  1273. }
  1274. .isCType {
  1275. color: #6282c2;
  1276. }
  1277. .typeCss {
  1278. display: flex;
  1279. /* flex-direction: row; */
  1280. flex-wrap: wrap;
  1281. /* align-items: center; */
  1282. /* justify-content: center; */
  1283. gap: 15px;
  1284. /* justify-content: flex-start; */
  1285. align-items: center;
  1286. }
  1287. .school {
  1288. white-space: nowrap;
  1289. overflow: hidden;
  1290. text-overflow: ellipsis;
  1291. max-width: 50%;
  1292. box-sizing: border-box;
  1293. }
  1294. .school_box {
  1295. display: flex;
  1296. align-items: center;
  1297. justify-content: space-between;
  1298. }
  1299. .FirstTypeBox {}
  1300. .FirstTypeBox+.FirstTypeBox {
  1301. margin-top: 20px;
  1302. }
  1303. .FirstTypeBox>.title {
  1304. font-size: 24px;
  1305. font-weight: 700;
  1306. }
  1307. .typeCheck > div + div{
  1308. margin-left: 10px;
  1309. }
  1310. .typeCheck {
  1311. display: flex;
  1312. align-items: center;
  1313. justify-content: flex-end;
  1314. margin-bottom: 10px;
  1315. }
  1316. .typeCheck > div{
  1317. display: flex;
  1318. align-items: center;
  1319. justify-content: flex-end;
  1320. }
  1321. .typeCheck > div >span {
  1322. margin-left: 10px;
  1323. }
  1324. .pType_box {
  1325. margin-top: 10px;
  1326. }
  1327. .pType_box >>> .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
  1328. -webkit-box-shadow: none !important;
  1329. box-shadow: none !important;
  1330. }
  1331. .backBtn{
  1332. font-size: 16px;
  1333. font-weight: normal;
  1334. cursor: pointer;
  1335. position: absolute;
  1336. top: 20px;
  1337. left: 20px;
  1338. z-index: 999999;
  1339. }
  1340. .r_pub_button_retrun {
  1341. font-weight: bold;
  1342. font-size: 20px;
  1343. display: flex;align-items: center;
  1344. gap: 10px;
  1345. cursor: pointer;
  1346. /* padding:0px 90px 0; */
  1347. /* height: 23.8px; */
  1348. margin-bottom: 15px;
  1349. width: 90%;
  1350. margin: auto;
  1351. transform: translate(0px, -35px);
  1352. }
  1353. /* .r_pub_button_retrun::before {
  1354. content: "";
  1355. width: 14px;
  1356. height: 14px;
  1357. min-width: 14px;
  1358. min-height: 14px;
  1359. background-size: 100% 100%;
  1360. display: block;
  1361. margin-right: 7px;
  1362. background-image: url(../assets/icon/course/icon_return2.png);
  1363. } */
  1364. .claList{
  1365. display: grid;
  1366. grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  1367. gap: 30px;
  1368. }
  1369. .claListFlex{
  1370. display: grid;
  1371. grid-template-columns: repeat(4, 1fr);
  1372. gap: 30px;
  1373. }
  1374. .box_courseFlex{
  1375. display: flex;
  1376. flex-direction: column;
  1377. flex-wrap: nowrap;
  1378. /* max-width: 400px; */
  1379. flex: 1;
  1380. border-radius: 10px;
  1381. overflow: hidden;
  1382. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  1383. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  1384. justify-content: space-between;
  1385. cursor: pointer;
  1386. }
  1387. .typeCheckFlex{
  1388. display: grid;
  1389. grid-template-columns: repeat(4, 1fr);
  1390. gap: 30px;
  1391. }
  1392. </style>