mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-22 23:14:33 +08:00
[improvement][headless-fe] Revamped the interaction for semantic modeling routing and successfully implemented the switching between dimension and dataset management. (#1934)
Co-authored-by: tristanliu <tristanliu@tencent.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import styles from '../../components/style.less';
|
||||
import { ISemantic } from '../../data';
|
||||
import { ColumnsConfig } from '../../components/TableColumnRender';
|
||||
import ViewSearchFormModal from './ViewSearchFormModal';
|
||||
import { toDatasetEditPage } from '@/pages/SemanticModel/utils';
|
||||
|
||||
type Props = {
|
||||
// dataSetList: ISemantic.IDatasetItem[];
|
||||
@@ -90,9 +91,10 @@ const DataSetTable: React.FC<Props> = ({ disabledEdit = false }) => {
|
||||
return (
|
||||
<a
|
||||
onClick={() => {
|
||||
setEditFormStep(1);
|
||||
setViewItem(record);
|
||||
setCreateDataSourceModalOpen(true);
|
||||
toDatasetEditPage(record.domainId, record.id, 'relation');
|
||||
// setEditFormStep(1);
|
||||
// setViewItem(record);
|
||||
// setCreateDataSourceModalOpen(true);
|
||||
}}
|
||||
>
|
||||
{name}
|
||||
@@ -143,9 +145,10 @@ const DataSetTable: React.FC<Props> = ({ disabledEdit = false }) => {
|
||||
<a
|
||||
key="metricEditBtn"
|
||||
onClick={() => {
|
||||
setEditFormStep(0);
|
||||
setViewItem(record);
|
||||
setCreateDataSourceModalOpen(true);
|
||||
toDatasetEditPage(record.domainId, record.id);
|
||||
// setEditFormStep(0);
|
||||
// setViewItem(record);
|
||||
// setCreateDataSourceModalOpen(true);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
|
||||
Reference in New Issue
Block a user