zhengpengju 3 years ago
parent a699a19b6d
commit ecc7ad190f

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

Loading…
Cancel
Save