Commit 24176928 authored by mengwenhao's avatar mengwenhao

update:新增图片放大功能和用户手机号回显

parent 4849f7a2
...@@ -63,14 +63,29 @@ ...@@ -63,14 +63,29 @@
label="企业营业执照照片" label="企业营业执照照片"
> >
<template #default="scope"> <template #default="scope">
<el-popover
placement="bottom"
:width="600"
trigger="click"
>
<template #reference>
<el-image <el-image
v-if="scope.row.sensitiveWord && scope.row.entterprise_image" v-if="scope.row.sensitiveWord && scope.row.entterprise_image"
fit="fill" fit="fill"
:src="scope.row.entterprise_image" :src="scope.row.entterprise_image"
></el-image> ></el-image>
<span v-else-if="scope.row.sensitiveWord && !scope.row.entterprise_image"></span> <span v-else-if="
scope.row.sensitiveWord && !scope.row.entterprise_image
"></span>
<span v-else>无权限</span> <span v-else>无权限</span>
</template> </template>
<el-image
fit="fill"
style="width:100%;height:100%"
:src="scope.row.entterprise_image"
></el-image>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
...@@ -88,7 +103,7 @@ ...@@ -88,7 +103,7 @@
prop="mobile" prop="mobile"
> >
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.mobile">{{scope.row.mobile}}</span> <span v-if="scope.row.mobile">{{ scope.row.mobile }}</span>
<span v-else></span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -97,28 +112,59 @@ ...@@ -97,28 +112,59 @@
label="身份证正面照片" label="身份证正面照片"
> >
<template #default="scope"> <template #default="scope">
<el-popover
placement="bottom"
:width="600"
trigger="click"
>
<template #reference>
<el-image <el-image
v-if="scope.row.sensitiveWord && scope.row.legal_front_id_card" v-if="scope.row.sensitiveWord && scope.row.legal_front_id_card"
:src="scope.row.legal_front_id_card" :src="scope.row.legal_front_id_card"
fit="fill" fit="fill"
></el-image> ></el-image>
<span v-else-if="scope.row.sensitiveWord && !scope.row.legal_front_id_card"></span> <span v-else-if="
scope.row.sensitiveWord && !scope.row.legal_front_id_card
"></span>
<span v-else>无权限</span> <span v-else>无权限</span>
</template> </template>
<el-image
fit="fill"
style="width:100%;height:100%"
:src="scope.row.legal_front_id_card"
></el-image>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
label="身份证反面照片" label="身份证反面照片"
> >
<template #default="scope"> <template #default="scope">
<el-popover
placement="bottom"
:width="600"
trigger="click"
>
<template #reference>
<el-image <el-image
v-if="scope.row.sensitiveWord && scope.row.legal_back_id_card" v-if="scope.row.sensitiveWord && scope.row.legal_back_id_card"
fit="fill" fit="fill"
:src="scope.row.legal_back_id_card" :src="scope.row.legal_back_id_card"
></el-image> ></el-image>
<span v-else-if="scope.row.sensitiveWord && !scope.row.legal_back_id_card"></span> <span v-else-if="
scope.row.sensitiveWord && !scope.row.legal_back_id_card
"></span>
<span v-else>无权限</span> <span v-else>无权限</span>
</template> </template>
<el-image
fit="fill"
style="width:100%;height:100%"
:src="scope.row.legal_back_id_card"
></el-image>
</el-popover>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -201,7 +247,9 @@ ...@@ -201,7 +247,9 @@
label="审核意见" label="审核意见"
> >
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.audit_opinion.length !== 0">{{scope.row.audit_opinion}}</span> <span v-if="scope.row.audit_opinion.length !== 0">{{
scope.row.audit_opinion
}}</span>
<span v-else></span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -351,7 +399,7 @@ export default { ...@@ -351,7 +399,7 @@ export default {
try { try {
const res = await getRecordInfo(params); const res = await getRecordInfo(params);
if (res.code !== 0) return this.$message.error(res.reason); if (res.code !== 0) return this.$message.error(res.reason);
this.messageForm = res.result.record; this.messageForm = res.result;
this.messageList.push(res.result.record); this.messageList.push(res.result.record);
this.lifeList.push(res.result.life); this.lifeList.push(res.result.life);
console.log("messageForm=1-2=310=-203", this.messageForm); console.log("messageForm=1-2=310=-203", this.messageForm);
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
> >
<el-image <el-image
v-if="establishForm.entterpriseImage" v-if="establishForm.entterpriseImage"
style="width:100px;height:100px;border-radius:10px" style="width:200px;height:200px;border-radius:10px"
:src="establishForm.entterpriseImage" :src="establishForm.entterpriseImage"
fit="cover" fit="cover"
></el-image> ></el-image>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
> >
<el-image <el-image
v-if="establishForm.frontImg" v-if="establishForm.frontImg"
style="width:100px;height:100px;border-radius:10px" style="width:200px;height:200px;border-radius:10px"
:src="establishForm.frontImg" :src="establishForm.frontImg"
fit="cover" fit="cover"
></el-image> ></el-image>
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
> >
<el-image <el-image
v-if="establishForm.bakImg" v-if="establishForm.bakImg"
style="width:100px;height:100px;border-radius:10px" style="width:200px;height:200px;border-radius:10px"
:src="establishForm.bakImg" :src="establishForm.bakImg"
fit="cover" fit="cover"
></el-image> ></el-image>
...@@ -316,22 +316,22 @@ export default { ...@@ -316,22 +316,22 @@ export default {
watch: { watch: {
// 监听异步传过来的表单值做修改 // 监听异步传过来的表单值做修改
dataForm (val) { dataForm (val) {
this.establishForm.data_type = val.data_type; this.establishForm.data_type = val.record.data_type;
this.establishForm.name = val.name; this.establishForm.name = val.record.name;
this.establishForm.code = val.code; this.establishForm.code = val.record.code;
this.establishForm.entterprise_image = val.entterprise_image; this.establishForm.entterprise_image = val.record.entterprise_image;
this.establishForm.front_img = val.legal_front_id_card; this.establishForm.front_img = val.record.legal_front_id_card;
this.establishForm.bak_img = val.legal_back_id_card; this.establishForm.bak_img = val.record.legal_back_id_card;
this.establishForm.idcard_number = val.legal_id_card; this.establishForm.idcard_number = val.record.legal_id_card;
this.establishForm.userName = val.legal_person; this.establishForm.userName = val.record.legal_person;
this.establishForm.legal_mobile = val.legal_mobile; this.establishForm.legal_mobile = val.record.legal_mobile;
this.establishForm.mobile = val.mobile; this.establishForm.mobile = val.life.mobile;
this.establishForm.legal_mobile = val.legal_mobile; this.establishForm.legal_mobile = val.record.legal_mobile;
this.establishForm.user_id = val.user_id; this.establishForm.user_id = val.record.user_id;
this.establishForm.sensitiveWord = val.sensitiveWord; this.establishForm.sensitiveWord = val.record.sensitiveWord;
this.establishForm.entterpriseImage = val.entterprise_image; this.establishForm.entterpriseImage = val.record.entterprise_image;
this.establishForm.frontImg = val.legal_front_id_card; this.establishForm.frontImg = val.record.legal_front_id_card;
this.establishForm.bakImg = val.legal_back_id_card; this.establishForm.bakImg = val.record.legal_back_id_card;
} }
}, },
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
// 提交表单 // 提交表单
async handelSubmit () { async handelSubmit () {
if (this.enterpriseId && !this.establishForm.sensitiveWord) if (this.enterpriseId && !this.establishForm.sensitiveWord)
return this.$message.error("您无权限修改信息!!!"); return this.$message.error("您无敏感词权限修改信息!!!");
// 企业信息提交参数 // 企业信息提交参数
const { const {
......
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