Created
September 2, 2021 09:18
-
-
Save Saszr/1a26431e323351b11cf52494ee520f13 to your computer and use it in GitHub Desktop.
代码暂存
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleApprovalStateBtnDisplay = () => { | |
const currentState = document.querySelector( | |
"[data-name='Tabledf1a31a81'] tbody > tr:nth-child(2) > td:nth-child(1)", | |
).innerText; | |
if (currentState === '未提交') { | |
document | |
.querySelector( | |
"[data-name='Tabledf1a31a81'] tbody > tr:nth-child(2) > td:last-child div > button:nth-child(3)", | |
) | |
.setAttribute('style', 'display: none'); | |
document | |
.querySelector( | |
"[data-name='Tabledf1a31a81'] tbody > tr:nth-child(2) > td:last-child div > button:nth-child(4)", | |
) | |
.setAttribute('style', 'display: none'); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment