Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tiktok-upload-web
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
tiktok-upload-web
Commits
6e60c2e1
Commit
6e60c2e1
authored
Mar 15, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1d0995cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletions
+30
-1
src/pages/RaiseNumber/components/Raise/index.tsx
+1
-0
src/pages/RaiseNumber/index.tsx
+29
-1
No files found.
src/pages/RaiseNumber/components/Raise/index.tsx
View file @
6e60c2e1
...
...
@@ -46,6 +46,7 @@ export default defineComponent({
if
(
date
&&
time
)
{
let
newDate
=
date
+
' '
+
time
;
let
dateValue
=
dayjs
(
newDate
).
valueOf
();
dateValue
=
dateValue
/
1000
;
// 合并
emit
(
'update:modelValue'
,
dateValue
);
}
...
...
src/pages/RaiseNumber/index.tsx
View file @
6e60c2e1
...
...
@@ -17,6 +17,8 @@ export default defineComponent({
const
raise_duration
=
ref
(
1000
*
60
*
5
);
// 随机间隔
const
dwell_interval
=
ref
(
''
);
// 上传按钮能否点击
const
BtnStatus
=
ref
(
false
);
const
getparamsList
=
()
=>
{
let
list
:
any
=
[
{
...
...
@@ -27,7 +29,21 @@ export default defineComponent({
];
return
list
;
};
watch
(
()
=>
[
startTime
.
value
,
raise_duration
.
value
,
dwell_interval
.
value
],
(
v
)
=>
{
for
(
let
i
=
0
;
i
<
v
.
length
;
i
++
)
{
if
(
v
[
i
])
{
BtnStatus
.
value
=
true
;
break
;
}
}
}
);
const
submit
=
async
()
=>
{
if
(
!
BtnStatus
.
value
)
{
return
;
}
if
(
!
accountId
.
value
)
{
MessagePlugin
.
closeAll
();
MessagePlugin
.
warning
(
'请选择账户'
);
...
...
@@ -42,12 +58,21 @@ export default defineComponent({
try
{
// 获取本次提交列表
let
list
=
getparamsList
();
loading
.
value
=
true
;
let
res
:
any
=
await
useSubmitRaiseTask
({
account_id
:
accountId
.
value
,
parameters
:
list
,
type
:
7
,
});
if
(
res
.
code
==
0
)
{
MessagePlugin
.
success
(
'上传成功'
);
// 上传按钮置灰
BtnStatus
.
value
=
false
;
}
loading
.
value
=
false
;
}
catch
(
e
)
{
console
.
log
(
e
);
loading
.
value
=
false
;
}
};
// 重置--清空
...
...
@@ -69,7 +94,10 @@ export default defineComponent({
v
-
model
:
raise_duration=
{
raise_duration
.
value
}
></
Raise
>
<
RandomStop
v
-
model=
{
dwell_interval
.
value
}
></
RandomStop
>
<
t
-
button
class=
{
[
'submit-btn'
,
1
?
'active'
:
''
]
}
onClick=
{
submit
}
>
<
t
-
button
class=
{
[
'submit-btn'
,
BtnStatus
.
value
?
'active'
:
''
]
}
onClick=
{
submit
}
>
确认
</
t
-
button
>
<
t
-
button
class=
"on-reset"
onClick=
{
onReset
}
>
...
...
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