Commit 2fd2c340 authored by youjie's avatar youjie

修复客户合同上传

parent eb86251d
...@@ -690,28 +690,13 @@ ...@@ -690,28 +690,13 @@
<div style="display: flex; justify-content: end;"> <div style="display: flex; justify-content: end;">
<el-upload class="upload-demo" <el-upload class="upload-demo"
ref="my-upload" 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=""> :show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button> <el-button size="small" type="primary">上传合同</el-button>
</el-upload> </el-upload>
</div> </div>
</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-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
...@@ -857,7 +842,7 @@ ...@@ -857,7 +842,7 @@
</el-upload> </el-upload>
</el-dialog> </el-dialog>
<div class="MyCustomerDetailbottomLayer ownScrollbarStyle" <div class="MyCustomerDetailbottomLayer ownScrollbarStyle"
style="height:500px;" v-show="addLayer1"> style="height:500px;" v-if="addLayer1">
<p>修改客户信息</p> <p>修改客户信息</p>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="18"> <el-col :span="18">
...@@ -995,28 +980,13 @@ ...@@ -995,28 +980,13 @@
<div style="display: flex; justify-content: end;"> <div style="display: flex; justify-content: end;">
<el-upload class="upload-demo" <el-upload class="upload-demo"
ref="my-upload" 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=""> :show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button> <el-button size="small" type="primary">上传合同</el-button>
</el-upload> </el-upload>
</div> </div>
</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-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
...@@ -1543,7 +1513,7 @@ ...@@ -1543,7 +1513,7 @@
this.updateMsg.District = x.district this.updateMsg.District = x.district
this.BusinessCardPhotos = x.businessCardPhotos && x.businessCardPhotos.length > 0?x.businessCardPhotos[0]:'' 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.updateMsg.PlatformUserNameList = x.platformUserNameList?x.platformUserNameList:[]
this.Images = x.images && x.images.length > 0?x.images[0]:'' this.Images = x.images && x.images.length > 0?x.images[0]:''
this.HousePhotos = x.housePhotos && x.housePhotos.length > 0?x.housePhotos[0]:'' this.HousePhotos = x.housePhotos && x.housePhotos.length > 0?x.housePhotos[0]:''
...@@ -1644,8 +1614,13 @@ ...@@ -1644,8 +1614,13 @@
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath that.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
this.addMsg.BusinessCardPhotos.push(this.BusinessCardPhotos) if(that.addShow==true){
that.addMsg.BusinessCardPhotos.push(that.BusinessCardPhotos)
}
if(that.addLayer1==true){
that.updateMsg.BusinessCardPhotos.push(that.BusinessCardPhotos)
}
that.$message.success('上传成功'); 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