|
@@ -12,8 +12,6 @@
|
|
|
@click="AutoApor()"
|
|
|
:class="{Apporvalactive:Activeindex == true,ApporStyles:true}"
|
|
|
>匹配知识点老师</div>
|
|
|
- <!-- <span class="bank-active" @click="isShow(2)">查看</span>
|
|
|
- <span class="bank-active" @click="groupPicture()">作业原图</span> -->
|
|
|
</el-col>
|
|
|
<el-col :span="14" :offset="0">
|
|
|
<div class="teach-block">
|
|
@@ -24,10 +22,7 @@
|
|
|
v-model="filters.inputValue"
|
|
|
class="miniorinput-with-Allot"
|
|
|
/>
|
|
|
- <span
|
|
|
- @click="UnallotHomework()"
|
|
|
- class="miinorSeachIcon el-icon-search"
|
|
|
- ></span>
|
|
|
+ <span @click="UnallotHomework()" class="miinorSeachIcon el-icon-search"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -56,36 +51,87 @@
|
|
|
<el-table-column prop="picNums" label="张数" header-align="center"></el-table-column>
|
|
|
<el-table-column prop="status" label="状态" header-align="center" v-if="Activeindex == false">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.status ==1 " >未分配</span>
|
|
|
- <span v-if="scope.row.status ==2 " >已分配未批改</span>
|
|
|
- <span v-if="scope.row.status ==3 " >批改中</span>
|
|
|
+ <span v-if="scope.row.status ==1 ">未分配</span>
|
|
|
+ <span v-if="scope.row.status ==2 ">已分配未批改</span>
|
|
|
+ <span v-if="scope.row.status ==3 ">批改中</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="status" label="状态" header-align="center" v-if="Activeindex == true">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.status ==1 " >未分配</span>
|
|
|
- <span v-if="scope.row.status ==2 " >已分配未匹配</span>
|
|
|
- <span v-if="scope.row.status ==3 " >匹配中</span>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.status ==1 ">未分配</span>
|
|
|
+ <span v-if="scope.row.status ==2 ">已分配未匹配</span>
|
|
|
+ <span v-if="scope.row.status ==3 ">匹配中</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="waitTime" label="等待时长" header-align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span
|
|
|
+ :class="[timeFn(scope.row.waitTime) >= 600 ?'date-time-red':'']"
|
|
|
+ >{{scope.row.waitTime}}</span>
|
|
|
+ <!-- @click="isShow(3,scope.row)" -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="waitTime" label="等待时长" header-align="center"></el-table-column>
|
|
|
<el-table-column prop label="批改老师" header-align="center" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
- <span class="bank-active" >{{scope.row.teacherName}}</span>
|
|
|
+ <span class="bank-active">{{scope.row.teacherName}}</span>
|
|
|
<!-- @click="isShow(3,scope.row)" -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="statusTime" label="状态时间" header-align="center"></el-table-column>
|
|
|
<el-table-column prop label="作业图片" header-align="center" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
- <span style="color:#67c23a" class="bank-active" @click="GetStudentHomeworkDetail(scope.row)">查看</span>
|
|
|
+ <span
|
|
|
+ style="color:#67c23a"
|
|
|
+ class="bank-active"
|
|
|
+ @click="GetStudentHomeworkDetail(scope.row)"
|
|
|
+ >查看</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="status" label header-align="left" width="200">
|
|
|
+ <!-- 校区管理员批改/分配按钮 -->
|
|
|
+ <el-table-column prop="status" label header-align="left" width="400" v-if="SchoolData ==1">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-if="scope.row.status !==3 " class="UpTeacherIDiNfo" @click="isShow(1,scope.row)">
|
|
|
+ <!-- SchoolData -->
|
|
|
+ <!-- 校区管理员批改/分配按钮 -->
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.canCorrect ==1 && Activeindex == false"
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ @click="AllToAppovalOline(scope.row)"
|
|
|
+ >
|
|
|
+ <span>去批改</span>
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.canAllot ==1"
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ @click="isShow(1,scope.row)"
|
|
|
+ >
|
|
|
<span>分配</span>
|
|
|
- </div>
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 超级管理员批改按钮 -->
|
|
|
+ <el-table-column prop="status" label header-align="left" width="400" v-if="SchoolData ==0">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <!-- SchoolData -->
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.canCorrect ==1 && SchoolData ==0"
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ @click="AllToAppovalOline(scope.row)"
|
|
|
+ >
|
|
|
+ <span v-if="Activeindex == false">去批改</span>
|
|
|
+ <span v-if="Activeindex == true">去匹配</span>
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.canAllot ==1"
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ @click="isShow(1,scope.row)"
|
|
|
+ >
|
|
|
+ <span>分配</span>
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -94,8 +140,7 @@
|
|
|
background
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="pageChange"
|
|
|
- :page-sizes="[10, 20, 30, 40]"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
:total="parseInt(StudentHomeworkNoFeedbackList.pages)"
|
|
|
></el-pagination>
|
|
|
<!--可分配老师-->
|
|
@@ -429,15 +474,21 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { mapGetters, mapActions } from "vuex";
|
|
|
-import { IMG_BASE_URL } from "@/config";
|
|
|
+import { IMG_BASE_URL, APPOR_BASE_URL } from "@/config";
|
|
|
export default {
|
|
|
components: {},
|
|
|
name: "actvResolveLabel",
|
|
|
- props: {},
|
|
|
+ props: ["SchoolData"],
|
|
|
data() {
|
|
|
return {
|
|
|
+ D: new Date().getDate() + " ",
|
|
|
+ Nowyear: new Date().getFullYear(),
|
|
|
+ Nowmonth: new Date().getMonth() + 1,
|
|
|
+ unionid: localStorage.getItem("unionid"),
|
|
|
BASE_URL: IMG_BASE_URL,
|
|
|
hiddenModel: false,
|
|
|
+ ApporhomeworkId: "",
|
|
|
+ TeacherApporvalStyle: 1,
|
|
|
OpenID: false, //解封校区管理员弹框
|
|
|
closeID: false, //封号校区管理员弹框
|
|
|
rePush: false, //升级校区管理员弹框
|
|
@@ -473,15 +524,34 @@ export default {
|
|
|
created() {},
|
|
|
watch: {
|
|
|
BeforetoTeacherstatues(val, oldVal) {
|
|
|
- this.UnallotHomework();
|
|
|
+ this.UnallotHomework();
|
|
|
},
|
|
|
- InfoTeacherstatues(val, oldVal) {
|
|
|
+ InfoTeacherstatues(val, oldVal) {
|
|
|
this.pesiorFun();
|
|
|
},
|
|
|
- ApporingTeacherstatues(val, oldVal) {
|
|
|
- this.hiddenModel = false;
|
|
|
- this.UnallotHomework();
|
|
|
+ ApporingTeacherstatues(val, oldVal) {
|
|
|
+ this.hiddenModel = false;
|
|
|
+ this.UnallotHomework();
|
|
|
},
|
|
|
+ NewstudentBeforetoTeacherAllotCode(val, oldVal) {
|
|
|
+ //去批改前的watch监听
|
|
|
+ // debugger
|
|
|
+ console.log(111111111111111111111111111111111);
|
|
|
+ console.log(this.ApporhomeworkId);
|
|
|
+ console.log(this.homeworkLIst.teacherId);
|
|
|
+ console.log(111111111111111111111111111111111);
|
|
|
+ window.open(
|
|
|
+ APPOR_BASE_URL +
|
|
|
+ "?homeworkId=" +
|
|
|
+ this.ApporhomeworkId +
|
|
|
+ "&unionid=" +
|
|
|
+ this.unionid +
|
|
|
+ "&teacherId=" +
|
|
|
+ this.homeworkLIst.teacherId +
|
|
|
+ "&state=" +
|
|
|
+ this.TeacherApporvalStyle
|
|
|
+ );
|
|
|
+ }
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters([
|
|
@@ -490,8 +560,9 @@ export default {
|
|
|
"GetTeacherDetail",
|
|
|
"getAllotManagerList",
|
|
|
"StudentHomeworkNoFeedbackList",
|
|
|
- "InfoTeacherstatues",
|
|
|
- "ApporingTeacherstatues"
|
|
|
+ "InfoTeacherstatues",
|
|
|
+ "ApporingTeacherstatues",
|
|
|
+ "NewstudentBeforetoTeacherAllotCode"
|
|
|
])
|
|
|
},
|
|
|
methods: {
|
|
@@ -556,7 +627,24 @@ export default {
|
|
|
_this.ModelAppor = false;
|
|
|
}
|
|
|
},
|
|
|
- async pesiorFun() {
|
|
|
+ timeFn(d1) {
|
|
|
+ const hour = d1.split(":")[0];
|
|
|
+ const min = d1.split(":")[1];
|
|
|
+ const sec = d1.split(":")[2];
|
|
|
+ const s = Number(hour * 3600) + Number(min * 60) + Number(sec);
|
|
|
+ return s;
|
|
|
+ },
|
|
|
+ // 所有未批改去批改前分配老师
|
|
|
+ async AllToAppovalOline(v) {
|
|
|
+ this.ApporhomeworkId = v.homeworkId;
|
|
|
+ this.homeworkLIst.teacherId = v.teacherId;
|
|
|
+ this.$store.dispatch("NewStudentBeforetoTeacherAllot", {
|
|
|
+ teacherId: localStorage.getItem("userId"),
|
|
|
+ homeworkId: v.homeworkId,
|
|
|
+ originTeacherId: v.teacherId
|
|
|
+ });
|
|
|
+ },
|
|
|
+ async pesiorFun() {
|
|
|
var arr = this.GetTeacherDetail.grade.split(",");
|
|
|
this.arrPeriod = this.GetTeacherDetail.period.split(",");
|
|
|
var arrList = [];
|
|
@@ -576,17 +664,17 @@ export default {
|
|
|
// debugger
|
|
|
this.$store.dispatch("GetStudentHomeworkDetail", {
|
|
|
teacherId: v.teacherId,
|
|
|
- homeworkId:v.homeworkId,
|
|
|
- type: this.TeacherType
|
|
|
+ homeworkId: v.homeworkId,
|
|
|
+ type: this.TeacherType
|
|
|
});
|
|
|
- this.$router.push({
|
|
|
+ this.$router.push({
|
|
|
path: "/Super/HomeWorkPictrue"
|
|
|
});
|
|
|
},
|
|
|
// 查看老师详情信息
|
|
|
async GetTeacherInfo() {
|
|
|
this.$store.dispatch("GetTeacherDetail", {
|
|
|
- teacherId:this.TeacherIds
|
|
|
+ teacherId: this.TeacherIds
|
|
|
});
|
|
|
},
|
|
|
// 封号
|
|
@@ -630,12 +718,14 @@ export default {
|
|
|
this.Activeindex = false;
|
|
|
this.TeacherType = 8;
|
|
|
this.filters.inputValue = "";
|
|
|
+ this.TeacherApporvalStyle = 1;
|
|
|
this.UnallotHomework();
|
|
|
},
|
|
|
// 匹配知识点老师
|
|
|
AutoApor() {
|
|
|
this.Activeindex = true;
|
|
|
this.TeacherType = 13;
|
|
|
+ this.TeacherApporvalStyle = 3;
|
|
|
this.filters.inputValue = "";
|
|
|
this.UnallotHomework();
|
|
|
},
|
|
@@ -1122,4 +1212,7 @@ el-table {
|
|
|
border-radius: 0 0 30px 30px;
|
|
|
background-color: #f6f7fb;
|
|
|
}
|
|
|
+.date-time-red {
|
|
|
+ color: red;
|
|
|
+}
|
|
|
</style>
|