|
@@ -18,6 +18,18 @@ export default class TerminalTableList extends Component {
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
+ handleUnBind = (record) => {
|
|
|
+ const { onUnbindItem } = this.props;
|
|
|
+ Modal.confirm({
|
|
|
+ title: `您确定要解绑该终端账号?`,
|
|
|
+ content: '解除绑定后登录将失效,请谨慎操作',
|
|
|
+ okText: '确定',
|
|
|
+ cancelText: '取消',
|
|
|
+ onOk() {
|
|
|
+ onUnbindItem({ id: record.id })
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
render() {
|
|
|
const { onDeleteItem, onEditItem, curStatus, location, pagination, ...tableProps } = this.props;
|
|
@@ -39,7 +51,7 @@ export default class TerminalTableList extends Component {
|
|
|
title: '校区',
|
|
|
dataIndex: 'campusName',
|
|
|
key: 'campusName',
|
|
|
- width: '35%',
|
|
|
+ width: '30%',
|
|
|
}, {
|
|
|
title: '渠道名称',
|
|
|
dataIndex: 'merchantId',
|
|
@@ -77,9 +89,11 @@ export default class TerminalTableList extends Component {
|
|
|
<a onClick={() => onEditItem(record)}>编辑</a>
|
|
|
<Divider type="vertical" />
|
|
|
<a onClick={() => this.handleOperateItem(record)}>{record.status === Codes.CODE_NORMAL ? '禁用' : '解禁'}</a>
|
|
|
+ <Divider type="vertical" />
|
|
|
+ <a onClick={() => this.handleUnBind(record)}>解绑</a>
|
|
|
</div>
|
|
|
),
|
|
|
- width: '10%',
|
|
|
+ width: '15%',
|
|
|
}];
|
|
|
|
|
|
columns.map((item) => {
|