提交 2636972b authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 1b3cb1c4
差异被折叠。
......@@ -11,7 +11,7 @@
},
"dependencies": {
"@ant-design/charts": "^2.2.7",
"@ant-design/icons": "^5.6.1",
"@ant-design/icons": "^6.0.0",
"@antv/g2": "^5.2.12",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/modifiers": "^9.0.0",
......@@ -20,16 +20,15 @@
"@fortaine/fetch-event-source": "^3.0.6",
"@tanstack/react-query": "^5.69.0",
"@tanstack/react-query-devtools": "^5.69.0",
"antd": "^5.24.4",
"antd": "^5.24.5",
"axios": "^1.8.4",
"blueimp-md5": "^2.19.0",
"lodash-es": "^4.17.21",
"lucide-react": "^0.477.0",
"openai": "^4.87.3",
"lucide-react": "^0.484.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "^10.0.0",
"react-router": "^7.3.0",
"react-markdown": "^10.1.0",
"react-router": "^7.4.0",
"react-syntax-highlighter": "^15.6.1",
"remark-gfm": "^4.0.1",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
......@@ -49,7 +48,7 @@
"eslint-plugin-react-refresh": "^0.4.19",
"sass-embedded": "^1.85.1",
"typescript": "^5.2.2",
"vite": "^6.2.2",
"vite": "^6.2.3",
"vite-plugin-mkcert": "^1.17.8"
}
}
......@@ -27,17 +27,6 @@ export default function DataWrap({
}
})
const Header = () => {
if (headerRender) return headerRender(data)
return (
<Flex justify="space-between" style={{ marginBottom: '20px' }}>
<Flex wrap gap={10}>
{buttons}
</Flex>
<ViewDataFiledButtonModal></ViewDataFiledButtonModal>
</Flex>
)
}
return (
<Flex gap={20} style={{ height: '100%' }}>
<Card className="app-card" title={title} style={{ flex: 1, overflowX: 'hidden' }}>
......@@ -45,7 +34,16 @@ export default function DataWrap({
empty
) : (
<>
<Header />
{headerRender ? (
headerRender(data)
) : (
<Flex justify="space-between" style={{ marginBottom: '20px' }}>
<Flex wrap gap={10}>
{buttons}
</Flex>
<ViewDataFiledButtonModal></ViewDataFiledButtonModal>
</Flex>
)}
<DataRender rowKey={'pk_id'} loading={isPending} dataSource={data.list} columns={columns} />
</>
)}
......
......@@ -358,7 +358,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -304,7 +304,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -292,7 +292,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -320,7 +320,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -271,7 +271,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -341,7 +341,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -300,7 +300,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -354,7 +354,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -309,7 +309,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
......@@ -302,7 +302,7 @@ json
</div>
))}
</Form>
{step >= 3 && (
{current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}>
<p>计算结束!</p>
<p>计算结果如下:</p>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论