|
@@ -140,7 +140,6 @@
|
|
|
:header-cell-style="{ background: '#f1f1f1' }"
|
|
|
:row-class-name="tableRowClassName"
|
|
|
stripe
|
|
|
- v-if="cutTabNum ==0"
|
|
|
>
|
|
|
<el-table-column
|
|
|
prop="sName"
|
|
@@ -176,7 +175,9 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- {{ dyList[scope.row.stage].name ? dyList[scope.row.stage].name : scope.row.stage }}
|
|
|
+ <div v-if="scope.row.stage < dyList.length">
|
|
|
+ {{ dyList[scope.row.stage].name ? dyList[scope.row.stage].name : scope.row.stage }}
|
|
|
+ </div>
|
|
|
|
|
|
<!-- {{ dyList.length > 0 ? dyList[!scope.row.stage ? 0 : scope.row.stage ].name : "" }} -->
|
|
|
<!-- {{ scope.row.stage,dyList }} -->
|
|
@@ -192,13 +193,15 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- {{
|
|
|
- dyList.length > 0
|
|
|
- ? dyList[!scope.row.stage ? 0 : scope.row.stage].taskList[!scope.row.task ? 0 : scope.row.task]
|
|
|
- ? dyList[!scope.row.stage ? 0 : scope.row.stage].taskList[!scope.row.task ? 0 : scope.row.task].name
|
|
|
- : ""
|
|
|
- : ""
|
|
|
- }}
|
|
|
+ <div v-if="scope.row.stage < dyList.length">
|
|
|
+ <div v-if="scope.row.task < dyList[scope.row.stage].taskList.length">
|
|
|
+ {{
|
|
|
+ dyList[scope.row.stage].taskList[scope.row.task].name
|
|
|
+ ? dyList[scope.row.stage].taskList[scope.row.task].name
|
|
|
+ : scope.row.task
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -242,192 +245,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
- <el-table
|
|
|
- ref="table"
|
|
|
- :data="tableData"
|
|
|
- border
|
|
|
- :height="tableHeight"
|
|
|
- :fit="true"
|
|
|
- v-loading="isLoading"
|
|
|
- style="width: 100%"
|
|
|
- :header-cell-style="{ background: '#f1f1f1' }"
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- stripe
|
|
|
- v-if="cutTabNum == 1"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- prop="sName"
|
|
|
- label="姓名"
|
|
|
- min-width="15"
|
|
|
- align="center"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="class"
|
|
|
- label="班级"
|
|
|
- min-width="20"
|
|
|
- align="center"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>{{ scope.row.class ? scope.row.class : "暂无班级" }}</div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column
|
|
|
- prop="course"
|
|
|
- label="阶段"
|
|
|
- min-width="20"
|
|
|
- align="center"
|
|
|
- show-overflow-tooltip
|
|
|
- v-if="DState == 1"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- {{ dyList[scope.row.stage].name ? dyList[scope.row.stage].name : scope.row.stage }}
|
|
|
-
|
|
|
- <!-- {{ dyList.length > 0 ? dyList[!scope.row.stage ? 0 : scope.row.stage ].name : "" }} -->
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="course"
|
|
|
- label="任务"
|
|
|
- min-width="20"
|
|
|
- align="center"
|
|
|
- show-overflow-tooltip
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- {{
|
|
|
- dyList.length > 0
|
|
|
- ? dyList[!scope.row.stage ? 0 : scope.row.stage].taskList[!scope.row.task ? 0 : scope.row.task]
|
|
|
- ? dyList[!scope.row.stage ? 0 : scope.row.stage].taskList[!scope.row.task ? 0 : scope.row.task].name
|
|
|
- : ""
|
|
|
- : ""
|
|
|
- }}
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="time"
|
|
|
- label="时间"
|
|
|
- width="100px"
|
|
|
- align="center"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column align="center" label="操作" width="260px">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="
|
|
|
- lookWork(scope.row.id, scope.row.userid, 0, scope.$index)
|
|
|
- "
|
|
|
- >查看&批改</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="
|
|
|
- lookWork2(scope.row.id, scope.row.userid, scope.row.courseid)
|
|
|
- "
|
|
|
- >导出作业</el-button
|
|
|
- >
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
- <el-table
|
|
|
- ref="table"
|
|
|
- :data="tableData"
|
|
|
- border
|
|
|
- :height="tableHeight"
|
|
|
- :fit="true"
|
|
|
- v-loading="isLoading"
|
|
|
- style="width: 100%"
|
|
|
- :header-cell-style="{ background: '#f1f1f1' }"
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- stripe
|
|
|
- v-if="cutTabNum == 2"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- prop="sName"
|
|
|
- label="阶段"
|
|
|
- min-width="15"
|
|
|
- align="center"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="class"
|
|
|
- label="班级"
|
|
|
- min-width="20"
|
|
|
- align="center"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>{{ scope.row.class ? scope.row.class : "暂无班级" }}</div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column
|
|
|
- prop="course"
|
|
|
- label="阶段"
|
|
|
- min-width="20"
|
|
|
- align="center"
|
|
|
- show-overflow-tooltip
|
|
|
- v-if="DState == 1"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- {{ dyList[scope.row.stage].name ? dyList[scope.row.stage].name : scope.row.stage }}
|
|
|
-
|
|
|
- <!-- {{ dyList.length > 0 ? dyList[!scope.row.stage ? 0 : scope.row.stage ].name : "" }} -->
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="course"
|
|
|
- label="任务"
|
|
|
- min-width="20"
|
|
|
- align="center"
|
|
|
- show-overflow-tooltip
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- {{
|
|
|
- dyList.length > 0
|
|
|
- ? dyList[!scope.row.stage ? 0 : scope.row.stage].taskList[!scope.row.task ? 0 : scope.row.task]
|
|
|
- ? dyList[!scope.row.stage ? 0 : scope.row.stage].taskList[!scope.row.task ? 0 : scope.row.task].name
|
|
|
- : ""
|
|
|
- : ""
|
|
|
- }}
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="time"
|
|
|
- label="时间"
|
|
|
- width="100px"
|
|
|
- align="center"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column align="center" label="操作" width="260px">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="
|
|
|
- lookWork(scope.row.id, scope.row.userid, 0, scope.$index)
|
|
|
- "
|
|
|
- >查看&批改</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="
|
|
|
- lookWork2(scope.row.id, scope.row.userid, scope.row.courseid)
|
|
|
- "
|
|
|
- >导出作业</el-button
|
|
|
- >
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|