...
|
...
|
@@ -126,17 +126,18 @@ Page({ |
|
|
//提交
|
|
|
submit() {
|
|
|
if (this.data.is_choose_session) {
|
|
|
console.log(this.data.experiment_id, this.data.current_session_id, this.data.student_num);
|
|
|
let url = '/portal/Experiment/submit_session';
|
|
|
let header = {
|
|
|
"XX-token": wx.getStorageSync('token')
|
|
|
};
|
|
|
let params = {
|
|
|
experiment_id: this.data.experiment_id,
|
|
|
session_id: this.data.current_session_id,
|
|
|
student_num: this.data.student_num,
|
|
|
experiment_id: +this.data.experiment_id,
|
|
|
session_id: +this.data.current_session_id,
|
|
|
student_num: +this.data.student_num,
|
|
|
};
|
|
|
app.post(url, params, header).then((res) => {
|
|
|
// console.log(res);
|
|
|
console.log(res);
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/index/confirm-appointment-info/confirm-appointment-info?experiment_id=' + this.data.experiment_id
|
|
|
+ '&session_id=' + this.data.current_session_id
|
...
|
...
|
@@ -182,11 +183,11 @@ Page({ |
|
|
"XX-token": wx.getStorageSync('token')
|
|
|
};
|
|
|
app.post(url, params, header).then((res) => {
|
|
|
// console.log('实验',res.list);
|
|
|
// console.log('实验',res);
|
|
|
// console.log(res.list,res.list[0],res.list[0].lab_list,res.list[0].lab_list[0],);
|
|
|
this.setData({
|
|
|
areaTest: res.list,
|
|
|
student_num: res.student_num,
|
|
|
student_num: res.student_num == 0?1:res.student_num,
|
|
|
current_test_id: res.list.length>0 && res.list[0].lab_list && res.list[0].lab_list.length>0 ? res.list[0].lab_list[0].id:'',
|
|
|
description: res.list.length>0 && res.list[0].lab_list && res.list[0].lab_list.length>0 ? res.list[0].lab_list[0].description : '',//默认显示第一个实验室的描述
|
|
|
session_list: res.list.length>0 && res.list[0].lab_list.length>0 ? res.list[0].lab_list[0].session_list : ''//默认显示第一个实验室的实验时间
|
...
|
...
|
|