mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
fix:修改在线接口地址;删除无用consolelog
This commit is contained in:
@@ -12,7 +12,7 @@ import http from "./config";
|
|||||||
|
|
||||||
// 接口-请求
|
// 接口-请求
|
||||||
//查询在线课信息列表接口
|
//查询在线课信息列表接口
|
||||||
export const queryOnlinelList = (obj) => http.post('/queryOnlineClassesDetailList', obj)
|
export const queryOnlinelList = (obj) => http.post('/onlineClasses/queryOnlineClassesDetailList', obj)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -299,10 +299,6 @@ export default {
|
|||||||
}
|
}
|
||||||
} else if (props.isLevel == 3) {
|
} else if (props.isLevel == 3) {
|
||||||
for (let i = 0; i < state.apiTaskList.length; i++) {
|
for (let i = 0; i < state.apiTaskList.length; i++) {
|
||||||
console.log(
|
|
||||||
state.apiTaskList[i],
|
|
||||||
"state.apiTaskList[i].caseIdstate.apiTaskList[i].caseId"
|
|
||||||
);
|
|
||||||
apiTask
|
apiTask
|
||||||
.addTask({
|
.addTask({
|
||||||
courseId: state.apiTaskList[i].caseid,
|
courseId: state.apiTaskList[i].caseid,
|
||||||
|
|||||||
@@ -647,8 +647,7 @@ export default {
|
|||||||
updateTest();
|
updateTest();
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleFinishFailed = (err) => {
|
const handleFinishFailed = () => {
|
||||||
console.log(err,'a');
|
|
||||||
message.error("handleFinishFailed");
|
message.error("handleFinishFailed");
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -692,7 +691,6 @@ export default {
|
|||||||
// state.addLoading = true;
|
// state.addLoading = true;
|
||||||
queryExaminationDetailById({ examinationId: props.EditTestId })
|
queryExaminationDetailById({ examinationId: props.EditTestId })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log('----------------------',res);
|
|
||||||
formState.examinationName = res.data.data.examinationName;
|
formState.examinationName = res.data.data.examinationName;
|
||||||
formState.workRequirement = res.data.data.workRequirement;
|
formState.workRequirement = res.data.data.workRequirement;
|
||||||
formState.examinationDuration = res.data.data.examinationDuration;
|
formState.examinationDuration = res.data.data.examinationDuration;
|
||||||
@@ -719,8 +717,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
formState.choosedTime = [];
|
formState.choosedTime = [];
|
||||||
}
|
}
|
||||||
console.log('formState.testName',formState.testName);
|
|
||||||
console.log('state.testName',state.testName);
|
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
message.error(`查询失败`);
|
message.error(`查询失败`);
|
||||||
@@ -750,8 +746,6 @@ export default {
|
|||||||
examinationTestId:state.id,
|
examinationTestId:state.id,
|
||||||
examinationTestName:state.testName,
|
examinationTestName:state.testName,
|
||||||
};
|
};
|
||||||
console.log('obj___________________________',obj);
|
|
||||||
console.log('props.edit',props.edit);
|
|
||||||
if (props.edit) {
|
if (props.edit) {
|
||||||
// 编辑任务
|
// 编辑任务
|
||||||
updateExamination(obj)
|
updateExamination(obj)
|
||||||
@@ -777,10 +771,8 @@ export default {
|
|||||||
|
|
||||||
const updateTask = (res) => {
|
const updateTask = (res) => {
|
||||||
state.EditTestId = res.data.data.examinationId;
|
state.EditTestId = res.data.data.examinationId;
|
||||||
console.log("state.EditTestId=====0",state.EditTestId,props.faceLevel);
|
|
||||||
if(props.faceLevel){
|
if(props.faceLevel){
|
||||||
state.EditTestId = res.data.data.examinationId;
|
state.EditTestId = res.data.data.examinationId;
|
||||||
console.log("state.EditTestId=====",state.EditTestId);
|
|
||||||
}else{
|
}else{
|
||||||
if (props.isLevel == 1) {
|
if (props.isLevel == 1) {
|
||||||
let editObj1 = {
|
let editObj1 = {
|
||||||
@@ -823,7 +815,6 @@ export default {
|
|||||||
message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`);
|
message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`);
|
||||||
});
|
});
|
||||||
} else if (props.isLevel == 3) {
|
} else if (props.isLevel == 3) {
|
||||||
console.log("");
|
|
||||||
addTempTask({
|
addTempTask({
|
||||||
courseId: res.data.data.examinationId,
|
courseId: res.data.data.examinationId,
|
||||||
duration: res.data.data.examinationDuration,
|
duration: res.data.data.examinationDuration,
|
||||||
|
|||||||
@@ -220,11 +220,9 @@ export default {
|
|||||||
}
|
}
|
||||||
state.selectedRowKeys = selectedRowKeys;
|
state.selectedRowKeys = selectedRowKeys;
|
||||||
state.SelectTestData = selectedRows[0];
|
state.SelectTestData = selectedRows[0];
|
||||||
console.log("state.SelectTestData---------------", state.SelectTestData);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const newTest = () => {
|
const newTest = () => {
|
||||||
console.log("创建考试没设计图");
|
|
||||||
state.addExamVisible = true;
|
state.addExamVisible = true;
|
||||||
};
|
};
|
||||||
// const getTableDate = (tableData) => {
|
// const getTableDate = (tableData) => {
|
||||||
@@ -255,7 +253,6 @@ export default {
|
|||||||
api
|
api
|
||||||
.queryExaminationList(obj)
|
.queryExaminationList(obj)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log('datadatadatadata',data);
|
|
||||||
// getTableDate(res.data.data);
|
// getTableDate(res.data.data);
|
||||||
//** 表格repaint */
|
//** 表格repaint */
|
||||||
let array = []
|
let array = []
|
||||||
|
|||||||
Reference in New Issue
Block a user