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 cbc10206
authored
Mar 25, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 自测问题优化
1 parent
fea3fb4d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
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/radioSelect.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDatePicker.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDropdown.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelect.vue
View file @
cbc1020
...
@@ -18,6 +18,7 @@ onMounted(() => {
...
@@ -18,6 +18,7 @@ onMounted(() => {
// 初始化数据
// 初始化数据
function
initData
()
{
function
initData
()
{
pickerValue
.
value
=
[];
if
(
props
?.
item
?.
inspectionResultVO
)
{
if
(
props
?.
item
?.
inspectionResultVO
)
{
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
if
(
inspectionValueList
&&
inspectionValueList
.
length
>
0
&&
inspectionValueList
[
0
].
valueKey
)
{
if
(
inspectionValueList
&&
inspectionValueList
.
length
>
0
&&
inspectionValueList
[
0
].
valueKey
)
{
...
@@ -26,9 +27,10 @@ function initData() {
...
@@ -26,9 +27,10 @@ function initData() {
pickerValue
.
value
.
push
(
inspectionValueList
[
i
].
valueKey
);
pickerValue
.
value
.
push
(
inspectionValueList
[
i
].
valueKey
);
}
}
}
}
setupdate
();
}
}
}
}
setupdate
();
}
}
// 计算属性
// 计算属性
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
View file @
cbc1020
...
@@ -27,15 +27,14 @@ onMounted(() => {
...
@@ -27,15 +27,14 @@ onMounted(() => {
// 初始化数据
// 初始化数据
function
initData
()
{
function
initData
()
{
pickerValue
.
value
=
[];
if
(
props
?.
item
?.
inspectionResultVO
)
{
if
(
props
?.
item
?.
inspectionResultVO
)
{
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
for
(
const
i
of
inspectionValueList
)
{
for
(
const
i
of
inspectionValueList
)
{
if
(
i
.
valueText
)
{
pickerValue
.
value
.
push
(
i
.
valueText
)
}
if
(
i
.
valueText
)
{
pickerValue
.
value
.
push
(
i
.
valueText
)
}
}
}
if
(
pickerValue
.
value
.
length
>
0
)
{
updateData
();
}
}
}
updateData
();
}
}
// 计算属性
// 计算属性
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/radioSelect.vue
View file @
cbc1020
...
@@ -18,6 +18,7 @@ onMounted(() => {
...
@@ -18,6 +18,7 @@ onMounted(() => {
// 初始化数据
// 初始化数据
function
initData
()
{
function
initData
()
{
pickerValue
.
value
=
''
;
if
(
props
?.
item
?.
inspectionResultVO
)
{
if
(
props
?.
item
?.
inspectionResultVO
)
{
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
if
(
inspectionValueList
&&
inspectionValueList
.
length
>
0
)
{
if
(
inspectionValueList
&&
inspectionValueList
.
length
>
0
)
{
...
@@ -38,7 +39,6 @@ const columnsList = computed(() => {
...
@@ -38,7 +39,6 @@ const columnsList = computed(() => {
return
optionsList
;
return
optionsList
;
});
});
function
handleBut
()
{
function
handleBut
()
{
const
ObjectItem
=
columnsList
.
value
.
find
(
item
=>
item
.
value
==
pickerValue
.
value
);
const
ObjectItem
=
columnsList
.
value
.
find
(
item
=>
item
.
value
==
pickerValue
.
value
);
props
.
item
.
valueText
=
ObjectItem
.
text
||
''
;
props
.
item
.
valueText
=
ObjectItem
.
text
||
''
;
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDatePicker.vue
View file @
cbc1020
...
@@ -32,7 +32,11 @@ function handleShowPicker() {
...
@@ -32,7 +32,11 @@ function handleShowPicker() {
showPicker
.
value
=
true
;
showPicker
.
value
=
true
;
if
(
!
props
.
item
.
value
)
{
if
(
!
props
.
item
.
value
)
{
const
date
=
new
Date
();
const
date
=
new
Date
();
pickerValue
.
value
=
[
date
.
getFullYear
(),
date
.
getMonth
()
+
1
,
date
.
getDate
()];
if
(
columnsType
.
value
.
length
===
2
)
{
pickerValue
.
value
=
[
date
.
getFullYear
(),
date
.
getMonth
()
+
1
];
}
else
{
pickerValue
.
value
=
[
date
.
getFullYear
(),
date
.
getMonth
()
+
1
,
date
.
getDate
()];
}
}
}
}
}
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDropdown.vue
View file @
cbc1020
...
@@ -20,13 +20,14 @@ onMounted(() => {
...
@@ -20,13 +20,14 @@ onMounted(() => {
// 初始化数据
// 初始化数据
function
initData
()
{
function
initData
()
{
pickerValue
.
value
=
[];
if
(
props
?.
item
?.
inspectionResultVO
)
{
if
(
props
?.
item
?.
inspectionResultVO
)
{
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
if
(
inspectionValueList
&&
inspectionValueList
.
length
>
0
&&
inspectionValueList
[
0
].
valueKey
)
{
if
(
inspectionValueList
&&
inspectionValueList
.
length
>
0
&&
inspectionValueList
[
0
].
valueKey
)
{
pickerValue
.
value
=
[
inspectionValueList
[
0
].
valueKey
];
pickerValue
.
value
=
[
inspectionValueList
[
0
].
valueKey
];
}
}
onConfirm
();
}
}
onConfirm
();
}
}
// 计算属性
// 计算属性
...
...
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