Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6a67d162
authored
Aug 26, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.55.1' of
http://192.168.3.233:8090/saas_plus/dj-car-life-s…
…ystem into SAAS+V4.55.1
2 parents
4b118ff6
4ef25409
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
7 deletions
src/views/systemConfig/accountNew/accountDetail.vue
src/views/systemConfig/accountNew/applyAccount_tonglian.vue
src/views/systemConfig/accountNew/accountDetail.vue
View file @
6a67d16
...
...
@@ -111,7 +111,27 @@
<template
v-if=
"item.prop == 'agreementFile'"
>
<div
v-for=
"(f, i) in item.formatter(item)"
:key=
"i"
>
{{
f
.
fileName
}}
<span
v-if=
"f.fileType === 'jpg' || f.fileType === 'png'"
>
<span
class=
"imageContainer"
>
<img
class=
"detail-img"
:src=
"f.fileUrl"
>
<span
class=
"img-btns"
@
click
.
stop=
"handleImgLook(f.fileUrl)"
>
<span
class=
"btn-item"
>
<i
class=
"el-icon-zoom-in"
style=
"font-size:30px"
/>
</span>
</span>
<div
class=
"imageLabel"
>
{{
f
.
fileName
}}
</div>
</span>
</span>
<span
v-else-if=
"f.fileType === 'pdf'"
:title=
"f.fileName"
>
<el-button
type=
"text"
@
click=
"lookPdf(f.fileUrl)"
>
{{
f
.
fileName
?
(
f
.
fileName
.
length
>
30
?
(
f
.
fileName
.
slice
(
0
,
30
)
+
'...'
)
:
f
.
fileName
)
:
''
}}
</el-button>
</span>
</div>
</
template
>
<
template
v-else
>
...
...
@@ -579,17 +599,19 @@ export default {
label
:
'线下协议文件'
,
prop
:
'agreementFile'
,
formatter
:
()
=>
{
const
{
papersList
}
=
this
.
detailForm
const
papersList
=
deepClone
(
this
.
detailForm
.
papersList
)
const
files
=
papersList
[
'32'
]
?
papersList
[
'32'
].
split
(
'|'
)
:
[]
console
.
log
(
'files'
,
files
)
if
(
files
.
length
>
0
)
{
this
.
agreementFile
=
files
.
map
(
item
=>
{
return
files
.
map
(
item
=>
{
return
{
fileName
:
item
.
substring
(
item
.
lastIndexOf
(
'/'
)
+
1
),
fileUrl
:
item
fileUrl
:
item
,
fileType
:
item
.
substring
(
item
.
lastIndexOf
(
'.'
)
+
1
)
}
})
}
return
this
.
agreementFile
// return this.agreementFileList
}
},
{
...
...
@@ -807,7 +829,7 @@ export default {
label
:
"对私"
}
],
agreementFile
:
[]
agreementFile
List
:
[]
}
},
...
...
@@ -989,6 +1011,23 @@ export default {
this
.
detailForm
.
papersList
[
item
.
papersType
]
=
item
.
imgUrl
})
})
},
getFileExtensionFromUrl
(
url
)
{
try
{
// 解析 URL,获取路径部分
const
pathname
=
new
URL
(
url
).
pathname
// 提取最后一个 . 之后的内容作为扩展名
const
extension
=
pathname
.
split
(
'.'
).
pop
().
toLowerCase
()
return
extension
||
'unknown'
}
catch
(
e
)
{
console
.
error
(
'Invalid URL:'
,
e
)
return
'unknown'
}
},
lookPdf
(
pdfUrl
)
{
window
.
open
(
pdfUrl
)
}
}
}
...
...
src/views/systemConfig/accountNew/applyAccount_tonglian.vue
View file @
6a67d16
...
...
@@ -297,7 +297,11 @@ export default {
},
idCardBack
:
{
attrName
:
"30"
,
url
:
""
url
:
""
,
validate
:
{
name
:
"legalCertType"
,
list
:
[
'00'
]
}
},
// 客户协议书
clientAgreement
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment