Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
24176928
Commit
24176928
authored
Jun 15, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:新增图片放大功能和用户手机号回显
parent
4849f7a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
44 deletions
+92
-44
index.vue
src/pages/Enterprise/Audit/index.vue
+72
-24
enterpriseForm.vue
src/pages/Enterprise/components/enterpriseForm.vue
+20
-20
No files found.
src/pages/Enterprise/Audit/index.vue
View file @
24176928
...
...
@@ -63,13 +63,28 @@
label=
"企业营业执照照片"
>
<
template
#
default=
"scope"
>
<el-image
v-if=
"scope.row.sensitiveWord && scope.row.entterprise_image"
fit=
"fill"
:src=
"scope.row.entterprise_image"
></el-image>
<span
v-else-if=
"scope.row.sensitiveWord && !scope.row.entterprise_image"
>
无
</span>
<span
v-else
>
无权限
</span>
<el-popover
placement=
"bottom"
:width=
"600"
trigger=
"click"
>
<template
#
reference
>
<el-image
v-if=
"scope.row.sensitiveWord && scope.row.entterprise_image"
fit=
"fill"
:src=
"scope.row.entterprise_image"
></el-image>
<span
v-else-if=
"
scope.row.sensitiveWord && !scope.row.entterprise_image
"
>
无
</span>
<span
v-else
>
无权限
</span>
</
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
...
...
@@ -88,7 +103,7 @@
prop=
"mobile"
>
<
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>
</
template
>
</el-table-column>
...
...
@@ -97,13 +112,28 @@
label=
"身份证正面照片"
>
<
template
#
default=
"scope"
>
<el-image
v-if=
"scope.row.sensitiveWord && scope.row.legal_front_id_card"
:src=
"scope.row.legal_front_id_card"
fit=
"fill"
></el-image>
<span
v-else-if=
"scope.row.sensitiveWord && !scope.row.legal_front_id_card"
>
无
</span>
<span
v-else
>
无权限
</span>
<el-popover
placement=
"bottom"
:width=
"600"
trigger=
"click"
>
<template
#
reference
>
<el-image
v-if=
"scope.row.sensitiveWord && scope.row.legal_front_id_card"
:src=
"scope.row.legal_front_id_card"
fit=
"fill"
></el-image>
<span
v-else-if=
"
scope.row.sensitiveWord && !scope.row.legal_front_id_card
"
>
无
</span>
<span
v-else
>
无权限
</span>
</
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
...
...
@@ -111,13 +141,29 @@
label=
"身份证反面照片"
>
<
template
#
default=
"scope"
>
<el-image
v-if=
"scope.row.sensitiveWord && scope.row.legal_back_id_card"
fit=
"fill"
:src=
"scope.row.legal_back_id_card"
></el-image>
<span
v-else-if=
"scope.row.sensitiveWord && !scope.row.legal_back_id_card"
>
无
</span>
<span
v-else
>
无权限
</span>
<el-popover
placement=
"bottom"
:width=
"600"
trigger=
"click"
>
<template
#
reference
>
<el-image
v-if=
"scope.row.sensitiveWord && scope.row.legal_back_id_card"
fit=
"fill"
:src=
"scope.row.legal_back_id_card"
></el-image>
<span
v-else-if=
"
scope.row.sensitiveWord && !scope.row.legal_back_id_card
"
>
无
</span>
<span
v-else
>
无权限
</span>
</
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>
...
...
@@ -201,7 +247,9 @@
label=
"审核意见"
>
<
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>
</
template
>
</el-table-column>
...
...
@@ -351,7 +399,7 @@ export default {
try
{
const
res
=
await
getRecordInfo
(
params
);
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
.
lifeList
.
push
(
res
.
result
.
life
);
console
.
log
(
"messageForm=1-2=310=-203"
,
this
.
messageForm
);
...
...
src/pages/Enterprise/components/enterpriseForm.vue
View file @
24176928
...
...
@@ -34,7 +34,7 @@
>
<el-image
v-if=
"establishForm.entterpriseImage"
style=
"width:
100px;height:1
00px;border-radius:10px"
style=
"width:
200px;height:2
00px;border-radius:10px"
:src=
"establishForm.entterpriseImage"
fit=
"cover"
></el-image>
...
...
@@ -81,7 +81,7 @@
>
<el-image
v-if=
"establishForm.frontImg"
style=
"width:
100px;height:1
00px;border-radius:10px"
style=
"width:
200px;height:2
00px;border-radius:10px"
:src=
"establishForm.frontImg"
fit=
"cover"
></el-image>
...
...
@@ -105,7 +105,7 @@
>
<el-image
v-if=
"establishForm.bakImg"
style=
"width:
100px;height:1
00px;border-radius:10px"
style=
"width:
200px;height:2
00px;border-radius:10px"
:src=
"establishForm.bakImg"
fit=
"cover"
></el-image>
...
...
@@ -316,22 +316,22 @@ export default {
watch
:
{
// 监听异步传过来的表单值做修改
dataForm
(
val
)
{
this
.
establishForm
.
data_type
=
val
.
data_type
;
this
.
establishForm
.
name
=
val
.
name
;
this
.
establishForm
.
code
=
val
.
code
;
this
.
establishForm
.
entterprise_image
=
val
.
entterprise_image
;
this
.
establishForm
.
front_img
=
val
.
legal_front_id_card
;
this
.
establishForm
.
bak_img
=
val
.
legal_back_id_card
;
this
.
establishForm
.
idcard_number
=
val
.
legal_id_card
;
this
.
establishForm
.
userName
=
val
.
legal_person
;
this
.
establishForm
.
legal_mobile
=
val
.
legal_mobile
;
this
.
establishForm
.
mobile
=
val
.
mobile
;
this
.
establishForm
.
legal_mobile
=
val
.
legal_mobile
;
this
.
establishForm
.
user_id
=
val
.
user_id
;
this
.
establishForm
.
sensitiveWord
=
val
.
sensitiveWord
;
this
.
establishForm
.
entterpriseImage
=
val
.
entterprise_image
;
this
.
establishForm
.
frontImg
=
val
.
legal_front_id_card
;
this
.
establishForm
.
bakImg
=
val
.
legal_back_id_card
;
this
.
establishForm
.
data_type
=
val
.
record
.
data_type
;
this
.
establishForm
.
name
=
val
.
record
.
name
;
this
.
establishForm
.
code
=
val
.
record
.
code
;
this
.
establishForm
.
entterprise_image
=
val
.
record
.
entterprise_image
;
this
.
establishForm
.
front_img
=
val
.
record
.
legal_front_id_card
;
this
.
establishForm
.
bak_img
=
val
.
record
.
legal_back_id_card
;
this
.
establishForm
.
idcard_number
=
val
.
record
.
legal_id_card
;
this
.
establishForm
.
userName
=
val
.
record
.
legal_person
;
this
.
establishForm
.
legal_mobile
=
val
.
record
.
legal_mobile
;
this
.
establishForm
.
mobile
=
val
.
life
.
mobile
;
this
.
establishForm
.
legal_mobile
=
val
.
record
.
legal_mobile
;
this
.
establishForm
.
user_id
=
val
.
record
.
user_id
;
this
.
establishForm
.
sensitiveWord
=
val
.
record
.
sensitiveWord
;
this
.
establishForm
.
entterpriseImage
=
val
.
record
.
entterprise_image
;
this
.
establishForm
.
frontImg
=
val
.
record
.
legal_front_id_card
;
this
.
establishForm
.
bakImg
=
val
.
record
.
legal_back_id_card
;
}
},
...
...
@@ -365,7 +365,7 @@ export default {
// 提交表单
async
handelSubmit
()
{
if
(
this
.
enterpriseId
&&
!
this
.
establishForm
.
sensitiveWord
)
return
this
.
$message
.
error
(
"您无权限修改信息!!!"
);
return
this
.
$message
.
error
(
"您无
敏感词
权限修改信息!!!"
);
// 企业信息提交参数
const
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment