course.vue 56 KB

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