|
@@ -1,9 +1,13 @@
|
|
|
import { Tabs, Button, Table } from 'antd'
|
|
import { Tabs, Button, Table } from 'antd'
|
|
|
-import React, { useEffect } from 'react'
|
|
|
|
|
|
|
+import React, { useEffect,useState } from 'react'
|
|
|
import SvgIcon from '@/components/SvgIcon'
|
|
import SvgIcon from '@/components/SvgIcon'
|
|
|
-import { connect } from 'umi'
|
|
|
|
|
|
|
+// import { connect } from 'umi'
|
|
|
|
|
|
|
|
const ContanctTabList = props => {
|
|
const ContanctTabList = props => {
|
|
|
|
|
+ const [addService, setAddService] = useState({
|
|
|
|
|
+ visible: false,
|
|
|
|
|
+ loading: false
|
|
|
|
|
+ })
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
// const curinglisData = () => {
|
|
// const curinglisData = () => {
|
|
|
// const { dispatch } = props
|
|
// const { dispatch } = props
|
|
@@ -55,7 +59,7 @@ const ContanctTabList = props => {
|
|
|
{/* <Button type="primary" ghost>
|
|
{/* <Button type="primary" ghost>
|
|
|
<SvgIcon type="icon-link" /> 绑定加密锁
|
|
<SvgIcon type="icon-link" /> 绑定加密锁
|
|
|
</Button> */}
|
|
</Button> */}
|
|
|
- <Button type="primary" ghost>
|
|
|
|
|
|
|
+ <Button type="primary" ghost onClick={() => setAddService({ ...addService, visible: true })}>
|
|
|
<SvgIcon type="icon-plus" /> 添加服务记录
|
|
<SvgIcon type="icon-plus" /> 添加服务记录
|
|
|
</Button>
|
|
</Button>
|
|
|
</div>
|
|
</div>
|