列表展示美化

This commit is contained in:
Renpc-kilig 2021-05-12 10:46:42 +08:00
parent da5131b414
commit 0d191bfd54
3 changed files with 14 additions and 14 deletions

View File

@ -220,10 +220,6 @@
top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function (code, data) { top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function (code, data) {
orgNameFun.getOrgName(data.orgId, function(nameData) { orgNameFun.getOrgName(data.orgId, function(nameData) {
data['orgName'] = nameData.institutionName; data['orgName'] = nameData.institutionName;
var dataFormData = {};
for (var i in data) {
dataFormData[i] = data[i] + '';
}
if ('1' == data.planType) { if ('1' == data.planType) {
data.planType = '初训'; data.planType = '初训';
} else if ('2' == data.planType) { } else if ('2' == data.planType) {
@ -231,6 +227,10 @@
} else if ('3' == data.planType) { } else if ('3' == data.planType) {
data.planType = '换证 '; data.planType = '换证 ';
} }
var dataFormData = {};
for (var i in data) {
dataFormData[i] = data[i] + '';
}
form.val('initDataForm', dataFormData); form.val('initDataForm', dataFormData);
form.render(null, 'initDataForm'); form.render(null, 'initDataForm');
}) })

View File

@ -423,11 +423,11 @@
for(var i in data) { for(var i in data) {
dataFormData[i] = data[i] +''; dataFormData[i] = data[i] +'';
} }
/*if (null == data.status || '' == data.status || typeof (data.status) == 'undefined') { if (null == data.status || '' == data.status || typeof (data.status) == 'undefined') {
$('#subBtn').show(); $('#subBtn').show();
} else { } else {
$('#subBtn').hide(); $('#subBtn').hide();
}*/ }
form.val('dataForm', dataFormData); form.val('dataForm', dataFormData);
form.render(null, 'dataForm'); form.render(null, 'dataForm');
initPracticeExamAddressIdSelect(data['practiceExamAddressId']); initPracticeExamAddressIdSelect(data['practiceExamAddressId']);
@ -453,10 +453,6 @@
top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function(code, data) { top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function(code, data) {
orgNameFun.getOrgName(data.orgId, function(nameData) { orgNameFun.getOrgName(data.orgId, function(nameData) {
data['orgName'] = nameData.institutionName; data['orgName'] = nameData.institutionName;
var dataFormData = {};
for(var i in data) {
dataFormData[i] = data[i] +'';
}
if ('1' == data.planType) { if ('1' == data.planType) {
data.planType = '初训'; data.planType = '初训';
} else if ('2' == data.planType) { } else if ('2' == data.planType) {
@ -464,6 +460,10 @@
} else if ('3' == data.planType) { } else if ('3' == data.planType) {
data.planType = '换证 '; data.planType = '换证 ';
} }
var dataFormData = {};
for(var i in data) {
dataFormData[i] = data[i] +'';
}
form.val('initDataForm', dataFormData); form.val('initDataForm', dataFormData);
form.render(null, 'initDataForm'); form.render(null, 'initDataForm');
}) })

View File

@ -220,10 +220,6 @@
top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function (code, data) { top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function (code, data) {
orgNameFun.getOrgName(data.orgId, function(nameData) { orgNameFun.getOrgName(data.orgId, function(nameData) {
data['orgName'] = nameData.institutionName; data['orgName'] = nameData.institutionName;
var dataFormData = {};
for (var i in data) {
dataFormData[i] = data[i] + '';
}
if ('1' == data.planType) { if ('1' == data.planType) {
data.planType = '初训'; data.planType = '初训';
} else if ('2' == data.planType) { } else if ('2' == data.planType) {
@ -231,6 +227,10 @@
} else if ('3' == data.planType) { } else if ('3' == data.planType) {
data.planType = '换证 '; data.planType = '换证 ';
} }
var dataFormData = {};
for (var i in data) {
dataFormData[i] = data[i] + '';
}
form.val('initDataForm', dataFormData); form.val('initDataForm', dataFormData);
form.render(null, 'initDataForm'); form.render(null, 'initDataForm');
}) })