1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884 |
- <!-- 活动解析 -->
- <template>
- <div>
- <!-- table 表格 -->
- <el-row :gutter="20" class="main-items">
- <el-col class="aside" :span="3" :offset="2" style="padding: 0 !important;">
- <div
- class="table-aside"
- v-for="(v, k) in ItemList"
- :key="k"
- :class="{active:k == modelindex}"
- @click="selectTitle(k)"
- >{{v.text}}</div>
- </el-col>
- <!--数据监控-->
- <el-col :span="17" class="main" v-if="modelindex == 0">
- <el-row :gutter="20" class="main-header">
- <el-col :span="14" :offset="0">
- <div
- @click="handApor()"
- :class="{Apporvalactive:Activeindex == false,ApporStyles:true}"
- >批改老师</div>
- <div
- @click="AutoApor()"
- :class="{Apporvalactive:Activeindex == true,ApporStyles:true}"
- >匹配知识点老师</div>
- </el-col>
- <el-col :span="10">
- <div class="selectBox">
- <div
- class="Ageclass"
- @click="choiceclass()"
- @mouseover="selectStyle()"
- @mouseout="outStyle()"
- >
- <span class="age-tip">{{selecttitlepag}}</span>
- <span :class="[gardeListDown ?'el-icon-caret-top':'el-icon-caret-bottom']"></span>
- </div>
- <div
- class="class-download"
- v-show="gardeListDown"
- @mouseover="selectStyle()"
- @mouseout="outStyle()"
- >
- <ul v-for="(item, k) in options" :key="k">
- <li @click="selectTip(item)">{{item.label}}</li>
- </ul>
- </div>
- </div>
- <div class="selectBox">
- <div
- class="Ageclass"
- @click="choiceclass()"
- @mouseover="selectStyle1()"
- @mouseout="outStyle1()"
- >
- <span class="age-tip">{{selecttitleage}}</span>
- <span :class="[gardeListDownage ?'el-icon-caret-top':'el-icon-caret-bottom']"></span>
- </div>
- <div
- class="class-download"
- v-show="gardeListDownage"
- @mouseover="selectStyle1()"
- @mouseout="outStyle1()"
- >
- <ul v-for="(item, k) in grades" :key="k">
- <li @click="selectTipage(item)">{{item.label}}</li>
- </ul>
- </div>
- </div>
- <div class="teach-block">
- <div class="miniorteach-Allot">
- <input
- type="text"
- placeholder="请输入老师"
- v-model="filters.inputValue"
- class="miniorinput-with-Allot"
- />
- <span v-if="this.Activeindex == false" @click="InfoWatch" class="miinorSeachIcon el-icon-search"></span>
- <span v-if="this.Activeindex == true" @click="InfoKonwTeacherWatchList" class="miinorSeachIcon el-icon-search"></span>
- </div>
- </div>
- </el-col>
- <el-col :span="14" :offset="1">
- <div class="main-header-item displayBox">在线:{{monitorTeacherList.onlineCount}}人</div>
- <div class="main-header-item displayBox">离线:{{monitorTeacherList.offlineCount}}人</div>
- <div class="main-header-item displayBox">
- <span>平均响应时间:{{monitorTeacherList.avgreSpeed}}/份</span>
- </div>
- <div class="main-header-item displayBox" v-if="this.Activeindex == false">
- <span>分配未批改作业:{{monitorTeacherList.unCorrectCount}}份</span>
- <span @click="allocation()" class="main-header-link">去分配</span>
- </div>
- <div class="main-header-item displayBox" v-if="this.Activeindex == true">
- <span>分配未匹配作业:{{monitorTeacherList.unCorrectCount}}份</span>
- <span @click="allocationApporval()" class="main-header-link">去分配</span>
- </div>
- </el-col>
- </el-row>
- <el-row :gutter="20" class="main-header">
- <el-col :span="24">
- <div
- class="table"
- v-if="monitorTeacherList.list !== undefined && monitorTeacherList.list.length ==0"
- >暂无数据!</div>
- <div
- class="table"
- v-if="monitorTeacherList.list !== undefined && monitorTeacherList.list.length >0"
- >
- <div class="table-head">
- <div>头像</div>
- <div>姓名</div>
- <div>等待作业数</div>
- <div>作业最长等待时长</div>
- <div v-if="this.Activeindex == false">今日累计批改时间</div>
- <div v-if="this.Activeindex == true">今日累计匹配时间</div>
- <div>今日响应速度</div>
- <div>状态</div>
- </div>
- <div class="tr" v-for="(v, k) of monitorTeacherList.list" :key="k">
- <!-- 在线 -->
- <div v-if="v.status == '1'" class="tr-first" :class="{BgcColor:k%2 !== 1}">
- <div>
- <i
- style="cursor:pointer;"
- :class="[isDown&&isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
- @click="dropDown(v,k)"
- ></i>
- <img
- :src="BASE_URL + v.imgUrl"
- alt
- class="table-img"
- v-if="v.imgUrl"
- @click="isShow(v,3)"
- />
- <img
- src="../../assets/img/attt.png"
- alt
- v-if="v.imgUrl ==''"
- @click="isShow(v,3)"
- class="table-img"
- />
- </div>
- <div>{{v.name}}</div>
- <div>{{v.waitCount}}份</div>
- <div class="tr-active">{{v.maxWaitTime}}</div>
- <div style="width:200px;">{{v.totalCorrectTime}}</div>
- <div>{{v.respSpeed}}</div>
- <div>在线</div>
- </div>
- <!-- 离线 -->
- <div
- v-if="v.status == '2'"
- style="color:#BEBEBE"
- class="tr-first"
- :class="{BgcColor:k%2 !== 1}"
- >
- <div>
- <i
- style="cursor:pointer;"
- :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
- @click="dropDown(v,k)"
- ></i>
- <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)" />
- <img
- src="../../assets/img/attt.png"
- alt
- v-if="v.imgUrl ==''"
- @click="isShow(v,3)"
- class="table-img"
- />
- </div>
- <div>{{v.name}}</div>
- <div>{{v.waitCount}}份</div>
- <div>{{v.maxWaitTime}}</div>
- <div style="width:240px;">{{v.totalCorrectTime}}</div>
- <div>{{v.respSpeed}}</div>
- <div>离线</div>
- </div>
- <!-- 封号 -->
- <div
- v-if="v.status == '3'"
- style="color:#FF6767"
- class="tr-first"
- :class="{BgcColor:k%2 !== 1}"
- >
- <div>
- <i
- style="cursor:pointer;"
- :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
- @click="dropDown(v,k)"
- ></i>
- <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)" />
- <img
- src="../../assets/img/attt.png"
- alt
- v-if="v.imgUrl ==''"
- @click="isShow(v,3)"
- class="table-img"
- />
- </div>
- <div>{{v.name}}</div>
- <div>{{v.waitCount}}份</div>
- <div>{{v.maxWaitTime}}</div>
- <div style="width:200px;">{{v.totalCorrectTime}}</div>
- <div>{{v.respSpeed}}</div>
- <div>已封号</div>
- </div>
- <div
- class="tr-setNo"
- v-if="isDownindex === k && isDown && TeacherHomeworkList.list.length == 0"
- >暂无数据!</div>
- <!--&& isDownindex === k && isDown-->
- <div v-if="isDownindex === k && isDown">
- <div class="tr-second" v-for="(v, k) of TeacherHomeworkList.list" :key="k">
- <div class="tr-seconds" style="width:6%;">{{k+1}}</div>
- <div class="tr-seconds tr-w120" style="width:14%;">
- <span @click="isShow(v,4)" style="cursor: pointer;" class="tr-second-check">查看</span>
- <span>{{v.name}}</span>
- </div>
- <div
- v-if="v.status && !(v.status === 1 && k == 0) "
- class="tr-secondsA"
- style="width:50%;"
- >{{v.spendTime}}</div>
- <div
- v-if="v.status === 1 && k == 0"
- class="tr-secondsA"
- style="color:#52CC60;width: 50%"
- >{{v.spendTime}}</div>
- <div class="tr-seconds widthSu" style="width: 10%">{{v.subject}}</div>
- <div class="tr-seconds widthSu" style="width: 10%">{{v.grade}}</div>
- <div v-if="v.status === 1" class="tr-seconds width40" style="width: 10%">
- <span v-if="Activeindex == false">未批改</span>
- <span v-if="Activeindex == true">未匹配</span>
- (
- <span>{{v.feedbackCount}}/{{v.picTotal}}</span>)
- </div>
- <div
- v-if="v.status === 2"
- class="tr-seconds width40"
- style="color:#FFC303;width: 10%"
- >
- <span v-if="Activeindex == false">批改中</span>
- <span v-if="Activeindex == true">匹配中</span>
- (
- <span>{{v.feedbackCount}}/{{v.picTotal}}</span>)
- </div>
- <div v-if="v.status === 3" class="tr-seconds width40" style="width: 10%">
- <span v-if="Activeindex == false">已批改</span>
- <span v-if="Activeindex == true">已匹配</span>
- (
- <span>{{v.feedbackCount}}/{{v.picTotal}}</span>)
- </div>
- <div class="tr-sw180" v-if="v.status === 2" style="width: 25%"></div>
- <div class="tr-sw180" v-if="v.status === 1" style="width: 25%">
- <!-- <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> -->
- <el-button @click="isShow(v,1)" type="success">去分配</el-button>
- </div>
- <div
- class="ApporTeacher"
- v-if="v.status === 3 && v.isCheck ===1"
- style="width: 25%"
- >
- <span>{{v.checkCount}}</span>
- <span style="color:#bbbbbb;">/{{v.picTotal}}</span>
- <el-button type="info" @click="CheackHomeworkStatus(v)">
- <span
- href
- style="text-decoration:none;color:#ffffff;"
- >已检查</span>
- </el-button>
- <span v-if="v.wrongCount > 0" style="color:red;font-size:12px;">报错{{v.wrongCount}}</span>
- <span v-if="v.wrongCount == 0" style="color:#fbfbfb;font-size:12px;">报错{{v.wrongCount}}</span>
- </div>
- <div
- class="tr-sw180"
- v-if="v.status === 3 && v.isCheck ===0"
- style="width: 25%"
- >
- <el-button type="warning" @click="CheackHomeworkStatus(v)">
- <span
- href
- style="text-decoration:none;color:#ffffff;"
- >去检查</span>
- </el-button>
- </div>
- </div>
- <!-- 分页显示 -->
- <div v-if="parseInt(TeacherHomeworkList.pages) > 10">
- <el-pagination
- background
- @size-change="handleSizeChange3"
- @current-change="pageChange3"
- :page-sizes="[10, 20]"
- layout="total, prev, pager, next"
- :total="parseInt(TeacherHomeworkList.pages)"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- </div>
- </div>
- </div>
- <!-- 分页显示 -->
- <!-- 数据监控分页 -->
- <div v-if="this.Activeindex == false">
- <el-pagination
- background
- @size-change="handleSizeChange"
- @current-change="pageChange"
- :page-sizes="[10, 20, 30, 40]"
- layout="total, prev, pager, next"
- :total="parseInt(monitorTeacherList.pages)"
- :hide-on-single-page="true"
- :current-page.sync="currentPage"
- ></el-pagination>
- <div style="clear:both;"></div>
- </div>
- <!-- 数据监控分页匹配知识点老师 -->
- <div v-if="this.Activeindex == true">
- <el-pagination
- background
- @size-change="WatchhandleSizeChange"
- @current-change="WatchpageChange"
- :page-sizes="[10, 20, 30, 40]"
- layout="total, prev, pager, next"
- :total="parseInt(monitorTeacherList.pages)"
- :hide-on-single-page="true"
- :current-page.sync="currentPage"
- ></el-pagination>
- <div style="clear:both;"></div>
- </div>
- <div>
- <el-button @click="routerback()" type="success" round>返回</el-button>
- </div>
- </el-col>
- </el-row>
- </el-col>
- <!--当天-->
- <el-col :span="18" class="main" v-if="modelindex == 1">
- <el-row :gutter="20" class="main-header">
- <el-col :span="24" :offset="0">
- <el-col :span="7" :offset="0">
- <div
- @click="DayhandApor()"
- :class="{Apporvalactive:DayActiveindex == false,ApporStyles:true}"
- >批改老师</div>
- <div
- @click="DayAutoApor()"
- :class="{Apporvalactive:DayActiveindex == true,ApporStyles:true}"
- >匹配知识点老师</div>
- </el-col>
- <el-col :span="17" :offset="0">
- <div class="main-header-num">
- <div class="teach-time">
- <div class="teach-block">
- <div class="Dayteach-Allot">
- <input
- type="text"
- placeholder="请输入老师名字"
- v-model="filters1.inputValue"
- class="Dayinput-with-Allot"
- />
- <span v-if="this.DayActiveindex == false" @click="InfoWatchDay" class="DaySeachIcon el-icon-search"></span>
- <span v-if="this.DayActiveindex == true" @click="InfoKonwTeacherDayApprvalList" class="DaySeachIcon el-icon-search"></span>
- </div>
- </div>
- <div class="teach-block">
- <el-date-picker
- @change="InfoWatchDayDatas"
- v-model="filters1.MaxtimeValue"
- value-format="yyyy-MM-dd"
- type="date"
- placeholder="选择日期"
- :picker-options="pickerOptions0"
- >></el-date-picker>
- </div>
- </div>
- </div>
- </el-col>
- </el-col>
- <el-col :span="8" :offset="0">
- <div class="main-header-item">
- 今日报错总次数:
- <span style="color:red;">{{DayTeacherList.wrongCount}}次</span>
- </div>
- </el-col>
- </el-row>
- <el-row :gutter="20" class="main-header">
- <el-col :span="24">
- <div
- class="table"
- v-if="DayTeacherList.list !== undefined && DayTeacherList.list.length ==0"
- >暂无数据!</div>
- <div
- class="table"
- v-if="DayTeacherList.list !== undefined && DayTeacherList.list.length >0"
- >
- <div class="table-head">
- <div>头像</div>
- <div>姓名</div>
- <div>被报错</div>
- <div>纠正次数</div>
- <div>科目</div>
- <div v-if="this.DayActiveindex == false">批改有效总张数</div>
- <div v-if="this.DayActiveindex == true">匹配总张数</div>
- <div>正确率</div>
- <div v-if="this.DayActiveindex == false" style="width:240px;">平均批改时间</div>
- <div v-if="this.DayActiveindex == true" style="width:240px;">平均匹配时间</div>
- <div>出勤</div>
- </div>
- <div class="tr" v-for="(v, k) of DayTeacherList.list" :key="k">
- <div class="tr-first" :class="{BgcColor:k%2 !== 1}">
- <div>
- <img :src="BASE_URL + v.imgUrl" alt v-if="v.imgUrl" class="table-img" />
- <img src="../../assets/img/attt.png" alt v-if="!v.imgUrl" class="table-img" />
- </div>
- <div>{{v.name}}</div>
- <div v-if="v.wrongCount == 0">{{v.wrongCount}}次</div>
- <div style="color:red;" v-if="v.wrongCount > 0">{{v.wrongCount}}次</div>
- <div class="tr-active">{{v.correctNums}}次</div>
- <div class="tr-active">{{v.subject}}</div>
- <div>{{v.homeworkPicCount}}/张</div>
- <div>{{v.accuracyRate}}</div>
- <div style="width:240px;">{{v.avgTime}}</div>
- <div>{{v.attendance}}</div>
- <!-- <div v-if="v.attendance == 正常">{{v.attendance}}</div>
- <div style="color:#52cc60;" v-if="v.attendance == 未出勤">{{v.attendance}}</div>-->
- </div>
- </div>
- </div>
- <!-- 数据监控当天分页匹配知识点老师 -->
- <div v-if="this.DayActiveindex == true">
- <el-pagination
- background
- @size-change="handleSizeDayChange1"
- @current-change="pageDayChange1"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(DayTeacherList.pages)"
- :current-page.sync="currentPage"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- <!-- 分页显示 -->
- <div v-if="this.DayActiveindex == false">
- <el-pagination
- background
- @size-change="handleSizeChange1"
- @current-change="pageChange1"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(DayTeacherList.pages)"
- :current-page.sync="currentPage"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- <!-- <div style="float:right;margin-left:15px;">
- <el-button @click="myVisible = false" size="small">取 消</el-button>
- <el-button type="primary" size="small" @click="submit">确定</el-button>
- </div>-->
- <div style="clear:both;"></div>
- <div>
- <el-button @click="routerback()" type="success" round>返回</el-button>
- </div>
- </el-col>
- </el-row>
- </el-col>
- <!--当月-->
- <el-col :span="18" class="main" v-if="modelindex == 2">
- <el-row :gutter="20" class="main-header">
- <el-col :span="24" :offset="0">
- <el-col :span="7" :offset="0">
- <div
- @click="MonthhandApor()"
- :class="{Apporvalactive:MonthActiveindex == false,ApporStyles:true}"
- >批改老师</div>
- <div
- @click="MonthAutoApor()"
- :class="{Apporvalactive:MonthActiveindex == true,ApporStyles:true}"
- >匹配知识点老师</div>
- </el-col>
- <el-col :span="14" :offset="0">
- <div class="main-header-numNew">
- <div class="teach-time">
- <div class="teach-block">
- <div class="Dayteach-Allot">
- <input
- type="text"
- placeholder="请输入老师名字"
- v-model="filters2.inputValue"
- class="Dayinput-with-Allot"
- />
- <span v-if="this.MonthActiveindex == false" @click="InfoWatchMoth" class="DaySeachIcon el-icon-search"></span>
- <span v-if="this.MonthActiveindex == true" @click="InfoKonwTeacherMonthApprvalList" class="DaySeachIcon el-icon-search"></span>
- </div>
- </div>
- <div class="teach-block">
- <el-date-picker
- @change="InfoWatchMonthDatas"
- v-model="filters2.MaxtimeValue"
- type="month"
- value-format="yyyy-MM"
- placeholder="选择月"
- :picker-options="pickerOptions0"
- ></el-date-picker>
- </div>
- </div>
- </div>
- </el-col>
- </el-col>
- </el-row>
- <el-row :gutter="20" class="main-header">
- <el-col :span="4" :offset="0">
- <div class="main-header-item">
- 当月报错总次数:
- <span style="color:red;">{{MothTeacherList.totalWrongCount}}次</span>
- </div>
- </el-col>
- <el-col :span="4" :offset="0">
- <div class="main-header-item">月出勤率:{{MothTeacherList.totalAttendanceRate}}</div>
- </el-col>
- <!-- <el-col :span="4">
- <div class="main-header-item" >批改总份数:{{MothTeacherList.totalHomeworkCount}}</div>
- </el-col>-->
- <el-col :span="4">
- <div
- class="main-header-item"
- v-if="this.MonthActiveindex == false"
- >批改总张数:{{MothTeacherList.totalHomeworkPicCount}}</div>
- <div
- class="main-header-item"
- v-if="this.MonthActiveindex == true"
- >匹配总张数:{{MothTeacherList.totalHomeworkPicCount}}</div>
- </el-col>
- <el-col :span="4">
- <div
- class="main-header-item"
- v-if="this.MonthActiveindex == false"
- >批改平均时间:{{MothTeacherList.totalAvgTime}}</div>
- <div
- class="main-header-item"
- v-if="this.MonthActiveindex == true"
- >匹配平均时间:{{MothTeacherList.totalAvgTime}}</div>
- </el-col>
- <el-col :span="4">
- <div v-if="this.MonthActiveindex == false" class="main-header-item">家长满意度:{{MothTeacherList.totalSatisfactionDegree}}</div>
- </el-col>
- <el-col :span="4">
- <div class="main-header-item">正确率:{{MothTeacherList.totalAccuracyRate}}</div>
- </el-col>
- </el-row>
- <el-row :gutter="20" class="main-header">
- <el-col :span="24">
- <div
- class="table"
- v-if="MothTeacherList.list !== undefined && MothTeacherList.list.length ==0"
- >暂无数据!</div>
- <div
- class="table"
- v-if="MothTeacherList.list !== undefined && MothTeacherList.list.length >0"
- >
- <div class="table-head">
- <div>头像</div>
- <div>姓名</div>
- <div>被报错</div>
- <div>纠正次数</div>
- <div>科目</div>
- <div v-if="this.MonthActiveindex == false">批改总张数</div>
- <div v-if="this.MonthActiveindex == true">匹配总张数</div>
- <div>正确率</div>
- <div v-if="this.MonthActiveindex == false" style="width:240px;">平均批改时间</div>
- <div v-if="this.MonthActiveindex == true" style="width:240px;">平均匹配时间</div>
- <div>出勤率</div>
- </div>
- <div class="tr" v-for="(v, k) of MothTeacherList.list" :key="k">
- <div class="tr-first" :class="{BgcColor:k%2 !== 1}">
- <div>
- <img :src="BASE_URL + v.imgUrl" alt v-if="v.imgUrl" class="table-img" />
- <img src="../../assets/img/attt.png" alt v-if="!v.imgUrl" class="table-img" />
- </div>
- <div>{{v.name}}</div>
- <div v-if="v.wrongCount == 0">{{v.wrongCount}}次</div>
- <div style="color:red;" v-if="v.wrongCount > 0">{{v.wrongCount}}次</div>
- <div class="tr-active">{{v.correctNums}}次</div>
- <div class="tr-active">{{v.subject}}</div>
- <div>{{v.homeworkPicCount}}/张</div>
- <div>{{v.accuracyRate}}</div>
- <div style="width:240px;">{{v.avgTime}}</div>
- <div>{{v.attendanceRate}}</div>
- </div>
- </div>
- </div>
- <!-- 分页显示 -->
- <div v-if="this.MonthActiveindex == false">
- <el-pagination
- background
- @size-change="handleSizeChange2"
- @current-change="pageChange2"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(MothTeacherList.pages)"
- :current-page.sync="currentPage"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- <!-- 知识点匹配 -->
- <div v-if="this.MonthActiveindex == true">
- <el-pagination
- background
- @size-change="handleSizeMonthChange2"
- @current-change="pageMonthChange2"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(MothTeacherList.pages)"
- :current-page.sync="currentPage"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- <div>
- <el-button @click="routerback()" type="success" round>返回</el-button>
- </div>
- </el-col>
- </el-row>
- </el-col>
- <!-- 分页显示 -->
- </el-row>
- <!--可分配老师-->
- <div class="showModel" @click="allShowModel(1)" v-if="hiddenModel"></div>
- <div class="model" style="width:50%; top:5%;" v-if="hiddenModel">
- <div class="model-text">
- <div class="model-text-head">
- <div>可分配老师</div>
- <div class="teach-Allot">
- <input
- type="text"
- placeholder="请输入老师名字"
- v-model="inputValueAllot"
- class="input-with-Allot"
- />
- <span @click="SearchTeacherAllot" class="SeachIcon el-icon-search"></span>
- </div>
- <div>{{allotList.Allotgarde}}{{allotList.Allotsubjct}}</div>
- </div>
- <div v-show="this.inputValueAllot =='' &&TeacherAllotList.list.length ==0">
- <img src="../../assets/img/NoTeacherAllot (1).png" alt />
- <div style="display:block; margin-top:20px;">暂无可分配老师!</div>
- </div>
- <div v-show="this.inputValueAllot !=='' && TeacherAllotList.list.length ==0">
- <img src="../../assets/img/SEARCH (1).png" alt />
- <div style="display:block; margin-top:20px;">搜索不到老师!</div>
- </div>
- <div
- class="model-itemss"
- style="margin:10px;"
- v-for="(v, k) in TeacherAllotList.list"
- :key="k"
- >
- <div class="model-items-left">
- <div class="model-items-left-top">
- <div>
- <img
- :src="BASE_URL + v.imgUrl"
- v-if="v.imgUrl"
- alt
- class="model-items-left-top-img"
- />
- <img
- src="../../assets/img/attt.png"
- v-if="!v.imgUrl"
- alt
- class="model-items-left-top-img"
- />
- <div class="teach-style">
- <div class="teach-style-name">{{v.name}}</div>
- <div class="model-items-left-top-number">等待张数:{{v.waitCount}}</div>
- </div>
- </div>
- <div>
- <el-button v-show="v.type && v.type === 1" disabled type="info">已分配</el-button>
- <el-button
- v-show="!v.type || v.type !== 1"
- @click="GOtoTeacherAllot(v,k)"
- type="success"
- >分配</el-button>
- </div>
- </div>
- </div>
- </div>
- <el-pagination
- background
- @size-change="handleSizeChange4"
- @current-change="pageChange4"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(TeacherAllotList.pages)"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- </div>
- <!-- 无未批改作业 v-if="monitorTeacherList.unCorrectCount==0"-->
- <div class="no-homework" id="noHomework">
- <div>无可分配作业</div>
- <img src="../../assets/img/wu_fen_pei_zuo_ye.png" alt />
- </div>
- <!--所有未批改作业-->
- <div class="showModel" @click="allShowModel(2)" v-if="isPigai"></div>
- <div class="model" style="width:50%;top:10%;" v-if="isPigai">
- <div class="model-text">
- <div class="model-text-head">
- <div v-if="this.Activeindex == false">所有未批改作业</div>
- <div v-if="this.Activeindex == true">所有未匹配作业</div>
- <div>
- <img src="../../assets/img/del@2x.png" alt @click="allShowModel(2)" />
- </div>
- </div>
- <div>
- <!-- UnallotHomeworkInfo -->
- <!-- <div class="tr-setNo" v-if="UnallotHomeworkInfo.list.length == 0">
- 暂无数据!
- </div>-->
- <div class="tr-set table-heads1">
- <div class="tr-secon width120">学生</div>
- <div class="tr-secon width140" style="text-align:center margin-left:10px;">等待时长</div>
- <div class="tr-secon tr-sw80">科目</div>
- <div class="tr-secon tr-sw80">年级</div>
- <div class="tr-secon width140" v-if="this.Activeindex == false">未批改老师</div>
- <div class="tr-secon width140" v-if="this.Activeindex == true">未匹配老师</div>
- </div>
- <div class="tr-set" v-for="(v, k) of UnallotHomeworkInfo.list" :key="k">
- <div class="tr-secon">{{k+1}}</div>
- <div class="tr-secon width120">
- <span>{{v.name}}</span>
- </div>
- <div class="tr-secon width140">{{v.spendTime}}</div>
- <div class="tr-secon tr-sw80">{{v.subject}}</div>
- <div class="tr-secon tr-sw80">{{v.grade}}</div>
- <div v-if="v.status === 1" class="tr-secon">
- <span v-if="this.Activeindex == false">未批改</span>
- <span v-if="this.Activeindex == true">未匹配</span>
- </div>
- <div v-if="v.status === 2" class="tr-secon">
- <span v-if="this.Activeindex == false">批改中</span>
- <span v-if="this.Activeindex == true">匹配中</span>
- </div>
- <div v-if="v.status === 3" class="tr-secon">
- <span v-if="this.Activeindex == false">已批改</span>
- <span v-if="this.Activeindex == true">已匹配</span>
- </div>
- <div class="tr-secon width140">{{v.teacherName}}</div>
- <div class="tr-s width400">
- <!-- <el-button type="" plain @click="ToAppovalOline(v)">去批改</el-button> -->
- <el-button type="success" @click="isShow(v,9)">去分配</el-button>
- </div>
- </div>
- <div v-if="this.Activeindex == false">
- <el-pagination
- background
- @size-change="handleSizeChange7"
- @current-change="pageChange7"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(UnallotHomeworkInfo.pages)"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- <div v-if="this.Activeindex == true">
- <el-pagination
- background
- @size-change="WatchApporvalhandleSizeChange7"
- @current-change="WatchApporvalpageChange7"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(UnallotHomeworkInfo.pages)"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- </div>
- </div>
- </div>
- <!-- 老师详情弹框 -->
- <div class="showModel" @click="allShowModel(3)" v-if="ModelAppor"></div>
- <div class="model" style="width:40%;left: 32.5%" v-if="ModelAppor">
- <div class="model-text">
- <div class="model-manager">
- <div v-if="this.Activeindex == false">批改老师</div>
- <div v-if="this.Activeindex == true">匹配知识点老师</div>
- <div>
- <img src="../../assets/img/del@2x.png" alt @click="allShowModel(3)" />
- </div>
- </div>
- <div class="model-items">
- <div class="model-items-first">
- <div>
- <img
- :src="BASE_URL + GetTeacherDetail.imgUrl"
- v-if="GetTeacherDetail.imgUrl"
- alt
- class="model-items-first-img"
- />
- <img
- src="../../assets/img/attt.png"
- v-if="!GetTeacherDetail.imgUrl"
- alt
- class="model-items-first-img"
- />
- <div class="model-items-first-left" style="display:inline-block">
- <!-- <div class="Onlinename">李小花</div>
- <div class="Online">(在线)</div>
- <div class="model-items-first-left-down">南方科技大学</div>-->
- <div class="Onlinename">{{GetTeacherDetail.name}}</div>
- <div v-if="GetTeacherDetail.status ===1" class="Online">(在线)</div>
- <div v-if="GetTeacherDetail.status ===0" class="Online">(离线)</div>
- <div class="model-items-first-left-down">{{GetTeacherDetail.school}}</div>
- </div>
- <div
- class="closeAnOpenId"
- style="display:inline-block"
- v-if="this.TeacherIdStatus ==1 || 2 && this.TeacherIdStatus !==3"
- >
- <div class="closeTeacherID" @click="isShow(GetTeacherDetail,6)">
- <span class="el-icon-close">封号</span>
- </div>
- <div v-if="this.Activeindex == false" class="UpTeacherID" @click="isShow(GetTeacherDetail,5)">
- <span class="el-icon-upload2">升级</span>
- </div>
- </div>
- <div style="display:inline-block" v-if="this.TeacherIdStatus ==3">
- <div class="UpTeacherID" @click="isShow(GetTeacherDetail,7)">
- <span class="el-icon-unlock">解封</span>
- </div>
- </div>
- </div>
- </div>
- <div class="model-items-other model-active" v-if="this.Activeindex == false">批改科目 : {{GetTeacherDetail.subject}}</div>
- <div class="model-items-other" v-if="this.Activeindex == true">批改科目 : {{GetTeacherDetail.subject}}</div>
- <div class="model-items-other" v-if="this.Activeindex == false">
- 批改年级 :
- <span v-for="(v, k) of arrGrade" :key="k">{{v}},</span>
- </div>
- <div class="model-items-other model-active">
- 可批改时间:
- <div class="buttonAppoval">
- <div class="TeacherApporTime" v-for="(v, k) of arrPeriod" v-show="v" :key="k">
- <span>{{v}}</span>
- </div>
- </div>
- </div>
- <div class="model-items-other">手机号 : {{GetTeacherDetail.phone}}</div>
- <div class="model-items-other model-active">上次登录时间 : {{GetTeacherDetail.lastOnlineTime}}</div>
- <div class="model-items-other" v-if="this.Activeindex == false">批改正确率 : {{GetTeacherDetail.accuracyRate}}</div>
- <div class="model-items-other" v-if="this.Activeindex == true">匹配正确率 : {{GetTeacherDetail.accuracyRate}}</div>
- <div class="model-items-other model-active">
- 被报错总次数 :
- <span style="color:red;">{{GetTeacherDetail.wrongCount}}次</span>
- </div>
- <div class="model-items-other">纠正次数 : {{GetTeacherDetail.correctNums}}次</div>
- <div
- class="model-items-other model-active" v-if="this.Activeindex == false"
- >家长满意度 : {{GetTeacherDetail.satisfactionDegree}}</div>
- <div style="display:inline-block">
- <div class="UpTeacherID" style="width:80px" @click="isShow(GetTeacherDetail,8)">
- <span class="el-icon-user-solid">重新分配组</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 学生详情弹框 -->
- <div class="showModel" @click="allShowModel(4)" v-if="ModelStudet"></div>
- <div class="model" style="width:35%;left:32.5%" v-if="ModelStudet">
- <div class="model-text">
- <div class="model-manager">
- <div>学生详情</div>
- <div>
- <img src="../../assets/img/del@2x.png" alt @click="allShowModel(4)" />
- </div>
- </div>
- <div class="model-items">
- <div class="model-items-first">
- <div>
- <img :src="BASE_URL + GetStudentDetail.imgUrl" alt class="model-items-first-img" />
- <img
- src="../../assets/img/attt.png"
- v-if="!GetStudentDetail.imgUrl"
- alt
- class="model-items-first-img"
- />
- <div class="model-items-first-left">
- <div class="Onlinename">{{GetStudentDetail.name}}</div>
- <div class="model-items-first-left-down">{{GetStudentDetail.school}}</div>
- </div>
- </div>
- </div>
- <div class="model-items-other model-active">所读年级 : {{GetStudentDetail.grade}}</div>
- <div class="model-items-other">性别 : {{GetStudentDetail.sex==1?'男':'女'}}</div>
- <div class="model-items-other model-active">联系方式 : {{GetStudentDetail.phone}}</div>
- </div>
- </div>
- </div>
- <!-- 升级校区管理员弹框 -->
- <div class="showModel" @click="allShowModel(5)" v-if="rePush"></div>
- <div class="modelspec" v-if="rePush">
- <div class="model-text">
- <div class="model-text-items">
- <div>
- <img
- src="../../assets/img/del@2x.png"
- alt
- @click="allShowModel(5)"
- class="model-text-items-close"
- />
- </div>
- <div>是否要将{{TeacherName}}老师升级为校区管理员?</div>
- </div>
- <div class="model-btn">
- <div class="model-btn-items main-gay" @click="RepushTeacherAcess()">是</div>
- <div class="model-btn-items model-grdeen" @click="allShowModel(5)">否</div>
- </div>
- </div>
- </div>
- <!-- 封号校区管理员弹框 -->
- <div class="showModel" @click="allShowModel(6)" v-if="closeID"></div>
- <div class="modelspec" v-if="closeID">
- <div class="model-text">
- <div class="model-text-items">
- <div>
- <img
- src="../../assets/img/del@2x.png"
- alt
- @click="allShowModel(6)"
- class="model-text-items-close"
- />
- </div>
- <div>是否要对{{TeacherName}}老师进行封号?</div>
- </div>
- <div class="model-btn">
- <div class="model-btn-items main-gay" @click="CloseTeacherId()">是</div>
- <div class="model-btn-items model-grdeen" @click="allShowModel(6)">否</div>
- </div>
- </div>
- </div>
- <!-- 解封校区管理员弹框 -->
- <div class="showModel" @click="allShowModel(7)" v-if="OpenID"></div>
- <div class="modelspec" v-if="OpenID">
- <div class="model-text">
- <div class="model-text-items">
- <div>
- <img
- src="../../assets/img/del@2x.png"
- alt
- @click="allShowModel(7)"
- class="model-text-items-close"
- />
- </div>
- <div>是否要对{{TeacherName}}老师进行解封?</div>
- </div>
- <div class="model-btn">
- <div class="model-btn-items main-gay" @click="OPenTeacherId()">是</div>
- <div class="model-btn-items model-grdeen" @click="allShowModel(7)">否</div>
- </div>
- </div>
- </div>
- <!--可分配小组管理员列表弹框-->
- <div class="showModel" @click="allShowModel(8)" v-if="AllotManagerModel"></div>
- <div class="model" style="width:45%;top:5%;" v-if="AllotManagerModel">
- <div class="model-text">
- <div class="model-manager">
- <div>可分配小组</div>
- <div>
- <img src="../../assets/img/del@2x.png" alt @click="allShowModel(8)" />
- </div>
- </div>
- <div class="allocation-items" v-for="(v, k) in getAllotManagerList.list" :key="k">
- <div class="model-items-left">
- <div class="model-items-left-top">
- <div>
- <img
- :src="BASE_URL + v.imgUrl"
- v-if="v.imgUrl"
- alt
- class="model-items-left-top-img"
- />
- <img
- src="../../assets/img/attt.png"
- v-if="!v.imgUrl"
- alt
- class="model-items-left-top-img"
- />
- <div style="display: inline-block;text-align: left;">
- <div class="teach-style-name">{{v.name}}</div>
- <div class="model-items-left-top-number">老师数量:{{v.teacherCount}}</div>
- </div>
- </div>
- <div>
- <el-button v-show="v.type && v.type === 1" disabled type="info">已分配</el-button>
- <el-button
- v-show="!v.type || v.type !== 1"
- @click="GOAllotTeacherToManager(v,k)"
- type="success"
- >分配</el-button>
- </div>
- </div>
- </div>
- </div>
- <el-pagination
- background
- @size-change="handleSizeChange5"
- @current-change="pageChange5"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(getAllotManagerList.pages)"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- </div>
- <!--所有未批改可分配老师列表弹框-->
- <div class="showModel" @click="allShowModel(9)" v-if="NoAllotManagerModel"></div>
- <div class="model" style="width:45%; top:5%;" v-if="NoAllotManagerModel">
- <div class="model-text">
- <div class="model-manager">
- <div>作业可分配老师</div>
- <div class="teach-Allot">
- <input
- type="text"
- placeholder="请输入老师名字"
- v-model="AllinputValueAllot"
- class="input-with-Allot"
- />
- <span @click="SearchNoapporvalTeacherAllot" class="SeachIcon el-icon-search"></span>
- </div>
- <div>
- <img src="../../assets/img/del@2x.png" alt @click="allShowModel(9)" />
- </div>
- </div>
- <div v-show="this.AllinputValueAllot =='' && TeacherAllotList.list.length ==0">
- <img src="../../assets/img/NoTeacherAllot (1).png" alt />
- <div style="display:block; margin-top:20px;">暂无可分配老师!</div>
- </div>
- <div v-show="this.AllinputValueAllot !=='' && TeacherAllotList.list.length ==0">
- <img src="../../assets/img/SEARCH (1).png" alt />
- <div style="display:block; margin-top:20px;">搜索不到老师!</div>
- </div>
- <div class="allocation-items" v-for="(v, k) in TeacherAllotList.list" :key="k">
- <div class="model-items-left">
- <div class="model-items-left-top">
- <div>
- <img
- :src="BASE_URL + v.imgUrl"
- v-if="v.imgUrl"
- alt
- class="model-items-left-top-img"
- />
- <img
- src="../../assets/img/attt.png"
- v-if="!v.imgUrl"
- alt
- class="model-items-left-top-img"
- />
- <div class="teach-style">
- <div class="teach-style-name">{{v.name}}</div>
- <div class="model-items-left-top-number">等待张数:{{v.waitCount}}</div>
- </div>
- </div>
- <div>
- <el-button v-show="v.type && v.type === 1" disabled type="info">已分配</el-button>
- <el-button
- v-show="!v.type || v.type !== 1"
- @click="GOtoTeacherAllotAppovar(v,k)"
- type="success"
- >分配</el-button>
- </div>
- </div>
- </div>
- </div>
- <el-pagination
- background
- @size-change="handleSizeChange6"
- @current-change="pageChange6"
- :page-sizes="[10]"
- layout="total, prev, pager, next"
- :total="parseInt(TeacherAllotList.pages)"
- :hide-on-single-page="true"
- ></el-pagination>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { mapGetters, mapActions } from "vuex";
- import { IMG_BASE_URL, APPOR_BASE_URL } from "@/ImgConfig";
- export default {
- components: {},
- name: "actvResolveLabel",
- props: {},
- data() {
- return {
- unionid: localStorage.getItem("unionid"),
- accessToken: localStorage.getItem("accessToken"), //token
- managerId: "", // 超级管理员登陆ID
- BASE_URL: IMG_BASE_URL,
- APPOR_BASE_URL: APPOR_BASE_URL,
- isDownindex: "",
- currentPage: 1,
- modelindex: 0,
- TeacherIds: "", //封号,升级,解封
- teacherClickId: "",
- TeacherIdStatus: "",
- TeacherName: "", //封号,升级,解封
- values: [],
- newDataDay: new Date(),
- arrGrade: [],
- Activeindex: false,
- DayActiveindex: false,
- MonthActiveindex: false,
- OpenID: false, //解封校区管理员弹框
- closeID: false, //封号校区管理员弹框
- rePush: false, //升级校区管理员弹框
- hiddenModel: false, //分配老师弹框
- isPigai: false, //未批改作业弹框
- ModelAppor: false, //批改老师详情信息弹框
- AllotManagerModel: false, //可分配小组管理员列表弹框
- NoAllotManagerModel: false, //所有未批改可分配老师列表弹框
- ModelStudet: false, //学生详情弹框
- isDown: false,
- gardeListDown: false,
- gardeListDownage: false,
- selecttitlepag: "选年级",
- selecttitleage: "选科目",
- teachList: [],
- TeacherType: 8,
- TeacherCheackStyle: 2,
- TeacherIdType: 8,
- pickerOptions0: {
- disabledDate(time) {
- return time.getTime() > Date.now() - 8.64e6;
- }
- },
- options: [
- {
- value: "0",
- label: "1~2年级",
- str: "一年级,二年级"
- },
- {
- value: "1",
- label: "3~4年级",
- str: "三年级,四年级"
- },
- {
- value: "2",
- label: "5~6年级",
- str: "五年级,六年级"
- },
- {
- value: "3",
- label: "全部"
- // str:'全部'
- }
- ],
- grades: [
- {
- value: "0",
- label: "语文",
- str: "语文"
- },
- {
- value: "1",
- label: "数学",
- str: "数学"
- },
- {
- value: "2",
- label: "英语",
- str: "英语"
- },
- {
- value: "3",
- label: "全部"
- // str:""
- }
- ],
- ItemList: [
- {
- text: "数据监控"
- },
- {
- text: "当天"
- },
- {
- text: "当月"
- }
- ],
- filters: {
- //超级管理员的当天数据
- // 排序
- MaxtimeValue: "",
- OptionsValue: "",
- gradesValue: "",
- inputValue: "",
- pageNo: 1,
- pageSize: 10,
- count: 100,
- orderField: "",
- orderAD: "",
- managerId: ""
- },
- filters1: {
- //超级管理员的当天数据
- // 排序
- MaxtimeValue: this.dayFormatDate(),
- OptionsValue: "",
- gradesValue: "",
- inputValue: "",
- pageNo: 1,
- pageSize: 10,
- count: 0,
- orderField: "",
- orderAD: ""
- },
- filters2: {
- //超级管理员的当月数据
- // 排序
- MaxtimeValue: this.monthFormatDate(),
- OptionsValue: "",
- gradesValue: "",
- inputValue: "",
- pageNo: 1,
- pageSize: 10,
- count: 0,
- orderField: "",
- orderAD: ""
- },
- filters3: {
- //超级管理员查看学员列表
- // 排序
- MaxtimeValue: "",
- OptionsValue: "",
- gradesValue: "",
- inputValue: "",
- pageNo: 1,
- pageSize: 10,
- count: 0,
- orderField: "",
- orderAD: ""
- },
- homeworkLIst: {
- pageNo: 1,
- pageSize: 10,
- teacherId: ""
- },
- allotList: {
- Allotgarde: "",
- Allotsubjct: "",
- pageNo: 1,
- pageSize: 10,
- homeworkId: ""
- },
- CurrthomeworkIdStatus: "",
- inputValueAllot: "",
- AllinputValueAllot: "",
- allNoapprovalList: {
- Allotgarde: "",
- Allotsubjct: "",
- pageNo: 1,
- pageSize: 10,
- homeworkId: "",
- teacherId: ""
- },
- AllotManagerList: {
- pageNo: 1,
- pageSize: 10
- },
- AllotButton: ""
- };
- },
- created() {
- const managerId = this.$route.query.managerId;
- this.managerId = managerId;
- },
- computed: {
- ...mapGetters([
- "getUser",
- "monitorTeacherList",
- "TeacherHomeworkList",
- "TeacherAllotList",
- "TeacherAllotstatus",
- "DayTeacherList",
- "MothTeacherList",
- "UnallotHomeworkInfo",
- "GetTeacherDetail",
- "GetStudentDetail",
- "getTeacherIdStatus",
- "getAllotManagerList",
- "BeforetoTeacherstatues",
- "InfoTeacherstatues",
- "ApporingTeacherstatues",
- "currtHomeworkStatus"
- ])
- },
- methods: {
- ...mapActions(["setUser"]),
- // 点击下拉
- dropDown(v, k) {
- this.isDown = !this.isDown;
- this.isDownindex = k;
- this.TeacherHomework(v);
- },
- // // 分页
- // pageChange(val) {
- // this.filters.pageNo = val;
- // this.itemListReshow();
- // },
- // changeDateSlot(dateSlot) {
- // if (dateSlot) {
- // this.filters.startDate = dateSlot[0];
- // this.filters.endDate = dateSlot[1];
- // } else {
- // this.filters.startDate = null;
- // this.filters.endDate = null;
- // }
- // },
- // 获取校区管理员监控数据
- async InfoWatch() {
- this.isDown = false;
- this.$store.dispatch("InfoWatch", {
- grade: this.filters.OptionsValue,
- subject: this.filters.gradesValue,
- teacherName: this.filters.inputValue,
- maxCreateTime: "",
- pageNo: this.filters.pageNo,
- pageSize: this.filters.pageSize,
- managerId: this.managerId || ""
- });
- // this.monitorTeacherList.list = (res => {
- // const d = [];
- // for (let i in res) {
- // d.push( {
- // isShow:false,
- // bannedTime:res[i].bannedTime,
- // imgUrl:res[i].imgUrl,
- // maxWaitTime:res[i].maxWaitTime,
- // name:res[i].name,
- // role:res[i].role,
- // status:res[i].status,
- // respSpeed:res[i].respSpeed,
- // teacherId:res[i].teacherId,
- // totalCorrectTime:res[i].totalCorrectTime,
- // waitCount:res[i].waitCount,
- // })
- // }
- // return d
- // })(this.monitorTeacherList.list)
- // this.teachList = this.monitorTeacherList.list;
- // console.log(this.teachList)
- },
- //
- // 获取校区管理员当天数据条件筛选
- async SearchInfoWatchDay() {
- this.filters1.pageNo = 1;
- this.InfoWatchDay();
- },
- async timeInfoWatchDay() {
- this.filters1.pageNo = 1;
- this.InfoWatchDay();
- },
- // 获取校区管理员当天数据
- async InfoWatchDay() {
- this.$store.dispatch("InfoWatchDay", {
- grade: this.filters.OptionsValue,
- subject: this.filters.gradesValue,
- teacherName: this.filters1.inputValue,
- maxCreateTime: "",
- oneDay: this.filters1.MaxtimeValue,
- pageNo: this.filters1.pageNo,
- pageSize: this.filters1.pageSize,
- managerId: this.managerId || ""
- });
- },
- // 获取校区管理员当月数据条件筛选
- async SearchInfoWatchMoth() {
- this.filters2.pageNo = 1;
- this.InfoWatchMoth();
- },
- async TimeInfoWatchMoth() {
- this.filters2.pageNo = 1;
- this.InfoWatchMoth();
- },
- // 获取校区管理员当月数据
- async InfoWatchMoth() {
- this.$store.dispatch("InfoWatchMoth", {
- grade: this.filters.OptionsValue,
- subject: this.filters.gradesValue,
- teacherName: this.filters2.inputValue,
- maxCreateTime: "",
- oneMonth: this.filters2.MaxtimeValue,
- pageNo: this.filters2.pageNo,
- pageSize: this.filters2.pageSize,
- managerId: this.managerId || ""
- });
- },
- // 查看老师批改作业列表
- async TeacherHomework(v) {
- this.homeworkLIst.teacherId = v.teacherId;
- this.$store.dispatch("TeacherHomeworkList", {
- teacherId: v.teacherId,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: 1,
- pageSize: this.homeworkLIst.pageSize
- });
- },
- // 分页查看老师批改作业列表
- async TeacherHomeworkfy() {
- this.$store.dispatch("TeacherHomeworkList", {
- teacherId: this.homeworkLIst.teacherId,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.homeworkLIst.pageNo,
- pageSize: this.homeworkLIst.pageSize
- });
- },
- // 可分配老师列表
- async TeacherAllot(v) {
- this.$store.dispatch("TeacherAllotList", {
- grade: v.grade,
- subject: v.subject,
- homeworkId: v.homeworkId,
- originTeacherId: this.homeworkLIst.teacherId,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.allotList.pageNo,
- pageSize: this.allotList.pageSize,
- name: this.inputValueAllot,
- type: this.TeacherType
- });
- },
- // 搜索可分配老师列表
- async SearchTeacherAllot() {
- this.$store.dispatch("TeacherAllotList", {
- grade: this.allotList.Allotgarde,
- subject: this.allotList.Allotsubjct,
- homeworkId: this.allotList.homeworkId,
- originTeacherId: this.homeworkLIst.teacherId,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.allotList.pageNo,
- pageSize: this.allotList.pageSize,
- name: this.inputValueAllot,
- type: this.TeacherType
- });
- },
- // 可分配老师列表分页
- async TeacherAllotfy() {
- this.$store.dispatch("TeacherAllotList", {
- grade: this.allotList.Allotgarde,
- subject: this.allotList.Allotsubjct,
- homeworkId: this.allotList.homeworkId,
- maxCreateTime: this.filters.MaxtimeValue,
- originTeacherId: this.homeworkLIst.teacherId,
- pageNo: this.allotList.pageNo,
- pageSize: this.allotList.pageSize,
- name: this.inputValueAllot,
- type: this.TeacherType
- });
- },
- // 未批改作业列表列表
- async UnallotHomework() {
- this.$store.dispatch("UnallotHomeworkList", {
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.homeworkLIst.pageNo,
- pageSize: this.homeworkLIst.pageSize,
- managerId: this.managerId
- });
- },
- // 未匹配作业列表列表
- async unmatchHomework() {
- this.$store.dispatch("UnmatchHomeworkList", {
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.homeworkLIst.pageNo,
- pageSize: this.homeworkLIst.pageSize,
- managerId: this.managerId
- });
- },
- // 未批改作业可分配老师列表
- async NoapporvalTeacherAllot(v) {
- this.$store.dispatch("TeacherAllotList", {
- grade: v.grade || this.allNoapprovalList.Allotgarde,
- subject: v.subject || this.allNoapprovalList.Allotsubjct,
- homeworkId: v.homeworkId,
- originTeacherId: v.teacherId,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: 1,
- pageSize: this.allNoapprovalList.pageSize,
- name: this.AllinputValueAllot,
- type: this.TeacherType
- });
- },
- // 查询搜索未批改作业可分配老师列表
- async SearchNoapporvalTeacherAllot() {
- this.$store.dispatch("TeacherAllotList", {
- grade: this.allNoapprovalList.Allotgarde,
- subject: this.allNoapprovalList.Allotsubjct,
- homeworkId: this.allNoapprovalList.homeworkId,
- originTeacherId: this.allNoapprovalList.teacherId,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: 1,
- pageSize: this.allNoapprovalList.pageSize,
- name: this.AllinputValueAllot,
- type: this.TeacherType
- });
- },
- // 质检当前作业状态
- async CheackHomeworkStatus(v) {
- let CurrthomeworkIdStatus = v.homeworkId;
- this.CurrthomeworkIdStatus = CurrthomeworkIdStatus;
- this.$store.dispatch("CheckCurrHomeworkStatus", {
- homeworkId: v.homeworkId,
- originTeacherId: this.homeworkLIst.teacherId
- });
- },
- // 未批改作业可分配老师分页列表
- async NoapporvalTeacherAllotfy() {
- this.$store.dispatch("TeacherAllotList", {
- grade: this.allNoapprovalList.Allotgarde,
- subject: this.allNoapprovalList.Allotsubjct,
- homeworkId: this.allNoapprovalList.homeworkId,
- originTeacherId: this.allNoapprovalList.teacherId,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.allNoapprovalList.pageNo,
- pageSize: this.allNoapprovalList.pageSize,
- name: this.AllinputValueAllot,
- type: this.TeacherType
- });
- },
- // 分配老师
- async GOtoTeacherAllot(v, k) {
- this.$store.dispatch("toTeacherAllot", {
- teacherId: v.teacherId,
- homeworkId: this.allotList.homeworkId,
- originTeacherId: this.homeworkLIst.teacherId,
- type: this.TeacherType
- });
- v.type = 1;
- this.$set(this.TeacherAllotList.list, k, v);
- this.hiddenModel = false;
- },
- // 未批改作业分配老师
- async GOtoTeacherAllotAppovar(v, k) {
- this.$store.dispatch("toTeacherAllot", {
- teacherId: v.teacherId,
- homeworkId: this.allNoapprovalList.homeworkId,
- originTeacherId: this.allNoapprovalList.teacherId,
- type: this.TeacherType
- });
- v.type = 1;
- this.$set(this.TeacherAllotList.list, k, v);
- this.NoAllotManagerModel = false;
- this.homeworkLIst.pageNo = 1;
- this.isPigai = true;
- },
- // 封号
- async CloseTeacherId() {
- this.closeID = false;
- this.$store.dispatch("CloseIdTeacher", {
- teacherId: this.TeacherIds,
- operate: 2,
- type: this.TeacherIdType
- });
- },
- // 升级
- async RepushTeacherAcess() {
- this.rePush = false;
- this.$store.dispatch("RepushTeacher", {
- teacherId: this.TeacherIds,
- operate: 1,
- type: this.TeacherIdType
- });
- },
- // 解封
- async OPenTeacherId() {
- this.OpenID = false;
- this.$store.dispatch("OpenIdTeacher", {
- teacherId: this.TeacherIds,
- operate: 3,
- type: this.TeacherIdType
- });
- },
- // 查看老师详情信息
- async GetTeacherInfo(v) {
- this.$store.dispatch("GetTeacherDetail", {
- teacherId: v.teacherId
- });
- },
- async pesiorFun() {
- var arr = this.GetTeacherDetail.grade.split(",");
- this.arrPeriod = this.GetTeacherDetail.period.split(",");
- var arrList = [];
- for (var i in arr) {
- if (arr[i] == "一年级" || arr[i] == "二年级") {
- arrList.push("1-2年级");
- } else if (arr[i] == "三年级" || arr[i] == "四年级") {
- arrList.push("3-4年级");
- } else if (arr[i] == "五年级" || arr[i] == "六年级") {
- arrList.push("5-6年级");
- }
- }
- this.arrGrade = this.uniq(arrList) || [];
- },
- // 查看学生详情信息
- async GetStudentInfo(v) {
- this.$store.dispatch("GetStudentDetail", {
- vipId: v.vipId
- });
- },
- // 可分配小组列表
- async GetAllotManagerInfo() {
- this.$store.dispatch("GetAllotManagerList", {
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.AllotManagerList.pageNo,
- pageSize: this.AllotManagerList.pageSize
- });
- },
- // 分配老师到管理员名下
- async GOAllotTeacherToManager(v, k) {
- this.$store.dispatch("AllotTeacherToManager", {
- managerId: v.managerId,
- teacherId: this.TeacherIds
- });
- v.type = 1;
- this.$set(this.getAllotManagerList.list, k, v);
- this.AllotManagerModel = false;
- },
- selectTitle(k) {
- this.modelindex = k;
- if (k === 0) {
- this.TeacherType = 8;
- this.Activeindex = false;
- this.filters.pageNo = 1;
- this.currentPage = 1;
- this.InfoWatch();
- }
- if (k === 1) {
- this.DayActiveindex = false;
- this.filters1.pageNo = 1;
- this.currentPage = 1;
- this.InfoWatchDay();
- }
- if (k === 2) {
- this.MonthActiveindex = false;
- this.filters2.pageNo = 1;
- this.currentPage = 1;
- this.InfoWatchMoth();
- }
- },
- isShow(v, str) {
- let _this = this;
- // scroll= (window).scrollTop();
- // $ ( ‘html’ ).css({ ‘overflow’ : ’hidden’ , ’position’: ’fixed’, ’top’: ’- ‘+scroll+’px’})
- if (str == 1) {
- _this.hiddenModel = true;
- this.allotList.pageNo = 1;
- this.inputValueAllot = "";
- this.TeacherAllot(v);
- this.allotList.Allotgarde = v.grade;
- this.allotList.Allotsubjct = v.subject;
- this.allotList.homeworkId = v.homeworkId;
- } else if (str == 2) {
- _this.isPigai = true;
- this.homeworkLIst.pageNo = 1;
- this.UnallotHomework();
- } else if (str == 3) {
- this.TeacherIdStatus = v.status;
- this.TeacherIds = v.teacherId;
- this.TeacherName = v.name;
- _this.ModelAppor = true;
- this.GetTeacherInfo(v);
- } else if (str == 4) {
- _this.ModelStudet = true;
- this.GetStudentInfo(v);
- } else if (str == 5) {
- _this.rePush = true;
- _this.ModelAppor = false;
- } else if (str == 6) {
- _this.closeID = true;
- _this.ModelAppor = false;
- } else if (str == 7) {
- _this.OpenID = true;
- _this.ModelAppor = false;
- } else if (str == 8) {
- _this.AllotManagerModel = true;
- _this.ModelAppor = false;
- this.GetAllotManagerInfo();
- } else if (str == 9) {
- this.allNoapprovalList.Allotgarde = v.grade;
- this.allNoapprovalList.Allotsubjct = v.subject;
- this.allNoapprovalList.homeworkId = v.homeworkId;
- this.allNoapprovalList.teacherId = v.teacherId;
- _this.NoAllotManagerModel = true;
- _this.isPigai = false;
- this.AllinputValueAllot = "";
- this.NoapporvalTeacherAllot(v);
- // this.GetAllotManagerInfo()
- } else if (str == 10) {
- _this.isPigai = true;
- this.homeworkLIst.pageNo = 1;
- this.unmatchHomework();
- }
- },
- // 去分配
- allocation() {
- var noHomework = document.getElementById("noHomework");
- this.InfoWatch();
- if (this.monitorTeacherList.unCorrectCount == 0) {
- noHomework.style.display = "block";
- setTimeout(function() {
- noHomework.style.display = "none";
- }, 1000);
- } else {
- this.isShow(this.monitorTeacherList, 2);
- }
- },
- // 未匹配作业去分配
- allocationApporval() {
- var noHomework = document.getElementById("noHomework");
- this.InfoKonwTeacherWatchList();
- if (this.monitorTeacherList.unCorrectCount == 0) {
- noHomework.style.display = "block";
- setTimeout(function() {
- noHomework.style.display = "none";
- }, 1000);
- } else {
- this.isShow(this.monitorTeacherList, 10);
- }
- },
- //关闭弹框
- allShowModel(str) {
- let _this = this;
- if (str == 1) {
- _this.hiddenModel = false;
- } else if (str == 2) {
- _this.isPigai = false;
- } else if (str == 3) {
- _this.ModelAppor = false;
- } else if (str == 4) {
- _this.ModelStudet = false;
- } else if (str == 5) {
- _this.rePush = false;
- } else if (str == 6) {
- _this.closeID = false;
- } else if (str == 7) {
- _this.OpenID = false;
- } else if (str == 8) {
- _this.AllotManagerModel = false;
- } else if (str == 9) {
- _this.NoAllotManagerModel = false;
- }
- },
- // 数组去重
- uniq(array) {
- var temp = []; //一个新的临时数组
- for (var i = 0; i < array.length; i++) {
- if (temp.indexOf(array[i]) == -1) {
- temp.push(array[i]);
- }
- }
- return temp;
- },
- // 回退
- routerback() {
- this.$router.back(-1);
- },
- // 输入框按键方法
- keyCodeMethod(e) {
- if (e.keyCode === 13) return this.itemListReshow();
- },
- expandChange(row, expandRows) {
- for (let item of expandRows) {
- if (row === item) {
- this.expandRowKeys = [row.nodId];
- }
- }
- },
- changeDateSlot(dateSlot) {
- if (dateSlot) {
- this.filters.startDate = dateSlot[0];
- this.filters.endDate = dateSlot[1];
- } else {
- this.filters.startDate = null;
- this.filters.endDate = null;
- }
- },
- actvTypeChange(typeList) {
- switch (typeList.length) {
- case 1:
- this.filters.actvType = typeList[0];
- this.filters.actvSmallType = null;
- break;
- case 2:
- this.filters.actvType = null;
- this.filters.actvSmallType = typeList[1];
- break;
- default:
- this.filters.actvType = null;
- this.filters.actvSmallType = null;
- break;
- }
- },
- // 手动批改
- handApor() {
- this.isDown = false;
- this.TeacherType = 8;
- this.TeacherCheackStyle = 2;
- this.TeacherIdType = 8;
- this.Activeindex = false;
- this.filters.pageNo = 1;
- this.filters.OptionsValue = '';
- this.filters.gradesValue = '';
- this.filters.inputValue = '';
- // this.showApporAways = false;
- this.InfoWatch();
- },
- // 匹配知识点老师
- AutoApor() {
- this.isDown = false;
- this.TeacherType = 13;
- this.TeacherIdType = 13;
- this.TeacherCheackStyle = 4;
- this.Activeindex = true;
- this.filters.OptionsValue = '';
- this.filters.gradesValue = '';
- this.filters.inputValue = '';
- // this.showApporAways = true;
- this.filters.pageNo = 1;
- this.InfoKonwTeacherWatchList();
- },
- InfoKonwTeacherWatchList() {
- this.$store.dispatch("InfoKonwTeacherWatch", {
- grade: this.filters.OptionsValue,
- subject: this.filters.gradesValue,
- teacherName: this.filters.inputValue,
- maxCreateTime: "",
- pageNo: this.filters.pageNo,
- pageSize: this.filters.pageSize,
- managerId: this.managerId || ""
- });
- },
- // 当天数据手动批改
- DayhandApor() {
- this.DayActiveindex = false;
- this.filters1.pageNo = 1;
- this.filters1.MaxtimeValue = '';
- this.filters1.inputValue = '';
- // this.showApporAways = false;
- this.InfoWatchDay();
- },
- // 当天数据匹配知识点老师
- DayAutoApor() {
- this.DayActiveindex = true;
- // this.showApporAways = true;
- this.filters1.MaxtimeValue = '';
- this.filters1.inputValue = '';
- this.filters1.pageNo = 1;
- this.InfoKonwTeacherDayApprvalList();
- },
- // 当天数据匹配知识点老师
- InfoKonwTeacherDayApprvalList() {
- this.$store.dispatch("MonitorKnowTeacherOneDayInfo", {
- grade: this.filters.OptionsValue,
- subject: this.filters.gradesValue,
- teacherName: this.filters1.inputValue,
- maxCreateTime: "",
- oneDay: this.filters1.MaxtimeValue,
- pageNo: this.filters1.pageNo,
- pageSize: this.filters1.pageSize,
- managerId: this.managerId || ""
- });
- },
- InfoWatchDayDatas (){
- if (this.DayActiveindex == false){
- this.InfoWatchDay();
- }
- if (this.DayActiveindex == true){
- this.InfoKonwTeacherDayApprvalList()
- }
- },
- // 当月数据手动批改
- MonthhandApor() {
- this.MonthActiveindex = false;
- this.filters2.pageNo = 1;
- this.filters2.MaxtimeValue = '';
- this.filters2.inputValue = '';
- // this.showApporAways = false;
- this.InfoWatchMoth();
- },
- // 当月数据匹配知识点老师
- MonthAutoApor() {
- this.MonthActiveindex = true;
- // this.showApporAways = true;
- this.filters2.MaxtimeValue = '';
- this.filters2.inputValue = '';
- this.filters2.pageNo = 1;
- this.InfoKonwTeacherMonthApprvalList();
- },
- // 当月数据匹配知识点老师
- InfoKonwTeacherMonthApprvalList() {
- this.$store.dispatch("MonitorKnowTeacherOneMonthInfo", {
- grade: this.filters.OptionsValue,
- subject: this.filters.gradesValue,
- teacherName: this.filters2.inputValue,
- maxCreateTime: "",
- oneMonth: this.filters2.MaxtimeValue,
- pageNo: this.filters2.pageNo,
- pageSize: this.filters2.pageSize,
- managerId: this.managerId || ""
- });
- },
- InfoWatchMonthDatas (){
- if (this.MonthActiveindex == false){
- this.InfoWatchMoth();
- }
- if (this.MonthActiveindex == true){
- this.InfoKonwTeacherMonthApprvalList()
- }
- },
- WatchhandleSizeChange(val) {
- this.filters.pageSize = val;
- this.InfoKonwTeacherWatchList();
- },
- handleSizeDayChange1(val) {
- this.filters1.pageSize = val;
- this.InfoKonwTeacherDayApprvalList();
- },
- handleSizeMonthChange2(val) {
- this.filters2.pageSize = val;
- this.InfoKonwTeacherMonthApprvalList();
- },
- handleSizeChange(val) {
- this.filters.pageSize = val;
- this.InfoWatch();
- },
- handleSizeChange1(val) {
- this.filters1.pageSize = val;
- this.InfoWatchDay();
- },
- handleSizeChange2(val) {
- this.filters2.pageSize = val;
- this.InfoWatchMoth();
- },
- handleSizeChange3(val) {
- this.homeworkLIst.pageSize = val;
- this.TeacherHomeworkfy();
- },
- handleSizeChange4(val) {
- this.allotList.pageSize = val;
- this.TeacherAllotfy();
- },
- handleSizeChange5(val) {
- this.AllotManagerList.pageSize = val;
- this.GetAllotManagerInfo();
- },
- handleSizeChange6(val) {
- this.allNoapprovalList.pageSize = val;
- this.NoapporvalTeacherAllotfy();
- },
- handleSizeChange7(val) {
- this.homeworkLIst.pageSize = val;
- this.UnallotHomework();
- },
- WatchApporvalhandleSizeChange7(val) {
- this.homeworkLIst.pageSize = val;
- this.unmatchHomework();
- },
- WatchpageChange(val) {
- this.filters.pageNo = val;
- this.InfoKonwTeacherWatchList();
- },
- pageDayChange1(val) {
- this.filters1.pageNo = val;
- this.InfoKonwTeacherDayApprvalList();
- },
- pageMonthChange2(val) {
- this.filters2.pageNo = val;
- this.InfoKonwTeacherMonthApprvalList();
- },
- // 分页InfoKonwTeacherMonthApprvalList
- pageChange(val) {
- this.filters.pageNo = val;
- this.InfoWatch();
- }, // 分页
- pageChange1(val) {
- this.filters1.pageNo = val;
- this.InfoWatchDay();
- }, // 分页
- pageChange2(val) {
- this.filters2.pageNo = val;
- this.InfoWatchMoth();
- },
- pageChange3(val) {
- this.homeworkLIst.pageNo = val;
- this.TeacherHomeworkfy();
- },
- pageChange4(val) {
- this.allotList.pageNo = val;
- this.TeacherAllotfy();
- },
- pageChange5(val) {
- this.AllotManagerList.pageNo = val;
- this.GetAllotManagerInfo();
- },
- pageChange6(val) {
- this.allNoapprovalList.pageNo = val;
- this.NoapporvalTeacherAllotfy();
- },
- pageChange7(val) {
- this.homeworkLIst.pageNo = val;
- this.UnallotHomework();
- },
- WatchApporvalpageChange7(val) {
- this.homeworkLIst.pageNo = val;
- this.unmatchHomework();
- },
- // 排序
- sortChange(sort) {
- this.filters.orderField = sort.prop;
- this.filters.orderAD = sort.order != null ? sort.order : "";
- this.itemListReshow();
- },
- //年月日时间封装
- dayFormatDate: function() {
- let date = new Date();
- let y = date.getFullYear();
- let MM = date.getMonth() + 1;
- MM = MM < 10 ? "0" + MM : MM;
- let d = date.getDate();
- d = d < 10 ? "0" + d : d;
- return y + "-" + MM + "-" + d;
- },
- //年月时间封装
- monthFormatDate: function() {
- let date = new Date();
- let y = date.getFullYear();
- let MM = date.getMonth() + 1;
- MM = MM < 10 ? "0" + MM : MM;
- return y + "-" + MM;
- },
- // 去分配前刷新老师批改作业列表
- async RefreshTeacherHomework() {
- this.$store.dispatch("TeacherHomeworkList", {
- teacherId: this.homeworkLIst.teacherId,
- maxCreateTime: "",
- pageNo: 1,
- pageSize: this.homeworkLIst.pageSize
- });
- },
- selectStyle() {
- this.gardeListDown = true;
- },
- outStyle() {
- this.gardeListDown = false;
- },
- selectTip(item) {
- this.filters.OptionsValue = item.str;
- if (this.Activeindex == false){
- this.InfoWatch();
- }
- if (this.Activeindex == true){
- this.InfoKonwTeacherWatchList();
- }
- this.selecttitlepag = item.label;
- this.gardeListDown = false;
- },
- selectTipage(item) {
- this.filters.gradesValue = item.str;
- if (this.Activeindex == false){
- this.InfoWatch();
- }
- if (this.Activeindex == true){
- this.InfoKonwTeacherWatchList();
- }
- this.selecttitleage = item.label;
- this.gardeListDownage = false;
- },
- selectStyle1() {
- this.gardeListDownage = true;
- },
- outStyle1() {
- this.gardeListDownage = false;
- }
- // 获取创建人列表
- // async getUserNameList() {
- // let {
- // userNameList = []
- // } = await this.$dao.actv.marketActDao.getUserNameList();
- // this.userNameList = userNameList || [];
- // let { list = [] } = await this.$dao.bsnsActvTypeAllList();
- // this.actvTypeList = list || [];
- // }
- },
- mounted() {
- this.InfoWatch();
- // this.getsetDictByType2();
- // this.getUserNameList();
- // this.itemListReshow();
- },
- watch: {
- getTeacherIdStatus(val, oldVal) {
- //普通的watch监听
- if (this.Activeindex == false){
- this.InfoWatch();
- }
- if (this.Activeindex == true){
- this.InfoKonwTeacherWatchList();
- }
- },
- BeforetoTeacherstatues(val, oldVal) {
- //普通的watch监听
- // 查看老师批改作业列表
- this.$store.dispatch("TeacherHomeworkList", {
- teacherId: this.homeworkLIst.teacherId,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.homeworkLIst.pageNo,
- pageSize: this.homeworkLIst.pageSize
- });
- if (this.Activeindex == false){
- this.InfoWatch();
- this.UnallotHomework();
- }
- if (this.Activeindex == true){
- this.InfoKonwTeacherWatchList();
- this.unmatchHomework()
- }
- },
- InfoTeacherstatues(val, oldVal) {
- //普通的watch监听
- this.pesiorFun();
- },
- ApporingTeacherstatues(val, oldVal) {
- //去分配前刷新列表watch监听
- this.NoAllotManagerModel = false;
- this.hiddenModel = false;
- // this.isPigai = true;
- this.RefreshTeacherHomework();
- },
- // 质检当前作业状态:href="APPOR_BASE_URL+'?homeworkId='+v.homeworkId+'&unionid='+unionid+'&teacherId='+homeworkLIst.teacherId+'&state='+2"
- currtHomeworkStatus(val, oldVal) {
- //去检查的watch监听
- window.open(
- APPOR_BASE_URL +
- "?homeworkId=" +
- this.CurrthomeworkIdStatus +
- "&unionid=" +
- this.unionid +
- "&teacherId=" +
- this.homeworkLIst.teacherId +
- "&state=" +
- this.TeacherCheackStyle
- );
- }
- }
- };
- </script>
- <!-- Add "scoped" attribute to limit CSS to this component only -->
- <style>
- html,
- body {
- height: 100%;
- overflow: hidden;
- }
- .aside {
- background-color: #fff;
- margin-top: 16px;
- margin-right: 16px;
- padding: 0;
- min-height: 880px;
- }
- .main-header-num {
- display: flex;
- justify-content: space-between;
- margin: 0 4%;
- padding-left: 4%;
- }
- .teach-time {
- text-align: right;
- }
- .teach-block {
- display: inline-block;
- }
- .main {
- background-color: #fff;
- padding: 0 !important;
- margin-top: 16px;
- min-height: 980px;
- }
- .table-aside {
- color: #666666;
- font-size: 18px;
- text-align: center;
- line-height: 60px;
- cursor: pointer;
- }
- el-table {
- color: #999999;
- font-size: 18px;
- }
- .BgcColor {
- background-color: #f7fbfc;
- }
- .buttonAppoval {
- display: inline-block;
- }
- .main-items {
- color: #393939;
- text-align: center;
- line-height: 80px;
- }
- .main-header-item {
- font-size: 16px;
- font-weight: 700;
- }
- .model-manager {
- display: flex;
- justify-content: space-between;
- margin: 30px;
- color: #393939;
- font-size: 24px;
- }
- .main-header-link {
- color: #52cc60;
- font-size: 18px;
- margin-left: 10px;
- cursor: pointer;
- text-decoration: underline;
- }
- .el-select {
- width: 100px;
- margin: -10px !important;
- }
- .teach-style {
- display: inline-block;
- text-align: left;
- }
- .teach-style-name {
- font-size: 24px;
- margin-left: 10px;
- }
- .input-with-select .el-input-group__prepend {
- background-color: #fff;
- }
- .el-select-dropdown__list {
- padding: 15px 0 !important;
- }
- .active {
- background-color: #52cc60;
- color: #fff;
- }
- .el-input__inner {
- height: 45px;
- /*margin: 0 5px !important;*/
- }
- .table-img {
- width: 36px;
- height: 36px;
- border-radius: 6px;
- /* margin-left: 14px; */
- cursor: pointer;
- }
- .table {
- width: 94.5%;
- border-top: 1px solid #e5e5e5;
- margin: 0 43px;
- }
- .table-head {
- color: #999999;
- font-size: 18px;
- text-align: center;
- display: flex;
- justify-content: space-around;
- }
- .table-head > div {
- width: 13.528%;
- }
- .table-heads {
- margin-left: 15%;
- width: 68%;
- color: #3ab548;
- font-size: 14px;
- text-align: center;
- display: flex;
- justify-content: space-around;
- }
- .table-heads > div {
- width: 13.528%;
- }
- .table-heads1 {
- margin-left: 60px !important;
- margin-right: 260px !important;
- background-color: #fff !important;
- color: #3ab548 !important;
- font-size: 14px;
- text-align: center;
- display: flex;
- justify-content: space-around;
- padding: 0 25px !important;
- }
- .table-heads1 > div {
- width: 13.528%;
- }
- ul {
- text-align: center;
- margin: 0 !important;
- }
- .tr {
- width: 100%;
- color: #393939;
- text-align: center;
- font-family: "PingFang-SC-Bold";
- font-size: 16px;
- font-weight: 700;
- }
- .tr-first {
- display: flex;
- justify-content: space-around;
- }
- .tr-first > div {
- width: 13.528%;
- }
- .tr-set {
- background-color: #fbfbfb;
- display: flex;
- justify-content: space-around;
- color: #393939;
- font-size: 12px;
- margin: 0px;
- /* height:40px; */
- line-height: 40px;
- }
- .el-button--success.is-plain {
- width: 100px;
- height: 30px;
- font-size: 10px;
- text-align: center;
- line-height: 10px;
- }
- .el-button--success {
- width: 100px;
- height: 30px;
- font-size: 10px;
- text-align: center;
- line-height: 5px;
- }
- .el-button--warning {
- width: 100px;
- height: 30px;
- font-size: 10px;
- text-align: center;
- line-height: 5px;
- padding: 10px;
- }
- .el-button--info {
- width: 100px;
- height: 30px;
- font-size: 10px;
- text-align: center;
- line-height: 5px;
- padding: 10px;
- }
- .el-button--danger.is-plain {
- width: 100px;
- height: 40px;
- /* font-size:10px; */
- text-align: left;
- line-height: 10px !important;
- padding: 10px;
- }
- .el-button [class*="el-icon-"] + span {
- margin-left: 0px;
- }
- .el-input__inner,
- .el-checkbox__inner,
- .el-textarea__inner,
- .el-button {
- font-size: 10px;
- text-align: center;
- line-height: 0px !important;
- /* padding:0px!important; */
- }
- .tr-secon {
- font-size: 12px;
- text-align: center;
- word-wrap: break-word;
- width: 40px;
- line-height: 60px;
- }
- .tr-setNo {
- display: flex;
- justify-content: space-around;
- color: #000000f1;
- font-size: 16px;
- margin: 20px;
- }
- .tr-second {
- background-color: #fbfbfb;
- display: flex;
- color: #393939;
- font-size: 12px;
- width: 80%;
- margin: 0 auto;
- }
- .tr-seconds {
- text-align: center;
- font-size: 14px;
- word-wrap: break-word;
- }
- .tr-sw180 {
- width: 400px !important;
- text-align: center;
- }
- .width40 {
- width: 300px !important;
- }
- .widthSu {
- width: 120px !important;
- }
- .tr-secondsA {
- text-align: center;
- font-size: 14px;
- word-wrap: break-word;
- width: 380px;
- }
- .tr-w120 {
- width: 260px !important;
- text-align: left;
- }
- .width120 {
- width: 200px;
- }
- .tr-second-check {
- color: #3ab548;
- font-size: 17px;
- text-decoration: underline;
- }
- .tr-sw80 {
- width: 120px;
- text-align: center;
- }
- .width140 {
- width: 140px !important;
- }
- .width400 {
- width: 350px;
- padding: 10px;
- }
- .tr-sw180 {
- width: 400px !important;
- text-align: right;
- padding-right: 38px;
- }
- .ApporTeacher {
- width: 400px !important;
- text-align: right;
- }
- .Online {
- display: inline-block;
- }
- .Onlinename {
- display: inline-block;
- }
- .tr-active {
- color: #3ab548;
- }
- .showModel {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- background: #000000;
- opacity: 0.2;
- overflow: hidden;
- z-index: 1000;
- color: #fff;
- }
- .model {
- z-index: 10000;
- width: 60%;
- height: auto;
- position: fixed;
- top: 15%;
- left: 30%;
- margin: auto;
- background: #fff;
- border-radius: 10px;
- text-align: center;
- min-width: 450px !important;
- padding: 20px;
- }
- .modelspec {
- z-index: 10000;
- width: 35.5%;
- height: auto;
- position: fixed;
- top: 30%;
- left: 32.5%;
- margin: auto;
- background: #fff;
- border-radius: 10px;
- text-align: center;
- }
- .model-text {
- background: rgba(255, 255, 255, 1);
- border-radius: 10px;
- }
- .model-items-first {
- padding: 0 34px;
- display: flex;
- justify-content: space-between;
- }
- .model-items-first-img {
- width: 68px;
- height: 68px;
- border-radius: 8px;
- position: relative;
- bottom: 20px;
- }
- .model-items-first-left {
- display: inline-block;
- color: #393939;
- font-size: 24px;
- margin-left: 14px;
- text-align: left;
- }
- .model-items-first-left-down {
- color: #7e7e7e;
- font-size: 18px;
- }
- .model-text-head {
- padding: 40px 50px;
- display: flex;
- color: #393939;
- font-size: 24px;
- justify-content: space-between;
- }
- .model-items-other {
- height: 60px;
- line-height: 60px;
- color: #393939;
- font-size: 20px;
- text-align: left;
- padding: 0 34px;
- }
- .model-active {
- background-color: #f6f7fb;
- }
- .model-active-last {
- border-radius: 0 0 30px 30px;
- background-color: #f6f7fb;
- }
- .model-items-left {
- width: 100%;
- color: #393939;
- font-size: 24px;
- }
- .model-items-left-top {
- display: flex;
- justify-content: space-between;
- }
- .model-items {
- padding-bottom: 10px;
- display: flex;
- justify-content: space-between;
- display: inline-block;
- width: 100%;
- }
- .model-itemss {
- padding: 10px 0;
- /*display: flex;*/
- /*justify-content: space-between;*/
- /*display: inline-block;*/
- width: 40%;
- display: inline-block;
- }
- .model-items-left-top-img {
- width: 68px;
- height: 68px;
- border-radius: 8px;
- position: relative;
- bottom: 25px;
- }
- .model-btn-items {
- font-size: 18px;
- }
- .main-gay {
- background: rgba(246, 247, 251, 1);
- color: #7e7e7e;
- width: 154px;
- height: 50px;
- line-height: 50px;
- cursor: pointer;
- }
- .model-grdeen {
- background-color: #52cc60;
- color: #fff;
- width: 154px;
- height: 50px;
- line-height: 50px;
- cursor: pointer;
- }
- .el-pagination.is-background .el-pager li:not(.disabled).active {
- background-color: #52cc60 !important;
- color: #fff;
- }
- /* .el-input__inner, .el-checkbox__inner, .el-textarea__inner, .el-button {
- font-size:10px;
- text-align:center;
- line-height:5px;
- padding:10px;
- } */
- .model-text-items-close {
- position: absolute;
- top: 10px;
- right: 15px;
- cursor: pointer;
- }
- .model-text-items {
- position: relative;
- color: #000000;
- font-size: 24px;
- text-align: center;
- padding: 40px 0 50px 0;
- }
- .model-btn {
- display: flex;
- justify-content: space-around;
- margin-bottom: 44px;
- }
- .model-items-left-top-number {
- color: #7e7e7e;
- font-size: 18px;
- margin-left: 10px;
- }
- .today-time {
- color: #7e7e7e;
- font-size: 18px;
- margin: 0 20px;
- }
- .no-homework {
- width: 16.5%;
- height: 328px;
- background: rgba(255, 255, 255, 1);
- box-shadow: 0px 0px 14px 0px rgba(228, 228, 228, 1);
- border-radius: 10px;
- margin: auto;
- position: fixed;
- top: 27%;
- left: 41.75%;
- text-align: center;
- padding: 35px;
- z-index: 1000;
- display: none;
- }
- .no-homework > div {
- margin-bottom: 25px;
- font-size: 24px;
- }
- .no-homework > img {
- width: 226px;
- height: 203px;
- }
- .allocation-items {
- width: 45%;
- display: inline-block;
- margin-right: 20px;
- margin-bottom: 30px;
- }
- .closeTeacherID {
- display: inline-block;
- height: 40px;
- width: 100px;
- color: #f56c6c;
- background: #fef0f0;
- border-color: #fbc4c4;
- border-radius: 20px;
- font-size: 14px;
- line-height: 40px;
- cursor: pointer;
- border: 1px solid;
- }
- .closeTeacherID:hover {
- color: #fff;
- background-color: #f56c6c;
- border-color: #f56c6c;
- }
- .closeAnOpenId {
- width: 250px;
- }
- .UpTeacherID {
- display: inline-block;
- height: 40px;
- width: 100px;
- color: #67c23a;
- background: #f0f9eb;
- border-color: #c2e7b0;
- border-radius: 20px;
- font-size: 14px;
- line-height: 40px;
- cursor: pointer;
- border: 1px solid;
- }
- .UpTeacherID:hover {
- color: #fff;
- background-color: #67c23a;
- border-color: #67c23a;
- }
- .TeacherApporTime {
- text-align: center;
- display: inline-block;
- height: 30px;
- width: 60px;
- color: #706f6f;
- background: #b6b6b6;
- border-color: #929492;
- border-radius: 20px;
- font-size: 14px;
- line-height: 30px;
- cursor: pointer;
- margin: 0 5px;
- }
- .TeacherApporTime:hover {
- color: #fff;
- background-color: #909399;
- border-color: #909399;
- }
- .teach-Allot {
- width: 350px;
- position: relative;
- }
- .SeachIcon {
- position: absolute;
- font-size: 16px;
- color: #b6b6b6;
- right: 42%;
- top: 15%;
- cursor: pointer;
- }
- .input-with-Allot {
- border: #b6b6b6;
- border-radius: 15px;
- height: 30px;
- width: 220px;
- font-size: 8px;
- color: #b6b6b6;
- text-align: left;
- line-height: 30px;
- background: #f1f2f4;
- padding: 0 10px;
- float: left;
- outline: none !important;
- box-shadow: none;
- }
- .Dayinput-with-Allot {
- border: #b6b6b6;
- border-radius: 20px;
- height: 40px;
- width: 300px;
- font-size: 8px;
- color: #b6b6b6;
- text-align: left;
- line-height: 40px;
- background: #f1f2f4;
- padding: 0 10px;
- float: left;
- outline: none !important;
- box-shadow: none;
- }
- .Dayteach-Allot {
- width: 400px;
- position: relative;
- height: 40px;
- top: 15px;
- }
- .DaySeachIcon {
- position: absolute;
- font-size: 20px;
- color: #b6b6b6;
- right: 30%;
- margin-top: 10px;
- cursor: pointer;
- }
- .selectBox {
- position: relative;
- float: left;
- display: inline-block;
- }
- .Ageclass {
- display: inline-block;
- height: 40px;
- width: 120px;
- background-color: #f1f2f4;
- line-height: 40px;
- font-size: 16px;
- cursor: pointer;
- }
- .age-tip {
- width: 80%;
- height: 40px;
- color: #747070;
- font-size: 12px;
- }
- .class-download {
- background-color: #fff;
- width: 160px;
- z-index: 999999;
- position: absolute;
- border: 1px solid #e0dddd;
- border-radius: 5px;
- top: 58px;
- }
- .class-download ul li {
- height: 40px;
- line-height: 40px;
- text-align: center;
- cursor: pointer;
- color: #b6b6b6;
- }
- .class-download ul li:hover {
- background-color: #52cc60;
- color: #ffff;
- }
- .miniorinput-with-Allot {
- border: #b6b6b6;
- border-radius: 5px;
- height: 40px;
- width: 280px;
- font-size: 8px;
- color: #b6b6b6;
- text-align: left;
- line-height: 40px;
- background: #f1f2f4;
- padding: 0 10px;
- float: left;
- outline: none !important;
- box-shadow: none;
- }
- .miniorteach-Allot {
- float: left;
- width: 280px;
- position: relative;
- height: 40px;
- top: 15px;
- }
- .displayBox {
- display: inline-block;
- float: left;
- text-align: left !important;
- margin-left: 40px;
- }
- .miinorSeachIcon {
- position: absolute;
- font-size: 20px;
- color: #b6b6b6;
- right: 5%;
- margin-top: 12px;
- cursor: pointer;
- }
- .ApporStyles {
- display: inline-block;
- width: 180px;
- height: 40px;
- line-height: 40px;
- background-color: #fff;
- border-radius: 20px;
- font-size: 16px;
- color: #7c819d;
- cursor: pointer;
- }
- .Apporvalactive {
- background-color: #52cc60;
- color: #fff;
- }
- .main-header-numNew {
- display: flex;
- justify-content: space-between;
- }
- </style>
|