From 828462b5c75a4c90f6754a79e16858e5e30c527e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 02 十二月 2021 17:18:53 +0800 Subject: [PATCH] 2021-12-02 --- src/templates/zshare/verifycard/index.jsx | 68 +++++++++++++++++----------------- 1 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/templates/zshare/verifycard/index.jsx b/src/templates/zshare/verifycard/index.jsx index eb38446..9d42d79 100644 --- a/src/templates/zshare/verifycard/index.jsx +++ b/src/templates/zshare/verifycard/index.jsx @@ -97,15 +97,15 @@ inputType: 'switch', render: (text, record) => record.status === 'false' ? ( - <div> + <div style={{color: '#ff4d4f'}}> {this.props.dict['model.status.forbidden']} - <StopOutlined style={{marginLeft: '5px', color: '#ff4d4f'}} /> + <StopOutlined style={{marginLeft: '5px'}} /> </div> ) : ( - <div> + <div style={{color: '#26C281'}}> {this.props.dict['model.status.open']} - <CheckCircleOutlined style={{marginLeft: '5px', color: '#52c41a'}}/> + <CheckCircleOutlined style={{marginLeft: '5px'}}/> </div> ) } @@ -133,15 +133,15 @@ inputType: 'switch', render: (text, record) => record.status === 'false' ? ( - <div> + <div style={{color: '#ff4d4f'}}> {this.props.dict['model.status.forbidden']} - <StopOutlined style={{marginLeft: '5px', color: '#ff4d4f'}} /> + <StopOutlined style={{marginLeft: '5px'}} /> </div> ) : ( - <div> + <div style={{color: '#26C281'}}> {this.props.dict['model.status.open']} - <CheckCircleOutlined style={{marginLeft: '5px', color: '#52c41a'}}/> + <CheckCircleOutlined style={{marginLeft: '5px'}}/> </div> ) }, @@ -207,15 +207,15 @@ inputType: 'switch', render: (text, record) => record.status === 'false' ? ( - <div> + <div style={{color: '#ff4d4f'}}> {this.props.dict['model.status.forbidden']} - <StopOutlined style={{marginLeft: '5px', color: '#ff4d4f'}} /> + <StopOutlined style={{marginLeft: '5px'}} /> </div> ) : ( - <div> + <div style={{color: '#26C281'}}> {this.props.dict['model.status.open']} - <CheckCircleOutlined style={{marginLeft: '5px', color: '#52c41a'}}/> + <CheckCircleOutlined style={{marginLeft: '5px'}}/> </div> ) } @@ -259,15 +259,15 @@ width: '9%', render: (text, record) => record.status === 'false' ? ( - <div> + <div style={{color: '#ff4d4f'}}> {this.props.dict['model.status.forbidden']} - <StopOutlined style={{marginLeft: '5px', color: '#ff4d4f'}} /> + <StopOutlined style={{marginLeft: '5px'}} /> </div> ) : ( - <div> + <div style={{color: '#26C281'}}> {this.props.dict['model.status.open']} - <CheckCircleOutlined style={{marginLeft: '5px', color: '#52c41a'}}/> + <CheckCircleOutlined style={{marginLeft: '5px'}}/> </div> ) }, @@ -314,11 +314,11 @@ width: '10%', render: (text, record) => { if (record.position === 'init') { - return '鍒濆鍖�' + return <span style={{color: 'orange'}}>鍒濆鍖�</span> } else if (record.position === 'front') { - return 'sql鍓�' + return <span style={{color: '#26C281'}}>sql鍓�</span> } else { - return 'sql鍚�' + return <span style={{color: '#1890ff'}}>sql鍚�</span> } } }, @@ -328,22 +328,22 @@ width: '10%', render: (text, record) => record.status === 'false' ? ( - <div> + <div style={{color: '#ff4d4f'}}> {this.props.dict['model.status.forbidden']} - <StopOutlined style={{marginLeft: '5px', color: '#ff4d4f'}} /> + <StopOutlined style={{marginLeft: '5px'}} /> </div> ) : ( - <div> + <div style={{color: '#26C281'}}> {this.props.dict['model.status.open']} - <CheckCircleOutlined style={{marginLeft: '5px', color: '#52c41a'}}/> + <CheckCircleOutlined style={{marginLeft: '5px'}}/> </div> ) }, { title: '鎿嶄綔', align: 'center', - width: '20%', + width: '140px', dataIndex: 'operation', render: (text, record) => (<div style={{textAlign: 'center'}}> @@ -383,9 +383,9 @@ width: '10%', render: (text, record) => { if (record.position === 'front') { - return 'sql鍓�' + return <span style={{color: '#26C281'}}>sql鍓�</span> } else { - return 'sql鍚�' + return <span style={{color: '#1890ff'}}>sql鍚�</span> } } }, @@ -395,15 +395,15 @@ width: '10%', render: (text, record) => record.status === 'false' ? ( - <div> + <div style={{color: '#ff4d4f'}}> {this.props.dict['model.status.forbidden']} - <StopOutlined style={{marginLeft: '5px', color: '#ff4d4f'}} /> + <StopOutlined style={{marginLeft: '5px'}} /> </div> ) : ( - <div> + <div style={{color: '#26C281'}}> {this.props.dict['model.status.open']} - <CheckCircleOutlined style={{marginLeft: '5px', color: '#52c41a'}}/> + <CheckCircleOutlined style={{marginLeft: '5px'}}/> </div> ) }, @@ -496,15 +496,15 @@ width: '8%', render: (text, record) => record.status === 'false' ? ( - <div> + <div style={{color: '#ff4d4f'}}> {this.props.dict['model.status.forbidden']} - <StopOutlined style={{marginLeft: '5px', color: '#ff4d4f'}} /> + <StopOutlined style={{marginLeft: '5px'}} /> </div> ) : ( - <div> + <div style={{color: '#26C281'}}> {this.props.dict['model.status.open']} - <CheckCircleOutlined style={{marginLeft: '5px', color: '#52c41a'}}/> + <CheckCircleOutlined style={{marginLeft: '5px'}}/> </div> ) }, -- Gitblit v1.8.0