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
cad007b2
Commit
cad007b2
authored
Oct 12, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
fb4f5d82
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
164 additions
and
60 deletions
+164
-60
app.module.ts
src/app/app.module.ts
+2
-0
app.scss
src/app/app.scss
+1
-1
change-apply-sure.html
...pages/manageDuty/change-apply-sure/change-apply-sure.html
+12
-1
change-apply-sure.scss
...pages/manageDuty/change-apply-sure/change-apply-sure.scss
+28
-1
change-apply-sure.ts
src/pages/manageDuty/change-apply-sure/change-apply-sure.ts
+11
-1
duty-apply-handle.ts
src/pages/manageDuty/duty-apply-handle/duty-apply-handle.ts
+7
-4
duty-change-detail.html
...ges/manageDuty/duty-change-detail/duty-change-detail.html
+0
-3
select-relay-person.html
...s/manageDuty/select-relay-person/select-relay-person.html
+17
-13
select-relay-person.scss
...s/manageDuty/select-relay-person/select-relay-person.scss
+69
-20
select-relay-person.ts
...ges/manageDuty/select-relay-person/select-relay-person.ts
+17
-16
No files found.
src/app/app.module.ts
View file @
cad007b2
...
...
@@ -25,6 +25,7 @@ import {PersonPage} from "../pages/surveyManage/modal/person/person";
import
{
PersonListPage
}
from
"../pages/contact/person-list/person-list"
;
import
{
BlockModalPage
}
from
"../pages/activity-track/block-modal/block-modal"
;
import
{
QuestionDetailPage
}
from
"../pages/mine/mySurvey/question-detail/question-detail"
;
import
{
DatePipe
}
from
"@angular/common"
;
@
NgModule
({
declarations
:
[
...
...
@@ -76,6 +77,7 @@ import { QuestionDetailPage } from "../pages/mine/mySurvey/question-detail/quest
Badge
,
Geolocation
,
ActivityStatisticService
,
DatePipe
,
{
provide
:
ErrorHandler
,
useClass
:
IonicErrorHandler
}
]
})
...
...
src/app/app.scss
View file @
cad007b2
...
...
@@ -28,7 +28,7 @@ p{
color
:
#fff
;
}
.bgc-e7e8ed
{
background-color
:
#e
7e8ed
;
background-color
:
#e
bedf2
;
}
.bgc-fff
{
background-color
:
#fff
;
...
...
src/pages/manageDuty/change-apply-sure/change-apply-sure.html
View file @
cad007b2
...
...
@@ -8,7 +8,18 @@
</ion-header>
<ion-content
padding
>
<ion-content
class=
"bgc-e7e8ed"
>
<div
class=
"detail-item"
>
<p
class=
"detail-title1"
>
申请信息
</p>
<p>
申请人: {{this.applyDetail?.personName}}
</p>
<p>
值班日期:{{this.applyDetail?.createTime | date:'yyyy-MM-dd'}}
</p>
<p>
换班原因:{{this.applyDetail?.reason}}
</p>
</div>
<div
class=
"detail-item"
>
<p
class=
"detail-title2"
>
换班信息
</p>
<p>
换班对象:{{this.item?.name}}
</p>
<p>
值班日期:{{this.applyDetail?.createTime | date:'yyyy-MM-dd'}}
</p>
</div>
<button
*
ngIf=
"applyType == 'replace'"
class=
"submit-btn submit"
(
click
)="
replace
()"
>
确认替班
</button>
<button
*
ngIf=
"applyType == 'change'"
class=
"submit-btn submit"
(
click
)="
change
()"
>
确认换班
</button>
</ion-content>
src/pages/manageDuty/change-apply-sure/change-apply-sure.scss
View file @
cad007b2
page-change-apply-sure
{
.submit
{
margin-top
:
20px
;
border
:
1px
solid
#34b4fc
;
background-color
:
#34b4fc
;
}
.detail-item
{
background-color
:
#fff
;
margin
:
10px
;
border-radius
:
4px
;
padding-bottom
:
10px
;
p
:not
(
:first-child
)
{
margin
:
20px
10px
;
}
.detail-title1
{
background-color
:
#4990b5
;
color
:
#fff
;
padding
:
10px
;
border-top-left-radius
:
4px
;
border-top-right-radius
:
4px
;
}
.detail-title2
{
background-color
:
#408de7
;
color
:
#fff
;
padding
:
10px
;
border-top-left-radius
:
4px
;
border-top-right-radius
:
4px
;
}
}
}
src/pages/manageDuty/change-apply-sure/change-apply-sure.ts
View file @
cad007b2
...
...
@@ -10,19 +10,24 @@ import {AppService} from "../../../service/appHttpService";
})
export
class
ChangeApplySurePage
{
item
;
//替班人信息
applyDetail
;
//申请信息
applyType
;
//申请类型
changeId
;
// 换班Id
personId
;
//替班人id
nowId
;
//申请id
applyId
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
)
{
}
ionViewDidLoad
()
{
this
.
item
=
this
.
navParams
.
get
(
'item'
);
this
.
applyId
=
this
.
navParams
.
get
(
'applyId'
);
this
.
personId
=
this
.
navParams
.
get
(
'personId'
);
this
.
nowId
=
this
.
navParams
.
get
(
'nowId'
);
this
.
changeId
=
this
.
navParams
.
get
(
'changeId'
);
console
.
log
(
'applyId:'
+
this
.
applyId
);
console
.
log
(
'personId:'
+
this
.
personId
);
console
.
log
(
'nowId:'
+
this
.
nowId
);
console
.
log
(
'changeId:'
+
this
.
changeId
);
...
...
@@ -32,6 +37,11 @@ export class ChangeApplySurePage {
this
.
applyType
=
'change'
;
//替班
}
this
.
appService
.
ObserverHttpGetOption
(
'/wisdomgroup/changeApply/app/apply'
,{
'id'
:
this
.
applyId
})
.
subscribe
((
res
)
=>
{
this
.
applyDetail
=
res
.
json
();
})
}
//替班
...
...
src/pages/manageDuty/duty-apply-handle/duty-apply-handle.ts
View file @
cad007b2
...
...
@@ -47,17 +47,20 @@ export class DutyApplyHandlePage {
}
case
'2'
:{
//替班
this
.
navCtrl
.
push
(
'SelectRelayPersonPage'
,{
id
:
this
.
applyDetail
.
scheduleId
applyId
:
this
.
applyDetail
.
id
,
scheduleId
:
this
.
applyDetail
.
scheduleId
,
date
:
this
.
personDetail
.
dutyDate
});
break
;
}
case
'3'
:{
const
data
=
{
applyId
:
this
.
applyDetail
.
id
}
this
.
appService
.
ObserverHttpGet
(
'
/changeApply/app/ignore'
,
data
)
}
;
this
.
appService
.
ObserverHttpGet
Option
(
'/wisdomgroup
/changeApply/app/ignore'
,
data
)
.
subscribe
((
res
)
=>
{
this
.
appService
.
popToastView
(
'已忽略'
,
'middle'
,
2000
);
this
.
navCtrl
.
pop
();
})
break
;
}
...
...
src/pages/manageDuty/duty-change-detail/duty-change-detail.html
View file @
cad007b2
...
...
@@ -7,9 +7,6 @@
</ion-header>
<ion-content
class=
"bgc-e7e8ed"
>
<!--<p class="padding-10-20 bgc-fff">已忽略</p>-->
<!--<p>已安排替班</p>-->
<!--<p>已安排换班</p>-->
<ng-container
*
ngFor=
"let item of httpDetail;"
>
<div
class=
"detail-item"
>
<p
class=
"detail-title1"
>
申请信息
</p>
...
...
src/pages/manageDuty/select-relay-person/select-relay-person.html
View file @
cad007b2
...
...
@@ -3,25 +3,29 @@
<ion-navbar>
<ion-title>
选择替班人员
</ion-title>
</ion-navbar>
<div
class=
"duty"
>
<div
class=
"dutyItem"
(
click
)="
change
(
0
)"
>
<span
class=
"{{changeType == 0?'duty-title':''}}"
>
女
</span>
</div>
<div
class=
"dutyItem"
(
click
)="
change
(
1
)"
>
<span
class=
"{{changeType == 1?'duty-title':''}}"
>
男
</span>
</div>
</div>
</ion-header>
<ion-content
padding
>
<ion-content>
<!--<ion-searchbar (ionInput)="getList($event)" [(ngModel)]="name" placeholder="搜索替班人员"></ion-searchbar>-->
<ion-list>
<ion-item-sliding>
<ion-item
*
ngFor=
"let item of list"
>
<div
(
click
)="
selectPerson
(
item
)"
>
<span>
{{item.name}}
</span>
<span>
{{item.orgName}}
</span>
<span>
{{item.phoneNumber}}
</span>
<div
class=
"contact-box"
(
click
)="
selectPerson
(
item
)"
>
<img
src=
"./assets/imgs/head.png"
class=
"contact-img"
>
<div
class=
"contact-box-right"
>
<div>
<span
class=
"contact-name"
>
{{item.name}}
</span>
<span
class=
"contact-handphone"
>
{{item.phoneNumber}}
</span>
</div>
<div
class=
"contact-organization"
>
{{item?.orgName}}
</div>
</div>
</div>
</ion-item>
</ion-item-sliding>
</ion-list>
</ion-content>
src/pages/manageDuty/select-relay-person/select-relay-person.scss
View file @
cad007b2
page-select-relay-person
{
.
duty
{
.
searchToolBar
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
}
.duty
div
{
width
:
50%
;
text-align
:
center
;
position
:
relative
;
}
.duty-title
{
position
:
relative
;
color
:
#24bafc
;
}
.
duty-title
:
:
after
{
content
:
''
;
position
:
absolute
;
width
:
100%
;
height
:
2px
;
background-color
:
#24bafc
;
bottom
:
-8px
;
left
:
0px
;
justify-content
:
left
;
box-sizing
:
border-box
;
}
.list-ios
.item-block
.item-inner
{
border-bottom
:
1px
solid
#c8c7cc
;
}
.search
{
float
:
right
;
color
:
#72a4fe
;
font-size
:
24px
;
margin-right
:
10px
;
}
.contact-box
{
// height: 100%;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
left
;
box-sizing
:
border-box
;
}
.contact-box-right
{
margin-left
:
10px
;
}
.contact-img
{
width
:
3rem
;
height
:
3rem
;
}
.contact-name
{
font-size
:
16px
;
font-weight
:
bold
;
}
.contact-sex
{
font-size
:
16px
;
font-weight
:
bold
;
}
.male
{
color
:
#72a4fe
;
}
.female
{
color
:
#f09ae5
;
}
.contact-organization
{
color
:
#d0d0d0
;
font-size
:
12px
;
}
.contact-telphone
{
color
:
#999
;
font-size
:
1
.4rem
;
}
.contact-handphone
{
color
:
#666666
;
font-size
:
1
.5rem
;
margin-left
:
7px
;
}
.back-btn
{
width
:
30px
;
height
:
30px
;
}
}
src/pages/manageDuty/select-relay-person/select-relay-person.ts
View file @
cad007b2
...
...
@@ -2,13 +2,8 @@ import { Component } from '@angular/core';
import
{
IonicPage
,
NavController
,
NavParams
}
from
'ionic-angular'
;
import
{
AppService
}
from
"../../../service/appHttpService"
;
import
{
ChangeApplySurePage
}
from
"../change-apply-sure/change-apply-sure"
;
/**
* Generated class for the SelectRelayPersonPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
import
{
Storage
}
from
"@ionic/storage"
;
import
{
DatePipe
}
from
"@angular/common"
;
@
IonicPage
()
@
Component
({
...
...
@@ -17,23 +12,27 @@ import {ChangeApplySurePage} from "../change-apply-sure/change-apply-sure";
})
export
class
SelectRelayPersonPage
{
id
;
gender
;
//性别 1 男 0女
scheduleId
;
date
;
list
;
changeType
=
0
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
)
{
public
appService
:
AppService
,
public
storage
:
Storage
,
private
datepipe
:
DatePipe
)
{
}
ionViewDidLoad
()
{
this
.
id
=
this
.
navParams
.
get
(
'id'
);
console
.
log
(
'nowId:'
+
this
.
id
);
this
.
scheduleId
=
this
.
navParams
.
get
(
'scheduleId'
);
this
.
date
=
this
.
datepipe
.
transform
(
this
.
navParams
.
get
(
'date'
),
'yyyy/MM/dd'
);
this
.
storage
.
get
(
"user"
).
then
((
res
)
=>
{
this
.
gender
=
res
.
userDetail
.
user
.
gender
;
this
.
getPerson
();
});
}
getPerson
(){
const
data
=
{
date
:
'2018/10/01'
,
gender
:
this
.
changeType
,
date
:
this
.
date
,
gender
:
this
.
gender
,
id
:
''
};
this
.
appService
.
ObserverHttpGetOption
(
'/wisdomgroup/dutyPerson/getPersonListOutOfMine'
,
data
)
...
...
@@ -45,13 +44,15 @@ export class SelectRelayPersonPage {
//替班
selectPerson
(
item
){
this
.
navCtrl
.
push
(
'ChangeApplySurePage'
,{
'item'
:
item
,
'applyId'
:
this
.
navParams
.
get
(
'applyId'
),
'personId'
:
item
.
id
,
'nowId'
:
this
.
i
d
'nowId'
:
this
.
scheduleI
d
})
}
change
(
type
){
this
.
changeType
=
type
;
//
this.changeType = type;
this
.
getPerson
();
}
...
...
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