| xqd
@@ -109,10 +109,7 @@
|
|
|
let endtime = times[1];
|
|
|
let weekArr = this.getDateStr(startime, endtime, 0);
|
|
|
|
|
|
- let res = await this.$request.post("doctor/getLinsDetail", {
|
|
|
- 'start_date': startime,
|
|
|
- 'end_date': endtime
|
|
|
- });
|
|
|
+
|
|
|
console.log(res);
|
|
|
|
|
|
|
| xqd
@@ -142,6 +139,32 @@
|
|
|
},
|
|
|
|
|
|
|
|
|
+ getTimeList:async function(){
|
|
|
+ let res = await this.$request.post("doctor/getLinsList");
|
|
|
+ if(res.status==0){
|
|
|
+ if(res.data.service!=0){
|
|
|
+ let times = res.data.service.created_at.substring(0,10);
|
|
|
+ times = times.split('-');
|
|
|
+
|
|
|
+ this.getweek(times[0],times[1],times[2]);
|
|
|
+ }
|
|
|
+
|
|
|
+ if(res.data.list.length!=0){
|
|
|
+ let leng = this.oldlist.length;
|
|
|
+ let lists = res.data.list;
|
|
|
+ for(let i=0;i<lists.length;i++){
|
|
|
+ console.log('开始时间L',(lists[i].start_time.schedule_date).replace(/-/g,"/"))
|
|
|
+ this.oldlist.push({
|
|
|
+ label:(lists[i].start_time.schedule_date).replace(/-/g,"/") + "-" + (lists[i].end_time.schedule_date).replace(/-/g,"/"),
|
|
|
+ value: leng+1
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(res);
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
getTemplate: async function(startTime,endTime) {
|
|
|
let that = this;
|
|
|
// let startTime = '2020-' + that.hospitalWeek[0].value;
|
| xqd
@@ -393,8 +416,9 @@
|
|
|
// let startTime = '2020-' + '11-30';
|
|
|
// let endTime = '2020-' + that.hospitalWeek[6].value;
|
|
|
// let endTime = '2020-' + '12-07';
|
|
|
- this.getweek(2020,10,15);
|
|
|
+ // this.getweek(2020,10,15);
|
|
|
this.getTime();
|
|
|
+ this.getTimeList();
|
|
|
// this.getTemplate(startTime,endTime)
|
|
|
},
|
|
|
}
|