刘翔宇-旅管家 3 years ago
parent 31648dabd9
commit 0449cc7dd6

@ -739,9 +739,14 @@
_that.util.toast("导入失败,原因‘" + err.errmsg + "’请查看批量导入说明");
} else {
var jsonlist = JSON.parse(res.data);
_that.form.total=jsonlist.length;
console.log(res.data);
var jsonlist = JSON.parse(res.data);
console.log(jsonlist);
_that.form.total = jsonlist.length||6;
for (var m of jsonlist) {
console.log("m",m);
_that.form.details_list.push({
name: m.name,
idcard: m.idcard,
@ -1013,15 +1018,15 @@
mod.checked = true;
that.currentTime = that.bcurrentTime;
}
} else {
mod.endtime = that.currentDate.date + " " + mod.end_time;
var isCanbook = that.$moment(nt).isBefore(mod.endtime);
mod.isCanbook = isCanbook;
if (!isDefault && mod.remain_count > 0 && isCanbook) {
isDefault = true;
mod.checked = true;
that.currentTime = mod;
} else {
mod.endtime = that.currentDate.date + " " + mod.end_time;
var isCanbook = that.$moment(nt).isBefore(mod.endtime);
mod.isCanbook = isCanbook;
if (!isDefault && mod.remain_count > 0 && isCanbook) {
isDefault = true;
mod.checked = true;
that.currentTime = mod;
}
}

@ -1,6 +1,6 @@
import md5 from "./md5.min";
const HOSTARR = {
'development': 'http://dangxingjiaoyujidi.langye.net',
'development': 'https://leyiyuyue.szgmbwg.org.cn',
'production': 'https://leyiyuyue.szgmbwg.org.cn'
}; // 审核状态

Loading…
Cancel
Save