course.vue 46 KB

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