9.26 偏离度提醒颜色错误

This commit is contained in:
jl-zhoujl2
2022-09-26 15:39:49 +08:00
parent 53940f64ce
commit a4c903da71

View File

@ -82,10 +82,12 @@ const ViewJuryScoringAnalysisFormModal: React.FC<ViewJuryScoringAnalysisFormModa
item.categoryList.map((dfpld: any, index: any) => { item.categoryList.map((dfpld: any, index: any) => {
let value = categoryValue(dfpld); 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 = ""; let a = "";
if (text > -10 && text < 10) {
if(text>-30&&text<30){ a = <p>{text}</p>
} else if (text > -30 && text < 30) {
a = <p style={{ color: 'blue' }}>{text}</p> a = <p style={{ color: 'blue' }}>{text}</p>
} else if (text > -50 && text < 50) { } else if (text > -50 && text < 50) {
a = <p style={{ color: '#ff9900' }}>{text}</p> a = <p style={{ color: '#ff9900' }}>{text}</p>
@ -102,9 +104,11 @@ const ViewJuryScoringAnalysisFormModal: React.FC<ViewJuryScoringAnalysisFormModa
}) })
const columns: ProColumns<any>[] = [ const columns: ProColumns<any>[] = [
{ title: name1, dataIndex: 'name', key: 'name', className: 'column-money' }, { 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 = { const obj = {
children: '', children: '',
props: {}, props: {},