提交 54b1e386 编写于 作者: Skyeye云's avatar Skyeye云

学校模块抽离,新增企业版体验地址

上级 7c6380de
......@@ -32,7 +32,7 @@ layui.config({
initPageJson();
function initPageJson(callback){
AjaxPostUtil.request({url:reqBasePath + "exam003", params:{rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam003", params:{rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$.each(json.rows, function(i, item){
item.saveTag = 1;
......@@ -352,7 +352,7 @@ layui.config({
layer.close(index);
var quId = quBody.find("input[name='quId']").val();
if(!isNull(quId)){
AjaxPostUtil.request({url:reqBasePath + "exam015", params:{quId: quId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam015", params:{quId: quId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
quBody.hide("slow", function(){
$(this).parent().remove();
......@@ -399,7 +399,7 @@ layui.config({
optionParent = $(curEditObj).parents("td.quChenColumnTd");
var quOptionId = $(optionParent).find("input[name='quItemId']").val();
if(!isNull(quOptionId) && quOptionId != "0" ){
AjaxPostUtil.request({url:reqBasePath + "exam016", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam016", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
delQuOptionCallBack(optionParent);
}else{
......@@ -418,7 +418,7 @@ layui.config({
optionParent = $(curEditObj).parents("td.quChenRowTd");
var quOptionId = $(optionParent).find("input[name='quItemId']").val();
if(!isNull(quOptionId) && quOptionId != "0" ){
AjaxPostUtil.request({url:reqBasePath + "exam017", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam017", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
delQuOptionCallBack(optionParent);
}else{
......@@ -649,7 +649,7 @@ layui.config({
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam010", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam010", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......@@ -688,7 +688,7 @@ layui.config({
}
var quOptionId = $(optionParent).find("input[name='quItemId']").val();
if(quOptionId != "" && quOptionId != "0") {
AjaxPostUtil.request({url:reqBasePath + "exam018", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam018", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
delQuOptionCallBack(optionParent);
}else{
......@@ -743,7 +743,7 @@ layui.config({
// 逻辑选项
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam011", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam011", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......@@ -782,7 +782,7 @@ layui.config({
}
var quOptionId = $(optionParent).find("input[name='quItemId']").val();
if(quOptionId != "" && quOptionId != "0") {
AjaxPostUtil.request({url:reqBasePath + "exam019", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam019", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
delQuOptionCallBack(optionParent);
}else{
......@@ -876,7 +876,7 @@ layui.config({
// 逻辑选项
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam006", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam006", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......@@ -935,7 +935,7 @@ layui.config({
// 逻辑选项
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam007", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam007", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......@@ -967,7 +967,7 @@ layui.config({
optionParent = $(curEditObj).parents("tr.quScoreOptionTr");
var quOptionId = $(optionParent).find("input[name='quItemId']").val();
if(quOptionId != "" && quOptionId != "0") {
AjaxPostUtil.request({url:reqBasePath + "exam020", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam020", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
delQuOptionCallBack(optionParent);
}else{
......@@ -1006,7 +1006,7 @@ layui.config({
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam008", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam008", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......@@ -1040,7 +1040,7 @@ layui.config({
var rmQuOrderTableTr = quItemBody.find(".quOrderByRight table.quOrderByTable tr:last");
var quOptionId = $(optionParent).find("input[name='quItemId']").val();
if(quOptionId != "" && quOptionId != "0") {
AjaxPostUtil.request({url:reqBasePath + "exam021", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam021", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
delQuOptionCallBack(optionParent);
rmQuOrderTableTr.remove();
......@@ -1063,7 +1063,7 @@ layui.config({
// 逻辑选项
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam009", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam009", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......@@ -1096,7 +1096,7 @@ layui.config({
// 逻辑选项
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam013", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam013", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......@@ -1153,7 +1153,7 @@ layui.config({
// 逻辑选项
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam012", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam012", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......@@ -1185,7 +1185,7 @@ layui.config({
optionParent = $(curEditObj).parents("tr.mFillblankTableTr");
var quOptionId = $(optionParent).find("input[name='quItemId']").val();
if(quOptionId != "" && quOptionId != "0") {
AjaxPostUtil.request({url:reqBasePath + "exam022", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam022", params:{quItemId: quOptionId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
delQuOptionCallBack(optionParent);
}else{
......@@ -1330,7 +1330,7 @@ layui.config({
// 逻辑选项
var list = [].concat(getLogic(quItemBody));
data.logic = JSON.stringify(list);
AjaxPostUtil.request({url:reqBasePath + "exam014", params:data, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam014", params:data, type: 'json', callback: function(json){
if(json.returnCode == 0){
var quId = json.bean.quId;
quItemBody.find("input[name='saveTag']").val(1);
......
......@@ -13,7 +13,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -43,7 +43,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -72,7 +72,7 @@ layui.config({
function initSemester(){
showGrid({
id: "semesterId",
url: reqBasePath + "schoolsemester006",
url: schoolBasePath + "schoolsemester006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -87,7 +87,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -102,7 +102,7 @@ layui.config({
function loadThisGradeNowYear(){
showGrid({
id: "classList",
url: reqBasePath + "grademation009",
url: schoolBasePath + "grademation009",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/checkbox-property.tpl'),
......@@ -141,7 +141,7 @@ layui.config({
viewAnswer: $("input[name='viewAnswer']:checked").val(),
propertyIds: propertyIds
};
AjaxPostUtil.request({url:reqBasePath + "exam002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -9,9 +9,7 @@ layui.config({
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form', 'laydate'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table,
......@@ -28,7 +26,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -49,7 +47,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +73,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -100,7 +98,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'exam001',
url: schoolBasePath + 'exam001',
where: params,
even:true,
page: true,
......@@ -152,11 +150,9 @@ layui.config({
markExam(data);
}
});
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
refreshTable();
}
......@@ -170,7 +166,7 @@ layui.config({
layer.confirm(msg, { icon: 3, title: '删除试卷' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "exam025", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam025", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......@@ -239,8 +235,7 @@ layui.config({
var msg = obj ? '确认发布试卷【' + obj.data.surveyName + '】吗?' : '确认发布选中数据吗?';
layer.confirm(msg, { icon: 3, title: '试卷发布' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "exam023", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam023", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("发布成功", {icon: 1,time: 2000});
loadTable();
......@@ -256,8 +251,7 @@ layui.config({
var msg = obj ? '确认结束试卷【' + obj.data.surveyName + '】的考试吗?' : '确认结束选中数据吗?';
layer.confirm(msg, { icon: 3, title: '结束考试' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "exam030", params:{surveyId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam030", params:{surveyId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -28,7 +28,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -49,7 +49,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +75,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -100,7 +100,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'exam001-my',
url: schoolBasePath + 'exam001-my',
where: params,
even:true,
page: true,
......@@ -169,12 +169,12 @@ layui.config({
layer.confirm(msg, { icon: 3, title: '删除试卷' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "exam025", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
AjaxPostUtil.request({url: schoolBasePath + "exam025", params:{rowId: data.id}, type: 'json', callback: function(json) {
if(json.returnCode == 0) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
});
......@@ -238,8 +238,7 @@ layui.config({
var msg = obj ? '确认发布试卷【' + obj.data.surveyName + '】吗?' : '确认发布选中数据吗?';
layer.confirm(msg, { icon: 3, title: '试卷发布' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "exam023", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam023", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("发布成功", {icon: 1,time: 2000});
loadTable();
......@@ -255,8 +254,7 @@ layui.config({
var msg = obj ? '确认结束试卷【' + obj.data.surveyName + '】的考试吗?' : '确认结束选中数据吗?';
layer.confirm(msg, { icon: 3, title: '结束考试' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "exam030", params:{surveyId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam030", params:{surveyId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -20,7 +20,7 @@ layui.config({
surveyName: $("#surveyName").val(),
rowId: parent.rowId
};
AjaxPostUtil.request({url:reqBasePath + "exam027", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam027", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -17,7 +17,7 @@ layui.config({
showGrid({
id: "dwBodyUser",
url: reqBasePath + "exam026",
url: schoolBasePath + "exam026",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/examreport/examReport.tpl'),
......
......@@ -18,7 +18,7 @@ layui.config({
form = layui.form;
//获取试卷详情信息以及阅卷人信息
AjaxPostUtil.request({url:reqBasePath + "exam036", params: {surveyId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam036", params: {surveyId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#showForm").html(getDataUseHandlebars($("#assignmentTemplate").html(), json));
//回显阅卷人
......@@ -43,7 +43,7 @@ layui.config({
surveyId: parent.rowId,
arrayStr: JSON.stringify(array)
};
AjaxPostUtil.request({url:reqBasePath + "exam037", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam037", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -25,7 +25,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -50,7 +50,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +75,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -89,12 +89,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank006", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank006", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -103,7 +103,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -218,7 +218,7 @@ layui.config({
});
params.checkboxTd = JSON.stringify(checkboxTd);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank005", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank005", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -26,7 +26,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -51,7 +51,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -76,7 +76,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -90,12 +90,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank016", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank016", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -104,7 +104,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -264,7 +264,7 @@ layui.config({
});
params.isDefaultAnswer = JSON.stringify(isDefaultAnswer);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank015", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank015", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -26,7 +26,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -51,7 +51,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -76,7 +76,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -90,12 +90,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank016", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank016", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -104,7 +104,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -265,7 +265,7 @@ layui.config({
});
params.isDefaultAnswer = JSON.stringify(isDefaultAnswer);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank015", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank015", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -26,7 +26,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -51,7 +51,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -76,7 +76,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -90,12 +90,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank016", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank016", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -104,7 +104,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -269,7 +269,7 @@ layui.config({
});
params.isDefaultAnswer = JSON.stringify(isDefaultAnswer);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank015", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank015", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -26,7 +26,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -51,7 +51,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -76,7 +76,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -90,12 +90,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank016", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank016", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -104,7 +104,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -264,7 +264,7 @@ layui.config({
});
params.isDefaultAnswer = JSON.stringify(isDefaultAnswer);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank015", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank015", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -25,7 +25,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -50,7 +50,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +75,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -89,12 +89,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank008", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank008", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -103,7 +103,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -195,7 +195,7 @@ layui.config({
whetherUpload: data.field.whetherUpload,
isDefaultAnswer: quItemBody.find("input[class='quFillblankAnswerInput']").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank007", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank007", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -25,7 +25,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -50,7 +50,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +75,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -89,12 +89,12 @@ layui.config({
function loadData(){
//如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank014", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank014", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -103,7 +103,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -210,7 +210,7 @@ layui.config({
});
params.multiFillblankTd = JSON.stringify(multiFillblankTd);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank013", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank013", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -25,7 +25,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -50,7 +50,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +75,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -89,12 +89,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank012", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank012", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -103,7 +103,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -207,7 +207,7 @@ layui.config({
});
params.orderquTd = JSON.stringify(orderquTd);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank011", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank011", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -25,7 +25,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -50,7 +50,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +75,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -89,12 +89,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank004", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank004", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -103,7 +103,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -218,7 +218,7 @@ layui.config({
});
params.radioTd = JSON.stringify(radioTd);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank002", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank002", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -25,7 +25,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -46,7 +46,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -72,7 +72,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -105,7 +105,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolquestionbank017',
url: schoolBasePath + 'schoolquestionbank017',
where: getTableParams(),
even: true,
page: true,
......@@ -170,7 +170,7 @@ layui.config({
winui.window.msg("请选择试题", {icon: 2,time: 2000});
return false;
}
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank018", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank018", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.questionMationList = [].concat(json.rows);
parent.layer.close(index);
......
......@@ -20,7 +20,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -44,7 +44,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "setting",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: $("#gradeTemplate").html(),
......@@ -60,7 +60,7 @@ layui.config({
function initSubject(){
showGrid({
id: "setting1",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: gradeId},
pagination: false,
template: $("#subjectTemplate").html(),
......@@ -77,7 +77,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolquestionbank019',
url: schoolBasePath + 'schoolquestionbank019',
where: getTablePatams(),
even:true,
page: true,
......
......@@ -28,7 +28,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -49,7 +49,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +75,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -91,7 +91,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolquestionbank001',
url: schoolBasePath + 'schoolquestionbank001',
where: getTablePatams(),
even:true,
page: true,
......@@ -144,7 +144,7 @@ layui.config({
function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank003", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -25,7 +25,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -50,7 +50,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -75,7 +75,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -89,12 +89,12 @@ layui.config({
function loadData(){
// 如果问题id不为空,则说明是编辑,加载编辑信息
if(!isNull(parent.rowId)){
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank010", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank010", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#schoolId").val(json.bean.schoolId);
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -103,7 +103,7 @@ layui.config({
$("#gradeId").val(json.bean.gradeId);
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -209,7 +209,7 @@ layui.config({
});
params.scoreTd = JSON.stringify(scoreTd);
AjaxPostUtil.request({url:reqBasePath + "schoolquestionbank009", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolquestionbank009", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -786,7 +786,7 @@
showGrid({
id: "wrap",
url: reqBasePath + "exam034",
url: schoolBasePath + "exam034",
params: {surveyId: parent.rowId},
pagination: false,
template: getFileContent('tpl/examDetail/examPCDetail.tpl'),
......@@ -1180,7 +1180,7 @@
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'exam035',
url: schoolBasePath + 'exam035',
where: {surveyId: parent.rowId, field: '', order: ''},
even: true,
page: true,
......
......@@ -745,7 +745,7 @@
}
showGrid({
id: "wrap",
url: reqBasePath + "exam031",
url: schoolBasePath + "exam031",
params: {answerId: getUrlParam("answerId")},
pagination: false,
template: getFileContent('tpl/examDetail/examPhoneDetail.tpl'),
......
......@@ -799,7 +799,7 @@
markStartTime = getFormatDate();
showGrid({
id: "wrap",
url: reqBasePath + "exam032",
url: schoolBasePath + "exam032",
params: {answerId: parent.rowId},
pagination: false,
template: getFileContent('tpl/examMarkingDetail/examMarkingDetail.tpl'),
......@@ -1235,7 +1235,7 @@
layer.confirm(msg, { icon: 3, title: '提交操作' }, function (i) {
layer.close(i);
AjaxPostUtil.request({url:reqBasePath + "exam033", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam033", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -711,11 +711,11 @@
setCookie('userToken', userToken, 's1800');
}
bgAnDate = getFormatDate();
AjaxPostUtil.request({url:reqBasePath + "exam028", params: {surveyId: getUrlParam("rowId")}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam028", params: {surveyId: getUrlParam("rowId")}, type: 'json', callback: function(json){
if(json.returnCode == 0){
showGrid({
id: "wrap",
url: reqBasePath + "exam024",
url: schoolBasePath + "exam024",
params: {rowId: getUrlParam("rowId")},
pagination: false,
template: getFileContent('tpl/examing/examTemplate.tpl'),
......@@ -1320,7 +1320,7 @@
});
params = $.extend({}, params, $("#surveyForm").serializeJson());
params.quAnswerFile = JSON.stringify(quAnswerFile);
AjaxPostUtil.request({url:reqBasePath + "exam029", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "exam029", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#wrap").html('<span class="messageSpan">' + '答卷完成,感谢您的参与。' + '</span>');
}else{
......
......@@ -23,7 +23,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -44,7 +44,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -62,7 +62,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'myschooltask003',
url: schoolBasePath + 'myschooltask003',
where: getTableParams(),
even: true,
page: true,
......
......@@ -16,7 +16,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -37,7 +37,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -56,7 +56,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'myschooltask001',
url: schoolBasePath + 'myschooltask001',
where:{gradeId: $("#gradeId").val(), schoolId: $("#schoolId").val()},
even: true,
page: true,
......
......@@ -23,7 +23,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -44,7 +44,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -62,7 +62,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'myschooltask002',
url: schoolBasePath + 'myschooltask002',
where: getTableParams(),
even: true,
page: true,
......
......@@ -16,7 +16,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -42,7 +42,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -67,7 +67,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -94,7 +94,7 @@ layui.config({
winui.window.msg('请填写内容', {icon: 2,time: 2000});
return false;
}
AjaxPostUtil.request({url:reqBasePath + "knowledgepoints002", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "knowledgepoints002", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -34,7 +34,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -55,7 +55,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -81,7 +81,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -116,7 +116,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'knowledgepoints007',
url: schoolBasePath + 'knowledgepoints007',
where: getTableParams(),
even: true,
page: true,
......@@ -179,7 +179,7 @@ layui.config({
var selectedData = tableCheckBoxUtil.getValue({
gridId: 'messageTable'
});
AjaxPostUtil.request({url:reqBasePath + "knowledgepoints008", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "knowledgepoints008", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.schoolKnowledgeMationList = [].concat(json.rows);
parent.layer.close(index);
......
......@@ -20,7 +20,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -44,7 +44,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "setting",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: $("#gradeTemplate").html(),
......@@ -60,7 +60,7 @@ layui.config({
function initSubject(){
showGrid({
id: "setting1",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: gradeId},
pagination: false,
template: $("#subjectTemplate").html(),
......@@ -77,7 +77,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'knowledgepoints009',
url: schoolBasePath + 'knowledgepoints009',
where: getTablePatams(),
even:true,
page: true,
......
......@@ -14,7 +14,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "knowledgepoints006",
url: schoolBasePath + "knowledgepoints006",
params: {rowId:parent.rowId},
pagination: false,
template: $("#detailTemplate").html(),
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "knowledgepoints004",
url: schoolBasePath + "knowledgepoints004",
params: {rowId: parent.rowId},
pagination: false,
template: $("#editTemplate").html(),
......@@ -21,7 +21,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -32,7 +32,7 @@ layui.config({
//年级
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -43,7 +43,7 @@ layui.config({
//科目
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -72,7 +72,7 @@ layui.config({
function initGrade(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -97,7 +97,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -130,7 +130,7 @@ layui.config({
winui.window.msg('请填写内容', {icon: 2,time: 2000});
return false;
}
AjaxPostUtil.request({url:reqBasePath + "knowledgepoints005", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "knowledgepoints005", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -18,7 +18,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -39,7 +39,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -65,7 +65,7 @@ layui.config({
function initSubject(){
showGrid({
id: "subjectId",
url: reqBasePath + "schoolsubjectmation007",
url: schoolBasePath + "schoolsubjectmation007",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -82,7 +82,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'knowledgepoints001',
url: schoolBasePath + 'knowledgepoints001',
where: getTablePatams(),
even:true,
page: true,
......@@ -138,7 +138,7 @@ layui.config({
function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "knowledgepoints003", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "knowledgepoints003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -16,7 +16,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -30,7 +30,7 @@ layui.config({
showGrid({
id: "showTemplate",
url: reqBasePath + "schooltimesetting001",
url: schoolBasePath + "schooltimesetting001",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: $("#timeSettingTemplate").html(),
......@@ -74,11 +74,11 @@ layui.config({
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schooltimesetting002", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("修改成功", {icon: 1,time: 2000});
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
AjaxPostUtil.request({url: schoolBasePath + "schooltimesetting002", params: params, type: 'json', callback: function(json) {
if(json.returnCode == 0) {
winui.window.msg("修改成功", {icon: 1, time: 2000});
} else {
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
});
......
......@@ -13,7 +13,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -31,7 +31,7 @@ layui.config({
name: $("#typeName").val(),
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolbodymind002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolbodymind002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "schoolbodymind003",
url: schoolBasePath + "schoolbodymind003",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/schoolbodymind/schoolbodymindeditTemplate.tpl'),
......@@ -21,7 +21,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -41,7 +41,7 @@ layui.config({
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolbodymind004", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolbodymind004", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -17,7 +17,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -33,7 +33,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolbodymind001',
url: schoolBasePath + 'schoolbodymind001',
where: {name: $("#typeName").val(), schoolId: $("#schoolId").val()},
even: true,
page: true,
......@@ -91,7 +91,7 @@ layui.config({
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "schoolbodymind005", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolbodymind005", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -30,7 +30,7 @@ layui.config({
//所属学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -56,7 +56,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -72,7 +72,7 @@ layui.config({
function initFloorId(){
showGrid({
id: "floorId",
url: reqBasePath + "schoolfloormation006",
url: schoolBasePath + "schoolfloormation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -103,7 +103,7 @@ layui.config({
params.masterStaffId = teacherMation.staffId;
}
AjaxPostUtil.request({url:reqBasePath + "classmation002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "classmation002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -20,7 +20,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "classmation004",
url: schoolBasePath + "classmation004",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/schoolclassmation/schoolclassmationeditTemplate.tpl'),
......@@ -60,7 +60,7 @@ layui.config({
params.masterStaffId = teacherMation.staffId;
}
AjaxPostUtil.request({url:reqBasePath + "classmation005", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "classmation005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......@@ -79,7 +79,7 @@ layui.config({
function initFloorId(schoolId, chooseFloorId){
showGrid({
id: "floorId",
url: reqBasePath + "schoolfloormation006",
url: schoolBasePath + "schoolfloormation006",
params: {schoolId: schoolId},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......
......@@ -25,7 +25,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -46,7 +46,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -64,7 +64,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'classmation001',
url: schoolBasePath + 'classmation001',
where:{gradeId: $("#gradeId").val(), schoolId: $("#schoolId").val(), className: $("#className").val(), year: $("#year").val()},
even: true,
page: true,
......@@ -120,7 +120,7 @@ layui.config({
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "classmation003", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "classmation003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -13,7 +13,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -32,7 +32,7 @@ layui.config({
name: $("#typeName").val(),
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolfamilysituation002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolfamilysituation002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "schoolfamilysituation003",
url: schoolBasePath + "schoolfamilysituation003",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/schoolfamilysituation/schoolfamilysituationeditTemplate.tpl'),
......@@ -21,7 +21,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -41,7 +41,7 @@ layui.config({
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolfamilysituation004", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolfamilysituation004", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -17,7 +17,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -33,7 +33,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolfamilysituation001',
url: schoolBasePath + 'schoolfamilysituation001',
where: {name: $("#typeName").val(), schoolId: $("#schoolId").val()},
even: true,
page: true,
......@@ -90,7 +90,7 @@ layui.config({
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "schoolfamilysituation005", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolfamilysituation005", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -13,7 +13,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -32,7 +32,7 @@ layui.config({
name: $("#typeName").val(),
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolfloormation002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolfloormation002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "schoolfloormation003",
url: schoolBasePath + "schoolfloormation003",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/schoolfloormation/schoolfloormationeditTemplate.tpl'),
......@@ -21,7 +21,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -41,7 +41,7 @@ layui.config({
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolfloormation004", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolfloormation004", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -17,7 +17,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -32,7 +32,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolfloormation001',
url: schoolBasePath + 'schoolfloormation001',
where: {name: $("#typeName").val(), schoolId: $("#schoolId").val()},
even: true,
page: true,
......@@ -89,7 +89,7 @@ layui.config({
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "schoolfloormation005", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolfloormation005", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -11,7 +11,7 @@ layui.config({
var $ = layui.$;
//获取年级部分信息以及当前拥有的技能列表
AjaxPostUtil.request({url:reqBasePath + "schoolgradesubject002", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolgradesubject002", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#gradeName").html(json.bean.gradeName);
$("#schoolName").html(json.bean.schoolName);
......@@ -19,7 +19,7 @@ layui.config({
//初始化年级所属学校科目列表
showGrid({
id: "subjectList",
url: reqBasePath + "schoolsubjectmation006",
url: schoolBasePath + "schoolsubjectmation006",
params: {schoolId: json.bean.schoolId},
pagination: false,
template: getFileContent('tpl/template/checkbox-property.tpl'),
......@@ -49,7 +49,7 @@ layui.config({
propertyIds: propertyIds
};
AjaxPostUtil.request({url:reqBasePath + "schoolgradesubject003", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolgradesubject003", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -17,7 +17,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -33,7 +33,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolgradesubject001',
url: schoolBasePath + 'schoolgradesubject001',
where: {gradeName:$("#gradeName").val(), schoolId:$("#schoolId").val()},
even: true,
page: true,
......
......@@ -18,7 +18,7 @@ layui.config({
//加载所属学校
showGrid({
id: "OverAllSchool",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -38,7 +38,7 @@ layui.config({
function loadParentGrade(){
showGrid({
id: "OverAllGrade",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#OverAllSchool").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -87,7 +87,7 @@ layui.config({
type: $("input[name='type']:checked").val()
};
AjaxPostUtil.request({url:reqBasePath + "grademation002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "grademation002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -16,7 +16,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "grademation004",
url: schoolBasePath + "grademation004",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/schoolgrademation/schoolgrademationeditTemplate.tpl'),
......@@ -41,7 +41,7 @@ layui.config({
yearN: $("#yearN").val()
};
AjaxPostUtil.request({url:reqBasePath + "grademation005", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "grademation005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -18,7 +18,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -35,7 +35,7 @@ layui.config({
elem: '#messageTable',
method: 'post',
idField: 'id',
url: reqBasePath + 'grademation001',
url: schoolBasePath + 'grademation001',
cellMinWidth: 100,
where:{gradeName: $("#gradeName").val(), schoolId: $("#schoolId").val()},
treeId: 'id',//树形id字段名称
......@@ -84,7 +84,7 @@ layui.config({
function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "grademation003", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "grademation003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......@@ -137,7 +137,7 @@ layui.config({
//上移
function upMove(data){
AjaxPostUtil.request({url:reqBasePath + "grademation007", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "grademation007", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......@@ -149,7 +149,7 @@ layui.config({
//下移
function downMove(data){
AjaxPostUtil.request({url:reqBasePath + "grademation008", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "grademation008", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -81,7 +81,7 @@ layui.config({
showGrid({
id: "OverAllSchool",
url: reqBasePath + "schoolmation006",
url: schoolBasePath + "schoolmation006",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -135,7 +135,7 @@ layui.config({
addressDetailed: $("#userAddressInput").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolmation002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolmation002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -24,7 +24,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "schoolmation004",
url: schoolBasePath + "schoolmation004",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/schoolmation/schoolmationeditTemplate.tpl'),
......@@ -152,7 +152,7 @@ layui.config({
rowId: parent.rowId
};
AjaxPostUtil.request({url:reqBasePath + "schoolmation005", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolmation005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......@@ -175,7 +175,7 @@ layui.config({
function loadParentSchool(id){
showGrid({
id: "OverAllSchool",
url: reqBasePath + "schoolmation006",
url: schoolBasePath + "schoolmation006",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......
......@@ -21,7 +21,7 @@ layui.config({
elem: '#messageTable',
method: 'post',
idField: 'id',
url: reqBasePath + 'schoolmation001',
url: schoolBasePath + 'schoolmation001',
cellMinWidth: 100,
where:{schoolName: $("#schoolName").val()},
treeId: 'id',//树形id字段名称
......@@ -75,7 +75,7 @@ layui.config({
function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "schoolmation003", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolmation003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -13,7 +13,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -32,7 +32,7 @@ layui.config({
name: $("#typeName").val(),
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolsemester002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolsemester002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "schoolsemester003",
url: schoolBasePath + "schoolsemester003",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/schoolsemester/schoolsemestereditTemplate.tpl'),
......@@ -21,7 +21,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -41,7 +41,7 @@ layui.config({
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolsemester004", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolsemester004", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -17,7 +17,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -33,7 +33,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolsemester001',
url: schoolBasePath + 'schoolsemester001',
where: {name: $("#typeName").val(), schoolId: $("#schoolId").val()},
even: true,
page: true,
......@@ -90,7 +90,7 @@ layui.config({
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "schoolsemester005", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolsemester005", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -15,14 +15,14 @@ layui.config({
var gradePointYear = "";//年级当前属于哪一年上学的学生
//获取学生信息展示用于分班
AjaxPostUtil.request({url:reqBasePath + "studentmation004", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "studentmation004", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
stuSessionYear = json.bean.sessionYear;
$("#showForm").html(getDataUseHandlebars($("#assignmentTemplate").html(), json));
//加载当前选中的年级是哪一届的以及这一届的班级信息
showGrid({
id: "classId",
url: reqBasePath + "grademation009",
url: schoolBasePath + "grademation009",
params: {gradeId: json.bean.gradeId},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -61,7 +61,7 @@ layui.config({
//保存数据
function saveData(params){
AjaxPostUtil.request({url:reqBasePath + "studentmation005", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "studentmation005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -16,7 +16,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -37,7 +37,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -55,7 +55,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'studentmation003',
url: schoolBasePath + 'studentmation003',
where:{gradeId: $("#gradeId").val(), schoolId: $("#schoolId").val(), studentName: $("#studentName").val()},
even: true,
page: true,
......
......@@ -44,7 +44,7 @@ layui.config({
//所属学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -78,7 +78,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -94,7 +94,7 @@ layui.config({
function initTransportationId(){
showGrid({
id: "modeOfTransportation",
url: reqBasePath + "schooltransportation006",
url: schoolBasePath + "schooltransportation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -110,7 +110,7 @@ layui.config({
function initHomeSituationId(){
showGrid({
id: "homeSituation",
url: reqBasePath + "schoolfamilysituation006",
url: schoolBasePath + "schoolfamilysituation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/checkbox-property.tpl'),
......@@ -126,7 +126,7 @@ layui.config({
function initBodyMindId(){
showGrid({
id: "bodyMind",
url: reqBasePath + "schoolbodymind006",
url: schoolBasePath + "schoolbodymind006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/checkbox-property.tpl'),
......@@ -162,7 +162,7 @@ layui.config({
function loadThisGradeNowYear(){
showGrid({
id: "classId",
url: reqBasePath + "grademation009",
url: schoolBasePath + "grademation009",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -274,7 +274,7 @@ layui.config({
});
params.bodyMind = bodyMindIds;
AjaxPostUtil.request({url:reqBasePath + "studentmation002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "studentmation002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("录入成功", {icon: 1, time: 3000}, function(){
location.reload();
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "studentmation008",
url: schoolBasePath + "studentmation008",
params: {rowId: parent.rowId},
pagination: false,
template: $("#detailTemplate").html(),
......
......@@ -18,7 +18,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "studentmation006",
url: schoolBasePath + "studentmation006",
params: {rowId: parent.rowId},
pagination: false,
template: $("#editTemplate").html(),
......@@ -93,7 +93,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: schoolId},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -111,7 +111,7 @@ layui.config({
function initTransportationId(){
showGrid({
id: "modeOfTransportation",
url: reqBasePath + "schooltransportation006",
url: schoolBasePath + "schooltransportation006",
params: {schoolId: schoolId},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -128,7 +128,7 @@ layui.config({
function initHomeSituationId(){
showGrid({
id: "homeSituation",
url: reqBasePath + "schoolfamilysituation006",
url: schoolBasePath + "schoolfamilysituation006",
params: {schoolId: schoolId},
pagination: false,
template: getFileContent('tpl/template/checkbox-property.tpl'),
......@@ -148,7 +148,7 @@ layui.config({
function initBodyMindId(){
showGrid({
id: "bodyMind",
url: reqBasePath + "schoolbodymind006",
url: schoolBasePath + "schoolbodymind006",
params: {schoolId: schoolId},
pagination: false,
template: getFileContent('tpl/template/checkbox-property.tpl'),
......@@ -188,7 +188,7 @@ layui.config({
function loadThisGradeNowYear(){
showGrid({
id: "classId",
url: reqBasePath + "grademation009",
url: schoolBasePath + "grademation009",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -305,7 +305,7 @@ layui.config({
});
params.bodyMind = bodyMindIds;
AjaxPostUtil.request({url:reqBasePath + "studentmation007", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "studentmation007", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -18,7 +18,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -39,7 +39,7 @@ layui.config({
function initGradeId(){
showGrid({
id: "gradeId",
url: reqBasePath + "grademation006",
url: schoolBasePath + "grademation006",
params: {schoolId: $("#schoolId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -66,7 +66,7 @@ layui.config({
function loadThisGradeNowYear(){
showGrid({
id: "classId",
url: reqBasePath + "grademation009",
url: schoolBasePath + "grademation009",
params: {gradeId: $("#gradeId").val()},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -86,7 +86,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'studentmation001',
url: schoolBasePath + 'studentmation001',
where: getTableParams(),
even: true,
page: true,
......@@ -169,7 +169,7 @@ layui.config({
// 下载模板
$("body").on("click", "#exportStudentModel", function(){
postDownLoadFile({
url : reqBasePath + 'studentmation009?loginPCIp=' + returnCitySN["cip"],
url : schoolBasePath + 'studentmation009?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -14,7 +14,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -40,7 +40,7 @@ layui.config({
desc: $("#desc").val(),
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolsubjectmation002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolsubjectmation002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -13,7 +13,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "schoolsubjectmation003",
url: schoolBasePath + "schoolsubjectmation003",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/schoolsubjectmation/schoolsubjectmationeditTemplate.tpl'),
......@@ -28,7 +28,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -50,7 +50,7 @@ layui.config({
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schoolsubjectmation004", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolsubjectmation004", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -16,7 +16,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -31,7 +31,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolsubjectmation001',
url: schoolBasePath + 'schoolsubjectmation001',
where: getTableParams(),
even: true,
page: true,
......@@ -94,7 +94,7 @@ layui.config({
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "schoolsubjectmation005", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schoolsubjectmation005", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -15,7 +15,7 @@ layui.config({
// 初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -31,7 +31,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolteacher001',
url: schoolBasePath + 'schoolteacher001',
where: getTableParams(),
even: true,
page: true,
......
......@@ -52,7 +52,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -86,7 +86,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolteacher006',
url: schoolBasePath + 'schoolteacher006',
where: getTableParams(),
even: true,
page: true,
......@@ -174,7 +174,7 @@ layui.config({
var selectedData = tableCheckBoxUtil.getValue({
gridId: 'messageTable'
});
AjaxPostUtil.request({url:reqBasePath + "schoolteacher007", params: {staffIds: selectedData.toString()}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: schoolBasePath + "schoolteacher007", params: {staffIds: selectedData.toString()}, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.chooseTeacherList = [].concat(json.rows);
parent.layer.close(index);
......
......@@ -11,7 +11,7 @@ layui.config({
var $ = layui.$;
//获取教师部分信息以及当前拥有的技能列表
AjaxPostUtil.request({url:reqBasePath + "schoolteachersubject002", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: schoolBasePath + "schoolteachersubject002", params: {rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#userName").html(json.bean.userName);
$("#schoolName").html(json.bean.schoolName);
......@@ -19,7 +19,7 @@ layui.config({
//初始化教师所属学校科目列表
showGrid({
id: "subjectList",
url: reqBasePath + "schoolsubjectmation006",
url: schoolBasePath + "schoolsubjectmation006",
params: {schoolId: json.bean.schoolId},
pagination: false,
template: getFileContent('tpl/template/checkbox-property.tpl'),
......@@ -50,7 +50,7 @@ layui.config({
propertyIds: propertyIds
};
AjaxPostUtil.request({url:reqBasePath + "schoolteachersubject003", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url: schoolBasePath + "schoolteachersubject003", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -18,7 +18,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -34,7 +34,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schoolteachersubject001',
url: schoolBasePath + 'schoolteachersubject001',
where: {userName:$("#userName").val(), userSex:$("#userSex").val(), userIdCard:$("#userIdCard").val(), schoolId:$("#schoolId").val()},
even: true,
page: true,
......
......@@ -13,7 +13,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -31,7 +31,7 @@ layui.config({
name: $("#typeName").val(),
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schooltransportation002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schooltransportation002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "schooltransportation003",
url: schoolBasePath + "schooltransportation003",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/schooltransportation/schooltransportationeditTemplate.tpl'),
......@@ -21,7 +21,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -41,7 +41,7 @@ layui.config({
schoolId: $("#schoolId").val()
};
AjaxPostUtil.request({url:reqBasePath + "schooltransportation004", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schooltransportation004", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -17,7 +17,7 @@ layui.config({
//初始化学校
showGrid({
id: "schoolId",
url: reqBasePath + "schoolmation008",
url: schoolBasePath + "schoolmation008",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -32,7 +32,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'schooltransportation001',
url: schoolBasePath + 'schooltransportation001',
where: {name: $("#typeName").val(), schoolId: $("#schoolId").val()},
even: true,
page: true,
......@@ -89,7 +89,7 @@ layui.config({
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "schooltransportation005", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:schoolBasePath + "schooltransportation005", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "allSchool",
url: reqBasePath + "schoolmation007",
url: schoolBasePath + "schoolmation007",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......
......@@ -53,6 +53,7 @@ var fileBasePath;
var reqBasePath; // 总项目
var shopBasePath; // 商城项目
var flowableBasePath; // 工作流相关功能的项目
var schoolBasePath; // 学校模块请求地址
var homePagePath; // 前端请求地址
var webSocketPath;//聊天socket-开发
......@@ -64,6 +65,7 @@ function initBaseParams(){
webSocketPath = sysMainMation.webSocketPath;
flowableBasePath = sysMainMation.flowableBasePath;
homePagePath = sysMainMation.homePagePath;
schoolBasePath = sysMainMation.schoolBasePath;
}
function getRequestHeaders() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册