checkCourse.vue 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  1. <template>
  2. <div class="pb_content" style="height: auto">
  3. <div class="pb_head top">
  4. <div>
  5. <span>学生项目</span>
  6. <span
  7. @click="
  8. goTo(
  9. '/tcStudent?userid='+
  10. userid +
  11. '&oid=' +
  12. oid+'&org=' +
  13. org
  14. )
  15. "
  16. >学生管理</span
  17. >
  18. </div>
  19. <div class="student_button">
  20. <!-- <el-button type="primary" class="bgColor" @click="goToCourse()">添加项目</el-button> -->
  21. </div>
  22. </div>
  23. <div class="pb_content_body" style="height: 100%">
  24. <div class="student_head">
  25. <div class="choose">
  26. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  27. <span>{{ item.name }}</span>
  28. <el-select v-model="courseTypeId[item.id]" placeholder="请选择" @change="getTypeName">
  29. <el-option label="全部" value="1">全部</el-option>
  30. <el-option v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.name" :value="item1.id">
  31. </el-option>
  32. </el-select>
  33. </div>
  34. <div @click="clear" class="clear">重置</div>
  35. </div>
  36. <div class="student_right">
  37. <div class="head_left">
  38. <el-input v-model="courseName" class="student_input" placeholder="请输入项目名称"></el-input>
  39. <el-button class="course_button" @click="searchCourse">查询</el-button>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="student_table" v-loading="isLoading">
  44. <div class="course_box">
  45. <div class="out_box" v-for="(item, index) in course" :key="index">
  46. <div class="myCourse" v-if="item.isCourseType == 1 && groupA == 0">
  47. 我的项目
  48. </div>
  49. <div class="myCourse" v-else-if="groupA == 1">
  50. 他人项目
  51. </div>
  52. <div class="xtCourse" v-else>协同项目</div>
  53. <div class="tup">
  54. <img :src="
  55. item.cover != null && item.cover != ''
  56. ? JSON.parse(item.cover).length > 0
  57. ? JSON.parse(item.cover)[0].url
  58. : mr
  59. : mr
  60. " alt />
  61. </div>
  62. <!-- <div class="bottom_box">
  63. <div>{{ item.title }}</div>
  64. <div class="kc_t" v-if="groupA == '1'">
  65. 创建老师:{{ item.uname }}
  66. </div>
  67. <div class="kc_time">{{ item.time }}</div>
  68. </div> -->
  69. <div class="bottom_box">
  70. <div>{{ item.title }}</div>
  71. <div class="kc_t">
  72. 负责人:{{ item.uname }}
  73. </div>
  74. <div class="kc_time">
  75. <span style="color: #4b4b4b">创建日期:</span>{{ item.time }}
  76. </div>
  77. <div class="kc_time">
  78. <span style="color: #4b4b4b">修改日期:</span>{{ item.utime }}
  79. </div>
  80. </div>
  81. <div class="three_bottom">
  82. <div @click="get(item.courseId)">查看内容</div>
  83. <div @click="getA(item.courseId)">项目进展</div>
  84. </div>
  85. </div>
  86. <div class="course_empty" v-if="course.length == 0">暂无数据</div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="student_page">
  91. <el-pagination background layout="prev, pager, next" :page-size="10" :total="total" v-if="page && course.length"
  92. style="padding-bottom: 20px" @current-change="handleCurrentChange"></el-pagination>
  93. </div>
  94. </div>
  95. </template>
  96. <script>
  97. import "../../../common/aws-sdk-2.235.1.min";
  98. import EditorBar from "../../../components/tools/wangEnduit";
  99. import CourseProblem from "../components/courseProblem";
  100. export default {
  101. components: { EditorBar, CourseProblem },
  102. data() {
  103. return {
  104. itemCount: 1,
  105. courseTitle: "",
  106. courseText: "",
  107. courseTime: "",
  108. isLoading: false,
  109. fileList: [],
  110. fileList1: [],
  111. homeworkList: [{ name: "" }],
  112. formLabelWidth: "100px",
  113. dialogVisible: false,
  114. dialogVisible1: false,
  115. dialogVisibleCourse: false,
  116. dialogImageUrl: "",
  117. group: "",
  118. tuserid: this.$route.query.tuserid,
  119. userid: this.$route.query.userid,
  120. oid: this.$route.query.oid,
  121. org: this.$route.query.org,
  122. Juri: "",
  123. groupList: [],
  124. JuriList: [],
  125. page: 1,
  126. total: 0,
  127. tableData: [],
  128. now: "",
  129. courseDetail: {},
  130. addCourse: {},
  131. groupA: "0",
  132. classX: "",
  133. course: [],
  134. courseName: "",
  135. mr: require("../../../assets/icon/kc1.png"),
  136. CourseType: [],
  137. CourseTypeJson: {},
  138. courseTypeId: {},
  139. courseTypeSon: [],
  140. isChoose: 0,
  141. problemCourse: null, //查看提问的项目
  142. courseTeam: [],
  143. };
  144. },
  145. methods: {
  146. change(val) {
  147. console.log(val);
  148. },
  149. time() {
  150. if (!this.now) {
  151. this.now = new Date().getTime();
  152. return true;
  153. } else {
  154. let time = new Date().getTime();
  155. if (time - this.now > 3000) {
  156. this.now = time;
  157. return true;
  158. } else {
  159. return false;
  160. }
  161. }
  162. },
  163. addHomeworkBox() {
  164. this.homeworkList.push({ name: "" });
  165. this.itemCount++;
  166. },
  167. reduceHomeworkBox() {
  168. var a = this.homeworkList;
  169. a.splice(a.length - 1);
  170. this.itemCount--;
  171. },
  172. goTo(path) {
  173. this.$router.push(path);
  174. },
  175. goToCourse(courseId) {
  176. if (courseId) {
  177. this.$router.push(
  178. "/studentAddCourse?cid=" +
  179. courseId +
  180. "&userid=" +
  181. this.userid +
  182. "&oid=" +
  183. this.oid +
  184. "&org=" +
  185. this.org
  186. );
  187. } else {
  188. this.$router.push(
  189. "/studentAddCourse?userid=" +
  190. this.userid +
  191. "&oid=" +
  192. this.oid +
  193. "&org=" +
  194. this.org
  195. );
  196. }
  197. // this.$router.push(path);
  198. },
  199. tableRowClassName({ row, rowIndex }) {
  200. if ((rowIndex + 1) % 2 === 0) {
  201. return "even_row";
  202. } else {
  203. return "";
  204. }
  205. },
  206. jump(cid) {
  207. // window.open(
  208. // "//pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?courseId=" +
  209. // cid +
  210. // "&userid=" +
  211. // this.userid
  212. // );
  213. window.parent.postMessage({ cid: cid, screenType: "2" }, "*");
  214. },
  215. get(cid) {
  216. window.parent.postMessage({ cid: cid, screenType: "3s" }, "*");
  217. },
  218. getA(cid) {
  219. this.$router.push("/courseProgress?cid=" + cid + "&userid=" +
  220. this.tuserid +
  221. "&oid=" +
  222. this.oid +
  223. "&org=" +
  224. this.org)
  225. },
  226. handle_remove(file, fileList) {
  227. var _tmp = this.fileList;
  228. for (var i = 0, len = _tmp.length; i < len; i++) {
  229. if (_tmp[i].uid == file.uid) {
  230. _tmp.splice(i, 1);
  231. break;
  232. }
  233. this.fileList = _tmp;
  234. }
  235. },
  236. handle_remove1(file, fileList) {
  237. var _tmp = this.fileList1;
  238. for (var i = 0, len = _tmp.length; i < len; i++) {
  239. if (_tmp[i].uid == file.uid) {
  240. _tmp.splice(i, 1);
  241. break;
  242. }
  243. this.fileList1 = _tmp;
  244. }
  245. },
  246. handleCurrentChange(val) {
  247. // console.log(`当前页: ${val}`);
  248. this.page = val;
  249. this.getCourse();
  250. },
  251. init() { },
  252. handleClose(done) {
  253. done();
  254. },
  255. handleRemove(file, fileList) {
  256. console.log(file, fileList);
  257. },
  258. handlePictureCardPreview(file) {
  259. this.dialogImageUrl = file.url;
  260. this.dialogVisible1 = true;
  261. },
  262. onExceed() {
  263. this.$message.error("项目海报仅支持上传一张,请删除后再进行上传");
  264. },
  265. //uuid生成
  266. guid() {
  267. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
  268. /[xy]/g,
  269. function (c) {
  270. var r = (Math.random() * 16) | 0,
  271. v = c == "x" ? r : (r & 0x3) | 0x8;
  272. return v.toString(16);
  273. }
  274. );
  275. },
  276. time() {
  277. if (!this.now) {
  278. this.now = new Date().getTime();
  279. return true;
  280. } else {
  281. let time = new Date().getTime();
  282. if (time - this.now > 3000) {
  283. this.now = time;
  284. return true;
  285. } else {
  286. return false;
  287. }
  288. }
  289. },
  290. searchCourse() {
  291. this.page = 1;
  292. this.getCourse();
  293. },
  294. clear() {
  295. for (var i = 0; i < this.CourseType[0].length; i++) {
  296. this.courseTypeId[this.CourseType[0][i].id] = "";
  297. }
  298. this.getCourse();
  299. },
  300. getCourse() {
  301. var typeE = [];
  302. var typea, typeb, typec, typed;
  303. if (this.isChoose == 1) {
  304. for (var i = 0; i < this.CourseType[0].length; i++) {
  305. if (this.courseTypeId[this.CourseType[0][i].id] == "1") {
  306. typeE.push(this.CourseType[0][i].id);
  307. } else if (this.courseTypeId[this.CourseType[0][i].id] != "") {
  308. if (this.CourseType[0][i].name == "年级") {
  309. typea = this.courseTypeId[this.CourseType[0][i].id];
  310. } else if (this.CourseType[0][i].name == "专栏") {
  311. typeb = this.courseTypeId[this.CourseType[0][i].id];
  312. } else if (this.CourseType[0][i].name == "栏目") {
  313. typeb = this.courseTypeId[this.CourseType[0][i].id];
  314. } else if (this.CourseType[0][i].name == "学院") {
  315. typeb = this.courseTypeId[this.CourseType[0][i].id];
  316. } else if (this.CourseType[0][i].name == "新技能") {
  317. typec = this.courseTypeId[this.CourseType[0][i].id];
  318. } else if (this.CourseType[0][i].name == "学科") {
  319. typed = this.courseTypeId[this.CourseType[0][i].id];
  320. }
  321. this.courseTypeSon.push(
  322. this.courseTypeId[this.CourseType[0][i].id]
  323. );
  324. }
  325. }
  326. }
  327. this.isLoading = true;
  328. let params = {
  329. type: this.groupA,
  330. uid: this.tuserid,
  331. oid: this.oid,
  332. org: this.org,
  333. typea: typea != undefined ? typea : "",
  334. typeb: typeb != undefined ? typeb : "",
  335. typec: typec != undefined ? typec : "",
  336. typed: typed != undefined ? typed : "",
  337. typeE: typeE.join(","),
  338. cu: "",
  339. cn: this.courseName,
  340. page: this.page,
  341. };
  342. this.ajax
  343. .get(this.$store.state.api + "selectStudentCourseNew2", params)
  344. .then((res) => {
  345. this.isLoading = false;
  346. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  347. this.course = res.data[0];
  348. })
  349. .catch((err) => {
  350. console.error(err);
  351. });
  352. },
  353. getTypeName() {
  354. this.$forceUpdate();
  355. this.page = 1;
  356. this.isChoose = 1;
  357. this.getCourse();
  358. },
  359. // searchCourse() {
  360. // this.isLoading = true;
  361. // let params = {
  362. // cu: "",
  363. // cn: this.courseName,
  364. // page: this.page,
  365. // };
  366. // this.ajax
  367. // .get(this.$store.state.api + "searchCourse", params)
  368. // .then((res) => {
  369. // this.isLoading = false;
  370. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  371. // this.course = res.data[0];
  372. // })
  373. // .catch((err) => {
  374. // this.isLoading = false;
  375. // console.error(err);
  376. // });
  377. // },
  378. deleteCourse(cid) {
  379. // if (this.time()) {
  380. this.$confirm("确定删除此项目吗?", "提示", {
  381. confirmButtonText: "确定",
  382. cancelButtonText: "取消",
  383. type: "warning",
  384. })
  385. .then(() => {
  386. this.isLoading = true;
  387. let params = {
  388. cid: cid,
  389. };
  390. this.ajax
  391. .get(this.$store.state.api + "deleteStudentCourse", params)
  392. .then((res) => {
  393. this.isLoading = false;
  394. this.$message.success("删除成功");
  395. this.getCourse();
  396. })
  397. .catch((err) => {
  398. console.error(err);
  399. });
  400. })
  401. .catch(() => {
  402. loading.close();
  403. this.isLoading = false;
  404. return;
  405. });
  406. // }
  407. },
  408. selectType() {
  409. this.ajax
  410. .get(this.$store.state.api + "selectType")
  411. .then((res) => {
  412. this.CourseType = res.data;
  413. for (var i = 0; i < res.data[0].length; i++) {
  414. if (!this.cid) {
  415. this.courseTypeId[res.data[0][i].id] = "";
  416. }
  417. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  418. if (res.data[0][i].name == "栏目") {
  419. this.CourseType[0][i].name = "主题";
  420. }
  421. }
  422. for (var j = 0; j < res.data[1].length; j++) {
  423. if (res.data[0][i].id == res.data[1][j].pid) {
  424. if (!this.CourseTypeJson[res.data[0][i].id]) {
  425. this.CourseTypeJson[res.data[0][i].id] = [];
  426. }
  427. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); //去除公共分类
  428. }
  429. }
  430. }
  431. this.selectTypeByOid();
  432. this.selectTypeByOrg();
  433. })
  434. .catch((err) => {
  435. console.error(err);
  436. });
  437. },
  438. selectTypeByOid() {
  439. let params = {
  440. oid: this.oid,
  441. };
  442. this.ajax
  443. .get(this.$store.state.api + "selectTypeByOid", params)
  444. .then((res) => {
  445. for (var i = 0; i < res.data[0].length; i++) {
  446. for (var j = 0; j < res.data[1].length; j++) {
  447. if (res.data[0][i].id == res.data[1][j].pid) {
  448. if (!this.CourseTypeJson[res.data[0][i].id]) {
  449. this.CourseTypeJson[res.data[0][i].id] = [];
  450. }
  451. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  452. }
  453. }
  454. }
  455. this.$forceUpdate();
  456. })
  457. .catch((err) => {
  458. console.error(err);
  459. });
  460. },
  461. selectTypeByOrg() {
  462. let params = {
  463. oid: this.org,
  464. };
  465. this.ajax
  466. .get(this.$store.state.api + "selectTypeByOrg", params)
  467. .then((res) => {
  468. for (var i = 0; i < res.data[0].length; i++) {
  469. for (var j = 0; j < res.data[1].length; j++) {
  470. if (res.data[0][i].id == res.data[1][j].pid) {
  471. if (!this.CourseTypeJson[res.data[0][i].id]) {
  472. this.CourseTypeJson[res.data[0][i].id] = [];
  473. }
  474. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  475. }
  476. }
  477. }
  478. this.$forceUpdate();
  479. })
  480. .catch((err) => {
  481. console.error(err);
  482. });
  483. },
  484. openCourse() {
  485. this.dialogVisibleCourse = true;
  486. this.getTeamCourse();
  487. },
  488. getTeamCourse() {
  489. let params = {
  490. uid: this.tuserid,
  491. oid: this.oid,
  492. };
  493. this.ajax
  494. .get(this.$store.state.api + "selectCourseTeam", params)
  495. .then((res) => {
  496. this.courseTeam = res.data[0];
  497. })
  498. .catch((err) => {
  499. console.error(err);
  500. });
  501. },
  502. search() {
  503. this.page = 1;
  504. this.getCourse();
  505. },
  506. checkProblem(res) {
  507. this.problemCourse = res;
  508. this.dialogVisible = true;
  509. },
  510. copyCourse(cid) {
  511. let params = [{
  512. cid: cid,
  513. uid: this.userid
  514. }]
  515. this.ajax
  516. .post(this.$store.state.api + "copyCourse", params)
  517. .then((res) => {
  518. this.page = 1
  519. this.groupA = '0'
  520. this.clear()
  521. })
  522. .catch((err) => {
  523. console.error(err);
  524. });
  525. }
  526. },
  527. created() {
  528. this.page = 1;
  529. this.selectType();
  530. this.getCourse();
  531. },
  532. };
  533. </script>
  534. <style scoped>
  535. .pb_head div> span:nth-child(2) {
  536. font-size: 16px;
  537. cursor: pointer;
  538. margin-left: 10px;
  539. /* color: #ab582f; */
  540. color: #409eff;
  541. }
  542. .dialog_diy>>>.el-dialog__header {
  543. background: #3d67bc !important;
  544. padding: 15px 20px;
  545. }
  546. .dialog_diy>>>.el-dialog__title {
  547. color: #fff;
  548. }
  549. .dialog_diy>>>.el-dialog__headerbtn {
  550. top: 19px;
  551. }
  552. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  553. color: #fff;
  554. }
  555. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  556. color: #fff;
  557. }
  558. .student_head>>>.el-button--primary {
  559. background-color: #2268bc;
  560. }
  561. .xls_button {
  562. font-size: 14px;
  563. cursor: pointer;
  564. text-decoration: underline;
  565. color: rgb(34, 104, 188);
  566. }
  567. .student_head {
  568. display: flex;
  569. justify-content: space-between;
  570. align-items: baseline;
  571. flex-direction: row;
  572. flex-wrap: wrap;
  573. }
  574. .top {
  575. display: flex;
  576. justify-content: space-between;
  577. }
  578. .bgColor {
  579. background: #466b99;
  580. }
  581. .student_search {
  582. display: flex;
  583. align-items: center;
  584. width: calc(100% / 3);
  585. }
  586. .student_search span {
  587. margin: 0 10px 0 0;
  588. min-width: 65px;
  589. }
  590. .student_button {
  591. display: flex;
  592. overflow: hidden;
  593. height: 40px;
  594. }
  595. .upload-demo {
  596. display: flex;
  597. flex-direction: column;
  598. align-items: end;
  599. /* position: relative; */
  600. width: 100px;
  601. overflow: hidden;
  602. }
  603. .student_table {
  604. padding: 20px 0;
  605. height: 100%;
  606. /* overflow: auto; */
  607. min-height: 360px;
  608. }
  609. .student_empty {
  610. display: flex;
  611. justify-content: center;
  612. align-items: center;
  613. }
  614. .el-table>>>.even_row {
  615. background-color: #f1f1f1;
  616. }
  617. .time {
  618. font-size: 13px;
  619. color: #999;
  620. }
  621. .course_button {
  622. padding: 10px 20px;
  623. }
  624. .course_button_box {
  625. display: flex;
  626. margin-top: 5px;
  627. justify-content: space-between;
  628. }
  629. .course_rate {
  630. margin-top: 5px;
  631. }
  632. .course_view {
  633. display: flex;
  634. align-items: center;
  635. margin: 5px 0 0 0;
  636. }
  637. .course_view i {
  638. background-image: url("../../../assets/liulan.png");
  639. width: 25px;
  640. height: 25px;
  641. background-size: 100% 100%;
  642. /* margin-top: 1px; */
  643. line-height: 25px;
  644. vertical-align: text-top;
  645. background-repeat: no-repeat;
  646. }
  647. .image {
  648. width: 100%;
  649. height: 150px;
  650. display: block;
  651. }
  652. .course_box {
  653. display: flex;
  654. flex-wrap: wrap;
  655. }
  656. .student_page {
  657. width: 95%;
  658. margin: 0 auto;
  659. }
  660. .course_create_box {
  661. font-size: 18px;
  662. }
  663. .course_name {
  664. margin-top: 10px;
  665. }
  666. .course_name span {
  667. margin-bottom: 10px;
  668. display: block;
  669. }
  670. .homework_box {
  671. display: flex;
  672. align-items: center;
  673. flex-wrap: wrap;
  674. }
  675. .course_homework {
  676. width: 130px;
  677. display: flex;
  678. justify-content: center;
  679. flex-direction: column;
  680. align-items: center;
  681. margin: 0 10px 10px 0;
  682. }
  683. .course_type {
  684. margin-top: 10px;
  685. display: flex;
  686. }
  687. .course_type1 span {
  688. margin-bottom: 10px;
  689. display: block;
  690. }
  691. .course_type2 {
  692. margin-left: 20px;
  693. }
  694. .course_type2 span {
  695. margin-bottom: 10px;
  696. display: block;
  697. }
  698. .course_empty {
  699. color: rgb(110, 110, 110);
  700. width: 100%;
  701. height: 100%;
  702. display: flex;
  703. align-items: center;
  704. justify-content: center;
  705. }
  706. .el_cards>>>.el-card__body {
  707. height: 100%;
  708. }
  709. .courseBtnBox {
  710. display: flex;
  711. flex-direction: column;
  712. justify-content: space-between;
  713. height: calc(100% - 170px);
  714. padding: 10px;
  715. }
  716. .wordUpload {
  717. display: flex;
  718. }
  719. .wordUpload>.buttonUp {
  720. margin-right: 5px;
  721. }
  722. .out_box {
  723. display: flex;
  724. flex-direction: column;
  725. flex-wrap: nowrap;
  726. width: 250px;
  727. background: #fff;
  728. margin-right: 25px;
  729. border: 1px solid #ccc;
  730. height: fit-content;
  731. box-sizing: border-box;
  732. border-radius: 0px 0px 5px 5px;
  733. /* overflow: hidden; */
  734. margin-bottom: 15px;
  735. position: relative;
  736. }
  737. .bottom_box {
  738. display: flex;
  739. padding: 10px 0 10px 10px;
  740. flex-direction: column;
  741. box-sizing: border-box;
  742. height: 121px;
  743. flex-wrap: nowrap;
  744. justify-content: space-evenly;
  745. }
  746. .bottom_box>div:nth-child(1) {
  747. width: 230px;
  748. overflow: hidden;
  749. text-overflow: ellipsis;
  750. white-space: nowrap;
  751. }
  752. .tup {
  753. width: 100%;
  754. height: 141.06px;
  755. margin: 0 auto;
  756. overflow: hidden;
  757. display: flex;
  758. align-items: center;
  759. }
  760. .tup>img {
  761. width: 100%;
  762. height: 100%;
  763. object-fit: contain;
  764. }
  765. .kc_time {
  766. margin-top: 8px;
  767. font-size: 14px;
  768. color: #999;
  769. }
  770. .kc_t {
  771. margin-top: 5px;
  772. }
  773. .three_bottom {
  774. display: flex;
  775. flex-direction: row;
  776. justify-content: space-around;
  777. height: 40px;
  778. align-items: center;
  779. background: #f5f4f4;
  780. font-size: 14px;
  781. }
  782. .three_bottom>div {
  783. cursor: pointer;
  784. }
  785. .three_bottom>div:hover {
  786. color: #79a2ff;
  787. }
  788. .head_left {
  789. display: flex;
  790. }
  791. .student_input>>>.el-input__inner {
  792. height: 40px;
  793. width: 190px;
  794. font-size: 13px;
  795. padding: 0 10px;
  796. }
  797. .course_button {
  798. color: #fff;
  799. background: #2268bc;
  800. width: 75px;
  801. height: 40px;
  802. padding: 0 !important;
  803. font-size: 12px;
  804. line-height: 40px;
  805. }
  806. .all_choose {
  807. margin: 15px 0 10px;
  808. height: 20%;
  809. display: flex;
  810. flex-direction: row;
  811. align-items: center;
  812. width: calc(100% / 3 - 50px);
  813. }
  814. .all_choose>span {
  815. width: 50px;
  816. display: block;
  817. }
  818. .choose {
  819. display: flex;
  820. flex-direction: row;
  821. flex-wrap: wrap;
  822. align-content: space-between;
  823. height: 100%;
  824. justify-content: flex-start;
  825. width: 60%;
  826. min-width: 868px;
  827. align-items: center;
  828. }
  829. .choose>div:nth-child(2) {
  830. margin-left: 1%;
  831. width: 32.33333%;
  832. }
  833. /* .choose>div:nth-child(4) {
  834. margin-right: 1%;
  835. width: 32.33333%;
  836. } */
  837. .choose>div:nth-child(5) {
  838. margin: 5px 0 0 1%;
  839. }
  840. .choose>div:nth-child(4)>span {
  841. width: 74px !important;
  842. min-width: 74px;
  843. }
  844. .choose>div:nth-child(4)>>>.el-select {
  845. width: 217.5px;
  846. min-width: 215.06px;
  847. }
  848. .clear {
  849. width: 70px;
  850. height: 35px;
  851. background: #2268bc;
  852. color: #fff;
  853. text-align: center;
  854. border-radius: 5px;
  855. line-height: 35px;
  856. cursor: pointer;
  857. margin-left: 20px;
  858. }
  859. .ct_box {
  860. height: 500px;
  861. overflow: auto;
  862. display: flex;
  863. flex-wrap: wrap;
  864. }
  865. .myCourse {
  866. position: absolute;
  867. background: #3c3c3c;
  868. width: 70px;
  869. height: 30px;
  870. border-radius: 30px;
  871. color: #fff;
  872. font-size: 14px;
  873. text-align: center;
  874. line-height: 30px;
  875. top: 5px;
  876. left: 5px;
  877. }
  878. .xtCourse {
  879. position: absolute;
  880. background: #41a5f0;
  881. width: 70px;
  882. height: 30px;
  883. border-radius: 30px;
  884. color: #fff;
  885. font-size: 14px;
  886. text-align: center;
  887. line-height: 30px;
  888. top: 5px;
  889. left: 5px;
  890. }
  891. .subClick {
  892. font-size: 16px;
  893. cursor: pointer;
  894. margin-left: 10px;
  895. /* color: #ab582f; */
  896. color: #409eff;
  897. }
  898. .more {
  899. position: relative;
  900. }
  901. .more:hover div {
  902. display: block;
  903. color: #000;
  904. }
  905. .more div {
  906. position: absolute;
  907. bottom: 0px;
  908. transform: translate(-50%, 100%);
  909. background: #f5f4f4;
  910. padding: 10px 20px;
  911. z-index: 99;
  912. width: 40px;
  913. border-radius: 5px;
  914. box-shadow: 0 0 3px 3px #80808020;
  915. display: none;
  916. }
  917. .more div>span+span {
  918. margin-top: 10px;
  919. }
  920. .more div>span {
  921. display: block;
  922. width: 100%;
  923. text-align: center;
  924. }
  925. .more div>span:hover {
  926. color: #79a2ff;
  927. }
  928. </style>