|
@@ -5,7 +5,9 @@ import { dayjsFormat, refactorSortField } from '@/utils/utils'
|
|
|
import { queryRoadpricingList } from '@/services/product'
|
|
import { queryRoadpricingList } from '@/services/product'
|
|
|
import { Input, Tag, Tooltip } from 'antd'
|
|
import { Input, Tag, Tooltip } from 'antd'
|
|
|
import consts from '@/consts'
|
|
import consts from '@/consts'
|
|
|
|
|
+import { useModal } from '@/components/Modal'
|
|
|
import { useLocation, useSelector, useDispatch } from 'umi'
|
|
import { useLocation, useSelector, useDispatch } from 'umi'
|
|
|
|
|
+import RoadpricingDetail from '@/pages/Product/Cloud/components/RoadpricingDetail'
|
|
|
|
|
|
|
|
export const roadpricingEnum = {
|
|
export const roadpricingEnum = {
|
|
|
CURING: 1, // 养护云
|
|
CURING: 1, // 养护云
|
|
@@ -18,6 +20,7 @@ const Cloud = () => {
|
|
|
const { pathname = '' } = useLocation()
|
|
const { pathname = '' } = useLocation()
|
|
|
const columnStateType = pathname?.match(/\/([^/]*)$/)[1]?.toUpperCase()
|
|
const columnStateType = pathname?.match(/\/([^/]*)$/)[1]?.toUpperCase()
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
|
|
+ const { toggleDrawer, setDrawerProps } = useModal()
|
|
|
const { cloud } = useSelector(state => ({
|
|
const { cloud } = useSelector(state => ({
|
|
|
cloud: state.cloud,
|
|
cloud: state.cloud,
|
|
|
shouldUpdate: state.refresh.cloud
|
|
shouldUpdate: state.refresh.cloud
|
|
@@ -51,13 +54,34 @@ const Cloud = () => {
|
|
|
}
|
|
}
|
|
|
}, [])
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
+ // 展示DrawerClient
|
|
|
|
|
+ const showDrawerRoadpricing = id => {
|
|
|
|
|
+ setDrawerProps({
|
|
|
|
|
+ closable: true,
|
|
|
|
|
+ onClose: () => toggleDrawer(),
|
|
|
|
|
+ bodyStyle: {
|
|
|
|
|
+ height: '100vh',
|
|
|
|
|
+ overflowY: 'hidden'
|
|
|
|
|
+ },
|
|
|
|
|
+ children: <RoadpricingDetail dataId={id} />
|
|
|
|
|
+ })
|
|
|
|
|
+ toggleDrawer()
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const columns = [
|
|
const columns = [
|
|
|
{
|
|
{
|
|
|
title: '通行账号',
|
|
title: '通行账号',
|
|
|
dataIndex: 'mobile',
|
|
dataIndex: 'mobile',
|
|
|
key: 'mobile',
|
|
key: 'mobile',
|
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
|
- width: 80
|
|
|
|
|
|
|
+ width: 80,
|
|
|
|
|
+ render: (text, record) => (
|
|
|
|
|
+ <span
|
|
|
|
|
+ onClick={() => showDrawerRoadpricing(record.ssoId)}
|
|
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
|
|
+ {text}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ )
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '称呼',
|
|
title: '称呼',
|
|
@@ -161,8 +185,7 @@ const Cloud = () => {
|
|
|
)
|
|
)
|
|
|
)}
|
|
)}
|
|
|
</div>
|
|
</div>
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }>
|
|
|
{record.all_online_times}
|
|
{record.all_online_times}
|
|
|
</Tooltip>
|
|
</Tooltip>
|
|
|
)
|
|
)
|