Commit 25e404be authored by 杨梦雪's avatar 杨梦雪

111

parent f6720d53
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"dependencies": { "dependencies": {
"axios": "^0.21.4", "axios": "^0.21.4",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"default-passive-events": "^2.0.0",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"node-sass": "^6.0.1", "node-sass": "^6.0.1",
...@@ -5698,6 +5699,11 @@ ...@@ -5698,6 +5699,11 @@
"node": ">= 8" "node": ">= 8"
} }
}, },
"node_modules/default-passive-events": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/default-passive-events/-/default-passive-events-2.0.0.tgz",
"integrity": "sha512-eMtt76GpDVngZQ3ocgvRcNCklUMwID1PaNbCNxfpDXuiOXttSh0HzBbda1HU9SIUsDc02vb7g9+3I5tlqe/qMQ=="
},
"node_modules/defaults": { "node_modules/defaults": {
"version": "1.0.3", "version": "1.0.3",
"integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=",
...@@ -19738,6 +19744,11 @@ ...@@ -19738,6 +19744,11 @@
} }
} }
}, },
"default-passive-events": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/default-passive-events/-/default-passive-events-2.0.0.tgz",
"integrity": "sha512-eMtt76GpDVngZQ3ocgvRcNCklUMwID1PaNbCNxfpDXuiOXttSh0HzBbda1HU9SIUsDc02vb7g9+3I5tlqe/qMQ=="
},
"defaults": { "defaults": {
"version": "1.0.3", "version": "1.0.3",
"integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=",
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"dependencies": { "dependencies": {
"axios": "^0.21.4", "axios": "^0.21.4",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"default-passive-events": "^2.0.0",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"node-sass": "^6.0.1", "node-sass": "^6.0.1",
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
if (code.indexOf("-") !== -1) { if (code.indexOf("-") !== -1) {
//如果是复制过来的带'-'邀请码 //如果是复制过来的带'-'邀请码
let copyCode = code.split("-"); let copyCode = code.split("-");
console.log(copyCode, "输入222"); // console.log(copyCode, "输入222");
this.invatation1 = copyCode[0]; this.invatation1 = copyCode[0];
this.invatation2 = copyCode[1]; this.invatation2 = copyCode[1];
this.invatation3 = copyCode[2]; this.invatation3 = copyCode[2];
......
...@@ -8,7 +8,7 @@ import ElementUI from 'element-ui' ...@@ -8,7 +8,7 @@ import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/scss/index.scss' import '@/assets/scss/index.scss'
import {download, upload} from "r/index/network.js"; import {download, upload} from "r/index/network.js";
import 'default-passive-events'
Vue.config.productionTip = false Vue.config.productionTip = false
......
...@@ -14,7 +14,7 @@ import { ...@@ -14,7 +14,7 @@ import {
import { import {
Message Message
} from 'element-ui'; } from 'element-ui';
Vue.prototype.$message = Message; Vue.prototype.$message = Message;
Vue.use(VueRouter) Vue.use(VueRouter)
...@@ -115,23 +115,7 @@ function checkCam(code, cb) { ...@@ -115,23 +115,7 @@ function checkCam(code, cb) {
} }
getCam(code).then((res) => { getCam(code).then((res) => {
// console.log(res)
// if (res.data.code != 200) {
// Message({
// message: "请访问正确的营地链接地址",
// type: 'waring'
// });
// if (res.data.code == 400034 || res.data.code == 400035 || res.data.code == 400001 || res.data.code == 400002 || res.data.code == 400003) {
// Message({
// message: res.data.message,
// type: 'waring'
// });
// cb && cb(false);
// return false;
// }
// }
let root = document.querySelector(":root"); let root = document.querySelector(":root");
root.style.setProperty("--color", res.data.system_color); root.style.setProperty("--color", res.data.system_color);
root.style.setProperty("--bk_pic", res.data.background_picture); //当前营地的背景图 root.style.setProperty("--bk_pic", res.data.background_picture); //当前营地的背景图
...@@ -158,7 +142,7 @@ function checkCam(code, cb) { ...@@ -158,7 +142,7 @@ function checkCam(code, cb) {
} }
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
// console.log(to, 'to') console.log(to, 'to')
// console.log(from, 'from') // console.log(from, 'from')
let let
toLogin = "/login", toLogin = "/login",
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
<span class="status_1" v-if="item.student_status == 1">待评阅</span> <span class="status_1" v-if="item.student_status == 1">待评阅</span>
<span class="status_2" v-if="item.student_status == 2">已评阅</span> <span class="status_2" v-if="item.student_status == 2">已评阅</span>
</div> </div>
<!-- <el-button class="btn_refer" @click="toRefer(item)"
>查看作业</el-button
> -->
<el-button <el-button
class="btn_refer" class="btn_refer"
:disabled=" :disabled="
...@@ -58,6 +62,7 @@ ...@@ -58,6 +62,7 @@
<!-- 下载作业 --> <!-- 下载作业 -->
<refer <refer
:dialogVisibleFu="dialogVisibleFu" :dialogVisibleFu="dialogVisibleFu"
:timeOut="time_out"
:work_contexts="work_context" :work_contexts="work_context"
:enclosure_urls="enclosure_url" :enclosure_urls="enclosure_url"
:work_nums="work_num" :work_nums="work_num"
...@@ -86,8 +91,10 @@ export default { ...@@ -86,8 +91,10 @@ export default {
total: 0, total: 0,
homeworkList: [], homeworkList: [],
dialogVisibleFu: false, dialogVisibleFu: false,
timeOut: 1, //提交作业时间状态
work_context: "", work_context: "",
enclosure_url: "", enclosure_url: "",
time_out: 0,
work_num: 0, work_num: 0,
workName: "", workName: "",
order_num: 0, order_num: 0,
...@@ -116,8 +123,12 @@ export default { ...@@ -116,8 +123,12 @@ export default {
}, },
toRefer(item) { toRefer(item) {
//time_out:提交作业时间状态 //time_out:提交作业时间状态
if (item.time_out == 1) { if (item.time_out == 1 || 3) {
if (item.is_submit == 1) { // if (item.is_submit == 1) {
// }
if (item.time_out == 3) {
this.time_out = item.time_out;
console.log(this.timeOut, "this.timeOut ");
} }
this.dialogVisibleFu = true; this.dialogVisibleFu = true;
// console.log(item.work_num,'val') // console.log(item.work_num,'val')
...@@ -129,9 +140,11 @@ export default { ...@@ -129,9 +140,11 @@ export default {
this.student_status = item.student_status; this.student_status = item.student_status;
} else if (item.time_out == 2) { } else if (item.time_out == 2) {
return this.$message.error("填写作业时间未开始"); return this.$message.error("填写作业时间未开始");
} else if (item.time_out == 3) {
return this.$message.error("填写作业时间已截止");
} }
// else if (item.time_out == 3) {
// return this.$message.error("填写作业时间已截止");
// }
}, },
getTeacherWork() { getTeacherWork() {
getTeacherWork({ page: this.currentPage }).then((res) => { getTeacherWork({ page: this.currentPage }).then((res) => {
......
...@@ -212,12 +212,14 @@ ...@@ -212,12 +212,14 @@
<span>评阅结果</span> <span>评阅结果</span>
</div> </div>
</div> </div>
<!-- <div class="cont_title_2">导师评分</div> <div v-if="this.time_out != 3" class="cont_title_2">导师评分</div>
<div class="cont_info">{{ score }}</div> --> <div v-if="this.time_out != 3" class="cont_info">{{ score }}</div>
<div class="cont_title_2">导师评语</div>
<div v-html="teacher_commment" class="cont_info">}</div>
<div class="cont_title_2">相关附件</div> <div v-if="this.time_out == 3" class="cont_title_2">导师评语</div>
<div class="upload_box"> <div v-if="this.time_out == 3" v-html="teacher_commment" class="cont_info">}</div>
<div v-if="this.time_out != 3" class="cont_title_2">相关附件</div>
<div v-if="this.time_out != 3" class="upload_box">
<div v-if="tea_scoreFileList.length > 0"> <div v-if="tea_scoreFileList.length > 0">
<div <div
class="img_list" class="img_list"
...@@ -270,6 +272,7 @@ export default { ...@@ -270,6 +272,7 @@ export default {
name: "ReadForm", name: "ReadForm",
props: { props: {
dialogVisibleFu: Boolean, dialogVisibleFu: Boolean,
timeOut: [Number, String], //判断是超时
work_contexts: [Number, String], //作业内容 work_contexts: [Number, String], //作业内容
enclosure_urls: [Object, String], //老师作业地址 enclosure_urls: [Object, String], //老师作业地址
work_nums: [Number], work_nums: [Number],
...@@ -315,6 +318,7 @@ export default { ...@@ -315,6 +318,7 @@ export default {
isUploading: false, // 图片上传蒙层 isUploading: false, // 图片上传蒙层
work_context: "", //简介 work_context: "", //简介
work_name: "", //作业名称 work_name: "", //作业名称
time_out: 1,
fileImg: fileImg, fileImg: fileImg,
loading: false, loading: false,
dialogVisible: this.dialogVisibleFu, dialogVisible: this.dialogVisibleFu,
...@@ -329,13 +333,14 @@ export default { ...@@ -329,13 +333,14 @@ export default {
teaFileList: [], // 老师-布置作业附件 teaFileList: [], // 老师-布置作业附件
fileList: [], //学生上传的作业文件 fileList: [], //学生上传的作业文件
stu_fileList: [], //学生上传的文件(传给接口的格式) stu_fileList: [], //学生上传的文件(传给接口的格式)
// score: "", //老师评分 score: "", //老师评分
teacher_commment: "", //老师评语 teacher_commment: "", //老师评语
tea_scoreFileList: [], //老师评语的附件 tea_scoreFileList: [], //老师评语的附件
srcList: [], //在线预览图片-放大 srcList: [], //在线预览图片-放大
}; };
}, },
created() { created() {
// console.log(this.formData.stu_enclosure_url); // console.log(this.formData.stu_enclosure_url);
let code = this.$store.state.indexIdentity; let code = this.$store.state.indexIdentity;
let stu_fileListoss = window.localStorage.getItem( let stu_fileListoss = window.localStorage.getItem(
...@@ -347,6 +352,8 @@ export default { ...@@ -347,6 +352,8 @@ export default {
}, },
methods: { methods: {
open() { open() {
console.log(this.timeOut)
console.log(this.time_out)
// console.log(this.student_status); // console.log(this.student_status);
this.titleName = this.order_nums; this.titleName = this.order_nums;
// console.log(this.student_status); // console.log(this.student_status);
...@@ -458,7 +465,7 @@ export default { ...@@ -458,7 +465,7 @@ export default {
}; };
}); });
} }
// this.score = res.data.data.score; //老师评分 this.score = res.data.data.score; //老师评分
this.teacher_commment = res.data.data.teacher_commment; //老师评语 this.teacher_commment = res.data.data.teacher_commment; //老师评语
// console.log(res.data.data.teacher_commment, " this.teacher_commment"); // console.log(res.data.data.teacher_commment, " this.teacher_commment");
let scoreFileList = res.data.data.teacher_url; let scoreFileList = res.data.data.teacher_url;
...@@ -768,6 +775,10 @@ export default { ...@@ -768,6 +775,10 @@ export default {
workName() { workName() {
this.work_name = this.workName; this.work_name = this.workName;
}, },
timeOut() {
this.time_out = this.timeOut;
console.log(this.time_out, "timeout");
},
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment