mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
测评上传取消全屏加载
This commit is contained in:
@@ -659,9 +659,9 @@
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
<div class="aeLoading" style="z-index:999999" :style="{ display: uploadDownLoad ? 'flex' : 'none' }">
|
||||
<!-- <div class="aeLoading" style="z-index:999999" :style="{ display: uploadDownLoad ? 'flex' : 'none' }">
|
||||
<a-spin :spinning="uploadDownLoad" tip="" />
|
||||
</div>
|
||||
</div> -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -702,6 +702,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
||||
const userInfo = computed(() => store.state.userInfo);
|
||||
const router = useRouter();
|
||||
const state = reactive({
|
||||
stateUpload: true,
|
||||
uploadParameters: {},
|
||||
uploadList: [],
|
||||
isRegularAdministrator: '',
|
||||
@@ -1298,6 +1299,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
||||
const pattern = /^([0-9\u4e00-\u9fa5\a-z\A-Z]+-){2}[0-9\u4e00-\u9fa5\a-z\A-Z]+\.\w*$/;
|
||||
if (!pattern.test(file.name)) {
|
||||
message.error('上传文件名称格式不对')
|
||||
state.stateUpload = false
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -1307,6 +1309,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
||||
file.type === "application/zip"
|
||||
if (!isJpgOrPng) {
|
||||
message.error("仅支持zip、pdf格式!");
|
||||
state.stateUpload = false
|
||||
return false;
|
||||
}
|
||||
state.uploadDownLoad = true
|
||||
@@ -1390,7 +1393,10 @@ import {timeoutUpload} from "@/api/configPublic";
|
||||
}
|
||||
state.uploadDownLoad = false
|
||||
}
|
||||
state.uploadList = fileList.slice(-1)
|
||||
if(state.stateUpload){
|
||||
state.uploadList = fileList.slice(-1)
|
||||
}
|
||||
state.stateUpload = true
|
||||
};
|
||||
const delUploadList = () => {
|
||||
state.uploadList = []
|
||||
@@ -1821,7 +1827,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
||||
}
|
||||
}
|
||||
.mbl_items12 {
|
||||
// width: 300px;
|
||||
width: 334px;
|
||||
margin-left: 128px;
|
||||
.item_text{
|
||||
width: 300px;
|
||||
|
||||
Reference in New Issue
Block a user