文档:增加功能列表

后端 + 前端:完善展示分类功能
This commit is contained in:
YunaiV
2019-05-05 20:19:38 +08:00
parent 83a3689088
commit dcc58fbba4
9 changed files with 480 additions and 276 deletions

View File

@@ -213,7 +213,7 @@ const AddOrUpdateForm = Form.create()(props => {
// 清空表单
form.resetFields();
// 提示
message.success('添加成功');
message.success('新建成功');
// 关闭弹窗
handleModalVisible();
},
@@ -232,7 +232,7 @@ const AddOrUpdateForm = Form.create()(props => {
// 清空表单
form.resetFields();
// 提示
message.success('更新成功');
message.success('编辑成功');
// 关闭弹窗
handleModalVisible();
},
@@ -242,7 +242,7 @@ const AddOrUpdateForm = Form.create()(props => {
});
};
const title = modalType === 'add' ? '新建管理员' : '更新管理员';
const title = modalType === 'add' ? '新建员' : '更新员';
return (
<Modal
destroyOnClose
@@ -389,11 +389,6 @@ const RoleAssignModal = Form.create()(props => {
// 主界面
@Form.create()
class AdminList extends PureComponent {
state = {
// 分配角色弹窗
modalRoleVisible: false,
modalRoleRow: {},
};
componentDidMount() {
const { dispatch } = this.props;
@@ -461,6 +456,7 @@ class AdminList extends PureComponent {
dispatch,
handleModalVisible: this.handleModalVisible, // Function
};
// 分配角色 Modal 属性
const roleAssignModal = {
loading: roleAssignLoading,
@@ -485,7 +481,7 @@ class AdminList extends PureComponent {
type="primary"
onClick={() => this.handleModalVisible(true, 'add', {})}
>
新建管理
新建员
</Button>
</div>
</div>
@@ -500,4 +496,4 @@ class AdminList extends PureComponent {
}
}
export default AdminList;
export default AdminList;