course.vue 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501
  1. <template>
  2. <div class="pb_content" style="width: 94%; background: unset;"
  3. :style="{height: courseUrl ? '100vh' : 'auto', margin: courseUrl ? '0' : '10px auto', overflow: courseUrl ? 'hidden' : 'auto'}"
  4. :class="[gotype? 'liyuan':'']"
  5. >
  6. <backPage style="padding: 30px 0 0;" v-if="gotype" tit="课程管理"></backPage>
  7. <div style="width:100%;padding:0 21px;background:#fff;border-radius: 5px;box-sizing: border-box;" v-if="oid !== '3d2d45b1-703b-11f1-9985-005056924926'">
  8. <div class="pb_head top">
  9. <div v-if="!gotype" style="
  10. display: flex;
  11. align-items: center;
  12. ">
  13. <span class="sub_head">{{ lang.ssCourseMgmt }}</span>
  14. <span class="subClick" @click="
  15. goTo(
  16. '/works?userid=' +
  17. userid +
  18. '&oid=' +
  19. oid +
  20. '&org=' +
  21. org +
  22. '&role=' +
  23. role
  24. )
  25. ">{{ lang.ssEvalMgmt }}</span>
  26. </div>
  27. <div v-if="gotype"></div>
  28. <div class="student_button">
  29. <!-- <el-button type="primary" class="bgColor" @click="openCourse">协同编辑</el-button> -->
  30. <!-- <el-button type="primary" class="bgColor" @click="goToCourse3()">创建极简式课程</el-button>
  31. <el-button type="primary" class="bgColor" @click="goToCourse2()">创建任务式课程</el-button>
  32. <el-button type="primary" class="bgColor" @click="goToCourse()">创建阶段式课程</el-button> -->
  33. <button class="r_pub_button_course" @mouseenter="btnDisplay = true" @mouseleave="btnDisplay = false">
  34. <span>{{ lang.CreateCourse }}</span>
  35. <div v-show="btnDisplay" class="buttonBox">
  36. <div type="primary" @click="goToCourse3()">{{ lang.SimplifiedCourse }}</div>
  37. <!-- <div type="primary" @click="goToCourse2()">任务式课程</div> -->
  38. <!-- <div type="primary" @click="goToCourse()">阶段式课程</div> -->
  39. <div type="primary" @click="goToCourse4()">{{ lang.MultistageCourse }}</div>
  40. <div type="primary" @click="goToPptEasy()" v-show="pptArrayOrg.includes(org) || pptArrayOid.includes(oid)">{{ lang.PPTmode }}</div>
  41. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  42. <div type="primary" @click="oepnTemplate()" v-show="orgArray.includes(org) || oidArray.includes(oid)">{{ lang.AIMode }}</div>
  43. <div type="primary" @click="oepnTemplate2()" v-show="orgArray.includes(org) || oidArray.includes(oid)">{{ lang.Classroommode }}</div>
  44. <!-- oepnTemplate2 -->
  45. </div>
  46. </button>
  47. </div>
  48. </div>
  49. <div class="reBox">
  50. <div class="reTop">
  51. <!-- <div>分类筛选</div> -->
  52. <div class="reTopCh">
  53. <el-select v-model="groupA" @change="search" v-if="role == '1'">
  54. <el-option value="4" :label="lang.All"></el-option>
  55. <el-option value="2" :label="lang.MyCourse"></el-option>
  56. <el-option value="3" :label="lang.CollaborativeCourse"></el-option>
  57. <el-option value="1" :label="lang.OthersCourse"></el-option>
  58. </el-select>
  59. <el-select v-model="groupA" @change="search" v-else>
  60. <el-option value="0" :label="lang.All"></el-option>
  61. <el-option value="2" :label="lang.MyCourse"></el-option>
  62. <el-option value="3" :label="lang.CollaborativeCourse"></el-option>
  63. </el-select>
  64. <div class="searchI">
  65. <!-- @click="getCourse" -->
  66. <div class="search">
  67. <img src="../../assets/icon/search.png" alt="" />
  68. </div>
  69. <input class="sInput" type="text" :placeholder="lang.PleaseEnterKeyword" v-model="courseName" />
  70. </div>
  71. <el-button type="primary" class="bgColor" style="margin-left: 10px;" @click="reset">{{ lang.reset }}</el-button>
  72. </div>
  73. </div>
  74. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  75. <span><span>{{ lang.type }}</span></span>
  76. <el-radio-group v-model="pTypeCheckName" style="display: flex; align-items: center">
  77. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  78. <el-radio :label="item.name" @click.native.prevent="CourseType2Click(item.name)">{{ item.name }}</el-radio>
  79. </div>
  80. </el-radio-group>
  81. </div>
  82. <div class="choose">
  83. <template v-if="oid != '91796dfb-8791-11ef-9b30-005056b86db5'">
  84. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index"
  85. :style="{ margin: !CourseTypeJson[item.id].length && 0 }">
  86. <span v-if="CourseTypeJson[item.id].length &&
  87. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  88. ? pTypeCheck.indexOf(item.id) != -1
  89. : true)
  90. "><span>{{ item.name }}</span></span>
  91. <div class="typeCss" v-if="CourseTypeJson[item.id].length &&
  92. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  93. ? pTypeCheck.indexOf(item.id) != -1
  94. : true)
  95. ">
  96. <div class="cName" @click="getCourse2(item.name, '', item.id, 1)"
  97. :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''">
  98. {{ lang.All }}
  99. </div>
  100. <div class="cName" :class="typea == item1.id || typeb == item1.id || typed == item1.id ? 'isCType' : ''"
  101. v-for="(item1, index1) in CourseTypeJson[item.id]" :key="index + '-' + index1" :label="item1.id"
  102. @click="getCourse2(item.name, item.id, item1.id, 2)">
  103. {{ item1.name }}
  104. </div>
  105. </div>
  106. </div>
  107. </template>
  108. <div class="all_choose" v-if="role == '1'">
  109. <span><span>{{ lang.Owner }}</span></span>
  110. <div class="typeCss">
  111. <div class="cName" :class="groupA == '4' ? 'isCType' : ''" @click="groupA = '4'; search();">
  112. {{ lang.All }}
  113. </div>
  114. <div class="cName" :class="groupA == '2' ? 'isCType' : ''" @click="groupA = '2'; search();">
  115. {{ lang.MyCourse }}
  116. </div>
  117. <div class="cName" :class="groupA == '3' ? 'isCType' : ''" @click="groupA = '3'; search();">
  118. {{ lang.CollaborativeCourse }}
  119. </div>
  120. <div class="cName" :class="groupA == '1' ? 'isCType' : ''" @click="groupA = '1'; search();">
  121. {{ lang.OthersCourse }}
  122. </div>
  123. </div>
  124. </div>
  125. <div class="all_choose" v-else>
  126. <span><span>{{ lang.Owner }}</span></span>
  127. <div class="typeCss">
  128. <div class="cName" :class="groupA == '0' ? 'isCType' : ''" @click="groupA = '0'; search();">
  129. {{ lang.All }}
  130. </div>
  131. <div class="cName" :class="groupA == '2' ? 'isCType' : ''" @click="groupA = '2'; search();">
  132. {{ lang.MyCourse }}
  133. </div>
  134. <div class="cName" :class="groupA == '3' ? 'isCType' : ''" @click="groupA = '3'; search();">
  135. {{ lang.CollaborativeCourse }}
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <div class="line"></div>
  143. <div class="pb_content_body" style="height: 100%;width: 100%;background: #e6eaf0;margin: 0 auto;">
  144. <div class="student_head" v-if="false">
  145. <div class="choose">
  146. <div class="student_search">
  147. <span>{{ lang.Coursescreening }}</span>
  148. <el-select v-model="groupA" @change="search">
  149. <el-option value="0" :label="lang.MyCourse"></el-option>
  150. <el-option value="1" :label="lang.OthersCourse"></el-option>
  151. </el-select>
  152. </div>
  153. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  154. <span v-if="CourseTypeJson[item.id].length">{{ item.name }}</span>
  155. <el-select v-if="CourseTypeJson[item.id].length" v-model="courseTypeId[item.id]" :placeholder="lang.Pleaseselect"
  156. @change="getTypeName">
  157. <el-option :label="lang.All" value="1">{{ lang.All }}</el-option>
  158. <el-option v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.name" :value="item1.id">
  159. </el-option>
  160. </el-select>
  161. </div>
  162. <div @click="clear" class="clear">{{ lang.reset }}</div>
  163. </div>
  164. <div class="student_right">
  165. <div class="head_left">
  166. <el-input v-model="courseName" class="student_input" :placeholder="lang.entercoursename"></el-input>
  167. <el-button class="course_button" @click="searchCourse">{{ lang.Search }}</el-button>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="student_table" v-loading="isLoading">
  172. <div class="course_box">
  173. <div class="out_box" v-for="(item, index) in course" :key="index">
  174. <!-- <div class="myCourse" v-if="item.isCourseType == 1 && groupA == 0">
  175. 我的课程
  176. </div>
  177. <div class="myCourse" v-else-if="groupA == 1">
  178. 他人课程
  179. </div>
  180. <div class="xtCourse" v-else>协同课程</div> -->
  181. <div class="myCourse" v-if="item.userid == userid">{{ lang.MyCourse }}</div>
  182. <div class="myCourse" style="background: #4187f0" v-else-if="!item.course_teacher ||
  183. (item.course_teacher &&
  184. item.course_teacher.indexOf(userid) == -1)
  185. ">
  186. {{ lang.OthersCourse }}
  187. </div>
  188. <div class="xtCourse" v-else>{{ lang.CollaborativeCourse }}</div>
  189. <div class="tup" @click="get(item)">
  190. <img :src="item.cover != null && item.cover != ''
  191. ? JSON.parse(item.cover).length > 0
  192. ? JSON.parse(item.cover)[0].url
  193. : mr
  194. : mr
  195. " alt />
  196. </div>
  197. <!-- <div class="bottom_box">
  198. <div>{{ item.title }}</div>
  199. <div class="kc_t" v-if="groupA == '1'">
  200. 创建老师:{{ item.uname }}
  201. </div>
  202. <div class="kc_time">{{ item.time }}</div>
  203. </div> -->
  204. <div class="bottom_box">
  205. <div>
  206. <el-tooltip :content="item.title" popper-class="text_tooltip" placement="top" effect="dark">
  207. <span>{{ item.title }}</span>
  208. </el-tooltip>
  209. </div>
  210. <!-- v-if="item.isCourseType == 2 || groupA == 1" -->
  211. <div class="kc_t">
  212. <span>{{ item.uname }}</span>
  213. <span>{{ item.state == 1 ? lang.StageMode : item.state == 2 ? lang.TaskMode : item.state == 3 ? lang.MinimalMode : item.state == 6 ? lang.Classroommode : item.state == 7 ? lang.PPTmode : lang.AIMode }}</span>
  214. </div>
  215. <div class="kc_time">
  216. <span style="color: #717C8D">{{ lang.CreationDate }}:</span>{{ item.time }}
  217. </div>
  218. <div class="kc_time">
  219. <span style="color: #717C8D">{{ lang.ModificationDate }}:</span>{{ item.utime }}
  220. </div>
  221. </div>
  222. <div class="three_bottom">
  223. <el-tooltip effect="dark" :content="lang.Preview" placement="top">
  224. <div class="t_b_Item" @click="get(item)">
  225. <!-- <img style="height: 90%;width: 90%;" src="../../assets/icon/course/lookeye.svg"> -->
  226. <img style="height: 90%;width: 90%;" src="../../assets/see.svg">
  227. </div>
  228. </el-tooltip>
  229. <el-tooltip effect="dark" v-show="(orgArray.includes(org) || oidArray.includes(oid)) && item.state != 7" :content="lang.AiEdit" placement="top">
  230. <div v-if="lang.lang == 'cn'" class="t_b_Item" @click="aiCourse(item.courseId)">
  231. <img src="../../assets/icon/course/aiEdit.svg">
  232. </div>
  233. </el-tooltip>
  234. <el-tooltip effect="dark" :content="lang.Copy" placement="top">
  235. <div class="t_b_Item" @click="copyCourse(item.courseId, item.setting)">
  236. <img src="../../assets/icon/course/copy.svg">
  237. </div>
  238. </el-tooltip>
  239. <el-tooltip effect="dark" :content="lang.Edit" placement="top">
  240. <div class="t_b_Item" v-if="((item.userid == userid) ||
  241. (item.course_teacher &&
  242. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  243. item.state == 1
  244. " @click="goToCourse(item.courseId)">
  245. <img src="../../assets/icon/course/edit.svg">
  246. </div>
  247. <div class="t_b_Item" v-if="((item.userid == userid) ||
  248. (item.course_teacher &&
  249. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  250. item.state == 2
  251. " @click="goToCourse(item.courseId)">
  252. <img src="../../assets/icon/course/edit.svg">
  253. </div>
  254. <div class="t_b_Item" v-if="((item.userid == userid) ||
  255. (item.course_teacher &&
  256. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  257. item.state == 3
  258. " @click="goToCourse3(item.courseId)">
  259. <img src="../../assets/icon/course/edit.svg">
  260. </div>
  261. <div class="t_b_Item" v-if="((item.userid == userid) ||
  262. (item.course_teacher &&
  263. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  264. (item.state == 4 || item.state == 5)
  265. " @click="goToCourse5(item.courseId)">
  266. <img src="../../assets/icon/course/edit.svg">
  267. </div>
  268. <div class="t_b_Item" v-if="((item.userid == userid) ||
  269. (item.course_teacher &&
  270. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  271. (item.state == 6)
  272. " @click="goToCourse6(item.courseId)">
  273. <img src="../../assets/icon/course/edit.svg">
  274. </div>
  275. <div class="t_b_Item" v-if="((item.userid == userid) ||
  276. (item.course_teacher &&
  277. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  278. (item.state == 7)
  279. " @click="goToPptEasy(item.courseId)">
  280. <img src="../../assets/icon/course/edit.svg">
  281. </div>
  282. </el-tooltip>
  283. <el-tooltip effect="dark" :content="lang.Delete" placement="top" v-if="item.isCourseType == 1 || role == '1'">
  284. <div class="t_b_Item" @click="deleteCourse(item.courseId)">
  285. <img src="../../assets/icon/course/del.svg">
  286. </div>
  287. </el-tooltip>
  288. <el-tooltip effect="dark" :content="lang.Share" placement="top" v-if="item.state != 7">
  289. <div class="t_b_Item" @click="shareCourse(item.courseId)">
  290. <img src="../../assets/icon/course/share.svg">
  291. </div>
  292. </el-tooltip>
  293. <!-- v-if="role == '1'" -->
  294. <!-- <div @click="get(item)">预览</div> -->
  295. <!-- <div @click="jump(item.courseId)" v-else>评课</div> -->
  296. <!-- <div v-if="((item.userid == userid) ||
  297. (item.course_teacher &&
  298. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  299. item.state == 1
  300. " @click="goToCourse(item.courseId)">
  301. 修改
  302. </div>
  303. <div v-if="((item.userid == userid) ||
  304. (item.course_teacher &&
  305. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  306. item.state == 2
  307. " @click="goToCourse(item.courseId)">
  308. 修改
  309. </div>
  310. <div v-if="((item.userid == userid) ||
  311. (item.course_teacher &&
  312. item.course_teacher.indexOf(userid) !== -1) || role == '1') &&
  313. item.state == 3
  314. " @click="goToCourse3(item.courseId)">
  315. 修改
  316. </div> -->
  317. <!-- <div v-if="groupA == '0'" @click="
  318. goTo(
  319. '/works?cid=' +
  320. item.courseId +
  321. '&userid=' +
  322. userid +
  323. '&oid=' +
  324. oid +
  325. '&org=' +
  326. org +
  327. '&role=' +
  328. role
  329. )
  330. ">
  331. 评价
  332. </div> -->
  333. <!-- <div @click="copyCourse(item.courseId)">
  334. 复制
  335. </div>
  336. <div v-if="item.isCourseType == 1 || role == '1'" @click="deleteCourse(item.courseId)">
  337. 删除
  338. </div> -->
  339. <!-- <div class="more">
  340. <span style="font-size: 18px; font-weight: 700">...</span>
  341. <div>
  342. <span @click="copyCourse(item.courseId)">复制</span>
  343. <span @click="jump(item.courseId)" v-if="role == '1'">评课</span>
  344. <span @click="get(item.courseId)" v-else>预览</span>
  345. <span @click="getNT(item.courseId)">无终端</span>
  346. </div>
  347. </div> -->
  348. </div>
  349. </div>
  350. <div class="course_empty" v-if="course.length == 0">{{ lang.Nodata }}</div>
  351. </div>
  352. </div>
  353. </div>
  354. <div class="student_page">
  355. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  356. v-if="page && course.length" style="padding-bottom: 20px" @current-change="handleCurrentChange"></el-pagination>
  357. </div>
  358. <el-dialog :visible.sync="dialogVisible1" size="tiny">
  359. <img width="100%" :src="dialogImageUrl" alt />
  360. </el-dialog>
  361. <el-dialog :title="lang.ViewQuestions" :visible.sync="dialogVisible" :append-to-body="true" width="750px" :before-close="handleClose"
  362. class="dialog_diy">
  363. <div>
  364. <div class="a_addBox">
  365. <CourseProblem :problemCourse="problemCourse"></CourseProblem>
  366. </div>
  367. </div>
  368. <span slot="footer" class="dialog-footer">
  369. <el-button @click="dialogVisible = false">{{ lang.Close }}</el-button>
  370. </span>
  371. </el-dialog>
  372. <el-dialog :title="lang.ViewCollaborativeCourse" :visible.sync="dialogVisibleCourse" :append-to-body="true" width="850px"
  373. :before-close="handleClose" class="dialog_diy">
  374. <div class="ct_box">
  375. <div class="out_box" v-for="(item, index) in courseTeam" :key="index" style="margin-left: 15px">
  376. <div class="tup">
  377. <img :src="item.cover != null && item.cover != ''
  378. ? JSON.parse(item.cover).length > 0
  379. ? JSON.parse(item.cover)[0].url
  380. : mr
  381. : mr
  382. " alt />
  383. </div>
  384. <div class="bottom_box">
  385. <div>{{ item.title }}</div>
  386. <div class="kc_t">{{ lang.CreateTeacher }}:{{ item.uname }}</div>
  387. <div class="kc_time">{{ item.time }}</div>
  388. </div>
  389. <div class="three_bottom">
  390. <div @click="jump(item.courseId)">{{ lang.ViewContent }}</div>
  391. <div @click="
  392. goTo(
  393. '/course/addCourse?cid=' +
  394. item.courseId +
  395. '&userid=' +
  396. userid +
  397. '&oid=' +
  398. oid +
  399. '&org=' +
  400. org
  401. )
  402. ">
  403. {{ lang.edit }}
  404. </div>
  405. </div>
  406. </div>
  407. <div class="course_empty" v-if="courseTeam.length == 0">{{ lang.Nodata }}</div>
  408. </div>
  409. <span slot="footer" class="dialog-footer">
  410. <el-button @click="dialogVisibleCourse = false">{{ lang.Close }}</el-button>
  411. </span>
  412. </el-dialog>
  413. <shareDialog ref="shareDialogRef"/>
  414. <templateDialog :dialogVisibleTemplate.sync="dialogVisibleTemplate" :userid="userid" :org="org" :oid="oid" @goToCourseTemplate="goToCourseTemplate" @goToCourseTemplate2="goToCourseTemplate2"></templateDialog>
  415. <templateDialogE :dialogVisibleTemplate.sync="dialogVisibleTemplate2" :userid="userid" :org="org" :oid="oid" @goToCourseTemplate="goToCourseTemplateE" @goToCourseTemplate2="goToCourseTemplate2E"></templateDialogE>
  416. <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read" :webkitallowfullscreen="true" :mozallowfullscreen="true" :allowfullscreen="true" :src="courseUrl" class="courseIframe" v-if="courseUrl"></iframe>
  417. </div>
  418. </template>
  419. <script>
  420. import "../../common/aws-sdk-2.235.1.min";
  421. import EditorBar from "../../components/tools/wangEnduit";
  422. import CourseProblem from "./components/courseProblem";
  423. import shareDialog from './dialog/shareDialog.vue'
  424. import templateDialog from "./aiAddCourse/templateDialog.vue";
  425. import templateDialogE from "./aiEasy/templateDialog.vue";
  426. import { v4 as uuidv4 } from "uuid";
  427. import { myMixin } from "@/mixins/mixin.js"
  428. import backPage from "./liyuan/components/backPage.vue";
  429. import { result } from "lodash";
  430. export default {
  431. components: { EditorBar, CourseProblem,shareDialog,templateDialog,templateDialogE,backPage },
  432. mixins: [ myMixin ],
  433. data() {
  434. return {
  435. gotype:(window.topU && window.topU.gotype) ? window.topU.gotype : '',
  436. itemCount: 1,
  437. courseTitle: "",
  438. courseText: "",
  439. courseTime: "",
  440. isLoading: false,
  441. fileList: [],
  442. fileList1: [],
  443. homeworkList: [{ name: "" }],
  444. formLabelWidth: "100px",
  445. dialogVisible: false,
  446. dialogVisible1: false,
  447. dialogVisibleCourse: false,
  448. dialogImageUrl: "",
  449. group: "",
  450. userid: this.$route.query.userid,
  451. oid: this.$route.query.oid,
  452. org: this.$route.query.org,
  453. role: this.$route.query.role,
  454. Juri: "",
  455. groupList: [],
  456. JuriList: [],
  457. page: 1,
  458. total: 0,
  459. pageSize: 20,
  460. tableData: [],
  461. now: "",
  462. courseDetail: {},
  463. addCourse: {},
  464. groupA: "0",
  465. classX: "",
  466. course: [],
  467. courseName: "",
  468. mr: require("../../assets/icon/kc1.png"),
  469. CourseType: [],
  470. CourseType2: [],
  471. CourseTypeJson: {},
  472. courseTypeId: {},
  473. courseTypeSon: [],
  474. isChoose: 0,
  475. problemCourse: null, //查看提问的课程
  476. courseTeam: [],
  477. typeE: [],
  478. typea: "",
  479. typeb: "",
  480. typed: "",
  481. pTypeCheck: [],
  482. pTypeCheckName: [],
  483. btnDisplay: false,
  484. dialogVisibleTemplate: false,
  485. dialogVisibleTemplate2: false,
  486. orgArray:[],
  487. oidArray:[],
  488. pptArrayOrg:[],
  489. pptArrayOid:[],
  490. courseUrl: "",
  491. };
  492. },
  493. watch: {
  494. courseName(newValue, oldValue) {
  495. this.searchCourse()
  496. }
  497. },
  498. methods: {
  499. getAIJ(){
  500. this.ajax
  501. .get(this.$store.state.api + "getAIJ", "")
  502. .then((res) => {
  503. let oid = res.data[0];
  504. let org = res.data[1];
  505. let pptOid = res.data[2];
  506. let pptOrg = res.data[3];
  507. let oidArray = []
  508. let orgArray = []
  509. let pptOidArray = []
  510. let pptOrgArray = []
  511. for(var i = 0; i < oid.length; i++){
  512. oidArray.push(oid[i].oid)
  513. }
  514. for(var i = 0; i < org.length; i++){
  515. orgArray.push(org[i].oid)
  516. }
  517. for(var i = 0; i < pptOid.length; i++){
  518. pptOidArray.push(pptOid[i].oid)
  519. }
  520. for(var i = 0; i < pptOrg.length; i++){
  521. pptOrgArray.push(pptOrg[i].oid)
  522. }
  523. this.orgArray = orgArray
  524. this.oidArray = oidArray
  525. this.pptArrayOid = pptOidArray
  526. this.pptArrayOrg = pptOrgArray
  527. })
  528. .catch((err) => {
  529. console.error(err);
  530. });
  531. },
  532. // 分析按钮
  533. shareCourse(courseId){
  534. this.$refs.shareDialogRef.open(courseId)
  535. },
  536. change(val) {
  537. console.log(val);
  538. },
  539. time() {
  540. if (!this.now) {
  541. this.now = new Date().getTime();
  542. return true;
  543. } else {
  544. let time = new Date().getTime();
  545. if (time - this.now > 3000) {
  546. this.now = time;
  547. return true;
  548. } else {
  549. return false;
  550. }
  551. }
  552. },
  553. addHomeworkBox() {
  554. this.homeworkList.push({ name: "" });
  555. this.itemCount++;
  556. },
  557. reduceHomeworkBox() {
  558. var a = this.homeworkList;
  559. a.splice(a.length - 1);
  560. this.itemCount--;
  561. },
  562. goTo(path) {
  563. this.$router.push(path);
  564. },
  565. CourseType2Change(val) {
  566. this.pTypeCheck = [];
  567. for (var i = 0; i < this.CourseType2.length; i++) {
  568. let typeA = this.CourseType2[i];
  569. if (val.indexOf(typeA.name) != -1) {
  570. this.pTypeCheck.push(...typeA.id);
  571. }
  572. }
  573. this.typea = "";
  574. this.typeb = "";
  575. this.typed = "";
  576. this.getCourse();
  577. },
  578. CourseType2Click(val) {
  579. this.pTypeCheck = [];
  580. this.typeE = [];
  581. if (val === this.pTypeCheckName) {
  582. this.pTypeCheckName = "";
  583. } else {
  584. this.pTypeCheckName = val;
  585. for (var i = 0; i < this.CourseType2.length; i++) {
  586. let typeA = this.CourseType2[i];
  587. if (val.indexOf(typeA.name) != -1) {
  588. this.pTypeCheck.push(...typeA.id);
  589. this.typeE = [...typeA.id];
  590. }
  591. }
  592. }
  593. this.typea = "";
  594. this.typeb = "";
  595. this.typed = "";
  596. this.getCourse();
  597. },
  598. goToCourse(courseId) {
  599. // if(this.org !== '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  600. // if (courseId) {
  601. // this.$router.push(
  602. // "/course/addCourse?cid=" +
  603. // courseId +
  604. // "&userid=" +
  605. // this.userid +
  606. // "&oid=" +
  607. // this.oid +
  608. // "&org=" +
  609. // this.org +
  610. // "&role=" +
  611. // this.role
  612. // );
  613. // } else {
  614. // this.$router.push(
  615. // "/course/addCourse?userid=" +
  616. // this.userid +
  617. // "&oid=" +
  618. // this.oid +
  619. // "&org=" +
  620. // this.org +
  621. // "&role=" +
  622. // this.role
  623. // );
  624. // }
  625. // }else{
  626. this.goToCourse4(courseId)
  627. // }
  628. // this.$router.push(path);
  629. },
  630. async goToCourse4(courseId) {
  631. if (courseId) {
  632. this.$router.push(
  633. "/newAddCourse?cid=" +
  634. courseId +
  635. "&userid=" +
  636. this.userid +
  637. "&oid=" +
  638. this.oid +
  639. "&org=" +
  640. this.org +
  641. "&role=" +
  642. this.role
  643. );
  644. this.addOp3('1', "", { courseid: courseId ,type: "course_stageMode_edit" }, "success")
  645. } else {
  646. let classResult = await this.checkClass()
  647. if(classResult == 1){
  648. this.$message.error(this.lang.ssCreateCourseLimit)
  649. return
  650. }
  651. this.$router.push(
  652. "/newAddCourse?userid=" +
  653. this.userid +
  654. "&oid=" +
  655. this.oid +
  656. "&org=" +
  657. this.org +
  658. "&role=" +
  659. this.role
  660. );
  661. this.addOp3('1', "", { type: "course_stageMode_createClick" }, "success")
  662. }
  663. // this.$router.push(path);
  664. },
  665. oepnTemplate(){
  666. // this.goToCourseTemplate('');
  667. this.dialogVisibleTemplate = true;
  668. },
  669. oepnTemplate2(){
  670. this.dialogVisibleTemplate2 = true;
  671. },
  672. goToCourseTemplate(tid){
  673. this.$router.push(
  674. "/aiAddCourse?userid=" +
  675. this.userid +
  676. "&oid=" +
  677. this.oid +
  678. "&org=" +
  679. this.org +
  680. "&role=" +
  681. this.role +
  682. "&templateid=" +
  683. tid
  684. );
  685. this.addOp3('1', "", { type: "course_aiStageMode_createClick" }, "success")
  686. },
  687. goToCourseTemplate2(tid){
  688. if(tid){
  689. this.$router.push(
  690. "/aiAddCourse?userid=" +
  691. this.userid +
  692. "&oid=" +
  693. this.oid +
  694. "&org=" +
  695. this.org +
  696. "&role=" +
  697. this.role +
  698. "&templateid=" +
  699. tid +
  700. "&istemplate=1"
  701. );
  702. }else{
  703. this.$router.push(
  704. "/aiAddCourse?userid=" +
  705. this.userid +
  706. "&oid=" +
  707. this.oid +
  708. "&org=" +
  709. this.org +
  710. "&role=" +
  711. this.role +
  712. "&templateid=" +
  713. "&istemplate=1"
  714. );
  715. }
  716. this.addOp3('1', "", { type: "course_aiMode_createClick" }, "success")
  717. },
  718. async goToCourse5(courseId) {
  719. if (courseId) {
  720. this.$router.push(
  721. "/aiAddCourse?cid=" +
  722. courseId +
  723. "&userid=" +
  724. this.userid +
  725. "&oid=" +
  726. this.oid +
  727. "&org=" +
  728. this.org +
  729. "&role=" +
  730. this.role
  731. );
  732. this.addOp3('1', "", { courseid: courseId ,type: "course_aiMode_edit" }, "success")
  733. } else {
  734. let classResult = await this.checkClass()
  735. if(classResult == 1){
  736. this.$message.error(this.lang.ssCreateCourseLimit)
  737. return
  738. }
  739. this.$router.push(
  740. "/aiAddCourse?userid=" +
  741. this.userid +
  742. "&oid=" +
  743. this.oid +
  744. "&org=" +
  745. this.org +
  746. "&role=" +
  747. this.role
  748. );
  749. }
  750. // this.$router.push(path);
  751. },
  752. goToCourseTemplateE(tid){
  753. this.$router.push(
  754. "/addCourseEAi?userid=" +
  755. this.userid +
  756. "&oid=" +
  757. this.oid +
  758. "&org=" +
  759. this.org +
  760. "&role=" +
  761. this.role +
  762. "&templateid=" +
  763. tid
  764. );
  765. },
  766. goToCourseTemplate2E(tid){
  767. if(tid){
  768. this.$router.push(
  769. "/addCourseEAi?userid=" +
  770. this.userid +
  771. "&oid=" +
  772. this.oid +
  773. "&org=" +
  774. this.org +
  775. "&role=" +
  776. this.role +
  777. "&templateid=" +
  778. tid +
  779. "&istemplate=1"
  780. );
  781. }else{
  782. this.$router.push(
  783. "/addCourseEAi?userid=" +
  784. this.userid +
  785. "&oid=" +
  786. this.oid +
  787. "&org=" +
  788. this.org +
  789. "&role=" +
  790. this.role +
  791. "&templateid=" +
  792. "&istemplate=1"
  793. );
  794. }
  795. this.addOp3('1', "", { type: "course_aiEasyMode_createClick" }, "success")
  796. },
  797. async goToCourse6(courseId){
  798. if (courseId) {
  799. this.$router.push(
  800. "/addCourseEAi?cid=" +
  801. courseId +
  802. "&userid=" +
  803. this.userid +
  804. "&oid=" +
  805. this.oid +
  806. "&org=" +
  807. this.org +
  808. "&role=" +
  809. this.role
  810. );
  811. this.addOp3('1', "", { courseid: courseId ,type: "course_aiEasyMode_edit" }, "success")
  812. } else {
  813. let classResult = await this.checkClass()
  814. if(classResult == 1){
  815. this.$message.error(this.lang.ssCreateCourseLimit)
  816. return
  817. }
  818. this.$router.push(
  819. "/addCourseEAi?userid=" +
  820. this.userid +
  821. "&oid=" +
  822. this.oid +
  823. "&org=" +
  824. this.org +
  825. "&role=" +
  826. this.role
  827. );
  828. }
  829. },
  830. aiCourse(courseId){
  831. this.$router.push(
  832. "/aiAddCourse?userid=" +
  833. this.userid +
  834. "&oid=" +
  835. this.oid +
  836. "&org=" +
  837. this.org +
  838. "&role=" +
  839. this.role +
  840. "&aiId=" +
  841. courseId
  842. );
  843. },
  844. reset() {
  845. this.typeE = []
  846. this.typea = ''
  847. this.typeb = ''
  848. this.typed = ''
  849. this.courseName = ''
  850. if (this.role == "1") {
  851. this.groupA = "4";
  852. } else {
  853. this.groupA = "0";
  854. }
  855. this.getCourse();
  856. },
  857. async goToCourse2(courseId) {
  858. if (courseId) {
  859. this.$router.push(
  860. "/course/addCourseT?cid=" +
  861. courseId +
  862. "&userid=" +
  863. this.userid +
  864. "&oid=" +
  865. this.oid +
  866. "&org=" +
  867. this.org +
  868. "&role=" +
  869. this.role
  870. );
  871. } else {
  872. let classResult = await this.checkClass()
  873. if(classResult == 1){
  874. this.$message.error(this.lang.ssCreateCourseLimit)
  875. return
  876. }
  877. this.$router.push(
  878. "/course/addCourseT?userid=" +
  879. this.userid +
  880. "&oid=" +
  881. this.oid +
  882. "&org=" +
  883. this.org +
  884. "&role=" +
  885. this.role
  886. );
  887. }
  888. },
  889. async goToCourse3(courseId) {
  890. if (courseId) {
  891. this.$router.push(
  892. "/course/addCourseE?cid=" +
  893. courseId +
  894. "&userid=" +
  895. this.userid +
  896. "&oid=" +
  897. this.oid +
  898. "&org=" +
  899. this.org +
  900. "&role=" +
  901. this.role
  902. );
  903. this.addOp3('1', "", { courseid: courseId ,type: "course_easyMode_edit" }, "success")
  904. } else {
  905. let classResult = await this.checkClass()
  906. if(classResult == 1){
  907. this.$message.error(this.lang.ssCreateCourseLimit)
  908. return
  909. }
  910. this.$router.push(
  911. "/course/addCourseE?userid=" +
  912. this.userid +
  913. "&oid=" +
  914. this.oid +
  915. "&org=" +
  916. this.org +
  917. "&role=" +
  918. this.role
  919. );
  920. this.addOp3('1', "", { type: "course_easyMode_createClick" }, "success")
  921. }
  922. },
  923. tableRowClassName({ row, rowIndex }) {
  924. if ((rowIndex + 1) % 2 === 0) {
  925. return "even_row";
  926. } else {
  927. return "";
  928. }
  929. },
  930. jump(cid) {
  931. // window.open(
  932. // "//pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?courseId=" +
  933. // cid +
  934. // "&userid=" +
  935. // this.userid
  936. // );
  937. window.topU.postMessage({ cid: cid, screenType: "2" }, "*");
  938. },
  939. get(item) {
  940. let _str = ""
  941. if(item.state == 1){
  942. _str = "course_stageMode_open"
  943. }if(item.state == 2){
  944. _str = "course_taskMode_open"
  945. }if(item.state == 3){
  946. _str = "course_easyMode_open"
  947. }if(item.state == 5){
  948. _str = "course_aiMode_open"
  949. }if(item.state == 6){
  950. _str = "course_aiEasyMode_open"
  951. }if(item.state == 7){
  952. _str = "course_pptMode_open"
  953. }
  954. this.addOp3('1', "", { courseid: item.courseId, type: _str }, "success")
  955. // window.topU.postMessage({ cid: item.courseId, screenType: "3" }, "*");
  956. let url = 'https://beta.pbl.cocorobo.cn'
  957. if (window.location.href.includes('beta')) {
  958. url = url
  959. }
  960. else if (this.lang.lang === 'cn') {
  961. url = 'https://pbl.cocorobo.cn'
  962. }
  963. else if (this.lang.lang === 'hk') {
  964. url = 'https://pbl.cocorobo.hk'
  965. }
  966. else if (this.lang.lang === 'com') {
  967. url = 'https://pbl.cocorobo.com'
  968. }
  969. this.courseUrl = url + "/pbl-student-table/dist/#/courseDetail?userid=" + this.userid + "&oid=" + this.oid + "&org=" + this.org + "&courseId=" + item.courseId + "&tType=1&cid=&screenType=2"
  970. },
  971. getNT(cid) {
  972. window.topU.postMessage({ cid: cid, screenType: "3NT" }, "*");
  973. },
  974. handle_remove(file, fileList) {
  975. var _tmp = this.fileList;
  976. for (var i = 0, len = _tmp.length; i < len; i++) {
  977. if (_tmp[i].uid == file.uid) {
  978. _tmp.splice(i, 1);
  979. break;
  980. }
  981. this.fileList = _tmp;
  982. }
  983. },
  984. handle_remove1(file, fileList) {
  985. var _tmp = this.fileList1;
  986. for (var i = 0, len = _tmp.length; i < len; i++) {
  987. if (_tmp[i].uid == file.uid) {
  988. _tmp.splice(i, 1);
  989. break;
  990. }
  991. this.fileList1 = _tmp;
  992. }
  993. },
  994. handleCurrentChange(val) {
  995. // console.log(`当前页: ${val}`);
  996. this.page = val;
  997. this.getCourse();
  998. },
  999. init() { },
  1000. handleClose(done) {
  1001. done();
  1002. },
  1003. handleRemove(file, fileList) {
  1004. console.log(file, fileList);
  1005. },
  1006. handlePictureCardPreview(file) {
  1007. this.dialogImageUrl = file.url;
  1008. this.dialogVisible1 = true;
  1009. },
  1010. onExceed() {
  1011. this.$message.error(this.lang.deletebeforeuploading);
  1012. },
  1013. //uuid生成
  1014. guid() {
  1015. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
  1016. /[xy]/g,
  1017. function (c) {
  1018. var r = (Math.random() * 16) | 0,
  1019. v = c == "x" ? r : (r & 0x3) | 0x8;
  1020. return v.toString(16);
  1021. }
  1022. );
  1023. },
  1024. time() {
  1025. if (!this.now) {
  1026. this.now = new Date().getTime();
  1027. return true;
  1028. } else {
  1029. let time = new Date().getTime();
  1030. if (time - this.now > 3000) {
  1031. this.now = time;
  1032. return true;
  1033. } else {
  1034. return false;
  1035. }
  1036. }
  1037. },
  1038. searchCourse() {
  1039. this.page = 1;
  1040. this.getCourse();
  1041. },
  1042. clear() {
  1043. for (var i = 0; i < this.CourseType[0].length; i++) {
  1044. this.courseTypeId[this.CourseType[0][i].id] = "";
  1045. }
  1046. this.getCourse();
  1047. },
  1048. getCourse2(typeName, ftypeId, typeid, type) {
  1049. this.page = 1;
  1050. 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") {
  1051. if (type == 1) {
  1052. if (this.typeE.indexOf(typeid) != -1) {
  1053. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1054. return;
  1055. } else {
  1056. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  1057. }
  1058. } else {
  1059. this.typeE.push(typeid);
  1060. if (this.typea != "") {
  1061. this.typea = "";
  1062. }
  1063. }
  1064. } else {
  1065. if (this.typea == typeid) {
  1066. this.typea = "";
  1067. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1068. this.typeE.push(ftypeId);
  1069. }
  1070. } else {
  1071. this.typea = typeid;
  1072. if (this.typeE.indexOf(ftypeId) != -1) {
  1073. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  1074. }
  1075. }
  1076. }
  1077. } else if (typeName == this.lang.specialcolumn) {
  1078. if (type == 1) {
  1079. if (this.typeE.indexOf(typeid) != -1) {
  1080. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1081. return;
  1082. } else {
  1083. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  1084. }
  1085. } else {
  1086. this.typeE.push(typeid);
  1087. if (this.typeb != "") {
  1088. this.typeb = "";
  1089. }
  1090. }
  1091. } else {
  1092. if (this.typeb == typeid) {
  1093. this.typeb = "";
  1094. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1095. this.typeE.push(ftypeId);
  1096. }
  1097. } else {
  1098. this.typeb = typeid;
  1099. if (this.typeE.indexOf(ftypeId) != -1) {
  1100. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  1101. }
  1102. }
  1103. }
  1104. } else if (typeName == this.lang.column) {
  1105. if (type == 1) {
  1106. if (this.typeE.indexOf(typeid) != -1) {
  1107. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1108. return;
  1109. } else {
  1110. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  1111. }
  1112. } else {
  1113. this.typeE.push(typeid);
  1114. if (this.typeb != "") {
  1115. this.typeb = "";
  1116. }
  1117. }
  1118. } else {
  1119. if (this.typeb == typeid) {
  1120. this.typeb = "";
  1121. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1122. this.typeE.push(ftypeId);
  1123. }
  1124. } else {
  1125. this.typeb = typeid;
  1126. if (this.typeE.indexOf(ftypeId) != -1) {
  1127. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  1128. }
  1129. }
  1130. }
  1131. } else if (typeid == "34629bcc-d02f-11ec-8c78-005056b86db5" || ftypeId == '34629bcc-d02f-11ec-8c78-005056b86db5') {
  1132. if (type == 1) {
  1133. if (this.typeE.indexOf(typeid) != -1) {
  1134. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1135. return;
  1136. } else {
  1137. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  1138. }
  1139. } else {
  1140. this.typeE.push(typeid);
  1141. if (this.typeb != "") {
  1142. this.typeb = "";
  1143. }
  1144. }
  1145. } else {
  1146. if (this.typeb == typeid) {
  1147. this.typeb = "";
  1148. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1149. this.typeE.push(ftypeId);
  1150. }
  1151. } else {
  1152. this.typeb = typeid;
  1153. if (this.typeE.indexOf(ftypeId) != -1) {
  1154. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  1155. }
  1156. }
  1157. }
  1158. } else if (typeName == this.lang.college) {
  1159. if (type == 1) {
  1160. if (this.typeE.indexOf(typeid) != -1) {
  1161. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1162. return;
  1163. } else {
  1164. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  1165. }
  1166. } else {
  1167. this.typeE.push(typeid);
  1168. if (this.typeb != "") {
  1169. this.typeb = "";
  1170. }
  1171. }
  1172. } else {
  1173. if (this.typeb == typeid) {
  1174. this.typeb = "";
  1175. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1176. this.typeE.push(ftypeId);
  1177. }
  1178. } else {
  1179. this.typeb = typeid;
  1180. if (this.typeE.indexOf(ftypeId) != -1) {
  1181. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  1182. }
  1183. }
  1184. }
  1185. } 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") {
  1186. if (type == 1) {
  1187. if (this.typeE.indexOf(typeid) != -1) {
  1188. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1189. return;
  1190. } else {
  1191. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  1192. }
  1193. } else {
  1194. this.typeE.push(typeid);
  1195. if (this.typed != "") {
  1196. this.typed = "";
  1197. }
  1198. }
  1199. } else {
  1200. if (this.typed == typeid) {
  1201. this.typed = "";
  1202. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1203. this.typeE.push(ftypeId);
  1204. }
  1205. } else {
  1206. this.typed = typeid;
  1207. if (this.typeE.indexOf(ftypeId) != -1) {
  1208. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  1209. }
  1210. }
  1211. }
  1212. }
  1213. // this.loading = true;
  1214. this.getCourse();
  1215. },
  1216. getCourse() {
  1217. // if (!this.loading) {
  1218. // this.loading = this.openLoading(
  1219. // document.querySelector(".student_table")
  1220. // );
  1221. // }
  1222. // var typeE = [];
  1223. // var typea, typeb, typec, typed;
  1224. // if (this.isChoose == 1) {
  1225. // for (var i = 0; i < this.CourseType[0].length; i++) {
  1226. // if (this.courseTypeId[this.CourseType[0][i].id] == "1") {
  1227. // typeE.push(this.CourseType[0][i].id);
  1228. // } else if (this.courseTypeId[this.CourseType[0][i].id] != "") {
  1229. // if (this.CourseType[0][i].name == "年级") {
  1230. // typea = this.courseTypeId[this.CourseType[0][i].id];
  1231. // } else if (this.CourseType[0][i].name == "专栏") {
  1232. // typeb = this.courseTypeId[this.CourseType[0][i].id];
  1233. // } else if (this.CourseType[0][i].name == "栏目") {
  1234. // typeb = this.courseTypeId[this.CourseType[0][i].id];
  1235. // } else if (this.CourseType[0][i].name == "学院") {
  1236. // typeb = this.courseTypeId[this.CourseType[0][i].id];
  1237. // } else if (this.CourseType[0][i].name == "主题") {
  1238. // typeb = this.courseTypeId[this.CourseType[0][i].id];
  1239. // } else if (this.CourseType[0][i].name == "新技能") {
  1240. // typec = this.courseTypeId[this.CourseType[0][i].id];
  1241. // } else if (this.CourseType[0][i].name == "学科") {
  1242. // typed = this.courseTypeId[this.CourseType[0][i].id];
  1243. // }
  1244. // this.courseTypeSon.push(
  1245. // this.courseTypeId[this.CourseType[0][i].id]
  1246. // );
  1247. // }
  1248. // }
  1249. // }
  1250. console.log("typea", this.typea);
  1251. this.isLoading = true;
  1252. let params = {
  1253. type: this.groupA,
  1254. uid: this.userid,
  1255. oid: this.oid,
  1256. org: this.org,
  1257. typea: this.typea != undefined ? this.typea : "",
  1258. typeb: this.typeb != undefined ? this.typeb : "",
  1259. typec: "",
  1260. typed: this.typed != undefined ? this.typed : "",
  1261. typeE: this.typeE.join(","),
  1262. cu: "",
  1263. cn: this.courseName,
  1264. page: this.page,
  1265. pageSize: this.pageSize,
  1266. };
  1267. this.ajax
  1268. .get(this.$store.state.api + "selectCourseNew2", params)
  1269. .then((res) => {
  1270. // this.loading.close();
  1271. // this.loading = "";
  1272. this.isLoading = false;
  1273. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1274. this.course = res.data[0];
  1275. })
  1276. .catch((err) => {
  1277. console.error(err);
  1278. });
  1279. },
  1280. getCourse3() {
  1281. console.log("typea", this.typea);
  1282. // this.isLoading = true;
  1283. let params = {
  1284. type: this.groupA,
  1285. uid: this.userid,
  1286. oid: this.oid,
  1287. org: this.org,
  1288. typea: this.typea != undefined ? this.typea : "",
  1289. typeb: this.typeb != undefined ? this.typeb : "",
  1290. typec: "",
  1291. typed: this.typed != undefined ? this.typed : "",
  1292. typeE: this.typeE.join(","),
  1293. cu: "",
  1294. cn: this.courseName,
  1295. page: this.page,
  1296. pageSize: this.pageSize,
  1297. };
  1298. this.ajax
  1299. .get(this.$store.state.api + "selectCourseNew2", params)
  1300. .then((res) => {
  1301. // this.loading.close();
  1302. // this.loading = "";
  1303. // this.isLoading = false;
  1304. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1305. this.course = res.data[0];
  1306. })
  1307. .catch((err) => {
  1308. console.error(err);
  1309. });
  1310. },
  1311. getTypeName() {
  1312. this.$forceUpdate();
  1313. this.page = 1;
  1314. this.isChoose = 1;
  1315. this.getCourse();
  1316. },
  1317. // searchCourse() {
  1318. // this.isLoading = true;
  1319. // let params = {
  1320. // cu: "",
  1321. // cn: this.courseName,
  1322. // page: this.page,
  1323. // };
  1324. // this.ajax
  1325. // .get(this.$store.state.api + "searchCourse", params)
  1326. // .then((res) => {
  1327. // this.isLoading = false;
  1328. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1329. // this.course = res.data[0];
  1330. // })
  1331. // .catch((err) => {
  1332. // this.isLoading = false;
  1333. // console.error(err);
  1334. // });
  1335. // },
  1336. deleteCourse(cid) {
  1337. // if (this.time()) {
  1338. this.$confirm(this.lang.deletethiscourse, this.lang.tip, {
  1339. confirmButtonText: this.lang.Confirm,
  1340. cancelButtonText: this.lang.Cancel,
  1341. type: "warning",
  1342. })
  1343. .then(() => {
  1344. // const loading = this.openLoading(
  1345. // document.querySelector(".student_table")
  1346. // );
  1347. this.isLoading = true;
  1348. let params = {
  1349. cid: cid,
  1350. };
  1351. this.ajax
  1352. .get(this.$store.state.api + "deleteCourse", params)
  1353. .then((res) => {
  1354. // loading.close();
  1355. this.isLoading = false;
  1356. this.$message.success(this.lang.DeleteSuccessful);
  1357. this.getCourse();
  1358. })
  1359. .catch((err) => {
  1360. console.error(err);
  1361. });
  1362. })
  1363. .catch(() => {
  1364. loading.close();
  1365. this.isLoading = false;
  1366. return;
  1367. });
  1368. // }
  1369. },
  1370. selectAllType() {
  1371. let params = {
  1372. org: this.org && this.org != "" ? this.org : "",
  1373. oid: this.oid && this.oid != "" ? this.oid : "",
  1374. stand: this.lang.lang
  1375. };
  1376. this.ajax
  1377. .get(this.$store.state.api + "selectAllTypeStand", params)
  1378. .then((res) => {
  1379. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1380. res.data[0] = [...res.data[0], ...res.data[4]]
  1381. }
  1382. this.CourseType = res.data;
  1383. this.CourseType2 = [
  1384. { name: this.lang.ZhijianCourse, id: [] },
  1385. { name: this.lang.ZhixingCourse, id: [] },
  1386. { name: this.lang.IntelligentCreationCourse, id: [] },
  1387. ];
  1388. for (var cti = 0; cti < res.data[0].length; cti++) {
  1389. if (
  1390. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  1391. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  1392. ) {
  1393. this.CourseType2[0].id.push(res.data[0][cti].id);
  1394. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  1395. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  1396. this.CourseType2[1].id.push(res.data[0][cti].id);
  1397. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  1398. this.CourseType2[2].id.push(res.data[0][cti].id);
  1399. }
  1400. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  1401. res.data[0][cti].name = this.lang.ssGradeType;
  1402. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  1403. res.data[0][cti].name = this.lang.ssSubjectCategory;
  1404. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  1405. res.data[0][cti].name = this.lang.ssThemeType;
  1406. }
  1407. }
  1408. for (var i = 0; i < res.data[0].length; i++) {
  1409. if (!this.cid) {
  1410. this.courseTypeId[res.data[0][i].id] = [];
  1411. }
  1412. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1413. this.CourseTypeJson[res.data[0][i].id] = [];
  1414. }
  1415. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1416. if (res.data[0][i].name == this.lang.column) {
  1417. this.CourseType[0][i].name = this.lang.ssThemeType;
  1418. }
  1419. }
  1420. if (res.data[2].length == 0 && res.data[3].length == 0) {
  1421. for (var j = 0; j < res.data[1].length; j++) {
  1422. if (res.data[0][i].id == res.data[1][j].pid) {
  1423. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  1424. }
  1425. }
  1426. } else {
  1427. if (res.data[2].length > 0) {
  1428. for (var j = 0; j < res.data[2].length; j++) {
  1429. if (res.data[0][i].id == res.data[2][j].pid) {
  1430. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  1431. }
  1432. }
  1433. }
  1434. if (res.data[3].length > 0) {
  1435. for (var j = 0; j < res.data[3].length; j++) {
  1436. if (res.data[0][i].id == res.data[3][j].pid) {
  1437. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  1438. }
  1439. }
  1440. }
  1441. }
  1442. }
  1443. if (this.CourseType[0] && this.CourseType[0].length && this.lang.lang == 'com') {
  1444. this.CourseType[0] = this.CourseType[0].filter(item => item.id != '34629bcc-d02f-11ec-8c78-005056b86db5');
  1445. }
  1446. })
  1447. .catch((err) => {
  1448. console.error(err);
  1449. });
  1450. },
  1451. selectType() {
  1452. this.ajax
  1453. .get(this.$store.state.api + "selectType")
  1454. .then((res) => {
  1455. this.CourseType = res.data;
  1456. for (var i = 0; i < res.data[0].length; i++) {
  1457. if (!this.cid) {
  1458. this.courseTypeId[res.data[0][i].id] = "";
  1459. }
  1460. // if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1461. // if (res.data[0][i].name == "栏目") {
  1462. // this.CourseType[0][i].name = "主题";
  1463. // }
  1464. // }
  1465. for (var j = 0; j < res.data[1].length; j++) {
  1466. if (res.data[0][i].id == res.data[1][j].pid) {
  1467. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1468. this.CourseTypeJson[res.data[0][i].id] = [];
  1469. }
  1470. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); //去除公共分类
  1471. }
  1472. }
  1473. }
  1474. this.selectTypeByOid();
  1475. this.selectTypeByOrg();
  1476. })
  1477. .catch((err) => {
  1478. console.error(err);
  1479. });
  1480. },
  1481. selectTypeByOid() {
  1482. let params = {
  1483. oid: this.oid,
  1484. };
  1485. this.ajax
  1486. .get(this.$store.state.api + "selectTypeByOid", params)
  1487. .then((res) => {
  1488. for (var i = 0; i < res.data[0].length; i++) {
  1489. for (var j = 0; j < res.data[1].length; j++) {
  1490. if (res.data[0][i].id == res.data[1][j].pid) {
  1491. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1492. this.CourseTypeJson[res.data[0][i].id] = [];
  1493. }
  1494. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1495. }
  1496. }
  1497. }
  1498. this.$forceUpdate();
  1499. })
  1500. .catch((err) => {
  1501. console.error(err);
  1502. });
  1503. },
  1504. selectTypeByOrg() {
  1505. let params = {
  1506. oid: this.org,
  1507. };
  1508. this.ajax
  1509. .get(this.$store.state.api + "selectTypeByOrg", params)
  1510. .then((res) => {
  1511. for (var i = 0; i < res.data[0].length; i++) {
  1512. for (var j = 0; j < res.data[1].length; j++) {
  1513. if (res.data[0][i].id == res.data[1][j].pid) {
  1514. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1515. this.CourseTypeJson[res.data[0][i].id] = [];
  1516. }
  1517. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1518. }
  1519. }
  1520. }
  1521. this.$forceUpdate();
  1522. })
  1523. .catch((err) => {
  1524. console.error(err);
  1525. });
  1526. },
  1527. openCourse() {
  1528. this.dialogVisibleCourse = true;
  1529. this.getTeamCourse();
  1530. },
  1531. getTeamCourse() {
  1532. let params = {
  1533. uid: this.userid,
  1534. oid: this.oid,
  1535. };
  1536. this.ajax
  1537. .get(this.$store.state.api + "selectCourseTeam", params)
  1538. .then((res) => {
  1539. this.courseTeam = res.data[0];
  1540. })
  1541. .catch((err) => {
  1542. console.error(err);
  1543. });
  1544. },
  1545. search() {
  1546. this.page = 1;
  1547. this.getCourse();
  1548. },
  1549. checkProblem(res) {
  1550. this.problemCourse = res;
  1551. this.dialogVisible = true;
  1552. },
  1553. copyCourse(cid, setting) {
  1554. let settingJson = ''
  1555. if(setting && JSON.parse(setting)){
  1556. settingJson = JSON.parse(setting)
  1557. settingJson.chatid = uuidv4()
  1558. }
  1559. let params = [
  1560. {
  1561. cid: cid,
  1562. uid: this.userid,
  1563. setting: JSON.stringify(settingJson),
  1564. },
  1565. ];
  1566. this.ajax
  1567. .post(this.$store.state.api + "copyCourse2", params)
  1568. .then((res) => {
  1569. this.page = 1;
  1570. if (this.role == "1") {
  1571. this.groupA = "4";
  1572. } else {
  1573. this.groupA = "0";
  1574. }
  1575. this.$message.success(this.lang.Successfullycopy)
  1576. this.clear();
  1577. })
  1578. .catch((err) => {
  1579. console.error(err);
  1580. });
  1581. },
  1582. async goToPptEasy(courseId){
  1583. if (courseId) {
  1584. let psOrg = ['311882ee-4e86-11f1-9985-005056924926']
  1585. let route = '/pptEasy'
  1586. if(psOrg.includes(this.org)){
  1587. route = '/pptEasyPS'
  1588. }
  1589. this.$router.push(
  1590. route + "?cid=" +
  1591. courseId +
  1592. "&userid=" +
  1593. this.userid +
  1594. "&oid=" +
  1595. this.oid +
  1596. "&org=" +
  1597. this.org +
  1598. "&role=" +
  1599. this.role
  1600. );
  1601. this.addOp3('1', "", { courseid: courseId ,type: "course_pptEasyMode_edit" }, "success")
  1602. } else {
  1603. let classResult = await this.checkClass()
  1604. if(classResult == 1){
  1605. this.$message.error(this.lang.ssCreateCourseLimit)
  1606. return
  1607. }
  1608. let psOrg = ['311882ee-4e86-11f1-9985-005056924926']
  1609. let route = '/pptEasy'
  1610. if(psOrg.includes(this.org)){
  1611. route = '/pptEasyPS'
  1612. }
  1613. this.$router.push(
  1614. route + "?userid="+
  1615. this.userid +
  1616. "&oid=" +
  1617. this.oid +
  1618. "&org=" +
  1619. this.org +
  1620. "&role=" +
  1621. this.role
  1622. );
  1623. this.addOp3('1', "", { type: "course_pptEasyMode_createClick" }, "success")
  1624. }
  1625. },
  1626. async checkClass(){
  1627. if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  1628. let params = {
  1629. userid: this.userid,
  1630. };
  1631. try {
  1632. const res = await this.ajax.get(this.$store.state.api + "checkClass", params)
  1633. let data = res.data[0][0].result
  1634. return data
  1635. } catch (err) {
  1636. console.error(err);
  1637. }
  1638. }else {
  1639. return 2
  1640. }
  1641. },
  1642. },
  1643. created() {
  1644. if (this.role == "1") {
  1645. this.groupA = "4";
  1646. }
  1647. this.getAIJ();
  1648. this.page = 1;
  1649. // this.selectType();
  1650. this.selectAllType();
  1651. this.getCourse();
  1652. let _this = this
  1653. window.goToCourse3 = function(){
  1654. _this.goToCourse3()
  1655. }
  1656. window.goToCourse = function(){
  1657. _this.goToCourse()
  1658. }
  1659. },
  1660. mounted() {
  1661. let _this = this
  1662. window.setCourseUrl = function(){
  1663. _this.courseUrl = ''
  1664. }
  1665. if(this.org && this.org == '3d2d45b1-703b-11f1-9985-005056924926'){
  1666. setInterval(() => {
  1667. this.getCourse3()
  1668. }, 10000);
  1669. }
  1670. }
  1671. };
  1672. </script>
  1673. <style scoped>
  1674. @media screen and (max-width: 1380px) {
  1675. .out_box {
  1676. width: calc(100% / 4 - (15px * 3) / 4) !important;
  1677. }
  1678. .out_box:nth-child(5n) {
  1679. margin-right: 15px !important;
  1680. }
  1681. .out_box:nth-child(4n) {
  1682. margin-right: 0 !important;
  1683. }
  1684. }
  1685. @media screen and (max-width: 1080px) {
  1686. .out_box {
  1687. width: calc(100% / 3 - (15px * 2) / 3) !important;
  1688. }
  1689. .out_box:nth-child(5n) {
  1690. margin-right: 15px !important;
  1691. }
  1692. .out_box:nth-child(4n) {
  1693. margin-right: 15px !important;
  1694. }
  1695. .out_box:nth-child(3n) {
  1696. margin-right: 0 !important;
  1697. }
  1698. }
  1699. .dialog_diy>>>.el-dialog__header {
  1700. background: #3d67bc !important;
  1701. padding: 15px 20px;
  1702. }
  1703. .dialog_diy>>>.el-dialog__title {
  1704. color: #fff;
  1705. }
  1706. .dialog_diy>>>.el-dialog__headerbtn {
  1707. top: 19px;
  1708. }
  1709. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  1710. color: #fff;
  1711. }
  1712. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  1713. color: #fff;
  1714. }
  1715. .student_head>>>.el-button--primary {
  1716. background-color: #2268bc;
  1717. }
  1718. .xls_button {
  1719. font-size: 14px;
  1720. cursor: pointer;
  1721. text-decoration: underline;
  1722. color: rgb(34, 104, 188);
  1723. }
  1724. .student_head {
  1725. display: flex;
  1726. justify-content: space-between;
  1727. align-items: baseline;
  1728. flex-direction: row;
  1729. flex-wrap: wrap;
  1730. }
  1731. .top {
  1732. display: flex;
  1733. justify-content: space-between;
  1734. width: 100% !important;
  1735. box-sizing: border-box;
  1736. margin: 0px auto;
  1737. padding: 10px 5px;
  1738. height: 54px;
  1739. }
  1740. .bgColor {
  1741. background: #0061FF;
  1742. }
  1743. .student_search {
  1744. display: flex;
  1745. align-items: center;
  1746. width: calc(100% / 3);
  1747. }
  1748. .student_search span {
  1749. margin: 0 10px 0 0;
  1750. min-width: 65px;
  1751. }
  1752. .student_button {
  1753. display: flex;
  1754. /* overflow: hidden; */
  1755. height: 40px;
  1756. }
  1757. .upload-demo {
  1758. display: flex;
  1759. flex-direction: column;
  1760. align-items: end;
  1761. /* position: relative; */
  1762. width: 100px;
  1763. overflow: hidden;
  1764. }
  1765. .student_table {
  1766. /* padding: 20px 0; */
  1767. height: 100%;
  1768. /* overflow: auto; */
  1769. min-height: 360px;
  1770. }
  1771. .student_empty {
  1772. display: flex;
  1773. justify-content: center;
  1774. align-items: center;
  1775. }
  1776. .el-table>>>.even_row {
  1777. background-color: #f1f1f1;
  1778. }
  1779. .time {
  1780. font-size: 13px;
  1781. color: #999;
  1782. }
  1783. .course_button {
  1784. padding: 10px 20px;
  1785. }
  1786. .course_button_box {
  1787. display: flex;
  1788. margin-top: 5px;
  1789. justify-content: space-between;
  1790. }
  1791. .course_rate {
  1792. margin-top: 5px;
  1793. }
  1794. .course_view {
  1795. display: flex;
  1796. align-items: center;
  1797. margin: 5px 0 0 0;
  1798. }
  1799. .course_view i {
  1800. background-image: url("../../assets/liulan.png");
  1801. width: 25px;
  1802. height: 25px;
  1803. background-size: 100% 100%;
  1804. /* margin-top: 1px; */
  1805. line-height: 25px;
  1806. vertical-align: text-top;
  1807. background-repeat: no-repeat;
  1808. }
  1809. .image {
  1810. width: 100%;
  1811. height: 150px;
  1812. display: block;
  1813. }
  1814. .course_box {
  1815. display: flex;
  1816. flex-wrap: wrap;
  1817. }
  1818. .student_page {
  1819. width: 100%;
  1820. margin: 0 auto;
  1821. background: #e6eaf0;
  1822. }
  1823. .course_create_box {
  1824. font-size: 18px;
  1825. }
  1826. .course_name {
  1827. margin-top: 10px;
  1828. }
  1829. .course_name span {
  1830. margin-bottom: 10px;
  1831. display: block;
  1832. }
  1833. .homework_box {
  1834. display: flex;
  1835. align-items: center;
  1836. flex-wrap: wrap;
  1837. }
  1838. .course_homework {
  1839. width: 130px;
  1840. display: flex;
  1841. justify-content: center;
  1842. flex-direction: column;
  1843. align-items: center;
  1844. margin: 0 10px 10px 0;
  1845. }
  1846. .course_type {
  1847. margin-top: 10px;
  1848. display: flex;
  1849. }
  1850. .course_type1 span {
  1851. margin-bottom: 10px;
  1852. display: block;
  1853. }
  1854. .course_type2 {
  1855. margin-left: 20px;
  1856. }
  1857. .course_type2 span {
  1858. margin-bottom: 10px;
  1859. display: block;
  1860. }
  1861. .course_empty {
  1862. color: rgb(110, 110, 110);
  1863. width: 100%;
  1864. height: 100%;
  1865. display: flex;
  1866. align-items: center;
  1867. justify-content: center;
  1868. }
  1869. .el_cards>>>.el-card__body {
  1870. height: 100%;
  1871. }
  1872. .courseBtnBox {
  1873. display: flex;
  1874. flex-direction: column;
  1875. justify-content: space-between;
  1876. height: calc(100% - 170px);
  1877. padding: 10px;
  1878. }
  1879. .wordUpload {
  1880. display: flex;
  1881. }
  1882. .wordUpload>.buttonUp {
  1883. margin-right: 5px;
  1884. }
  1885. .out_box {
  1886. display: flex;
  1887. flex-direction: column;
  1888. flex-wrap: nowrap;
  1889. width: calc(100% / 5 - (15px * 4) / 5);
  1890. /* width: 280px; */
  1891. background: #fff;
  1892. margin-right: 15px;
  1893. /* border: 1px solid #ccc; */
  1894. height: fit-content;
  1895. box-sizing: border-box;
  1896. border-radius: 0px 0px 5px 5px;
  1897. /* overflow: hidden; */
  1898. margin-bottom: 15px;
  1899. position: relative;
  1900. border-radius: 8px;
  1901. box-sizing: border-box;
  1902. overflow: hidden;
  1903. border: 1px solid #3682fc00;
  1904. }
  1905. .out_box:hover {
  1906. border: 1px solid #3681FC;
  1907. }
  1908. .out_box:nth-child(5n) {
  1909. margin-right: 0;
  1910. }
  1911. .bottom_box {
  1912. display: flex;
  1913. padding: 10px;
  1914. flex-direction: column;
  1915. box-sizing: border-box;
  1916. height: 121px;
  1917. flex-wrap: nowrap;
  1918. justify-content: space-evenly;
  1919. }
  1920. .bottom_box>div:nth-child(1) {
  1921. width: 100%;
  1922. /* overflow: hidden;
  1923. text-overflow: ellipsis;
  1924. white-space: nowrap;
  1925. font-weight: bold; */
  1926. display: flex;
  1927. align-items: center;
  1928. justify-content: space-between;
  1929. }
  1930. .bottom_box>div:nth-child(1)>span:nth-child(1) {
  1931. max-width: 100%;
  1932. overflow: hidden;
  1933. text-overflow: ellipsis;
  1934. white-space: nowrap;
  1935. font-weight: bold;
  1936. }
  1937. .bottom_box>div:nth-child(1)>span:nth-child(2) {
  1938. min-width: fit-content;
  1939. font-size: 14px;
  1940. color: #8c8c8c;
  1941. }
  1942. .tup {
  1943. width: 100%;
  1944. height: 180px;
  1945. margin: 0 auto;
  1946. overflow: hidden;
  1947. display: flex;
  1948. align-items: center;
  1949. padding: 10px;
  1950. box-sizing: border-box;
  1951. cursor: pointer;
  1952. }
  1953. .tup>img {
  1954. width: 100%;
  1955. height: 100%;
  1956. object-fit: cover;
  1957. }
  1958. .kc_time {
  1959. margin-top: 8px;
  1960. font-size: 14px;
  1961. color: #717C8D;
  1962. }
  1963. .kc_time+.kc_time {
  1964. margin-top: 0;
  1965. }
  1966. .kc_t {
  1967. margin-top: 5px;
  1968. width: 100%;
  1969. white-space: nowrap;
  1970. overflow: hidden;
  1971. text-overflow: ellipsis;
  1972. display: flex;
  1973. align-items: center;
  1974. justify-content: space-between;
  1975. }
  1976. .kc_t>span:nth-child(1) {
  1977. max-width: 100%;
  1978. overflow: hidden;
  1979. text-overflow: ellipsis;
  1980. white-space: nowrap;
  1981. }
  1982. .kc_t>span:nth-child(2) {
  1983. min-width: fit-content;
  1984. font-size: 14px;
  1985. color: #8c8c8c;
  1986. }
  1987. .three_bottom {
  1988. display: flex;
  1989. flex-direction: row;
  1990. /* justify-content: space-around; */
  1991. justify-content: flex-end;
  1992. height: 45px;
  1993. align-items: center;
  1994. background: #fff;
  1995. font-size: 14px;
  1996. border-top: 1px solid #ddd;
  1997. box-sizing: border-box;
  1998. }
  1999. .t_b_Item{
  2000. width: 30px;
  2001. height: 30px;
  2002. background-color: white;
  2003. border-radius: 2px;
  2004. display: flex;
  2005. justify-content: center;
  2006. align-items: center;
  2007. transition: .3s;
  2008. margin-right: 10px;
  2009. cursor: pointer;
  2010. }
  2011. .t_b_Item:hover{
  2012. background-color: #E8E8E8;
  2013. }
  2014. .t_b_Item>img{
  2015. width: 80%;
  2016. height: 80%;
  2017. }
  2018. /* .three_bottom>div {
  2019. cursor: pointer;
  2020. width: 100%;
  2021. text-align: center;
  2022. }
  2023. .three_bottom>div+div {
  2024. border-left: 1px solid #ddd;
  2025. } */
  2026. /* .three_bottom>div:hover {
  2027. color: #3681FC;
  2028. font-weight: bold;
  2029. } */
  2030. .three_bottom .deleteB {
  2031. color: #E96E6E;
  2032. }
  2033. .three_bottom .deleteB:hover {
  2034. color: #E96E6E;
  2035. font-weight: bold;
  2036. }
  2037. .head_left {
  2038. display: flex;
  2039. }
  2040. .student_input>>>.el-input__inner {
  2041. height: 40px;
  2042. width: 190px;
  2043. font-size: 13px;
  2044. padding: 0 10px;
  2045. }
  2046. .course_button {
  2047. color: #fff;
  2048. background: #2268bc;
  2049. width: 75px;
  2050. height: 40px;
  2051. padding: 0 !important;
  2052. font-size: 12px;
  2053. line-height: 40px;
  2054. }
  2055. .clear {
  2056. width: 70px;
  2057. height: 35px;
  2058. background: #0061FF;
  2059. color: #fff;
  2060. text-align: center;
  2061. border-radius: 5px;
  2062. line-height: 35px;
  2063. cursor: pointer;
  2064. margin-left: 20px;
  2065. }
  2066. .ct_box {
  2067. height: 500px;
  2068. overflow: auto;
  2069. display: flex;
  2070. flex-wrap: wrap;
  2071. }
  2072. .myCourse {
  2073. position: absolute;
  2074. background: #3c3c3c;
  2075. /* width: 70px; */
  2076. height: 30px;
  2077. border-radius: 5px;
  2078. color: #fff;
  2079. font-size: 14px;
  2080. text-align: center;
  2081. line-height: 30px;
  2082. padding: 0 10px;
  2083. box-sizing: border-box;
  2084. top: 5px;
  2085. left: 5px;
  2086. }
  2087. .xtCourse {
  2088. position: absolute;
  2089. background: #0061FF;
  2090. width: 70px;
  2091. height: 30px;
  2092. border-radius: 5px;
  2093. color: #fff;
  2094. font-size: 14px;
  2095. text-align: center;
  2096. line-height: 30px;
  2097. top: 5px;
  2098. left: 5px;
  2099. }
  2100. .sub_head {
  2101. position: relative;
  2102. cursor: pointer;
  2103. }
  2104. .sub_head::after {
  2105. content: "";
  2106. width: 100%;
  2107. background: #5a9cea;
  2108. height: 2px;
  2109. position: absolute;
  2110. left: 0;
  2111. bottom: -10px;
  2112. }
  2113. .subClick {
  2114. /* font-size: 16px; */
  2115. font-size: 26px;
  2116. cursor: pointer;
  2117. margin-left: 17.5px;
  2118. /* color: #ab582f; */
  2119. /* color: #409eff; */
  2120. color: #999;
  2121. }
  2122. .subClick:hover {
  2123. color: #000;
  2124. }
  2125. .more {
  2126. position: relative;
  2127. }
  2128. .more:hover div {
  2129. display: block;
  2130. color: #000;
  2131. }
  2132. .more div {
  2133. position: absolute;
  2134. bottom: 0px;
  2135. transform: translate(-50%, 100%);
  2136. background: #f5f4f4;
  2137. padding: 10px 20px;
  2138. z-index: 99;
  2139. width: 50px;
  2140. border-radius: 5px;
  2141. box-shadow: 0 0 3px 3px #80808020;
  2142. display: none;
  2143. }
  2144. .more div>span+span {
  2145. margin-top: 10px;
  2146. }
  2147. .more div>span {
  2148. display: block;
  2149. width: 100%;
  2150. text-align: center;
  2151. }
  2152. .more div>span:hover {
  2153. color: #79a2ff;
  2154. }
  2155. .line {
  2156. width: 100%;
  2157. height: 15px;
  2158. background: #e6eaf0;
  2159. }
  2160. .reBox {
  2161. width: 100%;
  2162. /* padding-left: 20px; */
  2163. margin: 0 auto;
  2164. box-sizing: border-box;
  2165. overflow: hidden;
  2166. padding: 10px 15px 0;
  2167. }
  2168. .reTop {
  2169. padding: 0 0 5px;
  2170. /* padding: 20px 0 0 0; */
  2171. /* border-bottom: 1px solid #eee; */
  2172. display: flex;
  2173. flex-direction: row;
  2174. flex-wrap: nowrap;
  2175. align-items: center;
  2176. justify-content: space-between;
  2177. }
  2178. .reTop>div:nth-child(1) {
  2179. font-weight: bold;
  2180. /* width: 40px; */
  2181. /* border-bottom: 1px solid #205cc6; */
  2182. /* padding-bottom: 20px; */
  2183. color: #205cc6;
  2184. /* font-size: 20px; */
  2185. }
  2186. .reTop .reTopCh {
  2187. display: flex;
  2188. }
  2189. .reTop .searchI {
  2190. display: flex;
  2191. flex-direction: row;
  2192. align-items: center;
  2193. border: 1px solid #ccced3;
  2194. width: 250px;
  2195. border-radius: 8px;
  2196. padding: 5px 0;
  2197. /* margin-bottom: 10px; */
  2198. background: #fafafa;
  2199. margin: 0 0 0 10px;
  2200. }
  2201. .search {
  2202. width: 20px;
  2203. padding: 0 5px;
  2204. display: flex;
  2205. align-items: center;
  2206. }
  2207. .search>img {
  2208. width: 100%;
  2209. height: 100%;
  2210. }
  2211. .sInput {
  2212. border: none;
  2213. width: 85%;
  2214. background: #fafafa;
  2215. }
  2216. .sInput:focus-visible {
  2217. outline: none;
  2218. }
  2219. .typeCss {
  2220. display: flex;
  2221. flex-direction: row;
  2222. flex-wrap: wrap;
  2223. gap: 10px;
  2224. justify-content: flex-start;
  2225. align-items: center;
  2226. }
  2227. .typeCss2 {
  2228. display: flex;
  2229. flex-direction: row;
  2230. flex-wrap: wrap;
  2231. justify-content: flex-start;
  2232. align-items: center;
  2233. gap: 30px;
  2234. }
  2235. .typeCss2 > div {
  2236. cursor: pointer;
  2237. color: #b9b6b9;
  2238. }
  2239. .choose {
  2240. display: flex;
  2241. flex-direction: column;
  2242. flex-wrap: nowrap;
  2243. gap: 10px;
  2244. height: 100%;
  2245. justify-content: space-evenly;
  2246. align-items: flex-start;
  2247. /* padding: 10px 0; */
  2248. padding-bottom: 10px;
  2249. box-sizing: border-box;
  2250. }
  2251. .all_choose {
  2252. display: flex;
  2253. flex-direction: row;
  2254. align-items: baseline;
  2255. margin: 2px 0;
  2256. width: 100%;
  2257. }
  2258. .all_choose>span {
  2259. display: flex;
  2260. margin-right: 5px;
  2261. }
  2262. .all_choose>span>span {
  2263. min-width: 65px;
  2264. max-width: 65px;
  2265. display: block;
  2266. text-align-last: justify;
  2267. }
  2268. .all_choose>span::after {
  2269. content: ':';
  2270. }
  2271. .all_choose>span:nth-child(1) {
  2272. font-weight: bold;
  2273. }
  2274. .all_choose>>>.el-checkbox-group {
  2275. display: flex;
  2276. flex-direction: row;
  2277. width: 820px;
  2278. flex-wrap: wrap;
  2279. align-content: center;
  2280. justify-content: flex-start;
  2281. align-items: center;
  2282. margin-top: 3px;
  2283. }
  2284. .all_choose>.el-checkbox-group>>>.el-checkbox {
  2285. margin-bottom: 10px;
  2286. display: flex;
  2287. flex-direction: row;
  2288. align-items: center;
  2289. }
  2290. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  2291. min-width: 80px;
  2292. overflow: hidden;
  2293. width: 80px;
  2294. text-overflow: ellipsis;
  2295. white-space: nowrap;
  2296. }
  2297. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  2298. width: auto;
  2299. }
  2300. .cName {
  2301. cursor: pointer;
  2302. color: #b9b6b9;
  2303. display: flex;
  2304. justify-content: center;
  2305. align-items: center;
  2306. white-space: nowrap;
  2307. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  2308. padding: 1px 5px;
  2309. box-sizing: border-box;
  2310. }
  2311. .isCType {
  2312. color: #6282c2;
  2313. }
  2314. .pType_box {
  2315. margin-top: 0;
  2316. }
  2317. .pType_box>>>.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
  2318. -webkit-box-shadow: none !important;
  2319. box-shadow: none !important;
  2320. }
  2321. .buttonBox {
  2322. position: absolute;
  2323. bottom: -0;
  2324. transform: translateY(100%);
  2325. background: #fff;
  2326. border-radius: 5px;
  2327. box-shadow: 0 0 3px 1px #e3e3e3;
  2328. width: 100%;
  2329. z-index: 10;
  2330. }
  2331. .buttonBox > div {
  2332. /* height: 40px; */
  2333. /* line-height: 40px; */
  2334. padding: 15px 0;
  2335. box-sizing: border-box;
  2336. width: 100%;
  2337. text-align: center;
  2338. color: #000;
  2339. box-sizing: border-box;
  2340. }
  2341. .buttonBox>div+div {
  2342. border-top: 1px solid #e0e0e0;
  2343. }
  2344. .buttonBox>div:hover {
  2345. background: #f6f8ff;
  2346. }
  2347. .liyuan{
  2348. width: 100% !important;
  2349. padding: 0 90px !important;
  2350. box-sizing: border-box !important;
  2351. }
  2352. .courseIframe{
  2353. width: 100vw;
  2354. height: 100vh;
  2355. position: fixed;
  2356. z-index: 99999;
  2357. top: 0;
  2358. left: 0;
  2359. border: none;
  2360. }
  2361. </style>