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
3f28eccd
Commit
3f28eccd
authored
Feb 09, 2020
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
status
parent
f6ab81bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
punchClockDetail.vue
src/view/healthCard/punchClockDetail.vue
+4
-11
chart.vue
src/view/healthCard/statistics/chart.vue
+1
-1
No files found.
src/view/healthCard/punchClockDetail.vue
View file @
3f28eccd
...
@@ -134,11 +134,11 @@
...
@@ -134,11 +134,11 @@
</div>
</div>
<div
class=
"list"
>
<div
class=
"list"
>
<div
class=
"tip"
>
9. 出行明细
</div>
<div
class=
"tip"
>
9. 出行明细
</div>
<textarea
:placeholder=
"
readOnly
? '' : '请输入'"
:disabled=
"status==2"
autoHeight=
"true"
v-model=
"value.sHaveBeenDetail"
/>
<textarea
:placeholder=
"
status==2
? '' : '请输入'"
:disabled=
"status==2"
autoHeight=
"true"
v-model=
"value.sHaveBeenDetail"
/>
</div>
</div>
<div
class=
"list"
>
<div
class=
"list"
>
<div
class=
"tip"
>
10. 其他情况
</div>
<div
class=
"tip"
>
10. 其他情况
</div>
<textarea
:placeholder=
"
readOnly
? '' : '请输入'"
:disabled=
"status==2"
autoHeight=
"true"
v-model=
"value.sRemark"
/>
<textarea
:placeholder=
"
status==2
? '' : '请输入'"
:disabled=
"status==2"
autoHeight=
"true"
v-model=
"value.sRemark"
/>
</div>
</div>
<button
@
click=
"upData"
v-if=
"status!=2"
>
{{
!
status
?
'提交'
:
'修改'
}}
</button>
<button
@
click=
"upData"
v-if=
"status!=2"
>
{{
!
status
?
'提交'
:
'修改'
}}
</button>
</div>
</div>
...
@@ -177,7 +177,6 @@ export default {
...
@@ -177,7 +177,6 @@ export default {
iStatus
:
1
,
iStatus
:
1
,
},
},
status
:
0
,
//0 新增,1 修改,2 只读
status
:
0
,
//0 新增,1 修改,2 只读
readOnly
:
false
,
//是否只读
}
}
},
},
computed
:{
computed
:{
...
@@ -186,14 +185,8 @@ export default {
...
@@ -186,14 +185,8 @@ export default {
})
})
},
},
async
activated
(){
async
activated
(){
this
.
status
=
this
.
$route
.
query
.
readOnly
==
'true'
?
2
:
0
;
this
.
status
=
parseInt
(
this
.
$route
.
query
.
readOnly
)
||
0
if
(
this
.
$route
.
query
.
readOnly
==
'true'
){
this
.
status
=
2
var
date
=
new
Date
(
Number
(
this
.
$route
.
query
.
dDate
))
if
(
util
.
dateFormat
(
date
,
"yyyy-MM-dd"
)
==
util
.
dateFormat
(
new
Date
(),
"yyyy-MM-dd"
)){
this
.
status
=
1
}
}
this
.
value
.
sCreateAppid
=
this
.
$route
.
params
.
openId
this
.
value
.
sCreateAppid
=
this
.
$route
.
params
.
openId
if
(
this
.
status
>
0
){
if
(
this
.
status
>
0
){
await
this
.
getHealthDate
();
await
this
.
getHealthDate
();
...
...
src/view/healthCard/statistics/chart.vue
View file @
3f28eccd
...
@@ -537,7 +537,7 @@ export default {
...
@@ -537,7 +537,7 @@ export default {
this
.
$router
.
push
({
name
:
'healthCardStatisticsList'
,
params
:{
type
:
type
}});
this
.
$router
.
push
({
name
:
'healthCardStatisticsList'
,
params
:{
type
:
type
}});
},
},
routerToPunchClockDetail
(
item
){
routerToPunchClockDetail
(
item
){
this
.
$router
.
push
({
name
:
'punchClockDetail'
,
params
:{
id
:
'1'
,
address
:
'1'
,
openId
:
item
.
sCreateAppid
},
query
:{
readOnly
:
'
true
'
,
dDate
:
new
Date
(
Util
.
dateFormat
(
this
.
hdr
.
dDate
,
'yyyy-MM-dd'
)).
getTime
()}})
this
.
$router
.
push
({
name
:
'punchClockDetail'
,
params
:{
id
:
'1'
,
address
:
'1'
,
openId
:
item
.
sCreateAppid
},
query
:{
readOnly
:
'
2
'
,
dDate
:
new
Date
(
Util
.
dateFormat
(
this
.
hdr
.
dDate
,
'yyyy-MM-dd'
)).
getTime
()}})
}
}
}
}
}
}
...
...
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