|
@@ -39,7 +39,7 @@
|
|
|
>
|
|
|
<div
|
|
|
class="navTask"
|
|
|
- @click="openTask(dy.id, nav.id)"
|
|
|
+ @click="openTask(dy.id, nav.id, dyIndex, navIndex)"
|
|
|
:class="{
|
|
|
openTaskActive:
|
|
|
nav.id == taskCount &&
|
|
@@ -2650,15 +2650,19 @@ export default {
|
|
|
// this.stageIndex = s;
|
|
|
this.dyList2[s].isOpen = !this.dyList2[s].isOpen;
|
|
|
},
|
|
|
- openTask(s, i) {
|
|
|
- var a = s + "-" + i;
|
|
|
- var b = document.getElementById(a);
|
|
|
- var d = b.getAttribute("scrollindex");
|
|
|
- var c = document.getElementsByClassName("shuBox")[0];
|
|
|
- c.scrollTop = parseInt(d) * 375;
|
|
|
- this.stageIndex = s;
|
|
|
- this.taskCount = i;
|
|
|
- this.navId = a;
|
|
|
+ openTask(s, i, dyi, navi) {
|
|
|
+ if (!this.dyList2[dyi].taskList[navi].isWork) {
|
|
|
+ this.$message.warning("该任务暂时没提交作业");
|
|
|
+ } else {
|
|
|
+ var a = s + "-" + i;
|
|
|
+ var b = document.getElementById(a);
|
|
|
+ var d = b.getAttribute("scrollindex");
|
|
|
+ var c = document.getElementsByClassName("shuBox")[0];
|
|
|
+ c.scrollTop = parseInt(d) * 375;
|
|
|
+ this.stageIndex = s;
|
|
|
+ this.taskCount = i;
|
|
|
+ this.navId = a;
|
|
|
+ }
|
|
|
},
|
|
|
async generate(a) {
|
|
|
// 将html文件中需要用到的数据挂载到store上
|