mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
--fix bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user