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 0476dbdc
authored
Nov 18, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第三轮测试BUG修复
1 parent
30eba8fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
src/common/format.js
src/views/earlyWarningManager/staff/components/handleDialog.vue
src/views/earlyWarningManager/store/components/handleDialog.vue
src/common/format.js
View file @
0476dbd
...
@@ -99,7 +99,7 @@ export const rangePickerOptions = {
...
@@ -99,7 +99,7 @@ export const rangePickerOptions = {
}
}
/**
/**
* 时间控件-限制只能选当前及之后的
时间
* 时间控件-限制只能选当前及之后的
日期
*/
*/
export
const
afterPickerOptions
=
{
export
const
afterPickerOptions
=
{
disabledDate
(
date
)
{
disabledDate
(
date
)
{
...
@@ -108,6 +108,25 @@ export const afterPickerOptions = {
...
@@ -108,6 +108,25 @@ export const afterPickerOptions = {
}
}
/**
/**
* 时间控件-限制只能选当前及之后的日期
*/
export
const
afterPickerOptions_timeChoose
=
{
// 设置禁用过去日期不能选
disabledDate
(
date
)
{
return
date
.
getTime
()
<
Date
.
now
()
-
8.64e7
// 8.64e7 毫秒数代表一天
},
// 控制时分秒不可选
selectableRange
:
(()
=>
{
const
data
=
new
Date
()
const
hour
=
data
.
getHours
()
const
minute
=
data
.
getMinutes
()
// const second = data.getSeconds()
const
second
=
"00"
return
[
`
${
hour
}
:
${
minute
}
:
${
second
}
- 23:59:59`
]
})()
}
/**
* 时间控件-(0-30天内的日期)
* 时间控件-(0-30天内的日期)
*/
*/
export
const
appointDays
=
35
export
const
appointDays
=
35
...
...
src/views/earlyWarningManager/staff/components/handleDialog.vue
View file @
0476dbd
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
format=
"yyyy-MM-dd HH:mm"
format=
"yyyy-MM-dd HH:mm"
value-format=
"yyyy-MM-dd HH:mm"
value-format=
"yyyy-MM-dd HH:mm"
placeholder=
"选择日期时间"
placeholder=
"选择日期时间"
:picker-options=
"pickerOption['afterPickerOptions']"
>
:picker-options=
"pickerOption['afterPickerOptions
_timeChoose
']"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
...
@@ -42,14 +42,14 @@
...
@@ -42,14 +42,14 @@
import
{
saveFollowRecord
}
from
'@api/earlyWarningManager'
import
{
saveFollowRecord
}
from
'@api/earlyWarningManager'
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
afterPickerOptions
}
from
'@/common/format'
import
{
afterPickerOptions
_timeChoose
}
from
'@/common/format'
// import { baseConfig } from '@/main'
// import { baseConfig } from '@/main'
export
default
{
export
default
{
name
:
'HandleDialog'
,
name
:
'HandleDialog'
,
data
()
{
data
()
{
return
{
return
{
pickerOption
:
{
pickerOption
:
{
afterPickerOptions
:
afterPickerOptions
afterPickerOptions
_timeChoose
:
afterPickerOptions_timeChoose
},
},
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
infoForm
:
{
...
...
src/views/earlyWarningManager/store/components/handleDialog.vue
View file @
0476dbd
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
format=
"yyyy-MM-dd HH:mm"
format=
"yyyy-MM-dd HH:mm"
value-format=
"yyyy-MM-dd HH:mm"
value-format=
"yyyy-MM-dd HH:mm"
placeholder=
"选择日期时间"
placeholder=
"选择日期时间"
:picker-options=
"pickerOption['afterPickerOptions']"
>
:picker-options=
"pickerOption['afterPickerOptions
_timeChoose
']"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
...
@@ -42,14 +42,14 @@
...
@@ -42,14 +42,14 @@
import
{
saveFollowRecord
}
from
'@api/earlyWarningManager'
import
{
saveFollowRecord
}
from
'@api/earlyWarningManager'
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
afterPickerOptions
}
from
'@/common/format'
import
{
afterPickerOptions
_timeChoose
}
from
'@/common/format'
// import { baseConfig } from '@/main'
// import { baseConfig } from '@/main'
export
default
{
export
default
{
name
:
'HandleDialog'
,
name
:
'HandleDialog'
,
data
()
{
data
()
{
return
{
return
{
pickerOption
:
{
pickerOption
:
{
afterPickerOptions
:
afterPickerOptions
afterPickerOptions
_timeChoose
:
afterPickerOptions_timeChoose
},
},
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
infoForm
:
{
...
...
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