|
@@ -141,13 +141,22 @@
|
|
|
更多<i class="el-icon-more el-icon--right"></i>
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown" class="action-dropdown">
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="toChangeTeacher(scope.row)"
|
|
|
+ >编辑任务
|
|
|
+ </el-button>
|
|
|
+ </el-dropdown-item>
|
|
|
<el-dropdown-item>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="primary"
|
|
|
plain
|
|
|
@click="toEdit(scope.row)"
|
|
|
- >编辑
|
|
|
+ >编辑题卡
|
|
|
</el-button>
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item>
|
|
@@ -156,12 +165,11 @@
|
|
|
type="primary"
|
|
|
plain
|
|
|
@click="toView(scope.row)"
|
|
|
- >查看
|
|
|
+ >查看题卡
|
|
|
</el-button>
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item>
|
|
|
<el-button
|
|
|
- v-if="false"
|
|
|
size="mini"
|
|
|
type="danger"
|
|
|
plain
|
|
@@ -176,7 +184,7 @@
|
|
|
plain
|
|
|
@click="toDownload([scope.row.id])"
|
|
|
>
|
|
|
- 下载
|
|
|
+ 下载题卡
|
|
|
</el-button>
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
@@ -469,11 +477,11 @@ export default {
|
|
|
row.enable = enable;
|
|
|
this.$message.success("操作成功!");
|
|
|
},
|
|
|
- toEdit(row) {
|
|
|
+ toChangeTeacher(row) {
|
|
|
this.curRow = { ...row, teacherId: row.assignTeacher };
|
|
|
this.$refs.ModifyCard.open();
|
|
|
},
|
|
|
- toView(row) {
|
|
|
+ toEdit(row) {
|
|
|
this.cacheSearchInfo();
|
|
|
this.$router.push({
|
|
|
name: "CardEdit",
|
|
@@ -483,6 +491,16 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ toView(row) {
|
|
|
+ const href = this.getRouterPath({
|
|
|
+ name: "CardPreview",
|
|
|
+ params: {
|
|
|
+ viewType: "view",
|
|
|
+ cardId: row.id,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ window.open(href);
|
|
|
+ },
|
|
|
async toDelete(row) {
|
|
|
const confirm = await this.$confirm(
|
|
|
`确定要删除题卡【${row.name}】吗?`,
|