This commit is contained in:
Pengxiansen
2025-02-25 17:40:36 +08:00
parent 1b45ae804b
commit cb3bff4fa8
11 changed files with 557 additions and 559 deletions

View File

@@ -35,8 +35,7 @@
:multiple="false"
@change="handleChange"
:data="{
growthId: Number(courseId),
type: courseType,
growthId: String(growId),
}"
:showUploadList="false"
>
@@ -219,7 +218,7 @@ export default {
type: Boolean,
default: false,
},
courseId: {
growId: {
type: String,
default: "",
},
@@ -235,10 +234,10 @@ export default {
const store = useStore();
const state = reactive({
redisKey: "",
importStudent: `${process.env.VUE_APP_BOE_API_URL}${
process.env.VUE_APP_BASE_API_GROWTH || ""
}/professional/allocation/importLearner`,
// importStudent: `${process.env.VUE_APP_BOE_API_URL}${
// process.env.VUE_APP_BASE_API_GROWTH || ""
// }/professional/allocation/importLearner`,
importStudent: `http://192.168.31.211:32002/professional/allocation/importLearner`,
timers: "", // 定时器,用于清空定时器使用
isAddStudent: false, // 用于判断用户是否关闭弹框需要重新获取学员列表
uploadpercent: -1,
@@ -268,7 +267,7 @@ export default {
if (state.redisKey && state.succNum != 0 && item) {
saveStudent({
redisKey: state.redisKey,
growId: props.courseId,
growId: props.growId,
isImportNotMatchStudent: state.groupValue ? 1 : 0,
})
.then((res) => {
@@ -343,7 +342,7 @@ export default {
console.log("上传成功返回的UUID----->", info);
console.log("我是导入学员接口传递的参数", {
file: info.file.originFileObj,
targetId: props.courseId,
targetId: props.growId,
type: 14,
});
state.fileName = info.file.name;