From fa3ac93010bea3805438ee3ab0a182bfbf7423da Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期一, 27 五月 2024 16:19:31 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/dry/identify/index.vue | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/views/dry/identify/index.vue b/src/views/dry/identify/index.vue index e8ccc73..86e08b6 100644 --- a/src/views/dry/identify/index.vue +++ b/src/views/dry/identify/index.vue @@ -1,6 +1,7 @@ <template> <div> <div class="app"> + <a-spin :spinning="spinning" > <div class="dragger"> <a-upload-dragger v-model:fileList="fileList" @@ -56,7 +57,7 @@ </a-col> </a-row> </div> - + </a-spin> </div> </div> @@ -71,16 +72,22 @@ const fileList = ref([]); const previewUrl = ref() const results = ref([]) +const spinning = ref(false) const columns = [ { - title: '鍝佺', - dataIndex: 'className', - key: 'className', + title: '鑽潗', + dataIndex: 'name', + key: 'name', + }, + { + title: '鑻辨枃鍚�', + dataIndex: 'english', + key: 'english', }, { title: '鍙俊搴�', - dataIndex: 'probability', - key: 'probability', + dataIndex: 'probabily', + key: 'probabily', }, ] const handleChange = (info: UploadChangeParam) => { @@ -99,11 +106,12 @@ console.log(info.file, info.fileList); } if (status === 'done') { - message.success(`${info.file.name} file uploaded successfully.`); + message.success(`${info.file.name} 璇嗗埆鎴愬姛锛侊紒`); console.log("done",info.file.response.result) results.value = info.file.response.result + spinning.value = false } else if (status === 'error') { - message.error(`${info.file.name} file upload failed.`); + message.error(`${info.file.name} 璇嗗埆澶辫触锛侊紒`); } }; function handleDrop(e: DragEvent) { @@ -112,6 +120,7 @@ function beforeUpload(file) { console.log("before",file) + spinning.value = true previewUrl.value = URL.createObjectURL(file) console.log("pre",previewUrl.value) -- Gitblit v1.9.3