Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
community_vote
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
community_vote
Commits
31fccd81
Commit
31fccd81
authored
Jan 04, 2022
by
xhx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-xhx' into dev
parents
5c0b59de
0d0bf5de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
founder_initiate.vue
src/views/initiate_comp/founder_initiate.vue
+14
-3
No files found.
src/views/initiate_comp/founder_initiate.vue
View file @
31fccd81
...
...
@@ -172,7 +172,6 @@ export default Vue.extend({
},
methods
:{
checkName
()
{
console
.
log
(
this
.
form
)
if
(
!
this
.
form
.
name
)
return
service
.
checkName
(
this
.
form
.
name
).
then
(
res
=>
{
if
(
res
.
data
.
result
)
{
...
...
@@ -208,6 +207,14 @@ export default Vue.extend({
this
.
show
=
false
},
submit
()
{
if
(
!
this
.
form
.
name
||
!
this
.
form
.
startHeight
||
!
this
.
form
.
endHeight
)
{
Toast
(
'请先填写表单内容'
)
return
}
if
(
this
.
isExist
)
{
Toast
(
'请确认表单名称正确'
)
return
}
const
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
params
.
numType
=
this
.
times
===
'每天一次'
?
2
:
1
params
.
isOpen
=
this
.
checked
...
...
@@ -226,18 +233,22 @@ export default Vue.extend({
let
stamp
=
0
const
r
=
+
this
.
form
.
endHeight
-
+
this
.
blockHeight
stamp
=
+
(
this
.
blockTime
+
'000'
)
+
r
*
5000
const
hour
=
new
Date
(
stamp
).
getHours
()
const
n
=
hour
===
23
?
1
:
0
this
.
dateEnd
=
new
Date
(
stamp
).
getFullYear
()
+
'-'
+
(
new
Date
(
stamp
).
getMonth
()
+
1
<
10
?
'0'
+
(
new
Date
(
stamp
).
getMonth
()
+
1
)
:
new
Date
(
stamp
).
getMonth
()
+
1
)
+
'-'
+
(
new
Date
(
stamp
).
getDate
()
<
10
?
'0'
+
(
new
Date
(
stamp
).
getDate
()
)
:
new
Date
(
stamp
).
getDate
()
)
(
new
Date
(
stamp
).
getDate
()
<
10
?
'0'
+
(
new
Date
(
stamp
).
getDate
()
+
n
)
:
new
Date
(
stamp
).
getDate
()
+
n
)
},
getDateStart
()
{
if
(
!
this
.
form
.
startHeight
)
return
let
stamp
=
0
const
r
=
+
this
.
form
.
startHeight
-
+
this
.
blockHeight
stamp
=
+
(
this
.
blockTime
+
'000'
)
+
r
*
5000
const
hour
=
new
Date
(
stamp
).
getHours
()
const
n
=
hour
===
23
?
1
:
0
this
.
dateStart
=
new
Date
(
stamp
).
getFullYear
()
+
'-'
+
(
new
Date
(
stamp
).
getMonth
()
+
1
<
10
?
'0'
+
(
new
Date
(
stamp
).
getMonth
()
+
1
)
:
new
Date
(
stamp
).
getMonth
()
+
1
)
+
'-'
+
(
new
Date
(
stamp
).
getDate
()
<
10
?
'0'
+
(
new
Date
(
stamp
).
getDate
()
)
:
new
Date
(
stamp
).
getDate
()
)
(
new
Date
(
stamp
).
getDate
()
<
10
?
'0'
+
(
new
Date
(
stamp
).
getDate
()
+
n
)
:
new
Date
(
stamp
).
getDate
()
+
n
)
},
selectStart
(
v
:
Date
)
{
const
r
=
new
Date
(
v
).
getFullYear
()
+
'-'
+
...
...
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