Commit 9699efa8 authored by Mac's avatar Mac

1

parent e671a579
......@@ -92,6 +92,23 @@
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="身份证正面" size="small" >
<el-button @click="openChangeDig(3)" size="small">选择文件</el-button>
<div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;">
<img style="width:80px;height:80px" :src="addMsg.IDCard" v-if="addMsg.IDCard!=''"
alt="">
<img src="../../assets/img/default.png" style="width:80px;height:80px" alt="" v-if="addMsg.IDCard==''">
</div>
</el-form-item>
<el-form-item label="身份证反面" size="small" >
<el-button @click="openChangeDig(4)" size="small">选择文件</el-button>
<div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;">
<img style="width:80px;height:80px" :src="addMsg.IDCardBack" v-if="addMsg.IDCardBack!=''"
alt="">
<img src="../../assets/img/default.png" style="width:80px;height:80px" alt="" v-if="addMsg.IDCardBack==''">
</div>
</el-form-item>
<el-form-item label="资产" >
<el-input v-model="addMsg.OtherInfo" style="width:478px" size="small" :min="0" type="number" placeholder="请输入总资产">
<template slot="append"></template>
......@@ -109,6 +126,9 @@
<el-form-item label="关于自己" >
<el-input v-model="addMsg.About" style="width:478px" size="small" placeholder="请输入关于自己" type="textarea"></el-input>
</el-form-item>
<el-form-item label="活动范围" >
<el-input v-model="addMsg.ActivityRegion" style="width:478px" size="small" placeholder="请输入活动范围" type="textarea"></el-input>
</el-form-item>
<el-form-item label="家庭背景" >
<el-input v-model="addMsg.FamilyInfo" style="width:478px" size="small" placeholder="请输入家庭背景" type="textarea"></el-input>
</el-form-item>
......@@ -210,6 +230,10 @@
FamilyInfo:'',//家庭背景
IDCardNo:'',
ActivityRegion:'',//活动区域
IDCard:'',
IDCardBack:'',
Hobby:'',
LikeFood:'',
LikeBook:'',
......@@ -402,6 +426,14 @@
this.addMsg.AlbumList.push(that.getIconLink(item.url));
})
}
if(this.imgType==3){
let url = this.getIconLink(msg.url)
this.addMsg.IDCard = url
}
if(this.imgType==4){
let url = this.getIconLink(msg.url)
this.addMsg.IDCardBack = url
}
this.changeState = false;
},
......
......@@ -105,6 +105,22 @@
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="身份证正面" size="small" >
<el-button @click="openChangeDig(3)" size="small">选择文件</el-button>
<div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;">
<img style="width:80px;height:80px" :src="addMsg.IDCard" v-if="addMsg.IDCard!=''"
alt="">
<img src="../../assets/img/default.png" style="width:80px;height:80px" alt="" v-if="addMsg.IDCard==''">
</div>
</el-form-item>
<el-form-item label="身份证反面" size="small" >
<el-button @click="openChangeDig(4)" size="small">选择文件</el-button>
<div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;">
<img style="width:80px;height:80px" :src="addMsg.IDCardBack" v-if="addMsg.IDCardBack!=''"
alt="">
<img src="../../assets/img/default.png" style="width:80px;height:80px" alt="" v-if="addMsg.IDCardBack==''">
</div>
</el-form-item>
<el-form-item label="资产" >
<el-input v-model="addMsg.OtherInfo" style="width:478px" size="small" :min="0" type="number" placeholder="请输入总资产">
<template slot="append"></template>
......@@ -122,6 +138,9 @@
<el-form-item label="关于自己" >
<el-input v-model="addMsg.About" style="width:478px" size="small" placeholder="请输入关于自己" type="textarea"></el-input>
</el-form-item>
<el-form-item label="活动范围" >
<el-input v-model="addMsg.ActivityRegion" style="width:478px" size="small" placeholder="请输入活动范围" type="textarea"></el-input>
</el-form-item>
<el-form-item label="家庭背景" >
<el-input v-model="addMsg.FamilyInfo" style="width:478px" size="small" placeholder="请输入家庭背景" type="textarea"></el-input>
</el-form-item>
......@@ -178,7 +197,7 @@
</div>
<!-- 选择文件 -->
<el-dialog title="选择文件" :visible.sync="changeState" width="1240px">
<ChooseImg @SelectId="SelectId" :IsMultiple="true"></ChooseImg>
<ChooseImg @SelectId="SelectId" :IsMultiple="imgType==2?true:false"></ChooseImg>
</el-dialog>
</div>
</template>
......@@ -347,17 +366,29 @@
querySearch(queryString, cb) {
},
openChangeDig() {
openChangeDig(num) {
this.changeState = true;
this.imgType=num;
},
SelectId(msg){
if(this.imgType == 2){
let that = this;
msg.forEach(item => {
this.addMsg.AlbumList.push(that.getIconLink(item.url));
})
}
if(this.imgType==3){
let url = this.getIconLink(msg.url)
this.addMsg.IDCard = url
}
if(this.imgType==4){
let url = this.getIconLink(msg.url)
this.addMsg.IDCardBack = url
}
this.changeState = false;
},
goUrl() {
......
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