|
@@ -93,6 +93,11 @@
|
|
label="任务数"
|
|
label="任务数"
|
|
width="100"
|
|
width="100"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="topCount"
|
|
|
|
+ label="设置评卷数"
|
|
|
|
+ width="100"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
class-name="action-column"
|
|
class-name="action-column"
|
|
label="操作"
|
|
label="操作"
|
|
@@ -151,12 +156,12 @@
|
|
:ids="curIds"
|
|
:ids="curIds"
|
|
@modified="getList"
|
|
@modified="getList"
|
|
></modify-marker-task-count>
|
|
></modify-marker-task-count>
|
|
- <!-- ModifyMarkerBind -->
|
|
|
|
- <modify-marker-bind
|
|
|
|
- ref="ModifyMarkerBind"
|
|
|
|
- :data="curData"
|
|
|
|
- @modified="getList"
|
|
|
|
- ></modify-marker-bind>
|
|
|
|
|
|
+ <!-- SelectUserDialog -->
|
|
|
|
+ <select-user-dialog
|
|
|
|
+ ref="SelectUserDialog"
|
|
|
|
+ :userLimitCount="0"
|
|
|
|
+ @modified="markerSelected"
|
|
|
|
+ ></select-user-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -167,9 +172,10 @@ import {
|
|
markMarkerUnbind,
|
|
markMarkerUnbind,
|
|
markMarkerRecycle,
|
|
markMarkerRecycle,
|
|
markGroupQuestions,
|
|
markGroupQuestions,
|
|
|
|
+ markMarkerBind,
|
|
} from "../../api";
|
|
} from "../../api";
|
|
import ModifyMarkerTaskCount from "./ModifyMarkerTaskCount.vue";
|
|
import ModifyMarkerTaskCount from "./ModifyMarkerTaskCount.vue";
|
|
-import ModifyMarkerBind from "./ModifyMarkerBind.vue";
|
|
|
|
|
|
+import SelectUserDialog from "../../../base/components/SelectUserDialog.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "mark-detail-marker",
|
|
name: "mark-detail-marker",
|
|
@@ -181,7 +187,7 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- components: { ModifyMarkerTaskCount, ModifyMarkerBind },
|
|
|
|
|
|
+ components: { ModifyMarkerTaskCount, SelectUserDialog },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
filter: {
|
|
filter: {
|
|
@@ -250,7 +256,14 @@ export default {
|
|
paperNumber: this.baseInfo.paperNumber,
|
|
paperNumber: this.baseInfo.paperNumber,
|
|
groupNumber: this.filter.groupNumber,
|
|
groupNumber: this.filter.groupNumber,
|
|
};
|
|
};
|
|
- this.$refs.ModifyMarkerBind.open();
|
|
|
|
|
|
+ this.$refs.SelectUserDialog.open();
|
|
|
|
+ },
|
|
|
|
+ async markerSelected(users) {
|
|
|
|
+ if (!users.length) return;
|
|
|
|
+ const datas = { ...this.curData, userIds: users.map((item) => item.id) };
|
|
|
|
+ const res = await markMarkerBind(datas).catch(() => {});
|
|
|
|
+ if (!res) return;
|
|
|
|
+ this.$message.success("绑定成功!");
|
|
},
|
|
},
|
|
// reset marker
|
|
// reset marker
|
|
async toReset(row) {
|
|
async toReset(row) {
|