mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
--fix 复制
This commit is contained in:
@@ -59,6 +59,8 @@ function init() {
|
|||||||
initDict("project_pic"); //项目封面
|
initDict("project_pic"); //项目封面
|
||||||
initDict("router_pic"); //路径图封面
|
initDict("router_pic"); //路径图封面
|
||||||
initDict("course_pic"); //课程封面
|
initDict("course_pic"); //课程封面
|
||||||
|
initDict("job_type"); //岗位
|
||||||
|
initDict("band"); //band
|
||||||
}
|
}
|
||||||
|
|
||||||
function unloadHandler() {
|
function unloadHandler() {
|
||||||
|
|||||||
@@ -712,7 +712,7 @@
|
|||||||
<a-table
|
<a-table
|
||||||
:columns="columns6"
|
:columns="columns6"
|
||||||
:data-source="tableData6"
|
:data-source="tableData6"
|
||||||
:loading="tableDataTotal2 === -1 ? true : false"
|
:loading="tableCoursePlanLoading"
|
||||||
:scroll="{ x: 700, y: 800 }"
|
:scroll="{ x: 700, y: 800 }"
|
||||||
expandRowByClick="true"
|
expandRowByClick="true"
|
||||||
@expand="expandTable"
|
@expand="expandTable"
|
||||||
@@ -1521,9 +1521,7 @@ import ProjCheckShip from "../../components/drawers/ProjCheckPower";
|
|||||||
import AssessmentList from "../../components/drawers/AssessmentList.vue";
|
import AssessmentList from "../../components/drawers/AssessmentList.vue";
|
||||||
import {
|
import {
|
||||||
list,
|
list,
|
||||||
edit,
|
|
||||||
detail,
|
detail,
|
||||||
// detailPlan,
|
|
||||||
handle,
|
handle,
|
||||||
deletePlan,
|
deletePlan,
|
||||||
planList,
|
planList,
|
||||||
@@ -2148,6 +2146,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
tableLoading: false,
|
tableLoading: false,
|
||||||
|
tableCoursePlanLoading: false,
|
||||||
//新加
|
//新加
|
||||||
stuColumns: [
|
stuColumns: [
|
||||||
{
|
{
|
||||||
@@ -3346,6 +3345,7 @@ export default defineComponent({
|
|||||||
// };
|
// };
|
||||||
// 渲染开课操作
|
// 渲染开课操作
|
||||||
const getTableDate3 = async () => {
|
const getTableDate3 = async () => {
|
||||||
|
state.tableCoursePlanLoading = true
|
||||||
// let datas = state.tableData6;
|
// let datas = state.tableData6;
|
||||||
let beginTime = "";
|
let beginTime = "";
|
||||||
let endTime = "";
|
let endTime = "";
|
||||||
@@ -3374,6 +3374,7 @@ export default defineComponent({
|
|||||||
};
|
};
|
||||||
console.log("获取开obj", obj, state.selectTime);
|
console.log("获取开obj", obj, state.selectTime);
|
||||||
let res = await planList(obj);
|
let res = await planList(obj);
|
||||||
|
state.tableCoursePlanLoading = false
|
||||||
console.log("开课res", res);
|
console.log("开课res", res);
|
||||||
const {rows, total, pageNo} = res.data.data;
|
const {rows, total, pageNo} = res.data.data;
|
||||||
state.tableDataTotal222 = total;
|
state.tableDataTotal222 = total;
|
||||||
@@ -3945,48 +3946,31 @@ export default defineComponent({
|
|||||||
state.addLoading = true;
|
state.addLoading = true;
|
||||||
|
|
||||||
if (state.del_hs) {
|
if (state.del_hs) {
|
||||||
console.log(11111111);
|
|
||||||
if (state.offcourseId && state.offcoursePlanId && state.studentId) {
|
if (state.offcourseId && state.offcoursePlanId && state.studentId) {
|
||||||
console.log(111111);
|
await handleStudent({
|
||||||
handleStudent({
|
|
||||||
offcoursePlanId: state.offcoursePlanId,
|
offcoursePlanId: state.offcoursePlanId,
|
||||||
score: "",
|
score: "",
|
||||||
studentIds: [state.studentId],
|
studentIds: [state.studentId],
|
||||||
type: 5,
|
type: 5,
|
||||||
}).then((res) => {
|
})
|
||||||
if (res.data.code === 200) {
|
getTableDate2();
|
||||||
getTableDate2();
|
delete_exit1();
|
||||||
delete_exit1();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else if (state.offcourseId && state.offcoursePlanId) {
|
} else if (state.offcourseId && state.offcoursePlanId) {
|
||||||
console.log(2222222);
|
state.tableCoursePlanLoading = true;
|
||||||
deletePlan({
|
delete_exit1();
|
||||||
offcoursePlanId: state.offcoursePlanId,
|
await deletePlan({offcoursePlanId: state.offcoursePlanId,})
|
||||||
}).then((res) => {
|
getTableDate3();
|
||||||
if (res.data.code === 200) {
|
|
||||||
getTableDate3();
|
|
||||||
delete_exit1();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else if (state.offcourseId) {
|
} else if (state.offcourseId) {
|
||||||
console.log(3333333);
|
state.tableLoading = true;
|
||||||
handle({
|
delete_exit1();
|
||||||
offcourseId: state.offcourseId,
|
message.success("删除成功");
|
||||||
type: -1,
|
await handle({offcourseId: state.offcourseId, type: -1,})
|
||||||
}).then((res) => {
|
getTableDate();
|
||||||
if (res.data.code === 200) {
|
|
||||||
message.destroy();
|
|
||||||
message.success("删除成功");
|
|
||||||
getTableDate();
|
|
||||||
delete_exit1();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (state.copy_hs) {
|
if (state.copy_hs) {
|
||||||
if (state.offcourseId && state.offcoursePlanId) {
|
if (state.offcourseId && state.offcoursePlanId) {
|
||||||
state.tableLoading = true;
|
state.tableCoursePlanLoading = true;
|
||||||
message.success("复制成功");
|
message.success("复制成功");
|
||||||
delete_exit1();
|
delete_exit1();
|
||||||
rest();
|
rest();
|
||||||
@@ -4002,20 +3986,15 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (state.nouse_hs) {
|
if (state.nouse_hs) {
|
||||||
console.log(3333333333);
|
|
||||||
if (state.offcourseId) {
|
if (state.offcourseId) {
|
||||||
console.log(87887);
|
state.tableLoading = true;
|
||||||
handle({
|
message.success("操作成功");
|
||||||
|
delete_exit1();
|
||||||
|
await handle({
|
||||||
offcourseId: state.offcourseId,
|
offcourseId: state.offcourseId,
|
||||||
type: -2,
|
type: -2,
|
||||||
}).then((res) => {
|
})
|
||||||
if (res.data.code === 200) {
|
getTableDate();
|
||||||
message.destroy();
|
|
||||||
message.success("操作成功");
|
|
||||||
getTableDate();
|
|
||||||
delete_exit1();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user