Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-ces
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
wangqinghua
wisdom-ces
Commits
c2e805e7
Commit
c2e805e7
authored
Oct 11, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日历
parent
681c94d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
52 deletions
+58
-52
contact.ts
src/pages/tabs/contact/contact.ts
+0
-3
home.ts
src/pages/tabs/home/home.ts
+57
-48
notice.ts
src/pages/tabs/notice/notice.ts
+1
-1
No files found.
src/pages/tabs/contact/contact.ts
View file @
c2e805e7
...
...
@@ -41,7 +41,6 @@ export class ContactPage {
this
.
appService
.
ObserverHttpGetData
(
"/wisdomgroup/sysmanagement/org/getAllOrganization"
,
{
order
:
0
})
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
console
.
log
(
"data:"
+
data
);
this
.
organizations
=
data
;
//移除父节点
...
...
@@ -68,7 +67,6 @@ export class ContactPage {
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
this
.
ownerList
=
data
.
data
.
list
;
console
.
log
(
this
.
ownerList
);
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
...
...
@@ -108,7 +106,6 @@ export class ContactPage {
text
:
'取消'
,
role
:
'cancel'
,
handler
:
()
=>
{
console
.
log
(
'Cancel clicked'
);
}
},
{
...
...
src/pages/tabs/home/home.ts
View file @
c2e805e7
...
...
@@ -355,13 +355,44 @@ export class HomePage {
let
year
=
date
.
getFullYear
();
let
month
=
date
.
getMonth
()
+
1
;
///schedule/app/getMyScheduleOnMonth
//2.参加活动日期
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/modules/order/appOrderCal"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
let
response
=
res
.
json
();
response
.
forEach
(
event
=>
{
this
.
newArr
.
push
({
date
:
new
Date
(
event
.
batch
.
batchGoDate
),
disable
:
true
,
cssClass
:
'dayOff2'
})
});
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
});
//3.离沪日期
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/modules/userpre/appPreCal"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
let
response
=
res
.
json
();
response
.
forEach
(
event
=>
{
this
.
newArr
.
push
({
date
:
new
Date
(
event
.
formshTime
),
disable
:
true
,
cssClass
:
'dayOff4'
})
});
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
});
this
.
loadEvent
(
year
,
month
);
}
loadEvent
(
year
,
month
)
{
let
date
=
new
Date
();
//
1
.每月的周末
//
4
.每月的周末
let
d
=
new
Date
(
year
,
month
,
0
).
getDate
();
for
(
let
i
=
1
;
i
<
d
+
1
;
i
++
)
{
date
.
setFullYear
(
year
,
month
-
1
,
i
);
...
...
@@ -375,7 +406,7 @@ export class HomePage {
this
.
newArr
.
push
(
data
);
}
}
//
2
.获取每月值班信息
//
5
.获取每月值班信息
const
data
=
{
date
:
year
+
'/'
+
month
+
'/01'
};
...
...
@@ -390,57 +421,35 @@ export class HomePage {
};
this
.
newArr
.
push
(
data
);
}
//3.参加活动日期
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/modules/order/appOrderCal"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
let
response
=
res
.
json
();
response
.
forEach
(
event
=>
{
this
.
newArr
.
push
({
date
:
new
Date
(
event
.
batch
.
batchGoDate
),
disable
:
true
,
cssClass
:
'dayOff2'
})
});
//4.离沪日期
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/modules/userpre/appPreCal"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
let
response
=
res
.
json
();
response
.
forEach
(
event
=>
{
this
.
newArr
.
push
({
date
:
new
Date
(
event
.
formshTime
),
disable
:
true
,
cssClass
:
'dayOff4'
})
});
console
.
log
(
this
.
newArr
);
this
.
optionsMulti
=
{
pickMode
:
'multi'
,
monthFormat
:
'YYYY 年 MM 月 '
,
weekdays
:
weekDay
,
monthPickerFormat
:
monthCh
,
weekStart
:
0
,
disableWeeks
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
],
daysConfig
:
this
.
newArr
};
console
.
log
(
this
.
optionsMulti
);
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
//1.获取节假日
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/workCalendar/getFestivalAboutMonth"
,
data
)
.
subscribe
((
res
)
=>
{
let
data
=
res
.
json
();
data
.
forEach
(
event
=>
{
const
data
=
{
date
:
new
Date
(
event
.
date
),
disable
:
true
,
cssClass
:
'dayOff1'
};
this
.
newArr
.
push
(
data
);
this
.
optionsMulti
=
{
pickMode
:
'multi'
,
monthFormat
:
'YYYY 年 MM 月 '
,
weekdays
:
weekDay
,
monthPickerFormat
:
monthCh
,
weekStart
:
0
,
disableWeeks
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
],
daysConfig
:
this
.
newArr
};
console
.
log
(
this
.
optionsMulti
);
})
});
}
onChange
(
e
)
{
...
...
src/pages/tabs/notice/notice.ts
View file @
c2e805e7
...
...
@@ -18,11 +18,11 @@ export class NoticePage {
}
ionViewDidEnter
()
{
this
.
addRecodings
();
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/message/findAllActivityForAppWithXQ"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
this
.
noticeList
=
data
;
this
.
addRecodings
();
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
...
...
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