diff --git a/dbm-ui/frontend/src/views/db-manage/riak/list/components/components/DeleteNodes.vue b/dbm-ui/frontend/src/views/db-manage/riak/list/components/components/DeleteNodes.vue index 8eed83cf66..03be1e497e 100644 --- a/dbm-ui/frontend/src/views/db-manage/riak/list/components/components/DeleteNodes.vue +++ b/dbm-ui/frontend/src/views/db-manage/riak/list/components/components/DeleteNodes.vue @@ -13,16 +13,15 @@ - + :title="t('当前正常的节点数量少于n ,不能删除节点,请先添加节点', [3])" /> --> + :data-source="getRiakNodeList" /> @@ -97,15 +96,15 @@ const tableRef = ref(); - const nodeList = computed(() => tableRef.value?.getData() || []); - const normalCount = computed(() => nodeList.value.filter(nodeItem => nodeItem.isNodeNormal).length); + // const nodeList = computed(() => tableRef.value?.getData() || []); + // const normalCount = computed(() => nodeList.value.filter(nodeItem => nodeItem.isNodeNormal).length); - const isRowSelectEnable = ({ row }: { row: RiakNodeModel }) => { - if (normalCount.value > 3) { - return row.isNodeNormal; - } - return false; - }; + // const isRowSelectEnable = ({ row }: { row: RiakNodeModel }) => { + // if (normalCount.value > 3) { + // return row.isNodeNormal; + // } + // return false; + // }; const fetchData = () => { tableRef.value.fetchData({}, {