|
|
@@ -17,7 +17,8 @@ const RoadpricingTabList = props => {
|
|
|
compilationList,
|
|
|
cloudUser: { online_list = [], mobile, username },
|
|
|
projectType,
|
|
|
- ssoId
|
|
|
+ ssoId,
|
|
|
+ actionPayload = { main: 'cloud' }
|
|
|
} = props
|
|
|
const isUpgradeEnum = {
|
|
|
true: '已升级',
|
|
|
@@ -56,7 +57,7 @@ const RoadpricingTabList = props => {
|
|
|
// 刷新数据
|
|
|
dispatch({
|
|
|
type: 'refresh/commitAction',
|
|
|
- payload: 'cloud'
|
|
|
+ payload: actionPayload
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
@@ -100,37 +101,35 @@ const RoadpricingTabList = props => {
|
|
|
...setRoadPricingUpgrade,
|
|
|
visible: true,
|
|
|
type: titleType.GIVE,
|
|
|
- // eslint-disable-next-line no-underscore-dangle
|
|
|
compilationId: record._id,
|
|
|
compilationName: record.name,
|
|
|
lockTypeEnum: lockTypeEnum.GIVE,
|
|
|
upgradeTypeEnum: upgradeTypeEnum.UPGRADE
|
|
|
})
|
|
|
- }>
|
|
|
+ }
|
|
|
+ >
|
|
|
赠送
|
|
|
</Button>
|
|
|
{record.lock === 1 ? (
|
|
|
- <>
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- ghost
|
|
|
- size="small"
|
|
|
- className="m-2px"
|
|
|
- onClick={() =>
|
|
|
- setRoadPricingUpgrade({
|
|
|
- ...setRoadPricingUpgrade,
|
|
|
- visible: true,
|
|
|
- type: titleType.SALE,
|
|
|
- // eslint-disable-next-line no-underscore-dangle
|
|
|
- compilationId: record._id,
|
|
|
- compilationName: record.name,
|
|
|
- lockTypeEnum: lockTypeEnum.SALE,
|
|
|
- upgradeTypeEnum: upgradeTypeEnum.UPGRADE
|
|
|
- })
|
|
|
- }>
|
|
|
- 销售
|
|
|
- </Button>
|
|
|
- </>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ ghost
|
|
|
+ size="small"
|
|
|
+ className="m-2px"
|
|
|
+ onClick={() =>
|
|
|
+ setRoadPricingUpgrade({
|
|
|
+ ...setRoadPricingUpgrade,
|
|
|
+ visible: true,
|
|
|
+ type: titleType.SALE,
|
|
|
+ compilationId: record._id,
|
|
|
+ compilationName: record.name,
|
|
|
+ lockTypeEnum: lockTypeEnum.SALE,
|
|
|
+ upgradeTypeEnum: upgradeTypeEnum.UPGRADE
|
|
|
+ })
|
|
|
+ }
|
|
|
+ >
|
|
|
+ 销售
|
|
|
+ </Button>
|
|
|
) : null}
|
|
|
{record.isUpgrade ? (
|
|
|
<>
|
|
|
@@ -144,13 +143,13 @@ const RoadpricingTabList = props => {
|
|
|
...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
|
|
|
@@ -164,14 +163,14 @@ const RoadpricingTabList = props => {
|
|
|
visible: true,
|
|
|
type: titleType.DEADLINE,
|
|
|
deadline: record.deadline,
|
|
|
- // eslint-disable-next-line no-underscore-dangle
|
|
|
compilationId: record._id,
|
|
|
compilationName: record.name,
|
|
|
compilationListName: record.name,
|
|
|
lockTypeEnum: record.lock,
|
|
|
upgradeTypeEnum: upgradeTypeEnum.DEADLINE
|
|
|
})
|
|
|
- }>
|
|
|
+ }
|
|
|
+ >
|
|
|
限期
|
|
|
</Button>
|
|
|
</>
|
|
|
@@ -187,13 +186,13 @@ const RoadpricingTabList = props => {
|
|
|
...setRoadPricingUpgrade,
|
|
|
visible: true,
|
|
|
type: titleType.LEND,
|
|
|
- // eslint-disable-next-line no-underscore-dangle
|
|
|
compilationId: record._id,
|
|
|
compilationName: record.name,
|
|
|
lockTypeEnum: lockTypeEnum.LEND,
|
|
|
upgradeTypeEnum: upgradeTypeEnum.UPGRADE
|
|
|
})
|
|
|
- }>
|
|
|
+ }
|
|
|
+ >
|
|
|
借出
|
|
|
</Button>
|
|
|
<Button
|
|
|
@@ -206,13 +205,13 @@ const RoadpricingTabList = props => {
|
|
|
...setRoadPricingUpgrade,
|
|
|
visible: true,
|
|
|
type: titleType.SALE,
|
|
|
- // eslint-disable-next-line no-underscore-dangle
|
|
|
compilationId: record._id,
|
|
|
compilationName: record.name,
|
|
|
lockTypeEnum: lockTypeEnum.SALE,
|
|
|
upgradeTypeEnum: upgradeTypeEnum.UPGRADE
|
|
|
})
|
|
|
- }>
|
|
|
+ }
|
|
|
+ >
|
|
|
销售
|
|
|
</Button>
|
|
|
</>
|
|
|
@@ -244,7 +243,6 @@ const RoadpricingTabList = props => {
|
|
|
columns={columns}
|
|
|
search={false}
|
|
|
toolBarRender={false}
|
|
|
- // eslint-disable-next-line no-underscore-dangle
|
|
|
rowKey={record => record._id}
|
|
|
dataSource={compilationList}
|
|
|
pagination={false}
|
|
|
@@ -258,7 +256,6 @@ const RoadpricingTabList = props => {
|
|
|
columns={columnOnline}
|
|
|
search={false}
|
|
|
toolBarRender={false}
|
|
|
- // eslint-disable-next-line no-underscore-dangle
|
|
|
rowKey={record => record._id}
|
|
|
dataSource={online_list}
|
|
|
pagination={false}
|
|
|
@@ -272,6 +269,7 @@ const RoadpricingTabList = props => {
|
|
|
loading={roadPricingUpgrade.loading}
|
|
|
visible={roadPricingUpgrade.visible}
|
|
|
type={roadPricingUpgrade.type}
|
|
|
+ actionPayload={actionPayload}
|
|
|
onCancel={() => setRoadPricingUpgrade({ ...roadPricingUpgrade, visible: false })}
|
|
|
projectType={projectType}
|
|
|
ssoId={ssoId}
|