SchoolManager.vue 50 KB

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