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
3419cc59
Commit
3419cc59
authored
Oct 18, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
d4bcbf04
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
105 additions
and
111 deletions
+105
-111
ionic.config.json
ionic.config.json
+2
-1
block-list.html
src/pages/contact/block-list/block-list.html
+1
-0
block-list.scss
src/pages/contact/block-list/block-list.scss
+1
-0
contactList.html
src/pages/contact/contactList/contactList.html
+1
-0
contactList.scss
src/pages/contact/contactList/contactList.scss
+1
-0
person-list.scss
src/pages/contact/person-list/person-list.scss
+1
-0
search.html
src/pages/contact/search/search.html
+1
-0
search.scss
src/pages/contact/search/search.scss
+1
-1
search.ts
src/pages/contact/search/search.ts
+5
-1
select-relay-person.scss
...s/manageDuty/select-relay-person/select-relay-person.scss
+1
-1
myReport.ts
src/pages/mine/myReport/myReport.ts
+78
-101
my-survey.scss
src/pages/mine/mySurvey/my-survey/my-survey.scss
+1
-1
survery.html
src/pages/mine/mySurvey/survery/survery.html
+1
-1
edit.ts
src/pages/surveyManage/item/edit/edit.ts
+4
-1
list.html
src/pages/surveyManage/list/list.html
+1
-0
list.ts
src/pages/surveyManage/list/list.ts
+3
-3
version.ts
src/pages/version/version.ts
+2
-0
No files found.
ionic.config.json
View file @
3419cc59
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"proxies"
:
[
"proxies"
:
[
{
{
"path"
:
"/wisdomgroup"
,
"path"
:
"/wisdomgroup"
,
"proxyUrl"
:
"http://1
80.168.156.212:2931
/wisdomgroup"
"proxyUrl"
:
"http://1
0.10.200.38:8080
/wisdomgroup"
}
}
]
]
}
}
\ No newline at end of file
src/pages/contact/block-list/block-list.html
View file @
3419cc59
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<div
class=
"contact-organization"
>
{{contactPerson.orgName}}
</div>
<div
class=
"contact-organization"
>
{{contactPerson.orgName}}
</div>
<div>
<div>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
<span
class=
"contact-telphone"
>
座机:{{contactPerson.telephone}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/pages/contact/block-list/block-list.scss
View file @
3419cc59
...
@@ -121,6 +121,7 @@ page-block-list {
...
@@ -121,6 +121,7 @@ page-block-list {
.contact-handphone
{
.contact-handphone
{
color
:
#808080
;
color
:
#808080
;
font-size
:
12px
;
font-size
:
12px
;
margin-right
:
10px
;
}
}
.back-btn
{
.back-btn
{
...
...
src/pages/contact/contactList/contactList.html
View file @
3419cc59
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
<div>
<div>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
<span
class=
"contact-telphone"
>
座机:{{contactPerson.telephone}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/pages/contact/contactList/contactList.scss
View file @
3419cc59
...
@@ -65,6 +65,7 @@ page-contactList {
...
@@ -65,6 +65,7 @@ page-contactList {
.contact-handphone
{
.contact-handphone
{
color
:
#808080
;
color
:
#808080
;
font-size
:
12px
;
font-size
:
12px
;
margin-right
:
10px
;
}
}
.back-btn
{
.back-btn
{
...
...
src/pages/contact/person-list/person-list.scss
View file @
3419cc59
...
@@ -65,6 +65,7 @@ page-person-list {
...
@@ -65,6 +65,7 @@ page-person-list {
.contact-handphone
{
.contact-handphone
{
color
:
#808080
;
color
:
#808080
;
font-size
:
12px
;
font-size
:
12px
;
margin-right
:
10px
;
}
}
.back-btn
{
.back-btn
{
...
...
src/pages/contact/search/search.html
View file @
3419cc59
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
<div
class=
"contact-organization"
>
{{contactPerson.orgName}}
</div>
<div
class=
"contact-organization"
>
{{contactPerson.orgName}}
</div>
<div>
<div>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
<span
class=
"contact-telphone"
>
座机:{{contactPerson.telephone}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/pages/contact/search/search.scss
View file @
3419cc59
...
@@ -112,7 +112,7 @@ page-search {
...
@@ -112,7 +112,7 @@ page-search {
.contact-handphone
{
.contact-handphone
{
color
:
#808080
;
color
:
#808080
;
font-size
:
12px
;
font-size
:
12px
;
margin-right
:
10px
;
}
}
.back-btn
{
.back-btn
{
...
...
src/pages/contact/search/search.ts
View file @
3419cc59
...
@@ -11,7 +11,7 @@ import {AppGlobal, AppService} from '../../../service/appHttpService';
...
@@ -11,7 +11,7 @@ import {AppGlobal, AppService} from '../../../service/appHttpService';
export
class
SearchPage
{
export
class
SearchPage
{
searchValue
:
string
;
searchValue
=
''
;
picture
:
string
=
AppGlobal
.
picture
;
picture
:
string
=
AppGlobal
.
picture
;
contactPersons
:
Array
<
string
>
[];
contactPersons
:
Array
<
string
>
[];
...
@@ -32,6 +32,10 @@ export class SearchPage {
...
@@ -32,6 +32,10 @@ export class SearchPage {
}
}
ionViewDidLoad
(){
this
.
searchUser
();
}
clearValue
()
{
clearValue
()
{
this
.
searchValue
=
""
;
this
.
searchValue
=
""
;
}
}
...
...
src/pages/manageDuty/select-relay-person/select-relay-person.scss
View file @
3419cc59
...
@@ -65,7 +65,7 @@ page-select-relay-person {
...
@@ -65,7 +65,7 @@ page-select-relay-person {
.contact-handphone
{
.contact-handphone
{
color
:
#666666
;
color
:
#666666
;
font-size
:
1
.5rem
;
font-size
:
1
.5rem
;
margin-left
:
7
px
;
margin-left
:
10
px
;
}
}
.back-btn
{
.back-btn
{
...
...
src/pages/mine/myReport/myReport.ts
View file @
3419cc59
import
{
Component
,
ViewChild
}
from
'@angular/core'
;
import
{
Component
,
ViewChild
}
from
'@angular/core'
;
import
{
IonicPage
,
NavController
,
NavParams
,
Slides
}
from
'ionic-angular'
;
import
{
IonicPage
,
NavController
,
NavParams
,
Slides
}
from
'ionic-angular'
;
import
{
Response
}
from
'@angular/http'
;
import
{
Response
}
from
'@angular/http'
;
import
{
AppService
}
from
'../../../service/appHttpService'
;
import
{
AppService
}
from
'../../../service/appHttpService'
;
import
{
OutGoingReportEditPage
}
from
'../../report/outGoingReportEdit/outGoingReportEdit'
;
import
{
OutGoingReportEditPage
}
from
'../../report/outGoingReportEdit/outGoingReportEdit'
;
import
{
ActivityStatisticService
}
from
'../../../service/activityStatisticService'
;
import
{
ActivityStatisticService
}
from
'../../../service/activityStatisticService'
;
import
{
OutGoingReportViewPage
}
from
'../../report/outGoingReportView/outGoingReportView'
;
import
{
OutGoingReportViewPage
}
from
'../../report/outGoingReportView/outGoingReportView'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
MinePage
}
from
"../../tabs/mine/mine"
;
import
{
MinePage
}
from
"../../tabs/mine/mine"
;
declare
var
Swiper
;
declare
var
Swiper
;
@
IonicPage
()
@
IonicPage
()
@
Component
({
@
Component
({
selector
:
'page-myReport'
,
selector
:
'page-myReport'
,
templateUrl
:
'myReport.html'
,
templateUrl
:
'myReport.html'
,
})
})
export
class
MyReportPage
{
export
class
MyReportPage
{
swiperIndex
=
0
;
swiperIndex
=
0
;
swiper
:
any
;
swiper
:
any
;
allReport
=
[];
allReport
=
[];
processingReport
:
Array
<
any
>
=
[];
processingReport
:
Array
<
any
>
=
[];
endReport
:
Array
<
any
>
=
[];
endReport
:
Array
<
any
>
=
[];
//ViewChild传入一个字符串contentSlides,变量contentSlides接收。其它不变
//ViewChild传入一个字符串contentSlides,变量contentSlides接收。其它不变
@
ViewChild
(
'contentSlides'
)
contentSlides
:
Slides
;
@
ViewChild
(
'contentSlides'
)
contentSlides
:
Slides
;
menus
:
Array
<
string
>
=
[
'全部报备'
,
'报备中'
,
'已结束'
];
menus
:
Array
<
string
>
=
[
'全部报备'
,
'报备中'
,
'已结束'
];
constructor
(
constructor
(
public
navCtrl
:
NavController
,
public
navCtrl
:
NavController
,
public
appService
:
AppService
,
public
appService
:
AppService
,
public
activityStatisticService
:
ActivityStatisticService
,
public
activityStatisticService
:
ActivityStatisticService
,
public
storage
:
Storage
)
{
public
storage
:
Storage
)
{
console
.
log
(
this
.
navCtrl
);
}
console
.
log
(
this
.
navCtrl
);
}
//初始化加载我的报备
ngOnInit
():
void
{
//初始化加载我的报备
this
.
getAllMyReport
();
ngOnInit
():
void
{
}
this
.
getAllMyReport
();
}
//当页面加载的时候触发,只触发一次,当有缓存的的时候,打开页面时不在加载
ionViewDidLoad
()
{
//当页面加载的时候触发,只触发一次,当有缓存的的时候,打开页面时不在加载
ionViewDidLoad
()
{
}
//选择菜单
selectPageMenu
(
index
)
{
this
.
swiperIndex
=
index
;
//切换页面
// this.contentSlides.slideTo(index);
}
//选择菜单之后设置菜单样式
setStyle
(
index
)
{
//得到菜单的个数
var
slides
=
document
.
getElementsByClassName
(
'pageMenuSlides'
)[
0
].
getElementsByClassName
(
'swiper-slide'
);
//给所有的菜单都设置上swiper-slide样式
if
(
index
<
slides
.
length
)
{
for
(
var
i
=
0
;
i
<
slides
.
length
;
i
++
)
{
var
s
=
slides
[
i
];
s
.
className
=
"swiper-slide"
;
}
//给当前菜单设置成这个样式
slides
[
index
].
className
=
"swiper-slide bottomLine"
;
}
}
}
//选择菜单
slideChanged
()
{
selectPageMenu
(
index
)
{
//getActiveIndex()获得当前页面的index
this
.
swiperIndex
=
index
;
let
index
=
this
.
contentSlides
.
getActiveIndex
();
//切换页面
this
.
setStyle
(
index
);
// this.contentSlides.slideTo(index);
//s切换菜单
}
this
.
swiper
.
slideTo
(
index
,
300
);
//获取所有我的报备
}
getAllMyReport
()
{
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/premanager/getPremanagerByUser"
,
null
)
//获取所有我的报备
.
subscribe
((
res
:
Response
)
=>
{
getAllMyReport
()
{
let
data
=
res
.
json
();
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/premanager/getPremanagerByUser"
,
null
)
this
.
allReport
=
data
;
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
this
.
allReport
.
forEach
(
element
=>
{
this
.
allReport
=
data
;
if
(
!
element
[
"isOverTimeFlag"
])
{
//报备中
this
.
processingReport
.
push
(
element
);
this
.
allReport
.
forEach
(
element
=>
{
}
else
{
if
(
!
element
[
"isOverTimeFlag"
])
{
//报备中
this
.
endReport
.
push
(
element
);
//已结束
this
.
processingReport
.
push
(
element
);
}
}
else
{
});
this
.
endReport
.
push
(
element
);
//已结束
},
error
=>
{
}
this
.
appService
.
alert
(
'网络异常!'
);
});
}
},
error
=>
{
);
this
.
appService
.
alert
(
'网络异常!'
);
}
//跳转到报备页面
goReport
(
report
)
{
if
(
report
.
isOverTimeFlag
)
{
return
false
;
}
}
);
this
.
storage
.
set
(
"premanager"
,
report
);
}
this
.
navCtrl
.
push
(
"OutGoingReportEditPage"
);
}
//跳转到报备查看详情页面
goDetail
(
report
)
{
this
.
navCtrl
.
push
(
"OutGoingReportViewPage"
,
{
premanager
:
report
});
}
//跳转到报备页面
goBack
()
{
goReport
(
report
){
this
.
navCtrl
.
popToRoot
();
if
(
report
.
isOverTimeFlag
){
return
false
;
}
}
this
.
storage
.
set
(
"premanager"
,
report
);
this
.
navCtrl
.
push
(
"OutGoingReportEditPage"
);
}
//跳转到报备查看详情页面
goDetail
(
report
){
this
.
navCtrl
.
push
(
"OutGoingReportViewPage"
,{
premanager
:
report
});
}
goBack
(){
this
.
navCtrl
.
popToRoot
();
}
}
}
src/pages/mine/mySurvey/my-survey/my-survey.scss
View file @
3419cc59
...
@@ -22,7 +22,7 @@ page-my-survey {
...
@@ -22,7 +22,7 @@ page-my-survey {
.going
{
.going
{
color
:
#fcb164
;
color
:
#fcb164
;
font-size
:
1
.4rem
;
font-size
:
1
.4rem
;
border
:
1px
solid
#
34b4fc
;
border
:
1px
solid
#
fcb164
;
padding
:
1px
8px
;
padding
:
1px
8px
;
border-radius
:
2px
;
border-radius
:
2px
;
}
}
...
...
src/pages/mine/mySurvey/survery/survery.html
View file @
3419cc59
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<div
class=
"item-header padding-15-0"
>
<div
class=
"item-header padding-15-0"
>
<div
class=
"item-header-style"
>
<div
class=
"item-header-style"
>
<span
class=
"item-title"
>
{{item.title}}
</span>
<span
class=
"item-title"
>
{{item.title}}
</span>
<span
float-right
class=
"
done"
>
未完成
</span>
<span
float-right
class=
"
going"
>
未作答
</span>
</div>
</div>
</div>
</div>
<div
class=
"content-button padding-15-0"
>
<div
class=
"content-button padding-15-0"
>
...
...
src/pages/surveyManage/item/edit/edit.ts
View file @
3419cc59
...
@@ -31,8 +31,11 @@ export class EditPage {
...
@@ -31,8 +31,11 @@ export class EditPage {
public
toastCtrl
:
ToastController
,
public
alertCtrl
:
AlertController
)
{
public
toastCtrl
:
ToastController
,
public
alertCtrl
:
AlertController
)
{
}
}
ionViewDid
Enter
()
{
ionViewDid
Load
()
{
this
.
tempId
=
this
.
navParams
.
get
(
'temp'
).
id
;
this
.
tempId
=
this
.
navParams
.
get
(
'temp'
).
id
;
}
ionViewDidEnter
()
{
this
.
getDetail
();
this
.
getDetail
();
const
length
=
this
.
navCtrl
.
length
();
const
length
=
this
.
navCtrl
.
length
();
if
(
length
>
5
)
{
if
(
length
>
5
)
{
...
...
src/pages/surveyManage/list/list.html
View file @
3419cc59
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
<div
class=
"footter-opr"
>
<div
class=
"footter-opr"
>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
edit
()"
><span>
编辑
</span></div>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
edit
()"
><span>
编辑
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
edit
()"
><span>
查看
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
edit
()"
><span>
查看
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
cancel
()"
><span>
取消发布
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
overDue
()"
><span>
设为过期
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
overDue
()"
><span>
设为过期
</span></div>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
release
()"
><span>
发布
</span></div>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
release
()"
><span>
发布
</span></div>
<div
*
ngIf=
"swiperIndex == 1 || swiperIndex == 2"
(
click
)="
result
()"
><span>
结果
</span></div>
<div
*
ngIf=
"swiperIndex == 1 || swiperIndex == 2"
(
click
)="
result
()"
><span>
结果
</span></div>
...
...
src/pages/surveyManage/list/list.ts
View file @
3419cc59
...
@@ -145,11 +145,11 @@ export class ListPage {
...
@@ -145,11 +145,11 @@ export class ListPage {
cancel
(){
cancel
(){
// 0 清除 1 不清除
// 0 清除 1 不清除
const
data
=
{
const
data
=
{
'isdelete'
:
'
0
'
'isdelete'
:
'
1
'
}
}
;
this
.
appService
.
alert
(
'确定取消发布该问卷吗'
,
this
.
appService
.
alert
(
'确定取消发布该问卷吗'
,
(
res
)
=>
{
(
res
)
=>
{
this
.
appService
.
ObserverHttp
GetAdd
(
'/wisdomgroup/modules/question/cancel/'
,
this
.
temp
.
id
)
this
.
appService
.
ObserverHttp
Form
(
'/wisdomgroup/modules/question/cancel/'
,
this
.
temp
.
id
,
data
)
.
subscribe
((
res
)
=>
{
.
subscribe
((
res
)
=>
{
this
.
appService
.
popToastView
(
'取消发布成功'
,
'middle'
,
1000
);
this
.
appService
.
popToastView
(
'取消发布成功'
,
'middle'
,
1000
);
this
.
selectPageMenu
(
this
.
swiperIndex
);
this
.
selectPageMenu
(
this
.
swiperIndex
);
...
...
src/pages/version/version.ts
View file @
3419cc59
...
@@ -5,6 +5,7 @@ import { AppVersion } from '@ionic-native/app-version';
...
@@ -5,6 +5,7 @@ import { AppVersion } from '@ionic-native/app-version';
import
{
AppUpdateService
}
from
'../../service/appUpdateService'
;
import
{
AppUpdateService
}
from
'../../service/appUpdateService'
;
import
{
Storage
}
from
"@ionic/storage"
;
import
{
Storage
}
from
"@ionic/storage"
;
import
{
LoginPage
}
from
"../login/login"
;
import
{
LoginPage
}
from
"../login/login"
;
import
{
HomePage
}
from
"../tabs/home/home"
;
@
IonicPage
()
@
IonicPage
()
@
Component
({
@
Component
({
...
@@ -117,6 +118,7 @@ export class VersionPage {
...
@@ -117,6 +118,7 @@ export class VersionPage {
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/app/logout"
,
null
)
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/app/logout"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
let
data
=
res
.
json
();
this
.
navCtrl
.
setRoot
(
HomePage
);
this
.
navCtrl
.
push
(
'LoginPage'
);
this
.
navCtrl
.
push
(
'LoginPage'
);
},
error
=>
{
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
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