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
d16ab6c0
Commit
d16ab6c0
authored
Oct 17, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
df28186c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
17 deletions
+19
-17
outGoingReportEdit.ts
src/pages/report/outGoingReportEdit/outGoingReportEdit.ts
+4
-3
list.html
src/pages/surveyManage/list/list.html
+1
-1
list.ts
src/pages/surveyManage/list/list.ts
+9
-2
home.ts
src/pages/tabs/home/home.ts
+5
-11
No files found.
src/pages/report/outGoingReportEdit/outGoingReportEdit.ts
View file @
d16ab6c0
...
...
@@ -67,7 +67,6 @@ export class OutGoingReportEditPage {
//报备列表页面 到 个人报备1页面
this
.
storage
.
get
(
"premanager"
).
then
((
value
)
=>
{
console
.
log
(
value
);
if
(
value
!=
null
&&
value
!=
''
)
{
this
.
premanager
=
value
;
//加载报备的图片
...
...
@@ -77,10 +76,11 @@ export class OutGoingReportEditPage {
this
.
userpre
.
managerId
=
this
.
premanager
[
"id"
];
//1.保存-报备id
this
.
temp_endTime
=
this
.
premanager
[
"endTime"
];
//报备截止时间
if
(
this
.
premanager
[
"reported"
])
{
//已报备--修改操作,
//
if (this.premanager["reported"]) { //已报备--修改操作,
//编辑初始化:查询
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/userpre/getUserpre"
,
{
premanagerId
:
value
.
id
})
.
subscribe
((
res
:
Response
)
=>
{
if
(
res
){
let
result
=
res
.
json
();
this
.
userpre
.
id
=
result
[
"id"
];
//保存-id
//离沪勾选
...
...
@@ -109,11 +109,12 @@ export class OutGoingReportEditPage {
//页面显示 时间差
this
.
dategap
=
this
.
userpre
.
leaveTime
+
"~"
+
this
.
userpre
.
backTime
;
//回显时间差
}
}
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
}
//
}
}
});
this
.
storage
.
get
(
"person"
).
then
((
value
)
=>
{
...
...
src/pages/surveyManage/list/list.html
View file @
d16ab6c0
...
...
@@ -53,7 +53,7 @@
<div
class=
"cover"
>
<p
class=
"survey-title"
>
{{temp?.title}}
</p>
<div
class=
"footter-opr"
>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
look
()"
><span>
编辑
</span></div>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
edit
()"
><span>
编辑
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
look
()"
><span>
查看
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
overDue
()"
><span>
设为过期
</span></div>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
release
()"
><span>
发布
</span></div>
...
...
src/pages/surveyManage/list/list.ts
View file @
d16ab6c0
...
...
@@ -4,6 +4,7 @@ import {ResultPage} from "../result/result";
import
{
DesicrPage
}
from
"../item/desicr/desicr"
;
import
{
AppService
}
from
"../../../service/appHttpService"
;
import
{
EditPage
}
from
"../item/edit/edit"
;
import
{
DetailPage
}
from
"../item/detail/detail"
;
declare
var
Swiper
;
...
...
@@ -104,12 +105,18 @@ export class ListPage {
this
.
navCtrl
.
push
(
'DesicrPage'
);
}
//
查看
look
()
{
//
编辑
edit
()
{
this
.
showOp
=
false
;
this
.
navCtrl
.
push
(
'EditPage'
,
{
temp
:
this
.
temp
});
}
//查看
look
(){
this
.
showOp
=
false
;
this
.
navCtrl
.
push
(
'DetailPage'
,{
temp
:
this
.
temp
});
}
//设为过期
overDue
()
{
this
.
appService
.
alert
(
'确定将该问卷设为过期吗'
,(
res
)
=>
{
...
...
src/pages/tabs/home/home.ts
View file @
d16ab6c0
...
...
@@ -97,10 +97,7 @@ export class HomePage {
}
ionViewDidEnter
()
{
if
(
this
.
slides
)
{
this
.
slides
.
startAutoplay
();
this
.
slides
.
autoplayDisableOnInteraction
=
false
;
}
//获取权限
this
.
getRole
();
//获取消息数量
...
...
@@ -207,7 +204,7 @@ export class HomePage {
.
toPromise
()
.
then
(
res
=>
{
let
activity
=
res
.
json
();
this
.
navCtrl
.
push
(
'ActivityDetailPage'
,
{
id
:
activity
.
id
});
this
.
navCtrl
.
push
(
'ActivityDetailPage'
,
{
id
:
activity
.
id
});
})
.
catch
(
error
=>
{
});
...
...
@@ -216,15 +213,12 @@ export class HomePage {
//获取报备
getPremanager
(
id
)
{
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/premanager/findById"
,
{
id
:
id
})
.
toPromise
()
.
then
(
res
=>
{
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/premanager/findById"
,
{
id
:
id
}).
subscribe
((
res
)
=>
{
let
premanager
=
res
.
json
();
this
.
storage
.
set
(
"premanager"
,
premanager
);
this
.
navCtrl
.
push
(
"OutGoingReportEditPage"
);
})
.
catch
(
error
=>
{
});
}
...
...
@@ -314,7 +308,7 @@ export class HomePage {
}
//获取是否有新消息
getHasNewMessage
(){
getHasNewMessage
()
{
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/modules/message/hasNewMessage"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
...
...
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