Commit 0d88cc7c authored by 张冬's avatar 张冬

开标大厅样式和上传等待

parent ba1041d5
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -171,6 +171,7 @@ img {
position: absolute;
right: 10px;
bottom: 10px;
width: 400px;
}
.content-head > h3 {
font-weight: bold;
......
<template>
<div class="hello">
<el-upload
  
:on-remove="handleRemove"
:on-success="handleSuccess"
:before-remove="beforeRemove"
......@@ -12,7 +13,7 @@
:http-request="handleUpload"
multiple
>
<el-button size="small" type="primary">点击上传</el-button>
<el-button size="small" type="primary" v-loading.fullscreen.lock="loading">点击上传</el-button>
<div slot="tip" class="el-upload__tip">
{{ tip }}
</div>
......@@ -97,6 +98,7 @@ export default {
this.$emit('input', value);
},
beforeUpload(file) {
this.loading=true
const max = this.max;
const isLt2M = file.size / 1024 / 1024 < max;
if (!isLt2M) {
......@@ -114,6 +116,7 @@ export default {
console.log(res);
this.fileList.push(res);
this.emitInput(this.fileList);
this.loading=false
});
},
handleRemove(file, fileList, index) {
......@@ -121,9 +124,6 @@ export default {
this.fileList = fileList;
this.emitInput(fileList);
},
// handlePreview(file) {
// this.$emit('on-preview', file);
// },
beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name}?`);
},
......
......@@ -98,4 +98,5 @@ export default {
.sidebar > ul {
height: 100%;
}
.el-menu-item i{color:#AFB0B3}
</style>
......@@ -21,7 +21,7 @@
</div>
<div class="flex" v-else>
<div class="adjustment">上传附件:</div>
<singleUpload :limit="1" tip="支持上传1个附件,不超过20M" @input="getfile"></singleUpload>
<singleUpload :limit="1" tip="支持上传1个附件,不超过20M" :max="20" @input="getfile"></singleUpload>
</div>
</div>
<div class="form">
......
......@@ -126,7 +126,7 @@
duration: 1500
})
setTimeout(() => {
this.$router.go(-1)
this.$router.push("/supply/bid/joinProject/projectList")
}, 1500)
}else if(code==500){
this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment