course.vue 51 KB

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