@dayan_hjm 2 lat temu
rodzic
commit
0884aeb0c7

+ 10 - 2
src/assets/css/styleTemplate.less

@@ -2,7 +2,7 @@
2 2
  * @Author: dayan_hjm 茶百道主题样式
3 3
  * @Date: 2022-10-27 10:56:37 
4 4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-11-22 15:53:50
5
+ * @Last Modified time: 2023-12-19 15:15:14
6 6
  */
7 7
 
8 8
 @import url("../../themes/themes.less");
@@ -346,9 +346,13 @@
346 346
         z-index: 99;
347 347
         width: 2em;
348 348
         right: 0.8em;
349
-        top: 48%;
349
+        top: 46%;
350 350
         opacity: .5;
351 351
     }
352
+    .rightJ_png_L{
353
+      right: unset;
354
+      left: 0.8em;
355
+    }
352 356
 
353 357
     .video_box_hide {
354 358
       z-index: 12;
@@ -577,6 +581,7 @@
577 581
             justify-content: center;
578 582
 
579 583
             #chartmain {
584
+              min-width: 300px;
580 585
               width: 90%;
581 586
               height: 100%;
582 587
             }
@@ -621,6 +626,7 @@
621 626
           align-items: center;
622 627
 
623 628
           #echarts5 {
629
+            min-width: 400px;
624 630
             width: 100%;
625 631
             height: 80%;
626 632
           }
@@ -887,6 +893,7 @@
887 893
           width: 100%;
888 894
 
889 895
           .topMsg_content {
896
+            min-width: 400px;
890 897
             width: 100%;
891 898
             height: 100%;
892 899
             display: flex;
@@ -898,6 +905,7 @@
898 905
             }
899 906
 
900 907
             #echarts2 {
908
+              min-width: 600px;
901 909
               width: 95%;
902 910
               height: 90%;
