mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
--fix 导入bug
This commit is contained in:
@@ -36,28 +36,28 @@
|
||||
? {
|
||||
targetId: Number(courseId),
|
||||
type: 3,
|
||||
userId: userId,
|
||||
userName: userName,
|
||||
userId: userInfo.id,
|
||||
userName: userInfo.realName,
|
||||
}
|
||||
: courseType == 3
|
||||
? {
|
||||
targetId: Number(courseId),
|
||||
type: 1,
|
||||
userId: userId,
|
||||
userName: userName,
|
||||
userId: userInfo.id,
|
||||
userName: userInfo.realName,
|
||||
}
|
||||
: courseType == 4
|
||||
? {
|
||||
targetId: Number(courseId),
|
||||
type: 2,
|
||||
userId: userId,
|
||||
userName: userName,
|
||||
userId: userInfo.id,
|
||||
userName: userInfo.realName,
|
||||
}
|
||||
: {
|
||||
targetId: Number(courseId),
|
||||
type: 3,
|
||||
userId: userId,
|
||||
userName: userName,
|
||||
userId: userInfo.id,
|
||||
userName: userInfo.realName,
|
||||
}
|
||||
"
|
||||
:showUploadList="false"
|
||||
@@ -197,7 +197,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
import {computed, reactive, toRefs} from "vue";
|
||||
import { message } from "ant-design-vue";
|
||||
import * as api from "../../api/index1";
|
||||
import { BATCH_IMPORT_SCORE } from "@/api/config";
|
||||
@@ -238,11 +238,11 @@ export default {
|
||||
errNum: 0, //失败数据数
|
||||
downloadErrUrl: "",
|
||||
showBottomBar: false, // 显示底部成功条数和失败条数
|
||||
userId: store.state.userInfo.id,
|
||||
userName: store.state.userInfo.realName,
|
||||
fileName: "",
|
||||
});
|
||||
|
||||
const userInfo = computed(()=>store.state.userInfo)
|
||||
|
||||
const closeDrawer = () => {
|
||||
clearInterval(state.timers);
|
||||
state.fileList = [];
|
||||
@@ -356,6 +356,7 @@ export default {
|
||||
return {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
userInfo,
|
||||
closeDrawer,
|
||||
// change,
|
||||
handleChange,
|
||||
|
||||
@@ -188,11 +188,10 @@
|
||||
</a-drawer>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
import {reactive, toRefs} from "vue";
|
||||
import { message } from "ant-design-vue";
|
||||
import * as api from "../../api/index1";
|
||||
import { BATCH_IMPORT_SCORE } from "@/api/config";
|
||||
import { useStore } from "vuex";
|
||||
export default {
|
||||
name: "EScore",
|
||||
props: {
|
||||
@@ -219,7 +218,6 @@ export default {
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const store = useStore();
|
||||
const state = reactive({
|
||||
fileType: ["xls", "xlsx"],
|
||||
importHomeWork:
|
||||
@@ -231,8 +229,6 @@ export default {
|
||||
succNum: 0, //成功数据数
|
||||
errNum: 0, //失败数据数
|
||||
downloadErrUrl: null, //下载失败数据
|
||||
userId: store.state.userInfo.id,
|
||||
userName: store.state.userInfo.realName,
|
||||
fileName: "",
|
||||
});
|
||||
const closeDrawer = () => {
|
||||
|
||||
Reference in New Issue
Block a user