注册验证码与账号弹出,修改密码
This commit is contained in:
@ -149,7 +149,7 @@ const SupplierEntryReview: React.FC = () => {
|
||||
render: (value: { item: string }[] = []) => {
|
||||
if (!value || value.length === 0) return '-';
|
||||
if (value.length === 1) {
|
||||
return <span>{value[0].item}</span>;
|
||||
return <span>{value[0]}</span>;
|
||||
}
|
||||
// 多于1条
|
||||
const allNames = value.map(item => item).join('、');
|
||||
|
@ -120,7 +120,7 @@ const CooperateEnterprise: React.FC = () => {
|
||||
render: (value: { item: string }[] = []) => {
|
||||
if (!value || value.length === 0) return '-';
|
||||
if (value.length === 1) {
|
||||
return <span>{value[0].item}</span>;
|
||||
return <span>{value[0]}</span>;
|
||||
}
|
||||
// 多于1条
|
||||
const allNames = value.map(item => item).join('、');
|
||||
|
@ -1,7 +1,8 @@
|
||||
import React from 'react';
|
||||
import { Form, Input, Button, message } from 'antd';
|
||||
import { useIntl } from 'umi';
|
||||
|
||||
import { supplierUserPwd } from '../services'
|
||||
|
||||
const ChangePassword: React.FC = () => {
|
||||
const intl = useIntl();
|
||||
const [form] = Form.useForm();
|
||||
@ -12,9 +13,14 @@ const ChangePassword: React.FC = () => {
|
||||
return;
|
||||
}
|
||||
// 模拟提交
|
||||
console.log('修改密码请求参数:', values);
|
||||
message.success(intl.formatMessage({ id: 'page.changePassword.success' }));
|
||||
form.resetFields();
|
||||
supplierUserPwd({ password: values.newPassword }).then((res) => {
|
||||
const { code } = res;
|
||||
if(code == 200) {
|
||||
message.success(intl.formatMessage({ id: 'page.changePassword.success' }));
|
||||
form.resetFields();
|
||||
}
|
||||
})
|
||||
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -8,4 +8,16 @@ export async function getUserInfo() {
|
||||
method: 'GET'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改密码
|
||||
*/
|
||||
interface supplierUser {
|
||||
password: string;
|
||||
}
|
||||
export async function supplierUserPwd(data: supplierUser) {
|
||||
return request('/user/supplierUserPwd', {
|
||||
method: 'POST',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
@ -177,8 +177,8 @@ const PersonQualifiedSupplierQuery: React.FC<Props> = ({ dispatch }) => {
|
||||
},
|
||||
{ title: '身份证号', dataIndex: 'idCard', key: 'idCard', align: 'center', ellipsis: true },
|
||||
{ title: '联系电话', dataIndex: 'personPhone', key: 'personPhone', align: 'center', ellipsis: true },
|
||||
{ title: '准入单位', dataIndex: 'orgName', key: 'orgName', align: 'center' },
|
||||
{ title: '创建部门', dataIndex: 'deptName', key: 'deptName', align: 'center' },
|
||||
{ title: '准入单位', dataIndex: 'orgName', key: 'orgName', align: 'center', width: 120, ellipsis: true },
|
||||
{ title: '创建人', dataIndex: 'createName', key: 'createName', align: 'center', width: 120, ellipsis: true },
|
||||
{ title: '创建时间', dataIndex: 'createTime', key: 'createTime', align: 'center', ellipsis: true },
|
||||
{
|
||||
title: '操作',
|
||||
@ -225,7 +225,7 @@ const PersonQualifiedSupplierQuery: React.FC<Props> = ({ dispatch }) => {
|
||||
<Form.Item style={{ marginLeft: 'auto' }}>
|
||||
<Button className="buttonOther" type="primary" onClick={() => {
|
||||
const values = form.getFieldsValue();
|
||||
values.deptId = DeptId;
|
||||
// values.deptId = DeptId;
|
||||
values.orgId = DeptId? DeptId: currentUser.organizationId;
|
||||
downloadFile('/coscoSupplierBase/getPagePeExport', 'GET', values);
|
||||
}}>
|
||||
|
Reference in New Issue
Block a user