Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
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 7bf38fb7
authored
Mar 24, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 自定义组件开发
1 parent
1efa3d6e
Pipeline
#89
for
7bf38fb7
failed
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
View file @
7bf38fb
...
@@ -113,7 +113,7 @@ function setSubmitData() {
...
@@ -113,7 +113,7 @@ function setSubmitData() {
remark
:
item
.
remark
||
''
,
remark
:
item
.
remark
||
''
,
}
}
}
}
if
(
item
.
interactionType
!=
'button_select'
)
{
if
(
item
.
interactionType
!=
'button_select'
&&
item
.
interactionType
!=
'image_upload'
&&
item
.
interactionType
!=
'video_upload'
)
{
dataList
.
push
(
itemData
);
dataList
.
push
(
itemData
);
}
}
});
});
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
View file @
7bf38fb
...
@@ -38,6 +38,9 @@ async function onFileChange(ev: Event) {
...
@@ -38,6 +38,9 @@ async function onFileChange(ev: Event) {
const
url
=
(
typeof
res
.
aliyunAddress
===
"string"
&&
res
.
aliyunAddress
)
||
(
typeof
res
.
url
===
"string"
&&
res
.
url
)
||
""
;
const
url
=
(
typeof
res
.
aliyunAddress
===
"string"
&&
res
.
aliyunAddress
)
||
(
typeof
res
.
url
===
"string"
&&
res
.
url
)
||
""
;
showToast
(
"上传成功"
);
showToast
(
"上传成功"
);
pickerValue
.
value
.
push
(
url
);
pickerValue
.
value
.
push
(
url
);
console
.
log
(
'pickerValue.value'
,
pickerValue
.
value
);
updateData
();
updateData
();
}
catch
(
e
:
unknown
)
{
}
catch
(
e
:
unknown
)
{
const
msg
=
e
instanceof
Error
?
e
.
message
:
String
(
e
);
const
msg
=
e
instanceof
Error
?
e
.
message
:
String
(
e
);
...
@@ -77,7 +80,8 @@ function updateData() {
...
@@ -77,7 +80,8 @@ function updateData() {
<div
v-if=
"(validationRules.maxCount || 3) > pickerValue.length"
class=
"uploadBox"
@
click=
"pickFile"
>
<div
v-if=
"(validationRules.maxCount || 3) > pickerValue.length"
class=
"uploadBox"
@
click=
"pickFile"
>
<van-icon
name=
"plus"
size=
"24"
color=
"#999999"
class=
"plusBox"
/>
<van-icon
name=
"plus"
size=
"24"
color=
"#999999"
class=
"plusBox"
/>
<div
class=
"uploadTxt"
>
{{
item
.
interactionType
==
'image_upload'
?
'添加照片'
:
'添加视频'
}}
</div>
<div
class=
"uploadTxt"
>
{{
item
.
interactionType
==
'image_upload'
?
'添加照片'
:
'添加视频'
}}
</div>
<div
v-for=
"(item, index) in pickerValue"
:key=
"index"
class=
"uploadBox"
>
</div>
<div
v-if=
"pickerValue.length"
v-for=
"(item, index) in pickerValue"
:key=
"index"
class=
"uploadBox"
>
<div
class=
"deleteBox"
@
click=
"handleDelete(item)"
>
<div
class=
"deleteBox"
@
click=
"handleDelete(item)"
>
<van-icon
name=
"clear"
size=
"20"
color=
"#999999"
/>
<van-icon
name=
"clear"
size=
"20"
color=
"#999999"
/>
</div>
</div>
...
@@ -85,7 +89,6 @@ function updateData() {
...
@@ -85,7 +89,6 @@ function updateData() {
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
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