|
@@ -4,15 +4,15 @@
|
|
<el-form ref="FilterForm" label-position="left" label-width="85px" inline>
|
|
<el-form ref="FilterForm" label-position="left" label-width="85px" inline>
|
|
<el-form-item label="评阅题目">
|
|
<el-form-item label="评阅题目">
|
|
<el-select
|
|
<el-select
|
|
- v-model="filter.groupNumber"
|
|
|
|
|
|
+ v-model="filter.questionId"
|
|
placeholder="评阅题目"
|
|
placeholder="评阅题目"
|
|
clearable
|
|
clearable
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="group in questions"
|
|
v-for="group in questions"
|
|
- :key="group.groupNumber"
|
|
|
|
- :value="group.groupNumber"
|
|
|
|
- :label="group.groupQuestions"
|
|
|
|
|
|
+ :key="group.questionId"
|
|
|
|
+ :value="group.questionId"
|
|
|
|
+ :label="group.questionNumber"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -25,7 +25,7 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label-width="0px">
|
|
<el-form-item label-width="0px">
|
|
- <el-checkbox v-model="filter.showMarking"
|
|
|
|
|
|
+ <el-checkbox v-model="filter.marked"
|
|
>仅显示当前评卷员记录
|
|
>仅显示当前评卷员记录
|
|
</el-checkbox>
|
|
</el-checkbox>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -67,16 +67,17 @@
|
|
fixed="left"
|
|
fixed="left"
|
|
width="55"
|
|
width="55"
|
|
align="center"
|
|
align="center"
|
|
|
|
+ :selectable="rowSelectableHandler"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column prop="loginName" label="评卷员" min-width="100">
|
|
<el-table-column prop="loginName" label="评卷员" min-width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-tag size="medium" :type="scope.row.status === 1 ? '' : 'info'">
|
|
|
|
|
|
+ <el-tag size="medium" :type="scope.row.enable ? '' : 'info'">
|
|
{{ scope.row.name }}({{ scope.row.loginName }})
|
|
{{ scope.row.name }}({{ scope.row.loginName }})
|
|
</el-tag>
|
|
</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="groupQuestions"
|
|
|
|
|
|
+ prop="questionNumber"
|
|
label="评阅题目"
|
|
label="评阅题目"
|
|
width="120"
|
|
width="120"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
@@ -111,26 +112,31 @@
|
|
>{{ scope.row.resetting ? "重置中" : "重置" }}</el-button
|
|
>{{ scope.row.resetting ? "重置中" : "重置" }}</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- v-if="checkPrivilege('link', 'MarkTaskMarkerDelete')"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ checkPrivilege('link', 'MarkTaskMarkerDelete') &&
|
|
|
|
+ scope.row.enable
|
|
|
|
+ "
|
|
class="btn-danger"
|
|
class="btn-danger"
|
|
type="text"
|
|
type="text"
|
|
@click="toDangerAction('unbind', scope.row)"
|
|
@click="toDangerAction('unbind', scope.row)"
|
|
>解绑</el-button
|
|
>解绑</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="scope.row.enable"
|
|
class="btn-danger"
|
|
class="btn-danger"
|
|
type="text"
|
|
type="text"
|
|
@click="
|
|
@click="
|
|
toDangerAction('recycle', scope.row, [
|
|
toDangerAction('recycle', scope.row, [
|
|
- scope.row.markUserGroupId,
|
|
|
|
|
|
+ scope.row.markUserQuestionId,
|
|
])
|
|
])
|
|
"
|
|
"
|
|
>回收</el-button
|
|
>回收</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="scope.row.enable"
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
- @click="toSetTaskCount([scope.row.markUserGroupId], scope.row)"
|
|
|
|
|
|
+ @click="toSetTaskCount([scope.row.markUserQuestionId], scope.row)"
|
|
>设置评卷数</el-button
|
|
>设置评卷数</el-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
@@ -176,8 +182,9 @@
|
|
<danger-tips-dialog
|
|
<danger-tips-dialog
|
|
ref="DangerTipsDialog"
|
|
ref="DangerTipsDialog"
|
|
:row-data="curRow"
|
|
:row-data="curRow"
|
|
- :group-ids="curGroupIds"
|
|
|
|
|
|
+ :question-ids="curMarkUserQuestionIds"
|
|
:type="curActionType"
|
|
:type="curActionType"
|
|
|
|
+ @modified="getList"
|
|
></danger-tips-dialog>
|
|
></danger-tips-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -209,9 +216,9 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
filter: {
|
|
filter: {
|
|
- groupNumber: "",
|
|
|
|
|
|
+ questionId: "",
|
|
loginName: "",
|
|
loginName: "",
|
|
- showMarking: false,
|
|
|
|
|
|
+ marked: false,
|
|
},
|
|
},
|
|
current: 1,
|
|
current: 1,
|
|
size: this.GLOBAL.pageSize,
|
|
size: this.GLOBAL.pageSize,
|
|
@@ -226,14 +233,12 @@ export default {
|
|
userParams: {},
|
|
userParams: {},
|
|
// danger action
|
|
// danger action
|
|
curActionType: "",
|
|
curActionType: "",
|
|
- curGroupIds: [],
|
|
|
|
|
|
+ curMarkUserQuestionIds: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.filter.className = this.$ls.get("preset-className", "");
|
|
|
|
- this.filter.groupNumber = this.$ls.get("preset-groupNumber", "");
|
|
|
|
- this.$ls.remove("preset-className");
|
|
|
|
- this.$ls.remove("preset-groupNumber");
|
|
|
|
|
|
+ this.filter.questionId = this.$ls.get("preset-questionId", "");
|
|
|
|
+ this.$ls.remove("preset-questionId");
|
|
this.getQuestions();
|
|
this.getQuestions();
|
|
this.toPage(1);
|
|
this.toPage(1);
|
|
},
|
|
},
|
|
@@ -265,10 +270,13 @@ export default {
|
|
this.toPage(1);
|
|
this.toPage(1);
|
|
},
|
|
},
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
- this.multipleSelection = val.map((item) => item.markUserGroupId);
|
|
|
|
|
|
+ this.multipleSelection = val.map((item) => item.markUserQuestionId);
|
|
|
|
+ },
|
|
|
|
+ rowSelectableHandler(row) {
|
|
|
|
+ return row.enable;
|
|
},
|
|
},
|
|
toBind() {
|
|
toBind() {
|
|
- if (!this.filter.groupNumber) {
|
|
|
|
|
|
+ if (!this.filter.questionId) {
|
|
this.$message.error("请选择评阅题目");
|
|
this.$message.error("请选择评阅题目");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -276,22 +284,25 @@ export default {
|
|
this.curData = {
|
|
this.curData = {
|
|
examId: this.baseInfo.examId,
|
|
examId: this.baseInfo.examId,
|
|
paperNumber: this.baseInfo.paperNumber,
|
|
paperNumber: this.baseInfo.paperNumber,
|
|
- groupNumber: this.filter.groupNumber,
|
|
|
|
|
|
+ questionId: this.filter.questionId,
|
|
};
|
|
};
|
|
this.$refs.ModifyMarkerBind.open();
|
|
this.$refs.ModifyMarkerBind.open();
|
|
},
|
|
},
|
|
async markerSelected(users) {
|
|
async markerSelected(users) {
|
|
if (!users.length) return;
|
|
if (!users.length) return;
|
|
- const datas = { ...this.curData, userIds: users.map((item) => item.id) };
|
|
|
|
|
|
+ const datas = {
|
|
|
|
+ ...this.curData,
|
|
|
|
+ userIds: users.map((item) => item.id),
|
|
|
|
+ };
|
|
const res = await markMarkerBind(datas).catch(() => {});
|
|
const res = await markMarkerBind(datas).catch(() => {});
|
|
if (!res) return;
|
|
if (!res) return;
|
|
this.$message.success("绑定成功!");
|
|
this.$message.success("绑定成功!");
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
// to danger action
|
|
// to danger action
|
|
- toDangerAction(type, curRow, groupIds = []) {
|
|
|
|
|
|
+ toDangerAction(type, curRow, markUserQuestionIds = []) {
|
|
this.curRow = curRow;
|
|
this.curRow = curRow;
|
|
- this.curGroupIds = groupIds;
|
|
|
|
|
|
+ this.curMarkUserQuestionIds = markUserQuestionIds;
|
|
this.curActionType = type;
|
|
this.curActionType = type;
|
|
this.$refs.DangerTipsDialog.open();
|
|
this.$refs.DangerTipsDialog.open();
|
|
},
|
|
},
|
|
@@ -303,7 +314,7 @@ export default {
|
|
if (confirm !== "confirm") return;
|
|
if (confirm !== "confirm") return;
|
|
|
|
|
|
await markMarkerReset({
|
|
await markMarkerReset({
|
|
- markUserGroupId: row.markUserGroupId,
|
|
|
|
|
|
+ markUserQuestionId: row.markUserQuestionId,
|
|
});
|
|
});
|
|
this.$message.success("操作成功!");
|
|
this.$message.success("操作成功!");
|
|
this.getList();
|
|
this.getList();
|
|
@@ -316,7 +327,7 @@ export default {
|
|
if (confirm !== "confirm") return;
|
|
if (confirm !== "confirm") return;
|
|
|
|
|
|
await markMarkerUnbind({
|
|
await markMarkerUnbind({
|
|
- markUserGroupId: row.markUserGroupId,
|
|
|
|
|
|
+ markUserQuestionId: row.markUserQuestionId,
|
|
});
|
|
});
|
|
this.$message.success("操作成功!");
|
|
this.$message.success("操作成功!");
|
|
this.getList();
|
|
this.getList();
|
|
@@ -338,13 +349,13 @@ export default {
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
if (confirm !== "confirm") return;
|
|
if (confirm !== "confirm") return;
|
|
|
|
|
|
- this.toRecycle([row.markUserGroupId]);
|
|
|
|
|
|
+ this.toRecycle([row.markUserQuestionId]);
|
|
},
|
|
},
|
|
- async toRecycle(markUserGroupIds) {
|
|
|
|
- if (!markUserGroupIds.length) return;
|
|
|
|
|
|
+ async toRecycle(markUserQuestionIds) {
|
|
|
|
+ if (!markUserQuestionIds.length) return;
|
|
|
|
|
|
await markMarkerRecycle({
|
|
await markMarkerRecycle({
|
|
- markUserGroupIds,
|
|
|
|
|
|
+ markUserQuestionIds,
|
|
});
|
|
});
|
|
this.$message.success("操作成功!");
|
|
this.$message.success("操作成功!");
|
|
this.getList();
|
|
this.getList();
|