Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
丽
丽人贷管理后台
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
百灵美选
丽人贷管理后台
Commits
d79805f6
Commit
d79805f6
authored
Jun 06, 2022
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页面查看大图
parent
93790c31
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
140 deletions
+89
-140
approval-result.vue
src/components/approval-result.vue
+14
-114
user-other-info.vue
src/components/user-other-info.vue
+70
-22
index.js
src/minix/index.js
+5
-4
No files found.
src/components/approval-result.vue
View file @
d79805f6
...
@@ -2,39 +2,13 @@
...
@@ -2,39 +2,13 @@
<
template
>
<
template
>
<div
class=
'com'
>
<div
class=
'com'
>
<block-header
title=
'审批结果'
/>
<block-header
title=
'审批结果'
/>
<el-table
<el-descriptions
style=
'margin-bottom: 20px;'
border
size=
'small'
:column=
'3'
>
ref=
"tableSort"
<el-descriptions-item
label-class-name=
'labelCls'
label=
'用户申请金额'
>
{{
result
.
applyAmount
}}
</el-descriptions-item>
v-loading=
"listLoading"
<el-descriptions-item
label-class-name=
'labelCls'
label=
'剩余未还本金'
>
{{
result
.
creditAmount
}}
</el-descriptions-item>
border
<el-descriptions-item
label-class-name=
'labelCls'
label=
'机审建议额度'
>
{{
result
.
manualAmount
}}
</el-descriptions-item>
:data=
"list"
<el-descriptions-item
label-class-name=
'labelCls'
label=
'人审额度'
>
{{
result
.
partnerGrade
}}
</el-descriptions-item>
style=
"width: 100%"
<el-descriptions-item
label-class-name=
'labelCls'
label=
'合作商等级'
>
{{
result
.
surplusNoPrincipal
}}
</el-descriptions-item>
>
</el-descriptions>
<el-table-column
v-for=
"(item, index) in finallyColumns"
:key=
"index"
align=
"center"
:label=
"item.label"
:sortable=
"item.sortable"
:width=
"item.width"
:fixed=
"!!item.fixed"
:show-overflow-tooltip=
"!!item.overflow"
>
<template
#
default=
"
{ row }">
<div
v-if=
"item.label==='营业执照' || item.label==='小贷拍照' || item.label==='金融办批文'"
>
<el-image
style=
"width: 100px; height: 75px"
:src=
"row[item.prop]"
fit=
"fit"
/>
</div>
<div
v-else-if=
"item.label==='机构状态'"
>
<span>
{{
row
[
item
.
prop
]
===
"1"
?
'启用'
:
'禁用'
}}
</span>
</div>
<span
v-else
>
{{
row
[
item
.
prop
]
}}
</span>
</
template
>
</el-table-column>
</el-table>
</div>
</div>
</
template
>
</
template
>
...
@@ -44,87 +18,13 @@
...
@@ -44,87 +18,13 @@
import
API
from
'@/server/api'
import
API
from
'@/server/api'
export
default
{
export
default
{
name
:
'TableEdit'
,
name
:
'ApprovalResult'
,
data
()
{
props
:{
return
{
//eslint-disable-next-line vue/require-default-prop
checkList
:
[
"用户申请金额"
,
"剩余未还本金"
,
"机审建议额度"
,
"人审额度"
,
"合作商等级"
],
result
:{
columns
:
[
type
:
Object
,
{
require
:
true
order
:
1
,
label
:
"用户申请金额"
,
prop
:
"tenantNo"
},
{
order
:
2
,
label
:
"剩余未还本金"
,
prop
:
"tenantFullName"
},
{
order
:
3
,
label
:
"机审建议额度"
,
prop
:
"tenantName"
},
{
order
:
4
,
label
:
"人审额度"
,
prop
:
"status"
},
{
order
:
5
,
label
:
"合作商等级"
,
prop
:
"businessLicenseUrl"
,
overflow
:
true
}
],
list
:
[],
listLoading
:
true
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
1
,
queryForm
:
{
current
:
1
,
size
:
9
,
status
:
""
,
tenantName
:
""
,
tenantNo
:
""
}
}
},
computed
:
{
finallyColumns
()
{
let
finallyArray
=
[];
this
.
checkList
.
forEach
((
checkItem
)
=>
{
finallyArray
.
push
(
this
.
columns
.
filter
((
item
)
=>
item
.
label
===
checkItem
)[
0
]
);
});
return
_
.
sortBy
(
finallyArray
,
(
item
)
=>
item
.
order
);
//return finallyArray;
}
}
},
created
()
{
//防止三级以上路由时多次走created
if
(
this
.
$route
.
name
===
this
.
$options
.
name
)
this
.
fetchData
();
},
mounted
()
{
this
.
fetchData
();
},
methods
:
{
handleSizeChange
(
val
)
{
this
.
queryForm
.
size
=
val
;
this
.
fetchData
();
},
handleCurrentChange
(
val
)
{
this
.
queryForm
.
current
=
val
;
this
.
fetchData
();
},
async
fetchData
()
{
this
.
listLoading
=
true
;
const
result
=
await
API
.
merchant_list
(
this
.
queryForm
);
const
{
records
,
total
}
=
result
.
result
;
this
.
list
=
records
;
this
.
total
=
total
;
this
.
listLoading
=
false
;
}
}
},
}
}
</
script
>
</
script
>
src/components/user-other-info.vue
View file @
d79805f6
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-row>
<el-row>
<el-col
v-for=
'(o, index) in clientIdCardInfoResponse'
:key=
'index'
:span=
'4'
:offset=
'index > 0 ? 1 : 0'
>
<el-col
v-for=
'(o, index) in clientIdCardInfoResponse'
:key=
'index'
:span=
'4'
:offset=
'index > 0 ? 1 : 0'
>
<el-card
:body-style=
"
{ padding: '10px' }">
<el-card
:body-style=
"
{ padding: '10px' }">
<el-image
class=
'el-card-image'
:src=
'o[1]'
:preview-src-list=
'imgList
'
></el-image>
<el-image
class=
'el-card-image'
:src=
'o[1]'
@
click
.
native=
'showImgViewer(clientIdCardInfoResponse,"idCard")
'
></el-image>
<div
class=
'el-card-intro'
>
<div
class=
'el-card-intro'
>
<span
v-if=
'o[0]==="frontImgPath"'
>
身份证正面
</span>
<span
v-if=
'o[0]==="frontImgPath"'
>
身份证正面
</span>
<span
v-else
>
身份证反面
</span>
<span
v-else
>
身份证反面
</span>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<el-row>
<el-row>
<el-col
v-for=
'(o, index) in faceInfoResponse'
:key=
'index'
:span=
'4'
:offset=
'index > 0 ? 1 : 0'
>
<el-col
v-for=
'(o, index) in faceInfoResponse'
:key=
'index'
:span=
'4'
:offset=
'index > 0 ? 1 : 0'
>
<el-card
:body-style=
"
{ padding: '10px' }">
<el-card
:body-style=
"
{ padding: '10px' }">
<el-image
class=
'el-card-image'
:src=
'o[1]'
:preview-src-list=
'imgList
'
></el-image>
<el-image
class=
'el-card-image'
:src=
'o[1]'
@
click
.
native=
'showImgViewer(faceInfoResponse,"face")
'
></el-image>
<div
class=
'el-card-intro'
>
<div
class=
'el-card-intro'
>
<span
v-if=
'o[0]==="panoramaImgPath"'
>
全景照
</span>
<span
v-if=
'o[0]==="panoramaImgPath"'
>
全景照
</span>
<span
v-else-if=
'o[0]==="randomImgPath"'
>
随机照
</span>
<span
v-else-if=
'o[0]==="randomImgPath"'
>
随机照
</span>
...
@@ -36,11 +36,12 @@
...
@@ -36,11 +36,12 @@
<
template
v-if=
'creditAttachInfo.length'
>
<
template
v-if=
'creditAttachInfo.length'
>
<block-header
title=
'授信附件信息'
/>
<block-header
title=
'授信附件信息'
/>
<el-row>
<el-row>
<el-col
v-for=
'(o, index) in
data.PRODUCTS
'
:key=
'index'
:span=
'4'
:offset=
'index > 0 ? 1 : 0'
>
<el-col
v-for=
'(o, index) in
creditAttachInfo
'
:key=
'index'
:span=
'4'
:offset=
'index > 0 ? 1 : 0'
>
<el-card
:body-style=
"
{ padding: '10px' }">
<el-card
:body-style=
"
{ padding: '10px' }">
<el-image
class=
'el-card-image'
:src=
'o.content'
:preview-src-list=
'imgList'
></el-image>
<el-image
class=
'el-card-image'
:src=
'o.echoList[0]'
@
click
.
native=
'showImgViewer(o.echoList,"annex")'
></el-image>
<div
class=
'el-card-intro'
>
<div
class=
'el-card-intro'
>
<span>
{{
o
.
name
}}
</span>
<span>
{{
o
.
tit
}}
</span>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
@@ -65,9 +66,13 @@
...
@@ -65,9 +66,13 @@
<!--审批结果-->
<!--审批结果-->
<
template
v-if=
'approvalResultResponse!==null'
>
<
template
v-if=
'approvalResultResponse!==null'
>
<approval-result
/>
<approval-result
:result=
'approvalResultResponse'
/>
</
template
>
</
template
>
<!-- 图片预览-->
<el-image-viewer
v-if=
'imgViewerVisible'
:on-close=
'closeImgViewer'
:url-list=
'imgList'
/>
</div>
</div>
</template>
</template>
...
@@ -83,13 +88,17 @@
...
@@ -83,13 +88,17 @@
data
()
{
data
()
{
return
{
return
{
data
:
''
,
data
:
''
,
approvalResultResponse
:
null
,
approvalResultResponse
:
null
,
faceInfoResponse
:[],
faceInfoResponse
:
[],
creditAttachInfo
:[],
creditAttachInfo
:
[],
clientIdCardInfoResponse
:[],
clientIdCardInfoResponse
:
[],
reportResponse
:
null
,
reportResponse
:
null
,
thirdPartyReport
:
null
,
thirdPartyReport
:
null
,
imgList
:[]
imgViewerVisible
:
false
,
imgList
:
[]
}
}
},
},
created
()
{
created
()
{
...
@@ -100,18 +109,57 @@
...
@@ -100,18 +109,57 @@
faceInfoResponse
,
faceInfoResponse
,
reportResponse
,
reportResponse
,
thirdPartyReport
thirdPartyReport
}
=
this
.
info
;
}
=
this
.
info
this
.
data
=
this
.
info
;
this
.
data
=
this
.
info
this
.
approvalResultResponse
=
approvalResultResponse
this
.
clientIdCardInfoResponse
=
Object
.
entries
(
clientIdCardInfoResponse
)
this
.
faceInfoResponse
=
Object
.
entries
(
faceInfoResponse
)
this
.
creditAttachInfo
=
JSON
.
parse
(
creditAttachInfo
)
this
.
reportResponse
=
reportResponse
this
.
thirdPartyReport
=
thirdPartyReport
console
.
log
(
creditAttachInfo
,
'信息'
)
this
.
approvalResultResponse
=
approvalResultResponse
;
},
this
.
clientIdCardInfoResponse
=
Object
.
entries
(
clientIdCardInfoResponse
);
methods
:
{
this
.
faceInfoResponse
=
Object
.
entries
(
faceInfoResponse
);
showImgViewer
(
item
,
type
)
{
this
.
creditAttachInfo
=
JSON
.
parse
(
creditAttachInfo
);
this
.
reportResponse
=
reportResponse
;
switch
(
type
)
{
this
.
thirdPartyReport
=
thirdPartyReport
;
case
'idCard'
:
case
'face'
:
const
arr
=
[]
item
.
forEach
(
o
=>
{
console
.
log
(
o
,
'是啥'
);
arr
.
push
(
o
[
1
])
})
console
.
log
(
arr
,
'预览图片的地址'
);
this
.
imgList
=
arr
break
default
:
this
.
imgList
=
item
break
}
console
.
log
(
creditAttachInfo
,
'信息'
)
this
.
imgViewerVisible
=
true
const
m
=
(
e
)
=>
{
e
.
preventDefault
()
}
document
.
body
.
style
.
overflow
=
'hidden'
document
.
addEventListener
(
'touchmove'
,
m
,
false
)
// 禁止页面滑动
},
closeImgViewer
()
{
this
.
imgViewerVisible
=
false
const
m
=
(
e
)
=>
{
e
.
preventDefault
()
}
document
.
body
.
style
.
overflow
=
'auto'
document
.
removeEventListener
(
'touchmove'
,
m
,
true
)
}
}
}
}
}
</
script
>
</
script
>
...
...
src/minix/index.js
View file @
d79805f6
...
@@ -9,8 +9,8 @@ import UserBaseInfo from '@/components/user-base-info'
...
@@ -9,8 +9,8 @@ import UserBaseInfo from '@/components/user-base-info'
import
UserProjectInfo
from
'@/components/user-project-info'
import
UserProjectInfo
from
'@/components/user-project-info'
export
default
{
export
default
{
name
:
"Minix"
,
name
:
'Minix'
,
components
:{
components
:
{
BlockHeader
,
BlockHeader
,
OperationLog
,
OperationLog
,
PrePlead
,
PrePlead
,
...
@@ -19,12 +19,13 @@ export default {
...
@@ -19,12 +19,13 @@ export default {
ApprovalResult
,
ApprovalResult
,
AuditResult
,
AuditResult
,
UserBaseInfo
,
UserBaseInfo
,
UserProjectInfo
UserProjectInfo
,
'el-image-viewer'
:
()
=>
import
(
'element-ui/packages/image/src/image-viewer'
)
},
},
methods
:
{
methods
:
{
onReset
(
formName
)
{
onReset
(
formName
)
{
if
(
formName
)
{
if
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
()
;
this
.
$refs
[
formName
].
resetFields
()
}
}
}
}
}
}
...
...
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