$(function() { var options1 = { id: "RS-R-table", url: ctx + "tr/method/criterionDetail/ByRS_R", createUrl: ctx + "tr/criterionDetail/add", updateUrl: ctx + "tr/criterionDetail/edit/{id}", removeUrl: ctx + "tr/criterionDetail/remove", showSearch: false, showRefresh: false, showToggle: false, showColumns: false, modalName: "RS评价方法", columns: [ { field: 'detailId', title: 'ID', visible: false }, { field: 'rsRKenengxing', title: '可能性分级' }, { field: 'rsRDingxing', title: '定性描述' }, { field: 'rsRDingliang', title: '定量描述' } ] }; $.table.init(options1); var options2 = { id: "RS-S-table", url: ctx + "tr/method/criterionDetail/ByRS_S", createUrl: ctx + "/add", updateUrl: ctx + "/edit/{id}", removeUrl: ctx + "/remove", showSearch: false, showRefresh: false, showToggle: false, showColumns: false, modalName: "RS评价方法", columns: [ { field: 'detailId', title: 'ID', visible: false }, { field: 'rsSDengji', title: '后果等级' }, { field: 'rsSRenyuan', title: '健康和安全影响' }, { field: 'rsSCaichanSunshi', title: '财产损失影响' }, { field: 'rsSShehuiYingxiang', title: '非财务性影响与社会影响' } ] }; $.table.init(options2); var options3 = { id: "RS-D-table", url: ctx + "tr/method/determinationList/ByRS_D", createUrl: ctx + "/add", updateUrl: ctx + "/edit/{id}", removeUrl: ctx + "/remove", showSearch: false, showRefresh: false, showToggle: false, showColumns: false, modalName: "LS评价方法", columns: [ { field: 'determinationId', title: 'ID', visible: false }, { field: 'detailScore', title: '风险值', formatter: function(value, row, index) { return row.riskMinNum +"-"+row.riskMaxNum; } }, { field: 'riskMinNum', title: '最小风险值' }, { field: 'riskMaxNum', title: '最大风险值' }, { field: 'riskLevel', title: '风险等级' }, { field: 'riskLevelDescription', title: '风险值' }, { field: 'riskLevelDescription', title: '风险等级描述' }, { field: 'riskAction', title: '应采取的行动/控制措施' }, { field: 'riskActionDeadline', title: '实施期限' } ] }; $.table.init(options3); var options4 = { id: "RS-Level-table", url: ctx + "tr/method/riskLevelList/ByRS_LEVEL", createUrl: ctx + "/add", updateUrl: ctx + "/edit/{id}", removeUrl: ctx + "/remove", showSearch: false, showRefresh: false, showToggle: false, showColumns: false, modalName: "RS评价方法", columns: [ { field: 'levelId', title: 'id', visible: false }, { field: 'riskLevel', title: '风险级别' }, { field: 'levelColor', title: '风险色' }, { field: 'levelBeginNum', title: '风险起始值' }, { field: 'levelEndNum', title: '风险结束值' } ] }; $.table.init(options4); });