From 89d423ccb81b263507af7c1fb97400f10fdceae3 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Thu, 26 Nov 2020 10:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=97=E8=A1=A8=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=86=85=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../route/censusmsg/list-censusmsg.html | 7 +-- .../list-floatingpopulation.html | 36 ----------- .../route/homeperson/list-homeperson.html | 38 +---------- .../route/keyteenagers/list-keyteenagers.html | 59 +---------------- .../list-overseaspersonnel.html | 36 +---------- .../rentalhousing/list-rentalhousing.html | 63 ------------------- 6 files changed, 4 insertions(+), 235 deletions(-) diff --git a/src/main/resources/static/route/censusmsg/list-censusmsg.html b/src/main/resources/static/route/censusmsg/list-censusmsg.html index 40ad590..e766673 100644 --- a/src/main/resources/static/route/censusmsg/list-censusmsg.html +++ b/src/main/resources/static/route/censusmsg/list-censusmsg.html @@ -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 == '') { diff --git a/src/main/resources/static/route/floatingpopulation/list-floatingpopulation.html b/src/main/resources/static/route/floatingpopulation/list-floatingpopulation.html index 7f64ccd..ef9527f 100644 --- a/src/main/resources/static/route/floatingpopulation/list-floatingpopulation.html +++ b/src/main/resources/static/route/floatingpopulation/list-floatingpopulation.html @@ -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; } }, diff --git a/src/main/resources/static/route/homeperson/list-homeperson.html b/src/main/resources/static/route/homeperson/list-homeperson.html index 7202419..3a14fdd 100644 --- a/src/main/resources/static/route/homeperson/list-homeperson.html +++ b/src/main/resources/static/route/homeperson/list-homeperson.html @@ -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; } }, diff --git a/src/main/resources/static/route/keyteenagers/list-keyteenagers.html b/src/main/resources/static/route/keyteenagers/list-keyteenagers.html index 1fe6ad2..729f529 100644 --- a/src/main/resources/static/route/keyteenagers/list-keyteenagers.html +++ b/src/main/resources/static/route/keyteenagers/list-keyteenagers.html @@ -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; } }, diff --git a/src/main/resources/static/route/overseaspersonnel/list-overseaspersonnel.html b/src/main/resources/static/route/overseaspersonnel/list-overseaspersonnel.html index 907ec98..3f5eda6 100644 --- a/src/main/resources/static/route/overseaspersonnel/list-overseaspersonnel.html +++ b/src/main/resources/static/route/overseaspersonnel/list-overseaspersonnel.html @@ -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; } }, diff --git a/src/main/resources/static/route/rentalhousing/list-rentalhousing.html b/src/main/resources/static/route/rentalhousing/list-rentalhousing.html index 2f6e4c9..80a7bcc 100644 --- a/src/main/resources/static/route/rentalhousing/list-rentalhousing.html +++ b/src/main/resources/static/route/rentalhousing/list-rentalhousing.html @@ -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; } },