course.vue 65 KB

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