index.vue 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374
  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. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8. <span class="subClick" @click="
  9. goTo(
  10. '/trainCourse?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role
  18. )
  19. ">培训管理</span>
  20. <span class="subClick" v-if="examineData.length" @click="
  21. goTo(
  22. '/testDataBoard?userid=' +
  23. userid +
  24. '&oid=' +
  25. oid +
  26. '&org=' +
  27. org +
  28. '&role=' +
  29. role
  30. )
  31. ">数据看板</span>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="bbox_nav">
  36. <span :class="{ active: cutNumber == 0}" @click="cutNumber = 0">个人总览</span>
  37. <span :class="{ active: cutNumber == 1}" v-if="examineData.length" @click="cutNumber = 1">年度考核</span>
  38. </div>
  39. <div class="bbox" v-if="cutNumber==0">
  40. <div v-if="!oidArray.includes(oid)" class="test_data_box" v-loading="isLoadingData">
  41. <div class="data_box">
  42. <div class="left">
  43. <div class="title">表单状态总览</div>
  44. <div class="box">
  45. <span class="color1">{{ dataJ.doing }}个进行中</span>
  46. <span class="color5">{{ dataJ.nodo }}个未进行</span>
  47. <span class="color2">{{ dataJ.noLook }}个未发布</span>
  48. <span class="color3">{{ dataJ.is }}个已完成</span>
  49. <span class="color4">{{ dataJ.no }}个逾期</span>
  50. </div>
  51. </div>
  52. <div class="right">
  53. <pie-1 :dataJ="dataJ"></pie-1>
  54. </div>
  55. </div>
  56. <div class="data_box" v-show="false">
  57. <div class="left">
  58. <div class="title">教师完成情况</div>
  59. <div class="box">
  60. <span class="color1">{{ 10 }}个未完成</span>
  61. <span class="color2">{{ 8 }}个进行中</span>
  62. <span class="color3">{{ 6 }}个已完成</span>
  63. <span class="color4">{{ 7 }}个逾期</span>
  64. </div>
  65. </div>
  66. <div class="right">
  67. <pie-2></pie-2>
  68. </div>
  69. </div>
  70. <div class="data_box" v-if="typeArray.length">
  71. <div class="left">
  72. <div class="title">综合平均分</div>
  73. <div class="box2">
  74. <span>{{ zscore.toFixed(0) }}</span>
  75. </div>
  76. </div>
  77. <div class="right">
  78. <randar-1 :typeJArray="typeJArray"></randar-1>
  79. </div>
  80. </div>
  81. <div class="data_box" v-if="typeArray.length" style="flex-direction: column;">
  82. <div class="left" style="height: fit-content;text-align: left;width: 100%;">
  83. <div class="title" style="margin: 0;">逾期情况</div>
  84. <!-- <div class="box2">
  85. <span>{{ 12 }}%</span>
  86. </div> -->
  87. </div>
  88. <div class="right" style="height: calc(100% - 20px);">
  89. <randar-2 :typeJArray="typeJArray"></randar-2>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="search_nav">
  94. <div class="right">
  95. <span :class="{ active: stype == 3 }" v-show="orgArray2.includes(org) || oidArray.includes(oid)" @click="checkDataType(3)">数据汇总</span>
  96. <span :class="{ active: stype == 1 }" @click="checkDataType(1)">按问卷查看</span>
  97. <span :class="{ active: stype == 2 }" @click="checkDataType(2)">按人员查看</span>
  98. </div>
  99. <div class="left">
  100. <span class="list" :class="{ active: stype2 == 1 }" @click="checkStype2(1)"></span>
  101. <span class="table" :class="{ active: stype2 == 2 }" @click="checkStype2(2)"></span>
  102. </div>
  103. </div>
  104. <div style="width: calc(100% - 20px);margin: 0 auto;">
  105. <div class="student_head">
  106. <div class="choose">
  107. <div class="student_search" v-if="typeArray.length && stype == 1">
  108. <el-select v-model="typeCheck" placeholder="请选择类型" clearable @change="search">
  109. <el-option v-for="(item, index) in typeArray" :key="index" :label="item.name"
  110. :value="item.id"></el-option>
  111. </el-select>
  112. </div>
  113. <div class="student_search" style="width:100px" v-if="stype == 1">
  114. <!-- <span></span> -->
  115. <el-select v-model="groupA" @change="search">
  116. <el-option value="0" label="我的"></el-option>
  117. <el-option value="2" label="他人"></el-option>
  118. <el-option value="4" label="所有人"></el-option>
  119. </el-select>
  120. </div>
  121. <!-- <div @click="clear" class="clear" v-if="CourseType.length">重置</div> -->
  122. </div>
  123. <div class="student_right">
  124. <div class="head_left">
  125. <div style="margin-right: 10px;position: relative;">
  126. <el-input v-model="courseName" class="student_input" placeholder="请输入项目名称"></el-input>
  127. <span class="serach_icon" @click="searchCourse"></span>
  128. </div>
  129. <!-- <el-button type="primary" @click="searchCourse">查询</el-button> -->
  130. <el-button type="primary" class="bgColor" @click="openTestDataBoard()"
  131. v-if="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'">表单看板</el-button>
  132. <el-button type="primary" class="bgColor" @click="goToCourse()">新建表单</el-button>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="pb_content_body" style="height: 100%;width: 100%;">
  138. <aggregate v-if="stype == 3"></aggregate>
  139. <div class="student_table" v-loading="isLoading" v-if="stype == 1 && stype2 == 1">
  140. <div class="course_box">
  141. <div class="test_box" v-for="(item, index) in course" :key="index">
  142. <div class="test_top">
  143. <div class="test_top_img" v-if="!item.typeN"></div>
  144. <el-tooltip :content="item.typeN" placement="top" effect="dark" v-else>
  145. <div class="test_top_img"
  146. :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' }">
  147. </div>
  148. </el-tooltip>
  149. <div class="test_top_title">
  150. <span>{{ item.title }}</span>
  151. <!-- <span>创建人:{{ item.uname }}</span> -->
  152. <span>提交数量:{{ item.worksCount }}</span>
  153. </div>
  154. </div>
  155. <div class="test_time">
  156. <span><span>创建人</span></span><span>{{ item.uname }}</span>
  157. </div>
  158. <div class="test_time">
  159. <span><span>创建日期</span></span><span>{{ item.time }}</span>
  160. </div>
  161. <div class="test_time">
  162. <span><span>修改日期</span></span><span>{{ item.utime }}</span>
  163. </div>
  164. <div class="test_time">
  165. <span><span>截止日期</span></span><span>{{ item.overtime ? item.overtime : '未设置' }}</span>
  166. </div>
  167. <div class="test_time">
  168. <span><span>填写范围</span></span><el-tooltip :content="item.juriP ? item.juriP : '所有人'"
  169. placement="top" effect="dark">
  170. <!-- content to trigger tooltip here -->
  171. <span>{{ item.juriP ? item.juriP : '所有人' }}</span>
  172. </el-tooltip>
  173. </div>
  174. <div class="test_time tset_type" v-if="typeArray.length">
  175. <span><span>类型</span></span>
  176. <span v-if="!item.typeN">未设置类型</span>
  177. <span v-else>{{ item.typeN }}</span>
  178. </div>
  179. <!-- <div class="test_time">
  180. <span><span>分类</span></span>
  181. <span v-if="!item.typename">未设置分类</span>
  182. <el-tooltip :content="item.typename" placement="top" effect="dark" v-else>
  183. <span>{{ item.typename }}</span>
  184. </el-tooltip>
  185. </div> -->
  186. <div class="test_btn">
  187. <div class="test_o_btn">
  188. <el-tooltip content="编辑" placement="top" effect="dark">
  189. <span class="edit" @click="goToCourse2(item)" v-if="((item.userid == userid) ||
  190. (item.course_teacher &&
  191. item.course_teacher.indexOf(userid) !== -1) || role == '1')"></span>
  192. </el-tooltip>
  193. <el-tooltip content="查看" placement="top" effect="dark">
  194. <span class="check" @click="checkToTest(item.courseId)"></span>
  195. </el-tooltip>
  196. <el-tooltip content="复制" placement="top" effect="dark">
  197. <span class="copy" @click="copyTest(item.courseId)"></span>
  198. </el-tooltip>
  199. <el-tooltip content="提醒" placement="top" effect="dark">
  200. <span class="share" @click="shareTest(item)" v-if="((item.userid == userid) ||
  201. (item.course_teacher &&
  202. item.course_teacher.indexOf(userid) !== -1) || role == '1')"></span>
  203. </el-tooltip>
  204. <el-tooltip content="删除" placement="top" effect="dark">
  205. <span class="delete" @click="deleteCourse(item.courseId)" v-if="((item.userid == userid) ||
  206. (item.course_teacher &&
  207. item.course_teacher.indexOf(userid) !== -1) || role == '1')"></span>
  208. </el-tooltip>
  209. </div>
  210. <!-- <div class="test_type" :class="{ no: item.look == '1', is: item.look == '2' }"> -->
  211. <div class="test_type" :class="getLookType(item)">
  212. <!-- <span>{{ item.look == '1' ? '未发布' : '已发布' }}</span> -->
  213. <span>{{ getLook(item) }}</span>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="course_empty" v-if="course.length == 0">暂无数据</div>
  218. </div>
  219. </div>
  220. <el-table ref="table" :data="course" border v-loading="isLoading" :key="1"
  221. :header-cell-style="{ color: '#00000066', fontSize: '16px', fontWeight: 'unset' }"
  222. :row-class-name="tableRowClassName2" v-if="stype == 1 && stype2 == 2" class="tableClass">
  223. <el-table-column label="序号" width="100px" align="center">
  224. <template slot-scope="scope">
  225. {{ scope.$index + 1 }}
  226. </template>
  227. </el-table-column>
  228. <el-table-column prop="title" label="问卷名称" min-width="150" align="center">
  229. </el-table-column>
  230. <el-table-column prop="uname" label="创建者" min-width="80" align="center">
  231. </el-table-column>
  232. <el-table-column v-if="typeArray.length" prop="typeN" label="问卷类型" min-width="80" align="center">
  233. <template slot-scope="scope">
  234. {{ scope.row.typeN ? scope.row.typeN : '未设置类型' }}
  235. </template>
  236. </el-table-column>
  237. <el-table-column prop="worksCount" label="已提交数量" min-width="80" align="center">
  238. </el-table-column>
  239. <el-table-column label="表单状态" min-width="80" align="center">
  240. <template slot-scope="scope">
  241. <!-- <div class="test_type2" style="width: fit-content;margin: 0 auto;" :class="{ no: scope.row.look == '1', is: scope.row.look == '2' }"> -->
  242. <div class="test_type2" style="width: fit-content;margin: 0 auto;"
  243. :class="getLookType(scope.row)">
  244. <!-- <span>{{ scope.row.look == '1' ? '未发布' : '已发布' }}</span> -->
  245. <span>{{ getLook(scope.row) }}</span>
  246. </div>
  247. </template>
  248. </el-table-column>
  249. <el-table-column label="操作" width="350px">
  250. <template slot-scope="scope">
  251. <el-button @click="goToCourse2(scope.row)" type="text" size="small" v-if="((scope.row.userid == userid) ||
  252. (scope.row.course_teacher &&
  253. scope.row.course_teacher.indexOf(userid) !== -1) || role == '1')">编辑</el-button>
  254. <el-button @click="checkToTest(scope.row.courseId)" type="text" size="small">查看</el-button>
  255. <el-button @click="copyTest(scope.row.courseId)" type="text" size="small">复制</el-button>
  256. <el-button @click="shareTest(scope.row)" type="text" size="small" v-if="((scope.row.userid == userid) ||
  257. (scope.row.course_teacher &&
  258. scope.row.course_teacher.indexOf(userid) !== -1) || role == '1')">提醒</el-button>
  259. <el-button @click="deleteCourse(scope.row.courseId)" type="text" size="small"
  260. style="color: #EE3E3E;"
  261. v-if="((scope.row.userid == userid) ||
  262. (scope.row.course_teacher &&
  263. scope.row.course_teacher.indexOf(userid) !== -1) || role == '1')">删除</el-button>
  264. </template>
  265. </el-table-column>
  266. </el-table>
  267. <div class="student_table" v-loading="isLoading" v-if="stype == 2 && stype2 == 1">
  268. <div class="course_box">
  269. <div class="test_box" v-for="(item, index) in course2" :key="index">
  270. <div class="test_top">
  271. <div class="test_top_img"></div>
  272. <div class="test_top_title">
  273. <span>{{ item.name }}</span>
  274. <!-- <span>创建人:{{ item.uname }}</span> -->
  275. <span>提交数量:{{ item.worksCount }}</span>
  276. </div>
  277. </div>
  278. <div class="test_time">
  279. <span><span>已完成表单</span></span><span>{{ item.testCount }}</span>
  280. </div>
  281. <div class="test_time">
  282. <span><span>教研室</span></span><el-tooltip :content="item.className ? item.className : '无'"
  283. placement="top" effect="dark">
  284. <!-- content to trigger tooltip here -->
  285. <span>{{ item.className ? item.className : '无' }}</span>
  286. </el-tooltip>
  287. </div>
  288. <div class="test_btn">
  289. <div class="test_o_btn">
  290. <el-tooltip content="查看" placement="top" effect="dark">
  291. <span class="check" @click="checkToTest2(item.userid)"></span>
  292. </el-tooltip>
  293. </div>
  294. </div>
  295. </div>
  296. <div class="course_empty" v-if="stype == 1 && course.length == 0">暂无数据</div>
  297. <div class="course_empty" v-if="stype == 2 && course2.length == 0">暂无数据</div>
  298. </div>
  299. </div>
  300. <el-table ref="table" :data="course2" border v-loading="isLoading" :key="2"
  301. :header-cell-style="{ color: '#00000066', fontSize: '16px', fontWeight: 'unset' }"
  302. :row-class-name="tableRowClassName2" v-if="stype == 2 && stype2 == 2" class="tableClass">
  303. <el-table-column label="序号" width="100px" align="center">
  304. <template slot-scope="scope">
  305. {{ scope.$index + 1 }}
  306. </template>
  307. </el-table-column>
  308. <el-table-column prop="name" label="教师姓名" min-width="80" align="center">
  309. </el-table-column>
  310. <el-table-column label="教研室" min-width="80" align="center">
  311. <template slot-scope="scope">
  312. {{ scope.row.className ? scope.row.className : '无' }}
  313. </template>
  314. </el-table-column>
  315. <el-table-column prop="worksCount" label="已提交数量" min-width="80" align="center">
  316. </el-table-column>
  317. <el-table-column prop="testCount" label="已完成表单" min-width="80" align="center">
  318. </el-table-column>
  319. <el-table-column label="操作" width="350px">
  320. <template slot-scope="scope">
  321. <el-button @click="checkToTest2(scope.row.userid)" type="text" size="small">详情</el-button>
  322. </template>
  323. </el-table-column>
  324. </el-table>
  325. </div>
  326. <div class="student_page">
  327. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  328. v-if="stype == 1 && page && course.length" style="padding: 0 0 20px 0;"
  329. @current-change="handleCurrentChange"></el-pagination>
  330. <el-pagination background layout="prev, pager, next" :page-size="pageSize2" :total="total2"
  331. v-if="stype == 2 && page2 && course2.length" style="padding: 0 0 20px 0;"
  332. @current-change="handleCurrentChange2"></el-pagination>
  333. </div>
  334. </div>
  335. <div class="bbox" v-if="cutNumber==1">
  336. <examine></examine>
  337. </div>
  338. <el-dialog :visible.sync="dialogVisible1" size="tiny">
  339. <img width="100%" :src="dialogImageUrl" alt />
  340. </el-dialog>
  341. <el-dialog title="查看提问" :visible.sync="dialogVisible" :append-to-body="true" width="750px"
  342. :before-close="handleClose" class="dialog_diy">
  343. <div>
  344. <div class="a_addBox">
  345. <CourseProblem :problemCourse="problemCourse"></CourseProblem>
  346. </div>
  347. </div>
  348. <span slot="footer" class="dialog-footer">
  349. <el-button @click="dialogVisible = false">关 闭</el-button>
  350. </span>
  351. </el-dialog>
  352. <el-dialog title="查看协同项目" :visible.sync="dialogVisibleCourse" :append-to-body="true" width="850px"
  353. :before-close="handleClose" class="dialog_diy">
  354. <div class="ct_box">
  355. <div class="out_box" v-for="(item, index) in courseTeam" :key="index" style="margin-left: 15px">
  356. <div class="tup">
  357. <img :src="item.cover != null && item.cover != ''
  358. ? JSON.parse(item.cover).length > 0
  359. ? JSON.parse(item.cover)[0].url
  360. : mr
  361. : mr
  362. " alt />
  363. </div>
  364. <div class="bottom_box">
  365. <div>{{ item.title }}</div>
  366. <div class="kc_t">创建人:{{ item.uname }}</div>
  367. <div class="kc_time">{{ item.time }}</div>
  368. </div>
  369. <div class="three_bottom">
  370. <!-- <div @click="jump(item.courseId)">查看内容</div> -->
  371. <div @click="
  372. goTo(
  373. '/studentAddCourse?cid=' +
  374. item.courseId +
  375. '&userid=' +
  376. userid +
  377. '&oid=' +
  378. oid +
  379. '&org=' +
  380. org +
  381. '&role=' +
  382. role
  383. )
  384. ">
  385. 编辑
  386. </div>
  387. </div>
  388. </div>
  389. <div class="course_empty" v-if="courseTeam.length == 0">暂无数据</div>
  390. </div>
  391. <span slot="footer" class="dialog-footer">
  392. <el-button @click="dialogVisibleCourse = false">关 闭</el-button>
  393. </span>
  394. </el-dialog>
  395. <share-box :testJson="scid" :dialogVisibleShare.sync="dialogVisibleShare"></share-box>
  396. </div>
  397. </template>
  398. <script>
  399. import "../../../common/aws-sdk-2.235.1.min";
  400. import EditorBar from "../../../components/tools/wangEnduit";
  401. import CourseProblem from "../components/courseProblem";
  402. import pie2 from "./data/pie2.vue";
  403. import pie1 from "./data/pie1.vue";
  404. import randar1 from "./data/randar1.vue";
  405. import randar2 from "./data/randar2.vue";
  406. import shareBox from './shareBox/index.vue'
  407. import examine from './examine/index.vue'
  408. import aggregate from './aggregate/index'
  409. export default {
  410. name: 'test',
  411. components: { EditorBar, CourseProblem, pie1, pie2, randar1, randar2, shareBox, examine, aggregate },
  412. data() {
  413. return {
  414. examineData: [],
  415. cutNumber: 0,
  416. itemCount: 1,
  417. courseTitle: "",
  418. courseText: "",
  419. courseTime: "",
  420. isLoading: false,
  421. isLoadingData: false,
  422. fileList: [],
  423. fileList1: [],
  424. homeworkList: [{ name: "" }],
  425. formLabelWidth: "100px",
  426. dialogVisible: false,
  427. dialogVisible1: false,
  428. dialogVisibleCourse: false,
  429. dialogImageUrl: "",
  430. group: "",
  431. userid: this.$route.query.userid,
  432. oid: this.$route.query.oid,
  433. org: this.$route.query.org,
  434. role: this.$route.query.role,
  435. orgArray: ["150e3120-9195-11ed-b13d-005056b86db5"],
  436. orgArray2: ["0fec3a8a-ad04-11ed-b13d-005056b86db5"],
  437. oidArray: ["d67940a5-510c-40ea-9c9a-2631ab03013a"],
  438. Juri: "",
  439. groupList: [],
  440. JuriList: [],
  441. page: 1,
  442. total: 0,
  443. pageSize: 20,
  444. tableData: [],
  445. now: "",
  446. courseDetail: {},
  447. addCourse: {},
  448. groupA: "0",
  449. classX: "",
  450. course: [],
  451. courseName: "",
  452. mr: require("../../../assets/icon/kc1.png"),
  453. CourseType: [],
  454. CourseTypeJson: {},
  455. courseTypeId: {},
  456. courseTypeSon: [],
  457. isChoose: 0,
  458. problemCourse: null, //查看提问的项目
  459. courseTeam: [],
  460. typeArray: [],
  461. typeCheck: "",
  462. stype: 1,
  463. stype2: 1,
  464. scid: {},
  465. dialogVisibleShare: false,
  466. page2: 1,
  467. total2: 0,
  468. pageSize2: 20,
  469. course2: [],
  470. dataJ: {},
  471. typeJArray: [],
  472. zscore: 0
  473. };
  474. },
  475. computed: {
  476. getLook() {
  477. return function (item) {
  478. let content = "";
  479. if (item.look == '1') {
  480. content = '未发布'
  481. }
  482. let now = new Date().getTime()
  483. let isTime = item.over_at && new Date(item.over_at).getTime()
  484. if (item.over_at && item.look == '2' && now > isTime && ((item.isUserCount > 0 && item.isUserCount > item.worksPerson) || item.isUserCount == 0)) {
  485. content = '逾期'
  486. }
  487. if (((item.over_at && item.look == '2' && isTime > now) || (!item.over_at && item.look == '2')) && ((item.isUserCount == 0 && item.worksPerson > 0) || (item.isUserCount > 0 && 0 < item.worksPerson && item.worksPerson < item.isUserCount))) {
  488. content = '进行中'
  489. }
  490. if (((item.over_at && item.look == '2' && isTime > now) || (!item.over_at && item.look == '2')) && item.worksPerson == 0) {
  491. content = '未进行'
  492. }
  493. if (item.look == '2' && (item.isUserCount > 0 && item.isUserCount <= item.worksPerson)) {
  494. content = '已完成'
  495. }
  496. return content;
  497. };
  498. },
  499. getLookType() {
  500. return function (item) {
  501. let content = "";
  502. if (item.look == '1') {
  503. // content = '未发布'
  504. content = 'no'
  505. }
  506. let now = new Date().getTime()
  507. let isTime = item.over_at && new Date(item.over_at).getTime()
  508. if (item.over_at && item.look == '2' && now > isTime && ((item.isUserCount > 0 && item.isUserCount > item.worksPerson) || item.isUserCount == 0)) {
  509. // content = '逾期'
  510. content = 'noTime'
  511. }
  512. if (((item.over_at && item.look == '2' && isTime > now) || (!item.over_at && item.look == '2')) && ((item.isUserCount == 0 && item.worksPerson > 0) || (item.isUserCount > 0 && 0 < item.worksPerson && item.worksPerson < item.isUserCount))) {
  513. // content = '进行中'
  514. content = 'doing'
  515. }
  516. if (((item.over_at && item.look == '2' && isTime > now) || (!item.over_at && item.look == '2')) && item.worksPerson == 0) {
  517. // content = '未进行'
  518. content = 'nodo'
  519. }
  520. if (item.look == '2' && (item.isUserCount > 0 && item.isUserCount <= item.worksPerson)) {
  521. // content = '已完成'
  522. content = 'is'
  523. }
  524. return content;
  525. };
  526. }
  527. },
  528. methods: {
  529. // 获取基础页面数据
  530. getPageBase() {
  531. let params = {
  532. typ: 2,
  533. org: this.org,
  534. oid: this.oid
  535. };
  536. // console.log(params);
  537. this.ajax
  538. .get(this.$store.state.api + "selectTestExamineBase", params)
  539. .then(res => {
  540. console.log('selectTestExamineBase',res.data[0]);
  541. this.examineData=res.data[0]
  542. })
  543. .catch(error => {
  544. console.log(error);
  545. });
  546. },
  547. random() {
  548. return Math.random().toString(36).substr(2);
  549. },
  550. tableRowClassName2({ row, rowIndex }) {
  551. if ((rowIndex + 1) % 2 === 0) {
  552. return "rowClass";
  553. } else {
  554. return "rowClass";
  555. }
  556. },
  557. change(val) {
  558. console.log(val);
  559. },
  560. time() {
  561. if (!this.now) {
  562. this.now = new Date().getTime();
  563. return true;
  564. } else {
  565. let time = new Date().getTime();
  566. if (time - this.now > 3000) {
  567. this.now = time;
  568. return true;
  569. } else {
  570. return false;
  571. }
  572. }
  573. },
  574. addHomeworkBox() {
  575. this.homeworkList.push({ name: "" });
  576. this.itemCount++;
  577. },
  578. reduceHomeworkBox() {
  579. var a = this.homeworkList;
  580. a.splice(a.length - 1);
  581. this.itemCount--;
  582. },
  583. goTo(path) {
  584. this.$router.push(path);
  585. },
  586. goToCourse(courseId) {
  587. if (courseId) {
  588. this.$router.push(
  589. "/addTest?cid=" +
  590. courseId +
  591. "&userid=" +
  592. this.userid +
  593. "&oid=" +
  594. this.oid +
  595. "&org=" +
  596. this.org +
  597. "&role=" +
  598. this.role
  599. );
  600. } else {
  601. this.$router.push(
  602. "/addTest?userid=" +
  603. this.userid +
  604. "&oid=" +
  605. this.oid +
  606. "&org=" +
  607. this.org +
  608. "&role=" +
  609. this.role
  610. );
  611. }
  612. // this.$router.push(path);
  613. },
  614. goToCourse2(item) {
  615. if (item.worksCount > 0) {
  616. this.$confirm("该表单已存在数据,如果修改题目可能会清空已提交数据,是否重新编辑?", "提示", {
  617. confirmButtonText: "确定",
  618. cancelButtonText: "取消",
  619. type: "warning",
  620. })
  621. .then(() => {
  622. this.$router.push(
  623. "/addTest?cid=" +
  624. item.courseId +
  625. "&userid=" +
  626. this.userid +
  627. "&oid=" +
  628. this.oid +
  629. "&org=" +
  630. this.org +
  631. "&type=2" +
  632. "&role=" +
  633. this.role
  634. );
  635. })
  636. .catch(() => {
  637. return;
  638. });
  639. } else {
  640. this.$router.push(
  641. "/addTest?cid=" +
  642. item.courseId +
  643. "&userid=" +
  644. this.userid +
  645. "&oid=" +
  646. this.oid +
  647. "&org=" +
  648. this.org +
  649. "&type=2" +
  650. "&role=" +
  651. this.role
  652. );
  653. }
  654. },
  655. checkToTest(cid) {
  656. this.$router.push(
  657. "/checkToTest?cid=" +
  658. cid +
  659. "&userid=" +
  660. this.userid +
  661. "&oid=" +
  662. this.oid +
  663. "&org=" +
  664. this.org +
  665. "&type=2" +
  666. "&role=" +
  667. this.role
  668. );
  669. },
  670. checkToTest2(uid) {
  671. this.$router.push(
  672. "/checkToTest2?uid=" +
  673. uid +
  674. "&userid=" +
  675. this.userid +
  676. "&oid=" +
  677. this.oid +
  678. "&org=" +
  679. this.org +
  680. "&type=2" +
  681. "&role=" +
  682. this.role
  683. );
  684. },
  685. tableRowClassName({ row, rowIndex }) {
  686. if ((rowIndex + 1) % 2 === 0) {
  687. return "even_row";
  688. } else {
  689. return "";
  690. }
  691. },
  692. jump(cid) {
  693. // window.open(
  694. // "//pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?courseId=" +
  695. // cid +
  696. // "&userid=" +
  697. // this.userid
  698. // );
  699. window.parent.postMessage({ cid: cid, screenType: "2s" }, "*");
  700. },
  701. get(cid) {
  702. window.parent.postMessage({ cid: cid, screenType: "3s" }, "*");
  703. },
  704. openTestDataBoard() {
  705. window.parent.postMessage({ tools: "dataBoardTest" }, "*");
  706. },
  707. getA(cid) {
  708. this.$router.push("/courseProgress?cid=" + cid + "&userid=" +
  709. this.userid +
  710. "&oid=" +
  711. this.oid +
  712. "&org=" +
  713. this.org)
  714. },
  715. handle_remove(file, fileList) {
  716. var _tmp = this.fileList;
  717. for (var i = 0, len = _tmp.length; i < len; i++) {
  718. if (_tmp[i].uid == file.uid) {
  719. _tmp.splice(i, 1);
  720. break;
  721. }
  722. this.fileList = _tmp;
  723. }
  724. },
  725. handle_remove1(file, fileList) {
  726. var _tmp = this.fileList1;
  727. for (var i = 0, len = _tmp.length; i < len; i++) {
  728. if (_tmp[i].uid == file.uid) {
  729. _tmp.splice(i, 1);
  730. break;
  731. }
  732. this.fileList1 = _tmp;
  733. }
  734. },
  735. handleCurrentChange(val) {
  736. // console.log(`当前页: ${val}`);
  737. this.page = val;
  738. this.getCourse();
  739. },
  740. handleCurrentChange2(val) {
  741. this.page2 = val
  742. this.getCourse2();
  743. },
  744. init() { },
  745. handleClose(done) {
  746. done();
  747. },
  748. handleRemove(file, fileList) {
  749. console.log(file, fileList);
  750. },
  751. handlePictureCardPreview(file) {
  752. this.dialogImageUrl = file.url;
  753. this.dialogVisible1 = true;
  754. },
  755. onExceed() {
  756. this.$message.error("项目海报仅支持上传一张,请删除后再进行上传");
  757. },
  758. //uuid生成
  759. guid() {
  760. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
  761. /[xy]/g,
  762. function (c) {
  763. var r = (Math.random() * 16) | 0,
  764. v = c == "x" ? r : (r & 0x3) | 0x8;
  765. return v.toString(16);
  766. }
  767. );
  768. },
  769. time() {
  770. if (!this.now) {
  771. this.now = new Date().getTime();
  772. return true;
  773. } else {
  774. let time = new Date().getTime();
  775. if (time - this.now > 3000) {
  776. this.now = time;
  777. return true;
  778. } else {
  779. return false;
  780. }
  781. }
  782. },
  783. searchCourse() {
  784. if (this.stype == 1) {
  785. this.page = 1
  786. this.getCourse();
  787. } else if (this.stype == 2) {
  788. this.page2 = 1
  789. this.getCourse2();
  790. }
  791. },
  792. clear() {
  793. if (this.CourseType.length) {
  794. for (var i = 0; i < this.CourseType[0].length; i++) {
  795. this.courseTypeId[this.CourseType[0][i].id] = "";
  796. }
  797. }
  798. this.typeCheck = ''
  799. if (this.stype == 1) {
  800. this.page = 1
  801. this.getCourse();
  802. } else if (this.stype == 2) {
  803. this.page2 = 1
  804. this.getCourse2();
  805. }
  806. },
  807. getCourse() {
  808. var typeE = [];
  809. var typea, typeb, typec, typed, typef;
  810. if (this.isChoose == 1) {
  811. for (var i = 0; i < this.CourseType[0].length; i++) {
  812. if (this.courseTypeId[this.CourseType[0][i].id] == "1") {
  813. typeE.push(this.CourseType[0][i].id);
  814. } else if (this.courseTypeId[this.CourseType[0][i].id] != "") {
  815. if (this.CourseType[0][i].name == "年级") {
  816. typea = this.courseTypeId[this.CourseType[0][i].id];
  817. } else if (this.CourseType[0][i].name == "学科") {
  818. typeb = this.courseTypeId[this.CourseType[0][i].id];
  819. } else if (this.CourseType[0][i].name == "栏目") {
  820. typeb = this.courseTypeId[this.CourseType[0][i].id];
  821. } else if (this.CourseType[0][i].name == "学院") {
  822. typeb = this.courseTypeId[this.CourseType[0][i].id];
  823. } else if (this.CourseType[0][i].name == "新技能") {
  824. typec = this.courseTypeId[this.CourseType[0][i].id];
  825. } else if (this.CourseType[0][i].name == "赛道") {
  826. typed = this.courseTypeId[this.CourseType[0][i].id];
  827. } else if (this.CourseType[0][i].name == "项目类型") {
  828. typed = this.courseTypeId[this.CourseType[0][i].id];
  829. } else if (this.CourseType[0][i].name == "主题") {
  830. // typef = this.courseTypeId[this.CourseType[0][i].id];
  831. }
  832. this.courseTypeSon.push(
  833. this.courseTypeId[this.CourseType[0][i].id]
  834. );
  835. }
  836. }
  837. }
  838. this.isLoading = true;
  839. let params = {
  840. type: this.groupA,
  841. uid: this.userid,
  842. oid: this.oid,
  843. org: this.org,
  844. typea: typea != undefined ? typea : "",
  845. typeb: typeb != undefined ? typeb : "",
  846. typec: typec != undefined ? typec : "",
  847. typed: typed != undefined ? typed : "",
  848. typef: this.typeCheck,
  849. typeE: typeE.join(","),
  850. cu: "",
  851. cn: this.courseName,
  852. page: this.page,
  853. pageSize: this.pageSize,
  854. };
  855. this.ajax
  856. .get(this.$store.state.api + "selectTesttCourse", params)
  857. .then((res) => {
  858. this.isLoading = false;
  859. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  860. this.course = res.data[0];
  861. for(var i = 0; i < this.course.length; i++) {
  862. let a = ''
  863. if(this.course[i].juriP){
  864. a = this.course[i].juriP
  865. }
  866. if(this.course[i].juriP2){
  867. if(a){
  868. a = this.course[i].juriP+','+this.course[i].juriP2
  869. }else {
  870. a = this.course[i].juriP2
  871. }
  872. }
  873. this.course[i].juriP = a
  874. }
  875. })
  876. .catch((err) => {
  877. this.isLoading = false;
  878. console.error(err);
  879. });
  880. },
  881. getCourse2() {
  882. this.isLoading = true;
  883. let params = {
  884. oid: this.oid,
  885. org: this.org,
  886. type: this.typeCheck,
  887. cn: this.courseName,
  888. page: this.page2,
  889. pageSize: this.pageSize2,
  890. };
  891. this.ajax
  892. .get(this.$store.state.api + "selectTesttCourse2", params)
  893. .then((res) => {
  894. this.isLoading = false;
  895. this.total2 = res.data[0].length > 0 ? res.data[0][0].num : 0;
  896. this.course2 = res.data[0];
  897. })
  898. .catch((err) => {
  899. this.isLoading = false;
  900. console.error(err);
  901. });
  902. },
  903. getData() {
  904. let params = {
  905. oid: this.oid,
  906. org: this.org,
  907. };
  908. this.ajax
  909. .get(this.$store.state.api + "testDataBoard", params)
  910. .then((res) => {
  911. this.isLoadingData = false;
  912. let test = res.data[0]
  913. let work = res.data[1]
  914. let dataJ = {
  915. doing: 0,
  916. nodo: 0,
  917. noLook: 0,
  918. is: 0,
  919. no: 0
  920. }
  921. for (var i = 0; i < test.length; i++) {
  922. if (test[i].look == '1') {
  923. dataJ.noLook++
  924. console.log('index-----------', i)
  925. }
  926. let now = new Date().getTime()
  927. let isTime = test[i].over_at && new Date(test[i].over_at).getTime()
  928. if (test[i].over_at && test[i].look == '2' && now > isTime && ((test[i].isUserCount > 0 && test[i].isUserCount > test[i].isWorkCount) || test[i].isUserCount == 0)) {
  929. dataJ.no++
  930. console.log('index-----------', i)
  931. }
  932. if (((test[i].over_at && test[i].look == '2' && isTime > now) || (!test[i].over_at && test[i].look == '2')) && ((test[i].isUserCount == 0 && test[i].isWorkCount > 0) || (test[i].isUserCount > 0 && 0 < test[i].isWorkCount && test[i].isWorkCount < test[i].isUserCount))) {
  933. dataJ.doing++
  934. console.log('index-----------', i)
  935. }
  936. if (((test[i].over_at && test[i].look == '2' && isTime > now) || (!test[i].over_at && test[i].look == '2')) && test[i].isWorkCount == 0) {
  937. dataJ.nodo++
  938. console.log('index-----------', i)
  939. }
  940. if (test[i].look == '2' && (test[i].isUserCount > 0 && test[i].isUserCount <= test[i].isWorkCount)) {
  941. dataJ.is++
  942. console.log('index-----------', i)
  943. }
  944. }
  945. this.dataJ = dataJ
  946. if (this.typeArray.length) {
  947. let typeJ = {}
  948. for (var i = 0; i < this.typeArray.length; i++) {
  949. typeJ[this.typeArray[i].id] = {
  950. name: this.typeArray[i].name,
  951. count: 0,
  952. scroe: 0,
  953. zcount: 0,
  954. kcount: 0
  955. }
  956. }
  957. typeJ['qita'] = {
  958. name: '其他',
  959. count: 0,
  960. scroe: 0,
  961. zcount: 0,
  962. kcount: 0
  963. }
  964. for (var i = 0; i < work.length; i++) {
  965. if (work[i].typeid) {
  966. let score = this.getScore(work[i].courseJson)
  967. typeJ[work[i].typeid].count++
  968. typeJ[work[i].typeid].scroe += score
  969. } else {
  970. let score = this.getScore(work[i].courseJson)
  971. typeJ['qita'].count++
  972. typeJ['qita'].scroe += score
  973. }
  974. }
  975. let typeJArray = Object.values(typeJ)
  976. let zscore = 0
  977. for (var i = 0; i < typeJArray.length; i++) {
  978. typeJArray[i].zcount = typeJArray[i].scroe ? Math.round(typeJArray[i].scroe / typeJArray[i].count) : 0
  979. zscore += typeJArray[i].zcount
  980. }
  981. this.zscore = zscore ? zscore / typeJArray.length : 0
  982. for (var i = 0; i < test.length; i++) {
  983. let now = new Date().getTime()
  984. let isTime = test[i].over_at && new Date(test[i].over_at).getTime()
  985. if (test[i].over_at && test[i].look == '2' && now > isTime && test[i].typeid && ((test[i].isUserCount > 0 && test[i].isUserCount > test[i].isWorkCount) || test[i].isUserCount == 0)) {
  986. typeJ[test[i].typeid].kcount++
  987. } else if (test[i].over_at && test[i].look == '1' && now > isTime && ((test[i].isUserCount > 0 && test[i].isUserCount > test[i].isWorkCount) || test[i].isUserCount == 0)) {
  988. typeJ['qita'].kcount++
  989. }
  990. }
  991. this.typeJArray = typeJArray
  992. }
  993. })
  994. .catch((err) => {
  995. this.isLoadingData = false;
  996. console.error(err);
  997. });
  998. },
  999. getScore(courseJson) {
  1000. // let _array = JSON.parse(array)
  1001. let _score = 0;
  1002. let _array = JSON.parse(courseJson);
  1003. for (var j = 0; j < _array.length; j++) {
  1004. let el = _array[j];
  1005. if ((el.ttype == 3 || el.ttype == 2) && el.array.length > 0) {
  1006. for (var k = 0; k < el.array.length; k++) {
  1007. let item = el.array[k];
  1008. if (item.ttype == 2 && item.array.length > 0) {
  1009. for (var z = 0; z < item.array.length; z++) {
  1010. let item2 = item.array[z];
  1011. if (item2.ttype == 1 && item2.json && item2.json.score2) {
  1012. _score += parseInt(item2.json.score2);
  1013. }
  1014. }
  1015. } else if (item.ttype == 1 && item.json && item.json.score2) {
  1016. _score += parseInt(item.json.score2);
  1017. }
  1018. }
  1019. } else if (el.ttype == 1 && el.json && el.json.score2) {
  1020. _score += parseInt(el.json.score2);
  1021. }
  1022. }
  1023. return _score ? _score : 0;
  1024. },
  1025. getTypeName() {
  1026. this.$forceUpdate();
  1027. this.page = 1;
  1028. this.isChoose = 1;
  1029. this.getCourse();
  1030. },
  1031. // searchCourse() {
  1032. // this.isLoading = true;
  1033. // let params = {
  1034. // cu: "",
  1035. // cn: this.courseName,
  1036. // page: this.page,
  1037. // };
  1038. // this.ajax
  1039. // .get(this.$store.state.api + "searchCourse", params)
  1040. // .then((res) => {
  1041. // this.isLoading = false;
  1042. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1043. // this.course = res.data[0];
  1044. // })
  1045. // .catch((err) => {
  1046. // this.isLoading = false;
  1047. // console.error(err);
  1048. // });
  1049. // },
  1050. shareTest(cid) {
  1051. this.scid = cid
  1052. this.dialogVisibleShare = true
  1053. },
  1054. deleteCourse(cid) {
  1055. // if (this.time()) {
  1056. this.$confirm("确定删除此表单吗?", "提示", {
  1057. confirmButtonText: "确定",
  1058. cancelButtonText: "取消",
  1059. type: "warning",
  1060. })
  1061. .then(() => {
  1062. this.isLoading = true;
  1063. let params = [{
  1064. cid: cid,
  1065. }];
  1066. this.ajax
  1067. .post(this.$store.state.api + "deleteTestCourse", params)
  1068. .then((res) => {
  1069. this.isLoading = false;
  1070. this.$message.success("删除成功");
  1071. this.getCourse();
  1072. })
  1073. .catch((err) => {
  1074. loading.close();
  1075. this.isLoading = false;
  1076. console.error(err);
  1077. });
  1078. })
  1079. .catch(() => {
  1080. return;
  1081. });
  1082. // }
  1083. },
  1084. selectAllType() {
  1085. let params = {
  1086. org: this.org && this.org != "" ? this.org : "",
  1087. oid: this.oid && this.oid != "" ? this.oid : "",
  1088. };
  1089. this.ajax
  1090. .get(this.$store.state.api + "selectAllTypeT", params)
  1091. .then((res) => {
  1092. this.CourseType = res.data;
  1093. for (var i = 0; i < res.data[0].length; i++) {
  1094. if (res.data[0][i].id == "34629907-d02f-11ec-8c78-005056b86db5") {
  1095. res.data[0][i].name = "学科";
  1096. } else if (res.data[0][i].id == "34628934-d02f-11ec-8c78-005056b86db5") {
  1097. res.data[0][i].name = "年级";
  1098. }
  1099. if (!this.cid) {
  1100. this.courseTypeId[res.data[0][i].id] = '';
  1101. }
  1102. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1103. this.CourseTypeJson[res.data[0][i].id] = [];
  1104. }
  1105. if (res.data[2].length == 0 && res.data[3].length == 0) {
  1106. // for (var j = 0; j < res.data[1].length; j++) {
  1107. // if (res.data[0][i].id == res.data[1][j].pid) {
  1108. // this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  1109. // }
  1110. // }
  1111. // if(this.org == '150e3120-9195-11ed-b13d-005056b86db5'){
  1112. for (var j = 0; j < res.data[1].length; j++) {
  1113. if (res.data[0][i].id == res.data[1][j].pid) {
  1114. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  1115. }
  1116. }
  1117. // }else{
  1118. // this.CourseType = []
  1119. // }
  1120. } else {
  1121. if (res.data[2].length > 0) {
  1122. for (var j = 0; j < res.data[2].length; j++) {
  1123. if (res.data[0][i].id == res.data[2][j].pid) {
  1124. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  1125. }
  1126. }
  1127. }
  1128. if (res.data[3].length > 0) {
  1129. for (var j = 0; j < res.data[3].length; j++) {
  1130. if (res.data[0][i].id == res.data[3][j].pid) {
  1131. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  1132. }
  1133. }
  1134. }
  1135. }
  1136. }
  1137. })
  1138. .catch((err) => {
  1139. console.error(err);
  1140. });
  1141. },
  1142. selectTestType() {
  1143. this.isLoadingData = true
  1144. let params = {
  1145. oid: this.oid,
  1146. };
  1147. this.ajax
  1148. .get(this.$store.state.api + "selectTestType", params)
  1149. .then((res) => {
  1150. this.typeArray = res.data[0];
  1151. this.getData()
  1152. })
  1153. .catch((err) => {
  1154. console.error(err);
  1155. });
  1156. },
  1157. selectType() {
  1158. this.ajax
  1159. .get(this.$store.state.api + "selectStudentType")
  1160. .then((res) => {
  1161. this.CourseType = res.data;
  1162. for (var i = 0; i < res.data[0].length; i++) {
  1163. if (!this.cid) {
  1164. this.courseTypeId[res.data[0][i].id] = "";
  1165. }
  1166. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  1167. if (res.data[0][i].name == "栏目") {
  1168. this.CourseType[0][i].name = "主题";
  1169. }
  1170. }
  1171. for (var j = 0; j < res.data[1].length; j++) {
  1172. if (res.data[0][i].id == res.data[1][j].pid) {
  1173. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1174. this.CourseTypeJson[res.data[0][i].id] = [];
  1175. }
  1176. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); //去除公共分类
  1177. }
  1178. }
  1179. }
  1180. this.selectTypeByOid();
  1181. this.selectTypeByOrg();
  1182. })
  1183. .catch((err) => {
  1184. console.error(err);
  1185. });
  1186. },
  1187. selectTypeByOid() {
  1188. let params = {
  1189. oid: this.oid,
  1190. };
  1191. this.ajax
  1192. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  1193. .then((res) => {
  1194. for (var i = 0; i < res.data[0].length; i++) {
  1195. for (var j = 0; j < res.data[1].length; j++) {
  1196. if (res.data[0][i].id == res.data[1][j].pid) {
  1197. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1198. this.CourseTypeJson[res.data[0][i].id] = [];
  1199. }
  1200. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1201. }
  1202. }
  1203. }
  1204. this.$forceUpdate();
  1205. })
  1206. .catch((err) => {
  1207. console.error(err);
  1208. });
  1209. },
  1210. selectTypeByOrg() {
  1211. let params = {
  1212. oid: this.org,
  1213. };
  1214. this.ajax
  1215. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  1216. .then((res) => {
  1217. for (var i = 0; i < res.data[0].length; i++) {
  1218. for (var j = 0; j < res.data[1].length; j++) {
  1219. if (res.data[0][i].id == res.data[1][j].pid) {
  1220. if (!this.CourseTypeJson[res.data[0][i].id]) {
  1221. this.CourseTypeJson[res.data[0][i].id] = [];
  1222. }
  1223. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  1224. }
  1225. }
  1226. }
  1227. this.$forceUpdate();
  1228. })
  1229. .catch((err) => {
  1230. console.error(err);
  1231. });
  1232. },
  1233. openCourse() {
  1234. this.dialogVisibleCourse = true;
  1235. this.getTeamCourse();
  1236. },
  1237. getTeamCourse() {
  1238. let params = {
  1239. uid: this.userid,
  1240. oid: this.oid,
  1241. };
  1242. this.ajax
  1243. .get(this.$store.state.api + "selectCourseTeam", params)
  1244. .then((res) => {
  1245. this.courseTeam = res.data[0];
  1246. })
  1247. .catch((err) => {
  1248. console.error(err);
  1249. });
  1250. },
  1251. checkStype2(type) {
  1252. if (this.stype2 != type) {
  1253. this.stype2 = type
  1254. }
  1255. },
  1256. checkDataType(type) {
  1257. if (this.stype != type) {
  1258. this.stype = type
  1259. if (type == 1) {
  1260. this.page = 1
  1261. this.getCourse()
  1262. } else {
  1263. this.page2 = 1
  1264. this.getCourse2()
  1265. }
  1266. }
  1267. },
  1268. search() {
  1269. if (this.stype == 1) {
  1270. this.page = 1
  1271. this.getCourse();
  1272. } else if (this.stype == 2) {
  1273. this.page2 = 1
  1274. this.getCourse2();
  1275. }
  1276. },
  1277. checkProblem(res) {
  1278. this.problemCourse = res;
  1279. this.dialogVisible = true;
  1280. },
  1281. copyTest(cid) {
  1282. let params = [{
  1283. cid: cid,
  1284. uid: this.userid
  1285. }]
  1286. this.ajax
  1287. .post(this.$store.state.api + "copyTest", params)
  1288. .then((res) => {
  1289. this.page = 1
  1290. if (this.role == "1") {
  1291. this.groupA = "0";
  1292. } else {
  1293. this.groupA = "0";
  1294. }
  1295. this.$message.success("复制成功")
  1296. this.clear()
  1297. })
  1298. .catch((err) => {
  1299. console.error(err);
  1300. });
  1301. }
  1302. },
  1303. activated() {
  1304. console.log(1);
  1305. this.selectAllType();
  1306. if (this.stype == 1) {
  1307. this.getCourse();
  1308. } else if (this.stype == 2) {
  1309. this.getCourse2();
  1310. }
  1311. this.selectTestType();
  1312. },
  1313. mounted() {
  1314. this.getPageBase()
  1315. console.log(2);
  1316. if (this.orgArray2.includes(this.org) || this.oidArray.includes(this.oid)) {
  1317. this.stype = 3
  1318. }
  1319. if (this.role == '1') {
  1320. this.groupA = '0'
  1321. }
  1322. this.page = 1;
  1323. this.selectAllType();
  1324. if (this.stype == 1) {
  1325. this.getCourse();
  1326. } else if (this.stype == 2) {
  1327. this.getCourse2();
  1328. }
  1329. this.selectTestType();
  1330. window.onbeforeunload = function(event) {
  1331. event.preventDefault();
  1332. event.returnValue = false;
  1333. return false
  1334. }
  1335. },
  1336. };
  1337. </script>
  1338. <style scoped>
  1339. @media screen and (max-width: 1380px) {
  1340. .test_box {
  1341. width: calc(100% / 4 - (15px * 3) / 4) !important;
  1342. }
  1343. .test_box:nth-child(5n) {
  1344. margin-right: 15px !important;
  1345. }
  1346. .test_box:nth-child(4n) {
  1347. margin-right: 0 !important;
  1348. }
  1349. }
  1350. @media screen and (max-width: 1080px) {
  1351. .test_box {
  1352. width: calc(100% / 3 - (15px * 2) / 3) !important;
  1353. }
  1354. .test_box:nth-child(5n) {
  1355. margin-right: 15px !important;
  1356. }
  1357. .test_box:nth-child(4n) {
  1358. margin-right: 15px !important;
  1359. }
  1360. .test_box:nth-child(3n) {
  1361. margin-right: 0 !important;
  1362. }
  1363. }
  1364. .dialog_diy>>>.el-dialog__header {
  1365. background: #3d67bc !important;
  1366. padding: 15px 20px;
  1367. }
  1368. .dialog_diy>>>.el-dialog__title {
  1369. color: #fff;
  1370. }
  1371. .dialog_diy>>>.el-dialog__headerbtn {
  1372. top: 19px;
  1373. }
  1374. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  1375. color: #fff;
  1376. }
  1377. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  1378. color: #fff;
  1379. }
  1380. .student_head>>>.el-button--primary {
  1381. background-color: #3681fc;
  1382. }
  1383. .xls_button {
  1384. font-size: 14px;
  1385. cursor: pointer;
  1386. text-decoration: underline;
  1387. color: rgb(34, 104, 188);
  1388. }
  1389. .student_head {
  1390. display: flex;
  1391. justify-content: space-between;
  1392. align-items: baseline;
  1393. flex-direction: row;
  1394. flex-wrap: wrap;
  1395. padding: 0 0 0;
  1396. }
  1397. .top {
  1398. display: flex;
  1399. justify-content: space-between;
  1400. width: 100% !important;
  1401. box-sizing: border-box;
  1402. margin: 0px auto;
  1403. padding: 10px 0;
  1404. height: 54px;
  1405. }
  1406. .bgColor {
  1407. background: #3681fc;
  1408. }
  1409. .student_search {
  1410. display: flex;
  1411. align-items: center;
  1412. /* width: calc(100% / 3); */
  1413. width: 190px;
  1414. }
  1415. .student_search span {
  1416. margin: 0 10px 0 0;
  1417. min-width: 50px;
  1418. text-align-last: justify;
  1419. }
  1420. .student_button {
  1421. display: flex;
  1422. overflow: hidden;
  1423. height: 40px;
  1424. }
  1425. .upload-demo {
  1426. display: flex;
  1427. flex-direction: column;
  1428. align-items: end;
  1429. /* position: relative; */
  1430. width: 100px;
  1431. overflow: hidden;
  1432. }
  1433. .student_table {
  1434. padding: 0 0;
  1435. height: 100%;
  1436. /* overflow: auto; */
  1437. min-height: 360px;
  1438. width: calc(100% - 20px);
  1439. margin: 0 auto;
  1440. }
  1441. .student_empty {
  1442. display: flex;
  1443. justify-content: center;
  1444. align-items: center;
  1445. }
  1446. .el-table>>>.even_row {
  1447. background-color: #f1f1f1;
  1448. }
  1449. .time {
  1450. font-size: 13px;
  1451. color: #999;
  1452. }
  1453. .course_button {
  1454. padding: 10px 20px;
  1455. }
  1456. .course_button_box {
  1457. display: flex;
  1458. margin-top: 5px;
  1459. justify-content: space-between;
  1460. }
  1461. .course_rate {
  1462. margin-top: 5px;
  1463. }
  1464. .course_view {
  1465. display: flex;
  1466. align-items: center;
  1467. margin: 5px 0 0 0;
  1468. }
  1469. .course_view i {
  1470. background-image: url("../../../assets/liulan.png");
  1471. width: 25px;
  1472. height: 25px;
  1473. background-size: 100% 100%;
  1474. /* margin-top: 1px; */
  1475. line-height: 25px;
  1476. vertical-align: text-top;
  1477. background-repeat: no-repeat;
  1478. }
  1479. .image {
  1480. width: 100%;
  1481. height: 150px;
  1482. display: block;
  1483. }
  1484. .course_box {
  1485. display: flex;
  1486. flex-wrap: wrap;
  1487. }
  1488. .student_page {
  1489. width: calc(100% - 20px);
  1490. margin: 0 auto;
  1491. display: flex;
  1492. justify-content: flex-end;
  1493. }
  1494. .course_create_box {
  1495. font-size: 18px;
  1496. }
  1497. .course_name {
  1498. margin-top: 10px;
  1499. }
  1500. .course_name span {
  1501. margin-bottom: 10px;
  1502. display: block;
  1503. }
  1504. .homework_box {
  1505. display: flex;
  1506. align-items: center;
  1507. flex-wrap: wrap;
  1508. }
  1509. .course_homework {
  1510. width: 130px;
  1511. display: flex;
  1512. justify-content: center;
  1513. flex-direction: column;
  1514. align-items: center;
  1515. margin: 0 10px 10px 0;
  1516. }
  1517. .course_type {
  1518. margin-top: 10px;
  1519. display: flex;
  1520. }
  1521. .course_type1 span {
  1522. margin-bottom: 10px;
  1523. display: block;
  1524. }
  1525. .course_type2 {
  1526. margin-left: 20px;
  1527. }
  1528. .course_type2 span {
  1529. margin-bottom: 10px;
  1530. display: block;
  1531. }
  1532. .course_empty {
  1533. color: rgb(110, 110, 110);
  1534. width: 100%;
  1535. height: 100%;
  1536. display: flex;
  1537. align-items: center;
  1538. justify-content: center;
  1539. }
  1540. .el_cards>>>.el-card__body {
  1541. height: 100%;
  1542. }
  1543. .courseBtnBox {
  1544. display: flex;
  1545. flex-direction: column;
  1546. justify-content: space-between;
  1547. height: calc(100% - 170px);
  1548. padding: 10px;
  1549. }
  1550. .wordUpload {
  1551. display: flex;
  1552. }
  1553. .wordUpload>.buttonUp {
  1554. margin-right: 5px;
  1555. }
  1556. .out_box {
  1557. display: flex;
  1558. flex-direction: column;
  1559. flex-wrap: nowrap;
  1560. width: 250px;
  1561. background: #fff;
  1562. margin-right: 25px;
  1563. border: 1px solid #ccc;
  1564. height: fit-content;
  1565. box-sizing: border-box;
  1566. border-radius: 0px 0px 5px 5px;
  1567. /* overflow: hidden; */
  1568. margin-bottom: 15px;
  1569. position: relative;
  1570. padding-top: 30px;
  1571. }
  1572. .bottom_box {
  1573. display: flex;
  1574. padding: 0 0 10px 10px;
  1575. flex-direction: column;
  1576. box-sizing: border-box;
  1577. height: 140px;
  1578. flex-wrap: nowrap;
  1579. justify-content: space-evenly;
  1580. }
  1581. .bottom_box>div:nth-child(1) {
  1582. width: 230px;
  1583. overflow: hidden;
  1584. display: flex;
  1585. align-items: center;
  1586. }
  1587. .bottom_box>div:nth-child(1) span:nth-child(1) {
  1588. font-weight: bold;
  1589. font-size: 18px;
  1590. overflow: hidden;
  1591. text-overflow: ellipsis;
  1592. white-space: nowrap;
  1593. max-width: 100%;
  1594. }
  1595. .bottom_box>div:nth-child(1) span:nth-child(2) {
  1596. font-size: 14px;
  1597. min-width: fit-content;
  1598. margin-left: 5px;
  1599. color: #0074ff;
  1600. }
  1601. .tup {
  1602. width: 100%;
  1603. height: 141.06px;
  1604. margin: 0 auto;
  1605. overflow: hidden;
  1606. display: flex;
  1607. align-items: center;
  1608. }
  1609. .tup>img {
  1610. width: 100%;
  1611. height: 100%;
  1612. object-fit: contain;
  1613. }
  1614. .kc_time {
  1615. margin-top: 8px;
  1616. font-size: 14px;
  1617. color: #999;
  1618. }
  1619. .kc_t {
  1620. margin-top: 5px;
  1621. width: 100%;
  1622. white-space: nowrap;
  1623. overflow: hidden;
  1624. text-overflow: ellipsis;
  1625. }
  1626. .three_bottom {
  1627. display: flex;
  1628. flex-direction: row;
  1629. justify-content: space-around;
  1630. height: 40px;
  1631. align-items: center;
  1632. background: #f5f4f4;
  1633. font-size: 14px;
  1634. }
  1635. .three_bottom>div {
  1636. cursor: pointer;
  1637. }
  1638. .three_bottom>div:hover {
  1639. color: #79a2ff;
  1640. }
  1641. .head_left {
  1642. display: flex;
  1643. margin-top: 15px;
  1644. }
  1645. .student_input>>>.el-input__inner {
  1646. height: 40px;
  1647. width: 190px;
  1648. font-size: 13px;
  1649. padding: 0 10px;
  1650. }
  1651. .course_button {
  1652. color: #fff;
  1653. background: #3681fc;
  1654. width: 75px;
  1655. height: 40px;
  1656. padding: 0 !important;
  1657. font-size: 12px;
  1658. line-height: 40px;
  1659. }
  1660. .all_choose {
  1661. /* margin: 15px 0 10px; */
  1662. /* height: 20%; */
  1663. display: flex;
  1664. flex-direction: row;
  1665. align-items: center;
  1666. max-width: 180px;
  1667. width: 180px;
  1668. }
  1669. .all_choose>span {
  1670. min-width: 50px;
  1671. display: block;
  1672. margin-right: 10px;
  1673. text-align-last: justify;
  1674. }
  1675. .choose {
  1676. display: flex;
  1677. flex-direction: row;
  1678. flex-wrap: wrap;
  1679. align-content: space-between;
  1680. height: 100%;
  1681. justify-content: flex-start;
  1682. /* width: 60%; */
  1683. /* min-width: 868px; */
  1684. align-items: center;
  1685. }
  1686. .choose>div {
  1687. /* margin-left: 10px; */
  1688. width: 180px;
  1689. /* margin-top: 15px; */
  1690. }
  1691. .choose>div+div {
  1692. margin-left: 10px;
  1693. }
  1694. .choose>.clear {
  1695. width: 70px
  1696. }
  1697. .clear {
  1698. width: 70px;
  1699. max-width: 70px;
  1700. height: 35px;
  1701. background: #3681fc;
  1702. color: #fff;
  1703. text-align: center;
  1704. border-radius: 5px;
  1705. line-height: 35px;
  1706. cursor: pointer;
  1707. margin-left: 20px;
  1708. }
  1709. .ct_box {
  1710. height: 500px;
  1711. overflow: auto;
  1712. display: flex;
  1713. flex-wrap: wrap;
  1714. }
  1715. .myCourse {
  1716. position: absolute;
  1717. background: #3c3c3c;
  1718. width: 65px;
  1719. height: 25px;
  1720. color: #fff;
  1721. font-size: 12px;
  1722. text-align: center;
  1723. line-height: 25px;
  1724. top: 0;
  1725. right: 0;
  1726. }
  1727. .xtCourse {
  1728. position: absolute;
  1729. background: #3681fc;
  1730. width: 70px;
  1731. height: 30px;
  1732. border-radius: 30px;
  1733. color: #fff;
  1734. font-size: 14px;
  1735. text-align: center;
  1736. line-height: 30px;
  1737. top: 5px;
  1738. left: 5px;
  1739. }
  1740. .subClick {
  1741. font-size: 16px;
  1742. cursor: pointer;
  1743. margin-left: 10px;
  1744. /* color: #ab582f; */
  1745. color: #409eff;
  1746. }
  1747. .more {
  1748. position: relative;
  1749. }
  1750. .more:hover div {
  1751. display: block;
  1752. color: #000;
  1753. }
  1754. .more div {
  1755. position: absolute;
  1756. bottom: 0px;
  1757. transform: translate(-50%, 100%);
  1758. background: #f5f4f4;
  1759. padding: 10px 20px;
  1760. z-index: 99;
  1761. width: 40px;
  1762. border-radius: 5px;
  1763. box-shadow: 0 0 3px 3px #80808020;
  1764. display: none;
  1765. }
  1766. .more div>span+span {
  1767. margin-top: 10px;
  1768. }
  1769. .more div>span {
  1770. display: block;
  1771. width: 100%;
  1772. text-align: center;
  1773. }
  1774. .more div>span:hover {
  1775. color: #79a2ff;
  1776. }
  1777. .test_box {
  1778. width: calc(100% / 5 - (15px * 4) / 5);
  1779. /* width: 250px; */
  1780. background: #fff;
  1781. border-radius: 5px;
  1782. padding: 20px;
  1783. margin: 5px 15px 10px 0;
  1784. box-sizing: border-box;
  1785. border: 1px solid #e7e7e7;
  1786. }
  1787. .test_box:nth-child(5n) {
  1788. margin-right: 0;
  1789. }
  1790. .test_top {
  1791. width: 100%;
  1792. display: flex;
  1793. align-items: center;
  1794. }
  1795. .test_top>.test_top_img {
  1796. height: 40px;
  1797. width: 40px;
  1798. background: rgb(108 150 217);
  1799. margin-right: 10px;
  1800. border-radius: 5px;
  1801. display: flex;
  1802. align-items: center;
  1803. justify-content: center;
  1804. }
  1805. .test_top>.gr {
  1806. background: rgb(142, 189, 176);
  1807. }
  1808. .test_top>.md {
  1809. background: rgb(139, 174, 227);
  1810. }
  1811. .test_top>.js {
  1812. background: rgb(64, 149, 174);
  1813. }
  1814. .test_top>.yy {
  1815. background: rgb(98, 102, 188);
  1816. }
  1817. .test_top>.bj {
  1818. background: rgb(98, 158, 188);
  1819. }
  1820. .test_top>.test_top_img:after {
  1821. content: '';
  1822. display: block;
  1823. width: 23px;
  1824. height: 23px;
  1825. background-size: 100% 100%;
  1826. background-image: url('../../../assets/icon/test/all_icon_b.png');
  1827. }
  1828. .test_top>.gr:after {
  1829. background-image: url('../../../assets/icon/test/gr_icon_b.png');
  1830. }
  1831. .test_top>.md:after {
  1832. background-image: url('../../../assets/icon/test/md_icon_b.png');
  1833. }
  1834. .test_top>.js:after {
  1835. background-image: url('../../../assets/icon/test/js_icon_b.png');
  1836. }
  1837. .test_top>.yy:after {
  1838. background-image: url('../../../assets/icon/test/yy_icon_b.png');
  1839. }
  1840. .test_top>.bj:after {
  1841. background-image: url('../../../assets/icon/test/bj_icon_b.png');
  1842. }
  1843. .test_top>.test_top_title {
  1844. display: flex;
  1845. flex-direction: column;
  1846. justify-content: space-between;
  1847. height: 40px;
  1848. width: calc(100% - 40px - 10px)
  1849. }
  1850. .test_top>.test_top_title>span {
  1851. width: 100;
  1852. display: block;
  1853. word-break: break-all;
  1854. overflow: hidden;
  1855. text-overflow: ellipsis;
  1856. white-space: nowrap;
  1857. }
  1858. .test_top>.test_top_title>span:nth-child(1) {
  1859. font-size: 15px;
  1860. }
  1861. .test_top>.test_top_title>span:nth-child(2) {
  1862. font-size: 14px;
  1863. color: rgb(58, 131, 252);
  1864. }
  1865. .test_box>.test_time {
  1866. margin-top: 10px;
  1867. font-size: 14px;
  1868. color: #a7a7a7;
  1869. display: flex;
  1870. }
  1871. .test_box>.test_time>span:nth-child(1) {
  1872. width: 85px;
  1873. display: flex;
  1874. }
  1875. .test_box>.test_time>span:nth-child(1)>span {
  1876. width: 100%;
  1877. text-align-last: justify;
  1878. }
  1879. .test_box>.test_time>span:nth-child(1)::after {
  1880. content: ':';
  1881. }
  1882. .test_box>.test_time>span:nth-child(2) {
  1883. max-width: calc(100% - 70px);
  1884. overflow: hidden;
  1885. display: block;
  1886. text-overflow: ellipsis;
  1887. white-space: nowrap;
  1888. word-break: break-all;
  1889. }
  1890. .test_box>.test_btn {
  1891. margin-top: 10px;
  1892. display: flex;
  1893. align-items: center;
  1894. justify-content: space-between;
  1895. }
  1896. .test_box>.test_btn>.test_o_btn {
  1897. display: flex;
  1898. align-items: center;
  1899. }
  1900. .test_box>.test_btn>.test_o_btn>span {
  1901. display: block;
  1902. width: 18px;
  1903. height: 18px;
  1904. background-size: 100% 100%;
  1905. cursor: pointer;
  1906. }
  1907. .test_box>.test_btn>.test_o_btn>.edit {
  1908. background-image: url('../../../assets/icon/test/edit_test_icon.png');
  1909. margin-right: 20px;
  1910. }
  1911. .test_box>.test_btn>.test_o_btn>.check {
  1912. background-image: url('../../../assets/icon/test/check_test_icon.png');
  1913. margin-right: 20px;
  1914. }
  1915. .test_box>.test_btn>.test_o_btn>.copy {
  1916. background-image: url('../../../assets/icon/test/paste-icon.png');
  1917. margin-right: 20px;
  1918. }
  1919. .test_box>.test_btn>.test_o_btn>.share {
  1920. background-image: url('../../../assets/icon/test/share_test_icon.png');
  1921. margin-right: 20px;
  1922. }
  1923. .test_box>.test_btn>.test_o_btn>.delete {
  1924. background-image: url('../../../assets/icon/test/delete_test_icon.png');
  1925. }
  1926. .test_type {
  1927. font-size: 12px;
  1928. border-radius: 5px;
  1929. border: 1.5px solid;
  1930. padding: 3px 8px;
  1931. }
  1932. .is {
  1933. color: rgb(57, 204, 127);
  1934. background-color: rgba(57, 204, 127, .1);
  1935. }
  1936. .no {
  1937. color: rgb(235, 154, 96);
  1938. background-color: rgba(235, 154, 96, .1);
  1939. }
  1940. .noTime {
  1941. color: rgb(77, 77, 77);
  1942. background-color: rgba(77, 77, 77, .1);
  1943. }
  1944. .doing {
  1945. color: rgb(54, 116, 231);
  1946. background-color: rgba(54, 116, 231, .1);
  1947. }
  1948. .nodo {
  1949. color: rgb(97, 184, 255);
  1950. background-color: rgba(97, 184, 255, .1);
  1951. }
  1952. .test_type2 {
  1953. font-size: 14px;
  1954. border-radius: 5px;
  1955. /* border: 1.5px solid; */
  1956. padding: 3px 8px;
  1957. }
  1958. .sub_head {
  1959. position: relative;
  1960. font-size: 20px;
  1961. font-weight: bold;
  1962. padding: 0 15px;
  1963. }
  1964. .sub_head::after {
  1965. content: "";
  1966. width: 100%;
  1967. background: #3681FC;
  1968. height: 2px;
  1969. position: absolute;
  1970. left: 0;
  1971. bottom: -8px;
  1972. }
  1973. .subClick {
  1974. /* font-size: 16px; */
  1975. font-size: 20px;
  1976. cursor: pointer;
  1977. /* margin-left: 17.5px; */
  1978. /* color: #ab582f; */
  1979. /* color: #409eff; */
  1980. color: #999;
  1981. padding: 0 15px;
  1982. }
  1983. .subClick:hover {
  1984. color: #000;
  1985. }
  1986. .sub_head+.subClick,
  1987. .subClick+.subClick,
  1988. .subClick+.sub_head {
  1989. margin-left: 17.5px;
  1990. }
  1991. .bbox_nav {
  1992. width: 100%;
  1993. display: flex;
  1994. align-items: center;
  1995. margin-top: 10px;
  1996. }
  1997. .bbox_nav>span {
  1998. height: 40px;
  1999. line-height: 40px;
  2000. text-align: center;
  2001. background: #e0eafb;
  2002. font-size: 18px;
  2003. color: #41506D;
  2004. padding: 0 35px;
  2005. margin-right: 15px;
  2006. cursor: pointer;
  2007. border-radius: 5px 5px 0 0;
  2008. }
  2009. .bbox_nav>.active {
  2010. background: #3681fc;
  2011. color: #fff;
  2012. }
  2013. .bbox {
  2014. background: #fff;
  2015. border-radius: 0 5px 5px 5px;
  2016. padding: 15px 0;
  2017. box-sizing: border-box;
  2018. }
  2019. .search_nav {
  2020. border-bottom: 1px solid #E7E7E7;
  2021. width: 100%;
  2022. box-sizing: border-box;
  2023. padding: 0 15px;
  2024. display: flex;
  2025. align-items: center;
  2026. }
  2027. .search_nav>.right {
  2028. display: flex;
  2029. align-items: center;
  2030. }
  2031. .search_nav>.right>span {
  2032. height: 30px;
  2033. font-size: 14px;
  2034. color: #000;
  2035. cursor: pointer;
  2036. position: relative;
  2037. }
  2038. .search_nav>.right>span+span {
  2039. margin-left: 35px;
  2040. }
  2041. .search_nav>.right>span.active {
  2042. color: #3681FC;
  2043. font-weight: 600;
  2044. }
  2045. .search_nav>.right>span.active::before {
  2046. content: "";
  2047. position: absolute;
  2048. bottom: 0;
  2049. width: 15px;
  2050. height: 3px;
  2051. background: #3681fc;
  2052. left: 50%;
  2053. transform: translateX(-50%);
  2054. }
  2055. .search_nav>.left {
  2056. display: flex;
  2057. align-items: center;
  2058. margin-left: auto;
  2059. }
  2060. .search_nav>.left>span {
  2061. height: 25px;
  2062. width: 25px;
  2063. display: flex;
  2064. align-items: center;
  2065. justify-content: center;
  2066. border-radius: 5px;
  2067. cursor: pointer;
  2068. }
  2069. .search_nav>.left>span+span {
  2070. margin-left: 10px;
  2071. }
  2072. .search_nav>.left>span.active {
  2073. background: #E0EAFB;
  2074. }
  2075. .search_nav>.left>span::before {
  2076. content: "";
  2077. width: 12px;
  2078. height: 12px;
  2079. background-size: 100% 100%;
  2080. }
  2081. .search_nav>.left>span.list::before {
  2082. background-image: url("../../../assets/icon/test/test_list.png");
  2083. }
  2084. .search_nav>.left>span.table::before {
  2085. background-image: url("../../../assets/icon/test/test_table.png");
  2086. }
  2087. .search_nav>.left>span.table.active::before {
  2088. background-image: url("../../../assets/icon/test/test_table_active.png");
  2089. }
  2090. .search_nav>.left>span.list.active::before {
  2091. background-image: url("../../../assets/icon/test/test_list_active.png");
  2092. }
  2093. .serach_icon {
  2094. position: absolute;
  2095. right: 12px;
  2096. top: 50%;
  2097. transform: translateY(-50%);
  2098. width: 13px;
  2099. height: 13px;
  2100. background: url("../../../assets/icon/test/test_search.png") no-repeat;
  2101. background-size: 100% 100%;
  2102. cursor: pointer;
  2103. }
  2104. .student_input>>>.el-input__inner {
  2105. padding-right: 35px;
  2106. }
  2107. .test_data_box {
  2108. display: flex;
  2109. width: calc(100% - 20px);
  2110. margin: 0 auto 15px;
  2111. flex-wrap: wrap;
  2112. }
  2113. .test_data_box>.data_box {
  2114. width: calc(100% / 4 - (45px / 4));
  2115. height: 150px;
  2116. border: 1px solid #e7e7e7;
  2117. border-radius: 5px;
  2118. box-sizing: border-box;
  2119. padding: 10px;
  2120. display: flex;
  2121. align-items: center;
  2122. }
  2123. .test_data_box>.data_box+.data_box {
  2124. margin-left: 15px;
  2125. }
  2126. .test_data_box>.data_box>.left {
  2127. /* width: 110px; */
  2128. min-width: fit-content;
  2129. height: 100%;
  2130. }
  2131. .test_data_box>.data_box>.left>.title {
  2132. font-size: 16px;
  2133. color: #00000099;
  2134. margin-bottom: 10px;
  2135. }
  2136. .test_data_box>.data_box>.left>.box {
  2137. display: flex;
  2138. flex-direction: column;
  2139. font-size: 14px;
  2140. height: calc(100% - 30px);
  2141. justify-content: space-between;
  2142. }
  2143. .test_data_box>.data_box>.left>.box2 {
  2144. display: flex;
  2145. flex-direction: column;
  2146. font-size: 30px;
  2147. font-weight: 600;
  2148. height: calc(100% - 60px);
  2149. /* align-items:center; */
  2150. justify-content: center;
  2151. }
  2152. .test_data_box>.data_box>.left>.box>span {
  2153. display: flex;
  2154. align-items: center;
  2155. }
  2156. .test_data_box>.data_box>.left>.box>span::before {
  2157. content: '';
  2158. width: 10px;
  2159. height: 10px;
  2160. border-radius: 50%;
  2161. /* background: #000; */
  2162. margin-right: 5px;
  2163. }
  2164. .test_data_box>.data_box>.left>.box>.color1::before {
  2165. background: #3673e8;
  2166. }
  2167. .test_data_box>.data_box>.left>.box>.color2::before {
  2168. background: #61b8ff;
  2169. }
  2170. .test_data_box>.data_box>.left>.box>.color3::before {
  2171. background: #96d8a8;
  2172. }
  2173. .test_data_box>.data_box>.left>.box>.color4::before {
  2174. background: #f5b763;
  2175. }
  2176. .test_data_box>.data_box>.left>.box>.color5::before {
  2177. background: #b362ff;
  2178. }
  2179. .test_data_box>.data_box>.right {
  2180. /* width: calc(100% - 110px); */
  2181. width: calc(100%);
  2182. height: 100%;
  2183. }
  2184. .el-table>>>.rowClass>td {
  2185. padding: 7px 0;
  2186. }
  2187. .tableClass {
  2188. width: calc(100% - 20px);
  2189. margin: 0 auto;
  2190. }
  2191. </style>