|
|
@@ -241,7 +241,41 @@
|
|
|
<div>{{v.maxWaitTime}}</div>
|
|
|
<div style="width:200px;">{{v.totalCorrectTime}}</div>
|
|
|
<div>{{v.respSpeed}}</div>
|
|
|
- <div>已封号</div>
|
|
|
+ <div>
|
|
|
+ <span class="topictap">已封号</span>
|
|
|
+ <span class="topictap">{{v.bannedTime}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 已注销 -->
|
|
|
+ <div
|
|
|
+ v-if="v.status == '4'"
|
|
|
+ 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" />
|
|
|
+ <img
|
|
|
+ src="../../assets/img/attt.png"
|
|
|
+ alt
|
|
|
+ v-if="v.imgUrl ==''"
|
|
|
+ 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>
|
|
|
+ <span class="topictap">已注销</span>
|
|
|
+ <span class="topictap">{{v.cancelledTime}}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div
|
|
|
class="tr-setNo"
|
|
|
@@ -957,6 +991,14 @@
|
|
|
<div v-if="GetTeacherDetail.status ===0" class="Online">(离线)</div>
|
|
|
<div class="model-items-first-left-down">{{GetTeacherDetail.school}}</div>
|
|
|
</div>
|
|
|
+ <div class="closeTeacherID" v-if="this.teacherRoles != 11 && this.TeacherIdStatus !==3" @click="isShow(GetTeacherDetail,6)">
|
|
|
+ <span class="el-icon-close">封号</span>
|
|
|
+ </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
|
|
|
@@ -985,7 +1027,11 @@
|
|
|
被报错总次数 :
|
|
|
<span style="color:red;">{{GetTeacherDetail.wrongCount}}次</span>
|
|
|
</div>
|
|
|
- <!-- <div class="model-items-other">纠正次数 : {{GetTeacherDetail.correctNums}}次</div> -->
|
|
|
+ <div v-if="this.Activeindex == true" class="model-items-other">纠正次数 : {{GetTeacherDetail.correctNums}}次</div>
|
|
|
+ <div class="model-items-other ">本月封号次数 :
|
|
|
+ <span style="color:red;">{{GetTeacherDetail.bannedNums}}次</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="GetTeacherDetail.bannedLong" class="model-items-other model-active">距现在封号时长 : {{GetTeacherDetail.bannedLong}}</div>
|
|
|
<div
|
|
|
class="model-items-other"
|
|
|
v-if="this.Activeindex == false"
|
|
|
@@ -1025,6 +1071,48 @@
|
|
|
</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>
|
|
|
@@ -1051,6 +1139,8 @@ export default {
|
|
|
unionid: localStorage.getItem("unionid"),
|
|
|
accessToken: localStorage.getItem("accessToken"), //token
|
|
|
managerId: "", // 超级管理员登陆ID
|
|
|
+ TeacherIds: "", //封号,升级,解封
|
|
|
+ TeacherIdStatus:"",
|
|
|
ApporhomeworkId: "",
|
|
|
CurrthomeworkIdStatus: "",
|
|
|
BASE_URL: IMG_BASE_URL,
|
|
|
@@ -1085,6 +1175,8 @@ export default {
|
|
|
Timevalue: "",
|
|
|
startTime: "",
|
|
|
endTime: "",
|
|
|
+ OpenID:false,
|
|
|
+ closeID:false,
|
|
|
pickerOptions0: {
|
|
|
disabledDate(time) {
|
|
|
return time.getTime() > Date.now() - 8.64e6;
|
|
|
@@ -1278,18 +1370,14 @@ export default {
|
|
|
this.managerId = managerId;
|
|
|
},
|
|
|
watch: {
|
|
|
- getTeacherIdStatus(val, oldVal) {
|
|
|
- //普通的watch监听
|
|
|
- this.InfoWatch();
|
|
|
- },
|
|
|
BeforetoTeacherAllotCode(val, oldVal) {
|
|
|
//去批改前的watch监听
|
|
|
window.open(
|
|
|
APPOR_BASE_URL +
|
|
|
"?homeworkId=" +
|
|
|
this.ApporhomeworkId +
|
|
|
- "&unionid=" +
|
|
|
- this.unionid +
|
|
|
+ "&accessToken=" +
|
|
|
+ this.accessToken +
|
|
|
"&teacherId=" +
|
|
|
this.homeworkLIst.teacherId +
|
|
|
"&state=" +
|
|
|
@@ -1303,8 +1391,8 @@ export default {
|
|
|
APPOR_BASE_URL +
|
|
|
"?homeworkId=" +
|
|
|
this.CurrthomeworkIdStatus +
|
|
|
- "&unionid=" +
|
|
|
- this.unionid +
|
|
|
+ "&accessToken=" +
|
|
|
+ this.accessToken +
|
|
|
"&teacherId=" +
|
|
|
this.homeworkLIst.teacherId +
|
|
|
"&state=" +
|
|
|
@@ -1347,7 +1435,16 @@ export default {
|
|
|
if (this.Activeindex == true) {
|
|
|
this.unmatchHomework();
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ getTeacherIdStatus(val, oldVal) {
|
|
|
+ //普通的watch监听
|
|
|
+ if (this.Activeindex == false) {
|
|
|
+ this.InfoWatch();
|
|
|
+ }
|
|
|
+ if (this.Activeindex == true) {
|
|
|
+ this.InfoKonwTeacherWatchList();
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters([
|
|
|
@@ -1366,7 +1463,7 @@ export default {
|
|
|
"BeforetoTeacherstatues",
|
|
|
"InfoTeacherstatues",
|
|
|
"ApporingTeacherstatues",
|
|
|
- "currtHomeworkStatus"
|
|
|
+ "currtHomeworkStatus",
|
|
|
])
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -1426,6 +1523,24 @@ export default {
|
|
|
this.InfoKonwTeacherMonthApprvalList();
|
|
|
}
|
|
|
},
|
|
|
+ // 封号
|
|
|
+ async CloseTeacherId() {
|
|
|
+ this.closeID = false;
|
|
|
+ this.$store.dispatch("CloseIdTeacher", {
|
|
|
+ teacherId: this.TeacherIds,
|
|
|
+ operate: 2,
|
|
|
+ type: this.TeacherType
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 解封
|
|
|
+ async OPenTeacherId() {
|
|
|
+ this.OpenID = false;
|
|
|
+ this.$store.dispatch("OpenIdTeacher", {
|
|
|
+ teacherId: this.TeacherIds,
|
|
|
+ operate: 3,
|
|
|
+ type: this.TeacherType
|
|
|
+ });
|
|
|
+ },
|
|
|
// 获取校区管理员监控数据
|
|
|
async InfoWatch() {
|
|
|
this.isDown = false;
|
|
|
@@ -1799,6 +1914,8 @@ export default {
|
|
|
this.UnallotHomework();
|
|
|
} else if (str == 3) {
|
|
|
_this.ModelAppor = true;
|
|
|
+ this.TeacherIdStatus = v.status;
|
|
|
+ this.TeacherIds = v.teacherId;
|
|
|
this.teacherRoles = v.role;
|
|
|
this.GetTeacherInfo(v);
|
|
|
} else if (str == 4) {
|
|
|
@@ -1814,6 +1931,12 @@ export default {
|
|
|
this.AllinputValueAllot = "";
|
|
|
this.NoapporvalTeacherAllot(v);
|
|
|
// this.GetAllotManagerInfo()
|
|
|
+ } else if (str == 6) {
|
|
|
+ _this.closeID = true;
|
|
|
+ _this.ModelAppor = false;
|
|
|
+ } else if (str == 7) {
|
|
|
+ _this.OpenID = true;
|
|
|
+ _this.ModelAppor = false;
|
|
|
} else if (str == 10) {
|
|
|
_this.isPigai = true;
|
|
|
this.homeworkLIst.pageNo = 1;
|
|
|
@@ -1941,6 +2064,11 @@ export default {
|
|
|
} else if (str == 5) {
|
|
|
_this.NoAllotManagerModel = false;
|
|
|
}
|
|
|
+ else if (str == 6) {
|
|
|
+ _this.closeID = false;
|
|
|
+ } else if (str == 7) {
|
|
|
+ _this.OpenID = false;
|
|
|
+ }
|
|
|
},
|
|
|
// 数组去重
|
|
|
uniq(array) {
|
|
|
@@ -2492,7 +2620,7 @@ el-table {
|
|
|
width: 60%;
|
|
|
height: auto;
|
|
|
position: fixed;
|
|
|
- top: 15%;
|
|
|
+ top: 5%!important;
|
|
|
left: 30%;
|
|
|
margin: auto;
|
|
|
background: #fff;
|
|
|
@@ -2790,4 +2918,101 @@ el-table {
|
|
|
.el-date-editor .el-range-separator {
|
|
|
padding: 5px 20px 0px 10px !important;
|
|
|
}
|
|
|
+.topictap{
|
|
|
+ display:block;
|
|
|
+ height:25px;
|
|
|
+}
|
|
|
+.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;
|
|
|
+}
|
|
|
+.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;
|
|
|
+}
|
|
|
+.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-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-items {
|
|
|
+ font-size: 18px;
|
|
|
+}
|
|
|
+.model-btn {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ margin-bottom: 44px;
|
|
|
+}
|
|
|
+.main-gay {
|
|
|
+ background: rgba(246, 247, 251, 1);
|
|
|
+ color: #7e7e7e;
|
|
|
+ width: 154px;
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+.main-red {
|
|
|
+ background: #FF6465;
|
|
|
+ color: #ffff;
|
|
|
+ width: 180px;
|
|
|
+ height: 60px;
|
|
|
+ line-height: 60px;
|
|
|
+ cursor: pointer;
|
|
|
+ border-radius:30px;
|
|
|
+}
|
|
|
+.model-grdeen {
|
|
|
+ background-color: #52cc60;
|
|
|
+ color: #fff;
|
|
|
+ width: 154px;
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|