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').css({ 'background-color': "rgb("+204+","+204+","+204+")" });} else { $('td').css({ 'background-color': 'white' });}