|
|
@@ -81,18 +81,54 @@
|
|
|
<el-input v-model="SubfileForm.OtherRemark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+
|
|
|
<el-col :span="12">
|
|
|
+ <el-form-item label="资质文件">
|
|
|
+ <!-- <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
|
|
|
+ :on-remove="filremove" :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload" :file-list="fileList">
|
|
|
+ <i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
+ <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(大小为512KB-5MB),可上传多张图片
|
|
|
+ </div>
|
|
|
+ <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType ==yasuoname">请上传压缩文件
|
|
|
+ </div>
|
|
|
+ </el-upload> -->
|
|
|
+ <el-upload
|
|
|
+ :multiple="false" style="margin-top: 10px;" class="attach-uploader"
|
|
|
+ action=""
|
|
|
+ :before-upload="beforeAvatarUpload"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ list-type="picture-card"
|
|
|
+ ref="refuploadattach"
|
|
|
+ :file-list="fileList"
|
|
|
+ :on-remove="filremove"
|
|
|
+ :http-request="uploadrequest"
|
|
|
+ limit = "5"
|
|
|
+ :on-exceed="uploadExceed">
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(大小为512KB-5MB),最多可上传五张图片
|
|
|
+ </div>
|
|
|
+ <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType ==yasuoname">请上传压缩文件
|
|
|
+ </div>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible" :modal="false">
|
|
|
+ <img width="100%" style="z-index:9999" :src="dialogImageUrl" alt="">
|
|
|
+ </el-dialog>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <el-col :span="12">
|
|
|
<el-form-item label="资质文件">
|
|
|
<el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
|
|
|
:on-remove="filremove" :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload" :file-list="fileList">
|
|
|
<i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
- <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(大小为512KB-5MB),可上传多张图片
|
|
|
+ <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">123请上传图片(大小为512KB-5MB),可上传多张图片
|
|
|
</div>
|
|
|
<div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType ==yasuoname">请上传压缩文件
|
|
|
</div>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top:-30px;">
|
|
|
@@ -178,6 +214,8 @@
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
+ dialogImageUrl: '',
|
|
|
+ dialogVisible: false,
|
|
|
size: 10,
|
|
|
currentPage: 1,
|
|
|
currentItem_Count: 0,
|
|
|
@@ -250,6 +288,14 @@
|
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 上传超过限制数
|
|
|
+ uploadExceed (files, fileList) {
|
|
|
+ if (fileList.length >= 5) {
|
|
|
+ this.$alert('超出上传照片数,禁止上传', '提示', {
|
|
|
+ confirmButtonText: '确定'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
imgFormat(val,index){
|
|
|
if(val !=null && val != undefined && val !=''){
|
|
|
let fileurlall = val.split('$')[index]
|
|
|
@@ -266,6 +312,13 @@
|
|
|
return true;
|
|
|
}
|
|
|
},
|
|
|
+ handleRemove(file, fileList) {
|
|
|
+ console.log(file, fileList);
|
|
|
+ },
|
|
|
+ handlePictureCardPreview(file) {
|
|
|
+ this.dialogImageUrl = file.url;
|
|
|
+ this.dialogVisible = true;
|
|
|
+ },
|
|
|
pickerchange () {
|
|
|
console.log(this.SubfileForm.EffectDate)
|
|
|
},
|
|
|
@@ -757,8 +810,8 @@
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
// margin-bottom: -17px;
|
|
|
- margin-top: -15px;
|
|
|
- margin-left: 20px
|
|
|
+ margin-top: 0px;
|
|
|
+ margin-left: 0px
|
|
|
}
|
|
|
|
|
|
.attach-uploader .el-upload:hover {
|