Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
pet-business-web
Commits
395e6649
Commit
395e6649
authored
Sep 06, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug(67347) - 医院自有设备 之前时间不可预约
parent
9a14bebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
medical-record-management.vue
...t/medical-record-management/medical-record-management.vue
+2
-1
No files found.
src/views/service-management/medical-record-management/medical-record-management.vue
View file @
395e6649
...
@@ -433,6 +433,7 @@
...
@@ -433,6 +433,7 @@
class
=
"el-button--success--solid--four"
class
=
"el-button--success--solid--four"
plain
plain
@
click
=
"handleSubscribeDevice(scope.row)"
@
click
=
"handleSubscribeDevice(scope.row)"
:
disabled
=
"accordingToTime(scope.row.checkTime)"
>
立即预约
>
立即预约
<
/el-button
>
<
/el-button
>
<
/template
>
<
/template
>
...
@@ -621,7 +622,7 @@ export default {
...
@@ -621,7 +622,7 @@ export default {
// 计算的时间
// 计算的时间
const
startTime
=
checkTime
.
split
(
'-'
)[
0
]
const
startTime
=
checkTime
.
split
(
'-'
)[
0
]
// 当前时间
// 当前时间
const
currentDay
=
new
Date
().
getHours
()
+
':'
+
new
Date
().
getMinutes
(
)
const
currentDay
=
new
Date
().
getHours
()
+
':'
+
String
(
new
Date
().
getMinutes
()).
padStart
(
2
,
'0'
)
// 计算的时间小于当前时间就false
// 计算的时间小于当前时间就false
if
(
startTime
<
currentDay
)
{
if
(
startTime
<
currentDay
)
{
return
true
return
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment