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 1efa3d6e
authored
Mar 24, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 自定义上传修改
1 parent
a6a361df
Pipeline
#88
for
1efa3d6e
failed
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
apps/web/venus-usedcar-quality/src/components.d.ts
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
apps/web/venus-usedcar-quality/src/components.d.ts
View file @
1efa3d6
...
@@ -7,33 +7,41 @@ export {}
...
@@ -7,33 +7,41 @@ export {}
declare
module
'vue'
{
declare
module
'vue'
{
export
interface
GlobalComponents
{
export
interface
GlobalComponents
{
ButtonSelect
:
typeof
import
(
'./components/
C
ustomizeForm/buttonSelect.vue'
)[
'default'
]
ButtonSelect
:
typeof
import
(
'./components/
c
ustomizeForm/buttonSelect.vue'
)[
'default'
]
CustomizeUploadFile
:
typeof
import
(
'./components/
C
ustomizeForm/customizeUploadFile.vue'
)[
'default'
]
CustomizeUploadFile
:
typeof
import
(
'./components/
c
ustomizeForm/customizeUploadFile.vue'
)[
'default'
]
Index
:
typeof
import
(
'./components/
C
ustomizeForm/Index.vue'
)[
'default'
]
Index
:
typeof
import
(
'./components/
c
ustomizeForm/Index.vue'
)[
'default'
]
Layouts
:
typeof
import
(
'./layouts/index.vue'
)[
'default'
]
Layouts
:
typeof
import
(
'./layouts/index.vue'
)[
'default'
]
PageTitle
:
typeof
import
(
'./components/PageTitle.vue'
)[
'default'
]
PageTitle
:
typeof
import
(
'./components/PageTitle.vue'
)[
'default'
]
PageTop
:
typeof
import
(
'./components/PageTop.vue'
)[
'default'
]
PageTop
:
typeof
import
(
'./components/PageTop.vue'
)[
'default'
]
RadioSelect
:
typeof
import
(
'./components/customizeForm/radioSelect.vue'
)[
'default'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
SelectDatePicker
:
typeof
import
(
'./components/
C
ustomizeForm/selectDatePicker.vue'
)[
'default'
]
SelectDatePicker
:
typeof
import
(
'./components/
c
ustomizeForm/selectDatePicker.vue'
)[
'default'
]
SelectDropdown
:
typeof
import
(
'./components/
C
ustomizeForm/selectDropdown.vue'
)[
'default'
]
SelectDropdown
:
typeof
import
(
'./components/
c
ustomizeForm/selectDropdown.vue'
)[
'default'
]
VanActionSheet
:
typeof
import
(
'vant/es'
)[
'ActionSheet'
]
VanActionSheet
:
typeof
import
(
'vant/es'
)[
'ActionSheet'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanCheckbox
:
typeof
import
(
'vant/es'
)[
'Checkbox'
]
VanCheckbox
:
typeof
import
(
'vant/es'
)[
'Checkbox'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
VanEmpty
:
typeof
import
(
'vant/es'
)[
'Empty'
]
VanEmpty
:
typeof
import
(
'vant/es'
)[
'Empty'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanForm
:
typeof
import
(
'vant/es'
)[
'Form'
]
VanIcon
:
typeof
import
(
'vant/es'
)[
'Icon'
]
VanIcon
:
typeof
import
(
'vant/es'
)[
'Icon'
]
VanImage
:
typeof
import
(
'vant/es'
)[
'Image'
]
VanImage
:
typeof
import
(
'vant/es'
)[
'Image'
]
VanList
:
typeof
import
(
'vant/es'
)[
'List'
]
VanList
:
typeof
import
(
'vant/es'
)[
'List'
]
VanLoading
:
typeof
import
(
'vant/es'
)[
'Loading'
]
VanLoading
:
typeof
import
(
'vant/es'
)[
'Loading'
]
VanPicker
:
typeof
import
(
'vant/es'
)[
'Picker'
]
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
VanProgress
:
typeof
import
(
'vant/es'
)[
'Progress'
]
VanProgress
:
typeof
import
(
'vant/es'
)[
'Progress'
]
VanPullRefresh
:
typeof
import
(
'vant/es'
)[
'PullRefresh'
]
VanPullRefresh
:
typeof
import
(
'vant/es'
)[
'PullRefresh'
]
VanRadio
:
typeof
import
(
'vant/es'
)[
'Radio'
]
VanRadioGroup
:
typeof
import
(
'vant/es'
)[
'RadioGroup'
]
VanSearch
:
typeof
import
(
'vant/es'
)[
'Search'
]
VanSearch
:
typeof
import
(
'vant/es'
)[
'Search'
]
VanSkeleton
:
typeof
import
(
'vant/es'
)[
'Skeleton'
]
VanSkeleton
:
typeof
import
(
'vant/es'
)[
'Skeleton'
]
VanSlider
:
typeof
import
(
'vant/es'
)[
'Slider'
]
VanSlider
:
typeof
import
(
'vant/es'
)[
'Slider'
]
VanTabbar
:
typeof
import
(
'vant/es'
)[
'Tabbar'
]
VanTabbar
:
typeof
import
(
'vant/es'
)[
'Tabbar'
]
VanTabbarItem
:
typeof
import
(
'vant/es'
)[
'TabbarItem'
]
VanTabbarItem
:
typeof
import
(
'vant/es'
)[
'TabbarItem'
]
VanTag
:
typeof
import
(
'vant/es'
)[
'Tag'
]
VanTag
:
typeof
import
(
'vant/es'
)[
'Tag'
]
VanUploader
:
typeof
import
(
'vant/es'
)[
'Uploader'
]
WorkOrderStatusTags
:
typeof
import
(
'./components/WorkOrderStatusTags.vue'
)[
'default'
]
WorkOrderStatusTags
:
typeof
import
(
'./components/WorkOrderStatusTags.vue'
)[
'default'
]
}
}
}
}
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
View file @
1efa3d6
...
@@ -66,20 +66,23 @@ function updateData() {
...
@@ -66,20 +66,23 @@ function updateData() {
<span
v-if=
"item.required === 1"
class=
"isRequired"
>
*
</span>
<span
v-if=
"item.required === 1"
class=
"isRequired"
>
*
</span>
<span>
{{
item
.
nodeName
}}
</span>
<span>
{{
item
.
nodeName
}}
</span>
</div>
</div>
<div
v-if=
"validationRules.maxCount && validationRules.maxCount.length > 1 && item.interactionType == 'image_upload'"
class=
"titleTip"
>
<div
v-if=
"validationRules.maxCount && validationRules.maxCount.length > 1 && item.interactionType == 'image_upload'"
class=
"titleTip"
>
有损伤请拍摄图片,无损伤请忽略
有损伤请拍摄图片,无损伤请忽略
</div>
</div>
</div>
</div>
<input
ref=
"fileInputRef"
:accept=
"item.interactionType == 'image_upload' ? 'image/*' : 'video/*'"
class=
"hidden-input"
type=
"file"
@
change=
"onFileChange"
>
<input
ref=
"fileInputRef"
:accept=
"item.interactionType == 'image_upload' ? 'image/*' : 'video/*'"
class=
"hidden-input"
type=
"file"
@
change=
"onFileChange"
>
<div
class=
"uploadPage"
>
<div
class=
"uploadPage"
>
<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
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>
<van-image
width=
"96"
height=
"96"
style=
"border-radius: 8px;"
:src=
"item"
/>
</div>
</div>
<van-image
width=
"96"
height=
"96"
style=
"border-radius: 8px;"
:src=
"item"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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