Commit 90714323 by zhaochengxiang

放弃protable 内网卡顿

parent ec4fb653
......@@ -162,7 +162,7 @@ const ImportAction = (props) => {
onChange && onChange(data||{});
getSupportedDatatypes();
if ((action==='add'&&((modelerId||'')!=='')) || action==='edit') {
if (data) {
form.setFieldsValue({
cnName: data.cnName||'',
name: data.name||'',
......
......@@ -479,7 +479,7 @@ const ImportActionTable = (props) => {
},
{
title: '类型',
width: 200,
width: 250,
dataIndex: 'datatype',
editable: true,
ellipsis: true,
......
import React, { useState, useEffect, useRef } from "react";
import { Space, Button, Tooltip, Modal, Select, Input, Divider, Pagination } from 'antd';
import { Space, Button, Tooltip, Modal, Select, Input, Divider, Pagination, Table } from 'antd';
import { EditOutlined, ReconciliationOutlined, DeleteOutlined } from '@ant-design/icons';
import SmoothScroll from 'smooth-scroll';
import ProTable from "@ant-design/pro-table";
import { Resizable } from 'react-resizable';
import { dispatchLatest } from '../../../../model';
......@@ -305,7 +304,22 @@ const ModelTable = (props) => {
return (
<div className='model-table'>
<ProTable
<div
className='flex pb-3'
style={{
height: 40,
alignItems: 'center',
justifyContent: 'space-between',
}}
>
{
TitleComponent
}
<Button type='primary' onClick={() => { onRecatalog && onRecatalog(); }}>
模型变更目录
</Button>
</div>
<Table
components={{
body: {
row: AnchorRow
......@@ -316,21 +330,6 @@ const ModelTable = (props) => {
rowKey={'id'}
dataSource={_data||[]}
pagination={false}
options={{
density: true,
setting: true,
reload: false,
}}
search={false}
tableAlertRender={false}
toolbar={{
title: TitleComponent,
}}
toolBarRender={() => [
<Button type='primary' onClick={() => { onRecatalog && onRecatalog(); }}>
模型变更目录
</Button>,
]}
sticky
/>
<Pagination
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment