var location = this.options.location; //获取当前控件的位置 var cr = FR.cellStr2ColumnRow(location); var col = cr.col; //列号 var ro = cr.row; //行号 var unit = FR.columnRow2CellStr({col: col+6, row: ro}); //获取对应的值 var Widget = contentPane.getWidgetByName("type1"); var a = Widget.getValue(); if (a == "非我司产品") { $('td[id^=013-0-0]').css({ 'background-color': "rgb("+204+","+204+","+204+")" }); } else { $('td[id^=O13-0-0]').css({ 'background-color': 'white' }); } |