mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
feat:合并
This commit is contained in:
@@ -37,35 +37,12 @@
|
||||
name="uploadFile"
|
||||
:multiple="false"
|
||||
@change="handleChange"
|
||||
:data="
|
||||
courseType == 1
|
||||
? {
|
||||
:data="{
|
||||
targetId: Number(courseId),
|
||||
type: 3,
|
||||
userId: userId,
|
||||
userName: userName,
|
||||
}
|
||||
: courseType == 3
|
||||
? {
|
||||
targetId: Number(courseId),
|
||||
type: 1,
|
||||
userId: userId,
|
||||
userName: userName,
|
||||
}
|
||||
: courseType == 4
|
||||
? {
|
||||
targetId: Number(courseId),
|
||||
type: 2,
|
||||
userId: userId,
|
||||
userName: userName,
|
||||
}
|
||||
: {
|
||||
targetId: Number(courseId),
|
||||
type: 3,
|
||||
userId: userId,
|
||||
userName: userName,
|
||||
}
|
||||
"
|
||||
type: courseType,
|
||||
userId: userInfo.id,
|
||||
userName: userInfo.realName,
|
||||
} "
|
||||
:showUploadList="false"
|
||||
>
|
||||
<p class="ant-upload-drag-icon">
|
||||
@@ -205,7 +182,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";
|
||||
@@ -246,11 +223,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 = [];
|
||||
@@ -364,6 +341,7 @@ export default {
|
||||
return {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
userInfo,
|
||||
closeDrawer,
|
||||
// change,
|
||||
handleChange,
|
||||
|
||||
Reference in New Issue
Block a user