@@ -325,6 +327,9 @@ const removePG = () => {
formData.value.assessmentId = ''
formData.value.assessmentName = ''
};
+const getchange=(mess)=> {
+ console.log(mess); //输出true或者false
+};
const props = defineProps({
type: Number,
taskList: []
@@ -493,11 +498,14 @@ const beforeUpload = (file) => {
formDatas.append("file", file);
fileUp(formDatas).then((res) => {
if (res.data.code === 200) {
- console.log(res)
- imageUrl.value = res.data
- formData.value.liveCover = res.data
+ console.log(res.data.data,45);
+ imageUrl.value = process.env.VUE_APP_FILE_PATH +res.data.data
+ formData.value.liveCover =process.env.VUE_APP_FILE_PATH + res.data.data
+
+
+
// state.hasImgName = file.name;
- // emit("src", { id: curItem.value.id, src: res.data.data });
+ // emit("src", { id: '', src: res.data.data });
}
});
return false;
diff --git a/src/components/drawers/AddOnline.vue b/src/components/drawers/AddOnline.vue
index 4a8e1238..80c2465b 100644
--- a/src/components/drawers/AddOnline.vue
+++ b/src/components/drawers/AddOnline.vue
@@ -11,79 +11,28 @@
>
-
-
-
-
+
+
+
+ {{
+ taskIndex === -1 ? '选择/新建课程' : '重新选择'
+ }}
+
+
+
@@ -92,10 +41,9 @@
\ No newline at end of file
diff --git a/src/components/drawers/EvList.vue b/src/components/drawers/EvList.vue
index 01cb0be4..7f8462d8 100644
--- a/src/components/drawers/EvList.vue
+++ b/src/components/drawers/EvList.vue
@@ -17,7 +17,7 @@
@@ -117,11 +117,18 @@ const taskIndex = ref(-1);
const {data, loading, total, fetch} = useBoeApiPage(TEST_PAGE, params.value, {
init: false,
- result: res => res.result.data,
+ result: res => {
+ let newArr = []
+ for(let i=0;i
res.result.total_page_num,
total: res => res.result.count
})
-
+console.log(data,222)
watch(taskIndex, () => {
if (taskIndex.value >= 0) {
rowSelectKeys.value = [props.taskList[taskIndex.value].courseId]
@@ -182,24 +189,31 @@ const closeDrawer = () => {
function confirm() {
if (!selectsData.value.length || !rowSelectKeys.value.length) {
- message.warning("请选择案例!");
+ message.warning("请选择测评!");
return
}
if (taskIndex.value === -1) {
- const list = props.taskList
- list.push({
+ let list = props.taskList
+ console.log(props,222,list);
+ if(list!=undefined){
+ list.push({
name: selectsData.value[0].title,
type: 3,
courseId: selectsData.value[0].id,
info: selectsData.value[0]
})
+ }
+
} else {
const data = props.taskList[taskIndex.value]
data.name = selectsData.value[0].title
data.courseId = selectsData.value[0].id
data.info = selectsData.value[0]
}
- emit('update:taskList', [...props.taskList])
+ if(props.taskList!=undefined){
+ emit('update:taskList', [...props.taskList])
+ }
+
closeDrawer()
}
diff --git a/src/components/drawers/ImportStu.vue b/src/components/drawers/ImportStu.vue
index fbd15382..0f1ba90a 100644
--- a/src/components/drawers/ImportStu.vue
+++ b/src/components/drawers/ImportStu.vue
@@ -24,12 +24,28 @@
上传:
-
+
+
+
+
+
+ 点击或将文件拖拽到此处上传
+ 支持扩展名:.xls/.xlsx
+
+
+
+
+
+
+
+
+
+
+
+
{{ fileName }}
+
正在上传
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ fileName }}
+
上传失败
+
+
+
+
+
+
+
+
+ {{ succNum }}条数据导入成功,{{ errNum }}条数据导入失败
+
+
+
+
+
+
+
+
+
+
+
{{ fileName }}
+
上传成功
+
+
+
+
+
+
+
+
+
+
![]()
+
+ {{ succNum }}条数据导入成功,{{ errNum }}条数据导入失败
+
+
-
-
+
+
@@ -111,6 +249,9 @@
-
+
-
-
\ No newline at end of file
+
diff --git a/src/components/drawers/router/RouterExaminationManage.vue b/src/components/drawers/router/RouterExaminationManage.vue
index f9ba9b36..879d30a9 100644
--- a/src/components/drawers/router/RouterExaminationManage.vue
+++ b/src/components/drawers/router/RouterExaminationManage.vue
@@ -190,15 +190,15 @@ export default {
tablecolumns: [
{
title: "工号",
- dataIndex: "studentUserNo",
- key: "studentUserNo",
+ dataIndex: "studentCode",
+ key: "studentCode",
width: 120,
align: "center",
className: "h head",
customRender: (text) => {
return (
- {text.record.studentUserNo?text.record.studentUserNo:"-"}
+ {text.record.studentCode?text.record.studentCode:"-"}
);
},
@@ -395,22 +395,21 @@ export default {
// 获取数据
function getData() {
- api.AssessmentManagementMessage({
+ api.ExamManagementMessage({
+ studentName: state.name,
pageNo: state.currentPage,
pageSize: state.pageSize,
- currentStageId: props.datasource.chapterId,
- type: 2,
- pid: props.datasource.routerId,
- taskId: props.datasource.routerTaskId,
- taskType: props.datasource.type,
- status: state.projectName,
- studentName: state.name,
+ chapterId: props.datasource.chapterId,
+ type: 1,
+ taskId: props.datasource.courseId,
+ targetId: props.datasource.routerId
}).then(res=>{
- state.tabledata = res.data.data.records;
+ state.tabledata = res.data.data.managementDtoList;
state.tableDataTotal = res.data.data.total;
state.loadingData = false;
})
}
+
// 搜索
function searchTableData() {
state.currentPage = 1;
@@ -436,7 +435,7 @@ export default {
{/* 导出数据 */}
function exportData() {
// window.open(`${process.env.VUE_APP_BASE_API}/admin/exam/manage/exportExam?chapterId=${props.datasource.chapterId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&type=${1}`)
- window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&taskType=${props.datasource.type}`)
+ window.open(`${process.env.VUE_APP_BASE_API}/admin/exam/manage/exportExam?currentStageId=${props.datasource.chapterId}&type=${1}&pid=${props.datasource.routerId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&taskType=${props.datasource.type}`)
{/* api.ExportExam({
"chapterId": props.datasource.chapterId,
diff --git a/src/components/drawers/router/RouterHomeworkManage.vue b/src/components/drawers/router/RouterHomeworkManage.vue
index 4c102d35..c5919dc5 100644
--- a/src/components/drawers/router/RouterHomeworkManage.vue
+++ b/src/components/drawers/router/RouterHomeworkManage.vue
@@ -567,7 +567,7 @@ export default {
}/admin/student/exportTaskStudent?currentStageId=${
props.datasource.chapterId
}&type=${2}&pid=${props.datasource.routerId}&taskType=${4}&taskId=${
- props.datasource.routerTaskId
+ props.datasource.id
}`
);
// api
diff --git a/src/components/drawers/router/RouterVoteManage.vue b/src/components/drawers/router/RouterVoteManage.vue
index fd5d03c8..05d058b9 100644
--- a/src/components/drawers/router/RouterVoteManage.vue
+++ b/src/components/drawers/router/RouterVoteManage.vue
@@ -23,7 +23,7 @@
v-if="datasource.type !== 6 && datasource.type !== 9"
class="endtime"
>
-
+
@@ -48,7 +48,7 @@
placeholder="请选择"
:options="projectNameList"
@change="selectProjectName"
-
+
>