列表展示美化

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) {
orgNameFun.getOrgName(data.orgId, function(nameData) {
data['orgName'] = nameData.institutionName;
var dataFormData = {};
for (var i in data) {
dataFormData[i] = data[i] + '';
}
if ('1' == data.planType) {
data.planType = '初训';
} else if ('2' == data.planType) {
@ -231,6 +227,10 @@
} else if ('3' == data.planType) {
data.planType = '换证 ';
}
var dataFormData = {};
for (var i in data) {
dataFormData[i] = data[i] + '';
}
form.val('initDataForm', dataFormData);
form.render(null, 'initDataForm');
})

View File

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