+
-
@@ -151,6 +163,7 @@ import {useRequest} from "@/api/request";
import CommonImport from "@/components/common/CommonImport";
import CommonStudent from "@/components/student/CommonStudent";
import dayjs from "dayjs";
+import {delStudentList} from "@/api/index1";
const coursePlanIndex = ref(0);
const tableRef = ref();
@@ -291,6 +304,19 @@ const columns = ref([
stuSign(text)}>请假
},
+ {
+ title: "操作",
+ ellipsis: true,
+ className: "h",
+ dataIndex: "opacation",
+ key: "opacation",
+ width: 130,
+ align: "center",
+ customRender: (text) =>
+
+ },
]);
const { data = [], loading, fetchData } = useRequest(COURSE_PLAN_LIST, planParams, false);
@@ -309,6 +335,11 @@ const ChoiceCourse = (n) => {
tableRef.value.fetch();
};
+const removeStu=(id)=> dialog({
+ content: "确定删除该学员吗?",
+ ok: () => delStudentList({ ids: [id] }).then(() => fetchData())
+})
+
const closeDrawer = () => emit("update:FSvisible", false);
//批量签到
const batchSign = () => {
@@ -369,6 +400,8 @@ function exportTaskStu() {
window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?type=3&pid=${offcoursePlanId.value}&thirdType=2`);
}
+const exportAssessment = () =>window.open(`${process.env.VUE_APP_BASE_API}/admin/assessment/manage/exportAssessmentMessage?chapterId=${props.type === 1 ? props.datasource.stageId : props.datasource.chapterId}&type=${props.type}&pid=${props.type === 1 ? props.datasource.projectId : props.datasource.routerId}&courseId=${data.value[coursePlanIndex.value].assessmentId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`);
+
function afterVisibleChange(bool) {
bool && fetchData()
}
@@ -396,6 +429,14 @@ const qrcodeVisibleSign = () => {
});
};
+const qrcodeAssement = () =>{
+ qrCode({
+ title: "【评估】二维码",
+ name: data.value[coursePlanIndex.value]?.assessmentName,
+ url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/student-h5/investigatpage?id=${data.value[coursePlanIndex.value]?.id}&type=3&infoId=${data.value[coursePlanIndex.value]?.id}&courseId=${data.value[coursePlanIndex.value].assessmentId}&chapterOrStageId=0`,
+ });
+}
+
const change = (e) => {
console.log(e)
if(e==="end"){
diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue
index 5f3f516e..f362aa57 100644
--- a/src/views/courselibrary/CoursewareManage.vue
+++ b/src/views/courselibrary/CoursewareManage.vue
@@ -3202,26 +3202,22 @@ export default defineComponent({
console.log(val);
rest();
- getTea();
};
const handelChangePageTea1 = (page, pageSize) => {
state.currentPageTea1 = page;
state.pageSizeTea1 = pageSize;
rest();
- getTea();
};
const handleChangeTea2 = (val) => {
console.log(787877);
console.log(val);
options4CurName.value = val;
rest();
- getTea();
};
const handelChangePageTea2 = (page, pageSize) => {
state.currentPageTea2 = page;
state.pageSizeTea2 = pageSize;
rest();
- getTea();
};
//获取分类、场景、封面图、-----------字典配置-------------------------------
@@ -3476,7 +3472,6 @@ export default defineComponent({
const options4CurName = ref("张");
const of_hShow = () => {
state.offcourseId = "";
- getTea();
if (state.of_hs == false) {
state.of_hs = true;
}
@@ -3546,7 +3541,6 @@ export default defineComponent({
state.qdms_inputV1 = state.xzinputV1;
state.xzinputV1 = "";
- getTea();
}
if (state.bs_hs && state.valueE1 == 1) {
state.addOnlineCoursevisible = true;
@@ -4325,50 +4319,6 @@ export default defineComponent({
// }); */
// }
};
- //获取教师
- const getTea = async () => {
- options4CurName.value = state.teacher;
- options4CurId.value = state.teacherId;
- const item1 = await getMemberInfoApi({
- pageNo: state.currentPageTea1,
- pageSize: state.pageSizeTea1,
- keyWord: options4CurName.value,
- id: options4CurId.value ? options4CurId.value : null,
- })
- .then((res) => {
- console.log("获取授课教师", res);
- if (res.data.code === 200) return res.data.data;
- })
- .catch((err) => {
- console.log("获取授课教师失败", err);
- });
- const { rows, total } = item1;
- state.tableDataTotalTea1 = total;
- state.tableDataTotalTea2 = total;
- let newArr = [];
- for (let item of rows) {
- if (options4CurId.value === item.id) {
- if (state.offcoursePlanId && state.offcourseId) {
- options4CurName.value = item.realName;
- state.xjkkinputV4 = item.realName;
- state.teacherId = item.id;
- } else if (state.offcourseId) {
- options4CurName.value = item.realName;
- state.qdms_inputV5 = item.realName;
- state.teacher = item.realName;
- state.teacherId = item.id;
- console.log("那个老师", item);
- }
- }
- newArr.push({
- value: item.id,
- label: item.realName,
- });
- }
- options4.value = newArr;
- console.log("options4.value");
- console.log(options4.value);
- };
//编辑面授课
const handleEdit = async (itm, type) => {
if (type === "1") {
@@ -4423,7 +4373,6 @@ export default defineComponent({
// state.ft_hs = true;
CourseModalRef.value.visibleOpen(state.offcourseId, null);
state.ft_eidt = true;
- // getTea();
};
// handleTagChange
diff --git a/src/views/courselibrary/courseModal.vue b/src/views/courselibrary/courseModal.vue
index 378040a9..d7520b9e 100644
--- a/src/views/courselibrary/courseModal.vue
+++ b/src/views/courselibrary/courseModal.vue
@@ -12,12 +12,8 @@
>