--fix 复制

This commit is contained in:
yuping
2023-02-17 21:51:42 +08:00
parent 2d3a95f1bd
commit a58d7b0835
2 changed files with 27 additions and 46 deletions

View File

@@ -59,6 +59,8 @@ function init() {
initDict("project_pic"); //项目封面
initDict("router_pic"); //路径图封面
initDict("course_pic"); //课程封面
initDict("job_type"); //岗位
initDict("band"); //band
}
function unloadHandler() {

View File

@@ -712,7 +712,7 @@
<a-table
:columns="columns6"
:data-source="tableData6"
:loading="tableDataTotal2 === -1 ? true : false"
:loading="tableCoursePlanLoading"
:scroll="{ x: 700, y: 800 }"
expandRowByClick="true"
@expand="expandTable"
@@ -1521,9 +1521,7 @@ import ProjCheckShip from "../../components/drawers/ProjCheckPower";
import AssessmentList from "../../components/drawers/AssessmentList.vue";
import {
list,
edit,
detail,
// detailPlan,
handle,
deletePlan,
planList,
@@ -2148,6 +2146,7 @@ export default defineComponent({
const state = reactive({
tableLoading: false,
tableCoursePlanLoading: false,
//新加
stuColumns: [
{
@@ -3346,6 +3345,7 @@ export default defineComponent({
// };
// 渲染开课操作
const getTableDate3 = async () => {
state.tableCoursePlanLoading = true
// let datas = state.tableData6;
let beginTime = "";
let endTime = "";
@@ -3374,6 +3374,7 @@ export default defineComponent({
};
console.log("获取开obj", obj, state.selectTime);
let res = await planList(obj);
state.tableCoursePlanLoading = false
console.log("开课res", res);
const {rows, total, pageNo} = res.data.data;
state.tableDataTotal222 = total;
@@ -3945,48 +3946,31 @@ export default defineComponent({
state.addLoading = true;
if (state.del_hs) {
console.log(11111111);
if (state.offcourseId && state.offcoursePlanId && state.studentId) {
console.log(111111);
handleStudent({
await handleStudent({
offcoursePlanId: state.offcoursePlanId,
score: "",
studentIds: [state.studentId],
type: 5,
}).then((res) => {
if (res.data.code === 200) {
})
getTableDate2();
delete_exit1();
}
});
} else if (state.offcourseId && state.offcoursePlanId) {
console.log(2222222);
deletePlan({
offcoursePlanId: state.offcoursePlanId,
}).then((res) => {
if (res.data.code === 200) {
state.tableCoursePlanLoading = true;
delete_exit1();
await deletePlan({offcoursePlanId: state.offcoursePlanId,})
getTableDate3();
delete_exit1();
}
});
} else if (state.offcourseId) {
console.log(3333333);
handle({
offcourseId: state.offcourseId,
type: -1,
}).then((res) => {
if (res.data.code === 200) {
message.destroy();
message.success("删除成功");
getTableDate();
state.tableLoading = true;
delete_exit1();
}
});
message.success("删除成功");
await handle({offcourseId: state.offcourseId, type: -1,})
getTableDate();
}
}
if (state.copy_hs) {
if (state.offcourseId && state.offcoursePlanId) {
state.tableLoading = true;
state.tableCoursePlanLoading = true;
message.success("复制成功");
delete_exit1();
rest();
@@ -4002,20 +3986,15 @@ export default defineComponent({
}
}
if (state.nouse_hs) {
console.log(3333333333);
if (state.offcourseId) {
console.log(87887);
handle({
state.tableLoading = true;
message.success("操作成功");
delete_exit1();
await handle({
offcourseId: state.offcourseId,
type: -2,
}).then((res) => {
if (res.data.code === 200) {
message.destroy();
message.success("操作成功");
})
getTableDate();
delete_exit1();
}
});
}
}
};