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 a9144f5c
authored
Mar 25, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 上传组件修改
1 parent
36081662
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelect.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
View file @
a9144f5
...
@@ -29,7 +29,6 @@ const rules = ref({});
...
@@ -29,7 +29,6 @@ const rules = ref({});
//加载中
//加载中
const
pageLoading
=
ref
(
false
);
const
pageLoading
=
ref
(
false
);
watch
(()
=>
props
.
leafNodes
,
(
nodes
)
=>
{
watch
(()
=>
props
.
leafNodes
,
(
nodes
)
=>
{
pageLoading
.
value
=
true
;
pageLoading
.
value
=
true
;
columnsList
.
value
=
(
nodes
||
[]).
map
((
item
:
any
)
=>
({
...
item
,
value
:
getValueText
(
item
),
}));
columnsList
.
value
=
(
nodes
||
[]).
map
((
item
:
any
)
=>
({
...
item
,
value
:
getValueText
(
item
),
}));
...
@@ -125,8 +124,17 @@ async function validate(): Promise<CustomizeFormValidateResult> {
...
@@ -125,8 +124,17 @@ async function validate(): Promise<CustomizeFormValidateResult> {
let
message
=
''
;
let
message
=
''
;
columnsList
.
value
.
forEach
((
item
:
any
)
=>
{
columnsList
.
value
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
required
==
1
&&
!
item
.
value
)
{
if
(
item
.
required
==
1
&&
!
item
.
value
)
{
let
title
=
'请选择'
;
const
inputList
=
[
'text_input'
,
'textarea_input'
,
'number_input'
];
const
dropdownList
=
[
'image_upload'
,
'video_upload'
];
if
(
inputList
.
includes
(
item
.
interactionType
))
{
title
=
'请输入'
;
}
if
(
dropdownList
.
includes
(
item
.
interactionType
))
{
title
=
'请上传'
;
}
success
=
false
;
success
=
false
;
message
=
message
?
message
:
item
.
nodeName
;
message
=
message
?
message
:
title
+
item
.
nodeName
;
}
}
});
});
return
{
return
{
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelect.vue
View file @
a9144f5
...
@@ -63,8 +63,13 @@ function setupdate() {
...
@@ -63,8 +63,13 @@ function setupdate() {
valueKey
:
item
||
''
,
valueKey
:
item
||
''
,
};
};
});
});
if
(
valueList
.
length
)
{
props
.
item
.
value
=
JSON
.
stringify
(
valueList
||
[]);
props
.
item
.
value
=
JSON
.
stringify
(
valueList
||
[]);
emit
(
"update"
,
JSON
.
stringify
(
valueList
||
[]));
emit
(
"update"
,
JSON
.
stringify
(
valueList
||
[]));
}
else
{
props
.
item
.
value
=
''
;
emit
(
"update"
,
''
);
}
}
}
</
script
>
</
script
>
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
View file @
a9144f5
...
@@ -71,8 +71,13 @@ function handleDelete(item: string) {
...
@@ -71,8 +71,13 @@ function handleDelete(item: string) {
}
}
function
updateData
()
{
function
updateData
()
{
if
(
pickerValue
.
value
.
length
)
{
props
.
item
.
value
=
JSON
.
stringify
(
pickerValue
.
value
);
props
.
item
.
value
=
JSON
.
stringify
(
pickerValue
.
value
);
emit
(
"update"
,
JSON
.
stringify
(
pickerValue
.
value
));
emit
(
"update"
,
JSON
.
stringify
(
pickerValue
.
value
));
}
else
{
props
.
item
.
value
=
''
;
emit
(
"update"
,
''
);
}
}
}
</
script
>
</
script
>
...
...
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