This commit is contained in:
ChenQiuYu 2025-05-20 15:19:07 +08:00
parent 29c0ff6585
commit dd3337ca3e
1 changed files with 23 additions and 18 deletions

View File

@ -39,7 +39,7 @@
<script setup lang="ts">
import {ref, onMounted} from 'vue';
import {type TabsPaneContext} from 'element-plus'
import {ElMessage, type TabsPaneContext} from 'element-plus'
import List_3501 from "@/components/social/inventoryUp/List_3501.vue";
import List_3502 from "@/components/social/inventoryUp/List_3502.vue";
import List_3503 from "@/components/social/inventoryUp/List_3503.vue";
@ -62,6 +62,7 @@ const uploadNumber=ref()
onMounted(() => {
init()
});
function init() {
post("social/upload/getNotDoNumber",).then((res: any) => {
tabs.value.forEach((tab: any) => {
@ -78,11 +79,13 @@ let totalNumber=0;
let startUpload = () => {
loading.value = true
uploadMsg.value = "正在初始化上传";
post("social/upload/getNotDoNumber",).then((res: any) => {
post("social/upload/getNotDoNumber", {catch_error: true}).then((res: any) => {
totalNumber = res.totalNumber;
uploadMsg.value = "正在初始化上传,总条数" + totalNumber;
console.log(uploadMsg)
upload_data()
}).catch((e: any) => {
loading.value = false
ElMessage.error(e)
})
}
@ -100,6 +103,7 @@ let upload_data = () => {
}).catch(
(err: any) => {
loading.value = false
ElMessage.error(err)
}
)
}
@ -118,6 +122,7 @@ let upload_data = () => {
width: 100%;
height: 50px;
}
.content {
flex: 1;
min-height: 0;