$(function() { var options1 = { id: "MES-M-table", url: ctx + "tr/method/criterionDetail/ByMES_M", 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: "MES评价方法", columns: [ { field: 'detailId', title: 'ID', visible: false }, { field: 'detailScore', title: '分值' }, { field: 'mesMBiaozhun', title: '标准' } // , // { // title: '操作', // align: 'center', // formatter: function(value, row, index) { // var actions = []; // actions.push('编辑 '); // actions.push('删除'); // return actions.join(''); // } // } ] }; $.table.init(options1); var options2 = { id: "MES-E-table", url: ctx + "tr/method/criterionDetail/ByMES_E", createUrl: ctx + "/add", updateUrl: ctx + "/edit/{id}", removeUrl: ctx + "/remove", showSearch: false, showRefresh: false, showToggle: false, showColumns: false, modalName: "MES评价方法", columns: [ { field: 'detailId', title: 'ID', visible: false }, { field: 'detailScore', title: '分值' }, { field: 'mesEE1', title: 'E1(人身伤害和职业相关病症):人体暴露于危险状态的频繁程度' }, { field: 'mesEE2', title: 'E2(财产损失和环境污染):危险状态出现的频次' } // , // { // title: '操作', // align: 'center', // formatter: function(value, row, index) { // var actions = []; // actions.push('编辑 '); // actions.push('删除'); // return actions.join(''); // } // } ] }; $.table.init(options2); var options3 = { id: "MES-S-table", url: ctx + "tr/method/criterionDetail/ByMES_S", createUrl: ctx + "/add", updateUrl: ctx + "/edit/{id}", removeUrl: ctx + "/remove", showSearch: false, showRefresh: false, showToggle: false, showColumns: false, modalName: "MES评价方法", columns: [ { field: 'detailId', title: 'ID', visible: false }, { field: 'detailScore', title: '分值' }, { field: 'mesSFalu', title: '法律、法规及其他要求' }, { field: 'mesSRenyuanShangwang', title: '人员伤亡' }, { field: 'mesSJingjiSunshi', title: '直接经济损失' }, { field: 'mesSTinggong', title: '停工' } // , // { // title: '操作', // align: 'center', // formatter: function(value, row, index) { // var actions = []; // actions.push('编辑 '); // actions.push('删除'); // return actions.join(''); // } // } ] }; $.table.init(options3); var options4 = { id: "MES-D-table", url: ctx + "tr/method/determinationList/ByMES_D", createUrl: ctx + "/add", updateUrl: ctx + "/edit/{id}", removeUrl: ctx + "/remove", showSearch: false, showRefresh: false, showToggle: false, showColumns: false, modalName: "MES评价方法", 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: '风险值' } // , // { // title: '操作', // align: 'center', // formatter: function(value, row, index) { // var actions = []; // actions.push('编辑 '); // actions.push('删除'); // return actions.join(''); // } // } ] }; $.table.init(options4); var options5 = { id: "MES-Level-table", url: ctx + "tr/method/riskLevelList/ByMES_LEVEL", createUrl: ctx + "/add", updateUrl: ctx + "/edit/{id}", removeUrl: ctx + "/remove", showSearch: false, showRefresh: false, showToggle: false, showColumns: false, modalName: "MES评价方法", columns: [ { field: 'levelId', title: 'id', visible: false }, { field: 'riskLevel', title: '风险级别' }, { field: 'levelColor', title: '风险色' }, { field: 'levelBeginNum', title: '风险起始值' }, { field: 'levelEndNum', title: '风险结束值' } // , // { // title: '操作', // align: 'center', // formatter: function(value, row, index) { // var actions = []; // actions.push('编辑 '); // actions.push('删除'); // return actions.join(''); // } // } ] }; $.table.init(options5); });