|
|
@@ -7,20 +7,12 @@ import Form from './Form'
|
|
|
import ClientDetail from '@/pages/Customer/Client/components/ClientDetail/Form'
|
|
|
import LowerList from './LowerList'
|
|
|
import TabList from './TabList'
|
|
|
-import { apiRoadpricingDetail, apiRoadPricingUnLinkCustomer } from '@/services/product'
|
|
|
+import { apiRoadpricingDetail, apiRoadPricingUnLinkClient } from '@/services/product'
|
|
|
import { useModal } from '@/components/ModalStore'
|
|
|
import CardClientDetail from '../CardDetail'
|
|
|
|
|
|
const CloudDetail = props => {
|
|
|
- const {
|
|
|
- dispatch,
|
|
|
- updateKey = 'cloud',
|
|
|
- refresh,
|
|
|
- visible,
|
|
|
- dataId,
|
|
|
- projectType,
|
|
|
- ...resetDrawerProps
|
|
|
- } = props
|
|
|
+ const { dispatch, updateKey = 'cloud', refresh, visible, dataId, projectType, ...resetDrawerProps } = props
|
|
|
const dispatchModal = useModal()
|
|
|
const shouldUpdate = refresh?.[dataId ?? updateKey] || false
|
|
|
const refreshDetail = () => {
|
|
|
@@ -67,7 +59,7 @@ const CloudDetail = props => {
|
|
|
Modal.confirm({
|
|
|
title: '确认移除',
|
|
|
onOk: async () => {
|
|
|
- const { code = -1 } = await apiRoadPricingUnLinkCustomer({
|
|
|
+ const { code = -1 } = await apiRoadPricingUnLinkClient({
|
|
|
id: dataId,
|
|
|
clientId,
|
|
|
projectType
|