|
@@ -68,7 +68,8 @@ const CompanyList: React.FC<ListProps> = ({ base, dispatch, pTypeList }) => {
|
|
|
render: (name, record) => (
|
|
|
<span
|
|
|
onClick={() => goToDetail({ dataID: record.ID, structureType: state.structureType })}
|
|
|
- className="text-primary cursor-pointer">
|
|
|
+ className="text-primary cursor-pointer"
|
|
|
+ >
|
|
|
{name}
|
|
|
</span>
|
|
|
)
|
|
@@ -118,7 +119,8 @@ const CompanyList: React.FC<ListProps> = ({ base, dispatch, pTypeList }) => {
|
|
|
currentModalType: ModalType.UPDATE,
|
|
|
defaultFormData: record
|
|
|
})
|
|
|
- }}>
|
|
|
+ }}
|
|
|
+ >
|
|
|
编辑
|
|
|
</div>
|
|
|
{/* <Popconfirm
|
|
@@ -142,6 +144,7 @@ const CompanyList: React.FC<ListProps> = ({ base, dispatch, pTypeList }) => {
|
|
|
rowKey="ID"
|
|
|
params={state.params}
|
|
|
actionRef={tRef}
|
|
|
+ scroll={{ y: document.body.clientHeight - 313 }}
|
|
|
columns={generateColumns(columns, schema)}
|
|
|
request={async (params, filter, sorter) => {
|
|
|
const { code = -1, data: { items = [], totle = 0 } = {} } = await queryInstitutionList({
|
|
@@ -162,9 +165,8 @@ const CompanyList: React.FC<ListProps> = ({ base, dispatch, pTypeList }) => {
|
|
|
actions: [
|
|
|
<Button
|
|
|
type="primary"
|
|
|
- onClick={() =>
|
|
|
- setState({ ...state, visible: true, currentModalType: ModalType.ADD })
|
|
|
- }>
|
|
|
+ onClick={() => setState({ ...state, visible: true, currentModalType: ModalType.ADD })}
|
|
|
+ >
|
|
|
新建企事业单位
|
|
|
</Button>
|
|
|
]
|
|
@@ -173,7 +175,8 @@ const CompanyList: React.FC<ListProps> = ({ base, dispatch, pTypeList }) => {
|
|
|
/>
|
|
|
<AnimateContent
|
|
|
visible={state.visible}
|
|
|
- onVisibleChange={visible => setState({ ...state, visible })}>
|
|
|
+ onVisibleChange={visible => setState({ ...state, visible })}
|
|
|
+ >
|
|
|
<CompanyDrawer
|
|
|
type={state.currentModalType}
|
|
|
defaultFormData={state.defaultFormData}
|