Unicode 引用
@@ -120,9 +308,10 @@@font-face {
font-family: 'iconfont';
- src: url('iconfont.woff2?t=1700789582875') format('woff2'),
- url('iconfont.woff?t=1700789582875') format('woff'),
- url('iconfont.ttf?t=1700789582875') format('truetype');
+ src:
+ url('iconfont.woff2?t=1709515058835') format('woff2'),
+ url('iconfont.woff?t=1709515058835') format('woff'),
+ url('iconfont.ttf?t=1709515058835') format('truetype');
}
第二步:定义使用 iconfont 的样式
@@ -149,11 +338,335 @@-
-
+
- 展开 全屏 扩展 + Mark-.icon-zhankaiquanpingkuozhan +.icon-Mark ++ + +
- + +
+ ++ 组 185 ++.icon-a-zu185 ++- + +
+ ++ 组 249 ++.icon-a-zu249 ++- + +
+ ++ 组 74 ++.icon-a-zu74 ++- + +
+ ++ 组 83 ++.icon-a-zu83 ++- + +
+ ++ 组 198 ++.icon-a-zu198 ++- + +
+ ++ 组 238 ++.icon-a-zu238 ++- + +
+ ++ 组 164 ++.icon-a-zu164 ++- + +
+ ++ 组 181 ++.icon-a-zu181 ++- + +
+ ++ 组 65 ++.icon-a-zu65 ++- + +
+ ++ 组 266 ++.icon-a-zu266 ++- + +
+ ++ 组 67 ++.icon-a-zu67 ++- + +
+ ++ 组 76 ++.icon-a-zu76 ++- + +
+ ++ 组 137 ++.icon-a-zu137 ++- + +
+ ++ 组 108 ++.icon-a-zu108 ++- + +
+ ++ 组 196 ++.icon-a-zu196 ++- + +
+ ++ 组 203 ++.icon-a-zu203 ++- + +
+ ++ 组 208 ++.icon-a-zu208 ++- + +
+ ++ 组 261 ++.icon-a-zu261 ++- + +
+ ++ 组 253 ++.icon-a-zu253 ++- + +
+ ++ 组 131 ++.icon-a-zu131 ++- + +
+ ++ 组 57 ++.icon-a-zu57 ++- + +
+ ++ 组 18 ++.icon-a-zu18 ++- + +
+ ++ 组 286 ++.icon-a-zu286 ++- + +
+ ++ 组 81 ++.icon-a-zu81 ++- + +
+ ++ 组 73 ++.icon-a-zu73 ++- + +
+ ++ 组 150 ++.icon-a-zu150 ++- + +
+ ++ 组 284 ++.icon-a-zu284 ++- + +
+ ++ 组 3 ++.icon-a-zu3 ++- + +
+ ++ 组 133 ++.icon-a-zu133 ++- + +
+ ++ 组 291 ++.icon-a-zu291 ++- + +
+ ++ 组 112 ++.icon-a-zu112 ++- + +
+ ++ 组 63 ++.icon-a-zu63 ++- + +
+ ++ 组 126 ++.icon-a-zu126 ++- + +
+ ++ 组 110 ++.icon-a-zu110 ++- + +
+ ++ 组 116 ++.icon-a-zu116 ++- + +
@@ -166,42 +679,6 @@+ 组 4 ++.icon-a-zu4
- - + +
-
-
- - 矿山 --.icon-kuangshan --
-
-
-
-
- - 生产企业 --.icon-shengchanqiye --
-
-
-
-
- - 生产单元信息 --.icon-shengchandanyuanxinxi --
-
-
-
-
- - 菜单 --.icon-caidan1 --
-
-
@@ -211,15 +688,6 @@
-
-
-
- - 菜单 --.icon-caidan --
-
font-class 引用
@@ -249,10 +717,298 @@展开 全屏 扩展
- #icon-zhankaiquanpingkuozhan
+ Mark
+ #icon-Mark
+ 组 185
+ #icon-a-zu185
+ 组 249
+ #icon-a-zu249
+ 组 74
+ #icon-a-zu74
+ 组 83
+ #icon-a-zu83
+ 组 198
+ #icon-a-zu198
+ 组 238
+ #icon-a-zu238
+ 组 164
+ #icon-a-zu164
+ 组 181
+ #icon-a-zu181
+ 组 65
+ #icon-a-zu65
+ 组 266
+ #icon-a-zu266
+ 组 67
+ #icon-a-zu67
+ 组 76
+ #icon-a-zu76
+ 组 137
+ #icon-a-zu137
+ 组 108
+ #icon-a-zu108
+ 组 196
+ #icon-a-zu196
+ 组 203
+ #icon-a-zu203
+ 组 208
+ #icon-a-zu208
+ 组 261
+ #icon-a-zu261
+ 组 253
+ #icon-a-zu253
+ 组 131
+ #icon-a-zu131
+ 组 57
+ #icon-a-zu57
+ 组 18
+ #icon-a-zu18
+ 组 286
+ #icon-a-zu286
+ 组 81
+ #icon-a-zu81
+ 组 73
+ #icon-a-zu73
+ 组 150
+ #icon-a-zu150
+ 组 284
+ #icon-a-zu284
+ 组 3
+ #icon-a-zu3
+ 组 133
+ #icon-a-zu133
+ 组 291
+ #icon-a-zu291
+ 组 112
+ #icon-a-zu112
+ 组 63
+ #icon-a-zu63
+ 组 126
+ #icon-a-zu126
+ 组 110
+ #icon-a-zu110
+ 组 116
+ #icon-a-zu116
+ 组 4
+ #icon-a-zu4
#icon-24gl-expand2
矿山
- #icon-kuangshan
- 生产企业
- #icon-shengchanqiye
- 生产单元信息
- #icon-shengchandanyuanxinxi
- 菜单
- #icon-caidan1
- 菜单
- #icon-caidan
- Symbol 引用
diff --git a/public/nowFont/iconfont.css b/public/nowFont/iconfont.css index d0b21f3..2c4f34b 100644 --- a/public/nowFont/iconfont.css +++ b/public/nowFont/iconfont.css @@ -1,8 +1,10 @@ @font-face { font-family: "iconfont"; /* Project id 4299634 */ - src: url('iconfont.woff2?t=1700789582875') format('woff2'), - url('iconfont.woff?t=1700789582875') format('woff'), - url('iconfont.ttf?t=1700789582875') format('truetype'); + /* Color fonts */ + src: + url('iconfont.woff2?t=1709515058835') format('woff2'), + url('iconfont.woff?t=1709515058835') format('woff'), + url('iconfont.ttf?t=1709515058835') format('truetype'); } .iconfont { @@ -13,35 +15,159 @@ -moz-osx-font-smoothing: grayscale; } -.icon-zhankaiquanpingkuozhan:before { - content: "\e7b0"; +.icon-Mark:before { + content: "\e632"; +} + +.icon-a-zu185:before { + content: "\e626"; +} + +.icon-a-zu249:before { + content: "\e627"; +} + +.icon-a-zu74:before { + content: "\e613"; +} + +.icon-a-zu83:before { + content: "\e614"; +} + +.icon-a-zu198:before { + content: "\e615"; +} + +.icon-a-zu238:before { + content: "\e616"; +} + +.icon-a-zu164:before { + content: "\e617"; +} + +.icon-a-zu181:before { + content: "\e618"; +} + +.icon-a-zu65:before { + content: "\e619"; +} + +.icon-a-zu266:before { + content: "\e61a"; +} + +.icon-a-zu67:before { + content: "\e61b"; +} + +.icon-a-zu76:before { + content: "\e61c"; +} + +.icon-a-zu137:before { + content: "\e61d"; +} + +.icon-a-zu108:before { + content: "\e61e"; +} + +.icon-a-zu196:before { + content: "\e61f"; +} + +.icon-a-zu203:before { + content: "\e620"; +} + +.icon-a-zu208:before { + content: "\e621"; +} + +.icon-a-zu261:before { + content: "\e622"; +} + +.icon-a-zu253:before { + content: "\e623"; +} + +.icon-a-zu131:before { + content: "\e624"; +} + +.icon-a-zu57:before { + content: "\e601"; +} + +.icon-a-zu18:before { + content: "\e602"; +} + +.icon-a-zu286:before { + content: "\e603"; +} + +.icon-a-zu81:before { + content: "\e605"; +} + +.icon-a-zu73:before { + content: "\e607"; +} + +.icon-a-zu150:before { + content: "\e608"; +} + +.icon-a-zu284:before { + content: "\e609"; +} + +.icon-a-zu3:before { + content: "\e60a"; +} + +.icon-a-zu133:before { + content: "\e60b"; +} + +.icon-a-zu291:before { + content: "\e60c"; +} + +.icon-a-zu112:before { + content: "\e60d"; +} + +.icon-a-zu63:before { + content: "\e60e"; +} + +.icon-a-zu126:before { + content: "\e60f"; +} + +.icon-a-zu110:before { + content: "\e610"; +} + +.icon-a-zu116:before { + content: "\e612"; +} + +.icon-a-zu4:before { + content: "\e600"; } .icon-24gl-expand2:before { content: "\eb6c"; } -.icon-kuangshan:before { - content: "\e6a6"; -} - -.icon-shengchanqiye:before { - content: "\e732"; -} - -.icon-shengchandanyuanxinxi:before { - content: "\e606"; -} - -.icon-caidan1:before { - content: "\e640"; -} - .icon-line-108:before { content: "\e76e"; } -.icon-caidan:before { - content: "\e689"; -} - diff --git a/public/nowFont/iconfont.js b/public/nowFont/iconfont.js index 453320c..5b90261 100644 --- a/public/nowFont/iconfont.js +++ b/public/nowFont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_4299634='',function(e){var c=(c=document.getElementsByTagName("script"))[c.length-1],t=c.getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var a,n,i,l,o,h=function(c,t){t.parentNode.insertBefore(c,t)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}a=function(){var c,t=document.createElement("div");t.innerHTML=e._iconfont_svg_string_4299634,(t=t.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",t=t,(c=document.body).firstChild?h(t,c.firstChild):c.appendChild(t))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),a()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=a,l=e.document,o=!1,s(),l.onreadystatechange=function(){"complete"==l.readyState&&(l.onreadystatechange=null,d())})}function d(){o||(o=!0,i())}function s(){try{l.documentElement.doScroll("left")}catch(c){return void setTimeout(s,50)}d()}}(window); \ No newline at end of file +window._iconfont_svg_string_4299634='',function(h){var a=(a=document.getElementsByTagName("script"))[a.length-1],l=a.getAttribute("data-injectcss"),a=a.getAttribute("data-disable-injectsvg");if(!a){var t,p,z,i,M,F=function(a,l){l.parentNode.insertBefore(a,l)};if(l&&!h.__iconfont__svg__cssinject__){h.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}t=function(){var a,l=document.createElement("div");l.innerHTML=h._iconfont_svg_string_4299634,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(a=document.body).firstChild?F(l,a.firstChild):a.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(p=function(){document.removeEventListener("DOMContentLoaded",p,!1),t()},document.addEventListener("DOMContentLoaded",p,!1)):document.attachEvent&&(z=t,i=h.document,M=!1,v(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,d())})}function d(){M||(M=!0,z())}function v(){try{i.documentElement.doScroll("left")}catch(a){return void setTimeout(v,50)}d()}}(window); \ No newline at end of file diff --git a/public/nowFont/iconfont.json b/public/nowFont/iconfont.json index 80443f6..c1e7052 100644 --- a/public/nowFont/iconfont.json +++ b/public/nowFont/iconfont.json @@ -6,11 +6,263 @@ "description": "", "glyphs": [ { - "icon_id": "688141", - "name": "展开 全屏 扩展", - "font_class": "zhankaiquanpingkuozhan", - "unicode": "e7b0", - "unicode_decimal": 59312 + "icon_id": "39402403", + "name": "Mark", + "font_class": "Mark", + "unicode": "e632", + "unicode_decimal": 58930 + }, + { + "icon_id": "39402081", + "name": "组 185", + "font_class": "a-zu185", + "unicode": "e626", + "unicode_decimal": 58918 + }, + { + "icon_id": "39402079", + "name": "组 249", + "font_class": "a-zu249", + "unicode": "e627", + "unicode_decimal": 58919 + }, + { + "icon_id": "39402101", + "name": "组 74", + "font_class": "a-zu74", + "unicode": "e613", + "unicode_decimal": 58899 + }, + { + "icon_id": "39402102", + "name": "组 83", + "font_class": "a-zu83", + "unicode": "e614", + "unicode_decimal": 58900 + }, + { + "icon_id": "39402092", + "name": "组 198", + "font_class": "a-zu198", + "unicode": "e615", + "unicode_decimal": 58901 + }, + { + "icon_id": "39402100", + "name": "组 238", + "font_class": "a-zu238", + "unicode": "e616", + "unicode_decimal": 58902 + }, + { + "icon_id": "39402086", + "name": "组 164", + "font_class": "a-zu164", + "unicode": "e617", + "unicode_decimal": 58903 + }, + { + "icon_id": "39402088", + "name": "组 181", + "font_class": "a-zu181", + "unicode": "e618", + "unicode_decimal": 58904 + }, + { + "icon_id": "39402099", + "name": "组 65", + "font_class": "a-zu65", + "unicode": "e619", + "unicode_decimal": 58905 + }, + { + "icon_id": "39402095", + "name": "组 266", + "font_class": "a-zu266", + "unicode": "e61a", + "unicode_decimal": 58906 + }, + { + "icon_id": "39402098", + "name": "组 67", + "font_class": "a-zu67", + "unicode": "e61b", + "unicode_decimal": 58907 + }, + { + "icon_id": "39402096", + "name": "组 76", + "font_class": "a-zu76", + "unicode": "e61c", + "unicode_decimal": 58908 + }, + { + "icon_id": "39402090", + "name": "组 137", + "font_class": "a-zu137", + "unicode": "e61d", + "unicode_decimal": 58909 + }, + { + "icon_id": "39402094", + "name": "组 108", + "font_class": "a-zu108", + "unicode": "e61e", + "unicode_decimal": 58910 + }, + { + "icon_id": "39402083", + "name": "组 196", + "font_class": "a-zu196", + "unicode": "e61f", + "unicode_decimal": 58911 + }, + { + "icon_id": "39402093", + "name": "组 203", + "font_class": "a-zu203", + "unicode": "e620", + "unicode_decimal": 58912 + }, + { + "icon_id": "39402082", + "name": "组 208", + "font_class": "a-zu208", + "unicode": "e621", + "unicode_decimal": 58913 + }, + { + "icon_id": "39402089", + "name": "组 261", + "font_class": "a-zu261", + "unicode": "e622", + "unicode_decimal": 58914 + }, + { + "icon_id": "39402085", + "name": "组 253", + "font_class": "a-zu253", + "unicode": "e623", + "unicode_decimal": 58915 + }, + { + "icon_id": "39402084", + "name": "组 131", + "font_class": "a-zu131", + "unicode": "e624", + "unicode_decimal": 58916 + }, + { + "icon_id": "39402116", + "name": "组 57", + "font_class": "a-zu57", + "unicode": "e601", + "unicode_decimal": 58881 + }, + { + "icon_id": "39402115", + "name": "组 18", + "font_class": "a-zu18", + "unicode": "e602", + "unicode_decimal": 58882 + }, + { + "icon_id": "39402114", + "name": "组 286", + "font_class": "a-zu286", + "unicode": "e603", + "unicode_decimal": 58883 + }, + { + "icon_id": "39402113", + "name": "组 81", + "font_class": "a-zu81", + "unicode": "e605", + "unicode_decimal": 58885 + }, + { + "icon_id": "39402110", + "name": "组 73", + "font_class": "a-zu73", + "unicode": "e607", + "unicode_decimal": 58887 + }, + { + "icon_id": "39402112", + "name": "组 150", + "font_class": "a-zu150", + "unicode": "e608", + "unicode_decimal": 58888 + }, + { + "icon_id": "39402087", + "name": "组 284", + "font_class": "a-zu284", + "unicode": "e609", + "unicode_decimal": 58889 + }, + { + "icon_id": "39402105", + "name": "组 3", + "font_class": "a-zu3", + "unicode": "e60a", + "unicode_decimal": 58890 + }, + { + "icon_id": "39402109", + "name": "组 133", + "font_class": "a-zu133", + "unicode": "e60b", + "unicode_decimal": 58891 + }, + { + "icon_id": "39402107", + "name": "组 291", + "font_class": "a-zu291", + "unicode": "e60c", + "unicode_decimal": 58892 + }, + { + "icon_id": "39402106", + "name": "组 112", + "font_class": "a-zu112", + "unicode": "e60d", + "unicode_decimal": 58893 + }, + { + "icon_id": "39402108", + "name": "组 63", + "font_class": "a-zu63", + "unicode": "e60e", + "unicode_decimal": 58894 + }, + { + "icon_id": "39402097", + "name": "组 126", + "font_class": "a-zu126", + "unicode": "e60f", + "unicode_decimal": 58895 + }, + { + "icon_id": "39402104", + "name": "组 110", + "font_class": "a-zu110", + "unicode": "e610", + "unicode_decimal": 58896 + }, + { + "icon_id": "39402091", + "name": "组 116", + "font_class": "a-zu116", + "unicode": "e612", + "unicode_decimal": 58898 + }, + { + "icon_id": "39401777", + "name": "组 4", + "font_class": "a-zu4", + "unicode": "e600", + "unicode_decimal": 58880 }, { "icon_id": "7597941", @@ -19,47 +271,12 @@ "unicode": "eb6c", "unicode_decimal": 60268 }, - { - "icon_id": "3758785", - "name": "矿山", - "font_class": "kuangshan", - "unicode": "e6a6", - "unicode_decimal": 59046 - }, - { - "icon_id": "14656272", - "name": "生产企业", - "font_class": "shengchanqiye", - "unicode": "e732", - "unicode_decimal": 59186 - }, - { - "icon_id": "37507407", - "name": "生产单元信息", - "font_class": "shengchandanyuanxinxi", - "unicode": "e606", - "unicode_decimal": 58886 - }, - { - "icon_id": "18863151", - "name": "菜单", - "font_class": "caidan1", - "unicode": "e640", - "unicode_decimal": 58944 - }, { "icon_id": "24551787", "name": "菜单", "font_class": "line-108", "unicode": "e76e", "unicode_decimal": 59246 - }, - { - "icon_id": "6337586", - "name": "菜单", - "font_class": "caidan", - "unicode": "e689", - "unicode_decimal": 59017 } ] } diff --git a/public/nowFont/iconfont.ttf b/public/nowFont/iconfont.ttf index f0af497..bf3cbb9 100644 Binary files a/public/nowFont/iconfont.ttf and b/public/nowFont/iconfont.ttf differ diff --git a/public/nowFont/iconfont.woff b/public/nowFont/iconfont.woff index 2d3386e..965f97a 100644 Binary files a/public/nowFont/iconfont.woff and b/public/nowFont/iconfont.woff differ diff --git a/public/nowFont/iconfont.woff2 b/public/nowFont/iconfont.woff2 index 4035067..26b07c2 100644 Binary files a/public/nowFont/iconfont.woff2 and b/public/nowFont/iconfont.woff2 differ diff --git a/src/assets/home/1x.png b/src/assets/home/1x.png new file mode 100644 index 0000000..2103405 Binary files /dev/null and b/src/assets/home/1x.png differ diff --git a/src/assets/home/2x.png b/src/assets/home/2x.png new file mode 100644 index 0000000..e69dd5d Binary files /dev/null and b/src/assets/home/2x.png differ diff --git a/src/assets/home/3x.png b/src/assets/home/3x.png new file mode 100644 index 0000000..024a6c6 Binary files /dev/null and b/src/assets/home/3x.png differ diff --git a/src/assets/logo-slider.jpg b/src/assets/logo-slider.jpg new file mode 100644 index 0000000..02b5cf2 Binary files /dev/null and b/src/assets/logo-slider.jpg differ diff --git a/src/routes/Home1.js b/src/routes/Home1.js new file mode 100644 index 0000000..d454298 --- /dev/null +++ b/src/routes/Home1.js @@ -0,0 +1,2156 @@ +import React, { useState, useEffect, useRef, Component } from "react"; +import { connect } from "dva"; +import storage from "../utils/storage"; +import IconFont from "../utils/iconFont"; +import { + initFilter, + addRuleAndGroups, + guid, + extendInclude, + extendRule, + extend, + extendOrder, +} from "../utils/common"; +import "./home.less"; +// 组件库 +import { + Table, + Modal, + Row, + Col, + Icon, + Button, + Input, + DatePicker, + Form, + Select, + notification, + Popconfirm, + Divider, + Space, + Descriptions, + message, + Carousel, +} from "antd"; +import FormPage from "../components/FormPage"; +import backlog from "../assets/home/backlog.png"; +import backlog_i from "../assets/home/backlog_icon.png"; +import styles from "./dashboard.css"; +import "slick-carousel/slick/slick.css"; +import "slick-carousel/slick/slick-theme.css"; +import moment from "moment"; +import flow from "../assets/home/flow.png"; +import flow_i from "../assets/home/remind_icon.png"; +import finished from "../assets/home/finished.png"; +import finished_i from "../assets/home/finished_icon.png"; +import remind from "../assets/home/remind.png"; +import remind_i from "../assets/home/red-err.png"; +import echarts from "echarts"; +import config from "../config"; +import Toggle from "./toggle"; +import RisiLevel from "../components/MainPage/RiskLevel"; +import ClassCompletion from "../components/MainPage/ClassCompletion"; +import WorkTicket from "../components/MainPage/WorkTicket"; +import MonthDanger from "../components/MainPage/MonthDanger"; +import SafeCheck from "../components/MainPage/SafeCheck"; + +const Option = Select.Option; +const RangePicker = DatePicker.RangePicker; + +const formItemLayout = { + labelCol: { span: 6 }, + wrapperCol: { span: 14 }, +}; + +const openNotification = (placement) => { + notification.info({ + duration: null, + top: 43, + message: `签名照上传提示:`, + description: "您还没上传自己的签名照片,请在我的资料中尽快上传您的签名照!", + placement, + }); +}; + +const openNotificationMobile = (placement) => { + notification.info({ + duration: 20, + message: `友情提示:`, + description: "您当前用的是手机在访问,为有更好体验,建议使用电脑访问!", + placement, + }); +}; +const contentStyle = { + height: "400px", + lineHeight: "400px", + textAlign: "center", + background: "#364d79", +}; + +class Home extends React.Component { + constructor(props) { + super(props); + this.state = { + isNaN: false, + scoreVisible: false, + scoreTotalVisible: false, + scoreNaVisible: false, + standardScore: [], + standardScoreTemp: [], + standardScoreNaN: [], + visible: false, + safetySloganOne: "", + safetySloganTwo: "", + noticeTitle: "", + tmpData: {}, + tableKey: "1", + pagination: {}, + retData: [], + chartData: [], + displayStr: null, + displayNum: 24, + columnData: [], + columnFields: [], + delayData: [], + Workbench: { + StockDetail: [], + ApprovalCount: 0, + InComingCount: 0, + OutingCount: 0, + ProductingCount: 0, + }, //工作台模型 + showLoading: false, //待办事项数据刷新提示 + searchVisible: false, //弹窗显示 + searchTodayVisible: false, //弹窗显示 + columns: [], + searchColumns: [], + scoreColumns: [], + scoreTotalColumns: [], + tableData: [ + { + //工作台四个展示模块 + key: "1", + bgImg: backlog, + title: + window.navigator.userAgent.indexOf("Windows") < 1 + ? "待办" + : "待办事项", + total: "0", + iconImg: backlog_i, + iconDisplay: "block", + }, + { + key: "4", + bgImg: remind, + title: + window.navigator.userAgent.indexOf("Windows") < 1 + ? "超时" + : "待办超时", + total: "0", + iconImg: remind_i, + iconDisplay: "none", + }, + { + key: "2", + bgImg: flow, + title: + window.navigator.userAgent.indexOf("Windows") < 1 + ? "已办" + : "已办事项", + total: "0", + iconImg: flow_i, + iconDisplay: "none", + }, + { + key: "3", + bgImg: finished, + title: "今日提醒", + total: "0", + iconImg: finished_i, + iconDisplay: "none", + }, + ], + visibleTitle: "", //点击title + isSearch: false, // 是否搜索 + querySearch: {}, //搜索集合 + visibleStartTime: [], + visibleEndTime: [], + currentpageIndex: "1", + departmentName: "", + stardardScoreQty: "0", + riskLevelPage: [], + departmentCompletionData: [], + workTicketData: [], + // 用户层级id + deparmentID: "", + deparmentType: 0, + dangerList: {}, + //弹窗显示参数 wyw + detailForm: { + isShow: false, + formCode: "", + title: "", + }, + taskSelects: [], + }; + // this.enums = []; + this.reportType = ""; + this.hiddenTop = 10; + this.jobTop = 10; + this.teamTop = 8; + this.tempTime = moment(new Date()).add(-3, "month").format("YYYY-MM-DD"); + this.resizeRef = React.createRef(); + } + + componentDidMount() { + if (window.navigator.userAgent.indexOf("Windows") < 1) { + window.location.replace(config.guideH5Host); + openNotificationMobile("bottomRight"); + this.state.displayStr = "none"; + this.state.displayNum = 24; + //alert('手机'); + } else { + this.state.displayStr = ""; + this.state.displayNum = 16; + //alert('PC'); + } + this.state.columns = [ + { + width: "450px", + title: "任务名称", + dataIndex: "NOTICE_TITLE", + key: "NOTICE_TITLE", + render: (text, record) => ( + + + this.showEditModal( + record.SOURCE_DATA_ID, + record.SOURCE_FORMCODE, + record.ID, + record.NOTICE_TITLE + ) + } + > + {record.NOTICE_TITLE} + + + ), + }, + { + title: "开始时间", + dataIndex: "TASK_STARTDT", + key: "TASK_STARTDT", + }, + { + title: "结束时间", + dataIndex: "TASK_ENDDT", + key: "TASK_ENDDT", + }, + { + title: "预警状态", + dataIndex: "NOTICE_TYPE", + key: "NOTICE_TYPE", + render: (text, record) => this.ShowState(record), + }, + ]; + this.getTeam(); + //定时器功能,暂时不开启 + this.timerID = setInterval( + () => this.getBaseInfoData(1, this.state.tableKey, 5), + 120000 + ); + this.showModalSign(); + this.getBaseInfoData(1, 1, 5); + this.setMessageData(); + this.state.scoreNoneColumns = [ + { + width: "80px", + title: "生产单元", + dataIndex: "Nav_ProductionUnit.NAME", + key: "Nav_ProductionUnit.NAME", + }, + { + width: "80px", + title: "一级要素", + dataIndex: "Nav_Primary.NAME", + key: "Nav_Primary.NAME", + }, + { + width: "80px", + title: "二级要素", + dataIndex: "Nav_Second.NAME", + key: "Nav_Second.NAME", + }, + { + width: "50px", + title: "考评项目", + dataIndex: "EVALUATION_ITEM", + key: "EVALUATION_ITEM", + render: (text, record) => ( + + { + this.props.app.enums?.PEEvaluationItemEnum.enums[ + record.EVALUATION_ITEM + ] + } + + ), + }, + { + // width: "450px", + title: "考评内容", + dataIndex: "CONTENTS", + key: "CONTENTS", + }, + { + width: "50px", + title: "扣分分值", + dataIndex: "NON_STANDARDIZED_SCORE", + key: "NON_STANDARDIZED_SCORE", + }, + { + width: "400px", + title: "不符合说明", + dataIndex: "NON_CONFORMANCE", + key: "NON_CONFORMANCE", + }, + { + width: "100px", + title: "评价方法", + dataIndex: "Nav_EvaluationMethod", + key: "Nav_EvaluationMethod", + render: (text, record) => ( + + {record.Nav_EvaluationMethod && + record.Nav_EvaluationMethod?.map((item, i) => { + return ( +
+
+ {/* 五个图标模块 */}
+
+
+
+
+
+
+
+
+
+ {tableData.map((item) => {
+ return (
+
+
+
+
+
+
+
+ {/* 通知 */}
+
+
+
+ {/* 列表 */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.showStandardScoreTotalModal()}
+ style={{
+ // padding: "0px",
+ height: "236px",
+ borderRadius: "10px",
+ padding: "10px",
+ cursor: "pointer",
+ }}
+ className="backlog-background-style4"
+ >
+
+
+
+
+
+
+ {/* {83.6} */}
+ {this.state.stardardScoreQty}
+ {/* {this.state.uitem} */}
+
+
+ 标准化得分
+
+
+
+
+
+
+
+
+
+ + {this.state.safetySloganOne} + + {this.state.safetySloganTwo} +
+ this.totalModuleClick(item)}
+ onDoubleClick={() =>
+ this.totalMoonDoubleClick(item)
+ }
+ style={{
+ padding: "0px",
+ height: "176px",
+ borderRadius: "10px",
+ cursor: "pointer",
+ }}
+ className={
+ item.title === "待办事项"
+ ? "backlog-background-style"
+ : item.title === "待办超时"
+ ? "backlog-background-style1"
+ : item.title === "已办事项"
+ ? "backlog-background-style2"
+ : item.title === "今日提醒"
+ ? "backlog-background-style3"
+ : "backlog-background-style4"
+ }
+ >
+
+
+
+
+ );
+ })}
+ 9999
+ ? "backlog-style4"
+ : "backlog-style"
+ }
+ >
+ {item.total}
+
+
+ {item.title}
+
+
+
+
+
+
+
+ ) : null}
+
+
+
+ {this.state.riskLevelPage.length > 0 ? (
+
+
+ 风险等级占比
+
+ {this.state.riskLevelPage.length > 0 ? (
+
+
+ this.showDetailModal("BI013_RISKANALYSISMODEL")
+ }
+ >
+
+
+
+ ) : null}
+
+
+
+
+
+
+
+ this.getBaseInfoData(num, this.state.currentpageIndex, null)
+ }
+ loading={this.state.showLoading}
+ size="small"
+ />
+
+
+