Commit d16ab6c0 authored by wangqinghua's avatar wangqinghua

color

parent df28186c
...@@ -67,7 +67,6 @@ export class OutGoingReportEditPage { ...@@ -67,7 +67,6 @@ export class OutGoingReportEditPage {
//报备列表页面 到 个人报备1页面 //报备列表页面 到 个人报备1页面
this.storage.get("premanager").then((value) => { this.storage.get("premanager").then((value) => {
console.log(value);
if (value != null && value != '') { if (value != null && value != '') {
this.premanager = value; this.premanager = value;
//加载报备的图片 //加载报备的图片
...@@ -77,10 +76,11 @@ export class OutGoingReportEditPage { ...@@ -77,10 +76,11 @@ export class OutGoingReportEditPage {
this.userpre.managerId = this.premanager["id"]; //1.保存-报备id this.userpre.managerId = this.premanager["id"]; //1.保存-报备id
this.temp_endTime = this.premanager["endTime"]; //报备截止时间 this.temp_endTime = this.premanager["endTime"]; //报备截止时间
if (this.premanager["reported"]) { //已报备--修改操作, // if (this.premanager["reported"]) { //已报备--修改操作,
//编辑初始化:查询 //编辑初始化:查询
this.appService.ObserverHttpPost("/wisdomgroup/modules/userpre/getUserpre", {premanagerId: value.id}) this.appService.ObserverHttpPost("/wisdomgroup/modules/userpre/getUserpre", {premanagerId: value.id})
.subscribe((res: Response) => { .subscribe((res: Response) => {
if(res){
let result = res.json(); let result = res.json();
this.userpre.id = result["id"]; //保存-id this.userpre.id = result["id"]; //保存-id
//离沪勾选 //离沪勾选
...@@ -109,11 +109,12 @@ export class OutGoingReportEditPage { ...@@ -109,11 +109,12 @@ export class OutGoingReportEditPage {
//页面显示 时间差 //页面显示 时间差
this.dategap = this.userpre.leaveTime + "~" + this.userpre.backTime; //回显时间差 this.dategap = this.userpre.leaveTime + "~" + this.userpre.backTime; //回显时间差
} }
}
}, error => { }, error => {
this.appService.alert('网络异常!'); this.appService.alert('网络异常!');
} }
); );
} // }
} }
}); });
this.storage.get("person").then((value)=>{ this.storage.get("person").then((value)=>{
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<div class="cover"> <div class="cover">
<p class="survey-title">{{temp?.title}}</p> <p class="survey-title">{{temp?.title}}</p>
<div class="footter-opr"> <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)="look()"><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>
......
...@@ -4,6 +4,7 @@ import {ResultPage} from "../result/result"; ...@@ -4,6 +4,7 @@ import {ResultPage} from "../result/result";
import {DesicrPage} from "../item/desicr/desicr"; import {DesicrPage} from "../item/desicr/desicr";
import {AppService} from "../../../service/appHttpService"; import {AppService} from "../../../service/appHttpService";
import {EditPage} from "../item/edit/edit"; import {EditPage} from "../item/edit/edit";
import {DetailPage} from "../item/detail/detail";
declare var Swiper; declare var Swiper;
...@@ -104,12 +105,18 @@ export class ListPage { ...@@ -104,12 +105,18 @@ export class ListPage {
this.navCtrl.push('DesicrPage'); this.navCtrl.push('DesicrPage');
} }
//查看 //编辑
look() { edit() {
this.showOp = false; this.showOp = false;
this.navCtrl.push('EditPage', {temp: this.temp}); this.navCtrl.push('EditPage', {temp: this.temp});
} }
//查看
look(){
this.showOp = false;
this.navCtrl.push('DetailPage',{temp:this.temp});
}
//设为过期 //设为过期
overDue() { overDue() {
this.appService.alert('确定将该问卷设为过期吗',(res)=>{ this.appService.alert('确定将该问卷设为过期吗',(res)=>{
......
...@@ -97,10 +97,7 @@ export class HomePage { ...@@ -97,10 +97,7 @@ export class HomePage {
} }
ionViewDidEnter() { ionViewDidEnter() {
if (this.slides) {
this.slides.startAutoplay();
this.slides.autoplayDisableOnInteraction = false;
}
//获取权限 //获取权限
this.getRole(); this.getRole();
//获取消息数量 //获取消息数量
...@@ -207,7 +204,7 @@ export class HomePage { ...@@ -207,7 +204,7 @@ export class HomePage {
.toPromise() .toPromise()
.then(res => { .then(res => {
let activity = res.json(); let activity = res.json();
this.navCtrl.push('ActivityDetailPage',{id:activity.id}); this.navCtrl.push('ActivityDetailPage', {id: activity.id});
}) })
.catch(error => { .catch(error => {
}); });
...@@ -216,15 +213,12 @@ export class HomePage { ...@@ -216,15 +213,12 @@ export class HomePage {
//获取报备 //获取报备
getPremanager(id) { getPremanager(id) {
this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/findById", {id: id}) this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/findById", {id: id}).
.toPromise() subscribe((res) => {
.then(res => { let premanager = res.json();
let premanager = res.json(); this.storage.set("premanager", premanager);
this.storage.set("premanager", premanager); this.navCtrl.push("OutGoingReportEditPage");
this.navCtrl.push("OutGoingReportEditPage"); })
})
.catch(error => {
});
} }
...@@ -314,7 +308,7 @@ export class HomePage { ...@@ -314,7 +308,7 @@ export class HomePage {
} }
//获取是否有新消息 //获取是否有新消息
getHasNewMessage(){ getHasNewMessage() {
this.appService.ObserverHttpGet("/wisdomgroup/modules/message/hasNewMessage", null) this.appService.ObserverHttpGet("/wisdomgroup/modules/message/hasNewMessage", null)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment