Commit 10134421 authored by wangqinghua's avatar wangqinghua

api update

parent 92cad372
...@@ -17,7 +17,7 @@ export class HairApplyPage { ...@@ -17,7 +17,7 @@ export class HairApplyPage {
appointmentDate: '', appointmentDate: '',
service: '', service: '',
remark: '', remark: '',
startEnd:null, startEnd: null,
serviceStr: [], serviceStr: [],
timeText: '请选择' timeText: '请选择'
}; };
...@@ -28,12 +28,11 @@ export class HairApplyPage { ...@@ -28,12 +28,11 @@ export class HairApplyPage {
serviceStr: false, serviceStr: false,
}; };
leaderList = [];
serviceList = [ serviceList = [
{id:'1',name:'理发'}, {id: '1', name: '理发'},
{id:'2',name:'剪发'}, {id: '2', name: '剪发'},
{id:'3',name:'烫发'}, {id: '3', name: '烫发'},
{id:'4',name:'染发'} {id: '4', name: '染发'}
]; ];
applyId; //是否编辑 applyId; //是否编辑
...@@ -50,26 +49,15 @@ export class HairApplyPage { ...@@ -50,26 +49,15 @@ export class HairApplyPage {
} }
} }
//会议详情 //申请详情
meetDetail() { meetDetail() {
this.serveSer.meetDetail(this.applyId).subscribe( this.serveSer.hairApplyDetail(this.applyId).subscribe(
(res) => { (res) => {
if (res) { if (res) {
// this.personList = res.participants.map(e => { this.obj.appointmentDate = res.data.appointmentDate;
// const m = { this.obj.serviceStr = res.data.service.split(',');
// id: e.userId, this.obj.startEnd = res.data.startEnd;
// userName: e.userName this.obj.remark = res.data.remark;
// };
// return m;
// });
// this.obj.orgLeader = res.leaders;
// this.obj.meetingType = res.meetingType;
// this.obj.startTime = this.datePipe.transform(res.startTime, 'yyyy-MM-dd HH:mm');
// this.obj.remark = res.remark;
// this.obj.equipmervice = res.equipmervice.split(',');
// this.obj.participantAmount = res.participantAmount;
// this.obj.orgId = res.orgId;
// this.obj.roomId = res.roomId;
} }
} }
) )
......
...@@ -106,12 +106,12 @@ export class HairCutPage { ...@@ -106,12 +106,12 @@ export class HairCutPage {
//编辑申请 //编辑申请
goApplyEdit(item) { goApplyEdit(item) {
this.navCtrl.push(RoomApplyPage, {id: item.applyId}); this.navCtrl.push(HairApplyPage, {id: item.id});
} }
//新增申请 //新增申请
goApply() { goApply() {
this.navCtrl.push(RoomApplyPage); this.navCtrl.push(HairApplyPage);
} }
} }
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