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
4bf815e1
Commit
4bf815e1
authored
Oct 23, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
15bae915
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
44 deletions
+77
-44
duty.ts
src/pages/dutyALl/duty/duty.ts
+5
-0
my-duty.html
src/pages/mine/my-duty/my-duty.html
+5
-4
my-duty.ts
src/pages/mine/my-duty/my-duty.ts
+6
-0
survey-write.html
src/pages/mine/mySurvey/survey-write/survey-write.html
+7
-7
desicr.html
src/pages/surveyManage/item/desicr/desicr.html
+8
-6
desicr.ts
src/pages/surveyManage/item/desicr/desicr.ts
+46
-27
No files found.
src/pages/dutyALl/duty/duty.ts
View file @
4bf815e1
...
...
@@ -115,6 +115,11 @@ export class DutyPage {
//提交申请
dutyApply
(
item
){
let
nowTime
=
new
Date
().
getTime
();
if
(
nowTime
>
item
.
dutyDate
){
this
.
appService
.
popToastView
(
'该条值班已过期'
,
'middle'
,
1500
);
return
false
;
}
this
.
navCtrl
.
push
(
'DutyApplyPage'
,{
id
:
item
.
id
,
date
:
item
.
dutyDate
...
...
src/pages/mine/my-duty/my-duty.html
View file @
4bf815e1
...
...
@@ -30,10 +30,11 @@
</div>
<div>
<span
class=
"color-666"
style=
"font-size: 1.5rem"
>
<span
*
ngIf=
"item.type == 1"
>
工作日
</span>
<span
*
ngIf=
"item.type == 2"
>
节假日
</span>
<span
*
ngIf=
"item.type == 3"
>
调休
</span>
<span
*
ngIf=
"item.type == 4"
>
调班
</span>
<span
*
ngIf=
"item.dayType == 1"
>
工作日
</span>
<span
*
ngIf=
"item.dayType == 2"
>
节假日
</span>
<span
*
ngIf=
"item.dayType == 3"
>
调休
</span>
<span
*
ngIf=
"item.dayType == 4"
>
调班
</span>
<span
*
ngIf=
"item.dayType == 5"
>
周末
</span>
</span>
<span
class=
"span-btn"
float-right
(
click
)="
dutyDetail
(
item
)"
*
ngIf=
"item.applyId"
>
查看详情
</span>
...
...
src/pages/mine/my-duty/my-duty.ts
View file @
4bf815e1
...
...
@@ -46,6 +46,12 @@ export class MyDutyPage {
//提交申请
dutyApply
(
item
){
let
nowTime
=
new
Date
().
getTime
();
if
(
nowTime
>
item
.
dutyDate
){
this
.
appService
.
popToastView
(
'该条值班已过期'
,
'middle'
,
1500
);
return
false
;
}
this
.
navCtrl
.
push
(
'DutyApplyPage'
,{
id
:
item
.
id
,
date
:
item
.
dutyDate
...
...
src/pages/mine/mySurvey/survey-write/survey-write.html
View file @
4bf815e1
...
...
@@ -73,13 +73,13 @@
</ion-item>
</div>
</ion-list>
<
!--<p class="text-center">--
>
<
!--<label>--
>
<
!--<input type="checkbox" [(ngModel)]="isans">--
>
<
!--<span class="input-check"></span>--
>
<
!--<span>匿名回答</span>--
>
<
!--</label>--
>
<
!--</p>--
>
<
p
class=
"text-center"
>
<
label
>
<
input
type=
"checkbox"
[(
ngModel
)]="
isans
"
>
<
span
class=
"input-check"
></span
>
<
span>
匿名回答
</span
>
<
/label
>
<
/p
>
<button
class=
"submit-btn submit"
(
click
)="
confirm
()"
>
提交
</button>
</ion-content>
src/pages/surveyManage/item/desicr/desicr.html
View file @
4bf815e1
...
...
@@ -16,7 +16,9 @@
</ion-item>
<ion-item>
<span><span
class=
"color-red"
>
*
</span>
参与用户组
</span>
<span
(
click
)="
selectPerson
()"
class=
"color-666"
style=
"font-size: 1.5rem"
float-right
>
{{groupName}}
<ion-icon
style=
"vertical-align: text-bottom;margin-left: 4px;"
ios=
"ios-arrow-forward"
md=
"md-arrow-forward"
></ion-icon>
</span>
<span
(
click
)="
selectPerson
()"
class=
"color-666"
style=
"font-size: 1.5rem"
float-right
>
{{groupName}}
<ion-icon
style=
"vertical-align: text-bottom;margin-left: 4px;"
ios=
"ios-arrow-forward"
md=
"md-arrow-forward"
></ion-icon>
</span>
</ion-item>
<ion-item>
<ion-label
stacked
>
问卷说明
</ion-label>
...
...
@@ -25,12 +27,12 @@
<ion-item>
<ion-label>
问卷结果公开
</ion-label>
<ion-toggle
disabled
[
checked
]="
true
"
></ion-toggle>
<ion-toggle
[(
ngModel
)]="
isopen
"
></ion-toggle>
</ion-item>
<ion-item>
<ion-label>
匿名回答
</ion-label>
<ion-toggle
[(
ngModel
)]="
isans
"
></ion-toggle>
</ion-item>
<!--<ion-item>-->
<!--<ion-label>匿名回答</ion-label>-->
<!--<ion-toggle [(ngModel)]="isans"></ion-toggle>-->
<!--</ion-item>-->
</ion-list>
<button
*
ngIf=
"id"
class=
"submit-btn submit"
(
click
)="
submitEdit
()"
>
保存
</button>
...
...
src/pages/surveyManage/item/desicr/desicr.ts
View file @
4bf815e1
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
IonicPage
,
ModalController
,
NavController
,
NavParams
,
ToastController
}
from
'ionic-angular'
;
import
{
EditPage
}
from
"../edit/edit"
;
import
{
PersonPage
}
from
"../../modal/person/person"
;
import
{
AppService
}
from
"../../../../service/appHttpService"
;
import
{
AppService
}
from
"../../../../service/appHttpService"
;
import
{
message
}
from
"../../../../app/main"
;
...
...
@@ -15,61 +15,70 @@ export class DesicrPage {
id
;
isans
=
null
;
//匿名
isopen
;
//公开
desrc
=
{
title
:
''
,
//问卷标题
explai
:
''
,
//问卷说明
usergroup
:
null
,
//用户组id
isopen
:
1
,
//是否公开
isans
:
1
,
//是否匿名
state
:
1
//状态
title
:
''
,
//问卷标题
explai
:
''
,
//问卷说明
usergroup
:
null
,
//用户组id
isopen
:
1
,
//是否公开
isans
:
1
,
//是否匿名
state
:
1
//状态
};
groupName
=
'全体用户'
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
modalCtrl
:
ModalController
,
public
appService
:
AppService
,
public
modalCtrl
:
ModalController
,
public
appService
:
AppService
,
public
toastCtrl
:
ToastController
)
{
}
ionViewDidLoad
()
{
if
(
this
.
navParams
.
get
(
'id'
))
{
if
(
this
.
navParams
.
get
(
'id'
))
{
this
.
id
=
this
.
navParams
.
get
(
'id'
);
this
.
getDetail
();
}
}
//新建
submitOrder
(){
submitOrder
()
{
const
toast
=
this
.
toastCtrl
.
create
(
message
);
if
(
!
this
.
desrc
.
title
)
{
if
(
!
this
.
desrc
.
title
)
{
toast
.
setMessage
(
'请填写标题'
);
toast
.
present
();
return
false
}
if
(
this
.
desrc
.
usergroup
==
null
)
{
if
(
this
.
desrc
.
usergroup
==
null
)
{
this
.
desrc
.
usergroup
=
'all'
;
}
if
(
this
.
desrc
.
isopen
)
{
if
(
this
.
desrc
.
isopen
)
{
this
.
desrc
.
isopen
=
1
;
}
else
{
}
else
{
this
.
desrc
.
isopen
=
0
;
}
this
.
appService
.
ObserverHttpPost
(
'/wisdomgroup/modules/question/create'
,
this
.
desrc
)
this
.
appService
.
ObserverHttpPost
(
'/wisdomgroup/modules/question/create'
,
this
.
desrc
)
.
subscribe
(
(
res
)
=>
{
if
(
res
)
{
(
res
)
=>
{
if
(
res
)
{
toast
.
setMessage
(
'创建成功'
);
toast
.
present
();
this
.
navCtrl
.
push
(
'EditPage'
,
{
temp
:
res
.
json
()});
this
.
navCtrl
.
push
(
'EditPage'
,
{
temp
:
res
.
json
()});
}
}
)
}
//编辑
submitEdit
(){
if
(
this
.
desrc
.
isopen
){
submitEdit
()
{
//是否匿名
if
(
this
.
isans
==
true
||
this
.
isans
==
1
)
{
this
.
desrc
.
isans
=
1
;
}
else
{
this
.
desrc
.
isans
=
2
;
}
//是否公开问卷结果
if
(
this
.
isopen
==
true
||
this
.
isopen
==
1
)
{
this
.
desrc
.
isopen
=
1
;
}
else
{
}
else
{
this
.
desrc
.
isopen
=
0
;
}
const
data
=
{
...
...
@@ -90,13 +99,13 @@ export class DesicrPage {
})
}
selectPerson
(){
selectPerson
()
{
let
modal
=
this
.
modalCtrl
.
create
(
PersonPage
);
modal
.
onDidDismiss
(
data
=>
{
if
(
data
)
{
modal
.
onDidDismiss
(
data
=>
{
if
(
data
)
{
this
.
desrc
.
usergroup
=
data
.
id
;
this
.
groupName
=
data
.
groupName
;
}
else
{
}
else
{
this
.
desrc
.
usergroup
=
'all'
;
this
.
groupName
=
'全体用户'
;
}
...
...
@@ -105,9 +114,19 @@ export class DesicrPage {
modal
.
present
();
}
getDetail
(){
getDetail
()
{
this
.
appService
.
ObserverHttpPostAdd
(
'/wisdomgroup/modules/question/edit/'
,
this
.
id
).
subscribe
((
res
)
=>
{
this
.
desrc
=
res
.
json
().
data
;
if
(
this
.
desrc
.
isans
==
1
)
{
this
.
isans
=
true
;
}
else
{
this
.
isans
=
false
;
}
if
(
this
.
desrc
.
isopen
==
1
)
{
this
.
isopen
=
true
;
}
else
{
this
.
isopen
=
false
;
}
});
}
...
...
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