SchoolManager.vue 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937
  1. <!-- 活动解析 -->
  2. <template>
  3. <div>
  4. <!-- table 表格 -->
  5. <el-row :gutter="20" class="main-items">
  6. <el-col class="aside" :span="3" :offset="2" style="padding: 0 !important;">
  7. <div
  8. class="table-aside"
  9. v-for="(v, k) in ItemList"
  10. :key="k"
  11. :class="{active:k == modelindex}"
  12. @click="selectTitle(k)"
  13. >{{v.text}}</div>
  14. </el-col>
  15. <!--数据监控-->
  16. <el-col :span="17" class="main" v-if="modelindex == 0">
  17. <el-row :gutter="20" class="main-header">
  18. <el-col :span="3" :offset="1">
  19. <div class="main-header-item">在线:{{monitorTeacherList.onlineCount}}人</div>
  20. </el-col>
  21. <el-col :span="3">
  22. <div class="main-header-item">离线:{{monitorTeacherList.offlineCount}}人</div>
  23. </el-col>
  24. <el-col :span="7">
  25. <div class="main-header-item">
  26. <span>分配未批改作业:{{monitorTeacherList.unCorrectCount}}份</span>
  27. <span @click="allocation()" class="main-header-link">去分配</span>
  28. </div>
  29. </el-col>
  30. <el-col :span="8" :offset="1">
  31. <el-input placeholder="请输入老师名字" v-model="filters.inputValue" class="input-with-select">
  32. <el-select
  33. v-model="filters.OptionsValue"
  34. @change="InfoWatch"
  35. slot="prepend"
  36. placeholder="选年级"
  37. maxlength="20"
  38. >
  39. <el-option
  40. v-for="(item, k) in options"
  41. :key="k"
  42. :label="item.label"
  43. :value="item.str"
  44. ></el-option>
  45. </el-select>
  46. <el-select
  47. v-model="filters.gradesValue"
  48. @change="InfoWatch"
  49. slot="prepend"
  50. placeholder="选科目"
  51. maxlength="20"
  52. >
  53. <el-option
  54. v-for="(item, k) in grades"
  55. :key="k"
  56. :label="item.label"
  57. :value="item.str"
  58. ></el-option>
  59. </el-select>
  60. <el-button @click="InfoWatch" slot="append" icon="el-icon-search"></el-button>
  61. </el-input>
  62. </el-col>
  63. <!--<div class="block">-->
  64. <!--<el-date-picker-->
  65. <!--v-model="filters.MaxtimeValue"-->
  66. <!--value-format="yyyy-MM-dd HH:mm:ss"-->
  67. <!--type="date"-->
  68. <!--@change="InfoWatch"-->
  69. <!--placeholder="选择日期"-->
  70. <!--&gt;</el-date-picker>-->
  71. <!--</div>-->
  72. </el-row>
  73. <el-row :gutter="20" class="main-header">
  74. <el-col :span="24">
  75. <div class="table">
  76. <div class="table-head">
  77. <div>头像</div>
  78. <div>姓名</div>
  79. <div>等待作业数</div>
  80. <div>作业最长等待时长</div>
  81. <div>今日累计批改时间</div>
  82. <div>今日响应速度</div>
  83. <div>状态</div>
  84. </div>
  85. <div class="tr" v-for="(v, k) of monitorTeacherList.list" :key="k">
  86. <!-- 在线 -->
  87. <div v-if="v.status == '1'" class="tr-first" :class="{BgcColor:k%2 !== 1}">
  88. <div>
  89. <i
  90. style="cursor:pointer;"
  91. :class="[isDown&&isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
  92. @click="dropDown(v,k)"
  93. ></i>
  94. <img
  95. :src="BASE_URL + v.imgUrl"
  96. alt
  97. class="table-img"
  98. v-if="v.imgUrl"
  99. @click="isShow(v,3)"
  100. >
  101. <img src="../../assets/img/user.jpg" alt v-if="!v.imgUrl" class="table-img">
  102. </div>
  103. <div>{{v.name}}</div>
  104. <div>{{v.waitCount}}份</div>
  105. <div class="tr-active">{{v.maxWaitTime}}</div>
  106. <div style="width:200px;">{{v.totalCorrectTime}}</div>
  107. <div>{{v.respSpeed}}</div>
  108. <div>在线</div>
  109. </div>
  110. <!-- 离线 -->
  111. <div
  112. v-if="v.status == '2'"
  113. style="color:#BEBEBE"
  114. class="tr-first"
  115. :class="{BgcColor:k%2 !== 1}"
  116. >
  117. <div>
  118. <i
  119. style="cursor:pointer;"
  120. :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
  121. @click="dropDown(v,k)"
  122. ></i>
  123. <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)">
  124. </div>
  125. <div>{{v.name}}</div>
  126. <div>{{v.waitCount}}份</div>
  127. <div>{{v.maxWaitTime}}</div>
  128. <div style="width:240px;">{{v.totalCorrectTime}}</div>
  129. <div>{{v.respSpeed}}</div>
  130. <div>离线</div>
  131. </div>
  132. <!-- 封号 -->
  133. <div
  134. v-if="v.status == '3'"
  135. style="color:#FF6767"
  136. class="tr-first"
  137. :class="{BgcColor:k%2 !== 1}"
  138. >
  139. <div>
  140. <i
  141. style="cursor:pointer;"
  142. :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
  143. @click="dropDown(v,k)"
  144. ></i>
  145. <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)">
  146. </div>
  147. <div>{{v.name}}</div>
  148. <div>{{v.waitCount}}份</div>
  149. <div>{{v.maxWaitTime}}</div>
  150. <div style="width:200px;">{{v.totalCorrectTime}}</div>
  151. <div>{{v.respSpeed}}</div>
  152. <div>已封号</div>
  153. </div>
  154. <div
  155. class="tr-setNo"
  156. v-if="isDownindex === k && isDown && TeacherHomeworkList.list.length == 0"
  157. >暂无数据!</div>
  158. <!--&& isDownindex === k && isDown-->
  159. <div v-if="isDownindex === k && isDown">
  160. <div class="tr-second" v-for="(v, k) of TeacherHomeworkList.list" :key="k">
  161. <div class="tr-seconds" style="width:50px;">{{k+1}}</div>
  162. <div class="tr-seconds tr-w120">
  163. <span @click="isShow(v,4)" style="cursor: pointer;" class="tr-second-check">查看</span>
  164. <span>{{v.name}}</span>
  165. </div>
  166. <div
  167. v-if="v.status && !(v.status === 1 && k == 0) "
  168. class="tr-secondsA"
  169. >{{v.spendTime}}</div>
  170. <div
  171. v-if="v.status === 1 && k == 0"
  172. class="tr-secondsA"
  173. style="color:#52CC60"
  174. >{{v.spendTime}}</div>
  175. <div class="tr-seconds width40">{{v.subject}}</div>
  176. <div class="tr-seconds width40">{{v.grade}}</div>
  177. <div v-if="v.status === 1" class="tr-seconds width40">未批改</div>
  178. <div v-if="v.status === 2" class="tr-seconds width40" style="color:#FFC303">批改中</div>
  179. <div v-if="v.status === 3" class="tr-seconds width40">已批改</div>
  180. <div class="tr-sw180" v-if="v.status === 1">
  181. <!-- <el-button type="" plain><a style="text-decoration:none;color:#52cc60;" :href="'https://kmt.sharingschool.com/aijia/kmt/index.html?homeworkId='+v.homeworkId+'&accessToken='+accessToken+'&state='+1">去批改</a></el-button> -->
  182. <el-button @click="isShow(v,1)" type="success">去分配</el-button>
  183. </div>
  184. <div class="tr-sw180" v-if="v.status === 3 && v.isCheck ===1">
  185. <span>{{v.checkCount}}</span>
  186. <span style="color:#bbbbbb;">/{{v.picTotal}}</span>
  187. <el-button type="info">
  188. <a
  189. style="text-decoration:none;color:#ffffff;"
  190. :href="APPOR_BASE_URL+'?homeworkId='+v.homeworkId+'&unionid='+unionid+'&teacherId='+homeworkLIst.teacherId+'&state='+2"
  191. >已检查</a>
  192. </el-button>
  193. <span style="color:red;font-size:12px;">报错{{v.wrongCount}}</span>
  194. </div>
  195. <div class="tr-sw180" v-if="v.status === 3 && v.isCheck ===0">
  196. <el-button type="warning">
  197. <a
  198. style="text-decoration:none;color:#ffffff!important;"
  199. :href="APPOR_BASE_URL+'?homeworkId='+v.homeworkId+'&unionid='+unionid+'&teacherId='+homeworkLIst.teacherId+'&state='+2"
  200. >去检查</a>
  201. </el-button>
  202. </div>
  203. </div>
  204. <!-- 分页显示 -->
  205. <div v-if="parseInt(TeacherHomeworkList.pages) > 10">
  206. <el-pagination
  207. background
  208. @size-change="handleSizeChange3"
  209. @current-change="pageChange3"
  210. :page-sizes="[10, 20]"
  211. layout="total, sizes, prev, pager, next, jumper"
  212. :total="parseInt(TeacherHomeworkList.pages)"
  213. ></el-pagination>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <!-- 分页显示 -->
  219. <el-pagination
  220. background
  221. @size-change="handleSizeChange"
  222. @current-change="pageChange"
  223. :page-sizes="[10, 20, 30, 40]"
  224. layout="total, sizes, prev, pager, next, jumper"
  225. :total="parseInt(monitorTeacherList.pages)"
  226. :hide-on-single-page="true"
  227. ></el-pagination>
  228. <!-- <div style="float:right;margin-left:15px;">
  229. <el-button @click="myVisible = false" size="small">取 消</el-button>
  230. <el-button type="primary" size="small" @click="submit">确定</el-button>
  231. </div>-->
  232. <div style="clear:both;"></div>
  233. <div>
  234. <el-button @click="routerback()" type="success" round>返回</el-button>
  235. </div>
  236. </el-col>
  237. </el-row>
  238. </el-col>
  239. <!--当天-->
  240. <el-col :span="18" class="main" v-if="modelindex == 1">
  241. <el-row :gutter="20" class="main-header">
  242. <el-col :span="5">
  243. <div class="main-header-item">
  244. 今日报错总次数:
  245. <span style="color:red;">{{DayTeacherList.wrongCount}}次</span>
  246. </div>
  247. </el-col>
  248. <el-col :span="4" :offset="10">
  249. <el-input placeholder="请输入老师名字" v-model="filters1.inputValue" class="input-with-select">
  250. <el-button @click="InfoWatchDay" slot="append" icon="el-icon-search"></el-button>
  251. </el-input>
  252. </el-col>
  253. <el-col :span="4">
  254. <div class="block">
  255. <el-date-picker
  256. @change="InfoWatchDay"
  257. v-model="filters1.MaxtimeValue"
  258. value-format="yyyy-MM-dd"
  259. type="date"
  260. placeholder="filters1.MaxtimeValue"
  261. ></el-date-picker>
  262. </div>
  263. </el-col>
  264. </el-row>
  265. <el-row :gutter="20" class="main-header">
  266. <el-col :span="24">
  267. <div class="table">
  268. <div class="table-head">
  269. <div>头像</div>
  270. <div>姓名</div>
  271. <div>被报错</div>
  272. <div>科目</div>
  273. <div>批改总份数</div>
  274. <div>批改总张数</div>
  275. <div style="width:240px;">平均批改时间</div>
  276. <div>出勤</div>
  277. </div>
  278. <div class="tr" v-for="(v, k) of DayTeacherList.list" :key="k">
  279. <div class="tr-first" :class="{BgcColor:k%2 !== 1}">
  280. <div>
  281. <img :src="BASE_URL + v.imgUrl" alt v-if="v.imgUrl" class="table-img">
  282. <img src="../../assets/img/user.jpg" alt v-if="!v.imgUrl" class="table-img">
  283. </div>
  284. <div>{{v.name}}</div>
  285. <div v-if="v.wrongCount == 0">{{v.wrongCount}}次</div>
  286. <div style="color:red;" v-if="v.wrongCount > 0">{{v.wrongCount}}次</div>
  287. <div class="tr-active">{{v.subject}}</div>
  288. <div>{{v.homeworkCount}}</div>
  289. <div>{{v.homeworkPicCount}}/张</div>
  290. <div style="width:240px;">{{v.avgTime}}</div>
  291. <div>{{v.attendance}}</div>
  292. <!-- <div v-if="v.attendance == 正常">{{v.attendance}}</div>
  293. <div style="color:#52cc60;" v-if="v.attendance == 未出勤">{{v.attendance}}</div>-->
  294. </div>
  295. </div>
  296. </div>
  297. <!-- 分页显示 -->
  298. <div v-if="parseInt(DayTeacherList.pages) > 10">
  299. <el-pagination
  300. background
  301. @size-change="handleSizeChange1"
  302. @current-change="pageChange1"
  303. :page-sizes="[10]"
  304. layout="total, sizes, prev, pager, next, jumper"
  305. :total="parseInt(DayTeacherList.pages)"
  306. ></el-pagination>
  307. </div>
  308. <!-- <div style="float:right;margin-left:15px;">
  309. <el-button @click="myVisible = false" size="small">取 消</el-button>
  310. <el-button type="primary" size="small" @click="submit">确定</el-button>
  311. </div>-->
  312. <div style="clear:both;"></div>
  313. <div>
  314. <el-button @click="routerback()" type="success" round>返回</el-button>
  315. </div>
  316. </el-col>
  317. </el-row>
  318. </el-col>
  319. <!--当月-->
  320. <el-col :span="18" class="main" v-if="modelindex == 2">
  321. <el-row :gutter="20" class="main-header">
  322. <el-col :span="5">
  323. <div class="main-header-item">
  324. 当月报错总次数:
  325. <span style="color:red;">{{MothTeacherList.totalWrongCount}}次</span>
  326. </div>
  327. </el-col>
  328. <el-col :span="4" :offset="10">
  329. <el-input placeholder="请输入老师名字" v-model="filters2.inputValue" class="input-with-select">
  330. <el-button @click="InfoWatchMoth" slot="append" icon="el-icon-search"></el-button>
  331. </el-input>
  332. </el-col>
  333. <el-col :span="4">
  334. <div class="block">
  335. <el-date-picker
  336. @change="InfoWatchMoth"
  337. v-model="filters2.MaxtimeValue"
  338. type="month"
  339. value-format="yyyy-MM"
  340. placeholder="filters2.MaxtimeValue"
  341. ></el-date-picker>
  342. </div>
  343. </el-col>
  344. </el-row>
  345. <el-row :gutter="20" class="main-header">
  346. <el-col :span="4" :offset="1">
  347. <div class="main-header-item">月出勤率:{{MothTeacherList.totalAttendanceRate}}</div>
  348. </el-col>
  349. <!-- <el-col :span="4">
  350. <div class="main-header-item" >批改总份数:{{MothTeacherList.totalHomeworkCount}}</div>
  351. </el-col>-->
  352. <el-col :span="4">
  353. <div class="main-header-item">批改总张数:{{MothTeacherList.totalHomeworkPicCount}}</div>
  354. </el-col>
  355. <el-col :span="6">
  356. <div class="main-header-item">批改平均时间:{{MothTeacherList.totalAvgTime}}</div>
  357. </el-col>
  358. <el-col :span="4">
  359. <div class="main-header-item">平均满意度:{{MothTeacherList.totalSatisfactionDegree}}</div>
  360. </el-col>
  361. <el-col :span="4">
  362. <div class="main-header-item">正确率:{{MothTeacherList.totalAccuracyRate}}</div>
  363. </el-col>
  364. </el-row>
  365. <el-row :gutter="20" class="main-header">
  366. <el-col :span="24">
  367. <div class="table">
  368. <div class="table-head">
  369. <div>头像</div>
  370. <div>姓名</div>
  371. <div>被报错</div>
  372. <div>科目</div>
  373. <div>批改总份数</div>
  374. <div>批改总张数</div>
  375. <div>正确率</div>
  376. <div>满意度</div>
  377. <div style="width:240px;">平均批改时间</div>
  378. <div>出勤率</div>
  379. </div>
  380. <div class="tr" v-for="(v, k) of MothTeacherList.list" :key="k">
  381. <div class="tr-first" :class="{BgcColor:k%2 !== 1}">
  382. <div>
  383. <img :src="BASE_URL + v.imgUrl" alt v-if="v.imgUrl" class="table-img">
  384. <img src="../../assets/img/user.jpg" alt v-if="!v.imgUrl" class="table-img">
  385. </div>
  386. <div>{{v.name}}</div>
  387. <div v-if="v.wrongCount == 0">{{v.wrongCount}}次</div>
  388. <div style="color:red;" v-if="v.wrongCount > 0">{{v.wrongCount}}次</div>
  389. <div class="tr-active">{{v.subject}}</div>
  390. <div>{{v.homeworkCount}}</div>
  391. <div>{{v.homeworkPicCount}}/张</div>
  392. <div>{{v.accuracyRate}}</div>
  393. <div>{{v.satisfactionDegree}}</div>
  394. <div style="width:240px;">{{v.avgTime}}</div>
  395. <div>{{v.attendance}}</div>
  396. </div>
  397. </div>
  398. </div>
  399. <!-- 分页显示 -->
  400. <div v-if="parseInt(MothTeacherList.pages) > 10">
  401. <el-pagination
  402. background
  403. @size-change="handleSizeChange2"
  404. @current-change="pageChange2"
  405. :page-sizes="[10]"
  406. layout="total, sizes, prev, pager, next, jumper"
  407. :total="parseInt(MothTeacherList.pages)"
  408. ></el-pagination>
  409. </div>
  410. <!-- <div style="float:right;margin-left:15px;">
  411. <el-button @click="myVisible = false" size="small">取 消</el-button>
  412. <el-button type="primary" size="small" @click="submit">确定</el-button>
  413. </div>-->
  414. <div style="clear:both;"></div>
  415. <div>
  416. <el-button @click="routerback()" type="success" round>返回</el-button>
  417. </div>
  418. </el-col>
  419. </el-row>
  420. </el-col>
  421. <!-- 分页显示 -->
  422. </el-row>
  423. <!--可分配老师-->
  424. <div class="showModel" @click="allShowModel(1)" v-if="hiddenModel"></div>
  425. <div class="model" style="width:30%; height:40%;top:5%" v-if="hiddenModel">
  426. <div class="model-text">
  427. <div class="model-text-head">
  428. <div>可分配老师</div>
  429. <div>{{allotList.Allotgarde}}{{allotList.Allotsubjct}}</div>
  430. </div>
  431. <div
  432. class="model-itemss"
  433. style="margin:10px;"
  434. v-for="(v, k) in TeacherAllotList.list"
  435. :key="k"
  436. >
  437. <div class="model-items-left">
  438. <div class="model-items-left-top">
  439. <div>
  440. <img
  441. :src="BASE_URL + v.imgUrl"
  442. v-if="v.imgUrl"
  443. alt
  444. class="model-items-left-top-img"
  445. >
  446. <img
  447. src="../../assets/img/user.jpg"
  448. v-if="!v.imgUrl"
  449. alt
  450. class="model-items-left-top-img"
  451. >
  452. <div style="display: inline-block">
  453. <div style="font-size: 24px">{{v.name}}</div>
  454. <div class="model-items-left-top-number">等待学生:{{v.waitCount}}</div>
  455. </div>
  456. </div>
  457. <div>
  458. <el-button v-show="v.type && v.type === 1" disabled type="info">已分配</el-button>
  459. <el-button
  460. v-show="!v.type || v.type !== 1"
  461. @click="GOtoTeacherAllot(v,k)"
  462. type="success"
  463. >分配</el-button>
  464. </div>
  465. </div>
  466. </div>
  467. </div>
  468. <el-pagination
  469. background
  470. @size-change="handleSizeChange4"
  471. @current-change="pageChange4"
  472. :page-sizes="[10]"
  473. layout="total, sizes, prev, pager, next, jumper"
  474. :total="parseInt(TeacherAllotList.pages)"
  475. ></el-pagination>
  476. </div>
  477. </div>
  478. <!-- 无未批改作业 v-if="monitorTeacherList.unCorrectCount==0"-->
  479. <div class="no-homework" id="noHomework">
  480. <div>无可分配作业</div>
  481. <img src="../../assets/img/wu_fen_pei_zuo_ye.png" alt>
  482. </div>
  483. <!--所有未批改作业-->
  484. <div class="showModel" @click="allShowModel(2)" v-if="isPigai"></div>
  485. <div class="model" style="width:50%" v-if="isPigai">
  486. <div class="model-text">
  487. <div class="model-text-head">
  488. <div>所有未批改作业</div>
  489. </div>
  490. <div>
  491. <!-- UnallotHomeworkInfo -->
  492. <!-- <div class="tr-setNo" v-if="UnallotHomeworkInfo.list.length == 0">
  493. 暂无数据!
  494. </div>-->
  495. <div class="table-heads">
  496. <div>学生</div>
  497. <div>等待时长</div>
  498. <div>科目</div>
  499. <div>年级</div>
  500. <div>未批改老师</div>
  501. </div>
  502. <div class="tr-set" v-for="(v, k) of UnallotHomeworkInfo.list" :key="k">
  503. <div class="tr-secon">{{k+1}}</div>
  504. <div class="tr-secon" style="width:50px;">
  505. <span>{{v.name}}</span>
  506. </div>
  507. <div class="tr-secon" style="width:60px;">等待:{{v.spendTime}}</div>
  508. <div class="tr-secon">{{v.subject}}</div>
  509. <div class="tr-secon">{{v.grade}}</div>
  510. <div v-if="v.status === 1" class="tr-secon">未批改</div>
  511. <div v-if="v.status === 2" class="tr-secon">批改中</div>
  512. <div v-if="v.status === 3" class="tr-secon">已批改</div>
  513. <div class="tr-secon">{{v.teacherName}}</div>
  514. <div class="tr-s">
  515. <!-- <el-button type="" plain @click="ToAppovalOline(v)">去批改</el-button> -->
  516. <el-button type="success" @click="isShow(v,9)">去分配</el-button>
  517. </div>
  518. </div>
  519. <el-pagination
  520. background
  521. @size-change="handleSizeChange3"
  522. @current-change="pageChange3"
  523. :page-sizes="[10]"
  524. layout="total, sizes, prev, pager, next, jumper"
  525. :total="parseInt(UnallotHomeworkInfo.pages)"
  526. ></el-pagination>
  527. </div>
  528. </div>
  529. </div>
  530. <!-- 老师详情弹框 -->
  531. <div class="showModel" @click="allShowModel(3)" v-if="ModelAppor"></div>
  532. <div class="model" style="width:35%;left: 32.5%" v-if="ModelAppor">
  533. <div class="model-text">
  534. <div class="model-manager">
  535. <div>批改老师</div>
  536. <div>
  537. <img src="../../assets/img/del@2x.png" alt @click="allShowModel(3)">
  538. </div>
  539. </div>
  540. <div class="model-items">
  541. <div class="model-items-first">
  542. <div>
  543. <img
  544. :src="BASE_URL + GetTeacherDetail.imgUrl"
  545. v-if="GetTeacherDetail.imgUrl"
  546. alt
  547. class="model-items-first-img"
  548. >
  549. <img
  550. src="../../assets/img/user.jpg"
  551. v-if="!GetTeacherDetail.imgUrl"
  552. alt
  553. class="model-items-first-img"
  554. >
  555. <div class="model-items-first-left" style="display:inline-block">
  556. <!-- <div class="Onlinename">李小花</div>
  557. <div class="Online">(在线)</div>
  558. <div class="model-items-first-left-down">南方科技大学</div>-->
  559. <div class="Onlinename">{{GetTeacherDetail.name}}</div>
  560. <div v-if="GetTeacherDetail.status ===1" class="Online">(在线)</div>
  561. <div v-if="GetTeacherDetail.status ===0" class="Online">(离线)</div>
  562. <div class="model-items-first-left-down">{{GetTeacherDetail.school}}</div>
  563. </div>
  564. <div
  565. style="display:inline-block"
  566. v-if="this.TeacherIdStatus ==1 || 2 && this.TeacherIdStatus !==3"
  567. >
  568. <el-button
  569. type="danger"
  570. icon="el-icon-close"
  571. plain
  572. round
  573. @click="isShow(GetTeacherDetail,6)"
  574. >
  575. <i class="el-icon-bottom"></i>
  576. <span>封号</span>
  577. </el-button>
  578. <el-button
  579. type="success"
  580. icon="el-icon-upload2"
  581. plain
  582. round
  583. @click="isShow(GetTeacherDetail,5)"
  584. >
  585. <i class="el-icon-bottom"></i>
  586. <span>升级</span>
  587. </el-button>
  588. </div>
  589. <div style="display:inline-block" v-if="this.TeacherIdStatus ==3">
  590. <el-button
  591. type="success"
  592. icon="el-icon-unlock"
  593. plain
  594. round
  595. @click="isShow(GetTeacherDetail,7)"
  596. >
  597. <i class="el-icon-bottom"></i>
  598. <span>解封</span>
  599. </el-button>
  600. </div>
  601. </div>
  602. </div>
  603. <div class="model-items-other model-active">批改科目 : {{GetTeacherDetail.subject}}</div>
  604. <div class="model-items-other">
  605. 批改年级 :
  606. <span v-for="(v, k) of arrGrade" :key="k">{{v}},</span>
  607. </div>
  608. <div class="model-items-other model-active">
  609. 可批改时间:
  610. <div class="buttonAppoval" v-show="arrPeriod.length>0">
  611. <el-button type="info" round v-for="(v, k) of arrPeriod" :key="k">{{v}}</el-button>
  612. </div>
  613. </div>
  614. <div class="model-items-other">手机号 : {{GetTeacherDetail.phone}}</div>
  615. <div class="model-items-other model-active">上次登录时间 : {{GetTeacherDetail.lastOnlineTime}}</div>
  616. <div class="model-items-other">批改正确率 : {{GetTeacherDetail.accuracyRate}}</div>
  617. <div class="model-items-other model-active">被报错总次数 : {{GetTeacherDetail.wrongCount}}</div>
  618. <div class="model-items-other">满意度 : {{GetTeacherDetail.satisfactionDegree}}</div>
  619. <div style="display:inline-block">
  620. <el-button
  621. type="success"
  622. icon="el-icon-user-solid"
  623. plain
  624. round
  625. @click="isShow(GetTeacherDetail,8)"
  626. >
  627. <i class="el-icon-bottom"></i>
  628. <span>重新分配组</span>
  629. </el-button>
  630. </div>
  631. </div>
  632. </div>
  633. </div>
  634. <!-- 学生详情弹框 -->
  635. <div class="showModel" @click="allShowModel(4)" v-if="ModelStudet"></div>
  636. <div class="model" style="width:35%;left:32.5%" v-if="ModelStudet">
  637. <div class="model-text">
  638. <div class="model-manager">
  639. <div>学生详情</div>
  640. <div>
  641. <img src="../../assets/img/del@2x.png" alt @click="allShowModel(4)">
  642. </div>
  643. </div>
  644. <div class="model-items">
  645. <div class="model-items-first">
  646. <div>
  647. <img :src="BASE_URL + GetStudentDetail.imgUrl" alt class="model-items-first-img">
  648. <img
  649. src="../../assets/img/user.jpg"
  650. v-if="!GetStudentDetail.imgUrl"
  651. alt
  652. class="model-items-first-img"
  653. >
  654. <div class="model-items-first-left">
  655. <div class="Onlinename">{{GetStudentDetail.name}}</div>
  656. <div class="model-items-first-left-down">{{GetStudentDetail.school}}</div>
  657. </div>
  658. </div>
  659. </div>
  660. <div class="model-items-other model-active">所读年级 : {{GetStudentDetail.grade}}</div>
  661. <div class="model-items-other">性别 : {{GetStudentDetail.sex==1?'男':'女'}}</div>
  662. <div class="model-items-other model-active">联系方式 : {{GetStudentDetail.phone}}</div>
  663. </div>
  664. </div>
  665. </div>
  666. <!-- 升级校区管理员弹框 -->
  667. <div class="showModel" @click="allShowModel(5)" v-if="rePush"></div>
  668. <div class="modelspec" v-if="rePush">
  669. <div class="model-text">
  670. <div class="model-text-items">
  671. <div>
  672. <img
  673. src="../../assets/img/del@2x.png"
  674. alt
  675. @click="allShowModel(5)"
  676. class="model-text-items-close"
  677. >
  678. </div>
  679. <div>是否要将{{TeacherName}}老师升级为校区管理员?</div>
  680. </div>
  681. <div class="model-btn">
  682. <div class="model-btn-items main-gay" @click="RepushTeacherAcess()">是</div>
  683. <div class="model-btn-items model-grdeen" @click="allShowModel(5)">否</div>
  684. </div>
  685. </div>
  686. </div>
  687. <!-- 封号校区管理员弹框 -->
  688. <div class="showModel" @click="allShowModel(6)" v-if="closeID"></div>
  689. <div class="modelspec" v-if="closeID">
  690. <div class="model-text">
  691. <div class="model-text-items">
  692. <div>
  693. <img
  694. src="../../assets/img/del@2x.png"
  695. alt
  696. @click="allShowModel(6)"
  697. class="model-text-items-close"
  698. >
  699. </div>
  700. <div>是否要对{{TeacherName}}老师进行封号?</div>
  701. </div>
  702. <div class="model-btn">
  703. <div class="model-btn-items main-gay" @click="CloseTeacherId()">是</div>
  704. <div class="model-btn-items model-grdeen" @click="allShowModel(6)">否</div>
  705. </div>
  706. </div>
  707. </div>
  708. <!-- 解封校区管理员弹框 -->
  709. <div class="showModel" @click="allShowModel(7)" v-if="OpenID"></div>
  710. <div class="modelspec" v-if="OpenID">
  711. <div class="model-text">
  712. <div class="model-text-items">
  713. <div>
  714. <img
  715. src="../../assets/img/del@2x.png"
  716. alt
  717. @click="allShowModel(7)"
  718. class="model-text-items-close"
  719. >
  720. </div>
  721. <div>是否要对{{TeacherName}}老师进行解封?</div>
  722. </div>
  723. <div class="model-btn">
  724. <div class="model-btn-items main-gay" @click="OPenTeacherId()">是</div>
  725. <div class="model-btn-items model-grdeen" @click="allShowModel(7)">否</div>
  726. </div>
  727. </div>
  728. </div>
  729. <!--可分配小组管理员列表弹框-->
  730. <div class="showModel" @click="allShowModel(8)" v-if="AllotManagerModel"></div>
  731. <div class="model" style="width:44.5%" v-if="AllotManagerModel">
  732. <div class="model-text" style="padding: 0 30px">
  733. <div class="model-manager">
  734. <div>可分配小组</div>
  735. <div>
  736. <img src="../../assets/img/del@2x.png" alt @click="allShowModel(8)">
  737. </div>
  738. </div>
  739. <div class="allocation-items" v-for="(v, k) in getAllotManagerList.list" :key="k">
  740. <div class="model-items-left">
  741. <div class="model-items-left-top">
  742. <div>
  743. <img
  744. :src="BASE_URL + v.imgUrl"
  745. v-if="v.imgUrl"
  746. alt
  747. class="model-items-left-top-img"
  748. >
  749. <img
  750. src="../../assets/img/user.jpg"
  751. v-if="!v.imgUrl"
  752. alt
  753. class="model-items-left-top-img"
  754. >
  755. <div style="display: inline-block;text-align: left;">
  756. <div style="font-size: 24px;margin-left: 10px">{{v.name}}</div>
  757. <div class="model-items-left-top-number">老师数量:{{v.teacherCount}}</div>
  758. </div>
  759. </div>
  760. <div>
  761. <el-button v-show="v.type && v.type === 1" disabled type="info">已分配</el-button>
  762. <el-button
  763. v-show="!v.type || v.type !== 1"
  764. @click="GOAllotTeacherToManager(v,k)"
  765. type="success"
  766. >分配</el-button>
  767. </div>
  768. </div>
  769. </div>
  770. </div>
  771. <el-pagination
  772. background
  773. @size-change="handleSizeChange5"
  774. @current-change="pageChange5"
  775. :page-sizes="[10]"
  776. layout="total, sizes, prev, pager, next, jumper"
  777. :total="parseInt(getAllotManagerList.pages)"
  778. ></el-pagination>
  779. </div>
  780. </div>
  781. <!--所有未批改可分配老师列表弹框-->
  782. <div class="showModel" @click="allShowModel(9)" v-if="NoAllotManagerModel"></div>
  783. <div class="model" style="width:50%" v-if="NoAllotManagerModel">
  784. <div class="model-text" style="padding: 0 30px">
  785. <div class="model-manager">
  786. <div>作业可分配老师</div>
  787. <div>
  788. <img src="../../assets/img/del@2x.png" alt @click="allShowModel(9)">
  789. </div>
  790. </div>
  791. <div class="allocation-items" v-for="(v, k) in TeacherAllotList.list" :key="k">
  792. <div class="model-items-left">
  793. <div class="model-items-left-top">
  794. <div>
  795. <img
  796. :src="BASE_URL + v.imgUrl"
  797. v-if="v.imgUrl"
  798. alt
  799. class="model-items-left-top-img"
  800. >
  801. <img
  802. src="../../assets/img/user.jpg"
  803. v-if="!v.imgUrl"
  804. alt
  805. class="model-items-left-top-img"
  806. >
  807. <div style="display: inline-block;text-align: left;">
  808. <div style="font-size: 24px;margin-left: 10px">{{v.name}}</div>
  809. <div class="model-items-left-top-number">等待张数:{{v.teacherCount}}</div>
  810. </div>
  811. </div>
  812. <div>
  813. <el-button v-show="v.type && v.type === 1" disabled type="info">已分配</el-button>
  814. <el-button
  815. v-show="!v.type || v.type !== 1"
  816. @click="GOtoTeacherAllotAppovar(v,k)"
  817. type="success"
  818. >分配</el-button>
  819. </div>
  820. </div>
  821. </div>
  822. </div>
  823. <el-pagination
  824. background
  825. @size-change="handleSizeChange6"
  826. @current-change="pageChange6"
  827. :page-sizes="[10]"
  828. layout="total, sizes, prev, pager, next, jumper"
  829. :total="parseInt(TeacherAllotList.pages)"
  830. ></el-pagination>
  831. </div>
  832. </div>
  833. </div>
  834. </template>
  835. <script>
  836. import { mapGetters, mapActions } from "vuex";
  837. import { IMG_BASE_URL, APPOR_BASE_URL } from "@/ImgConfig";
  838. export default {
  839. components: {},
  840. name: "actvResolveLabel",
  841. props: {},
  842. data() {
  843. return {
  844. unionid: localStorage.getItem("unionid"),
  845. accessToken: localStorage.getItem("accessToken"), //token
  846. managerId: "", // 超级管理员登陆ID
  847. BASE_URL: IMG_BASE_URL,
  848. APPOR_BASE_URL: APPOR_BASE_URL,
  849. isDownindex: "",
  850. modelindex: 0,
  851. TeacherIds: "", //封号,升级,解封
  852. teacherClickId: "",
  853. TeacherIdStatus: "",
  854. TeacherName: "", //封号,升级,解封
  855. values: [],
  856. newDataDay: new Date(),
  857. arrGrade: [],
  858. OpenID: false, //解封校区管理员弹框
  859. closeID: false, //封号校区管理员弹框
  860. rePush: false, //升级校区管理员弹框
  861. hiddenModel: false, //分配老师弹框
  862. isPigai: false, //未批改作业弹框
  863. ModelAppor: false, //批改老师详情信息弹框
  864. AllotManagerModel: false, //可分配小组管理员列表弹框
  865. NoAllotManagerModel: false, //所有未批改可分配老师列表弹框
  866. ModelStudet: false, //学生详情弹框
  867. isDown: false,
  868. teachList: [],
  869. options: [
  870. {
  871. value: "0",
  872. label: "1~2年级",
  873. str: "一年级,二年级"
  874. },
  875. {
  876. value: "1",
  877. label: "3~4年级",
  878. str: "三年级,四年级"
  879. },
  880. {
  881. value: "2",
  882. label: "5~6年级",
  883. str: "五年级,六年级"
  884. },
  885. {
  886. value: "3",
  887. label: "全部"
  888. // str:'全部'
  889. }
  890. ],
  891. grades: [
  892. {
  893. value: "0",
  894. label: "语文",
  895. str: "语文"
  896. },
  897. {
  898. value: "1",
  899. label: "数学",
  900. str: "数学"
  901. },
  902. {
  903. value: "2",
  904. label: "英语",
  905. str: "英语"
  906. },
  907. {
  908. value: "3",
  909. label: "全部"
  910. // str:""
  911. }
  912. ],
  913. ItemList: [
  914. {
  915. text: "数据监控"
  916. },
  917. {
  918. text: "当天"
  919. },
  920. {
  921. text: "当月"
  922. }
  923. ],
  924. filters: {
  925. //超级管理员的当天数据
  926. // 排序
  927. MaxtimeValue: "",
  928. OptionsValue: "",
  929. gradesValue: "",
  930. inputValue: "",
  931. pageNo: 1,
  932. pageSize: 10,
  933. count: 100,
  934. orderField: "",
  935. orderAD: "",
  936. managerId: ""
  937. },
  938. filters1: {
  939. //超级管理员的当天数据
  940. // 排序
  941. MaxtimeValue: this.dayFormatDate(),
  942. OptionsValue: "",
  943. gradesValue: "",
  944. inputValue: "",
  945. pageNo: 1,
  946. pageSize: 10,
  947. count: 0,
  948. orderField: "",
  949. orderAD: ""
  950. },
  951. filters2: {
  952. //超级管理员的当月数据
  953. // 排序
  954. MaxtimeValue: this.monthFormatDate(),
  955. OptionsValue: "",
  956. gradesValue: "",
  957. inputValue: "",
  958. pageNo: 1,
  959. pageSize: 10,
  960. count: 0,
  961. orderField: "",
  962. orderAD: ""
  963. },
  964. filters3: {
  965. //超级管理员查看学员列表
  966. // 排序
  967. MaxtimeValue: "",
  968. OptionsValue: "",
  969. gradesValue: "",
  970. inputValue: "",
  971. pageNo: 1,
  972. pageSize: 10,
  973. count: 0,
  974. orderField: "",
  975. orderAD: ""
  976. },
  977. homeworkLIst: {
  978. pageNo: 1,
  979. pageSize: 10,
  980. teacherId: ""
  981. },
  982. allotList: {
  983. Allotgarde: "",
  984. Allotsubjct: "",
  985. pageNo: 1,
  986. pageSize: 10,
  987. homeworkId: ""
  988. },
  989. allNoapprovalList: {
  990. Allotgarde: "",
  991. Allotsubjct: "",
  992. pageNo: 1,
  993. pageSize: 10,
  994. homeworkId: ""
  995. },
  996. AllotManagerList: {
  997. pageNo: 1,
  998. pageSize: 10
  999. },
  1000. AllotButton: ""
  1001. };
  1002. },
  1003. created() {
  1004. const managerId = this.$route.query.managerId;
  1005. this.managerId = managerId;
  1006. },
  1007. computed: {
  1008. ...mapGetters([
  1009. "getUser",
  1010. "monitorTeacherList",
  1011. "TeacherHomeworkList",
  1012. "TeacherAllotList",
  1013. "TeacherAllotstatus",
  1014. "DayTeacherList",
  1015. "MothTeacherList",
  1016. "UnallotHomeworkInfo",
  1017. "GetTeacherDetail",
  1018. "GetStudentDetail",
  1019. "getTeacherIdStatus",
  1020. "getAllotManagerList",
  1021. "BeforetoTeacherstatues",
  1022. "InfoTeacherstatues"
  1023. ])
  1024. },
  1025. methods: {
  1026. ...mapActions(["setUser"]),
  1027. // 点击下拉
  1028. dropDown(v, k) {
  1029. this.isDown = !this.isDown;
  1030. this.isDownindex = k;
  1031. this.TeacherHomework(v);
  1032. },
  1033. // // 分页
  1034. // pageChange(val) {
  1035. // this.filters.pageNo = val;
  1036. // this.itemListReshow();
  1037. // },
  1038. // changeDateSlot(dateSlot) {
  1039. // if (dateSlot) {
  1040. // this.filters.startDate = dateSlot[0];
  1041. // this.filters.endDate = dateSlot[1];
  1042. // } else {
  1043. // this.filters.startDate = null;
  1044. // this.filters.endDate = null;
  1045. // }
  1046. // },
  1047. // 获取校区管理员监控数据
  1048. async InfoWatch() {
  1049. this.isDown = false;
  1050. this.$store.dispatch("InfoWatch", {
  1051. grade: this.filters.OptionsValue,
  1052. subject: this.filters.gradesValue,
  1053. teacherName: this.filters.inputValue,
  1054. maxCreateTime: "",
  1055. pageNo: this.filters.pageNo,
  1056. pageSize: this.filters.pageSize,
  1057. managerId: this.managerId || ""
  1058. });
  1059. // this.monitorTeacherList.list = (res => {
  1060. // const d = [];
  1061. // for (let i in res) {
  1062. // d.push( {
  1063. // isShow:false,
  1064. // bannedTime:res[i].bannedTime,
  1065. // imgUrl:res[i].imgUrl,
  1066. // maxWaitTime:res[i].maxWaitTime,
  1067. // name:res[i].name,
  1068. // role:res[i].role,
  1069. // status:res[i].status,
  1070. // respSpeed:res[i].respSpeed,
  1071. // teacherId:res[i].teacherId,
  1072. // totalCorrectTime:res[i].totalCorrectTime,
  1073. // waitCount:res[i].waitCount,
  1074. // })
  1075. // }
  1076. // return d
  1077. // })(this.monitorTeacherList.list)
  1078. // this.teachList = this.monitorTeacherList.list;
  1079. // console.log(this.teachList)
  1080. },
  1081. //
  1082. // 获取校区管理员当天数据条件筛选
  1083. async SearchInfoWatchDay() {
  1084. this.filters1.pageNo = 1;
  1085. this.InfoWatchDay();
  1086. },
  1087. async timeInfoWatchDay() {
  1088. this.filters1.pageNo = 1;
  1089. this.InfoWatchDay();
  1090. },
  1091. // 获取校区管理员当天数据
  1092. async InfoWatchDay() {
  1093. this.$store.dispatch("InfoWatchDay", {
  1094. grade: this.filters.OptionsValue,
  1095. subject: this.filters.gradesValue,
  1096. teacherName: this.filters1.inputValue,
  1097. maxCreateTime: "",
  1098. oneDay: this.filters1.MaxtimeValue,
  1099. pageNo: this.filters1.pageNo,
  1100. pageSize: this.filters1.pageSize,
  1101. managerId: this.managerId || ""
  1102. });
  1103. },
  1104. // 获取校区管理员当月数据条件筛选
  1105. async SearchInfoWatchMoth() {
  1106. this.filters2.pageNo = 1;
  1107. this.InfoWatchMoth();
  1108. },
  1109. async TimeInfoWatchMoth() {
  1110. this.filters2.pageNo = 1;
  1111. this.InfoWatchMoth();
  1112. },
  1113. // 获取校区管理员当月数据
  1114. async InfoWatchMoth() {
  1115. this.$store.dispatch("InfoWatchMoth", {
  1116. grade: this.filters.OptionsValue,
  1117. subject: this.filters.gradesValue,
  1118. teacherName: this.filters2.inputValue,
  1119. maxCreateTime: "",
  1120. oneMonth: this.filters2.MaxtimeValue,
  1121. pageNo: this.filters2.pageNo,
  1122. pageSize: this.filters2.pageSize,
  1123. managerId: this.managerId || ""
  1124. });
  1125. },
  1126. // 查看老师批改作业列表
  1127. async TeacherHomework(v) {
  1128. this.homeworkLIst.teacherId = v.teacherId;
  1129. this.$store.dispatch("TeacherHomeworkList", {
  1130. teacherId: v.teacherId,
  1131. maxCreateTime: this.filters.MaxtimeValue,
  1132. pageNo: 1,
  1133. pageSize: this.homeworkLIst.pageSize
  1134. });
  1135. },
  1136. // 分页查看老师批改作业列表
  1137. async TeacherHomeworkfy() {
  1138. this.$store.dispatch("TeacherHomeworkList", {
  1139. teacherId: this.homeworkLIst.teacherId,
  1140. maxCreateTime: this.filters.MaxtimeValue,
  1141. pageNo: this.homeworkLIst.pageNo,
  1142. pageSize: this.homeworkLIst.pageSize
  1143. });
  1144. },
  1145. // 可分配老师列表
  1146. async TeacherAllot(v) {
  1147. this.$store.dispatch("TeacherAllotList", {
  1148. grade: v.grade,
  1149. subject: v.subject,
  1150. maxCreateTime: this.filters.MaxtimeValue,
  1151. pageNo: this.allotList.pageNo,
  1152. pageSize: this.allotList.pageSize
  1153. });
  1154. },
  1155. // 可分配老师列表分页
  1156. async TeacherAllotfy() {
  1157. this.$store.dispatch("TeacherAllotList", {
  1158. grade: this.allotList.Allotgarde,
  1159. subject: this.allotList.Allotsubjct,
  1160. maxCreateTime: this.filters.MaxtimeValue,
  1161. pageNo: this.allotList.pageNo,
  1162. pageSize: this.allotList.pageSize
  1163. });
  1164. },
  1165. // 未批改作业列表列表
  1166. async UnallotHomework() {
  1167. this.$store.dispatch("UnallotHomeworkList", {
  1168. maxCreateTime: this.filters.MaxtimeValue,
  1169. pageNo: this.homeworkLIst.pageNo,
  1170. pageSize: this.homeworkLIst.pageSize,
  1171. managerId: this.managerId
  1172. });
  1173. },
  1174. // 未批改作业可分配老师列表
  1175. async NoapporvalTeacherAllot(v) {
  1176. this.$store.dispatch("TeacherAllotList", {
  1177. grade: v.grade || this.allNoapprovalList.Allotgarde,
  1178. subject: v.subject || this.allNoapprovalList.Allotsubjct,
  1179. maxCreateTime: this.filters.MaxtimeValue,
  1180. pageNo: 1,
  1181. pageSize: this.allNoapprovalList.pageSize
  1182. });
  1183. },
  1184. // 未批改作业可分配老师分页列表
  1185. async NoapporvalTeacherAllotfy() {
  1186. this.$store.dispatch("TeacherAllotList", {
  1187. grade: this.allNoapprovalList.Allotgarde,
  1188. subject: this.allNoapprovalList.Allotsubjct,
  1189. maxCreateTime: this.filters.MaxtimeValue,
  1190. pageNo: this.allNoapprovalList.pageNo,
  1191. pageSize: this.allNoapprovalList.pageSize
  1192. });
  1193. },
  1194. // 分配老师
  1195. async GOtoTeacherAllot(v, k) {
  1196. this.$store.dispatch("toTeacherAllot", {
  1197. teacherId: v.teacherId,
  1198. homeworkId: this.allotList.homeworkId
  1199. });
  1200. v.type = 1;
  1201. this.$set(this.TeacherAllotList.list, k, v);
  1202. this.hiddenModel = false;
  1203. },
  1204. // 未批改作业分配老师
  1205. async GOtoTeacherAllotAppovar(v, k) {
  1206. this.$store.dispatch("toTeacherAllot", {
  1207. teacherId: v.teacherId,
  1208. homeworkId: this.allNoapprovalList.homeworkId
  1209. });
  1210. v.type = 1;
  1211. this.$set(this.TeacherAllotList.list, k, v);
  1212. this.NoAllotManagerModel = false;
  1213. this.UnallotHomework();
  1214. this.isPigai = true;
  1215. },
  1216. // 封号
  1217. async CloseTeacherId() {
  1218. this.closeID = false;
  1219. this.$store.dispatch("CloseIdTeacher", {
  1220. teacherId: this.TeacherIds,
  1221. operate: 2
  1222. });
  1223. },
  1224. // 升级
  1225. async RepushTeacherAcess() {
  1226. this.rePush = false;
  1227. this.$store.dispatch("RepushTeacher", {
  1228. teacherId: this.TeacherIds,
  1229. operate: 1
  1230. });
  1231. },
  1232. // 解封
  1233. async OPenTeacherId() {
  1234. this.OpenID = false;
  1235. this.$store.dispatch("OpenIdTeacher", {
  1236. teacherId: this.TeacherIds,
  1237. operate: 3
  1238. });
  1239. },
  1240. // 查看老师详情信息
  1241. async GetTeacherInfo(v) {
  1242. this.$store.dispatch("GetTeacherDetail", {
  1243. teacherId: v.teacherId
  1244. });
  1245. },
  1246. async pesiorFun() {
  1247. var arr = this.GetTeacherDetail.grade.split(",");
  1248. this.arrPeriod = this.GetTeacherDetail.period.split(",");
  1249. var arrList = [];
  1250. for (var i in arr) {
  1251. if (arr[i] == "一年级" || arr[i] == "二年级") {
  1252. arrList.push("1-2年级");
  1253. } else if (arr[i] == "三年级" || arr[i] == "四年级") {
  1254. arrList.push("3-4年级");
  1255. } else if (arr[i] == "五年级" || arr[i] == "六年级") {
  1256. arrList.push("5-6年级");
  1257. }
  1258. }
  1259. this.arrGrade = this.uniq(arrList) || [];
  1260. },
  1261. // 查看学生详情信息
  1262. async GetStudentInfo(v) {
  1263. this.$store.dispatch("GetStudentDetail", {
  1264. vipId: v.vipId
  1265. });
  1266. },
  1267. // 可分配小组列表
  1268. async GetAllotManagerInfo() {
  1269. this.$store.dispatch("GetAllotManagerList", {
  1270. maxCreateTime: this.filters.MaxtimeValue,
  1271. pageNo: this.AllotManagerList.pageNo,
  1272. pageSize: this.AllotManagerList.pageSize
  1273. });
  1274. },
  1275. // 分配老师到管理员名下
  1276. async GOAllotTeacherToManager(v, k) {
  1277. this.$store.dispatch("AllotTeacherToManager", {
  1278. managerId: v.managerId,
  1279. teacherId: this.TeacherIds
  1280. });
  1281. v.type = 1;
  1282. this.$set(this.getAllotManagerList.list, k, v);
  1283. this.AllotManagerModel = false;
  1284. },
  1285. selectTitle(k) {
  1286. this.modelindex = k;
  1287. if (k === 0) {
  1288. this.filters.pageNo = 1;
  1289. this.InfoWatch();
  1290. }
  1291. if (k === 1) {
  1292. this.filters1.pageNo = 1;
  1293. this.InfoWatchDay();
  1294. }
  1295. if (k === 2) {
  1296. this.filters2.pageNo = 1;
  1297. this.InfoWatchMoth();
  1298. }
  1299. },
  1300. isShow(v, str) {
  1301. let _this = this;
  1302. // scroll= (window).scrollTop();
  1303. // $ ( ‘html’ ).css({ ‘overflow’ : ’hidden’ , ’position’: ’fixed’, ’top’: ’- ‘+scroll+’px’})
  1304. if (str == 1) {
  1305. _this.hiddenModel = true;
  1306. this.TeacherAllot(v);
  1307. this.allotList.Allotgarde = v.grade;
  1308. this.allotList.Allotsubjct = v.subject;
  1309. this.allotList.homeworkId = v.homeworkId;
  1310. } else if (str == 2) {
  1311. _this.isPigai = true;
  1312. this.UnallotHomework();
  1313. } else if (str == 3) {
  1314. this.TeacherIdStatus = v.status;
  1315. this.TeacherIds = v.teacherId;
  1316. this.TeacherName = v.name;
  1317. _this.ModelAppor = true;
  1318. this.GetTeacherInfo(v);
  1319. } else if (str == 4) {
  1320. _this.ModelStudet = true;
  1321. this.GetStudentInfo(v);
  1322. } else if (str == 5) {
  1323. _this.rePush = true;
  1324. _this.ModelAppor = false;
  1325. } else if (str == 6) {
  1326. _this.closeID = true;
  1327. _this.ModelAppor = false;
  1328. } else if (str == 7) {
  1329. _this.OpenID = true;
  1330. _this.ModelAppor = false;
  1331. } else if (str == 8) {
  1332. _this.AllotManagerModel = true;
  1333. _this.ModelAppor = false;
  1334. this.GetAllotManagerInfo();
  1335. } else if (str == 9) {
  1336. this.allNoapprovalList.Allotgarde = v.grade;
  1337. this.allNoapprovalList.Allotsubjct = v.subject;
  1338. this.allNoapprovalList.homeworkId = v.homeworkId;
  1339. _this.NoAllotManagerModel = true;
  1340. _this.isPigai = false;
  1341. this.NoapporvalTeacherAllot(v);
  1342. // this.GetAllotManagerInfo()
  1343. }
  1344. },
  1345. // 去分配
  1346. allocation() {
  1347. var noHomework = document.getElementById("noHomework");
  1348. this.InfoWatch();
  1349. if (this.monitorTeacherList.unCorrectCount == 0) {
  1350. noHomework.style.display = "block";
  1351. setTimeout(function() {
  1352. noHomework.style.display = "none";
  1353. }, 1000);
  1354. } else {
  1355. this.isShow(this.monitorTeacherList, 2);
  1356. }
  1357. },
  1358. //关闭弹框
  1359. allShowModel(str) {
  1360. let _this = this;
  1361. if (str == 1) {
  1362. _this.hiddenModel = false;
  1363. } else if (str == 2) {
  1364. _this.isPigai = false;
  1365. } else if (str == 3) {
  1366. _this.ModelAppor = false;
  1367. } else if (str == 4) {
  1368. _this.ModelStudet = false;
  1369. } else if (str == 5) {
  1370. _this.rePush = false;
  1371. } else if (str == 6) {
  1372. _this.closeID = false;
  1373. } else if (str == 7) {
  1374. _this.OpenID = false;
  1375. } else if (str == 8) {
  1376. _this.AllotManagerModel = false;
  1377. } else if (str == 9) {
  1378. _this.NoAllotManagerModel = false;
  1379. }
  1380. },
  1381. // 数组去重
  1382. uniq(array) {
  1383. var temp = []; //一个新的临时数组
  1384. for (var i = 0; i < array.length; i++) {
  1385. if (temp.indexOf(array[i]) == -1) {
  1386. temp.push(array[i]);
  1387. }
  1388. }
  1389. return temp;
  1390. },
  1391. // 回退
  1392. routerback() {
  1393. this.$router.back(-1);
  1394. },
  1395. // 输入框按键方法
  1396. keyCodeMethod(e) {
  1397. if (e.keyCode === 13) return this.itemListReshow();
  1398. },
  1399. expandChange(row, expandRows) {
  1400. for (let item of expandRows) {
  1401. if (row === item) {
  1402. this.expandRowKeys = [row.nodId];
  1403. }
  1404. }
  1405. },
  1406. changeDateSlot(dateSlot) {
  1407. if (dateSlot) {
  1408. this.filters.startDate = dateSlot[0];
  1409. this.filters.endDate = dateSlot[1];
  1410. } else {
  1411. this.filters.startDate = null;
  1412. this.filters.endDate = null;
  1413. }
  1414. },
  1415. actvTypeChange(typeList) {
  1416. switch (typeList.length) {
  1417. case 1:
  1418. this.filters.actvType = typeList[0];
  1419. this.filters.actvSmallType = null;
  1420. break;
  1421. case 2:
  1422. this.filters.actvType = null;
  1423. this.filters.actvSmallType = typeList[1];
  1424. break;
  1425. default:
  1426. this.filters.actvType = null;
  1427. this.filters.actvSmallType = null;
  1428. break;
  1429. }
  1430. },
  1431. handleSizeChange(val) {
  1432. this.filters.pageSize = val;
  1433. this.InfoWatch();
  1434. },
  1435. handleSizeChange1(val) {
  1436. this.filters1.pageSize = val;
  1437. this.InfoWatchDay();
  1438. },
  1439. handleSizeChange2(val) {
  1440. this.filters2.pageSize = val;
  1441. this.InfoWatchMoth();
  1442. },
  1443. handleSizeChange3(val) {
  1444. this.homeworkLIst.pageSize = val;
  1445. this.TeacherHomeworkfy();
  1446. },
  1447. handleSizeChange4(val) {
  1448. this.allotList.pageSize = val;
  1449. this.TeacherAllotfy();
  1450. },
  1451. handleSizeChange5(val) {
  1452. this.AllotManagerList.pageSize = val;
  1453. this.GetAllotManagerInfo();
  1454. },
  1455. handleSizeChange6(val) {
  1456. this.allNoapprovalList.pageSize = val;
  1457. this.NoapporvalTeacherAllotfy();
  1458. },
  1459. // 分页
  1460. pageChange(val) {
  1461. this.filters.pageNo = val;
  1462. this.InfoWatch();
  1463. }, // 分页
  1464. pageChange1(val) {
  1465. this.filters1.pageNo = val;
  1466. this.InfoWatchDay();
  1467. }, // 分页
  1468. pageChange2(val) {
  1469. this.filters2.pageNo = val;
  1470. this.InfoWatchMoth();
  1471. },
  1472. pageChange3(val) {
  1473. this.homeworkLIst.pageNo = val;
  1474. this.TeacherHomeworkfy();
  1475. },
  1476. pageChange4(val) {
  1477. this.allotList.pageNo = val;
  1478. this.TeacherAllotfy();
  1479. },
  1480. pageChange5(val) {
  1481. this.AllotManagerList.pageNo = val;
  1482. this.GetAllotManagerInfo();
  1483. },
  1484. pageChange6(val) {
  1485. this.allNoapprovalList.pageNo = val;
  1486. this.NoapporvalTeacherAllotfy();
  1487. },
  1488. // 排序
  1489. sortChange(sort) {
  1490. this.filters.orderField = sort.prop;
  1491. this.filters.orderAD = sort.order != null ? sort.order : "";
  1492. this.itemListReshow();
  1493. },
  1494. //年月日时间封装
  1495. dayFormatDate: function() {
  1496. let date = new Date();
  1497. let y = date.getFullYear();
  1498. let MM = date.getMonth() + 1;
  1499. MM = MM < 10 ? "0" + MM : MM;
  1500. let d = date.getDate();
  1501. d = d < 10 ? "0" + d : d;
  1502. return y + "-" + MM + "-" + d;
  1503. },
  1504. //年月时间封装
  1505. monthFormatDate: function() {
  1506. let date = new Date();
  1507. let y = date.getFullYear();
  1508. let MM = date.getMonth() + 1;
  1509. MM = MM < 10 ? "0" + MM : MM;
  1510. return y + "-" + MM;
  1511. }
  1512. // 获取创建人列表
  1513. // async getUserNameList() {
  1514. // let {
  1515. // userNameList = []
  1516. // } = await this.$dao.actv.marketActDao.getUserNameList();
  1517. // this.userNameList = userNameList || [];
  1518. // let { list = [] } = await this.$dao.bsnsActvTypeAllList();
  1519. // this.actvTypeList = list || [];
  1520. // }
  1521. },
  1522. mounted() {
  1523. this.InfoWatch();
  1524. // this.getsetDictByType2();
  1525. // this.getUserNameList();
  1526. // this.itemListReshow();
  1527. },
  1528. watch: {
  1529. getTeacherIdStatus(val, oldVal) {
  1530. //普通的watch监听
  1531. this.InfoWatch();
  1532. },
  1533. BeforetoTeacherstatues(val, oldVal) {
  1534. //普通的watch监听
  1535. // 查看老师批改作业列表
  1536. this.$store.dispatch("TeacherHomeworkList", {
  1537. teacherId: this.homeworkLIst.teacherId,
  1538. maxCreateTime: this.filters.MaxtimeValue,
  1539. pageNo: this.homeworkLIst.pageNo,
  1540. pageSize: this.homeworkLIst.pageSize
  1541. });
  1542. },
  1543. InfoTeacherstatues(val, oldVal) {
  1544. //普通的watch监听
  1545. this.pesiorFun();
  1546. }
  1547. }
  1548. };
  1549. </script>
  1550. <!-- Add "scoped" attribute to limit CSS to this component only -->
  1551. <style>
  1552. html,
  1553. body {
  1554. height: 100%;
  1555. overflow: hidden;
  1556. }
  1557. .aside {
  1558. background-color: #fff;
  1559. margin-top: 16px;
  1560. margin-right: 16px;
  1561. padding: 0;
  1562. min-height: 880px;
  1563. }
  1564. .main {
  1565. background-color: #fff;
  1566. padding: 0 !important;
  1567. margin-top: 16px;
  1568. min-height: 980px;
  1569. }
  1570. .table-aside {
  1571. color: #666666;
  1572. font-size: 18px;
  1573. text-align: center;
  1574. line-height: 60px;
  1575. cursor: pointer;
  1576. }
  1577. el-table {
  1578. color: #999999;
  1579. font-size: 18px;
  1580. }
  1581. .BgcColor {
  1582. background-color: #f7fbfc;
  1583. }
  1584. .buttonAppoval {
  1585. display: inline-block;
  1586. }
  1587. .main-items {
  1588. color: #393939;
  1589. text-align: center;
  1590. line-height: 80px;
  1591. }
  1592. .main-header-item {
  1593. font-size: 16px;
  1594. /* font-weight: 700; */
  1595. }
  1596. .model-manager {
  1597. display: flex;
  1598. justify-content: space-between;
  1599. margin: 30px;
  1600. color: #393939;
  1601. font-size: 24px;
  1602. }
  1603. .main-header-link {
  1604. color: #52cc60;
  1605. font-size: 18px;
  1606. margin-left: 10px;
  1607. cursor: pointer;
  1608. text-decoration: underline;
  1609. }
  1610. .el-select {
  1611. width: 100px;
  1612. margin: -10px !important;
  1613. }
  1614. .input-with-select .el-input-group__prepend {
  1615. background-color: #fff;
  1616. }
  1617. .el-select-dropdown__list {
  1618. padding: 15px 0 !important;
  1619. }
  1620. .active {
  1621. background-color: #52cc60;
  1622. color: #fff;
  1623. }
  1624. .el-input__inner {
  1625. height: 45px;
  1626. /*margin: 0 5px !important;*/
  1627. }
  1628. .table-img {
  1629. width: 36px;
  1630. height: 36px;
  1631. border-radius: 6px;
  1632. margin-left: 14px;
  1633. cursor: pointer;
  1634. }
  1635. .table {
  1636. width: 94.5%;
  1637. border-top: 1px solid #e5e5e5;
  1638. margin: 0 43px;
  1639. }
  1640. .table-head {
  1641. color: #999999;
  1642. font-size: 18px;
  1643. text-align: center;
  1644. display: flex;
  1645. justify-content: space-around;
  1646. }
  1647. .table-head > div {
  1648. width: 13.528%;
  1649. }
  1650. .table-heads {
  1651. margin-left: 15%;
  1652. width: 68%;
  1653. color: #3ab548;
  1654. font-size: 14px;
  1655. text-align: center;
  1656. display: flex;
  1657. justify-content: space-around;
  1658. }
  1659. .table-heads > div {
  1660. width: 13.528%;
  1661. }
  1662. ul {
  1663. text-align: center;
  1664. margin: 0 !important;
  1665. }
  1666. .tr {
  1667. width: 100%;
  1668. color: #393939;
  1669. text-align: center;
  1670. font-family: "PingFang-SC-Bold";
  1671. font-size: 16px;
  1672. font-weight: 700;
  1673. }
  1674. .tr-first {
  1675. display: flex;
  1676. justify-content: space-around;
  1677. }
  1678. .tr-first > div {
  1679. width: 13.528%;
  1680. }
  1681. .tr-set {
  1682. background-color: #fbfbfb;
  1683. display: flex;
  1684. justify-content: space-around;
  1685. color: #393939;
  1686. font-size: 12px;
  1687. margin: 20px;
  1688. }
  1689. .tr-secon {
  1690. font-size: 12px;
  1691. text-align: center;
  1692. word-wrap: break-word;
  1693. width: 40px;
  1694. }
  1695. .tr-setNo {
  1696. display: flex;
  1697. justify-content: space-around;
  1698. color: #000000f1;
  1699. font-size: 16px;
  1700. margin: 20px;
  1701. }
  1702. .tr-second {
  1703. background-color: #fbfbfb;
  1704. display: flex;
  1705. color: #393939;
  1706. font-size: 20px;
  1707. }
  1708. .tr-seconds {
  1709. text-align: center;
  1710. font-size: 14px;
  1711. word-wrap: break-word;
  1712. margin: 0 50px;
  1713. }
  1714. .tr-sw180 {
  1715. width: 180px;
  1716. text-align: center;
  1717. }
  1718. .width40 {
  1719. width: 100px;
  1720. }
  1721. .tr-secondsA {
  1722. text-align: center;
  1723. font-size: 14px;
  1724. word-wrap: break-word;
  1725. width: 280px;
  1726. }
  1727. .tr-w120 {
  1728. width: 200px;
  1729. text-align: left;
  1730. }
  1731. .tr-second-check {
  1732. color: #3ab548;
  1733. font-size: 17px;
  1734. text-decoration: underline;
  1735. }
  1736. .Online {
  1737. display: inline-block;
  1738. }
  1739. .Onlinename {
  1740. display: inline-block;
  1741. }
  1742. .tr-active {
  1743. color: #3ab548;
  1744. }
  1745. .showModel {
  1746. width: 100%;
  1747. height: 100%;
  1748. position: fixed;
  1749. top: 0;
  1750. left: 0;
  1751. background: #000000;
  1752. opacity: 0.2;
  1753. overflow: hidden;
  1754. z-index: 1000;
  1755. color: #fff;
  1756. }
  1757. .model {
  1758. z-index: 10000;
  1759. width: 60%;
  1760. height: auto;
  1761. position: fixed;
  1762. top: 15%;
  1763. left: 30%;
  1764. margin: auto;
  1765. background: #fff;
  1766. border-radius: 10px;
  1767. text-align: center;
  1768. }
  1769. .modelspec {
  1770. z-index: 10000;
  1771. width: 35.5%;
  1772. height: auto;
  1773. position: fixed;
  1774. top: 30%;
  1775. left: 32.5%;
  1776. margin: auto;
  1777. background: #fff;
  1778. border-radius: 10px;
  1779. text-align: center;
  1780. }
  1781. .model-text {
  1782. background: rgba(255, 255, 255, 1);
  1783. border-radius: 10px;
  1784. }
  1785. .model-items-first {
  1786. padding: 0 34px;
  1787. display: flex;
  1788. justify-content: space-between;
  1789. }
  1790. .model-items-first-img {
  1791. width: 68px;
  1792. height: 68px;
  1793. border-radius: 8px;
  1794. position: relative;
  1795. bottom: 20px;
  1796. }
  1797. .model-items-first-left {
  1798. display: inline-block;
  1799. color: #393939;
  1800. font-size: 24px;
  1801. margin-left: 14px;
  1802. text-align: left;
  1803. }
  1804. .model-items-first-left-down {
  1805. color: #7e7e7e;
  1806. font-size: 18px;
  1807. }
  1808. .model-text-head {
  1809. padding: 40px 50px;
  1810. display: flex;
  1811. color: #393939;
  1812. font-size: 24px;
  1813. justify-content: space-between;
  1814. }
  1815. .model-items-other {
  1816. height: 60px;
  1817. line-height: 60px;
  1818. color: #393939;
  1819. font-size: 20px;
  1820. text-align: left;
  1821. padding: 0 34px;
  1822. }
  1823. .model-active {
  1824. background-color: #f6f7fb;
  1825. }
  1826. .model-active-last {
  1827. border-radius: 0 0 30px 30px;
  1828. background-color: #f6f7fb;
  1829. }
  1830. .model-items-left {
  1831. width: 100%;
  1832. color: #393939;
  1833. font-size: 24px;
  1834. }
  1835. .model-items-left-top {
  1836. display: flex;
  1837. justify-content: space-between;
  1838. }
  1839. .model-items {
  1840. padding-bottom: 10px;
  1841. display: flex;
  1842. justify-content: space-between;
  1843. display: inline-block;
  1844. width: 100%;
  1845. }
  1846. .model-itemss {
  1847. padding: 10px 0;
  1848. display: flex;
  1849. justify-content: space-between;
  1850. display: inline-block;
  1851. }
  1852. .model-items-left-top-img {
  1853. width: 68px;
  1854. height: 68px;
  1855. border-radius: 8px;
  1856. position: relative;
  1857. bottom: 25px;
  1858. }
  1859. .model-btn-items {
  1860. font-size: 18px;
  1861. }
  1862. .main-gay {
  1863. background: rgba(246, 247, 251, 1);
  1864. color: #7e7e7e;
  1865. width: 154px;
  1866. height: 50px;
  1867. line-height: 50px;
  1868. cursor: pointer;
  1869. }
  1870. .model-grdeen {
  1871. background-color: #52cc60;
  1872. color: #fff;
  1873. width: 154px;
  1874. height: 50px;
  1875. line-height: 50px;
  1876. cursor: pointer;
  1877. }
  1878. .model-text-items-close {
  1879. position: absolute;
  1880. top: 10px;
  1881. right: 15px;
  1882. cursor: pointer;
  1883. }
  1884. .model-text-items {
  1885. position: relative;
  1886. color: #000000;
  1887. font-size: 24px;
  1888. text-align: center;
  1889. padding: 40px 0 50px 0;
  1890. }
  1891. .model-btn {
  1892. display: flex;
  1893. justify-content: space-around;
  1894. margin-bottom: 44px;
  1895. }
  1896. .model-items-left-top-number {
  1897. color: #7e7e7e;
  1898. font-size: 18px;
  1899. margin-left: 10px;
  1900. }
  1901. .today-time {
  1902. color: #7e7e7e;
  1903. font-size: 18px;
  1904. margin: 0 20px;
  1905. }
  1906. .no-homework {
  1907. width: 16.5%;
  1908. height: 328px;
  1909. background: rgba(255, 255, 255, 1);
  1910. box-shadow: 0px 0px 14px 0px rgba(228, 228, 228, 1);
  1911. border-radius: 10px;
  1912. margin: auto;
  1913. position: fixed;
  1914. top: 27%;
  1915. left: 41.75%;
  1916. text-align: center;
  1917. padding: 35px;
  1918. z-index: 1000;
  1919. display: none;
  1920. }
  1921. .no-homework > div {
  1922. margin-bottom: 25px;
  1923. font-size: 24px;
  1924. }
  1925. .no-homework > img {
  1926. width: 226px;
  1927. height: 203px;
  1928. }
  1929. .allocation-items {
  1930. width: 45%;
  1931. display: inline-block;
  1932. margin-right: 20px;
  1933. margin-bottom: 30px;
  1934. }
  1935. </style>