dev
This commit is contained in:
parent
29c0ff6585
commit
dd3337ca3e
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {ref, onMounted} from 'vue';
|
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_3501 from "@/components/social/inventoryUp/List_3501.vue";
|
||||||
import List_3502 from "@/components/social/inventoryUp/List_3502.vue";
|
import List_3502 from "@/components/social/inventoryUp/List_3502.vue";
|
||||||
import List_3503 from "@/components/social/inventoryUp/List_3503.vue";
|
import List_3503 from "@/components/social/inventoryUp/List_3503.vue";
|
||||||
|
|
@ -62,6 +62,7 @@ const uploadNumber=ref()
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
init()
|
init()
|
||||||
});
|
});
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
post("social/upload/getNotDoNumber",).then((res: any) => {
|
post("social/upload/getNotDoNumber",).then((res: any) => {
|
||||||
tabs.value.forEach((tab: any) => {
|
tabs.value.forEach((tab: any) => {
|
||||||
|
|
@ -78,11 +79,13 @@ let totalNumber=0;
|
||||||
let startUpload = () => {
|
let startUpload = () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
uploadMsg.value = "正在初始化上传";
|
uploadMsg.value = "正在初始化上传";
|
||||||
post("social/upload/getNotDoNumber",).then((res: any) => {
|
post("social/upload/getNotDoNumber", {catch_error: true}).then((res: any) => {
|
||||||
totalNumber = res.totalNumber;
|
totalNumber = res.totalNumber;
|
||||||
uploadMsg.value = "正在初始化上传,总条数" + totalNumber;
|
uploadMsg.value = "正在初始化上传,总条数" + totalNumber;
|
||||||
console.log(uploadMsg)
|
|
||||||
upload_data()
|
upload_data()
|
||||||
|
}).catch((e: any) => {
|
||||||
|
loading.value = false
|
||||||
|
ElMessage.error(e)
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -100,6 +103,7 @@ let upload_data = () => {
|
||||||
}).catch(
|
}).catch(
|
||||||
(err: any) => {
|
(err: any) => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
ElMessage.error(err)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -118,6 +122,7 @@ let upload_data = () => {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue