9.26 偏离度提醒颜色错误
This commit is contained in:
@ -82,10 +82,12 @@ const ViewJuryScoringAnalysisFormModal: React.FC<ViewJuryScoringAnalysisFormModa
|
||||
|
||||
item.categoryList.map((dfpld: any, index: any) => {
|
||||
let value = categoryValue(dfpld);
|
||||
tbpldzt.children.push({title:value,dataIndex:dfpld+item.userId,key:dfpld+item.userId,render: (text: any, record: any, index: any) => {
|
||||
tbpldzt.children.push({
|
||||
title: value, dataIndex: dfpld + item.userId, key: dfpld + item.userId, render: (text: any, record: any, index: any) => {
|
||||
let a = "";
|
||||
|
||||
if(text>-30&&text<30){
|
||||
if (text > -10 && text < 10) {
|
||||
a = <p>{text}</p>
|
||||
} else if (text > -30 && text < 30) {
|
||||
a = <p style={{ color: 'blue' }}>{text}</p>
|
||||
} else if (text > -50 && text < 50) {
|
||||
a = <p style={{ color: '#ff9900' }}>{text}</p>
|
||||
@ -102,9 +104,11 @@ const ViewJuryScoringAnalysisFormModal: React.FC<ViewJuryScoringAnalysisFormModa
|
||||
})
|
||||
const columns: ProColumns<any>[] = [
|
||||
{ title: name1, dataIndex: 'name', key: 'name', className: 'column-money' },
|
||||
{ title: '打分偏离度(%)', children:juryTitle,className: 'column-money'
|
||||
{
|
||||
title: '打分偏离度(%)', children: juryTitle, className: 'column-money'
|
||||
},
|
||||
{ title: '操作',render: (text: any, record: any, index: any) => {
|
||||
{
|
||||
title: '操作', render: (text: any, record: any, index: any) => {
|
||||
const obj = {
|
||||
children: '',
|
||||
props: {},
|
||||
|
Reference in New Issue
Block a user