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>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</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="" />
|
<a-spin :spinning="uploadDownLoad" tip="" />
|
||||||
</div>
|
</div> -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -702,6 +702,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
|||||||
const userInfo = computed(() => store.state.userInfo);
|
const userInfo = computed(() => store.state.userInfo);
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
stateUpload: true,
|
||||||
uploadParameters: {},
|
uploadParameters: {},
|
||||||
uploadList: [],
|
uploadList: [],
|
||||||
isRegularAdministrator: '',
|
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*$/;
|
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)) {
|
if (!pattern.test(file.name)) {
|
||||||
message.error('上传文件名称格式不对')
|
message.error('上传文件名称格式不对')
|
||||||
|
state.stateUpload = false
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1307,6 +1309,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
|||||||
file.type === "application/zip"
|
file.type === "application/zip"
|
||||||
if (!isJpgOrPng) {
|
if (!isJpgOrPng) {
|
||||||
message.error("仅支持zip、pdf格式!");
|
message.error("仅支持zip、pdf格式!");
|
||||||
|
state.stateUpload = false
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
state.uploadDownLoad = true
|
state.uploadDownLoad = true
|
||||||
@@ -1390,7 +1393,10 @@ import {timeoutUpload} from "@/api/configPublic";
|
|||||||
}
|
}
|
||||||
state.uploadDownLoad = false
|
state.uploadDownLoad = false
|
||||||
}
|
}
|
||||||
state.uploadList = fileList.slice(-1)
|
if(state.stateUpload){
|
||||||
|
state.uploadList = fileList.slice(-1)
|
||||||
|
}
|
||||||
|
state.stateUpload = true
|
||||||
};
|
};
|
||||||
const delUploadList = () => {
|
const delUploadList = () => {
|
||||||
state.uploadList = []
|
state.uploadList = []
|
||||||
@@ -1821,7 +1827,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mbl_items12 {
|
.mbl_items12 {
|
||||||
// width: 300px;
|
width: 334px;
|
||||||
margin-left: 128px;
|
margin-left: 128px;
|
||||||
.item_text{
|
.item_text{
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
|||||||
Reference in New Issue
Block a user