course.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895
  1. <template>
  2. <div class="pb_content" style="height: auto; width: 94%; margin: 0 auto;background: unset;">
  3. <div class="pb_head top">
  4. <div>
  5. <span class="sub_head">课程管理</span>
  6. <span
  7. class="subClick"
  8. @click="
  9. goTo(
  10. '/works?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role
  18. )
  19. "
  20. >评价管理</span
  21. >
  22. </div>
  23. <div class="student_button">
  24. <!-- <el-button type="primary" class="bgColor" @click="openCourse">协同编辑</el-button> -->
  25. <el-button type="primary" class="bgColor" @click="goToCourse3()"
  26. >创建极简式课程</el-button
  27. >
  28. <el-button type="primary" class="bgColor" @click="goToCourse2()"
  29. >创建任务式课程</el-button
  30. >
  31. <el-button type="primary" class="bgColor" @click="goToCourse()"
  32. >创建阶段式课程</el-button
  33. >
  34. </div>
  35. </div>
  36. <div class="reBox">
  37. <div class="reTop">
  38. <div>分类筛选</div>
  39. <div>
  40. <!-- @click="getCourse" -->
  41. <div class="search">
  42. <img src="../../assets/icon/search.png" alt="" />
  43. </div>
  44. <input
  45. class="sInput"
  46. type="text"
  47. placeholder="请输入关键字"
  48. v-model="courseName"
  49. @input="getCourse()"
  50. />
  51. </div>
  52. </div>
  53. <div
  54. class="pType_box all_choose"
  55. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  56. >
  57. <span>类型</span>
  58. <el-radio-group
  59. v-model="pTypeCheckName"
  60. style="display: flex; align-items: center"
  61. >
  62. <div
  63. class="all_choose"
  64. style="width: 100px"
  65. v-for="(item, index) in CourseType2"
  66. :key="index"
  67. >
  68. <el-radio
  69. :label="item.name"
  70. @click.native.prevent="CourseType2Click(item.name)"
  71. >{{ item.name }}</el-radio
  72. >
  73. </div>
  74. </el-radio-group>
  75. </div>
  76. <div class="choose">
  77. <div
  78. class="all_choose"
  79. v-for="(item, index) in CourseType[0]"
  80. :key="index"
  81. :style="{ margin: !CourseTypeJson[item.id].length && 0 }"
  82. >
  83. <span
  84. v-if="
  85. CourseTypeJson[item.id].length &&
  86. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  87. ? pTypeCheck.indexOf(item.id) != -1
  88. : true)
  89. "
  90. >{{ item.name }}:</span
  91. >
  92. <div
  93. class="typeCss"
  94. v-if="
  95. CourseTypeJson[item.id].length &&
  96. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  97. ? pTypeCheck.indexOf(item.id) != -1
  98. : true)
  99. "
  100. >
  101. <div
  102. class="cName"
  103. @click="getCourse2(item.name, '', item.id, 1)"
  104. :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''"
  105. >
  106. 全部
  107. </div>
  108. <div
  109. v-for="(item1, index1) in CourseTypeJson[item.id]"
  110. :key="index + '-' + index1"
  111. :label="item1.id"
  112. @click="getCourse2(item.name, item.id, item1.id, 2)"
  113. >
  114. <div
  115. class="cName"
  116. :class="
  117. typea == item1.id || typeb == item1.id || typed == item1.id
  118. ? 'isCType'
  119. : ''
  120. "
  121. >
  122. {{ item1.name }}
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="line"></div>
  130. <div class="pb_content_body" style="height: 100%;width: 100%;background: #e6eaf0;margin: 0 auto;">
  131. <div class="student_head" v-if="false">
  132. <div class="choose">
  133. <div class="student_search">
  134. <span>课程筛选</span>
  135. <el-select v-model="groupA" @change="search">
  136. <el-option value="0" label="我的课程"></el-option>
  137. <el-option value="1" label="他人课程"></el-option>
  138. </el-select>
  139. </div>
  140. <div
  141. class="all_choose"
  142. v-for="(item, index) in CourseType[0]"
  143. :key="index"
  144. >
  145. <span v-if="CourseTypeJson[item.id].length">{{ item.name }}</span>
  146. <el-select
  147. v-if="CourseTypeJson[item.id].length"
  148. v-model="courseTypeId[item.id]"
  149. placeholder="请选择"
  150. @change="getTypeName"
  151. >
  152. <el-option label="全部" value="1">全部</el-option>
  153. <el-option
  154. v-for="item1 in CourseTypeJson[item.id]"
  155. :key="item1.id"
  156. :label="item1.name"
  157. :value="item1.id"
  158. >
  159. </el-option>
  160. </el-select>
  161. </div>
  162. <div @click="clear" class="clear">重置</div>
  163. </div>
  164. <div class="student_right">
  165. <div class="head_left">
  166. <el-input
  167. v-model="courseName"
  168. class="student_input"
  169. placeholder="请输入课程名称"
  170. ></el-input>
  171. <el-button class="course_button" @click="searchCourse"
  172. >查询</el-button
  173. >
  174. </div>
  175. </div>
  176. </div>
  177. <div class="student_table">
  178. <div class="course_box">
  179. <div class="out_box" v-for="(item, index) in course" :key="index">
  180. <!-- <div class="myCourse" v-if="item.isCourseType == 1 && groupA == 0">
  181. 我的课程
  182. </div>
  183. <div class="myCourse" v-else-if="groupA == 1">
  184. 他人课程
  185. </div>
  186. <div class="xtCourse" v-else>协同课程</div> -->
  187. <div class="myCourse" v-if="item.userid == userid">我的课程</div>
  188. <div
  189. class="myCourse"
  190. style="background: #4187f0"
  191. v-else-if="
  192. !item.course_teacher ||
  193. (item.course_teacher &&
  194. item.course_teacher.indexOf(userid) == -1)
  195. "
  196. >
  197. 他人课程
  198. </div>
  199. <div class="xtCourse" v-else>协同课程</div>
  200. <div class="tup">
  201. <img
  202. :src="
  203. item.cover != null && item.cover != ''
  204. ? JSON.parse(item.cover).length > 0
  205. ? JSON.parse(item.cover)[0].url
  206. : mr
  207. : mr
  208. "
  209. alt
  210. />
  211. </div>
  212. <!-- <div class="bottom_box">
  213. <div>{{ item.title }}</div>
  214. <div class="kc_t" v-if="groupA == '1'">
  215. 创建老师:{{ item.uname }}
  216. </div>
  217. <div class="kc_time">{{ item.time }}</div>
  218. </div> -->
  219. <div class="bottom_box">
  220. <div>{{ item.title }}</div>
  221. <div class="kc_t" v-if="item.isCourseType == 2 || groupA == 1">
  222. 负责老师:{{ item.uname }}
  223. </div>
  224. <div class="kc_time">
  225. <span style="color: #717C8D">创建日期:</span>{{ item.time }}
  226. </div>
  227. <div class="kc_time">
  228. <span style="color: #717C8D">修改日期:</span>{{ item.utime }}
  229. </div>
  230. </div>
  231. <div class="three_bottom">
  232. <!-- v-if="role == '1'" -->
  233. <div @click="get(item)">预览</div>
  234. <!-- <div @click="jump(item.courseId)" v-else>评课</div> -->
  235. <div
  236. v-if="
  237. ((item.userid == userid) ||
  238. (item.course_teacher &&
  239. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  240. item.state == 1
  241. "
  242. @click="goToCourse(item.courseId)"
  243. >
  244. 修改
  245. </div>
  246. <div
  247. v-if="
  248. ((item.userid == userid) ||
  249. (item.course_teacher &&
  250. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  251. item.state == 2
  252. "
  253. @click="goToCourse2(item.courseId)"
  254. >
  255. 修改
  256. </div>
  257. <div
  258. v-if="
  259. ((item.userid == userid) ||
  260. (item.course_teacher &&
  261. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  262. item.state == 3
  263. "
  264. @click="goToCourse3(item.courseId)"
  265. >
  266. 修改
  267. </div>
  268. <div
  269. v-if="groupA == '0'"
  270. @click="
  271. goTo(
  272. '/works?cid=' +
  273. item.courseId +
  274. '&userid=' +
  275. userid +
  276. '&oid=' +
  277. oid +
  278. '&org=' +
  279. org +
  280. '&role=' +
  281. role
  282. )
  283. "
  284. >
  285. 评价
  286. </div>
  287. <div
  288. @click="copyCourse(item.courseId)"
  289. >
  290. 复制
  291. </div>
  292. <div
  293. v-if="item.isCourseType == 1 || role == '1'"
  294. @click="deleteCourse(item.courseId)"
  295. >
  296. 删除
  297. </div>
  298. <!-- <div class="more">
  299. <span style="font-size: 18px; font-weight: 700">...</span>
  300. <div>
  301. <span @click="copyCourse(item.courseId)">复制</span>
  302. <span @click="jump(item.courseId)" v-if="role == '1'">评课</span>
  303. <span @click="get(item.courseId)" v-else>预览</span>
  304. <span @click="getNT(item.courseId)">无终端</span>
  305. </div>
  306. </div> -->
  307. </div>
  308. </div>
  309. <div class="course_empty" v-if="course.length == 0">暂无数据</div>
  310. </div>
  311. </div>
  312. </div>
  313. <div class="student_page">
  314. <el-pagination
  315. background
  316. layout="prev, pager, next"
  317. :page-size="pageSize"
  318. :total="total"
  319. v-if="page && course.length"
  320. style="padding-bottom: 20px"
  321. @current-change="handleCurrentChange"
  322. ></el-pagination>
  323. </div>
  324. <el-dialog :visible.sync="dialogVisible1" size="tiny">
  325. <img width="100%" :src="dialogImageUrl" alt />
  326. </el-dialog>
  327. <el-dialog
  328. title="查看提问"
  329. :visible.sync="dialogVisible"
  330. :append-to-body="true"
  331. width="750px"
  332. :before-close="handleClose"
  333. class="dialog_diy"
  334. >
  335. <div>
  336. <div class="a_addBox">
  337. <CourseProblem :problemCourse="problemCourse"></CourseProblem>
  338. </div>
  339. </div>
  340. <span slot="footer" class="dialog-footer">
  341. <el-button @click="dialogVisible = false">关 闭</el-button>
  342. </span>
  343. </el-dialog>
  344. <el-dialog
  345. title="查看协同课程"
  346. :visible.sync="dialogVisibleCourse"
  347. :append-to-body="true"
  348. width="850px"
  349. :before-close="handleClose"
  350. class="dialog_diy"
  351. >
  352. <div class="ct_box">
  353. <div
  354. class="out_box"
  355. v-for="(item, index) in courseTeam"
  356. :key="index"
  357. style="margin-left: 15px"
  358. >
  359. <div class="tup">
  360. <img
  361. :src="
  362. item.cover != null && item.cover != ''
  363. ? JSON.parse(item.cover).length > 0
  364. ? JSON.parse(item.cover)[0].url
  365. : mr
  366. : mr
  367. "
  368. alt
  369. />
  370. </div>
  371. <div class="bottom_box">
  372. <div>{{ item.title }}</div>
  373. <div class="kc_t">创建老师:{{ item.uname }}</div>
  374. <div class="kc_time">{{ item.time }}</div>
  375. </div>
  376. <div class="three_bottom">
  377. <div @click="jump(item.courseId)">查看内容</div>
  378. <div
  379. @click="
  380. goTo(
  381. '/course/addCourse?cid=' +
  382. item.courseId +
  383. '&userid=' +
  384. userid +
  385. '&oid=' +
  386. oid +
  387. '&org=' +
  388. org
  389. )
  390. "
  391. >
  392. 编辑
  393. </div>
  394. </div>
  395. </div>
  396. <div class="course_empty" v-if="courseTeam.length == 0">暂无数据</div>
  397. </div>
  398. <span slot="footer" class="dialog-footer">
  399. <el-button @click="dialogVisibleCourse = false">关 闭</el-button>
  400. </span>
  401. </el-dialog>
  402. </div>
  403. </template>
  404. <script>
  405. import "../../common/aws-sdk-2.235.1.min";
  406. import EditorBar from "../../components/tools/wangEnduit";
  407. import CourseProblem from "./components/courseProblem";
  408. export default {
  409. components: { EditorBar, CourseProblem },
  410. data() {
  411. return {
  412. itemCount: 1,
  413. courseTitle: "",
  414. courseText: "",
  415. courseTime: "",
  416. isLoading: false,
  417. fileList: [],
  418. fileList1: [],
  419. homeworkList: [{ name: "" }],
  420. formLabelWidth: "100px",
  421. dialogVisible: false,
  422. dialogVisible1: false,
  423. dialogVisibleCourse: false,
  424. dialogImageUrl: "",
  425. group: "",
  426. userid: this.$route.query.userid,
  427. oid: this.$route.query.oid,
  428. org: this.$route.query.org,
  429. role: this.$route.query.role,
  430. Juri: "",
  431. groupList: [],
  432. JuriList: [],
  433. page: 1,
  434. total: 0,
  435. pageSize: 20,
  436. tableData: [],
  437. now: "",
  438. courseDetail: {},
  439. addCourse: {},
  440. groupA: "0",
  441. classX: "",
  442. course: [],
  443. courseName: "",
  444. mr: require("../../assets/icon/kc1.png"),
  445. CourseType: [],
  446. CourseType2: [],
  447. CourseTypeJson: {},
  448. courseTypeId: {},
  449. courseTypeSon: [],
  450. isChoose: 0,
  451. problemCourse: null, //查看提问的课程
  452. courseTeam: [],
  453. typeE: [],
  454. typea: "",
  455. typeb: "",
  456. typed: "",
  457. pTypeCheck: [],
  458. pTypeCheckName: [],
  459. };
  460. },
  461. methods: {
  462. change(val) {
  463. console.log(val);
  464. },
  465. time() {
  466. if (!this.now) {
  467. this.now = new Date().getTime();
  468. return true;
  469. } else {
  470. let time = new Date().getTime();
  471. if (time - this.now > 3000) {
  472. this.now = time;
  473. return true;
  474. } else {
  475. return false;
  476. }
  477. }
  478. },
  479. addHomeworkBox() {
  480. this.homeworkList.push({ name: "" });
  481. this.itemCount++;
  482. },
  483. reduceHomeworkBox() {
  484. var a = this.homeworkList;
  485. a.splice(a.length - 1);
  486. this.itemCount--;
  487. },
  488. goTo(path) {
  489. this.$router.push(path);
  490. },
  491. CourseType2Change(val) {
  492. this.pTypeCheck = [];
  493. for (var i = 0; i < this.CourseType2.length; i++) {
  494. let typeA = this.CourseType2[i];
  495. if (val.indexOf(typeA.name) != -1) {
  496. this.pTypeCheck.push(...typeA.id);
  497. }
  498. }
  499. this.typea = "";
  500. this.typeb = "";
  501. this.typed = "";
  502. this.getCourse();
  503. },
  504. CourseType2Click(val) {
  505. this.pTypeCheck = [];
  506. this.typeE = [];
  507. if (val === this.pTypeCheckName) {
  508. this.pTypeCheckName = "";
  509. } else {
  510. this.pTypeCheckName = val;
  511. for (var i = 0; i < this.CourseType2.length; i++) {
  512. let typeA = this.CourseType2[i];
  513. if (val.indexOf(typeA.name) != -1) {
  514. this.pTypeCheck.push(...typeA.id);
  515. this.typeE = [...typeA.id];
  516. }
  517. }
  518. }
  519. this.typea = "";
  520. this.typeb = "";
  521. this.typed = "";
  522. this.getCourse();
  523. },
  524. goToCourse(courseId) {
  525. if (courseId) {
  526. this.$router.push(
  527. "/course/addCourse?cid=" +
  528. courseId +
  529. "&userid=" +
  530. this.userid +
  531. "&oid=" +
  532. this.oid +
  533. "&org=" +
  534. this.org +
  535. "&role=" +
  536. this.role
  537. );
  538. } else {
  539. this.$router.push(
  540. "/course/addCourse?userid=" +
  541. this.userid +
  542. "&oid=" +
  543. this.oid +
  544. "&org=" +
  545. this.org +
  546. "&role=" +
  547. this.role
  548. );
  549. }
  550. // this.$router.push(path);
  551. },
  552. goToCourse2(courseId) {
  553. if (courseId) {
  554. this.$router.push(
  555. "/course/addCourseT?cid=" +
  556. courseId +
  557. "&userid=" +
  558. this.userid +
  559. "&oid=" +
  560. this.oid +
  561. "&org=" +
  562. this.org +
  563. "&role=" +
  564. this.role
  565. );
  566. } else {
  567. this.$router.push(
  568. "/course/addCourseT?userid=" +
  569. this.userid +
  570. "&oid=" +
  571. this.oid +
  572. "&org=" +
  573. this.org +
  574. "&role=" +
  575. this.role
  576. );
  577. }
  578. },
  579. goToCourse3(courseId) {
  580. if (courseId) {
  581. this.$router.push(
  582. "/course/addCourseE?cid=" +
  583. courseId +
  584. "&userid=" +
  585. this.userid +
  586. "&oid=" +
  587. this.oid +
  588. "&org=" +
  589. this.org +
  590. "&role=" +
  591. this.role
  592. );
  593. } else {
  594. this.$router.push(
  595. "/course/addCourseE?userid=" +
  596. this.userid +
  597. "&oid=" +
  598. this.oid +
  599. "&org=" +
  600. this.org +
  601. "&role=" +
  602. this.role
  603. );
  604. }
  605. },
  606. tableRowClassName({ row, rowIndex }) {
  607. if ((rowIndex + 1) % 2 === 0) {
  608. return "even_row";
  609. } else {
  610. return "";
  611. }
  612. },
  613. jump(cid) {
  614. // window.open(
  615. // "//pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?courseId=" +
  616. // cid +
  617. // "&userid=" +
  618. // this.userid
  619. // );
  620. window.parent.postMessage({ cid: cid, screenType: "2" }, "*");
  621. },
  622. get(item) {
  623. window.parent.postMessage({ cid: item.courseId, screenType: "3" }, "*");
  624. },
  625. getNT(cid) {
  626. window.parent.postMessage({ cid: cid, screenType: "3NT" }, "*");
  627. },
  628. handle_remove(file, fileList) {
  629. var _tmp = this.fileList;
  630. for (var i = 0, len = _tmp.length; i < len; i++) {
  631. if (_tmp[i].uid == file.uid) {
  632. _tmp.splice(i, 1);
  633. break;
  634. }
  635. this.fileList = _tmp;
  636. }
  637. },
  638. handle_remove1(file, fileList) {
  639. var _tmp = this.fileList1;
  640. for (var i = 0, len = _tmp.length; i < len; i++) {
  641. if (_tmp[i].uid == file.uid) {
  642. _tmp.splice(i, 1);
  643. break;
  644. }
  645. this.fileList1 = _tmp;
  646. }
  647. },
  648. handleCurrentChange(val) {
  649. // console.log(`当前页: ${val}`);
  650. this.page = val;
  651. this.getCourse();
  652. },
  653. init() {},
  654. handleClose(done) {
  655. done();
  656. },
  657. handleRemove(file, fileList) {
  658. console.log(file, fileList);
  659. },
  660. handlePictureCardPreview(file) {
  661. this.dialogImageUrl = file.url;
  662. this.dialogVisible1 = true;
  663. },
  664. onExceed() {
  665. this.$message.error("课程海报仅支持上传一张,请删除后再进行上传");
  666. },
  667. //uuid生成
  668. guid() {
  669. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
  670. /[xy]/g,
  671. function (c) {
  672. var r = (Math.random() * 16) | 0,
  673. v = c == "x" ? r : (r & 0x3) | 0x8;
  674. return v.toString(16);
  675. }
  676. );
  677. },
  678. time() {
  679. if (!this.now) {
  680. this.now = new Date().getTime();
  681. return true;
  682. } else {
  683. let time = new Date().getTime();
  684. if (time - this.now > 3000) {
  685. this.now = time;
  686. return true;
  687. } else {
  688. return false;
  689. }
  690. }
  691. },
  692. searchCourse() {
  693. this.page = 1;
  694. this.getCourse();
  695. },
  696. clear() {
  697. for (var i = 0; i < this.CourseType[0].length; i++) {
  698. this.courseTypeId[this.CourseType[0][i].id] = "";
  699. }
  700. this.getCourse();
  701. },
  702. getCourse2(typeName, ftypeId, typeid, type) {
  703. this.page = 1;
  704. if (typeName == "年级") {
  705. if (type == 1) {
  706. if (this.typeE.indexOf(typeid) != -1) {
  707. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  708. return;
  709. } else {
  710. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  711. }
  712. } else {
  713. this.typeE.push(typeid);
  714. if (this.typea != "") {
  715. this.typea = "";
  716. }
  717. }
  718. } else {
  719. if (this.typea == typeid) {
  720. this.typea = "";
  721. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  722. this.typeE.push(ftypeId);
  723. }
  724. } else {
  725. this.typea = typeid;
  726. if (this.typeE.indexOf(ftypeId) != -1) {
  727. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  728. }
  729. }
  730. }
  731. } else if (typeName == "专栏") {
  732. if (type == 1) {
  733. if (this.typeE.indexOf(typeid) != -1) {
  734. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  735. return;
  736. } else {
  737. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  738. }
  739. } else {
  740. this.typeE.push(typeid);
  741. if (this.typeb != "") {
  742. this.typeb = "";
  743. }
  744. }
  745. } else {
  746. if (this.typeb == typeid) {
  747. this.typeb = "";
  748. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  749. this.typeE.push(ftypeId);
  750. }
  751. } else {
  752. this.typeb = typeid;
  753. if (this.typeE.indexOf(ftypeId) != -1) {
  754. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  755. }
  756. }
  757. }
  758. } else if (typeName == "栏目") {
  759. if (type == 1) {
  760. if (this.typeE.indexOf(typeid) != -1) {
  761. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  762. return;
  763. } else {
  764. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  765. }
  766. } else {
  767. this.typeE.push(typeid);
  768. if (this.typeb != "") {
  769. this.typeb = "";
  770. }
  771. }
  772. } else {
  773. if (this.typeb == typeid) {
  774. this.typeb = "";
  775. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  776. this.typeE.push(ftypeId);
  777. }
  778. } else {
  779. this.typeb = typeid;
  780. if (this.typeE.indexOf(ftypeId) != -1) {
  781. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  782. }
  783. }
  784. }
  785. } else if (typeName == "主题") {
  786. if (type == 1) {
  787. if (this.typeE.indexOf(typeid) != -1) {
  788. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  789. return;
  790. } else {
  791. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  792. }
  793. } else {
  794. this.typeE.push(typeid);
  795. if (this.typeb != "") {
  796. this.typeb = "";
  797. }
  798. }
  799. } else {
  800. if (this.typeb == typeid) {
  801. this.typeb = "";
  802. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  803. this.typeE.push(ftypeId);
  804. }
  805. } else {
  806. this.typeb = typeid;
  807. if (this.typeE.indexOf(ftypeId) != -1) {
  808. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  809. }
  810. }
  811. }
  812. } else if (typeName == "学院") {
  813. if (type == 1) {
  814. if (this.typeE.indexOf(typeid) != -1) {
  815. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  816. return;
  817. } else {
  818. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  819. }
  820. } else {
  821. this.typeE.push(typeid);
  822. if (this.typeb != "") {
  823. this.typeb = "";
  824. }
  825. }
  826. } else {
  827. if (this.typeb == typeid) {
  828. this.typeb = "";
  829. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  830. this.typeE.push(ftypeId);
  831. }
  832. } else {
  833. this.typeb = typeid;
  834. if (this.typeE.indexOf(ftypeId) != -1) {
  835. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  836. }
  837. }
  838. }
  839. } else if (typeName == "学科") {
  840. if (type == 1) {
  841. if (this.typeE.indexOf(typeid) != -1) {
  842. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  843. return;
  844. } else {
  845. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  846. }
  847. } else {
  848. this.typeE.push(typeid);
  849. if (this.typed != "") {
  850. this.typed = "";
  851. }
  852. }
  853. } else {
  854. if (this.typed == typeid) {
  855. this.typed = "";
  856. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  857. this.typeE.push(ftypeId);
  858. }
  859. } else {
  860. this.typed = typeid;
  861. if (this.typeE.indexOf(ftypeId) != -1) {
  862. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  863. }
  864. }
  865. }
  866. }
  867. // this.loading = true;
  868. this.getCourse();
  869. },
  870. getCourse() {
  871. if (!this.loading) {
  872. this.loading = this.openLoading(
  873. document.querySelector(".student_table")
  874. );
  875. }
  876. // var typeE = [];
  877. // var typea, typeb, typec, typed;
  878. // if (this.isChoose == 1) {
  879. // for (var i = 0; i < this.CourseType[0].length; i++) {
  880. // if (this.courseTypeId[this.CourseType[0][i].id] == "1") {
  881. // typeE.push(this.CourseType[0][i].id);
  882. // } else if (this.courseTypeId[this.CourseType[0][i].id] != "") {
  883. // if (this.CourseType[0][i].name == "年级") {
  884. // typea = this.courseTypeId[this.CourseType[0][i].id];
  885. // } else if (this.CourseType[0][i].name == "专栏") {
  886. // typeb = this.courseTypeId[this.CourseType[0][i].id];
  887. // } else if (this.CourseType[0][i].name == "栏目") {
  888. // typeb = this.courseTypeId[this.CourseType[0][i].id];
  889. // } else if (this.CourseType[0][i].name == "学院") {
  890. // typeb = this.courseTypeId[this.CourseType[0][i].id];
  891. // } else if (this.CourseType[0][i].name == "主题") {
  892. // typeb = this.courseTypeId[this.CourseType[0][i].id];
  893. // } else if (this.CourseType[0][i].name == "新技能") {
  894. // typec = this.courseTypeId[this.CourseType[0][i].id];
  895. // } else if (this.CourseType[0][i].name == "学科") {
  896. // typed = this.courseTypeId[this.CourseType[0][i].id];
  897. // }
  898. // this.courseTypeSon.push(
  899. // this.courseTypeId[this.CourseType[0][i].id]
  900. // );
  901. // }
  902. // }
  903. // }
  904. console.log("typea", this.typea);
  905. this.isLoading = true;
  906. let params = {
  907. type: this.groupA,
  908. uid: this.userid,
  909. oid: this.oid,
  910. org: this.org,
  911. typea: this.typea != undefined ? this.typea : "",
  912. typeb: this.typeb != undefined ? this.typeb : "",
  913. typec: "",
  914. typed: this.typed != undefined ? this.typed : "",
  915. typeE: this.typeE.join(","),
  916. cu: "",
  917. cn: this.courseName,
  918. page: this.page,
  919. pageSize: this.pageSize,
  920. };
  921. this.ajax
  922. .get(this.$store.state.api + "selectCourseNew2", params)
  923. .then((res) => {
  924. this.loading.close();
  925. this.loading = "";
  926. this.isLoading = false;
  927. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  928. this.course = res.data[0];
  929. })
  930. .catch((err) => {
  931. console.error(err);
  932. });
  933. },
  934. getTypeName() {
  935. this.$forceUpdate();
  936. this.page = 1;
  937. this.isChoose = 1;
  938. this.getCourse();
  939. },
  940. // searchCourse() {
  941. // this.isLoading = true;
  942. // let params = {
  943. // cu: "",
  944. // cn: this.courseName,
  945. // page: this.page,
  946. // };
  947. // this.ajax
  948. // .get(this.$store.state.api + "searchCourse", params)
  949. // .then((res) => {
  950. // this.isLoading = false;
  951. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  952. // this.course = res.data[0];
  953. // })
  954. // .catch((err) => {
  955. // this.isLoading = false;
  956. // console.error(err);
  957. // });
  958. // },
  959. deleteCourse(cid) {
  960. // if (this.time()) {
  961. this.$confirm("确定删除此课程吗?", "提示", {
  962. confirmButtonText: "确定",
  963. cancelButtonText: "取消",
  964. type: "warning",
  965. })
  966. .then(() => {
  967. const loading = this.openLoading(
  968. document.querySelector(".student_table")
  969. );
  970. this.isLoading = true;
  971. let params = {
  972. cid: cid,
  973. };
  974. this.ajax
  975. .get(this.$store.state.api + "deleteCourse", params)
  976. .then((res) => {
  977. loading.close();
  978. this.isLoading = false;
  979. this.$message.success("删除成功");
  980. this.getCourse();
  981. })
  982. .catch((err) => {
  983. console.error(err);
  984. });
  985. })
  986. .catch(() => {
  987. loading.close();
  988. this.isLoading = false;
  989. return;
  990. });
  991. // }
  992. },
  993. selectAllType() {
  994. let params = {
  995. org: this.org && this.org != "" ? this.org : "",
  996. oid: this.oid && this.oid != "" ? this.oid : "",
  997. };
  998. this.ajax
  999. .get(this.$store.state.api + "selectAllType", params)
  1000. .then((res) => {
  1001. this.CourseType = res.data;
  1002. this.CourseType2 = [
  1003. { name: "智见课程", id: [] },
  1004. { name: "智行课程", id: [] },
  1005. { name: "智创课程", id: [] },
  1006. ];
  1007. for (var cti = 0; cti < res.data[0].length; cti++) {
  1008. if (
  1009. res.data[0][cti].name == "年级" ||
  1010. res.data[0][cti].name == "学科"
  1011. ) {
  1012. this.CourseType2[1].id.push(res.data[0][cti].id);
  1013. this.CourseType2[0].id.push(res.data[0][cti].id);
  1014. } else if (res.data[0][cti].name == "主题") {
  1015. this.CourseType2[2].id.push(res.data[0][cti].id);
  1016. }
  1017. }
  1018. for (var i = 0; i < res.data[0].length; i++) {
  1019. if (!this.cid) {
  1020. this.courseTypeId[res.data[0][i].id] = [];
  1021. }
  1022. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1023. this.CourseTypeJson[res.data[0][i].id] = [];
  1024. }
  1025. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1026. if (res.data[0][i].name == "栏目") {
  1027. this.CourseType[0][i].name = "主题";
  1028. }
  1029. }
  1030. if (res.data[2].length == 0 && res.data[3].length == 0) {
  1031. for (var j = 0; j < res.data[1].length; j++) {
  1032. if (res.data[0][i].id == res.data[1][j].pid) {
  1033. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  1034. }
  1035. }
  1036. } else {
  1037. if (res.data[2].length > 0) {
  1038. for (var j = 0; j < res.data[2].length; j++) {
  1039. if (res.data[0][i].id == res.data[2][j].pid) {
  1040. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  1041. }
  1042. }
  1043. }
  1044. if (res.data[3].length > 0) {
  1045. for (var j = 0; j < res.data[3].length; j++) {
  1046. if (res.data[0][i].id == res.data[3][j].pid) {
  1047. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  1048. }
  1049. }
  1050. }
  1051. }
  1052. }
  1053. })
  1054. .catch((err) => {
  1055. console.error(err);
  1056. });
  1057. },
  1058. selectType() {
  1059. this.ajax
  1060. .get(this.$store.state.api + "selectType")
  1061. .then((res) => {
  1062. this.CourseType = res.data;
  1063. for (var i = 0; i < res.data[0].length; i++) {
  1064. if (!this.cid) {
  1065. this.courseTypeId[res.data[0][i].id] = "";
  1066. }
  1067. // if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1068. // if (res.data[0][i].name == "栏目") {
  1069. // this.CourseType[0][i].name = "主题";
  1070. // }
  1071. // }
  1072. for (var j = 0; j < res.data[1].length; j++) {
  1073. if (res.data[0][i].id == res.data[1][j].pid) {
  1074. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1075. this.CourseTypeJson[res.data[0][i].id] = [];
  1076. }
  1077. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); //去除公共分类
  1078. }
  1079. }
  1080. }
  1081. this.selectTypeByOid();
  1082. this.selectTypeByOrg();
  1083. })
  1084. .catch((err) => {
  1085. console.error(err);
  1086. });
  1087. },
  1088. selectTypeByOid() {
  1089. let params = {
  1090. oid: this.oid,
  1091. };
  1092. this.ajax
  1093. .get(this.$store.state.api + "selectTypeByOid", params)
  1094. .then((res) => {
  1095. for (var i = 0; i < res.data[0].length; i++) {
  1096. for (var j = 0; j < res.data[1].length; j++) {
  1097. if (res.data[0][i].id == res.data[1][j].pid) {
  1098. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1099. this.CourseTypeJson[res.data[0][i].id] = [];
  1100. }
  1101. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1102. }
  1103. }
  1104. }
  1105. this.$forceUpdate();
  1106. })
  1107. .catch((err) => {
  1108. console.error(err);
  1109. });
  1110. },
  1111. selectTypeByOrg() {
  1112. let params = {
  1113. oid: this.org,
  1114. };
  1115. this.ajax
  1116. .get(this.$store.state.api + "selectTypeByOrg", params)
  1117. .then((res) => {
  1118. for (var i = 0; i < res.data[0].length; i++) {
  1119. for (var j = 0; j < res.data[1].length; j++) {
  1120. if (res.data[0][i].id == res.data[1][j].pid) {
  1121. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1122. this.CourseTypeJson[res.data[0][i].id] = [];
  1123. }
  1124. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1125. }
  1126. }
  1127. }
  1128. this.$forceUpdate();
  1129. })
  1130. .catch((err) => {
  1131. console.error(err);
  1132. });
  1133. },
  1134. openCourse() {
  1135. this.dialogVisibleCourse = true;
  1136. this.getTeamCourse();
  1137. },
  1138. getTeamCourse() {
  1139. let params = {
  1140. uid: this.userid,
  1141. oid: this.oid,
  1142. };
  1143. this.ajax
  1144. .get(this.$store.state.api + "selectCourseTeam", params)
  1145. .then((res) => {
  1146. this.courseTeam = res.data[0];
  1147. })
  1148. .catch((err) => {
  1149. console.error(err);
  1150. });
  1151. },
  1152. search() {
  1153. this.page = 1;
  1154. this.getCourse();
  1155. },
  1156. checkProblem(res) {
  1157. this.problemCourse = res;
  1158. this.dialogVisible = true;
  1159. },
  1160. copyCourse(cid) {
  1161. let params = [
  1162. {
  1163. cid: cid,
  1164. uid: this.userid,
  1165. },
  1166. ];
  1167. this.ajax
  1168. .post(this.$store.state.api + "copyCourse", params)
  1169. .then((res) => {
  1170. this.page = 1;
  1171. if (this.role == "1") {
  1172. this.groupA = "4";
  1173. } else {
  1174. this.groupA = "0";
  1175. }
  1176. this.$message.success("复制成功")
  1177. this.clear();
  1178. })
  1179. .catch((err) => {
  1180. console.error(err);
  1181. });
  1182. },
  1183. },
  1184. created() {
  1185. if (this.role == "1") {
  1186. this.groupA = "4";
  1187. }
  1188. this.page = 1;
  1189. // this.selectType();
  1190. this.selectAllType();
  1191. this.getCourse();
  1192. },
  1193. };
  1194. </script>
  1195. <style scoped>
  1196. @media screen and (max-width: 1000px) {
  1197. /* .out_box {
  1198. width: 250px !important;
  1199. } */
  1200. /* .out_box:nth-child(4n){
  1201. margin-right: 25px !important;
  1202. } */
  1203. }
  1204. .dialog_diy >>> .el-dialog__header {
  1205. background: #3d67bc !important;
  1206. padding: 15px 20px;
  1207. }
  1208. .dialog_diy >>> .el-dialog__title {
  1209. color: #fff;
  1210. }
  1211. .dialog_diy >>> .el-dialog__headerbtn {
  1212. top: 19px;
  1213. }
  1214. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  1215. color: #fff;
  1216. }
  1217. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  1218. color: #fff;
  1219. }
  1220. .student_head >>> .el-button--primary {
  1221. background-color: #2268bc;
  1222. }
  1223. .xls_button {
  1224. font-size: 14px;
  1225. cursor: pointer;
  1226. text-decoration: underline;
  1227. color: rgb(34, 104, 188);
  1228. }
  1229. .student_head {
  1230. display: flex;
  1231. justify-content: space-between;
  1232. align-items: baseline;
  1233. flex-direction: row;
  1234. flex-wrap: wrap;
  1235. }
  1236. .top {
  1237. display: flex;
  1238. justify-content: space-between;
  1239. width: 100% !important;
  1240. background: #fff;
  1241. box-sizing: border-box;
  1242. margin: 0px auto;
  1243. padding: 10px 15px;
  1244. }
  1245. .bgColor {
  1246. background: #466b99;
  1247. }
  1248. .student_search {
  1249. display: flex;
  1250. align-items: center;
  1251. width: calc(100% / 3);
  1252. }
  1253. .student_search span {
  1254. margin: 0 10px 0 0;
  1255. min-width: 65px;
  1256. }
  1257. .student_button {
  1258. display: flex;
  1259. overflow: hidden;
  1260. height: 40px;
  1261. }
  1262. .upload-demo {
  1263. display: flex;
  1264. flex-direction: column;
  1265. align-items: end;
  1266. /* position: relative; */
  1267. width: 100px;
  1268. overflow: hidden;
  1269. }
  1270. .student_table {
  1271. /* padding: 20px 0; */
  1272. height: 100%;
  1273. /* overflow: auto; */
  1274. min-height: 360px;
  1275. }
  1276. .student_empty {
  1277. display: flex;
  1278. justify-content: center;
  1279. align-items: center;
  1280. }
  1281. .el-table >>> .even_row {
  1282. background-color: #f1f1f1;
  1283. }
  1284. .time {
  1285. font-size: 13px;
  1286. color: #999;
  1287. }
  1288. .course_button {
  1289. padding: 10px 20px;
  1290. }
  1291. .course_button_box {
  1292. display: flex;
  1293. margin-top: 5px;
  1294. justify-content: space-between;
  1295. }
  1296. .course_rate {
  1297. margin-top: 5px;
  1298. }
  1299. .course_view {
  1300. display: flex;
  1301. align-items: center;
  1302. margin: 5px 0 0 0;
  1303. }
  1304. .course_view i {
  1305. background-image: url("../../assets/liulan.png");
  1306. width: 25px;
  1307. height: 25px;
  1308. background-size: 100% 100%;
  1309. /* margin-top: 1px; */
  1310. line-height: 25px;
  1311. vertical-align: text-top;
  1312. background-repeat: no-repeat;
  1313. }
  1314. .image {
  1315. width: 100%;
  1316. height: 150px;
  1317. display: block;
  1318. }
  1319. .course_box {
  1320. display: flex;
  1321. flex-wrap: wrap;
  1322. }
  1323. .student_page {
  1324. width: 100%;
  1325. margin: 0 auto;
  1326. background: #e6eaf0;
  1327. }
  1328. .course_create_box {
  1329. font-size: 18px;
  1330. }
  1331. .course_name {
  1332. margin-top: 10px;
  1333. }
  1334. .course_name span {
  1335. margin-bottom: 10px;
  1336. display: block;
  1337. }
  1338. .homework_box {
  1339. display: flex;
  1340. align-items: center;
  1341. flex-wrap: wrap;
  1342. }
  1343. .course_homework {
  1344. width: 130px;
  1345. display: flex;
  1346. justify-content: center;
  1347. flex-direction: column;
  1348. align-items: center;
  1349. margin: 0 10px 10px 0;
  1350. }
  1351. .course_type {
  1352. margin-top: 10px;
  1353. display: flex;
  1354. }
  1355. .course_type1 span {
  1356. margin-bottom: 10px;
  1357. display: block;
  1358. }
  1359. .course_type2 {
  1360. margin-left: 20px;
  1361. }
  1362. .course_type2 span {
  1363. margin-bottom: 10px;
  1364. display: block;
  1365. }
  1366. .course_empty {
  1367. color: rgb(110, 110, 110);
  1368. width: 100%;
  1369. height: 100%;
  1370. display: flex;
  1371. align-items: center;
  1372. justify-content: center;
  1373. }
  1374. .el_cards >>> .el-card__body {
  1375. height: 100%;
  1376. }
  1377. .courseBtnBox {
  1378. display: flex;
  1379. flex-direction: column;
  1380. justify-content: space-between;
  1381. height: calc(100% - 170px);
  1382. padding: 10px;
  1383. }
  1384. .wordUpload {
  1385. display: flex;
  1386. }
  1387. .wordUpload > .buttonUp {
  1388. margin-right: 5px;
  1389. }
  1390. .out_box {
  1391. display: flex;
  1392. flex-direction: column;
  1393. flex-wrap: nowrap;
  1394. /* width: calc(100% / 5 - (15px * 4) / 5); */
  1395. width: 280px;
  1396. background: #fff;
  1397. margin-right: 15px;
  1398. /* border: 1px solid #ccc; */
  1399. height: fit-content;
  1400. box-sizing: border-box;
  1401. border-radius: 0px 0px 5px 5px;
  1402. /* overflow: hidden; */
  1403. margin-bottom: 15px;
  1404. position: relative;
  1405. border-radius: 8px;
  1406. box-sizing: border-box;
  1407. overflow: hidden;
  1408. border: 1px solid #3682fc00;
  1409. }
  1410. .out_box:hover{
  1411. border: 1px solid #3681FC;
  1412. }
  1413. /* .out_box:nth-child(5n){
  1414. margin-right: 0;
  1415. } */
  1416. .bottom_box {
  1417. display: flex;
  1418. padding: 10px ;
  1419. flex-direction: column;
  1420. box-sizing: border-box;
  1421. height: 121px;
  1422. flex-wrap: nowrap;
  1423. justify-content: space-evenly;
  1424. }
  1425. .bottom_box > div:nth-child(1) {
  1426. width: 100%;
  1427. overflow: hidden;
  1428. text-overflow: ellipsis;
  1429. white-space: nowrap;
  1430. font-weight: bold;
  1431. }
  1432. .tup {
  1433. width: 100%;
  1434. height: 180px;
  1435. margin: 0 auto;
  1436. overflow: hidden;
  1437. display: flex;
  1438. align-items: center;
  1439. padding: 10px;
  1440. box-sizing: border-box;
  1441. }
  1442. .tup > img {
  1443. width: 100%;
  1444. height: 100%;
  1445. object-fit: contain;
  1446. }
  1447. .kc_time {
  1448. margin-top: 8px;
  1449. font-size: 14px;
  1450. color: #717C8D;
  1451. }
  1452. .kc_time + .kc_time {
  1453. margin-top: 0;
  1454. }
  1455. .kc_t {
  1456. margin-top: 5px;
  1457. width: 100%;
  1458. white-space: nowrap;
  1459. overflow: hidden;
  1460. text-overflow: ellipsis;
  1461. }
  1462. .three_bottom {
  1463. display: flex;
  1464. flex-direction: row;
  1465. justify-content: space-around;
  1466. height: 45px;
  1467. align-items: center;
  1468. background: #fff;
  1469. font-size: 14px;
  1470. border-top: 1px solid #ddd;
  1471. box-sizing: border-box;
  1472. }
  1473. .three_bottom > div {
  1474. cursor: pointer;
  1475. width: 100%;
  1476. text-align: center;
  1477. }
  1478. .three_bottom > div + div{
  1479. border-left: 1px solid #ddd;
  1480. }
  1481. .three_bottom > div:hover {
  1482. color: #3681FC;
  1483. font-weight: bold;
  1484. }
  1485. .three_bottom .deleteB{
  1486. color: #E96E6E;
  1487. }
  1488. .three_bottom .deleteB:hover {
  1489. color: #E96E6E;
  1490. font-weight: bold;
  1491. }
  1492. .head_left {
  1493. display: flex;
  1494. }
  1495. .student_input >>> .el-input__inner {
  1496. height: 40px;
  1497. width: 190px;
  1498. font-size: 13px;
  1499. padding: 0 10px;
  1500. }
  1501. .course_button {
  1502. color: #fff;
  1503. background: #2268bc;
  1504. width: 75px;
  1505. height: 40px;
  1506. padding: 0 !important;
  1507. font-size: 12px;
  1508. line-height: 40px;
  1509. }
  1510. /* .all_choose {
  1511. margin: 15px 0 10px;
  1512. height: 20%;
  1513. display: flex;
  1514. flex-direction: row;
  1515. align-items: center;
  1516. max-width: calc(100% / 3);
  1517. }
  1518. .all_choose > span {
  1519. width: 50px;
  1520. display: block;
  1521. }
  1522. .choose {
  1523. display: flex;
  1524. flex-direction: row;
  1525. flex-wrap: wrap;
  1526. align-content: space-between;
  1527. height: 100%;
  1528. justify-content: flex-start;
  1529. width: 60%;
  1530. min-width: 868px;
  1531. align-items: center;
  1532. } */
  1533. /* .choose > div:nth-child(2) {
  1534. margin-left: 1%;
  1535. width: 32.33333%;
  1536. }
  1537. .choose > div:nth-child(4) {
  1538. margin-right: 1%;
  1539. width: 32.33333%;
  1540. }
  1541. .choose > div:nth-child(5) {
  1542. margin: 5px 0 0 1%;
  1543. }
  1544. .choose > div:nth-child(4) > span {
  1545. width: 74px !important;
  1546. min-width: 74px;
  1547. }
  1548. .choose > div:nth-child(4) >>> .el-select {
  1549. width: 217.5px;
  1550. min-width: 215.06px;
  1551. } */
  1552. .clear {
  1553. width: 70px;
  1554. height: 35px;
  1555. background: #2268bc;
  1556. color: #fff;
  1557. text-align: center;
  1558. border-radius: 5px;
  1559. line-height: 35px;
  1560. cursor: pointer;
  1561. margin-left: 20px;
  1562. }
  1563. .ct_box {
  1564. height: 500px;
  1565. overflow: auto;
  1566. display: flex;
  1567. flex-wrap: wrap;
  1568. }
  1569. .myCourse {
  1570. position: absolute;
  1571. background: #3c3c3c;
  1572. width: 70px;
  1573. height: 30px;
  1574. border-radius: 5px;
  1575. color: #fff;
  1576. font-size: 14px;
  1577. text-align: center;
  1578. line-height: 30px;
  1579. top: 5px;
  1580. left: 5px;
  1581. }
  1582. .xtCourse {
  1583. position: absolute;
  1584. background: #41a5f0;
  1585. width: 70px;
  1586. height: 30px;
  1587. border-radius: 5px;
  1588. color: #fff;
  1589. font-size: 14px;
  1590. text-align: center;
  1591. line-height: 30px;
  1592. top: 5px;
  1593. left: 5px;
  1594. }
  1595. .sub_head {
  1596. position: relative;
  1597. }
  1598. .sub_head::after {
  1599. content: "";
  1600. width: 100%;
  1601. background: #5a9cea;
  1602. height: 2px;
  1603. position: absolute;
  1604. left: 0;
  1605. bottom: -18px;
  1606. }
  1607. .subClick {
  1608. /* font-size: 16px; */
  1609. font-size: 26px;
  1610. cursor: pointer;
  1611. margin-left: 10px;
  1612. /* color: #ab582f; */
  1613. /* color: #409eff; */
  1614. color: #999;
  1615. }
  1616. .subClick:hover {
  1617. color: #000;
  1618. }
  1619. .more {
  1620. position: relative;
  1621. }
  1622. .more:hover div {
  1623. display: block;
  1624. color: #000;
  1625. }
  1626. .more div {
  1627. position: absolute;
  1628. bottom: 0px;
  1629. transform: translate(-50%, 100%);
  1630. background: #f5f4f4;
  1631. padding: 10px 20px;
  1632. z-index: 99;
  1633. width: 50px;
  1634. border-radius: 5px;
  1635. box-shadow: 0 0 3px 3px #80808020;
  1636. display: none;
  1637. }
  1638. .more div > span + span {
  1639. margin-top: 10px;
  1640. }
  1641. .more div > span {
  1642. display: block;
  1643. width: 100%;
  1644. text-align: center;
  1645. }
  1646. .more div > span:hover {
  1647. color: #79a2ff;
  1648. }
  1649. .line {
  1650. width: 100%;
  1651. height: 15px;
  1652. background: #e6eaf0;
  1653. }
  1654. .reBox {
  1655. background: #fff;
  1656. width: 100%;
  1657. border-radius: 0 5px;
  1658. /* padding-left: 20px; */
  1659. margin: 0 auto;
  1660. box-sizing: border-box;
  1661. overflow: hidden;
  1662. padding: 10px 15px 0;
  1663. }
  1664. .reTop {
  1665. padding: 0 0 5px;
  1666. /* padding: 20px 0 0 0; */
  1667. /* border-bottom: 1px solid #eee; */
  1668. display: flex;
  1669. flex-direction: row;
  1670. flex-wrap: nowrap;
  1671. align-items: center;
  1672. justify-content: space-between;
  1673. }
  1674. .reTop > div:nth-child(1) {
  1675. font-weight: bold;
  1676. /* width: 40px; */
  1677. /* border-bottom: 1px solid #205cc6; */
  1678. /* padding-bottom: 20px; */
  1679. color: #205cc6;
  1680. /* font-size: 20px; */
  1681. }
  1682. .reTop > div:nth-child(2) {
  1683. display: flex;
  1684. flex-direction: row;
  1685. align-items: center;
  1686. border: 1px solid #ccced3;
  1687. width: 300px;
  1688. border-radius: 8px;
  1689. padding: 5px 0;
  1690. /* margin-bottom: 10px; */
  1691. background: #fafafa;
  1692. }
  1693. .search {
  1694. width: 20px;
  1695. padding: 0 5px;
  1696. display:flex;
  1697. align-items: center;
  1698. }
  1699. .search > img {
  1700. width: 100%;
  1701. height: 100%;
  1702. }
  1703. .sInput {
  1704. border: none;
  1705. width: 85%;
  1706. background: #fafafa;
  1707. }
  1708. .sInput:focus-visible {
  1709. outline: none;
  1710. }
  1711. .typeCss {
  1712. display: flex;
  1713. flex-direction: row;
  1714. flex-wrap: wrap;
  1715. justify-content: flex-start;
  1716. align-items: center;
  1717. }
  1718. .choose {
  1719. display: flex;
  1720. flex-direction: column;
  1721. flex-wrap: nowrap;
  1722. height: 100%;
  1723. justify-content: space-evenly;
  1724. align-items: flex-start;
  1725. padding: 10px 0;
  1726. }
  1727. .all_choose {
  1728. display: flex;
  1729. flex-direction: row;
  1730. align-items: baseline;
  1731. margin: 2px 0;
  1732. width: 100%;
  1733. }
  1734. .all_choose > span {
  1735. min-width: 80px;
  1736. display: block;
  1737. letter-spacing: 14px;
  1738. }
  1739. .all_choose > span:nth-child(1) {
  1740. font-weight: bold;
  1741. }
  1742. .all_choose >>> .el-checkbox-group {
  1743. display: flex;
  1744. flex-direction: row;
  1745. width: 820px;
  1746. flex-wrap: wrap;
  1747. align-content: center;
  1748. justify-content: flex-start;
  1749. align-items: center;
  1750. margin-top: 3px;
  1751. }
  1752. .all_choose > .el-checkbox-group >>> .el-checkbox {
  1753. margin-bottom: 10px;
  1754. display: flex;
  1755. flex-direction: row;
  1756. align-items: center;
  1757. }
  1758. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  1759. min-width: 80px;
  1760. overflow: hidden;
  1761. width: 80px;
  1762. text-overflow: ellipsis;
  1763. white-space: nowrap;
  1764. }
  1765. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  1766. width: auto;
  1767. }
  1768. .cName {
  1769. cursor: pointer;
  1770. margin: 0 10px 5px 0;
  1771. color: #b9b6b9;
  1772. min-width: 80px;
  1773. width: 80px;
  1774. white-space: nowrap;
  1775. overflow: hidden;
  1776. text-overflow: ellipsis;
  1777. }
  1778. .isCType {
  1779. color: #6282c2;
  1780. }
  1781. .pType_box {
  1782. margin-top: 0;
  1783. }
  1784. .pType_box
  1785. >>> .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled)
  1786. .el-radio__inner {
  1787. -webkit-box-shadow: none !important;
  1788. box-shadow: none !important;
  1789. }
  1790. </style>