scourse.vue 44 KB

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