xianjingfeng commented on code in PR #1897:
URL:
https://github.com/apache/incubator-uniffle/pull/1897#discussion_r1677356551
##########
dashboard/src/main/webapp/src/pages/serverstatus/ExcludeNodeList.vue:
##########
@@ -44,11 +69,35 @@ export default {
})
const currentServerStore = useCurrentServerStore()
+ const dialogFormVisible = ref(false)
+ const formLabelWidth = '10%'
+ const textarea = ref('')
+
+ /**
+ * Get the callback method of the parent page and update the number of
servers on the page.
+ */
+ const updateTotalPage = inject('updateTotalPage')
+
async function getShuffleExcludeNodesPage() {
const res = await getShuffleExcludeNodes()
pageData.tableData = res.data.data
}
+ async function addShuffleExcludeNodesPage() {
+ try {
+ const excludeNodes = textarea.value.split('\n').map((item) =>
item.trim())
+ const excludeNodesObj = { excludeNodes: excludeNodes }
+ const res = await addShuffleExcludeNodes(excludeNodesObj)
+ if (res.data.data === 'success') {
+ ElMessage.success('add successfully...')
Review Comment:
```suggestion
ElMessage.success('Add successfully.')
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]