Commit 10134421 authored by wangqinghua's avatar wangqinghua

api update

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