outaozhen 4 anni fa
parent
commit
95df8f911b
1 ha cambiato i file con 15 aggiunte e 10 eliminazioni
  1. 15 10
      src/pages/Product/Cloud/components/Detail/index.jsx

+ 15 - 10
src/pages/Product/Cloud/components/Detail/index.jsx

@@ -17,7 +17,8 @@ const Detail = props => {
     visible,
     dataId = '',
     projectType,
-    filterTag = true
+    filterTag = true,
+    ClientShow = false
   } = props
   const shouldUpdate = refresh[updateKey] || false
   const [state, setState] = useState({
@@ -61,21 +62,25 @@ const Detail = props => {
           className="sheet-box-left">
           <div className="sheet-left-panel pr-4">
             <Form cloudUser={state.cloudUser} updateKey={updateKey} projectType={projectType} />
-            <div className="mt-4">
-              <ClientDetail client={state.client} filterTag={filterTag} />
-            </div>
+            {ClientShow ? (
+              <div className="mt-4">
+                <ClientDetail client={state.client} filterTag={filterTag} />
+              </div>
+            ) : null}
             <div className="text-center mt-6">
               <Button type="primary" ghost size="small">
                 <LinkOne size="14" />
                 <span className="ml-5px">关联CLD客户</span>
               </Button>
             </div>
-            <div className="text-center mt-6">
-              <Button type="primary" ghost size="small">
-                <LinkInterrupt size="14" />
-                <span className="ml-5px">移除CLD客户</span>
-              </Button>
-            </div>
+            {ClientShow ? (
+              <div className="text-center mt-6">
+                <Button type="primary" ghost size="small">
+                  <LinkInterrupt size="14" />
+                  <span className="ml-5px">移除CLD客户</span>
+                </Button>
+              </div>
+            ) : null}
           </div>
         </Col>
         <Col