index.vue 47 KB

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