SchoolManager.vue 50 KB

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