Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
Kindergarten
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
张杰
Kindergarten
Commits
089fb905
Commit
089fb905
authored
Jan 02, 2019
by
SmileFei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核操作完善
parent
3fdca63e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
index.js
pages/review_student/index.js
+15
-6
index.wxml
pages/review_student/index.wxml
+1
-1
No files found.
pages/review_student/index.js
View file @
089fb905
...
...
@@ -7,8 +7,9 @@ Page({
* 页面的初始数据
*/
data
:
{
signSummaryId
:
""
,
signSummaryId
:
""
,
recordDetail
:
{},
showAuditBtn
:
true
,
recordTypes
:
{
"diet_morning"
:
'早餐'
,
"diet_afternoon"
:
"午餐"
,
...
...
@@ -33,6 +34,7 @@ Page({
//加载详情
getRecordDetailForSignId
:
function
()
{
request
.
getRecordDetailForSignId
(
this
.
data
.
signSummaryId
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
var
dateStr
=
res
.
recordDate
.
substr
(
0
,
10
)
let
show_day
=
new
Array
(
'周日'
,
'周一'
,
'周二'
,
'周三'
,
'周四'
,
'周五'
,
'周六'
);
...
...
@@ -61,9 +63,13 @@ Page({
var
r
=
wcRecord
[
j
]
r
.
z_recordType
=
this
.
data
.
recordTypes
[
r
.
recordType
]
}
if
(
res
.
state
==
"finish"
)
{
this
.
setData
({
showAuditBtn
:
false
})
}
this
.
setData
({
recordDetail
:
res
,
recordDetail
:
res
})
}
...
...
@@ -76,9 +82,12 @@ Page({
})
},
auditSignSummary
:
function
(
signSummaryId
)
{
auditSignSummary
:
function
(
signSummaryId
)
{
console
.
log
(
signSummaryId
)
request
.
auditSignSummary
(
signSummaryId
).
then
(
res
=>
{
this
.
setData
({
showAuditBtn
:
false
})
wx
.
showToast
({
title
:
'审核成功!'
,
icon
:
'none'
,
...
...
@@ -94,8 +103,8 @@ Page({
},
operateTap
:
function
(
e
)
{
this
.
auditSignSummary
(
this
.
data
.
signSummaryId
)
operateTap
:
function
(
e
)
{
this
.
auditSignSummary
(
this
.
data
.
signSummaryId
)
},
/**
...
...
pages/review_student/index.wxml
View file @
089fb905
...
...
@@ -59,4 +59,4 @@
</view>
</view>
</scroll-view>
<template is="operate_btn" data="{{title:'通过'}}"></template>
\ No newline at end of file
<template is="operate_btn" data="{{title:'通过'}}" wx:if="{{showAuditBtn}}"></template>
\ No newline at end of file
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