Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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 8836ba43
authored
Sep 26, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化闹钟模式展示
1 parent
a3f8593b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
src/views/vehicleManage/freqModal.vue
src/views/vehicleManage/freqModal.vue
View file @
8836ba4
...
@@ -150,6 +150,12 @@ export default {
...
@@ -150,6 +150,12 @@ export default {
},
},
loading
:
false
,
loading
:
false
,
formLoading
:
false
,
formLoading
:
false
,
timeList
:
{
1
:
"01:00"
,
2
:
"10:00"
,
3
:
"14:00"
,
4
:
"23:00"
,
},
};
};
},
},
computed
:
{
computed
:
{
...
@@ -198,10 +204,18 @@ export default {
...
@@ -198,10 +204,18 @@ export default {
if
(
form
.
fqType
==
1
)
{
if
(
form
.
fqType
==
1
)
{
let
arr
=
form
.
teamList
;
let
arr
=
form
.
teamList
;
let
_timer
=
[];
let
_timer
=
[];
arr
.
map
((
k
)
=>
{
for
(
let
i
=
1
;
i
<
5
;
i
++
)
{
console
.
log
(
k
);
let
idx
=
arr
.
findIndex
((
k
)
=>
k
==
i
);
_timer
.
push
(
form
[
"timer"
+
k
]);
if
(
idx
>=
0
)
{
});
_timer
.
push
(
form
[
"timer"
+
i
]);
}
else
{
_timer
.
push
(
"NA"
);
}
}
// arr.map((k) => {
// console.log(k);
// _timer.push(form["timer" + k]);
// });
params
.
timer
=
_timer
.
join
(
","
);
params
.
timer
=
_timer
.
join
(
","
);
}
}
...
@@ -318,23 +332,10 @@ export default {
...
@@ -318,23 +332,10 @@ export default {
if
(
k
!=
"NA"
)
{
if
(
k
!=
"NA"
)
{
teamList
.
push
(
i
+
1
);
teamList
.
push
(
i
+
1
);
obj
[
"timer"
+
(
i
+
1
)]
=
k
;
obj
[
"timer"
+
(
i
+
1
)]
=
k
;
}
else
{
obj
[
"timer"
+
(
i
+
1
)]
=
this
.
timeList
[
i
+
1
];
}
}
});
});
if
(
len
==
3
)
{
obj
.
timer4
=
"23:00"
;
}
if
(
len
==
2
)
{
obj
.
timer3
=
"14:00"
;
obj
.
timer4
=
"23:00"
;
}
if
(
len
==
1
)
{
obj
.
timer2
=
"10:00"
;
obj
.
timer3
=
"14:00"
;
obj
.
timer4
=
"23:00"
;
}
}
}
// 非闹钟模式,设置默认值
// 非闹钟模式,设置默认值
...
...
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