|
|
@@ -2,7 +2,7 @@
|
|
2
|
2
|
* @Author: dayan_hjm 产供销价值链
|
|
3
|
3
|
* @Date: 2023-11-10 10:19:34
|
|
4
|
4
|
* @Last Modified by: dayan_hjm
|
|
5
|
|
- * @Last Modified time: 2023-12-27 14:18:06
|
|
|
5
|
+ * @Last Modified time: 2024-01-22 14:26:38
|
|
6
|
6
|
*/
|
|
7
|
7
|
|
|
8
|
8
|
import React, { useState, useEffect, Component } from "react";
|
|
|
@@ -24,10 +24,10 @@ import {
|
|
24
|
24
|
} from "./api";
|
|
25
|
25
|
import MapViewTwo from "./component/mapView2.jsx";
|
|
26
|
26
|
import mpVideoGvc from "@assets/imgs/dataVimg/videoGvc2.mp4";
|
|
27
|
|
-import { getThousandNum,deleteCacheAndChangeUrl } from "@utils/util";
|
|
28
|
|
-
|
|
|
27
|
+import { getThousandNum,deleteCacheAndChangeUrl,timestampToTime,setWaterMark } from "@utils/util";
|
|
29
|
28
|
import 'animate.css';
|
|
30
|
29
|
import { get } from "lodash";
|
|
|
30
|
+import $store from "@store/";
|
|
31
|
31
|
|
|
32
|
32
|
@withRouter
|
|
33
|
33
|
|
|
|
@@ -62,11 +62,15 @@ class Gvc extends Component {
|
|
62
|
62
|
} else {
|
|
63
|
63
|
await checkToken(sessionStorage.getItem("tqcVToken")).then(({ data, resultCode }) => {
|
|
64
|
64
|
if (data?.userId) {
|
|
65
|
|
- // this.props.history.push('/')
|
|
|
65
|
+ sessionStorage.setItem("tqcUserName", data?.userId);
|
|
|
66
|
+ $store.app.setMarkSrc(
|
|
|
67
|
+ setWaterMark({
|
|
|
68
|
+ toDataURL: true,
|
|
|
69
|
+ waterMarkText: [data?.userId || sessionStorage.getItem("tqcUserName"),timestampToTime()],
|
|
|
70
|
+ })
|
|
|
71
|
+ );
|
|
66
|
72
|
} else {
|
|
67
|
73
|
window.location = window.location.origin + '/transfer.html#/login';
|
|
68
|
|
-
|
|
69
|
|
- // this.props.history.replace("/home/index");
|
|
70
|
74
|
}
|
|
71
|
75
|
});
|
|
72
|
76
|
}
|
|
|
@@ -390,6 +394,10 @@ class Gvc extends Component {
|
|
390
|
394
|
let { LeftHtml, updateTime, changGif } = this.state;
|
|
391
|
395
|
return (
|
|
392
|
396
|
<div className={[styles.gvc_home + ' home_box ']}>
|
|
|
397
|
+ {/* 水印 */}
|
|
|
398
|
+ {
|
|
|
399
|
+ window.privateConfig && window.privateConfig.SHOW_WATERMARK && <div className={"shuiYin"} style={{ backgroundImage: `url(${$store.app.markSrc})`, backgroundRepeat: 'repeat' }}></div>
|
|
|
400
|
+ }
|
|
393
|
401
|
{/* 右键切换大屏 */}
|
|
394
|
402
|
<Tooltip placement="bottom" title={"数据运营中心"}>
|
|
395
|
403
|
<img src={require("@assets/imgs/iconJpg/rightJ.png").default} alt="" className={"rightJ_png"} onClick={() => {
|