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 { ...@@ -171,6 +171,7 @@ img {
position: absolute; position: absolute;
right: 10px; right: 10px;
bottom: 10px; bottom: 10px;
width: 400px;
} }
.content-head > h3 { .content-head > h3 {
font-weight: bold; font-weight: bold;
......
<template> <template>
<div class="hello"> <div class="hello">
<el-upload <el-upload
  
:on-remove="handleRemove" :on-remove="handleRemove"
:on-success="handleSuccess" :on-success="handleSuccess"
:before-remove="beforeRemove" :before-remove="beforeRemove"
...@@ -12,7 +13,7 @@ ...@@ -12,7 +13,7 @@
:http-request="handleUpload" :http-request="handleUpload"
multiple 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"> <div slot="tip" class="el-upload__tip">
{{ tip }} {{ tip }}
</div> </div>
...@@ -97,6 +98,7 @@ export default { ...@@ -97,6 +98,7 @@ export default {
this.$emit('input', value); this.$emit('input', value);
}, },
beforeUpload(file) { beforeUpload(file) {
this.loading=true
const max = this.max; const max = this.max;
const isLt2M = file.size / 1024 / 1024 < max; const isLt2M = file.size / 1024 / 1024 < max;
if (!isLt2M) { if (!isLt2M) {
...@@ -114,6 +116,7 @@ export default { ...@@ -114,6 +116,7 @@ export default {
console.log(res); console.log(res);
this.fileList.push(res); this.fileList.push(res);
this.emitInput(this.fileList); this.emitInput(this.fileList);
this.loading=false
}); });
}, },
handleRemove(file, fileList, index) { handleRemove(file, fileList, index) {
...@@ -121,9 +124,6 @@ export default { ...@@ -121,9 +124,6 @@ export default {
this.fileList = fileList; this.fileList = fileList;
this.emitInput(fileList); this.emitInput(fileList);
}, },
// handlePreview(file) {
// this.$emit('on-preview', file);
// },
beforeRemove(file, fileList) { beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name}?`); return this.$confirm(`确定移除 ${file.name}?`);
}, },
......
...@@ -98,4 +98,5 @@ export default { ...@@ -98,4 +98,5 @@ export default {
.sidebar > ul { .sidebar > ul {
height: 100%; height: 100%;
} }
.el-menu-item i{color:#AFB0B3}
</style> </style>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
<div class="flex" v-else> <div class="flex" v-else>
<div class="adjustment">上传附件:</div> <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> </div>
<div class="form"> <div class="form">
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
duration: 1500 duration: 1500
}) })
setTimeout(() => { setTimeout(() => {
this.$router.go(-1) this.$router.push("/supply/bid/joinProject/projectList")
}, 1500) }, 1500)
}else if(code==500){ }else if(code==500){
this.$message({ 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