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 b7ef8724
authored
Mar 26, 2026
by
chenwq1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:更新表单组件的 emit 结构,增加 valueText 与 valueKey
1 parent
3baa379a
Pipeline
#130
for
b7ef8724
failed
in 0 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
11 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/radioSelect.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDropdown.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
View file @
b7ef872
...
@@ -339,7 +339,7 @@ defineExpose({
...
@@ -339,7 +339,7 @@ defineExpose({
<div
v-if=
"item.interactionType == 'radio_button_select'"
>
<div
v-if=
"item.interactionType == 'radio_button_select'"
>
<radioSelect
:item=
"item"
<radioSelect
:item=
"item"
:value=
"item.value"
:value=
"item.value"
@
update=
"
item.value = $event
"
/>
@
update=
"
(
{ value, valueText, valueKey }) => { item.value = value; item.valueText = valueText; item.valueKey = valueKey }
" />
</div>
</div>
<!-- 日期选择器 -->
<!-- 日期选择器 -->
...
@@ -354,7 +354,7 @@ defineExpose({
...
@@ -354,7 +354,7 @@ defineExpose({
<selectDropdown
:car-type-list=
"carTypeList"
<selectDropdown
:car-type-list=
"carTypeList"
:item=
"item"
:item=
"item"
:value=
"item.value"
:value=
"item.value"
@
update=
"
item.value = $event
"
/>
@
update=
"
(
{ value, valueText, valueKey }) => { item.value = value; item.valueText = valueText; item.valueKey = valueKey }
" />
</div>
</div>
<!-- 按钮选择器 -->
<!-- 按钮选择器 -->
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelect.vue
View file @
b7ef872
...
@@ -58,7 +58,6 @@ function setupdate() {
...
@@ -58,7 +58,6 @@ function setupdate() {
valueKey
:
item
||
""
,
valueKey
:
item
||
""
,
};
};
});
});
props
.
item
.
value
=
JSON
.
stringify
(
valueList
||
[]);
if
(
valueList
.
length
>
0
)
{
if
(
valueList
.
length
>
0
)
{
emit
(
"update"
,
JSON
.
stringify
(
valueList
||
[]));
emit
(
"update"
,
JSON
.
stringify
(
valueList
||
[]));
}
else
{
}
else
{
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/radioSelect.vue
View file @
b7ef872
...
@@ -41,12 +41,8 @@ const columnsList = computed(() => {
...
@@ -41,12 +41,8 @@ const columnsList = computed(() => {
function
handleBut
()
{
function
handleBut
()
{
const
selected
=
columnsList
.
value
.
find
((
col
)
=>
col
.
value
===
pickerValue
.
value
);
const
selected
=
columnsList
.
value
.
find
((
col
)
=>
col
.
value
===
pickerValue
.
value
);
const
value
=
pickerValue
.
value
||
""
;
props
.
item
.
value
=
selected
?.
value
||
""
;
props
.
item
.
valueText
=
selected
?.
text
||
""
;
props
.
item
.
valueKey
=
selected
?.
value
||
""
;
emit
(
"update"
,
{
emit
(
"update"
,
{
value
,
value
:
selected
?.
value
||
""
,
valueText
:
selected
?.
text
||
""
,
valueText
:
selected
?.
text
||
""
,
valueKey
:
selected
?.
value
||
""
,
valueKey
:
selected
?.
value
||
""
,
});
});
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDropdown.vue
View file @
b7ef872
...
@@ -67,9 +67,6 @@ function onConfirm() {
...
@@ -67,9 +67,6 @@ function onConfirm() {
const
picker
=
pickerValue
.
value
&&
pickerValue
.
value
.
length
>
0
?
pickerValue
.
value
[
0
]
:
""
;
const
picker
=
pickerValue
.
value
&&
pickerValue
.
value
.
length
>
0
?
pickerValue
.
value
[
0
]
:
""
;
showPicker
.
value
=
false
;
showPicker
.
value
=
false
;
const
selected
=
columnsList
.
value
.
find
((
col
)
=>
col
.
value
===
picker
)
||
{};
const
selected
=
columnsList
.
value
.
find
((
col
)
=>
col
.
value
===
picker
)
||
{};
props
.
item
.
value
=
selected
.
value
||
""
;
props
.
item
.
valueText
=
selected
.
text
||
""
;
props
.
item
.
valueKey
=
selected
.
value
||
""
;
emit
(
"update"
,
{
emit
(
"update"
,
{
value
:
selected
.
value
||
""
,
value
:
selected
.
value
||
""
,
valueText
:
selected
.
text
||
""
,
valueText
:
selected
.
text
||
""
,
...
...
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