Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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 ac13b839
authored
Nov 13, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 日期筛选兼容
1 parent
a8576756
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
src/components/d2-search/index.vue
src/views/usedCarManagement/deliveryOrderManagement/index.vue
src/components/d2-search/index.vue
View file @
ac13b83
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
<el-date-picker
v-model=
"searchSelectObj[item.selectName].value"
<el-date-picker
v-model=
"searchSelectObj[item.selectName].value"
:style=
"
{ width: 'calc(100% - ' + (typeof item.selectWidth === 'number' ? item.selectWidth + 'px' : (item.selectWidth || '130px')) + ')' }"
:style=
"
{ width: 'calc(100% - ' + (typeof item.selectWidth === 'number' ? item.selectWidth + 'px' : (item.selectWidth || '130px')) + ')' }"
:type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至"
:type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至"
start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOption[item.pickerOptions]" />
start-placeholder="开始日期" end-placeholder="结束日期"
:picker-options="item.pickerOptions ? pickerOption[item.pickerOptions] : undefined" />
</
template
>
</
template
>
<!-- 双选择框 -->
<!-- 双选择框 -->
...
@@ -72,8 +73,8 @@
...
@@ -72,8 +73,8 @@
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
:style=
"{ width: item.width || '100%' }"
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
:style=
"{ width: item.width || '100%' }"
v-model=
"searchForm[item.name]"
:type=
"item.dateType || 'daterange'"
:clearable=
"item.isClear || false"
v-model=
"searchForm[item.name]"
:type=
"item.dateType || 'daterange'"
:clearable=
"item.isClear || false"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:default-time=
"item.defaultTime
? item.defaultTime : ''
"
:default-time=
"item.defaultTime
!== undefined ? item.defaultTime : undefined
"
:picker-options=
"
pickerOption[item.pickerOptions]
"
/>
:picker-options=
"
item.pickerOptions ? pickerOption[item.pickerOptions] : undefined
"
/>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
/>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
...
src/views/usedCarManagement/deliveryOrderManagement/index.vue
View file @
ac13b83
...
@@ -341,7 +341,7 @@ export default {
...
@@ -341,7 +341,7 @@ export default {
isClear
:
true
,
isClear
:
true
,
itemStyle
:
"width: 94%;"
,
itemStyle
:
"width: 94%;"
,
selectWidth
:
"165px"
,
selectWidth
:
"165px"
,
pickerOptions
:
'rangePickerOptions'
,
//
pickerOptions: 'rangePickerOptions',
selectOption
:
[{
selectOption
:
[{
label
:
'交付单创建时间'
,
label
:
'交付单创建时间'
,
name
:
'createdDate'
name
:
'createdDate'
...
...
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