Commit de5685b7 authored by superman's avatar superman

1.3.3

parent de51b747
This diff is collapsed.
This diff is collapsed.
......@@ -76,13 +76,13 @@
}
}
.ant-menu-inline .ant-menu-item,
.ant-menu-vertical .ant-menu-item{
.ant-menu-vertical .ant-menu-item {
border-right: 0;
margin-left: 0;
left: 0;
}
.ant-menu-inline .ant-menu-item-selected,
.ant-menu-inline .ant-menu-selected{
.ant-menu-inline .ant-menu-selected {
border-right: 0;
}
}
......@@ -124,6 +124,14 @@
.main-form {
padding-top: 24px;
}
.authorities-checkbox-group {
.ant-checkbox-group-item {
display: block;
}
.ant-checkbox-wrapper + .ant-checkbox-wrapper {
margin-left: 0;
}
}
}
}
......@@ -28,6 +28,7 @@ import {formItemLayout, footerFormSubmitLayout} from '../../utils';
@connect(state=>({
loading: state.customMessage.loading,
item: state.customMessage.item
}))
@Form.create()
export default class AddItem extends Component {
......@@ -40,6 +41,12 @@ export default class AddItem extends Component {
}
}
componentWillReceiveProps(nextProps) {
if (nextProps && nextProps.item && nextProps.item.id) {
this.props.history.replace('/customMessages/' + nextProps.item.id);
}
}
handleSubmit(e) {
e.preventDefault();
const data = this.props.form.getFieldsValue();
......
......@@ -87,7 +87,7 @@ export default class Item extends Component {
<Row type="flex" justify="space-around" align="middle">
<Col span={tw}>推送时间</Col>
<Col
span={vw}>{item.dateCreated && item.dateCreated.replace(/[年月]/g, '-').replace(/日/g, '')}</Col>
span={vw}>{item.dateCreated && (item.dateCreated+'').replace(/[年月]/g, '-').replace(/日/g, '')}</Col>
</Row>
<Row type="flex" justify="space-around" align="middle">
<Col span={tw}>推送人数</Col>
......
......@@ -12,21 +12,23 @@ const Home = ({location}) => {
<p>
1. 菜单栏增加"设置"; "管理员"菜单只分配给管理员角色。<br/>
2. 修复Window下, 报单审核照片下载文件扩展名缺失。<br/>
3. 创建角色时, 角色ID强制"ROLE_"开头<br/>
4. ROLE_ADMIN, ROLE_USER, ROLE_DEFAULT 三个角色不允许删除<br/>
3. 创建角色时, 角色ID强制"ROLE_"开头。<br/>
4. ROLE_ADMIN, ROLE_USER, ROLE_DEFAULT 三个角色不允许删除。<br/>
5. BUG修复: 推送自定义消息成功后进入消息详情页面。<br/>
6. 更严谨的权限控制。
</p>
<h3>2016-08-17 更新 1.3.2</h3>
<p>
1. 报单审核列表页 下载审核成功的照片
1. 报单审核列表页 下载审核成功的照片
</p>
<h3>2016-08-15 更新 1.3.1</h3>
<p>
1. 增加身份认证审核
1. 增加身份认证审核
</p>
<h3>2016-08-12 更新 1.3.0</h3>
<p>
1. 权限系统<br/>
2. 用户退出, 用户密码修改
1. 权限系统<br/>
2. 用户退出, 用户密码修改
</p>
</div>
......
......@@ -15,6 +15,10 @@ export default class Login extends Component {
};
componentWillMount() {
sessionStorage.clear();
}
handleSubmit = (e)=> {
e.preventDefault();
const data = this.props.form.getFieldsValue();
......
......@@ -26,6 +26,7 @@
& > div {
display: flex;
justify-content: center;
margin-top: -150px;
h1 {
text-align: center;
margin-bottom: 50px;
......@@ -64,8 +65,6 @@
}
}
:global(.fade-enter) {
opacity: 0;
animation-duration: 2s;
......
This diff is collapsed.
......@@ -34,17 +34,19 @@ function errorMessageParse(res) {
function xFetch(url, options) {
const opts = {...options};
let user;
try {
user = JSON.parse(sessionStorage.getItem('user')) || {};
user = user.data || {};
} catch (ex) {
user = {};
}
opts.headers = {
...opts.headers,
authorization: user.token || '',
};
if (url !== '/api/authenticate') {
let user;
try {
user = JSON.parse(sessionStorage.getItem('user')) || {};
user = user.data || {};
} catch (ex) {
user = {};
}
opts.headers.authorization = user.token || '';
}
if (opts.method != 'GET') {
opts.headers['content-type'] = 'application/x-www-form-urlencoded';
}
......
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