|
@@ -221,10 +221,9 @@ const Scada = () => {
|
|
|
const { data } = useRequest(getScadaPage, {
|
|
|
defaultParams: [{ project_id: projectId }],
|
|
|
formatResult: (res) => {
|
|
|
- let domain =
|
|
|
- process.env.NODE_ENV === 'production'
|
|
|
- ? 'http://120.55.44.4:8900/'
|
|
|
- : 'http://47.96.12.136:8788/';
|
|
|
+ let domain = location.host.includes('pad.greentech.com.cn')
|
|
|
+ ? 'http://120.55.44.4:8900/'
|
|
|
+ : 'http://47.96.12.136:8788/';
|
|
|
const token = getToken();
|
|
|
const pageList = res?.filter((item) => item.hide);
|
|
|
const urls = pageList.map(
|
|
@@ -236,6 +235,7 @@ const Scada = () => {
|
|
|
});
|
|
|
return (
|
|
|
<Box
|
|
|
+ big
|
|
|
title="工艺监控"
|
|
|
onClick={() => UnityAction.sendMsg('menuItem', '工艺监控')}
|
|
|
>
|
|
@@ -248,9 +248,12 @@ const Scada = () => {
|
|
|
);
|
|
|
};
|
|
|
|
|
|
-const Box = ({ title, children, onClick }) => {
|
|
|
+const Box = ({ title, children, onClick, big }) => {
|
|
|
return (
|
|
|
- <div className={styles.box} onClick={onClick}>
|
|
|
+ <div
|
|
|
+ className={`${styles.box} ${big ? styles.boxBig : ''}`}
|
|
|
+ onClick={onClick}
|
|
|
+ >
|
|
|
<div className={styles.boxTitle}>{title}</div>
|
|
|
{children}
|
|
|
</div>
|