|
@@ -63,7 +63,86 @@
|
|
|
></el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" min-width="300">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
+ <div class="tableBtnArea">
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="编辑"
|
|
|
+ placement="top"
|
|
|
+ v-if="
|
|
|
+ scope.row.userid == userId ||
|
|
|
+ (scope.row.course_teacher &&
|
|
|
+ scope.row.course_teacher.indexOf(userId) !== -1) ||
|
|
|
+ role == '1'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ @click="editForm(scope.row)"
|
|
|
+ src="../../../../assets/icon/test/edit_test_icon.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="查看"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ @click="checkForm(scope.row.courseId)"
|
|
|
+ src="../../../../assets/icon/test/check_test_icon.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="复制"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img @click="copyForm(scope.row.courseId)" src="../../../../assets/icon/test/paste-icon.png" alt="" />
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="提醒"
|
|
|
+ placement="top"
|
|
|
+ v-if="
|
|
|
+ scope.row.userid == userId ||
|
|
|
+ (scope.row.course_teacher &&
|
|
|
+ scope.row.course_teacher.indexOf(userId) !== -1) ||
|
|
|
+ role == '1'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ @click="warnForm(scope.row)"
|
|
|
+ src="../../../../assets/icon/test/share_test_icon.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="删除"
|
|
|
+ placement="top"
|
|
|
+ v-if="
|
|
|
+ scope.row.userid == userId ||
|
|
|
+ (scope.row.course_teacher &&
|
|
|
+ scope.row.course_teacher.indexOf(userId) !== -1) ||
|
|
|
+ role == '1'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ @click="deleteForm(scope.row.courseId)"
|
|
|
+ src="../../../../assets/icon/test/delete_test_icon.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ <!--<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
@click="editForm(scope.row)"
|
|
@@ -110,7 +189,7 @@
|
|
|
role == '1'
|
|
|
"
|
|
|
>删除</el-button
|
|
|
- >
|
|
|
+ >-->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -175,12 +254,19 @@
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" min-width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- @click="checkPerson(scope.row.userid)"
|
|
|
- >详细</el-button
|
|
|
+ <div class="tableBtnArea"> <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="删除"
|
|
|
+ placement="top"
|
|
|
>
|
|
|
+ <img
|
|
|
+ @click="checkPerson(scope.row.userid)"
|
|
|
+ src="../../../../assets/icon/test/check_test_icon.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </el-tooltip></div>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -533,7 +619,8 @@ export default {
|
|
|
this.org +
|
|
|
"&role=" +
|
|
|
this.role +
|
|
|
- "&typeId1="+ this.typeId
|
|
|
+ "&typeId1=" +
|
|
|
+ this.typeId
|
|
|
);
|
|
|
}
|
|
|
},
|
|
@@ -599,4 +686,16 @@ export default {
|
|
|
padding: 0 20px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
+
|
|
|
+.tableBtnArea{
|
|
|
+ width: auto;
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+
|
|
|
+.tableBtnArea>img{
|
|
|
+ width: 18px;
|
|
|
+ height: 18px;
|
|
|
+ margin-right: 25px;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|