mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-20 06:34:55 +00:00
[improvement][headless-fe] Revamped the interaction for semantic modeling routing and successfully implemented the switching between dimension and dataset management.
This commit is contained in:
@@ -146,8 +146,8 @@ const ClassMetricTable: React.FC<Props> = ({ onEmptyMetricData }) => {
|
||||
const columnsConfig = ColumnsConfig({
|
||||
indicatorInfo: {
|
||||
url: '/model/metric/:domainId/:modelId/:indicatorId',
|
||||
onNameClick: (record: ISemantic.IMetricItem) => {
|
||||
setSelectMetric(record);
|
||||
onNameClick: (record) => {
|
||||
setSelectMetric(record as ISemantic.IMetricItem);
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -460,8 +460,9 @@ const ClassMetricTable: React.FC<Props> = ({ onEmptyMetricData }) => {
|
||||
key="create"
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
setMetricItem(undefined);
|
||||
setCreateModalVisible(true);
|
||||
toMetricEditPage(selectDomainId, modelId!, 0);
|
||||
// setMetricItem(undefined);
|
||||
// setCreateModalVisible(true);
|
||||
}}
|
||||
>
|
||||
创建指标
|
||||
|
||||
Reference in New Issue
Block a user