course.vue 51 KB

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