修改列表展示内容。

This commit is contained in:
Renpc-kilig 2020-11-26 10:04:55 +08:00
parent 31b6ea7f05
commit 89d423ccb8
6 changed files with 4 additions and 235 deletions

View File

@ -145,11 +145,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
if(rowData == 01) {
rowData = '一致';
}else if(rowData == 02) {
rowData = '不一致';
}
return rowData;
}
},
@ -171,7 +166,7 @@
return rowData;
}
},
{field: 'relationshipWithHouseholderDictionaryName', width: 150, title: '与户主关系', align:'center',
{field: 'relationshipWithHouseholder', width: 150, title: '与户主关系', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {

View File

@ -67,40 +67,6 @@
var resizeTimeout = null;
var tableUrl = 'api/floatingpopulation/listpagefloatingpopulation';
// 修改列表住所类型展示内容
function changeResidenceType(value) {
if(value == 01) {
value = '自购房屋';
}else if(value == 02) {
value = '租赁房屋';
}else if(value == 03) {
value = '寄宿';
}else if(value == 04) {
value = '借住';
}else if(value == 05) {
value = '单位宿舍';
}else if(value == 06) {
value = '临时性宿舍';
}else if(value == 07) {
value = '农民工公寓';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 修改列表住所类型展示内容
function changeRegistrationType(value) {
if(value == 01) {
value = '居住证';
}else if(value == 02) {
value = '暂住证';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 初始化表格
function initTable() {
table.render({
@ -179,7 +145,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeResidenceType(rowData);
return rowData;
}
},
@ -198,7 +163,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeRegistrationType(rowData);
return rowData;
}
},

View File

@ -67,34 +67,6 @@
var resizeTimeout = null;
var tableUrl = 'api/homeperson/listpagehomeperson';
// 修改列表留守人员类型展示内容
function changeHomePersonType(value) {
if(value == 01) {
value = '留守老人';
}else if(value == 02) {
value = '留守妇女';
}else if(value == 03) {
value = '留守儿童';
}
return value;
}
// 修改列表健康状况展示内容
function changeHealthy(value) {
if(value == 01) {
value = '很好';
}else if(value == 02) {
value = '较好';
}else if(value == 03) {
value = '一般';
}else if(value == 04) {
value = '较差';
}else if(value == 05) {
value = '很差';
}
return value;
}
// 初始化表格
function initTable() {
table.render({
@ -164,11 +136,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
if(rowData == 01) {
rowData = '一致';
}else if(rowData == 02) {
rowData = '不一致';
}
return rowData;
}
},
@ -178,11 +145,10 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeHomePersonType(rowData);
return rowData;
}
},
{field: 'relationshipWithHomePeopleName', width: 150, title: '与留守人员关系', align:'center',
{field: 'relationshipWithHomePeople', width: 150, title: '与留守人员关系', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
@ -197,7 +163,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeHealthy(rowData);
return rowData;
}
},
@ -216,7 +181,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeHealthy(rowData);
return rowData;
}
},

View File

@ -67,60 +67,6 @@
var resizeTimeout = null;
var tableUrl = 'api/keyteenagers/listpagekeyteenagers';
// 修改列表人员类型展示内容
function changePersonType(value) {
if(value == 01) {
value = '闲散青少年';
}else if(value == 02) {
value = '有不良行为或严重不良行为青少年';
}else if(value == 03) {
value = '流浪乞讨未成年人';
}else if(value == 04) {
value = '服刑人员未成年子女';
}else if(value == 05) {
value = '农村留守儿童';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 修改列表家庭情况展示内容
function changePersonType(value) {
if(value == 01) {
value = '低收入家庭';
}else if(value == 02) {
value = '单亲家庭';
}else if(value == 03) {
value = '流动家庭';
}else if(value == 04) {
value = '扶养人受教育水平相对较低';
}else if(value == 05) {
value = '与父母关系不融洽';
}else if(value == 06) {
value = '家庭成员的不良行为多';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 修改列表帮扶手段展示内容
function changeHelpingMethod(value) {
if(value == 01) {
value = '教育矫治';
}else if(value == 02) {
value = '思想引导';
}else if(value == 03) {
value = '困难帮扶';
}else if(value == 04) {
value = '心理关爱';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 初始化表格
function initTable() {
table.render({
@ -190,7 +136,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changePersonType(rowData);
return rowData;
}
},
@ -200,7 +145,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changePersonType(rowData);
return rowData;
}
},
@ -222,7 +166,7 @@
return rowData;
}
},
{field: 'relationshipWithGuardianName', width: 150, title: '与监护人关系', align:'center',
{field: 'relationshipWithGuardian', width: 150, title: '与监护人关系', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
@ -296,7 +240,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeHelpingMethod(rowData);
return rowData;
}
},

View File

@ -67,38 +67,6 @@
var resizeTimeout = null;
var tableUrl = 'api/overseaspersonnel/listpageoverseaspersonnel';
// 修改列表性别展示内容
function changeSex(value) {
if(value == 0) {
value = '未知的性别';
}else if(value == 1) {
value = '男性';
}else if(value == 2) {
value = '女性';
}else {
value = '未说明的性别';
}
return value;
}
// 修改列表来华目的展示内容
function changeToChinaPurpose(value) {
if(value == 01) {
value = '商务';
}else if(value == 02) {
value = '就业';
}else if(value == 03) {
value = '学习';
}else if(value == 04) {
value = '定居';
}else if(value == 05) {
value = '探亲';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 初始化表格
function initTable() {
table.render({
@ -150,11 +118,10 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeSex(rowData);
return rowData;
}
},
{field: 'nationalityName', width: 150, title: '国籍(地区)', align:'center',
{field: 'nationality', width: 150, title: '国籍(地区)', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
@ -178,7 +145,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeToChinaPurpose(rowData);
return rowData;
}
},

View File

@ -67,66 +67,6 @@
var resizeTimeout = null;
var tableUrl = 'api/rentalhousing/listpagerentalhousing';
// 修改列表建筑用途展示内容
function changeArchitecturePurpose(value) {
if(value == 01) {
value = '住宅';
}else if(value == 02) {
value = '商业';
}else if(value == 03) {
value = '办公';
}else if(value == 04) {
value = '工业';
}else if(value == 05) {
value = '仓储';
}else if(value == 06) {
value = '商住混用';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 修改列表出租用途展示内容
function changeLeasePurpose(value) {
if(value == 01) {
value = '宿舍';
}else if(value == 02) {
value = '住房';
}else if(value == 03) {
value = '商铺';
}else if(value == 04) {
value = '办公';
}else if(value == 05) {
value = '仓库';
}else if(value == 06) {
value = '厂房';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 修改列表隐患类型展示内容
function changeHiddenDangerType(value) {
if(value == 00) {
value = '无';
}else if(value == 01) {
value = '火灾隐患';
}else if(value == 02) {
value = '治安隐患';
}else if(value == 03) {
value = '矛盾纠纷隐患';
}else if(value == 04) {
value = '危化物品隐患';
}else if(value == 05) {
value = '疾病传染隐患';
}else if(value == 99) {
value = '其他';
}
return value;
}
// 初始化表格
function initTable() {
table.render({
@ -169,7 +109,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeArchitecturePurpose(rowData);
return rowData;
}
},
@ -179,7 +118,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeLeasePurpose(rowData);
return rowData;
}
},
@ -189,7 +127,6 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
rowData = changeHiddenDangerType(rowData);
return rowData;
}
},