|
@@ -3,6 +3,7 @@ import { Link } from 'umi';
|
3
|
3
|
import moment from 'moment';
|
4
|
4
|
import { Button, Popconfirm, Dropdown, Menu, message } from 'antd';
|
5
|
5
|
import PageTable from '@/components/PageTable';
|
|
6
|
+import { } from '@/services/device';
|
6
|
7
|
import { getDeviceList, syncShenSong } from '@/services/device';
|
7
|
8
|
|
8
|
9
|
const formatterTime = (val) => {
|
|
@@ -17,8 +18,7 @@ const menus = (
|
17
|
18
|
);
|
18
|
19
|
|
19
|
20
|
const List = (props, ref) => {
|
20
|
|
- const { onBindOpt } = props;
|
21
|
|
-
|
|
21
|
+ const { onBindOpt, onFeiFang } = props;
|
22
|
22
|
const columns = [
|
23
|
23
|
{
|
24
|
24
|
title: '设备类型',
|
|
@@ -111,7 +111,6 @@ const List = (props, ref) => {
|
111
|
111
|
reload: () => actionRef.current.reload(),
|
112
|
112
|
};
|
113
|
113
|
});
|
114
|
|
-
|
115
|
114
|
return (
|
116
|
115
|
<PageTable
|
117
|
116
|
request={getDeviceList}
|
|
@@ -123,7 +122,7 @@ const List = (props, ref) => {
|
123
|
122
|
<Button key={1} type="primary" loading={syncing} onClick={onSyncShenSong}>
|
124
|
123
|
同步深松
|
125
|
124
|
</Button>,
|
126
|
|
- <Button key={3} type="primary">
|
|
125
|
+ <Button key={3} type="primary" onClick={() => { onFeiFang() }}>
|
127
|
126
|
同步飞防
|
128
|
127
|
</Button>,
|
129
|
128
|
]}
|