index.vue 76 KB

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