Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
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
wangxuelai
wechatapp.shangjiadao.com
Commits
1dab08f7
Commit
1dab08f7
authored
Dec 11, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
85e5736d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
15 deletions
+28
-15
leave.js
service/customer/leave.js
+2
-2
index.js
src/pages/myschedule/index.js
+25
-12
index.wxml
src/pages/myschedule/index.wxml
+1
-1
No files found.
service/customer/leave.js
View file @
1dab08f7
...
...
@@ -33,7 +33,7 @@ function erpLeavesList (data) {
url
:
apis
.
customer
.
leavesMgt
.
leavesApi
,
data
,
method
:
'GET'
,
errorresolve
:
1
,
errorresolve
:
2
,
})
}
// 请假详情
...
...
@@ -55,7 +55,7 @@ function erpLeaveTimes (data) {
url
:
apis
.
customer
.
leavesMgt
.
leavesTimeApi
,
data
,
method
:
'GET'
,
errorresolve
:
1
,
errorresolve
:
2
,
})
}
export
{
...
...
src/pages/myschedule/index.js
View file @
1dab08f7
...
...
@@ -58,8 +58,6 @@ Page({
page
:
1
,
hasmore
:
true
,
})
this
.
getErpLeaveTimes
();
this
.
getErpLeavesList
(
'init'
);
app
.
getCurrentSchoolStudentId
({
source_id
:
this
.
data
.
sid
,
source_type
:
10
,
...
...
@@ -68,6 +66,8 @@ Page({
studentInfo
:
res
.
student
.
formal_school_student
})
this
.
getCourseList
(
'init'
);
this
.
getErpLeaveTimes
();
this
.
getErpLeavesList
(
'init'
);
})
},
onReady
:
function
()
{
...
...
@@ -238,6 +238,9 @@ Page({
school_id
:
this
.
data
.
sid
}).
then
(
res
=>
{
const
{
data
,
code
}
=
res
;
if
(
code
==
40000
){
return
}
if
(
code
!=
200
){
}
else
{
...
...
@@ -286,6 +289,12 @@ Page({
this
.
setData
({
LeavesListLoading
:
false
})
if
(
code
==
40000
){
this
.
setData
({
LeavesEmptyPage
:
true
})
return
}
if
(
code
!=
200
)
{
// 失败的处理
}
else
{
...
...
@@ -420,17 +429,21 @@ Page({
const
{
data
,
code
}
=
res
;
if
(
code
!=
200
){
}
else
{
that
.
setData
({
[
`courseList[
${
optBigindex
}
][
${
optIndex
}
].leave`
]:
{
status
:
data
.
status
,
//1为正在请假,返回的就是1
id
:
data
.
id
},
leaveContent
:
''
,
modalLeaveShow
:
false
,
// leavesPage: 1,
// leavesHasmore: true
wx
.
showToast
({
title
:
'请假申请成功'
,
icon
:
'success'
,
duration
:
500
,
success
:
function
(){
that
.
setData
({
[
`courseList[
${
optBigindex
}
][
${
optIndex
}
].leave`
]:
{
status
:
2
,
id
:
data
.
id
},
leaveContent
:
''
,
modalLeaveShow
:
false
})
}
})
// that.getErpLeavesList('init');
}
})
wx
.
hideLoading
()
...
...
src/pages/myschedule/index.wxml
View file @
1dab08f7
...
...
@@ -68,7 +68,7 @@
</view>
<view class="item-contentbox">
<view class="content-item">
<view class="item-label"><view class="text">授课时间
{{item.leave.status}}
</view>:</view>
<view class="item-label"><view class="text">授课时间</view>:</view>
<view class="item-text">{{filter.matchTime(item.start_time,'month')}} {{filter.matchTime(item.start_time,'hour')}}-{{filter.matchTime(item.end_time,'hour')}}</view>
</view>
<view class="content-item">
...
...
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