zhengpengju 3 years ago
parent a699a19b6d
commit ecc7ad190f

@ -45,7 +45,7 @@ const handleRemove = async (selectedRows: TableListItem[], currentRow) => {
* @param fields * @param fields
*/ */
const handleUpdate = async (fields: FormValueType, currentRow?: TableListItem) => { const handleUpdate = async (fields: FormValueType, currentRow?: TableListItem) => {
const hide = message.loading('正在配置'); const hide = message.loading('正在更新');
console.log('fields', fields) console.log('fields', fields)
try { try {
await updateRules({ await updateRules({
@ -53,11 +53,11 @@ const handleUpdate = async (fields: FormValueType, currentRow?: TableListItem) =
...fields, ...fields,
}); });
hide(); hide();
message.success('配置成功'); message.success('操作成功');
return true; return true;
} catch (error) { } catch (error) {
hide(); hide();
message.error('配置失败请重试!'); message.error('操作失败请重试!');
return false; return false;
} }
}; };
@ -85,7 +85,7 @@ const ExaminationRules: React.FC = () => {
width: 48, width: 48,
}, },
{ {
title: '考试名称', title: '考试规则名称',
dataIndex: 'rules_name', dataIndex: 'rules_name',
valueType: 'text', valueType: 'text',
hideInTable: false, hideInTable: false,

Loading…
Cancel
Save