|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import { PlusOutlined } from '@ant-design/icons';
|
|
|
|
|
import { Button, message, Input, Drawer } from 'antd';
|
|
|
|
|
import React, { useState, useRef } from 'react';
|
|
|
|
|
import { history } from 'umi';
|
|
|
|
|
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout';
|
|
|
|
|
import type { ProColumns, ActionType } from '@ant-design/pro-table';
|
|
|
|
|
import ProTable from '@ant-design/pro-table';
|
|
|
|
@ -110,7 +111,7 @@ const TableList: React.FC = () => {
|
|
|
|
|
dataIndex: 'callNo',
|
|
|
|
|
sorter: true,
|
|
|
|
|
hideInForm: true,
|
|
|
|
|
renderText: (val: string) => `${val}万`,
|
|
|
|
|
renderText: (val: string) => `${val}`,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
@ -162,25 +163,25 @@ const TableList: React.FC = () => {
|
|
|
|
|
<a
|
|
|
|
|
key="config"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
handleUpdateModalVisible(true);
|
|
|
|
|
setCurrentRow(record);
|
|
|
|
|
history.push(`/course/subject/step/update/${record.subject_id}`)
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
查看
|
|
|
|
|
编辑
|
|
|
|
|
</a>,
|
|
|
|
|
<a
|
|
|
|
|
key="config"
|
|
|
|
|
<a
|
|
|
|
|
key="copyAlert"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
handleUpdateModalVisible(true);
|
|
|
|
|
setCurrentRow(record);
|
|
|
|
|
// handleCopyItem({});
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
编辑
|
|
|
|
|
</a>,
|
|
|
|
|
<a key="subscribeAlert" href="https://procomponents.ant.design/">
|
|
|
|
|
复制
|
|
|
|
|
</a>,
|
|
|
|
|
<a key="subscribeAlert" href="https://procomponents.ant.design/">
|
|
|
|
|
<a
|
|
|
|
|
key="deleteAlert"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
// handleCopyItem({});
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
删除
|
|
|
|
|
</a>,
|
|
|
|
|
],
|
|
|
|
@ -201,7 +202,7 @@ const TableList: React.FC = () => {
|
|
|
|
|
type="primary"
|
|
|
|
|
key="primary"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
handleModalVisible(true);
|
|
|
|
|
history.push('/course/subject/step/create')
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<PlusOutlined /> 新建
|
|
|
|
|