12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454 |
- <template>
- <div>
-
- <el-row :gutter="20" class="main-items">
- <el-col class="aside" :span="4" :offset="1" 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="18" class="main" v-if="modelindex == 0">
- <el-row :gutter="20" class="main-header">
- <el-col :span="2" :offset="1">
- <div class="main-header-item">在线:{{monitorTeacherList.onlineCount}}人</div>
- </el-col>
- <el-col :span="2">
- <div class="main-header-item">离线:{{monitorTeacherList.offlineCount}}人</div>
- </el-col>
- <el-col :span="4">
- <div class="main-header-item">
- <span>分配未批改作业:{{monitorTeacherList.unCorrectCount}}份</span>
- <span @click="isShow(monitorTeacherList,2)" class="main-header-link">去分配</span>
- </div>
- </el-col>
- <el-col :span="8" :offset="6">
- <el-input placeholder="请输入老师名字" v-model="filters.inputValue" class="input-with-select">
- <el-select
- v-model="filters.OptionsValue"
- @change="InfoWatch"
- slot="prepend"
- placeholder="选年级"
- minlength="20"
- >
- <el-option
- v-for="(item, k) in options"
- :key="k"
- :label="item.label"
- :value="item.label"
- ></el-option>
- </el-select>
- <el-select
- v-model="filters.gradesValue"
- @change="InfoWatch"
- slot="prepend"
- placeholder="选科目"
- minlength="20"
- >
- <el-option
- v-for="(item, k) in grades"
- :key="k"
- :label="item.label"
- :value="item.label"
- ></el-option>
- </el-select>
- <el-button @click="InfoWatch" slot="append" icon="el-icon-search"></el-button>
- </el-input>
- </el-col>
-
-
-
-
-
-
-
-
-
- </el-row>
- <el-row :gutter="20" class="main-header">
- <el-col :span="24">
- <div class="table">
- <div class="table-head">
- <div>头像</div>
- <div>姓名</div>
- <div>等待作业数</div>
- <div>作业最长等待时长</div>
- <div>累计批改时间</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">
- <div>
- <i
- :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-top']"
- @click="dropDown(v,k)"
- ></i>
- <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)">
- </div>
- <div>{{v.name}}</div>
- <div>{{v.waitCount}}份</div>
- <div class="tr-active">{{v.maxWaitTime}}</div>
- <div>{{v.totalCorrectTime}}</div>
- <div>{{v.respSpeed}}/份</div>
- <div>在线</div>
- </div>
-
- <div v-if="v.status == '2'" style="color:#BEBEBE" class="tr-first">
- <div>
- <i
- :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-top']"
- @click="dropDown(v,k)"
- ></i>
- <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)">
- </div>
- <div>{{v.name}}</div>
- <div>{{v.waitCount}}份</div>
- <div>{{v.maxWaitTime}}</div>
- <div>{{v.totalCorrectTime}}</div>
- <div>{{v.respSpeed}}/份</div>
- <div>离线</div>
- </div>
-
- <div v-if="v.status == '3'" style="color:#FF6767" class="tr-first">
- <div>
- <i
- :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-top']"
- @click="dropDown(v,k)"
- ></i>
- <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)">
- </div>
- <div>{{v.name}}</div>
- <div>{{v.waitCount}}份</div>
- <div>{{v.maxWaitTime}}</div>
- <div>{{v.totalCorrectTime}}</div>
- <div>{{v.respSpeed}}/份</div>
- <div>已封号</div>
- </div>
- <div v-if="isDownindex === k && isDown">
- <div class="tr-second" v-for="(v, k) of TeacherHomeworkList.list" :key="k">
- <div class="tr-seconds">{{k+1}}</div>
- <div class="tr-seconds">
- <span @click="isShow(v,4)" style="cursor: pointer;" class="tr-second-check">查看</span>
- <span>{{v.name}}</span>
- </div>
- <div class="tr-seconds">{{v.spendTime}}</div>
- <div class="tr-seconds">{{v.subject}}</div>
- <div class="tr-seconds">{{v.grade}}</div>
- <div v-if="v.status === 1" class="tr-seconds">未批改</div>
- <div v-if="v.status === 2" class="tr-seconds" style="color:#FFC303">批改中</div>
- <div v-if="v.status === 3" class="tr-seconds">已批改</div>
- <div class="tr-s" v-if="v.status === 1">
- <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="tr-s" v-if="v.status === 3 && v.isCheck ===1">
- <el-button type="info" plain>已检查</el-button>
- <span style="color:red;font-size:12px;">报错{{v.wrongCount}}</span>
- </div>
- <div class="tr-s" v-if="v.status === 3 && v.isCheck ===0">
- <el-button type="warning" plain><a style="text-decoration:none;color:#52cc60;" :href="'https://kmt.sharingschool.com/aijia/kmt/index.html?homeworkId='+v.homeworkId+'&accessToken='+accessToken+'&state='+2">去检查</a></el-button>
- </div>
- </div>
-
- <el-pagination
- background
- @size-change="handleSizeChange3"
- @current-change="pageChange3"
- :page-sizes="[10, 20]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="parseInt(TeacherHomeworkList.pages)"
- ></el-pagination>
- </div>
- </div>
- </div>
-
- <el-pagination
- background
- @size-change="handleSizeChange"
- @current-change="pageChange"
- :page-sizes="[10, 20, 30, 40]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="parseInt(monitorTeacherList.pages)"
- ></el-pagination>
-
- <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 == 1">
- <el-row :gutter="20" class="main-header">
- <el-col :span="5">
- <div class="main-header-item">今日报错总次数:{{DayTeacherList.wrongCount}}人</div>
- </el-col>
- <el-col :span="10" :offset="5">
- <el-input placeholder="请输入老师名字" v-model="filters1.inputValue" class="input-with-select">
- <el-select
- v-model="filters1.OptionsValue"
- @change="InfoWatchDay"
- slot="prepend"
- placeholder="选年级"
- minlength="20"
- >
- <el-option
- v-for="(item, k) in options"
- :key="k"
- :label="item.label"
- :value="item.label"
- ></el-option>
- </el-select>
- <el-select
- v-model="filters1.gradesValue"
- @change="InfoWatchDay"
- slot="prepend"
- placeholder="选科目"
- minlength="20"
- >
- <el-option
- v-for="(item, k) in grades"
- :key="k"
- :label="item.label"
- :value="item.label"
- ></el-option>
- </el-select>
- <el-button @click="InfoWatchDay" slot="append" icon="el-icon-search"></el-button>
- </el-input>
- </el-col>
- <el-col :span="4">
- <div class="block">
- <el-date-picker
- @change="InfoWatchDay"
- v-model="filters1.MaxtimeValue"
- value-format="yyyy-MM-dd HH:mm:ss"
- type="date"
- placeholder="选择日期"
- ></el-date-picker>
- </div>
- </el-col>
- </el-row>
- <el-row :gutter="20" class="main-header">
- <el-col :span="24">
- <div class="table">
- <div class="table-head">
- <div>头像</div>
- <div>姓名</div>
- <div>被报错</div>
- <div>科目</div>
- <div>批改总份数</div>
- <div>批改总张数</div>
- <div>平均批改时间</div>
- <div>出勤</div>
- </div>
- <div class="tr" v-for="(v, k) of DayTeacherList.list" :key="k">
- <div class="tr-first">
- <div>
- <img :src="BASE_URL + v.imgUrl" alt class="table-img">
- </div>
- <div>{{v.name}}</div>
- <div>{{v.wrongCount}}份</div>
- <div class="tr-active">{{v.subject}}</div>
- <div>{{v.homeworkCount}}</div>
- <div>{{v.homeworkPicCount}}/张</div>
- <div>{{v.avgTime}}</div>
- <div>{{v.attendance}}</div>
- </div>
- </div>
- </div>
-
- <el-pagination
- background
- @size-change="handleSizeChange1"
- @current-change="pageChange1"
- :page-sizes="[10, 20, 30, 40]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="parseInt(DayTeacherList.pages)"
- ></el-pagination>
-
- <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="5">
- <div class="main-header-item" @click="isShow(1)">当月报错总次数:{{MothTeacherList.wrongCount}}人</div>
- </el-col>
- <el-col :span="10" :offset="5">
- <el-input placeholder="请输入老师名字" v-model="filters2.inputValue" class="input-with-select">
- <el-select
- v-model="filters2.OptionsValue"
- @change="InfoWatchMoth"
- slot="prepend"
- placeholder="选年级"
- minlength="20"
- >
- <el-option
- v-for="(item, k) in options"
- :key="k"
- :label="item.label"
- :value="item.label"
- ></el-option>
- </el-select>
- <el-select
- v-model="filters2.gradesValue"
- @change="InfoWatchMoth"
- slot="prepend"
- placeholder="选科目"
- minlength="20"
- >
- <el-option
- v-for="(item, k) in grades"
- :key="k"
- :label="item.label"
- :value="item.label"
- ></el-option>
- </el-select>
- <el-button @click="InfoWatchMoth" slot="append" icon="el-icon-search"></el-button>
- </el-input>
- </el-col>
- <el-col :span="4">
- <div class="block">
- <el-date-picker
- @change="InfoWatchMoth"
- v-model="filters2.MaxtimeValue"
- value-format="yyyy-MM-dd HH:mm:ss"
- type="date"
- placeholder="选择日期"
- ></el-date-picker>
- </div>
- </el-col>
- </el-row>
- <el-row :gutter="20" class="main-header">
- <el-col :span="3" :offset="1">
- <div class="main-header-item" @click="isShow(1)">月出勤率:{{MothTeacherList.attendanceRate}}</div>
- </el-col>
- <el-col :span="4">
- <div class="main-header-item" @click="isShow(1)">批改总份数:{{MothTeacherList.homeworkCount}}</div>
- </el-col>
- <el-col :span="4">
- <div
- class="main-header-item"
- @click="isShow(1)"
- >批改总张数:{{MothTeacherList.homeworkPicCount}}</div>
- </el-col>
- <el-col :span="4">
- <div class="main-header-item" @click="isShow(1)">批改平均时间:{{MothTeacherList.avgTime}}</div>
- </el-col>
- <el-col :span="4">
- <div
- class="main-header-item"
- @click="isShow(1)"
- >平均满意度:{{MothTeacherList.satisfactionDegree}}</div>
- </el-col>
- <el-col :span="4">
- <div class="main-header-item" @click="isShow(1)">正确率:{{MothTeacherList.accuracyRate}}</div>
- </el-col>
- </el-row>
- <el-row :gutter="20" class="main-header">
- <el-col :span="24">
- <div class="table">
- <div class="table-head">
- <div>头像</div>
- <div>姓名</div>
- <div>被报错</div>
- <div>科目</div>
- <div>批改总份数</div>
- <div>批改总张数</div>
- <div>正确率</div>
- <div>满意度</div>
- <div>平均批改时间</div>
- <div>出勤</div>
- </div>
- <div class="tr" v-for="(v, k) of MothTeacherList.list" :key="k">
- <div class="tr-first">
- <div>
- <img :src="BASE_URL + v.imgUrl" alt class="table-img">
- </div>
- <div>{{v.name}}</div>
- <div>{{v.wrongCount}}份</div>
- <div class="tr-active">{{v.subject}}</div>
- <div>{{v.homeworkCount}}</div>
- <div>{{v.homeworkPicCount}}/张</div>
- <div>{{v.accuracyRate}}</div>
- <div>{{v.satisfactionDegree}}</div>
- <div>{{v.avgTime}}</div>
- <div>{{v.attendance}}</div>
- </div>
- </div>
- </div>
-
- <el-pagination
- background
- @size-change="handleSizeChange2"
- @current-change="pageChange2"
- :page-sizes="[10, 20, 30, 40]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="parseInt(MothTeacherList.pages)"
- ></el-pagination>
-
- <div style="clear:both;"></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:40%" v-if="hiddenModel">
- <div class="model-text">
- <div class="model-text-head">
- <div>可分配老师</div>
- <div>{{allotList.Allotgarde}}{{allotList.Allotsubjct}}</div>
- </div>
- <div class="model-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/user.jpg"
- v-if="!v.imgUrl"
- alt
- class="model-items-left-top-img"
- >
- <div style="display: inline-block">
- <div style="font-size: 24px">{{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, sizes, prev, pager, next, jumper"
- :total="parseInt(TeacherAllotList.pages)"
- ></el-pagination>
- </div>
- </div>
-
- <div class="showModel" @click="allShowModel(2)" v-if="isPigai"></div>
- <div class="model" style="width:50%" v-if="isPigai">
- <div class="model-text">
- <div class="model-text-head">
- <div>所有未批改作业</div>
- </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" style="width:50px;">
- <span>{{v.name}}</span>
- </div>
- <div class="tr-secon" style="width:60px;">{{v.spendTime}}</div>
- <div class="tr-secon">{{v.subject}}</div>
- <div class="tr-secon">{{v.grade}}</div>
- <div v-if="v.status === 1" class="tr-secon">未批改</div>
- <div v-if="v.status === 2" class="tr-secon">批改中</div>
- <div v-if="v.status === 3" class="tr-secon">已批改</div>
- <div class="tr-s">
- <el-button type="success" plain>去批改</el-button>
- <el-button type="success">去分配</el-button>
- </div>
- </div>
- <el-pagination
- background
- @size-change="handleSizeChange3"
- @current-change="pageChange3"
- :page-sizes="[10]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="parseInt(UnallotHomeworkInfo.pages)"
- ></el-pagination>
- </div>
- </div>
- </div>
-
- <div class="showModel" @click="allShowModel(3)" v-if="ModelAppor"></div>
- <div class="model" style="width:60%" v-if="ModelAppor">
- <div class="model-text">
- <div class="model-manager">
- <div>批改老师</div>
- <div>
- <img src="../../assets/img/del@2x.png" alt @click="allShowModel(3)">
- </div>
- </div>
- <div class="model-items" style="width:80%">
- <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/user.jpg"
- v-if="!GetTeacherDetail.imgUrl"
- alt
- class="model-items-first-img"
- >
- <div class="model-items-first-left" style="display:inline-block">
-
- <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 style="display:inline-block" v-if="this.TeacherIdStatus ==1 || 2 && this.TeacherIdStatus !==3">
- <el-button type="danger" icon="el-icon-close" plain round @click="isShow(GetTeacherDetail,6)"><i class="el-icon-bottom"></i><span>封号</span></el-button>
- <el-button type="success" icon="el-icon-upload2" plain round @click="isShow(GetTeacherDetail,5)"><i class="el-icon-bottom"></i><span>升级</span></el-button>
- </div>
- <div style="display:inline-block" v-if="this.TeacherIdStatus ==3">
- <el-button type="success" icon="el-icon-unlock" plain round @click="isShow(GetTeacherDetail,7)"><i class="el-icon-bottom"></i><span>解封</span></el-button>
- </div>
- </div>
- </div>
- <div class="model-items-other model-active">批改科目 : {{GetTeacherDetail.subject}}</div>
- <div class="model-items-other">
- 批改年级 :
- <span v-for="(v, k) of arrGrade" :key="k">{{v}},</span>
- </div>
- <div class="model-items-other model-active">
- 可批改时间:
- <el-button type="info" round>{{GetTeacherDetail.period}}</el-button>
- </div>
- <div class="model-items-other">手机号 : {{GetTeacherDetail.phone}}</div>
- <div class="model-items-other model-active">上次登录时间 : {{GetTeacherDetail.lastOnlineTime}}</div>
- <div class="model-items-other">批改正确率 : {{GetTeacherDetail.accuracyRate}}</div>
- <div class="model-items-other model-active-last">被报错总次数 : {{GetTeacherDetail.wrongCount}}</div>
- <div class="model-items-other">满意度 : {{GetTeacherDetail.satisfactionDegree}}</div>
- </div>
- </div>
- </div>
-
- <div class="showModel" @click="allShowModel(4)" v-if="ModelStudet"></div>
- <div class="model" style="width:20%;" 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>
-
- <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}}</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>
- </template>
- <script>
- import { mapGetters, mapActions } from "vuex";
- export default {
- components: {},
- name: "actvResolveLabel",
- props: {},
- data() {
- return {
- accessToken:localStorage.getItem("accessToken"),
- managerId: "",
-
- BASE_URL: "https://xt.sharingschool.com/upload/",
- isDownindex: "",
- modelindex: 0,
- TeacherIds:"",
- teacherClickId:"",
- TeacherIdStatus:"",
- TeacherName:"",
- values: [],
- arrGrade: [],
- OpenID:false,
- closeID:false,
- rePush:false,
- hiddenModel: false,
- isPigai: false,
- ModelAppor: false,
- ModelStudet: false,
- isDown: false,
- options: [
- {
- value: "0",
- label: "一年级"
- },
- {
- value: "1",
- label: "二年级"
- },
- {
- value: "2",
- label: "三年级"
- },
- {
- value: "3",
- label: "四年级"
- },
- {
- value: "4",
- label: "五年级"
- },
- {
- value: "5",
- label: "六年级"
- }
- ],
- grades: [
- {
- value: "0",
- label: "语文"
- },
- {
- value: "1",
- label: "数学"
- },
- {
- value: "2",
- label: "英语"
- }
- ],
- ItemList: [
- {
- text: "数据监控"
- },
- {
- text: "当天"
- },
- {
- text: "当月"
- }
- ],
- filters: {
-
-
- MaxtimeValue: "",
- OptionsValue: "",
- gradesValue: "",
- inputValue: "",
- pageNo: 1,
- pageSize: 10,
- count: 100,
- orderField: "",
- orderAD: "",
- managerId: ""
- },
- filters1: {
-
-
- MaxtimeValue: "",
- OptionsValue: "",
- gradesValue: "",
- inputValue: "",
- pageNo: 1,
- pageSize: 10,
- count: 0,
- orderField: "",
- orderAD: ""
- },
- filters2: {
-
-
- MaxtimeValue: "",
- 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: ""
- },
- AllotButton: ""
- };
- },
- created() {
- const managerId = this.$route.query.managerId;
- this.managerId = managerId;
- },
- computed: {
- ...mapGetters([
- "getUser",
- "monitorTeacherList",
- "TeacherHomeworkList",
- "TeacherAllotList",
- "TeacherAllotstatus",
- "DayTeacherList",
- "MothTeacherList",
- "UnallotHomeworkInfo",
- "GetTeacherDetail",
- "GetStudentDetail",
- "getTeacherIdStatus"
- ])
- },
- methods: {
- ...mapActions(["setUser"]),
-
- ToApporvalLine(){
- this.$router.push({
- path: "https://kmt.sharingschool.com/aijia/kmt/index.html?homeworkId=oPHg8wbCbIuZwq6NKEdEUPh6DQFM&accessToken=8wbCbIuZwq6NKEdEUPh6&state=1",
- })
- },
-
- dropDown(v, k) {
- this.isDown = !this.isDown;
- this.isDownindex = k;
- this.TeacherHomework(v);
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- async InfoWatch() {
- this.$store.dispatch("InfoWatch", {
- grade: this.filters.gradesValue,
- subject: this.filters.OptionsValue,
- teacherName: this.filters.inputValue,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.filters.pageNo,
- pageSize: this.filters.pageSize,
- managerId: this.managerId || ""
- });
- },
-
- async InfoWatchDay() {
- this.$store.dispatch("InfoWatchDay", {
- grade: this.filters1.gradesValue,
- subject: this.filters1.OptionsValue,
- teacherName: this.filters1.inputValue,
- maxCreateTime: this.filters1.MaxtimeValue,
- pageNo: this.filters1.pageNo,
- pageSize: this.filters1.pageSize,
- managerId: this.managerId || ""
- });
- },
-
- async InfoWatchMoth() {
- this.$store.dispatch("InfoWatchMoth", {
- grade: this.filters2.gradesValue,
- subject: this.filters2.OptionsValue,
- teacherName: this.filters2.inputValue,
- maxCreateTime: 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: this.homeworkLIst.pageNo,
- 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,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.allotList.pageNo,
- pageSize: this.allotList.pageSize
- });
- },
-
- async TeacherAllotfy() {
- this.$store.dispatch("TeacherAllotList", {
- grade: this.allotList.Allotgarde,
- subject: this.allotList.Allotsubjct,
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.allotList.pageNo,
- pageSize: this.allotList.pageSize
- });
- },
-
- async UnallotHomework() {
- this.$store.dispatch("UnallotHomeworkList", {
- maxCreateTime: this.filters.MaxtimeValue,
- pageNo: this.homeworkLIst.pageNo,
- pageSize: this.homeworkLIst.pageSize
- });
- },
-
- async GOtoTeacherAllot(v, k) {
- this.$store.dispatch("toTeacherAllot", {
- teacherId: v.teacherId,
- homeworkId: this.allotList.homeworkId
- });
- v.type = 1;
- this.$set(this.TeacherAllotList.list, k, v);
- },
-
- async CloseTeacherId() {
- this.closeID = false
- this.$store.dispatch("CloseIdTeacher", {
- teacherId: this.TeacherIds,
- operate: 2
- });
- },
-
- async RepushTeacherAcess() {
- this.rePush = false
- this.$store.dispatch("RepushTeacher", {
- teacherId: this.TeacherIds,
- operate: 1
- });
- },
-
- async OPenTeacherId() {
- this.OpenID = false
- this.$store.dispatch("OpenIdTeacher", {
- teacherId: this.TeacherIds,
- operate: 3
- });
- },
-
- async GetTeacherInfo(v) {
- this.$store.dispatch("GetTeacherDetail", {
- teacherId: v.teacherId
- });
- 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
- });
- },
- selectTitle(k) {
- this.modelindex = k;
- if (k === 0) {
- this.InfoWatch();
- }
- if (k === 1) {
- this.InfoWatchDay();
- }
- if (k === 2) {
- this.InfoWatchMoth();
- }
- },
- isShow(v, str) {
- let _this = this;
-
-
- if (str == 1) {
- _this.hiddenModel = true;
- 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.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;
- }
- },
-
- 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;
- }
- },
-
- 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;
- }
- },
- 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();
- },
-
- 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();
- },
-
- sortChange(sort) {
- this.filters.orderField = sort.prop;
- this.filters.orderAD = sort.order != null ? sort.order : "";
- this.itemListReshow();
- }
-
-
-
-
-
-
-
-
-
- },
- mounted() {
- this.InfoWatch();
-
-
-
- },
- watch:{
- getTeacherIdStatus(val, oldVal){
- this.InfoWatch();
- },
- }
- };
- </script>
- <style scoped>
- html,
- body {
- height: 100%;
- overflow: hidden;
- }
- .aside {
- background-color: #fff;
- margin-top: 16px;
- padding: 0;
- min-height: 880px;
- }
- .main {
- background-color: #fff;
- margin: 16px;
- padding: 0 !important;
- 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;
- }
- .main-items {
- color: #393939;
- text-align: center;
- line-height: 80px;
- }
- .main-header-item {
- font-size: 16px;
- }
- .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: 0 5px;
- }
- .input-with-select .el-input-group__prepend {
- background-color: #fff;
- }
- .active {
- background-color: #52cc60;
- color: #fff;
- }
- .el-input__inner {
- height: 32px;
- }
- .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%;
- }
- .tr {
- width: 100%;
- color: #393939;
- font-size: 20px;
- text-align: center;
- }
- .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: 20px;
- }
- .tr-secon {
- font-size: 12px;
- text-align: center;
- word-wrap: break-word;
- width: 40px;
- }
- .tr-second {
- background-color: #fbfbfb;
- margin: 0 115px;
- display: flex;
- justify-content: space-around;
- color: #393939;
- font-size: 20px;
- }
- .tr-seconds {
- text-align: center;
- font-size: 14px;
- word-wrap: break-word;
-
-
- }
- .tr-second-check {
- color: #3ab548;
- font-size: 17px;
- text-decoration: underline;
- }
- .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: 25%;
- margin: auto;
- background: #fff;
- border-radius: 30px;
- text-align: center;
- }
- .modelspec{
- z-index: 10000;
- width: 20%;
- height: auto;
- position: fixed;
- top: 30%;
- left: 35%;
- margin: auto;
- background: #fff;
- border-radius: 30px;
- 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: 20px;
- display: flex;
- justify-content: space-between;
- display: inline-block;
- }
- .model-items-left-top-img {
- width: 68px;
- height: 68px;
- border-radius: 8px;
- position: relative;
- bottom: 25px;
- }
- .main-gay{
- background:rgba(246,247,251,1);
- color: #7E7E7E;
- width: 50px;
- height: 30px;
- line-height:30px;
- cursor: pointer;
- }
- .model-grdeen{
- background-color: #52CC60;
- color: #fff;
- width: 50px;
- height: 30px;
- line-height:30px;
- cursor: pointer;
- }
- .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;
- }
- .el-pagination {
- padding: 30px;
- }
- </style>
|