Commit 2fd2c340 authored by youjie's avatar youjie

修复客户合同上传

parent eb86251d
......@@ -690,28 +690,13 @@
<div style="display: flex; justify-content: end;">
<el-upload class="upload-demo"
ref="my-upload"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg"
style="display:inline-block;position:relative;top:-1px;left:3px;"
:http-request="uploadImg"
:show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button>
</el-upload>
</div>
</div>
<!--
<div style="display: flex;flex-wrap: wrap;">
<div v-if="addMsg.BusinessCardPhotos&&addMsg.BusinessCardPhotos.length>0"
style="display: flex;flex-wrap: wrap;">
<div style="position: relative;margin-right: 10px;margin-bottom: 15px;"
v-for="(i,fIndex) in addMsg.BusinessCardPhotos">
<img :src="i" class="avatar">
<span class="iconfont icon-guanbi1"
@click="deleteUploadFile(fIndex,1)"></span>
</div>
</div>
<el-upload class="avatar-uploader" action="" :http-request="uploadImg"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false">
<i class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</div> -->
</el-form-item>
</el-col>
<el-col :span="8">
......@@ -857,7 +842,7 @@
</el-upload>
</el-dialog>
<div class="MyCustomerDetailbottomLayer ownScrollbarStyle"
style="height:500px;" v-show="addLayer1">
style="height:500px;" v-if="addLayer1">
<p>修改客户信息</p>
<el-row :gutter="20">
<el-col :span="18">
......@@ -995,28 +980,13 @@
<div style="display: flex; justify-content: end;">
<el-upload class="upload-demo"
ref="my-upload"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImgNew"
style="display:inline-block;position:relative;top:-1px;left:3px;"
:http-request="uploadImg"
:show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button>
</el-upload>
</div>
</div>
<!--
<div style="display: flex;flex-wrap: wrap;">
<div v-if="updateMsg.BusinessCardPhotos&&updateMsg.BusinessCardPhotos.length>0"
style="display: flex;flex-wrap: wrap;">
<div style="position: relative;margin-right: 10px;margin-bottom: 15px;" v-for="(i,fIndex) in updateMsg.BusinessCardPhotos">
<img :src="i" class="avatar">
<span class="iconfont icon-guanbi1"
@click="deleteUploadFile(fIndex)"></span>
</div>
</div>
<el-upload class="avatar-uploader" action="" :http-request="uploadImgNew"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false">
<i class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</div> -->
</el-form-item>
</el-col>
<el-col :span="8">
......@@ -1543,7 +1513,7 @@
this.updateMsg.District = x.district
this.BusinessCardPhotos = x.businessCardPhotos && x.businessCardPhotos.length > 0?x.businessCardPhotos[0]:''
this.updateMsg.BusinessCardPhotos = x.businessCardPhotos
this.updateMsg.BusinessCardPhotos = x.businessCardPhotos?x.businessCardPhotos:[]
this.updateMsg.PlatformUserNameList = x.platformUserNameList?x.platformUserNameList:[]
this.Images = x.images && x.images.length > 0?x.images[0]:''
this.HousePhotos = x.housePhotos && x.housePhotos.length > 0?x.housePhotos[0]:''
......@@ -1644,8 +1614,13 @@
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
this.addMsg.BusinessCardPhotos.push(this.BusinessCardPhotos)
that.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
if(that.addShow==true){
that.addMsg.BusinessCardPhotos.push(that.BusinessCardPhotos)
}
if(that.addLayer1==true){
that.updateMsg.BusinessCardPhotos.push(that.BusinessCardPhotos)
}
that.$message.success('上传成功');
});
},
......
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