index.vue 37 KB

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