Commit 6ca36323 by zhaochengxiang

模版删除不需要批量

parent bf5b9154
...@@ -13,7 +13,6 @@ const TemplateCURDModal = (props) => { ...@@ -13,7 +13,6 @@ const TemplateCURDModal = (props) => {
const { visible, onCancel } = props; const { visible, onCancel } = props;
const [ templates, setTemplates ] = useState([]); const [ templates, setTemplates ] = useState([]);
const [ loading, setLoading ] = useState(false); const [ loading, setLoading ] = useState(false);
const [ selectedRowKeys, setSelectedRowKeys ] = useState([]);
const [ action, setAction ] = useState(''); const [ action, setAction ] = useState('');
const [ currentTemplate, setCurrentTemplate ] = useState(''); const [ currentTemplate, setCurrentTemplate ] = useState('');
const [ step, setStep ] = useState(0); const [ step, setStep ] = useState(0);
...@@ -149,10 +148,6 @@ const TemplateCURDModal = (props) => { ...@@ -149,10 +148,6 @@ const TemplateCURDModal = (props) => {
setConfirmLoading(false); setConfirmLoading(false);
} }
const onSelectChange = keys => {
setSelectedRowKeys(keys);
};
const onActionChange = (data) => { const onActionChange = (data) => {
setCurrentTemplate(data); setCurrentTemplate(data);
} }
...@@ -189,11 +184,6 @@ const TemplateCURDModal = (props) => { ...@@ -189,11 +184,6 @@ const TemplateCURDModal = (props) => {
} }
const rowSelection = {
selectedRowKeys,
onChange: onSelectChange,
};
let title = ''; let title = '';
if (step === 0) { if (step === 0) {
title = '模版配置'; title = '模版配置';
...@@ -267,7 +257,6 @@ const TemplateCURDModal = (props) => { ...@@ -267,7 +257,6 @@ const TemplateCURDModal = (props) => {
</div> </div>
<Table <Table
loading={loading} loading={loading}
rowSelection={rowSelection}
columns={columns} columns={columns}
rowKey={'id'} rowKey={'id'}
dataSource={templates||[]} dataSource={templates||[]}
......
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