{data.master_domain}
- {data.operations && data.operations.length > 0 &&
- {{
- default: () => {data.operations.length},
- content: () => ,
- }}
- }
+ {data.phase === 'offline' && (
+
+ )}
+ {data.operations && data.operations.length > 0 && (
+
+ {{
+ default: () => {data.operations.length},
+ content: () => ,
+ }}
+
+ )}
),
},
{
@@ -142,11 +167,6 @@
field: 'cluster_name',
showOverflowTooltip: true,
},
- // {
- // label: t('所属模块'),
- // field: 'db_module_name',
- // showOverflowTooltip: true,
- // },
{
label: t('管控区域'),
field: 'bk_cloud_name',
@@ -214,7 +234,6 @@
watch(() => activeTab.value, (tab) => {
if (tab) {
searchSelectValue.value = [];
- handleTablePageChange(1);
}
});
@@ -232,7 +251,9 @@
return;
}
for (const data of tableData.value) {
- handleSelecteRow(data, value);
+ if (data.phase !== 'offline') {
+ handleSelecteRow(data, value);
+ }
}
};
@@ -276,7 +297,7 @@
};
const handleRowClick = (row:any, data: ResourceItem) => {
- if (props.disabledRowConfig && props.disabledRowConfig.handler(data)) {
+ if ((props.disabledRowConfig && props.disabledRowConfig.handler(data)) || data.phase === 'offline') {
return;
}
const currentSelected = selectedMap.value[activeTab.value];
@@ -285,19 +306,19 @@
};
- function handleTablePageChange(value: number) {
+ const handleTablePageChange = (value: number) => {
handleChangePage(value)
.then(() => {
checkSelectedAll();
});
- }
+ };
- function handleTableLimitChange(value: number) {
+ const handleTableLimitChange = (value: number) => {
handeChangeLimit(value)
.then(() => {
checkSelectedAll();
});
- }
+ };