feat:修改面授课传参

This commit is contained in:
lixg
2023-02-13 16:23:38 +08:00
4 changed files with 1183 additions and 1018 deletions

View File

@@ -348,21 +348,13 @@
>管理</a-button
>
<DropDown v-if="checkPer(record.permissions)" value="授权">
<OwnerTableModelStudent
:types="[10, 11, 12]"
:id="record.offcourseId"
<OwnerTableModelStudent :types="[10, 11, 12]" :id="record.id"
>权限名单</OwnerTableModelStudent
>
<CommonStudent
:type="10"
:id="record.offcourseId"
title="查看权"
<CommonStudent :type="10" :id="record.id" title="查看权"
>查看权</CommonStudent
>
<CommonStudent
:type="11"
:id="record.offcourseId"
title="管理权"
<CommonStudent :type="11" :id="record.id" title="管理权"
>管理权</CommonStudent
>
</DropDown>
@@ -3064,6 +3056,7 @@ export default defineComponent({
findClassFullName(sysTypeOptions.value, itm.sysTypeId) || "-";
});
state.tableData1 = datas;
console.log("state.tableData1", state.tableData1);
state.tableLoading = false;
};
@@ -3776,9 +3769,9 @@ export default defineComponent({
//编辑开课
const handelEditStu = async (itm) => {
console.log(itm);
console.log("编辑开课", itm);
state.offcourseId = itm.offcourseId;
state.offcourseId = itm.id;
state.offcoursePlanId = itm.offcoursePlanId;
const item = await detailPlan({
@@ -3857,7 +3850,7 @@ export default defineComponent({
};
const handelGuan = (itm) => {
console.log("开课信息", itm);
state.offcourseId = itm.offcourseId;
state.offcourseId = itm.id;
state.offcoursePlanId = itm.offcoursePlanId;
state.studentId = itm.studentId;
state.studentItem = itm;
@@ -3937,7 +3930,7 @@ export default defineComponent({
if (type === "1") {
return;
}
state.offcourseId = itm.offcourseId;
state.offcourseId = itm.id;
handle({
offcourseId: state.offcourseId,
@@ -4246,7 +4239,7 @@ export default defineComponent({
if (type === "1") {
return;
}
// console.log(itm)
console.log("编辑面授课信息", itm, type);
state.offcourseId = itm.id;
const item = await detail({
@@ -4353,14 +4346,14 @@ export default defineComponent({
if (type === "1") {
return;
}
state.offcourseId = itm.offcourseId;
state.offcourseId = itm.id;
state.delete_hs = true;
state.copy_hs = true;
};
const handleCopyP = async (itm) => {
console.log(itm);
state.offcourseId = itm.offcourseId;
state.offcourseId = itm.id;
state.offcoursePlanId = itm.offcoursePlanId;
state.delete_hs = true;
@@ -4371,7 +4364,7 @@ export default defineComponent({
if (type === "1") {
return;
}
state.offcourseId = itm.offcourseId;
state.offcourseId = itm.id;
state.delete_hs = true;
state.nouse_hs = true;
@@ -4381,7 +4374,7 @@ export default defineComponent({
if (type === "1") {
return;
}
state.offcourseId = itm.offcourseId;
state.offcourseId = itm.id;
handle({
offcourseId: state.offcourseId,
@@ -4494,6 +4487,7 @@ export default defineComponent({
// 管理开课
const handleGuan22 = (item) => {
console.log("点击管理信息", item);
if (String(item.courseform) === "1") {
return;
}
@@ -4508,7 +4502,7 @@ export default defineComponent({
console.log(787666, item);
state.faceClassification = item.contentTxt;
state.faceStatus = item.kkty;
state.currentFaceId = item.offcourseId;
state.currentFaceId = item.id;
getCourseStudentList();
state.newCourseName = item.name;
};