SchoolManager.vue 58 KB

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