| | |
| | | Feng.error("不能重复操作"); |
| | | return |
| | | } |
| | | parent.layer.confirm(state == 1 ? '是否开启' : "是否关闭" , { |
| | | parent.layer.confirm(state == 1 ? '是否关闭' : "是否开启" , { |
| | | btn: ['确定', '取消'] |
| | | }, function (index) { |
| | | let ajax = new $ax(Feng.ctxPath + "/ball/editCoursePackageState", function (data) { |
| | | Feng.success(state == 1 ? '开启' : "关闭" + "成功!"); |
| | | Feng.success(state == 1 ? '关闭' : "开启" + "成功!"); |
| | | TStudent.table.refresh(); |
| | | }, function (data) { |
| | | Feng.error(state == 1 ? '开启' : "关闭" + "失败!" + data.responseJSON.message + "!"); |
| | | Feng.error(state == 1 ? '关闭' : "开启" + "失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("id", TStudent.seItem.id); |
| | | ajax.set("state", state); |
| | |
| | | this.layerIndex = index; |
| | | } |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | TStudent.openTStudentDetail3 = function () { |
| | | if (this.check()) { |
| | |
| | | TStudent.table.refresh({query: queryData}); |
| | | }; |
| | | |
| | | TStudent.resetSearch = function () { |
| | | $("#provinceCode").val(""); |
| | | $("#cityCode").val(""); |
| | | $("#store").val(""); |
| | | $("#site").val(""); |
| | | TStudent.search(); |
| | | }; |
| | | |
| | | |
| | | $(function () { |
| | | var defaultColunms = TStudent.initColumn(); |
| | | var table = new BSTable(TStudent.id, "/ball/list", defaultColunms); |