Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
godwithdh
WX_h5
Commits
2cf53fdb
Commit
2cf53fdb
authored
Feb 09, 2020
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time
parent
125fe87a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
punchClockDetail.vue
src/view/healthCard/punchClockDetail.vue
+2
-3
No files found.
src/view/healthCard/punchClockDetail.vue
View file @
2cf53fdb
...
...
@@ -186,7 +186,6 @@ export default {
})
},
async
activated
(){
window
.
d
=
this
;
this
.
status
=
this
.
$route
.
query
.
readOnly
==
'true'
?
2
:
0
;
if
(
this
.
$route
.
query
.
readOnly
==
'true'
){
this
.
status
=
2
...
...
@@ -195,7 +194,6 @@ export default {
this
.
status
=
1
}
}
this
.
status
==
1
&&
(
this
.
value
.
iStatus
=
2
)
this
.
value
.
sCreateAppid
=
this
.
$route
.
params
.
openId
if
(
this
.
status
>
0
){
await
this
.
getHealthDate
();
...
...
@@ -245,13 +243,14 @@ export default {
},
async
upData
(){
//保存数据
if
(
this
.
checkData
()){
this
.
value
.
iStatus
=
this
.
status
>
0
?
2
:
1
var
value
=
await
this
.
request
(
"saveHealth"
,{
data
:
this
.
value
,
},
"加载中"
,{})
if
(
/^
\d
+$/
.
test
(
value
)){
wx
.
miniProgram
.
navigateBack
()
}
else
{
this
.
$vux
.
toast
.
text
(
'保存失败!'
,
'middle'
);
this
.
$vux
.
toast
.
text
(
this
.
status
>
0
?
'修改失败!'
:
'保存失败!'
,
'middle'
);
}
}
},
...
...
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