Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
71d039c4
Commit
71d039c4
authored
Nov 02, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9110b13e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
offlineSetup.vue
src/components/offlineService/offlineSetup.vue
+29
-3
No files found.
src/components/offlineService/offlineSetup.vue
View file @
71d039c4
...
...
@@ -31,6 +31,7 @@
end: '23:59'
}">
</el-time-select>
<i
style=
"color:red;font-size:16px;cursor:pointer"
@
click=
"delBusiness(index)"
class=
"el-icon-delete"
></i>
</div>
</div>
<div
style=
"float:left;margin-left:10px;"
>
...
...
@@ -45,7 +46,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"提前预定时间"
>
<el-input
placeholder=
"请输入"
@
keyup
.
native=
"checkInteger(addMsg,'AdvanceMinute')"
style=
"width:
35
0px"
<el-input
placeholder=
"请输入"
@
keyup
.
native=
"checkInteger(addMsg,'AdvanceMinute')"
style=
"width:
22
0px"
size=
"small"
v-model=
"addMsg.AdvanceMinute"
>
<el-button
slot=
"append"
>
<span>
分
</span>
...
...
@@ -86,9 +87,35 @@
this
.
getData
();
},
methods
:
{
//删除
delBusiness
(
index
){
this
.
addMsg
.
BusinessHoursList
.
splice
(
index
,
1
);
},
//保存
Save
()
{
var
myDate
=
new
Date
();
var
year
=
myDate
.
getFullYear
();
//获取当前年份(4位)
var
month
=
myDate
.
getMonth
()
+
1
;
//获取月
var
strDate
=
myDate
.
getDate
();
if
(
this
.
addMsg
.
BusinessHoursList
.
length
>
0
){
this
.
addMsg
.
BusinessHoursList
.
forEach
(
x
=>
{
if
(
x
.
StartTime
&&
x
.
EndTime
){
var
T1
=
x
.
StartTime
.
split
(
':'
)[
0
];
var
T2
=
x
.
EndTime
.
split
(
':'
)[
0
];
var
T3
=
x
.
StartTime
.
split
(
':'
)[
1
];
var
T4
=
x
.
EndTime
.
split
(
':'
)[
1
];
x
.
IsNextDay
=
1
;
if
((
parseInt
(
T2
)
<=
parseInt
(
T1
))){
if
(
parseInt
(
T4
)
<
parseInt
(
T3
)){
x
.
IsNextDay
=
1
;
}
}
else
{
x
.
IsNextDay
=
0
;
}
}
})
}
this
.
apipost
(
"/api/Reserve/SetReserveBaseInfo"
,
this
.
addMsg
,
res
=>
{
console
.
log
(
res
,
'数据'
);
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
}
else
{
...
...
@@ -100,7 +127,6 @@
this
.
loading
=
true
;
this
.
apipost
(
"/api/Reserve/GetReserveBaseInfo"
,
{},
res
=>
{
this
.
loading
=
false
;
console
.
log
(
res
,
'数据'
);
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
}
...
...
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