|
@@ -33,7 +33,7 @@
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="!multipleSelection.length"
|
|
:disabled="!multipleSelection.length"
|
|
- @click="toBatchRecycle"
|
|
|
|
|
|
+ @click="toDangerAction('recycle', {}, multipleSelection)"
|
|
>
|
|
>
|
|
回收
|
|
回收
|
|
</el-button>
|
|
</el-button>
|
|
@@ -94,22 +94,26 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
- class="btn-primary"
|
|
|
|
|
|
+ class="btn-danger"
|
|
type="text"
|
|
type="text"
|
|
:disabled="scope.row.resetting"
|
|
:disabled="scope.row.resetting"
|
|
- @click="toReset(scope.row)"
|
|
|
|
|
|
+ @click="toDangerAction('reset', scope.row)"
|
|
>{{ scope.row.resetting ? "重置中" : "重置" }}</el-button
|
|
>{{ scope.row.resetting ? "重置中" : "重置" }}</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- class="btn-primary"
|
|
|
|
|
|
+ class="btn-danger"
|
|
type="text"
|
|
type="text"
|
|
- @click="toUnbind(scope.row)"
|
|
|
|
|
|
+ @click="toDangerAction('unbind', scope.row)"
|
|
>解绑</el-button
|
|
>解绑</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- class="btn-primary"
|
|
|
|
|
|
+ class="btn-danger"
|
|
type="text"
|
|
type="text"
|
|
- @click="toSimpleRecycle(scope.row)"
|
|
|
|
|
|
+ @click="
|
|
|
|
+ toDangerAction('recycle', scope.row, [
|
|
|
|
+ scope.row.markUserGroupId,
|
|
|
|
+ ])
|
|
|
|
+ "
|
|
>回收</el-button
|
|
>回收</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
@@ -134,7 +138,7 @@
|
|
>
|
|
>
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
- <p class="tips-info">
|
|
|
|
|
|
+ <p class="tips-info tips-error" style="font-weight: bold">
|
|
说明:<br />
|
|
说明:<br />
|
|
1.评卷过程发现某些试题评卷工作任务重需要增加评卷员,可以选择对应评阅题目后绑定评卷员;<br />
|
|
1.评卷过程发现某些试题评卷工作任务重需要增加评卷员,可以选择对应评阅题目后绑定评卷员;<br />
|
|
2.重置 - 将评卷员已评任务删除; <br />
|
|
2.重置 - 将评卷员已评任务删除; <br />
|
|
@@ -157,6 +161,13 @@
|
|
:data="curData"
|
|
:data="curData"
|
|
@modified="markerSelected"
|
|
@modified="markerSelected"
|
|
></modify-marker-bind>
|
|
></modify-marker-bind>
|
|
|
|
+ <!-- DangerTipsDialog -->
|
|
|
|
+ <danger-tips-dialog
|
|
|
|
+ ref="DangerTipsDialog"
|
|
|
|
+ :row-data="curRow"
|
|
|
|
+ :group-ids="curGroupIds"
|
|
|
|
+ :type="curActionType"
|
|
|
|
+ ></danger-tips-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -171,6 +182,7 @@ import {
|
|
} from "../../api";
|
|
} from "../../api";
|
|
import ModifyMarkerTaskCount from "./ModifyMarkerTaskCount.vue";
|
|
import ModifyMarkerTaskCount from "./ModifyMarkerTaskCount.vue";
|
|
import ModifyMarkerBind from "./ModifyMarkerBind.vue";
|
|
import ModifyMarkerBind from "./ModifyMarkerBind.vue";
|
|
|
|
+import DangerTipsDialog from "./DangerTipsDialog.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "mark-detail-marker",
|
|
name: "mark-detail-marker",
|
|
@@ -182,7 +194,7 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- components: { ModifyMarkerTaskCount, ModifyMarkerBind },
|
|
|
|
|
|
+ components: { ModifyMarkerTaskCount, ModifyMarkerBind, DangerTipsDialog },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
filter: {
|
|
filter: {
|
|
@@ -200,6 +212,9 @@ export default {
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
downloading: false,
|
|
downloading: false,
|
|
userParams: {},
|
|
userParams: {},
|
|
|
|
+ // danger action
|
|
|
|
+ curActionType: "",
|
|
|
|
+ curGroupIds: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -261,6 +276,13 @@ export default {
|
|
this.$message.success("绑定成功!");
|
|
this.$message.success("绑定成功!");
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
|
|
+ // to danger action
|
|
|
|
+ toDangerAction(type, curRow, groupIds = []) {
|
|
|
|
+ this.curRow = curRow;
|
|
|
|
+ this.curGroupIds = groupIds;
|
|
|
|
+ this.curActionType = type;
|
|
|
|
+ this.$refs.DangerTipsDialog.open();
|
|
|
|
+ },
|
|
// reset marker
|
|
// reset marker
|
|
async toReset(row) {
|
|
async toReset(row) {
|
|
const confirm = await this.$confirm("确定要重置当前评卷员?", "提示", {
|
|
const confirm = await this.$confirm("确定要重置当前评卷员?", "提示", {
|