You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

473 lines
26 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-09-26 10:47
  5. * 描 述:教学调度
  6. */
  7. var acceptClick;
  8. var keyValue = request('keyValue');
  9. // 设置权限
  10. var setAuthorize;
  11. // 设置表单数据
  12. var setFormData;
  13. // 验证数据是否填写完整
  14. var validForm;
  15. // 保存数据
  16. var save;
  17. //绑定原课程安排
  18. var bindData;
  19. //绑定新课程安排
  20. var bindDataNew;
  21. var bootstrap = function ($, learun) {
  22. "use strict";
  23. // 设置权限
  24. setAuthorize = function (data) {
  25. };
  26. var page = {
  27. init: function () {
  28. $('.lr-form-wrap').lrscroll();
  29. page.bindSelect();
  30. page.bind();
  31. page.initData();
  32. },
  33. query: function () {
  34. var p = {};
  35. //p.F_SchoolId = $('#F_SchoolId').lrselectGet();
  36. p.AcademicYearNo = $('#AcademicYearNo').lrselectGet();
  37. p.Semester = $('#Semester').lrselectGet();
  38. p.DeptNo = $('#DeptNo').lrselectGet();
  39. p.MajorNo = $('#MajorNo').lrselectGet();
  40. p.LessonNo = $('#LessonNo').lrselectGet();
  41. p.TeachClassNo = $('#TeachClassNo').lrselectGet();
  42. p.EmpNo = $('#EmpNo').lrselectGet();
  43. p.ClassroomNo = $('#ClassroomNo').lrselectGet();
  44. //console.log(p);
  45. //if (!!p.F_SchoolId && !!p.AcademicYearNo && !!p.Semester && !!p.DeptNo && !!p.MajorNo && !!p.LessonNo && !!p.TeachClassNo && !!p.EmpNo && !!p.ClassroomNo) {
  46. if (!!p.AcademicYearNo && !!p.Semester && !!p.DeptNo && !!p.MajorNo && !!p.LessonNo && !!p.TeachClassNo && !!p.EmpNo && !!p.ClassroomNo) {
  47. //调度开始时间
  48. $('#AttemperStartTime').lrselectRefresh({
  49. allowSearch: true,
  50. url: top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTerm/GetLessonDateList?queryJson=' + JSON.stringify(p),
  51. value: 'value',
  52. text: 'text'
  53. });
  54. //调度结束时间
  55. $('#AttemperEndTime').lrselectRefresh({
  56. allowSearch: true,
  57. url: top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTerm/GetLessonDateList?queryJson=' + JSON.stringify(p),
  58. value: 'value',
  59. text: 'text'
  60. });
  61. }
  62. },
  63. bind: function () {
  64. $('#CreateTime')[0].lrvalue = learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss');
  65. $('#CreateTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
  66. $('#CreateUserId')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
  67. $('#CreateUserId').val(learun.clientdata.get(['userinfo']).realName);
  68. $('#CreateUserName')[0].lrvalue = learun.clientdata.get(['userinfo']).realName;
  69. //选择课程安排
  70. //$("#btn1").on('click', function () {
  71. // learun.layerForm({
  72. // id: 'IndexInEducationSelect',
  73. // title: '课程表',
  74. // url: top.$.rootUrl + '/PersonnelManagement/TimeTable/IndexInEducationSelect',
  75. // width: 1200,
  76. // height: 800,
  77. // callBack: function (id) {
  78. // return top[id].acceptClick(bindData);
  79. // }
  80. // });
  81. //});
  82. //$("#btn2").on('click', function () {
  83. // learun.layerForm({
  84. // id: 'IndexInEducationSelect',
  85. // title: '课程表',
  86. // url: top.$.rootUrl + '/PersonnelManagement/TimeTable/IndexInEducationSelect',
  87. // width: 1200,
  88. // height: 800,
  89. // callBack: function (id) {
  90. // return top[id].acceptClick(bindDataNew);
  91. // }
  92. // });
  93. //});
  94. },
  95. bindSelect: function () {
  96. $('#AttemperType').lrDataItemSelect({
  97. code: 'AttemperType', select: function (item) {
  98. $('.AttemperType').hide();
  99. $("#AttemperTimeType").removeAttr("isvalid");
  100. $("#AttemperTimeType").removeAttr("checkexpession");
  101. $("#AttemperStartTime").removeAttr("isvalid");
  102. $("#AttemperStartTime").removeAttr("checkexpession");
  103. $("#AttemperEndTime").removeAttr("isvalid");
  104. $("#AttemperEndTime").removeAttr("checkexpession");
  105. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr("isvalid");
  106. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr("checkexpession");
  107. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr('readonly');
  108. $('#NewEmpNo').siblings('div').html('教师');
  109. $('#NewClassroomNo').siblings('div').html('教室');
  110. if (item != null && item != undefined) {
  111. if (item.id === "01") { //换课
  112. $('.AttemperTypeTiao').show();
  113. $("#AttemperTimeType").attr("isvalid", "yes");
  114. $("#AttemperTimeType").attr("checkexpession", "NotNull");
  115. $("#AttemperStartTime").attr("isvalid", "yes");
  116. $("#AttemperStartTime").attr("checkexpession", "NotNull");
  117. $("#AttemperEndTime").attr("isvalid", "yes");
  118. $("#AttemperEndTime").attr("checkexpession", "NotNull");
  119. } else if (item.id === "02") { //停课
  120. } else if (item.id === "03") { //对调
  121. $('.AttemperTypeDuiDiao').show();
  122. $(".AttemperTypeDuiDiao").find('.contentDiv').attr("isvalid", "yes");
  123. $(".AttemperTypeDuiDiao").find('.contentDiv').attr("checkexpession", "NotNull");
  124. $(".AttemperTypeDuiDiao").find('.contentDiv').attr('readonly', 'readonly');
  125. $('#NewEmpNo').siblings('div').html('教师<font face="宋体">*</font>');
  126. $('#NewClassroomNo').siblings('div').html('教室<font face="宋体">*</font>');
  127. }
  128. else if (item.id === "04") { //调课
  129. $("#sourcedata").hide();
  130. $("#oldgridtable").show();
  131. $("#targetdata").hide();
  132. $("#targetgridtable").show();
  133. $(".olddata").removeAttr("isvalid");
  134. $(".olddata").removeAttr("checkexpession");
  135. $(".olddata").removeAttr('readonly');
  136. }
  137. }
  138. }
  139. });
  140. $('#AttemperTimeType').lrDataItemSelect({ code: 'AttemperTimeType' });
  141. //$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
  142. //$('#NewF_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
  143. //学年
  144. $('#AcademicYearNo').lrselect({
  145. allowSearch: true,
  146. url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
  147. value: 'value',
  148. text: 'text'
  149. });
  150. $('#NewAcademicYearNo').lrselect({
  151. allowSearch: true,
  152. url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
  153. value: 'value',
  154. text: 'text'
  155. });
  156. //学期
  157. $('#Semester').lrselect({
  158. allowSearch: true,
  159. url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData',
  160. value: 'value',
  161. text: 'text'
  162. });
  163. $('#NewSemester').lrselect({
  164. allowSearch: true,
  165. url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData',
  166. value: 'value',
  167. text: 'text'
  168. });
  169. $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
  170. $('#NewDeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
  171. $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
  172. $('#NewMajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
  173. $('#LessonNo').lrselect({
  174. allowSearch: true,
  175. url: top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTermAttemper/GetLessonDataInTerm',
  176. value: 'value',
  177. text: 'text',
  178. });
  179. $('#NewLessonNo').lrselect({
  180. allowSearch: true,
  181. url: top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTermAttemper/GetLessonDataInTerm',
  182. value: 'value',
  183. text: 'text',
  184. });
  185. $('#TeachClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
  186. $('#NewTeachClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
  187. $('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname' });
  188. $('#NewEmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname' });
  189. $('#ClassroomNo').lrDataSourceSelect({ code: 'ClassRoomInfo', value: 'classroomno', text: 'classroomname' });
  190. $('#NewClassroomNo').lrDataSourceSelect({ code: 'ClassRoomInfo', value: 'classroomno', text: 'classroomname' });
  191. },
  192. initData: function () {
  193. if (!!keyValue) {
  194. $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTermAttemper/GetFormData?keyValue=' + keyValue, function (data) {
  195. for (var id in data) {
  196. if (!!data[id].length && data[id].length > 0) {
  197. $('#' + id).jfGridSet('refreshdata', data[id]);
  198. }
  199. else {
  200. $('[data-table="' + id + '"]').lrSetFormData(data[id]);
  201. $('.AttemperType').hide();
  202. $("#AttemperTimeType").removeAttr("isvalid");
  203. $("#AttemperTimeType").removeAttr("checkexpession");
  204. $("#AttemperStartTime").removeAttr("isvalid");
  205. $("#AttemperStartTime").removeAttr("checkexpession");
  206. $("#AttemperEndTime").removeAttr("isvalid");
  207. $("#AttemperEndTime").removeAttr("checkexpession");
  208. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr("isvalid");
  209. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr("checkexpession");
  210. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr('readonly');
  211. $('#NewEmpNo').siblings('div').html('教师');
  212. $('#NewClassroomNo').siblings('div').html('教室');
  213. $('#NewEmpNo').attr('readonly', 'readonly');
  214. $('#NewClassroomNo').attr('readonly', 'readonly');
  215. if (data[id].AttemperType == "01") {
  216. $('.AttemperTypeTiao').show();
  217. $("#AttemperTimeType").attr("isvalid", "yes");
  218. $("#AttemperTimeType").attr("checkexpession", "NotNull");
  219. $("#AttemperStartTime").attr("isvalid", "yes");
  220. $("#AttemperStartTime").attr("checkexpession", "NotNull");
  221. $("#AttemperEndTime").attr("isvalid", "yes");
  222. $("#AttemperEndTime").attr("checkexpession", "NotNull");
  223. } else if (data[id].AttemperType == "02") {
  224. } else if (data[id].AttemperType == "03") {
  225. $('.AttemperTypeDuiDiao').show();
  226. $(".AttemperTypeDuiDiao").find('.contentDiv').attr("isvalid", "yes");
  227. $(".AttemperTypeDuiDiao").find('.contentDiv').attr("checkexpession", "NotNull");
  228. $(".AttemperTypeDuiDiao").find('.contentDiv').attr('readonly', 'readonly');
  229. $('#NewEmpNo').siblings('div').html('教师<font face="宋体">*</font>');
  230. $('#NewClassroomNo').siblings('div').html('教室<font face="宋体">*</font>');
  231. } else if (data[id].AttemperType == "04") {
  232. $("#sourcedata").hide();
  233. $("#oldgridtable").show();
  234. $("#targetdata").hide();
  235. $("#targetgridtable").show();
  236. $(".olddata").removeAttr("isvalid");
  237. $(".olddata").removeAttr("checkexpession");
  238. $(".olddata").removeAttr('readonly');
  239. $("#gridtable").attr("data-val", JSON.stringify(data[id].query));
  240. var html1 = "";
  241. var html2 = "";
  242. var oldtime = "";
  243. var oldjieci = [];
  244. var course = '';
  245. var teacher = '';
  246. var class_ = [];
  247. var classroom = '';
  248. var newtime = '';
  249. var newjieci = [];
  250. for (var i = 0; i < data[id].query.length; i++) {
  251. var item = data[id].query[i];
  252. var jieci1 = item.LessonTime.substring(1, item.LessonTime.length) + '节';
  253. var jieci2 = item.NewLessonTime.substring(1, item.NewLessonTime.length) + '节';
  254. if (i == 0) {
  255. oldtime = item.LessonDate.substring(0, 10);
  256. course = item.LessonName;
  257. teacher = item.EmpName;
  258. classroom = item.ClassroomName;
  259. newtime = item.NewLessonDate.substring(0, 10)
  260. }
  261. if (oldjieci.indexOf(jieci1) < 0) {
  262. oldjieci.push(jieci1)
  263. }
  264. if (class_.indexOf(item.Classname) < 0) {
  265. class_.push(item.Classname)
  266. }
  267. if (newjieci.indexOf(jieci2) < 0) {
  268. newjieci.push(jieci2)
  269. }
  270. }
  271. html1 += '日期:' + oldtime + ' <br>节次:' + oldjieci.join(';') + ' <br>课程:' + course + ' <br>教师:' + teacher + '; <br>班级:' + class_.join(';') + '<br>教室:' + classroom;
  272. html2 += '调整到:' + newtime + '的' + newjieci.join(';');
  273. //console.log(html1)
  274. $("#gridtable").html(html1);
  275. //{"targettime":"2023-6-24","targetjieci":"1节;2节;"}
  276. var target_json = { "targettime": newtime, "targetjieci": newjieci.join(';') }
  277. $('#gridtable1').attr("data-val", JSON.stringify(target_json));
  278. $("#gridtable1").html(html2)
  279. }
  280. }
  281. }
  282. });
  283. }
  284. }
  285. };
  286. bindData = function (temprow) {
  287. if (!!temprow) {
  288. if ($("#AttemperType").lrselectGet() == "04") {
  289. //console.log(temprow)
  290. var dataparams = temprow.predata;
  291. //$('#gridtable').jfGridSet('refreshdata', temprow.predata);
  292. var datahtml = temprow.predatastr;//tardata.targettime + '的' + tardata.targetjieci;
  293. $('#gridtable').html(datahtml);
  294. $('#gridtable').attr("data-val", JSON.stringify(dataparams))
  295. var tardata = (temprow.tardata);
  296. var html = '调整到:' + tardata.targettime + '的' + tardata.targetjieci;
  297. $('#gridtable1').html(html);
  298. $('#gridtable1').attr("data-val", JSON.stringify(tardata))
  299. //$('#gridtable1').jfGridSet('refreshdata', temprow.predata);
  300. //$('#gridtable').
  301. } else {
  302. //$('#F_SchoolId').lrselectSet(temprow.schooldId);
  303. $('#AcademicYearNo').lrselectSet(temprow.academicyear);
  304. $('#Semester').lrselectSet(temprow.semester);
  305. $('#DeptNo').lrselectSet(temprow.deptNo);
  306. $('#MajorNo').lrselectSet(temprow.majorNo);
  307. $('#LessonNo').lrselectSet(temprow.lessonNo);
  308. $('#TeachClassNo').lrselectSet(temprow.teachClassNo);
  309. $('#EmpNo').lrselectSet(temprow.empno);
  310. $('#ClassroomNo').lrselectSet(temprow.classRoomNo);
  311. }
  312. page.query();
  313. }
  314. };
  315. bindDataNew = function (temprow) {
  316. if (!!temprow) {
  317. //$('#NewF_SchoolId').lrselectSet(temprow.schooldId);
  318. $('#NewAcademicYearNo').lrselectSet(temprow.academicyear);
  319. $('#NewSemester').lrselectSet(temprow.semester);
  320. $('#NewDeptNo').lrselectSet(temprow.deptNo);
  321. $('#NewMajorNo').lrselectSet(temprow.majorNo);
  322. $('#NewLessonNo').lrselectSet(temprow.lessonNo);
  323. $('#NewTeachClassNo').lrselectSet(temprow.teachClassNo);
  324. $('#NewEmpNo').lrselectSet(temprow.empno);
  325. $('#NewClassroomNo').lrselectSet(temprow.classRoomNo);
  326. }
  327. };
  328. // 设置表单数据
  329. setFormData = function (processId, param, callback) {
  330. if (!!processId) {
  331. $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTermAttemper/GetFormDataByProcessId?processId=' + processId, function (data) {
  332. for (var id in data) {
  333. if (!!data[id] && data[id].length > 0) {
  334. $('#' + id).jfGridSet('refreshdata', data[id]);
  335. }
  336. else {
  337. if (id == 'ArrangeLessonTermAttemper') {
  338. keyValue = data[id].Id;
  339. }
  340. $('[data-table="' + id + '"]').lrSetFormData(data[id]);
  341. $('.AttemperType').hide();
  342. $("#AttemperTimeType").removeAttr("isvalid");
  343. $("#AttemperTimeType").removeAttr("checkexpession");
  344. $("#AttemperStartTime").removeAttr("isvalid");
  345. $("#AttemperStartTime").removeAttr("checkexpession");
  346. $("#AttemperEndTime").removeAttr("isvalid");
  347. $("#AttemperEndTime").removeAttr("checkexpession");
  348. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr("isvalid");
  349. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr("checkexpession");
  350. $(".AttemperTypeDuiDiao").find('.contentDiv').removeAttr('readonly');
  351. $('#NewEmpNo').siblings('div').html('教师');
  352. $('#NewClassroomNo').siblings('div').html('教室');
  353. $('#NewEmpNo').attr('readonly', 'readonly');
  354. $('#NewClassroomNo').attr('readonly', 'readonly');
  355. if (data[id].AttemperType == "01") {
  356. $('.AttemperTypeTiao').show();
  357. $("#AttemperTimeType").attr("isvalid", "yes");
  358. $("#AttemperTimeType").attr("checkexpession", "NotNull");
  359. $("#AttemperStartTime").attr("isvalid", "yes");
  360. $("#AttemperStartTime").attr("checkexpession", "NotNull");
  361. $("#AttemperEndTime").attr("isvalid", "yes");
  362. $("#AttemperEndTime").attr("checkexpession", "NotNull");
  363. } else if (data[id].AttemperType == "02") {
  364. } else if (data[id].AttemperType == "03") {
  365. $('.AttemperTypeDuiDiao').show();
  366. $(".AttemperTypeDuiDiao").find('.contentDiv').attr("isvalid", "yes");
  367. $(".AttemperTypeDuiDiao").find('.contentDiv').attr("checkexpession", "NotNull");
  368. $(".AttemperTypeDuiDiao").find('.contentDiv').attr('readonly', 'readonly');
  369. $('#NewEmpNo').siblings('div').html('教师<font face="宋体">*</font>');
  370. $('#NewClassroomNo').siblings('div').html('教室<font face="宋体">*</font>');
  371. } else if (data[id].AttemperType == "04") {
  372. $("#sourcedata").hide();
  373. $("#oldgridtable").show();
  374. $("#targetdata").hide();
  375. $("#targetgridtable").show();
  376. $(".olddata").removeAttr("isvalid");
  377. $(".olddata").removeAttr("checkexpession");
  378. $(".olddata").removeAttr('readonly');
  379. $("#gridtable").attr("data-val", JSON.stringify(data[id].query));
  380. var html1 = "";
  381. var html2 = "";
  382. var oldtime = "";
  383. var oldjieci = [];
  384. var course = '';
  385. var teacher = '';
  386. var class_ = [];
  387. var classroom = '';
  388. var newtime = '';
  389. var newjieci = [];
  390. for (var i = 0; i < data[id].query.length; i++) {
  391. var item = data[id].query[i];
  392. var jieci1 = item.LessonTime.substring(1, item.LessonTime.length) + '节';
  393. var jieci2 = item.NewLessonTime.substring(1, item.NewLessonTime.length) + '节';
  394. if (i == 0) {
  395. oldtime = item.LessonDate.substring(0, 10);
  396. course = item.LessonName;
  397. teacher = item.EmpName;
  398. classroom = item.ClassroomName;
  399. newtime = item.NewLessonDate.substring(0, 10)
  400. }
  401. if (oldjieci.indexOf(jieci1) < 0) {
  402. oldjieci.push(jieci1)
  403. }
  404. if (class_.indexOf(item.Classname) < 0) {
  405. class_.push(item.Classname)
  406. }
  407. if (newjieci.indexOf(jieci2) < 0) {
  408. newjieci.push(jieci2)
  409. }
  410. }
  411. html1 += '日期:' + oldtime + ' <br>节次:' + oldjieci.join(';') + ' <br>课程:' + course + ' <br>教师:' + teacher + '; <br>班级:' + class_.join(';') + '<br>教室:' + classroom;
  412. html2 += '调整到:' + newtime + '的' + newjieci.join(';');
  413. //console.log(html1)
  414. $("#gridtable").html(html1);
  415. //{"targettime":"2023-6-24","targetjieci":"1节;2节;"}
  416. var target_json = { "targettime": newtime, "targetjieci": newjieci.join(';') }
  417. $('#gridtable1').attr("data-val", JSON.stringify(target_json));
  418. $("#gridtable1").html(html2)
  419. }
  420. }
  421. }
  422. });
  423. }
  424. callback && callback();
  425. }
  426. // 验证数据是否填写完整
  427. validForm = function () {
  428. if (!$('#form').lrValidform()) {
  429. return false;
  430. }
  431. return true;
  432. };
  433. // 保存数据
  434. save = function (processId, callBack, i) {
  435. //if (data[id].AttemperType != "04") {
  436. // var formData = $('body').lrGetFormData();
  437. // if (formData.AttemperType == "03") { //对调:校区、学年、学期需要一致
  438. // //if (formData.F_SchoolId !== formData.NewF_SchoolId || formData.AcademicYearNo !== formData.NewAcademicYearNo || formData.Semester !== formData.NewSemester) {
  439. // if (formData.AcademicYearNo !== formData.NewAcademicYearNo || formData.Semester !== formData.NewSemester) {
  440. // learun.alert.warning("校区、学年、学期不一致!");
  441. // return false;
  442. // }
  443. // } else if (formData.AttemperType == "01") { //调课:调度时间比较
  444. // if (formData.AttemperEndTime < formData.AttemperStartTime) {
  445. // learun.alert.warning("调度结束时间不能小于调度开始时间!");
  446. // return false;
  447. // }
  448. // }
  449. // if (!!processId) {
  450. // formData.ProcessId = processId;
  451. // }
  452. // var postData = {
  453. // strEntity: JSON.stringify(formData)
  454. // };
  455. // $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTermAttemper/SaveForm?keyValue=' + keyValue, postData, function (res) {
  456. // // 保存成功后才回调
  457. // if (!!callBack) {
  458. // callBack(res, i);
  459. // }
  460. // });
  461. //}
  462. callBack({code:200}, i);
  463. };
  464. page.init();
  465. }