Commit 60b71f6c authored by mengwenhao's avatar mengwenhao

fix:回显字段随服务端更改

parent 561a9ad9
...@@ -70,19 +70,19 @@ ...@@ -70,19 +70,19 @@
> >
<template #reference> <template #reference>
<el-image <el-image
v-if="scope.row.sensitiveWord && scope.row.entterprise_image" v-if="scope.row.sensitiveWord && scope.row.entterprise_image_url"
fit="fill" fit="fill"
:src="scope.row.entterprise_image" :src="scope.row.entterprise_image_url"
></el-image> ></el-image>
<span v-else-if=" <span v-else-if="
scope.row.sensitiveWord && !scope.row.entterprise_image scope.row.sensitiveWord && !scope.row.entterprise_image_url
"></span> "></span>
<span v-else>无权限</span> <span v-else>无权限</span>
</template> </template>
<el-image <el-image
fit="fill" fit="fill"
style="width:100%;height:100%" style="width:100%;height:100%"
:src="scope.row.entterprise_image" :src="scope.row.entterprise_image_url"
></el-image> ></el-image>
</el-popover> </el-popover>
</template> </template>
...@@ -119,19 +119,19 @@ ...@@ -119,19 +119,19 @@
> >
<template #reference> <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_url"
:src="scope.row.legal_front_id_card" :src="scope.row.legal_front_id_card_url"
fit="fill" fit="fill"
></el-image> ></el-image>
<span v-else-if=" <span v-else-if="
scope.row.sensitiveWord && !scope.row.legal_front_id_card scope.row.sensitiveWord && !scope.row.legal_front_id_card_url
"></span> "></span>
<span v-else>无权限</span> <span v-else>无权限</span>
</template> </template>
<el-image <el-image
fit="fill" fit="fill"
style="width:100%;height:100%" style="width:100%;height:100%"
:src="scope.row.legal_front_id_card" :src="scope.row.legal_front_id_card_url"
></el-image> ></el-image>
</el-popover> </el-popover>
</template> </template>
...@@ -148,19 +148,19 @@ ...@@ -148,19 +148,19 @@
> >
<template #reference> <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_url"
fit="fill" fit="fill"
:src="scope.row.legal_back_id_card" :src="scope.row.legal_back_id_card_url"
></el-image> ></el-image>
<span v-else-if=" <span v-else-if="
scope.row.sensitiveWord && !scope.row.legal_back_id_card scope.row.sensitiveWord && !scope.row.legal_back_id_card_url
"></span> "></span>
<span v-else>无权限</span> <span v-else>无权限</span>
</template> </template>
<el-image <el-image
fit="fill" fit="fill"
style="width:100%;height:100%" style="width:100%;height:100%"
:src="scope.row.legal_back_id_card" :src="scope.row.legal_back_id_card_url"
></el-image> ></el-image>
</el-popover> </el-popover>
......
...@@ -349,7 +349,7 @@ export default { ...@@ -349,7 +349,7 @@ export default {
handleEnterpriseSuccess (res) { handleEnterpriseSuccess (res) {
if (res.code !== 0) return this.$message.error(res.reason); if (res.code !== 0) return this.$message.error(res.reason);
this.clearValidate("entterpriseImageRef"); this.clearValidate("entterpriseImageRef");
this.establishForm.entterprise_image_url = `http://${res.result.file_url}`; this.establishForm.entterprise_image_url = res.result.file_url;
this.establishForm.entterprise_image = `${res.result.bucket}/${res.result.object_id}`; this.establishForm.entterprise_image = `${res.result.bucket}/${res.result.object_id}`;
}, },
...@@ -357,7 +357,7 @@ export default { ...@@ -357,7 +357,7 @@ export default {
handleFontSuccess (res) { handleFontSuccess (res) {
if (res.code !== 0) return this.$message.error(res.reason); if (res.code !== 0) return this.$message.error(res.reason);
this.clearValidate("frontImgRef"); this.clearValidate("frontImgRef");
this.establishForm.legal_front_id_card_url = `http://${res.result.file_url}`; this.establishForm.legal_front_id_card_url = res.result.file_url;
this.establishForm.legal_front_id_card = `${res.result.bucket}/${res.result.object_id}`; this.establishForm.legal_front_id_card = `${res.result.bucket}/${res.result.object_id}`;
}, },
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
handleBackSuccess (res) { handleBackSuccess (res) {
if (res.code !== 0) return this.$message.error(res.reason); if (res.code !== 0) return this.$message.error(res.reason);
this.clearValidate("bakImgRef"); this.clearValidate("bakImgRef");
this.establishForm.legal_back_id_card_url = `http://${res.result.file_url}`; this.establishForm.legal_back_id_card_url = res.result.file_url;
this.establishForm.legal_back_id_card = `${res.result.bucket}/${res.result.object_id}`; this.establishForm.legal_back_id_card = `${res.result.bucket}/${res.result.object_id}`;
}, },
......
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