|
@@ -3,7 +3,7 @@
|
|
|
* @Author: 旭颖
|
|
|
* @Date: 2023-03-22 11:54:21
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
- * @LastEditTime: 2023-03-23 20:06:09
|
|
|
+ * @LastEditTime: 2023-03-24 17:18:08
|
|
|
-->
|
|
|
<template>
|
|
|
<div class="tab-body" style="overflow: auto">
|
|
@@ -11,14 +11,16 @@
|
|
|
<div class="tips">
|
|
|
<span>姓名:{{ detail.staff ? detail.staff.true_name : "--" }}</span>
|
|
|
<span>学号:{{ detail.staff ? detail.staff.no : "--" }}</span>
|
|
|
- <span>班级::{{ detail.staff ? detail.staff.class : "--" }}</span>
|
|
|
+ <span>班级:{{ detail.staff ? detail.staff.class : "--" }}</span>
|
|
|
<span>支部:{{ detail.staff ? detail.staff.class : "--" }}</span>
|
|
|
- <span>分支:{{ detail.staff ? detail.staff.class : "--" }}</span>
|
|
|
+ <span
|
|
|
+ >分值:<span style="color: red">{{ detail.point || "--" }}</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="check">
|
|
|
<span
|
|
|
>审核状态:<el-tag
|
|
|
- v-if="detail.check_status == 0"
|
|
|
+ v-if="detail.check_status == 1"
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
>待审核</el-tag
|
|
@@ -40,10 +42,22 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
|
- <iframe :src="fileList[0].url" height="900px" width="100%" />
|
|
|
-
|
|
|
- <!-- v-if="detail.check_status == 1" -->
|
|
|
- <div class="button" @click="doCheck">审核</div>
|
|
|
+ <iframe
|
|
|
+ v-if="fileList && fileList.length > 0"
|
|
|
+ :src="fileList[0].url"
|
|
|
+ height="900px"
|
|
|
+ width="100%"
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ v-if="detail.check_status == 1 && can_check"
|
|
|
+ class="button"
|
|
|
+ @click="doCheck"
|
|
|
+ >
|
|
|
+ 审核
|
|
|
+ </div>
|
|
|
+ <div v-if="can_check" class="button change-page" @click="lastOne">
|
|
|
+ 下一个
|
|
|
+ </div>
|
|
|
<checkOut ref="check-out" @handle-close="handleClose" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -70,24 +84,27 @@ export default {
|
|
|
name: "",
|
|
|
examine_question_id: "",
|
|
|
id: "",
|
|
|
+ can_check: false,
|
|
|
+ type: 2, //当前信息
|
|
|
+ examine_id: "",
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ let roles = this.$store.state.user.roles;
|
|
|
+ if (roles.includes("Super admin") || roles.includes("Admin")) {
|
|
|
+ this.can_check = true;
|
|
|
+ }
|
|
|
let route = this.$route.query;
|
|
|
this.name = route.name;
|
|
|
- this.type = route.type;
|
|
|
- console.log(route, "routerouterouteroute");
|
|
|
this.id = route.id;
|
|
|
+ let role = route.role;
|
|
|
this.examine_question_id = route.examine_question_id;
|
|
|
- if (this.type == 1) {
|
|
|
- this.getDetail(route.examine_question_id);
|
|
|
+ if (role == "admin") {
|
|
|
+ this.examine_id = route.examine_id;
|
|
|
+ this.getDetailStu();
|
|
|
} else {
|
|
|
- let data = {
|
|
|
- type: route.type,
|
|
|
- examine_question_id: route.examine_question_id,
|
|
|
- examine_id: route.id,
|
|
|
- };
|
|
|
- this.getDetailStu(route.id);
|
|
|
+ this.type = route.type;
|
|
|
+ this.getDetail(route.examine_question_id);
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -118,10 +135,43 @@ export default {
|
|
|
this.fileList = arr;
|
|
|
console.log(data, "shujushushsu");
|
|
|
},
|
|
|
- async getDetailStu(id) {
|
|
|
- const { data } = await examineDetail({ id: id });
|
|
|
- console.log(data, "llll");
|
|
|
+ async getDetailStu() {
|
|
|
+ let route = this.$route.query;
|
|
|
+ let row = {
|
|
|
+ // type: route.type,
|
|
|
+ type: this.type,
|
|
|
+ examine_question_id: route.examine_question_id,
|
|
|
+ examine_id: this.examine_id,
|
|
|
+ };
|
|
|
+ const { data } = await examineDetail(row);
|
|
|
+ if (data.id) {
|
|
|
+ this.detail = data;
|
|
|
+ this.examine_id = data.id;
|
|
|
+ let data1 = data.resources;
|
|
|
+ this.point = data.point;
|
|
|
+ let arr = [];
|
|
|
+ for (let key in data1) {
|
|
|
+ arr.push({
|
|
|
+ id: key,
|
|
|
+ url: data1[key],
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.fileList = arr;
|
|
|
+ } else {
|
|
|
+ this.$message.warning("当前已是最后一条!");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //上一个
|
|
|
+ lastOne() {
|
|
|
+ this.type = 1;
|
|
|
+ this.getDetailStu();
|
|
|
},
|
|
|
+ // //下一个
|
|
|
+ // nextOne() {
|
|
|
+ // this.type = 1;
|
|
|
+ // this.examine_id = detail.id;
|
|
|
+ // this.getDetailStu();
|
|
|
+ // },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -140,6 +190,10 @@ export default {
|
|
|
font-size: 14px;
|
|
|
text-align: center;
|
|
|
margin-bottom: 10px;
|
|
|
+ span {
|
|
|
+ display: inline-block;
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
}
|
|
|
.check {
|
|
|
background-color: #ffe4e4ea;
|
|
@@ -148,12 +202,13 @@ export default {
|
|
|
padding: 10px 0;
|
|
|
text-align: center;
|
|
|
span {
|
|
|
+ display: inline-block;
|
|
|
margin-right: 20px;
|
|
|
}
|
|
|
}
|
|
|
.button {
|
|
|
position: fixed;
|
|
|
- bottom: 15vh;
|
|
|
+ bottom: 40vh;
|
|
|
right: 30px;
|
|
|
height: 70px;
|
|
|
width: 70px;
|
|
@@ -165,6 +220,15 @@ export default {
|
|
|
border-radius: 50%;
|
|
|
background-color: rgb(230, 88, 22);
|
|
|
text-align: center;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .change-page {
|
|
|
+ bottom: 30vh;
|
|
|
+ background-color: rgb(74, 172, 252);
|
|
|
+ }
|
|
|
+ .change-page-1 {
|
|
|
+ bottom: 20vh;
|
|
|
+ background-color: rgb(74, 172, 252);
|
|
|
}
|
|
|
}
|
|
|
</style>
|