|
@@ -178,6 +178,9 @@
|
|
<el-tooltip content="查看" placement="top" effect="dark">
|
|
<el-tooltip content="查看" placement="top" effect="dark">
|
|
<span class="check" @click="checkToTest(item.courseId)"></span>
|
|
<span class="check" @click="checkToTest(item.courseId)"></span>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
|
+ <el-tooltip content="复制" placement="top" effect="dark">
|
|
|
|
+ <span class="copy" @click="copyTest(item.courseId)"></span>
|
|
|
|
+ </el-tooltip>
|
|
<el-tooltip content="提醒" placement="top" effect="dark">
|
|
<el-tooltip content="提醒" placement="top" effect="dark">
|
|
<span class="share" @click="shareTest(item)" v-if="((item.userid == userid) ||
|
|
<span class="share" @click="shareTest(item)" v-if="((item.userid == userid) ||
|
|
(item.course_teacher &&
|
|
(item.course_teacher &&
|
|
@@ -230,7 +233,8 @@
|
|
v-if="((scope.row.userid == userid) ||
|
|
v-if="((scope.row.userid == userid) ||
|
|
(scope.row.course_teacher &&
|
|
(scope.row.course_teacher &&
|
|
scope.row.course_teacher.indexOf(userid) !== -1) || role == '1')">编辑</el-button>
|
|
scope.row.course_teacher.indexOf(userid) !== -1) || role == '1')">编辑</el-button>
|
|
- <el-button @click="checkToTest(scope.row.courseId)" type="text" size="small">详情</el-button>
|
|
|
|
|
|
+ <el-button @click="checkToTest(scope.row.courseId)" type="text" size="small">查看</el-button>
|
|
|
|
+ <el-button @click="copyTest(scope.row.courseId)" type="text" size="small">复制</el-button>
|
|
<el-button @click="shareTest(scope.row)" type="text" size="small">提醒</el-button>
|
|
<el-button @click="shareTest(scope.row)" type="text" size="small">提醒</el-button>
|
|
<el-button @click="deleteCourse(scope.row.courseId)" type="text" size="small"
|
|
<el-button @click="deleteCourse(scope.row.courseId)" type="text" size="small"
|
|
style="color: #EE3E3E;"
|
|
style="color: #EE3E3E;"
|
|
@@ -260,13 +264,13 @@
|
|
<span>{{ item.className ? item.className : '无' }}</span>
|
|
<span>{{ item.className ? item.className : '无' }}</span>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="test_btn">
|
|
|
|
|
|
+ <div class="test_btn">
|
|
<div class="test_o_btn">
|
|
<div class="test_o_btn">
|
|
<el-tooltip content="查看" placement="top" effect="dark">
|
|
<el-tooltip content="查看" placement="top" effect="dark">
|
|
<span class="check" @click="checkToTest2(item.userid)"></span>
|
|
<span class="check" @click="checkToTest2(item.userid)"></span>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="course_empty" v-if="stype == 1 && course.length == 0">暂无数据</div>
|
|
<div class="course_empty" v-if="stype == 1 && course.length == 0">暂无数据</div>
|
|
<div class="course_empty" v-if="stype == 2 && course2.length == 0">暂无数据</div>
|
|
<div class="course_empty" v-if="stype == 2 && course2.length == 0">暂无数据</div>
|
|
@@ -291,11 +295,11 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="testCount" label="已完成表单" min-width="80" align="center">
|
|
<el-table-column prop="testCount" label="已完成表单" min-width="80" align="center">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <!-- <el-table-column label="操作" width="350px">
|
|
|
|
|
|
+ <el-table-column label="操作" width="350px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button @click="checkToTest2(scope.row.userid)" type="text" size="small">详情</el-button>
|
|
<el-button @click="checkToTest2(scope.row.userid)" type="text" size="small">详情</el-button>
|
|
</template>
|
|
</template>
|
|
- </el-table-column> -->
|
|
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<div class="student_page">
|
|
<div class="student_page">
|
|
@@ -1008,13 +1012,13 @@ export default {
|
|
this.problemCourse = res;
|
|
this.problemCourse = res;
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
},
|
|
},
|
|
- copyCourse(cid) {
|
|
|
|
|
|
+ copyTest(cid) {
|
|
let params = [{
|
|
let params = [{
|
|
cid: cid,
|
|
cid: cid,
|
|
uid: this.userid
|
|
uid: this.userid
|
|
}]
|
|
}]
|
|
this.ajax
|
|
this.ajax
|
|
- .post(this.$store.state.api + "copySCourse", params)
|
|
|
|
|
|
+ .post(this.$store.state.api + "copyTest", params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.page = 1
|
|
this.page = 1
|
|
if (this.role == "1") {
|
|
if (this.role == "1") {
|
|
@@ -1744,6 +1748,11 @@ export default {
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+.test_box>.test_btn>.test_o_btn>.copy {
|
|
|
|
+ background-image: url('../../../assets/icon/test/paste-icon.png');
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+}
|
|
|
|
+
|
|
.test_box>.test_btn>.test_o_btn>.share {
|
|
.test_box>.test_btn>.test_o_btn>.share {
|
|
background-image: url('../../../assets/icon/test/share_test_icon.png');
|
|
background-image: url('../../../assets/icon/test/share_test_icon.png');
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|