项目后台(安全教育):培训照片回显问题修复
This commit is contained in:
parent
ecd650ae08
commit
392941469c
@ -45,8 +45,8 @@ export default new Vuex.Store({
|
||||
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
|
||||
// FILEURL:'http://10.0.1.43:6023/image/',//测试
|
||||
BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
|
||||
UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
|
||||
FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
|
||||
// UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
|
||||
// FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
|
||||
/* 2022-05-16 */
|
||||
// tag: 部署河南项目时,需要打开这两行代码
|
||||
// UPLOADURL: 'http://124.71.178.44:100/upload/image',
|
||||
@ -56,8 +56,8 @@ export default new Vuex.Store({
|
||||
// UPLOADURL: 'http://192.168.34.125:6023/upload/image',
|
||||
// FILEURL: 'http://192.168.34.125:6023/image/',
|
||||
// 邱平毅的
|
||||
// UPLOADURL: 'http://192.168.34.216:6023/upload/image',
|
||||
// FILEURL: 'http://192.168.34.216:6023/image/',
|
||||
UPLOADURL: 'http://192.168.34.216:6023/upload/image',
|
||||
FILEURL: 'http://192.168.34.216:6023/image/',
|
||||
|
||||
// UPLOADURL:'http://'+"61.190.32.219:9050"+'/upload/image',//正式
|
||||
// FILEURL:'http://'+"61.190.32.219:9050"+'/image/',//正式
|
||||
|
||||
@ -3499,7 +3499,7 @@ export default {
|
||||
}
|
||||
this.personForm.employmentCard = arrJoin.join(',')
|
||||
} else if (type == 8) {
|
||||
console.log(file)
|
||||
console.log('身份证正面上传',file)
|
||||
let data = {
|
||||
name: file.data[0].filename,
|
||||
url: file.data[0].imageUrl
|
||||
@ -4029,7 +4029,9 @@ export default {
|
||||
side: type
|
||||
}
|
||||
getIdCardInfoApi(data).then((res) => {
|
||||
console.log('返回值',res)
|
||||
if (res.code == 200) {
|
||||
console.log('成了吗',res)
|
||||
let val = res.result
|
||||
if (type == 1) {
|
||||
this.personForm.nation =
|
||||
|
||||
@ -347,6 +347,118 @@
|
||||
placeholder="请选择日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>-->
|
||||
<el-col :span="12">
|
||||
|
||||
<!-- <el-form-item
|
||||
:label="$t('message.laborMange.frontAndBackOfIdCard')"
|
||||
prop="idCardUpPhotoUrl"
|
||||
>
|
||||
<div class="flex3" style="width: 160px">
|
||||
<div>
|
||||
<div
|
||||
v-if="personForm.idCardUpPhotoUrl"
|
||||
style="
|
||||
position: relative;
|
||||
width: 60px;
|
||||
height: 38px;
|
||||
"
|
||||
>
|
||||
<img
|
||||
:src="fileUrl + personForm.idCardUpPhotoUrl"
|
||||
style="width: 60px; height: 38px"
|
||||
@click="
|
||||
handlePreview(
|
||||
fileUrl + personForm.idCardUpPhotoUrl,
|
||||
0
|
||||
)
|
||||
"
|
||||
/>
|
||||
<img
|
||||
v-if="
|
||||
personForm.idCardUpPhotoUrl &&
|
||||
titleType != 'detail'
|
||||
"
|
||||
src="@/assets/images/shut_icon.png"
|
||||
width="15px"
|
||||
height="15px"
|
||||
class="shut_icon"
|
||||
@click="shutIconBtn(2)"
|
||||
/>
|
||||
</div>
|
||||
<el-upload
|
||||
v-else
|
||||
class="upload-demo identity_card"
|
||||
:action="uploadUrl"
|
||||
:on-remove="(file) => handleRemove(file, 8)"
|
||||
:on-success="(file) => handleSuccess(file, 8)"
|
||||
:on-error="(file) => handleError(file, 8)"
|
||||
:on-preview="(file) => handlePreview(file, 8)"
|
||||
:beforeUpload="
|
||||
(file) => handleBeforeUpload(file, 8)
|
||||
"
|
||||
name="files"
|
||||
:class="titleType == 'detail' ? 'margin_top35' : ''"
|
||||
:file-list="idCardUpPhotoUrlFile"
|
||||
:disabled="titleType == 'detail'"
|
||||
:show-file-list="false"
|
||||
>
|
||||
<img src="@/assets/images/cockade.png" />
|
||||
</el-upload>
|
||||
</div>
|
||||
<div>
|
||||
<div
|
||||
v-if="personForm.idCardDownPhotoUrl"
|
||||
style="
|
||||
position: relative;
|
||||
width: 60px;
|
||||
height: 38px;
|
||||
"
|
||||
>
|
||||
<img
|
||||
:src="fileUrl + personForm.idCardDownPhotoUrl"
|
||||
style="width: 60px; height: 38px"
|
||||
@click="
|
||||
handlePreview(
|
||||
fileUrl + personForm.idCardDownPhotoUrl,
|
||||
0
|
||||
)
|
||||
"
|
||||
/>
|
||||
<img
|
||||
v-if="
|
||||
personForm.idCardDownPhotoUrl &&
|
||||
titleType != 'detail'
|
||||
"
|
||||
src="@/assets/images/shut_icon.png"
|
||||
width="15px"
|
||||
height="15px"
|
||||
class="shut_icon"
|
||||
@click="shutIconBtn(3)"
|
||||
/>
|
||||
</div>
|
||||
<el-upload
|
||||
v-else
|
||||
class="upload-demo identity_card"
|
||||
:action="uploadUrl"
|
||||
:on-remove="(file) => handleRemove(file, 9)"
|
||||
:on-success="(file) => handleSuccess(file, 9)"
|
||||
:on-error="(file) => handleError(file, 9)"
|
||||
:on-preview="(file) => handlePreview(file, 9)"
|
||||
:beforeUpload="
|
||||
(file) => handleBeforeUpload(file, 9)
|
||||
"
|
||||
name="files"
|
||||
:class="titleType == 'detail' ? 'margin_top35' : ''"
|
||||
:file-list="idCardDownPhotoUrlFile"
|
||||
:disabled="titleType == 'detail'"
|
||||
:show-file-list="false"
|
||||
>
|
||||
<img src="@/assets/images/portrait.png" />
|
||||
</el-upload>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item> -->
|
||||
</el-col>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
|
||||
@ -665,6 +665,10 @@ export default {
|
||||
});
|
||||
},
|
||||
addPoint() {
|
||||
// 清空图片
|
||||
this.cardForm.eduBeforePhoto= "";
|
||||
this.cardForm.eduInPhoto= "";
|
||||
this.cardForm.eduAfterPhoto= "";
|
||||
this.isAdd = true;
|
||||
this.cardDialog = true;
|
||||
this.$nextTick(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user