|
|
@@ -2924,18 +2924,40 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
variant="ghost"
|
|
|
size="sm"
|
|
|
onClick={() => handleEdit(record)}
|
|
|
- className="h-8 px-2"
|
|
|
+ className="h-8 px-2 transition-colors hover:underline"
|
|
|
+ style={{ color: '#000000' }}
|
|
|
+ onMouseEnter={(e) => {
|
|
|
+ e.currentTarget.style.color = '#1677ff';
|
|
|
+ e.currentTarget.style.textDecoration = 'underline';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #1677ff');
|
|
|
+ }}
|
|
|
+ onMouseLeave={(e) => {
|
|
|
+ e.currentTarget.style.color = '#000000';
|
|
|
+ e.currentTarget.style.textDecoration = 'none';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #000000');
|
|
|
+ }}
|
|
|
>
|
|
|
- <Edit2 className="w-4 h-4" />
|
|
|
+ <Edit2 className="w-4 h-4" style={{ color: '#000000' }} />
|
|
|
<span className="ml-1">编辑</span>
|
|
|
</UIButton>
|
|
|
<UIButton
|
|
|
variant="ghost"
|
|
|
size="sm"
|
|
|
onClick={() => handleDelete(record.id)}
|
|
|
- className="h-8 px-2 text-red-600 hover:text-red-700"
|
|
|
+ className="h-8 px-2 transition-colors hover:underline"
|
|
|
+ style={{ color: '#000000' }}
|
|
|
+ onMouseEnter={(e) => {
|
|
|
+ e.currentTarget.style.color = '#1677ff';
|
|
|
+ e.currentTarget.style.textDecoration = 'underline';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #1677ff');
|
|
|
+ }}
|
|
|
+ onMouseLeave={(e) => {
|
|
|
+ e.currentTarget.style.color = '#000000';
|
|
|
+ e.currentTarget.style.textDecoration = 'none';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #000000');
|
|
|
+ }}
|
|
|
>
|
|
|
- <Trash2 className="w-4 h-4" />
|
|
|
+ <Trash2 className="w-4 h-4" style={{ color: '#000000' }} />
|
|
|
<span className="ml-1">删除</span>
|
|
|
</UIButton>
|
|
|
</div>
|
|
|
@@ -3057,27 +3079,60 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
variant="ghost"
|
|
|
size="sm"
|
|
|
onClick={() => handleDesign(record as any)}
|
|
|
- className="h-8 px-2"
|
|
|
+ className="h-8 px-2 transition-colors hover:underline"
|
|
|
+ style={{ color: '#000000' }}
|
|
|
+ onMouseEnter={(e) => {
|
|
|
+ e.currentTarget.style.color = '#1677ff';
|
|
|
+ e.currentTarget.style.textDecoration = 'underline';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #1677ff');
|
|
|
+ }}
|
|
|
+ onMouseLeave={(e) => {
|
|
|
+ e.currentTarget.style.color = '#000000';
|
|
|
+ e.currentTarget.style.textDecoration = 'none';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #000000');
|
|
|
+ }}
|
|
|
>
|
|
|
- <Workflow className="w-4 h-4" />
|
|
|
+ <Workflow className="w-4 h-4" style={{ color: '#000000' }} />
|
|
|
<span className="ml-1">设计</span>
|
|
|
</UIButton>
|
|
|
<UIButton
|
|
|
variant="ghost"
|
|
|
size="sm"
|
|
|
onClick={() => handleEdit(record as any)}
|
|
|
- className="h-8 px-2"
|
|
|
+ className="h-8 px-2 transition-colors hover:underline"
|
|
|
+ style={{ color: '#000000' }}
|
|
|
+ onMouseEnter={(e) => {
|
|
|
+ e.currentTarget.style.color = '#1677ff';
|
|
|
+ e.currentTarget.style.textDecoration = 'underline';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #1677ff');
|
|
|
+ }}
|
|
|
+ onMouseLeave={(e) => {
|
|
|
+ e.currentTarget.style.color = '#000000';
|
|
|
+ e.currentTarget.style.textDecoration = 'none';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #000000');
|
|
|
+ }}
|
|
|
>
|
|
|
- <Edit2 className="w-4 h-4" />
|
|
|
+ <Edit2 className="w-4 h-4" style={{ color: '#000000' }} />
|
|
|
<span className="ml-1">编辑</span>
|
|
|
</UIButton>
|
|
|
<UIButton
|
|
|
variant="ghost"
|
|
|
size="sm"
|
|
|
onClick={() => handleDelete(record.id!)}
|
|
|
- className="h-8 px-2 text-red-600 hover:text-red-700"
|
|
|
+ className="h-8 px-2 transition-colors hover:underline"
|
|
|
+ style={{ color: '#000000' }}
|
|
|
+ onMouseEnter={(e) => {
|
|
|
+ e.currentTarget.style.color = '#1677ff';
|
|
|
+ e.currentTarget.style.textDecoration = 'underline';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #1677ff');
|
|
|
+ }}
|
|
|
+ onMouseLeave={(e) => {
|
|
|
+ e.currentTarget.style.color = '#000000';
|
|
|
+ e.currentTarget.style.textDecoration = 'none';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #000000');
|
|
|
+ }}
|
|
|
>
|
|
|
- <Trash2 className="w-4 h-4" />
|
|
|
+ <Trash2 className="w-4 h-4" style={{ color: '#000000' }} />
|
|
|
<span className="ml-1">删除</span>
|
|
|
</UIButton>
|
|
|
</div>
|
|
|
@@ -3362,9 +3417,20 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
e.preventDefault();
|
|
|
handleWorkJobView(record);
|
|
|
}}
|
|
|
- className="h-8 px-2"
|
|
|
+ className="h-8 px-2 transition-colors hover:underline"
|
|
|
+ style={{ color: '#000000' }}
|
|
|
+ onMouseEnter={(e) => {
|
|
|
+ e.currentTarget.style.color = '#1677ff';
|
|
|
+ e.currentTarget.style.textDecoration = 'underline';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #1677ff');
|
|
|
+ }}
|
|
|
+ onMouseLeave={(e) => {
|
|
|
+ e.currentTarget.style.color = '#000000';
|
|
|
+ e.currentTarget.style.textDecoration = 'none';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #000000');
|
|
|
+ }}
|
|
|
>
|
|
|
- <Eye className="w-4 h-4" />
|
|
|
+ <Eye className="w-4 h-4" style={{ color: '#000000' }} />
|
|
|
<span className="ml-1">查看</span>
|
|
|
</UIButton>
|
|
|
{canEdit ? (
|
|
|
@@ -3372,9 +3438,20 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
variant="ghost"
|
|
|
size="sm"
|
|
|
onClick={() => handleWorkJobEdit(record)}
|
|
|
- className="h-8 px-2"
|
|
|
+ className="h-8 px-2 transition-colors hover:underline"
|
|
|
+ style={{ color: '#000000' }}
|
|
|
+ onMouseEnter={(e) => {
|
|
|
+ e.currentTarget.style.color = '#1677ff';
|
|
|
+ e.currentTarget.style.textDecoration = 'underline';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #1677ff');
|
|
|
+ }}
|
|
|
+ onMouseLeave={(e) => {
|
|
|
+ e.currentTarget.style.color = '#000000';
|
|
|
+ e.currentTarget.style.textDecoration = 'none';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #000000');
|
|
|
+ }}
|
|
|
>
|
|
|
- <Edit2 className="w-4 h-4" />
|
|
|
+ <Edit2 className="w-4 h-4" style={{ color: '#000000' }} />
|
|
|
<span className="ml-1">编辑</span>
|
|
|
</UIButton>
|
|
|
) : (
|
|
|
@@ -3393,9 +3470,20 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
variant="ghost"
|
|
|
size="sm"
|
|
|
onClick={() => handleWorkJobDelete(record.id!)}
|
|
|
- className="h-8 px-2 text-red-600 hover:text-red-700"
|
|
|
+ className="h-8 px-2 transition-colors hover:underline"
|
|
|
+ style={{ color: '#000000' }}
|
|
|
+ onMouseEnter={(e) => {
|
|
|
+ e.currentTarget.style.color = '#1677ff';
|
|
|
+ e.currentTarget.style.textDecoration = 'underline';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #1677ff');
|
|
|
+ }}
|
|
|
+ onMouseLeave={(e) => {
|
|
|
+ e.currentTarget.style.color = '#000000';
|
|
|
+ e.currentTarget.style.textDecoration = 'none';
|
|
|
+ e.currentTarget.querySelector('svg')?.setAttribute('style', 'color: #000000');
|
|
|
+ }}
|
|
|
>
|
|
|
- <Trash2 className="w-4 h-4" />
|
|
|
+ <Trash2 className="w-4 h-4" style={{ color: '#000000' }} />
|
|
|
<span className="ml-1">删除</span>
|
|
|
</UIButton>
|
|
|
</div>
|