Commit fa728aed authored by 皮倩雯's avatar 皮倩雯

fix: '优化维保方案样式'

parent 0e016648
Pipeline #79854 passed with stages
...@@ -367,15 +367,15 @@ const maintenance = () => { ...@@ -367,15 +367,15 @@ const maintenance = () => {
align: 'center', align: 'center',
render: record => { render: record => {
if (record === '保养') { if (record === '保养') {
return <Tag color="#2db7f5">保养</Tag>; return <Tag color="purple">保养</Tag>;
} else if (record === '巡检') { } else if (record === '巡检') {
return <Tag color="#08979c">巡检</Tag>; return <Tag color="geekblue">巡检</Tag>;
} else if (record === '水箱清洗') { } else if (record === '水箱清洗') {
return <Tag color="#d3adf7">水箱清洗</Tag>; return <Tag color="cyan">水箱清洗</Tag>;
} else if (record === '扫码巡检') { } else if (record === '扫码巡检') {
return <Tag color="#e3799e">扫码巡检</Tag>; return <Tag color="cyan">扫码巡检</Tag>;
} else if (record) { } else if (record) {
return <Tag color="#f50">{record}</Tag>; return <Tag color="orange">{record}</Tag>;
} }
}, },
}, },
...@@ -384,10 +384,10 @@ const maintenance = () => { ...@@ -384,10 +384,10 @@ const maintenance = () => {
dataIndex: 'docycle', dataIndex: 'docycle',
key: 'docycle', key: 'docycle',
align: 'center', align: 'center',
width: 100, width: 120,
onCell: () => ({ onCell: () => ({
style: { style: {
maxWidth: 100, maxWidth: 120,
overflow: 'hidden', overflow: 'hidden',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
...@@ -400,13 +400,13 @@ const maintenance = () => { ...@@ -400,13 +400,13 @@ const maintenance = () => {
} else { } else {
let list = JSON.parse(record); let list = JSON.parse(record);
if (list.type === '小时') { if (list.type === '小时') {
return `${list.cycle}小时一次`; return <Tag color="#2db7f5">{list.cycle}小时一次</Tag>;
} else if (list.type === '日') { } else if (list.type === '日') {
return `${list.cycle}日一次`; return <Tag color="#08979c">{list.cycle}日一次</Tag>;
} else if (list.type === '周') { } else if (list.type === '周') {
return `一周一次`; return <Tag color="#d3adf7">一周一次</Tag>;
} else if (list.type === '月') { } else if (list.type === '月') {
return `${list.cycle}月一次`; return <Tag color="#e3799e">{list.cycle}月一次</Tag>;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment