Explorar el Código

fix: 调整功能顺序

outaozhen hace 4 años
padre
commit
1a4724e19f
Se han modificado 1 ficheros con 1 adiciones y 49 borrados
  1. 1 49
      src/pages/Product/Cloud/components/Detail/TabList.jsx

+ 1 - 49
src/pages/Product/Cloud/components/Detail/TabList.jsx

@@ -122,26 +122,6 @@ const RoadpricingTabList = props => {
                   setRoadPricingUpgrade({
                     ...setRoadPricingUpgrade,
                     visible: true,
-                    type: titleType.DEMOTION,
-                    // eslint-disable-next-line no-underscore-dangle
-                    compilationId: record._id,
-                    compilationName: record.name,
-                    compilationListName: record.name,
-                    upgradeTypeEnum: upgradeTypeEnum.DEMOTION
-                  })
-                }>
-                降级
-              </Button>
-              <Button
-                type="primary"
-                danger
-                ghost
-                size="small"
-                className="m-2px"
-                onClick={() =>
-                  setRoadPricingUpgrade({
-                    ...setRoadPricingUpgrade,
-                    visible: true,
                     type: titleType.SALE,
                     // eslint-disable-next-line no-underscore-dangle
                     compilationId: record._id,
@@ -154,31 +134,7 @@ const RoadpricingTabList = props => {
               </Button>
             </>
           ) : null}
-          {record.lock === 2 ? (
-            <>
-              <Button
-                type="primary"
-                danger
-                ghost
-                size="small"
-                className="m-2px"
-                onClick={() =>
-                  setRoadPricingUpgrade({
-                    ...setRoadPricingUpgrade,
-                    visible: true,
-                    type: titleType.DEMOTION,
-                    // eslint-disable-next-line no-underscore-dangle
-                    compilationId: record._id,
-                    compilationName: record.name,
-                    compilationListName: record.name,
-                    upgradeTypeEnum: upgradeTypeEnum.DEMOTION
-                  })
-                }>
-                降级
-              </Button>
-            </>
-          ) : null}
-          {record.lock === 3 ? (
+          {record.isUpgrade ? (
             <>
               <Button
                 type="primary"
@@ -200,10 +156,6 @@ const RoadpricingTabList = props => {
                 }>
                 降级
               </Button>
-            </>
-          ) : null}
-          {record.isUpgrade ? (
-            <>
               <Button
                 type="primary"
                 ghost