index.vue 51 KB

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