mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
feat:修改学习路径获取学员列表
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2022-11-21 14:32:52
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-11-29 17:09:48
|
||||
* @LastEditTime: 2022-11-29 21:03:51
|
||||
* @FilePath: /fe-manage/src/api/config.js
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
@@ -53,7 +53,7 @@ http.interceptors.response.use(
|
||||
return response;
|
||||
} else {
|
||||
if (code === 1000) {
|
||||
window.open("https://u-pre.boe.com/web/", '_self');
|
||||
// window.open("https://u-pre.boe.com/web/", '_self');
|
||||
}
|
||||
console.log("api %o", msg);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: row; padding-top:32px;">
|
||||
<div style="display: flex; flex-direction: row; padding-top: 32px">
|
||||
<button
|
||||
style="width: 100px"
|
||||
@click="changeOuter(1)"
|
||||
@@ -382,8 +382,6 @@
|
||||
<a-button class="btn2" html-type="submit">确定</a-button>
|
||||
</div>
|
||||
</a-form>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- 加载动画 -->
|
||||
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
||||
@@ -460,7 +458,7 @@ export default {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
projectTemplateId:{
|
||||
projectTemplateId: {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
@@ -468,9 +466,9 @@ export default {
|
||||
setup(props, ctx) {
|
||||
const formState = reactive({
|
||||
examinationName: "",
|
||||
examinationDuration:0,
|
||||
examinationDuration: 0,
|
||||
examinationLimit: "",
|
||||
passLine:null,
|
||||
passLine: null,
|
||||
examinationEndTime: "",
|
||||
examinationExplain: "",
|
||||
questionArrangement: 1,
|
||||
@@ -643,7 +641,8 @@ export default {
|
||||
updateTest();
|
||||
};
|
||||
|
||||
const handleFinishFailed = () => {
|
||||
const handleFinishFailed = (e) => {
|
||||
console.log("提交失败", e);
|
||||
message.error("handleFinishFailed");
|
||||
};
|
||||
|
||||
@@ -655,7 +654,6 @@ export default {
|
||||
console.log(args);
|
||||
};
|
||||
const closeDrawer = () => {
|
||||
|
||||
formState.choosedTime = "";
|
||||
ctx.emit("update:addtestVisible", false);
|
||||
ctx.emit("update:edit", false);
|
||||
@@ -734,10 +732,12 @@ export default {
|
||||
// 编辑任务
|
||||
updateExamination(obj)
|
||||
.then((res) => {
|
||||
console.log("编辑考试", res);
|
||||
updateTask(res);
|
||||
closeDrawer();
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((err) => {
|
||||
console.log("编辑失败", err);
|
||||
message.error(`编辑失败`);
|
||||
});
|
||||
} else {
|
||||
@@ -747,7 +747,8 @@ export default {
|
||||
updateTask(res);
|
||||
closeDrawer();
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((err) => {
|
||||
console.log("创建失败", err);
|
||||
message.error(`编辑失败`);
|
||||
});
|
||||
}
|
||||
@@ -755,11 +756,11 @@ export default {
|
||||
|
||||
const updateTask = (res) => {
|
||||
state.EditTestId = res.data.data.examinationId;
|
||||
console.log("state.EditTestId=====0",state.EditTestId,props.faceLevel);
|
||||
if(props.faceLevel){
|
||||
console.log("state.EditTestId=====0", state.EditTestId, props.faceLevel);
|
||||
if (props.faceLevel) {
|
||||
state.EditTestId = res.data.data.examinationId;
|
||||
console.log("state.EditTestId=====",state.EditTestId);
|
||||
}else{
|
||||
console.log("state.EditTestId=====", state.EditTestId);
|
||||
} else {
|
||||
if (props.isLevel == 1) {
|
||||
let editObj1 = {
|
||||
chapterId: props.isactive,
|
||||
@@ -798,7 +799,9 @@ export default {
|
||||
ctx.emit("changeData", false);
|
||||
})
|
||||
.catch(() => {
|
||||
message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`);
|
||||
message.error(
|
||||
`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`
|
||||
);
|
||||
});
|
||||
} else if (props.isLevel == 3) {
|
||||
console.log("");
|
||||
@@ -818,11 +821,12 @@ export default {
|
||||
ctx.emit("changeData", false);
|
||||
})
|
||||
.catch(() => {
|
||||
message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`);
|
||||
message.error(
|
||||
`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const cloradio1 = (value) => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2022-11-16 20:59:33
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-11-24 16:21:04
|
||||
* @LastEditTime: 2022-11-29 22:30:01
|
||||
* @FilePath: /fe-manage/src/views/examine/CourseReviewedN.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
@@ -595,6 +595,7 @@ export default {
|
||||
state.chooseId = id;
|
||||
state.chooseCreater = creater;
|
||||
state.chooseOffId = offId;
|
||||
getFaceList();
|
||||
};
|
||||
const closeCourAuditModal = () => {
|
||||
state.courAuditModal = false;
|
||||
|
||||
@@ -1494,6 +1494,7 @@ export default {
|
||||
key: "opacation",
|
||||
width: 140,
|
||||
align: "center",
|
||||
fixed: "right",
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: (text) => {
|
||||
return (
|
||||
@@ -1642,7 +1643,7 @@ export default {
|
||||
name: "",
|
||||
pageNo: state.currentPage,
|
||||
pageSize: 10,
|
||||
routerId: 100,
|
||||
routerId: state.routerId,
|
||||
};
|
||||
api
|
||||
.getStudent(obj)
|
||||
|
||||
Reference in New Issue
Block a user