index.vue 81 KB

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