903 911
               >div{

BIN
src/assets/imgs/gvc/car.png


BIN
src/assets/imgs/iconJpg/rightJL.png


+ 3 - 1
src/pages/frame/component/modelMsg/view.jsx

@@ -3,7 +3,7 @@
3 3
  * @Date: 2022-11-02 17:24:37 
4 4
  * @Last Modified by: dayan_hjm
5 5
  * @Last Modified time: 2023-09-06 17:33:24
6
- * @Last Modified time: 2023-10-16 18:40:10
6
+ * @Last Modified time: 2023-12-19 14:38:50
7 7
  */
8 8
 
9 9
 import React, { useEffect, useState, useRef, Component } from "react";
@@ -52,6 +52,8 @@ export default class extends Component {
52 52
     }
53 53
     this.pcLogin();
54 54
     this.props.history.listen((route, data) => {
55
+      // 大屏切换地址改名称
56
+      this.props.changeName(route["pathname"].indexOf("gvc") > -1 ? "产供销价值链" : "运营数据中心")
55 57
       this.setState({ showTips: false });
56 58
       let activeTree = utils.findNodeTree([...$store.sysMenu.norList, ...$store.sysMenu.menuList], route.pathname, "resourceUrl");
57 59
       //调取当前栏目的通知 

+ 12 - 3
src/pages/frame/component/top/style.less

@@ -18,11 +18,20 @@
18 18
   :global {
19 19
     .allP_png {
20 20
       position: absolute;
21
-      right: 1em;
22
-      top: 2em;
21
+    right: 1em;
22
+    top: 2em;
23
+    opacity: 0.8;
24
+    width: 4em;
25
+    display: flex;
26
+    align-items: flex-start;
27
+    justify-content: right;
28
+    height: 3em;
29
+    cursor: pointer;
30
+    >img{
23 31
       border: 1px solid #ffffff7a;
24 32
       border-radius: 5px;
25
-      opacity: .8;
33
+
34
+    }
26 35
     }
27 36
 
28 37
     .logo {

+ 30 - 34
src/pages/frame/component/top/view.jsx

@@ -588,44 +588,40 @@ export default observer(function (props) {
588 588
     //   }
589 589
     // });
590 590
   };
591
-  const name_arr = {
592
-    "#/home/gvc": "产供销价值链",
593
-    "#/home/operation": "运营数据中心",
594
-  }
595
-  window.lo
596 591
   return (
597 592
     <div class="top2 animate__animated animate__fadeInDown animate__delay-1s animate__slower">
598 593
       <div className={$store.app.styleCommon.theme == 'chaBaiDao' ? [styles.top + ' top'] : styles.top}>
599 594
         {/* 全屏按钮 */}
600
-        <Tooltip placement="bottom" title={ iptValue == 1 ? "全屏" : "退出全屏"}>
601
-          {
602
-            iptValue == 1 ? <img src={require("@assets/imgs/iconJpg/allP.png").default} alt="" style={{ width: "2em" }} className={"allP_png"} onClick={() => {
603
-              var element = document.documentElement;
604
-              if (element.requestFullscreen) {
605
-                element.requestFullscreen();
606
-              } else if (element.mozRequestFullScreen) {   // 兼容火狐
607
-                element.mozRequestFullScreen();
608
-              } else if (element.webkitRequestFullscreen) {    // 兼容谷歌
609
-                element.webkitRequestFullscreen();
610
-              } else if (element.msRequestFullscreen) {   // 兼容IE
611
-                element.msRequestFullscreen();
612
-              }
613
-              setIptValue(2)
614
-            }} /> : <img src={require("@assets/imgs/iconJpg/allP2.png").default} alt="" style={{ width: "2em" }} className={"allP_png"} onClick={() => {
615
-              var element = document.documentElement;
616
-              if(document.exitFullscreen) {
617
-                document.exitFullscreen();
618
-            } else if (document.mozCancelFullScreen) {
619
-                document.mozCancelFullScreen();
620
-            } else if (document.webkitCancelFullScreen) {
621
-                document.webkitCancelFullScreen();
622
-            } else if (document.msExitFullscreen) {
623
-                document.msExitFullscreen();
595
+        <Tooltip placement="bottom" title={iptValue == 1 ? "全屏" : "退出全屏"}>
596
+          <div className={"allP_png"}>
597
+            {
598
+              iptValue == 1 ? <img src={require("@assets/imgs/iconJpg/allP.png").default} alt="" style={{ width: "2em" }} onClick={() => {
599
+                var element = document.getElementById('app');
600
+                if (element.requestFullscreen) {
601
+                  element.requestFullscreen();
602
+                } else if (element.mozRequestFullScreen) {   // 兼容火狐
603
+                  element.mozRequestFullScreen();
604
+                } else if (element.webkitRequestFullscreen) {    // 兼容谷歌
605
+                  element.webkitRequestFullscreen();
606
+                } else if (element.msRequestFullscreen) {   // 兼容IE
607
+                  element.msRequestFullscreen();
608
+                }
609
+                setIptValue(2)
610
+              }} /> : <img src={require("@assets/imgs/iconJpg/allP2.png").default} alt="" style={{ width: "2em" }} onClick={() => {
611
+                var element = document.getElementById('app');
612
+                if (document.exitFullscreen) {
613
+                  document.exitFullscreen();
614
+                } else if (document.mozCancelFullScreen) {
615
+                  document.mozCancelFullScreen();
616
+                } else if (document.webkitCancelFullScreen) {
617
+                  document.webkitCancelFullScreen();
618
+                } else if (document.msExitFullscreen) {
619
+                  document.msExitFullscreen();
620
+                }
621
+                setIptValue(1)
622
+              }} />
624 623
             }
625
-              setIptValue(1)
626
-            }} />
627
-          }
628
-          
624
+          </div>
629 625
         </Tooltip>
630 626
 
631 627
         <div className="title_box">
@@ -634,7 +630,7 @@ export default observer(function (props) {
634 630
             width="17"
635 631
           />
636 632
           <span></span>
637
-          <h1>{name_arr[window.location.hash] || ''}</h1>
633
+          <h1>{props.names}</h1>
638 634
         </div>
639 635
         {/* {history.location.pathname === "/home/index" && (
640 636
           <>

+ 12 - 213
src/pages/frame/view.jsx

@@ -146,9 +146,12 @@ export default observer(function Frame(props) {
146 146
   const history = useHistory();
147 147
   const [curKey, setKey] = useState("1");
148 148
   const moveBar = useRef();
149
-  const $search = useRef();
150
-  const leftMenu = useRef();
151
-  const [isMove, setisMove] = useState(false);
149
+  const [isMove,setisMove] = useState(false);
150
+  const name_arr = {
151
+    "#/home/gvc": "产供销价值链",
152
+    "#/home/operation": "运营数据中心",
153
+  }
154
+  const [titleName, setTitleName] = useState(name_arr[window.location.hash]);
152 155
 
153 156
   const { Search } = Input;
154 157
   let showIds = $store.app.showIds;
@@ -187,37 +190,6 @@ export default observer(function Frame(props) {
187 190
   const moveLeftMenu = () => {
188 191
     setisMove(true);
189 192
   };
190
-  const handleClick = (data) => {
191
-
192
-    let { key } = data;
193
-    let item = JSON.parse(key || "{}");
194
-    if (item.openType === "close") {
195
-      message.destroy();
196
-      return message.warning("该菜单暂未开放");
197
-    }
198
-    modelMsgs.isShow(item.resourceId, item.resourceName,item);
199
-    $store.app.setNavList({
200
-      name: item.resourceName,
201
-      path: item.resourceUrl,
202
-      type: item.resourceType,
203
-      openType: item.openType,
204
-      id: item.resourceId,
205
-    });
206
-
207
-    $store.app.setCurNav(item.resourceUrl);
208
-
209
-    sessionStorage.setItem("curNodeId", item.resourceId);
210
-    // sessionStorage.setItem("jumpType", item.props.type);
211
-
212
-    dealDiffSheetType(item).then((response) => {
213
-      if (response.type === "sys") {
214
-        history.push(response.link);
215
-      } else {
216
-        history.push(`/home/outer/${response.activeItem.resourceId}`);
217
-      }
218
-    });
219
-    saveMenu(item);
220
-  };
221 193
 
222 194
   /**打开 报表目录 */
223 195
   const openReportDire = (key) => {
@@ -260,181 +232,6 @@ export default observer(function Frame(props) {
260 232
     };
261 233
   }, [$store.app.refresh]);
262 234
 
263
-  function loopMenu(list) {
264
-    if(!$store.app.curNav){$store.app.curNav = ""}
265
-    return list.map((menu, index) => {
266
-      if (menu.resourceType !== "module_menu" && menu.resourceList.length > 0) {
267
-        return (
268
-          <SubMenu
269
-            key={`${menu.resourceId}Sub`}
270
-            title={menu.resourceName}
271
-            icon={iconObj[menu.resourceIcon]}
272
-            className={`normal_menu ${menu.resourceUrl === $store.app.curNav ||  $store.app.curNav.indexOf('/'+menu.resourceId) > -1 ? "click_active" : ""
273
-              }`}
274
-            onTitleClick={(val, domEvent) => {
275
-              let titleKey = val.key.slice(
276
-                0,
277
-                val.key.length - 3
278
-              ); /**侧边父级id */
279
-              let activeUrl = $store.app.activedUrl;
280
-              sessionStorage.setItem("resourceName", menu.resourceName);
281
-              if (
282
-                activeUrl.indexOf("/home/outer") > -1 ||
283
-                activeUrl === "/home/report" ||
284
-                activeUrl === "/home/write"
285
-              ) {
286
-                openReportDire(titleKey);
287
-              }
288
-            }}
289
-          // style={{ backgroundColor: "#031646" }}
290
-          >
291
-            {loopMenu(menu.resourceList)}
292
-          </SubMenu>
293
-        );
294
-      } else {
295
-        return (
296
-          <>
297
-            <Menu.Item
298
-              key={JSON.stringify(menu)}
299
-              icon={iconObj[menu.resourceIcon]}
300
-              className={`${menu.resourceUrl === $store.app.curNav ||  $store.app.curNav.indexOf('/'+menu.resourceId) > -1
301
-                  ? "click_active"
302
-                  : "normal_menu"
303
-                }`}
304
-            // style={{ backgroundColor: "#031646" }}
305
-            >
306
-              <span>
307
-                <span className="text_over" title={menu.resourceName}>
308
-                  {menu.resourceName}
309
-                </span>
310
-                {menu.resourceType.match(/fine_bi|dmpReport|report|yonghong/) && (
311
-                  <>
312
-                    {/* <span
313
-                      style={{ paddingLeft: 5 }}
314
-                      onClick={(e) => {
315
-                        e.stopPropagation();
316
-                        getMenuDesc({
317
-                          resourceId: menu.resourceId,
318
-                        }).then(({ data, resultCode }) => {
319
-                          if (+resultCode === 0) {
320
-                            $store.app.setMetaData({
321
-                              data,
322
-                              visible: true,
323
-                            });
324
-                          }
325
-                        });
326
-                      }}
327
-                    >
328
-                      <InfoCircleOutlined />
329
-                    </span> */}
330
-
331
-                    <span
332
-                      className={menu.isCare ? "care_color" : "emptystar"}
333
-                      twotonecolor ="#FFBF00"
334
-                      style={{ paddingLeft: 5 }}
335
-                      onClick={(e) => {
336
-                        menu.isCare = !menu.isCare;
337
-                        $store.sysMenu.setSubmenuList(
338
-                          $store.sysMenu.submenuList
339
-                        );
340
-                        sessionStorage.setItem(
341
-                          "subMenuList",
342
-                          JSON.stringify($store.sysMenu.submenuList)
343
-                        );
344
-
345
-                        const config = {
346
-                          isCare: menu.isCare,
347
-                          resourceId: menu.resourceId,
348
-                        };
349
-                        careOrCancelResource(config).then(
350
-                          ({ data, resultCode }) => {
351
-                            if (+resultCode === 0) {
352
-                              message.success(
353
-                                menu.isCare ? "关注成功" : "取消关注成功"
354
-                              );
355
-                              //重新发送请求
356
-                              let subMenuList = JSON.parse(
357
-                                sessionStorage.getItem("subMenuList")
358
-                              );
359
-                              subMenuList.filter((item) => {
360
-                                if (item.resourceId === menu.resourceId) {
361
-                                }
362
-                              });
363
-                            }
364
-                          }
365
-                        );
366
-                        e.stopPropagation();
367
-                      }}
368
-                    >
369
-                      {menu.isCare ? <StarFilled /> : <StarOutlined />}
370
-                    </span>
371
-                  </>
372
-                )}
373
-              </span>
374
-            </Menu.Item>
375
-          </>
376
-        );
377
-      }
378
-    });
379
-  }
380
-
381
-  function loopMenu2(list) {
382
-    // console.log("showIds==", [...showIds]);
383
-    return list.map((menu, index) => {
384
-      if (showIds.indexOf(menu.resourceId) === -1) {
385
-        return null;
386
-      }
387
-      if (menu.resourceList.length > 0) {
388
-        return (
389
-          <SubMenu
390
-            key={`${menu.resourceId}Sub`}
391
-            title={menu.resourceName}
392
-            icon={iconObj[menu.resourceIcon]}
393
-            className={`normal_menu ${menu.resourceUrl === $store.app.curNav ? "click_active" : ""
394
-              }`}
395
-            onTitleClick={(val, domEvent) => {
396
-              let titleKey = val.key.slice(
397
-                0,
398
-                val.key.length - 3
399
-              ); /**侧边父级id */
400
-              let activeUrl = $store.app.activedUrl;
401
-              sessionStorage.setItem("resourceName", menu.resourceName);
402
-              if (
403
-                activeUrl.indexOf("/home/outer") > -1 ||
404
-                activeUrl === "/home/report" ||
405
-                activeUrl === "/home/write"
406
-              ) {
407
-                openReportDire(titleKey);
408
-              }
409
-            }}
410
-          // style={{ backgroundColor: "#031646" }}
411
-          >
412
-            {loopMenu2(menu.resourceList)}
413
-          </SubMenu>
414
-        );
415
-      } else {
416
-        return (
417
-          <>
418
-            <Menu.Item
419
-              key={JSON.stringify(menu)}
420
-              icon={iconObj[menu.resourceIcon]}
421
-              className={`${menu.resourceUrl === $store.app.curNav
422
-                  ? "click_active"
423
-                  : "normal_menu"
424
-                }`}
425
-            // style={{ backgroundColor: "#031646" }}
426
-            >
427
-              <span>
428
-                <span className="text_over" title={menu.resourceName}>
429
-                  {menu.resourceName}
430
-                </span>
431
-              </span>
432
-            </Menu.Item>
433
-          </>
434
-        );
435
-      }
436
-    });
437
-  }
438 235
   const onRef = (ref) => {
439 236
     setModelMsgs(ref);
440 237
   };
@@ -446,13 +243,15 @@ export default observer(function Frame(props) {
446 243
   };
447 244
   const onRef2 = (ref) => {
448 245
     setTipMsgs(ref);
449
-    console.log(tipMsgs,"tipMsgs")
246
+    console.log(tipMsgs, "tipMsgs")
450 247
   };
451 248
 
452 249
   return (
453 250
     <div className={styles.frame}>
454
-      <Top />
455
-      <ModelMsg onRef={onRef} getTips={getTips} cleatTips={cleatTips}/>
251
+      <Top names={titleName}/>
252
+      <ModelMsg onRef={onRef} getTips={getTips} cleatTips={cleatTips} changeName={(name) => {
253
+        setTitleName(name);
254
+      }} />
456 255
 
457 256
       {/* 断网或超时显示提示 */}
458 257
       {/* <div className="nowifi-tip">当前网络状态不佳</div> */}
@@ -475,7 +274,7 @@ export default observer(function Frame(props) {
475 274
         >
476 275
           <Navigator
477 276
             style={{
478
-              display:"none",
277
+              display: "none",
479 278
             }}
480 279
           />
481 280
           <TipMsg onRef={onRef2}></TipMsg>

+ 6 - 11
src/pages/gvc/view.jsx

@@ -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-19 11:30:37
5
+ * @Last Modified time: 2023-12-19 15:27:45
6 6
  */
7 7
 
8 8
 import React, { useState, useEffect, Component } from "react";
@@ -384,16 +384,11 @@ class Gvc extends Component {
384 384
         {/* 右键切换大屏 */}
385 385
         <Tooltip placement="bottom" title={"数据运营中心"}>
386 386
           <img src={require("@assets/imgs/iconJpg/rightJ.png").default} alt="" className={"rightJ_png"} onClick={() => {
387
-            if (document.exitFullscreen) {
388
-              document.exitFullscreen();
389
-            } else if (document.mozCancelFullScreen) {
390
-              document.mozCancelFullScreen();
391
-            } else if (document.webkitCancelFullScreen) {
392
-              document.webkitCancelFullScreen();
393
-            } else if (document.msExitFullscreen) {
394
-              document.msExitFullscreen();
395
-            }
396
-
387
+            this.props.history.replace("/home/operation");
388
+          }} />
389
+        </Tooltip>
390
+        <Tooltip placement="bottom" title={"数据运营中心"}>
391
+          <img src={require("@assets/imgs/iconJpg/rightJL.png").default} alt="" className={"rightJ_png rightJ_png_L"} onClick={() => {
397 392
             this.props.history.replace("/home/operation");
398 393
           }} />
399 394
         </Tooltip>

+ 4 - 4
src/pages/login/view.jsx

@@ -220,13 +220,13 @@ export default function () {
220 220
                 }}
221 221
                 prefix={
222 222
                   <div className="leftIcon">
223
-                    <img
223
+                    {/* <img
224 224
                       width={16}
225 225
                       src={
226 226
                         require("@assets/imgs/login/yonghu_icon.png").default
227 227
                       }
228 228
                       className="icon"
229
-                    />
229
+                    /> */}
230 230
                   </div>
231 231
                 }
232 232
               />
@@ -253,11 +253,11 @@ export default function () {
253 253
                 }}
254 254
                 prefix={
255 255
                   <div className="leftIcon">
256
-                    <img
256
+                    {/* <img
257 257
                       width={16}
258 258
                       src={require("@assets/imgs/login/mima_icon.png").default}
259 259
                       className="icon"
260
-                    />
260
+                    /> */}
261 261
                   </div>
262 262
                 }
263 263
               />

+ 1 - 1
src/pages/tqcDataVHome/component/bottomLineForSend.jsx

@@ -2,7 +2,7 @@
2 2
  * @Author: dayan_hjm 近30天产量
3 3
  * @Date: 2023-10-23 09:32:12 
4 4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-11-24 10:25:30
5
+ * @Last Modified time: 2023-12-19 15:18:50
6 6
  */
7 7
 
8 8
 

+ 10 - 13
src/pages/tqcDataVHome/view.jsx

@@ -2,7 +2,7 @@
2 2
  * @Author: dayan_hjm 
3 3
  * @Date: 2023-10-25 10:32:44 
4 4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-12-19 11:32:14
5
+ * @Last Modified time: 2023-12-19 15:32:21
6 6
  */
7 7
 /*
8 8
  * @Author: dayan_hjm 
@@ -249,22 +249,19 @@ class Home extends Component {
249 249
         {/* 右键切换大屏 */}
250 250
         <Tooltip placement="bottom" title={"产供销价值链"}>
251 251
           <img src={require("@assets/imgs/iconJpg/rightJ.png").default} alt="" className={"rightJ_png"} onClick={() => {
252
-            if (document.exitFullscreen) {
253
-              document.exitFullscreen();
254
-            } else if (document.mozCancelFullScreen) {
255
-              document.mozCancelFullScreen();
256
-            } else if (document.webkitCancelFullScreen) {
257
-              document.webkitCancelFullScreen();
258
-            } else if (document.msExitFullscreen) {
259
-              document.msExitFullscreen();
260
-            }
261 252
             this.props.history.replace("/home/gvc");
262 253
           }} />
263 254
         </Tooltip>
255
+        <Tooltip placement="bottom" title={"产供销价值链"}>
256
+          <img src={require("@assets/imgs/iconJpg/rightJL.png").default} alt="" className={"rightJ_png rightJ_png_L"} onClick={() => {
257
+            this.props.history.replace("/home/gvc");
258
+          }} />
259
+        </Tooltip>
260
+
264 261
         {/* 视频播放器 */}
265 262
         <MapView></MapView>
266 263
         <div className={"video_box"}>
267
-          <video src={require("@assets/imgs/dataVImg/homeVideo2.mp4").default} autoplay="autoplay" loop="loop" class="video2 center_box2 animate__animated animate__fadeIn animate__delay-2s"></video>
264
+          <video src={require("@assets/imgs/dataVImg/homeVideo2.mp4").default} autoplay="autoplay" loop="loop" class="video2 center_box2 animate__animated animate__fadeIn animate__delay-1s"></video>
268 265
         </div>
269 266
         <div className={[styles.home + " home cbHome"]}>
270 267
           <div className="leftContent">
@@ -304,7 +301,7 @@ class Home extends Component {
304 301
               </div>
305 302
             </div>
306 303
 
307
-            <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
304
+            <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-2s">
308 305
               <div className="bottomContent bigDivPd">
309 306
                 <Tooltip placement="bottom" title={' ● 近六个月的产量和发货量的对比数据(含外加工),当月的数据计算至更新日期。'}>
310 307
                   <p className="topMsg_title">月度产量/发货量</p>
@@ -366,7 +363,7 @@ class Home extends Component {
366 363
                 </div>
367 364
               </div>
368 365
             </div>
369
-            <div class="bottomContent3 animate__animated animate__fadeInUp animate__slower">
366
+            <div class="bottomContent3 animate__animated animate__fadeInUp animate__slower animate__delay-1s">
370 367
               <div className="bottomContent">
371 368
                 <Tooltip placement="bottom" title={' ● 以更新日期为节点近30天的产量数据(含外加工)。'}>
372 369
                   <p className="topMsg_title">近30天产量</p>