|
@@ -13,7 +13,7 @@ const dataTypeEunm = {
|
|
|
2: 'business'
|
|
2: 'business'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const RatioPanels = ({ dataType }) => {
|
|
|
|
|
|
|
+const RatioPanels = ({ dataType, retioCyclical, dataPermission }) => {
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
const closeModal = () => {
|
|
const closeModal = () => {
|
|
|
dispatch({
|
|
dispatch({
|
|
@@ -141,7 +141,7 @@ const RatioPanels = ({ dataType }) => {
|
|
|
rowKey={record => record.id}
|
|
rowKey={record => record.id}
|
|
|
scroll={{ y: 400 }}
|
|
scroll={{ y: 400 }}
|
|
|
columns={columnsMap[dataType]}
|
|
columns={columnsMap[dataType]}
|
|
|
- params={{ dataType }}
|
|
|
|
|
|
|
+ params={{ dataType, dataPermission, cyclical: retioCyclical }}
|
|
|
request={async params => {
|
|
request={async params => {
|
|
|
const { code = -1, data } = await queryRatioPanelsList(params)
|
|
const { code = -1, data } = await queryRatioPanelsList(params)
|
|
|
return {
|
|
return {
|