Skip to content

Commit

Permalink
fix(frontend): mysql开区单据详情、单据克隆、手输域名等bug #7779
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 24203
  • Loading branch information
JustaCattt authored and jinquantianxia committed Nov 20, 2024
1 parent b16b74d commit 4e19380
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
useTicketCloneInfo({
type: TicketTypes.MYSQL_OPEN_AREA,
onSuccess({ data }) {
data.forEach((item) => {
domainMemo[item.clusterData.master_domain] = true;
selectedClusters.value[props.clusterType].push(item.clusterData);
});
tableData.value = data;
},
});
Expand Down Expand Up @@ -166,6 +170,9 @@
// 输入集群后查询集群信息并填充到table
const handleInputCluster = async (index: number, item: TendbhaModel) => {
if (domainMemo[item.master_domain]) {
return;
}
const row = createRowData({
clusterData: {
id: item.id,
Expand Down Expand Up @@ -225,6 +232,7 @@
// delete domainMemo[domain];
const clustersArr = selectedClusters.value[props.clusterType];
selectedClusters.value[props.clusterType] = clustersArr.filter((item) => item.master_domain !== domain);
delete domainMemo[domain];
}
dataList.splice(index, 1);
tableData.value = dataList;
Expand Down

0 comments on commit 4e19380

Please sign in to comment.