From 404dbe47bc0872c2d4d4813439970bf80fe1d797 Mon Sep 17 00:00:00 2001 From: wenlele Date: Tue, 20 Sep 2022 21:01:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/assets/images/problem/dropDown.png | Bin 0 -> 780 bytes web/client/assets/images/problem/export.png | Bin 0 -> 983 bytes web/client/assets/images/problem/preview.png | Bin 0 -> 4149 bytes web/client/assets/images/problem/pullUp.png | Bin 0 -> 813 bytes .../problem/components/inspection.jsx | 185 ++++++++++++++---- .../problem/components/inspection.less | 0 .../sections/problem/components/tableData.jsx | 37 ++-- 7 files changed, 167 insertions(+), 55 deletions(-) create mode 100644 web/client/assets/images/problem/dropDown.png create mode 100644 web/client/assets/images/problem/export.png create mode 100644 web/client/assets/images/problem/preview.png create mode 100644 web/client/assets/images/problem/pullUp.png create mode 100644 web/client/src/sections/problem/components/inspection.less diff --git a/web/client/assets/images/problem/dropDown.png b/web/client/assets/images/problem/dropDown.png new file mode 100644 index 0000000000000000000000000000000000000000..aeefc210356f32f1e28dc3ba32f090d59ec430d1 GIT binary patch literal 780 zcmV+n1M~ceP)Px%#z{m$R9HvtmQ6@hQ5c4wGozN;kNpr4(GNus1QoRif=Inq2tgEu&Zt>J5TsyY zgcXGnMn#rpkPw+UV^o{4h1HCM6fSC2P>Wg=xC%i+taN_v7x$;gvYc^7QSj^z_dDF z{1T0B^sRExzlxAt29kgw^hi1PcJ@SLGGa|}U?#zE9jK+|a|eyIY8}z)MGtN$=KJ=b zC^5yA`bhfR3Ys>DqBR><=k}K(vcuAHbmPgYjYTIma1n*O^DM|F+oT<@))b4OS?liH zis&b;b*h&PM;SLV2V&8Q4ct&J4rCCDG$3SHzEtDUUPWzM_+$~fvmPPcJTJPcqAlxf z)a&iS*ujm3Mb9=8R@HW5{iKFUxwWfrRP+7!outgKMObUSw6x*L@s7G~go3ew8$t#C zL+G;C26#=Yb_S*7zYs2;8^|+jgm;Ads(5f9GO^(20!e((FCntpZkaoHw1@wMC=9Ga z*Uuy30KPIKrIg#-ddC87b!a>z@97d8&Z{7)K!hYt(4xKnOY-oG*$fWW0}IV(4pmEQ zc6U71@qru8`Ti`Fl-m%Wnf1MlrrqC$LFM~Tp=67_GaY!e#(1FPPyDC5+gE|G-I_`l z-W=nivWDwvE;x=_6V=0lp>i5>hb9O3k@hqOQm+AvO(3VL<8F2*F8^}i3P=iy5XsKt zG-rN_7dml?8%jmKHH5inV51l$*;z>_Qi-t4ZjqaKw8x2nPAs^gR?xW*T`#uVB4{RU zjhA?}nnXb-9^CjPDDc%FYW;7JeW+k5p4|S)3vM39=kp+V9b}Gq%_MP}7VS+Up%b6@ zuP;ep14NF2wByZrlxXPj10N64KQ!aNfF=NPB#UYAi4K0sCjJAf+sz&BMYJFQ0000< KMNUMnLSTXlG;QYq literal 0 HcmV?d00001 diff --git a/web/client/assets/images/problem/export.png b/web/client/assets/images/problem/export.png new file mode 100644 index 0000000000000000000000000000000000000000..21a75b544c51f07ef29170743f5b54e600255ca0 GIT binary patch literal 983 zcmV;|11S87P)Px&kx4{BR9HvN*jtF)WE8;h|Ct$AZ3~r(LbYJM_CW+6RJ_o3k`Y1n#ajDdlInt` zVsY!EzI7FZf=^zsD8*g6lR*)&prQy#rc#R9J}9_?71Ta>K@hB3h0>WLNoFQ<+nMan zt$7K#ecx}+Ip3GeCtT#4T;x6y;M~#_r+<3^k;hQoIC8ki87`4L3&u~q`bvP7cMy1X z58{xve6wUXdbGGkBd)Kt1z2onM+zE=?e(e{@ zlt6D6!eKJ??fwKBK(2M-yJ~VQdF-bH+36Fww}f=KZsV2CesMH8tg)H zF8dH}{^ORmRt*eWv4Z;%y``l=)eQ(Yf}Dh08F$;a(e=3?$ANqWkvJmlgCvaj^W`ja zMgordSWN^i|6zpbj;O_{+l;UkSd3FBA5b)oVtGFU&rvGG=i7mnw;MP}sc`M!5p;q* zRMm+a(#t{qOVXrQp=<#;UaPSqxaM2q1=clounE-@Nao2#?bziVXl0&KA)bhnVjp7! z>z#&m;{=H8qjk7}0n@&&IO|Fl46j@``E+TVHej8-TrnK&13zVo($0TUqN*iVLxu+)n3T)11*0) z=*!7m+8a53;J#oTXY~_Q?@NOmKQL6S067`p3XrP@hF`&hZpu1To&k+N$HJ{`;H)0l z{An~OwEg)^W|pGyTI@|;@GJXYJUZZcB(oFO_;4`bFj9G2a;V-|XSsAmvS(KNM%p>*Dx?D*Qe*rTM zFw|Jyb(9Kc`i-^WF9D|o_LDVUEGciC)NP|(Ngcwk`X6*t_c&ueJJ$dJ002ovPDHLk FV1fcd*SP=y literal 0 HcmV?d00001 diff --git a/web/client/assets/images/problem/preview.png b/web/client/assets/images/problem/preview.png new file mode 100644 index 0000000000000000000000000000000000000000..3222d01cf302c1dbe831080a963e2f9fb8cd3872 GIT binary patch literal 4149 zcmV-55X$d~P)Px^?@2^KRCr#UTtAOrR}p>h?XDe(2q~S{q>B`2C=mEV&?N;(tYepa1C)YhkqAbi z;RDdp1c?IC(It)}qZAZTU{g@gK!uRf1f=Xk@6DW&zrg^!)PS-Eb(>zV{JWcB~?SI7Ir)gT(?XB6K=KtN^ z_mA3t_t&@A*7)xB%J#SY|L5(!{i#^Mt@Gz@?`_LtEvy%N@Ncpmws6>-fA)3!v;U9% z*w40n?$2!}KfpZrYh7)x@YC*0GhpAhnS?#F{bn=!GCqcVx}VMO>9>4aeTjAO`O`bo zgHJB!k7;!?|JBFO-(08p7wbB`mbPui7DI7(I6B{y#917OeScfrw%k7pYw+jb1USST zmjNe%ion~P9G}Y|%=jVacwi2PfrE9AhHabxa`?qZ?4NntG3{RhI+Kalut%4DlCRfw z&&S*k^tJKojI|ti$=FK|k7`Xt3Kw zfdw=bC^rNLp*Z`=&?*B3D9wrHK7Vla4k5;?kDtH02St<3*ihXxQ$^ie z9IQJcV*pveP->B%s1Gv1Ya^_V2v)(*X$Owp4WKnW+X8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WgW|^)RBL28nJi0qoZSD&zIaofa3uK z0&A6Rr>?|}j}=Z*wA*%(;?7!s4hGUyfb|xJ@7nas06Oc~v9Uj+>8@nKx zOcutdqE#{6F=iWmcJ?Zsju<{{Zc9tchyE%@n{y;LhImU{TctALFw}0uIp9>#7zU=I7<&%kH?=?xBF#T`Vk@>`ZE{i11I4R&5S|+!yYE zT&t@avoe`X`sLuuf@|HjhG5}CBY?b4Sgcn{z5E-XtE(&V=I#5dB$pQF-P&)f)PcY4 z`_=oB;ZA4g1b*u21~9RZFkxZ6QtCp~;;!pX@hROP$B2k;30Ekku1DS97grKI{G{u) z3k25{$6Aisne@(5i)!7rIbd+6m;=vPJ8Eur%a(VgaLo(Gn?`Lg0y}6V;k>QT#%|kx8MRK?ZK3jtMN~tHM6zd=Bx^9gh$X$Rl z!{04SWmU>V%@-No>X>eTa|&}wVM|u26H$x&E>7$AdLn<7#OOjZP*Xk4ZftxNC2wSS rlw<=LGXx*VZWk}~AYDW7fj+qJpt=(*@LwC}00000NkvXXu0mjfPZoWT literal 0 HcmV?d00001 diff --git a/web/client/src/sections/problem/components/inspection.jsx b/web/client/src/sections/problem/components/inspection.jsx index 6c67195..3ae8221 100644 --- a/web/client/src/sections/problem/components/inspection.jsx +++ b/web/client/src/sections/problem/components/inspection.jsx @@ -4,6 +4,8 @@ import { connect } from "react-redux"; import { Button, Form, Modal, Skeleton, Pagination, Table } from "@douyinfe/semi-ui"; import moment from "moment"; import PerfectScrollbar from "perfect-scrollbar"; +import './inspection.less' +import { log } from "ezuikit-js"; let projectScrollbar; @@ -12,12 +14,19 @@ const Inspection = ({ dispatch, actions, route, statistic }) => { const [selectProject, setSelectProject] = useState([]) //所选项目 const [applyFilter, setApplyFilter] = useState([]) //应用筛选 const [patrolAbnormal, setPatrolAbnormal] = useState([]) //巡检异常信息 + const [checkPatrol, setCheckPatrol] = useState({}) //巡检异常查询 + const [unfold, setUnfold] = useState(true) //展开收起 + const [picturePop, setPicturePop] = useState(false) //图片弹窗 + const [pictureId, setPictureId] = useState() //图片id + const [pictureData, setPictureData] = useState({}) //图片数据 const api = useRef(); + const unfoldApi = useRef(false); // console.log(actions); useEffect(() => { + dispatch(problem.getProjectPoms()).then((res) => { // console.log(res.payload.data); if (res.success) { @@ -25,67 +34,101 @@ const Inspection = ({ dispatch, actions, route, statistic }) => { let apply = [] res.payload.data?.rows?.map(v => { project.push({ name: v.pepProjectName || v.name || v.id, value: v.id }) - v.projectApps.map(app => apply.push({ name: app.name, value: app.id })) + v.apps.map(app => apply.push({ name: app.name, value: app.id })) }) setSelectProject(project) setApplyFilter(apply) } }) - dispatch(problem.getAlarmLnspection({})).then((res) => { + }, []) + + useEffect(() => { + if (projectScrollbar) projectScrollbar.destroy() + const domEquipment = document.getElementById("inspection"); + if (unfold) { + projectScrollbar = new PerfectScrollbar("#inspection", { + suppressScrollY: true, + }); + if (domEquipment && projectScrollbar) projectScrollbar.update() + } else { + projectScrollbar = new PerfectScrollbar("#inspection", { + suppressScrollX: true, + }) + if (domEquipment && projectScrollbar) projectScrollbar.update() + } + }) + + useEffect(() => { + dispatch(problem.getAlarmLnspection(checkPatrol)).then((res) => { console.log(res.payload.data); if (res.success) { setPatrolAbnormal(res.payload.data) } }) - - projectScrollbar = new PerfectScrollbar("#inspection", { - suppressScrollY: true, - }); - }, []) + }, [checkPatrol]); useEffect(() => { - - const domEquipment = document.getElementById("inspection"); - if (domEquipment && projectScrollbar) { - projectScrollbar.update(); + if (patrolAbnormal && pictureId) { + console.log(patrolAbnormal.find(v => v.id == pictureId)); + setPictureData(patrolAbnormal.find(v => v.id == pictureId)) } - }); + }, [pictureId]); return ( -
-
+
+
{statistic[route]} APPLY SEMI-AUTOMATIC INSPECTION
仅保留48小时内的图片数据,每小时覆盖执行一次 03专项2期:已阅共123个
-
+
console.log(values)} - // onValueChange={values=>console.log(values)} + onSubmit={(v) => { + setCheckPatrol({ + appId: v.appId, + noted: v.noted, + projectId: v.projectId, + timeStart: v.time == 'true' ? + moment().startOf('day').format('YYYY-MM-DD HH:mm:ss') : + v.time == 'false' ? + moment().day(moment().day() - 1).startOf('day').format('YYYY-MM-DD HH:mm:ss') : "", + timeEnd: v.time == 'true' ? + moment().endOf('day').format('YYYY-MM-DD HH:mm:ss') : + v.time == 'false' ? + moment().day(moment().day() - 1).endOf('day').format('YYYY-MM-DD HH:mm:ss') : "", + }) + }} getFormApi={(formApi) => (api.current = formApi)} layout="horizontal" - style={{ position: "relative", width: "100%", flex: 1 }} > - console.log(v)} - /> + placeholder="全部" + showClear + > + {[{ name: '今日', value: 'true' }, { name: '昨日', value: 'false' }].map((item) => { + return ( + + {item.name} + + ); + })} + @@ -102,7 +145,7 @@ const Inspection = ({ dispatch, actions, route, statistic }) => { labelPosition="left" field='appId' key='appId' - style={{ width: 116, marginRight: 10, color: "#F9F9F9", }} + style={{ width: 116, marginRight: 10, color: "#F9F9F9", marginBottom: 10 }} placeholder="全部" showClear > @@ -119,7 +162,7 @@ const Inspection = ({ dispatch, actions, route, statistic }) => { labelPosition="left" field='noted' key='noted' - style={{ width: 116, marginRight: 10, color: "#F9F9F9", }} + style={{ width: 116, marginRight: 54, color: "#F9F9F9", marginBottom: 10 }} placeholder="全部" showClear > @@ -131,20 +174,94 @@ const Inspection = ({ dispatch, actions, route, statistic }) => { ); })} - +
- -
- {patrolAbnormal?.map(v =>
- -
获取时间:{moment(v.createTime).format("YYYY-MM-DD HH:MM:SS")}
-
)} +
document.getElementById('unfold').style.display = 'none'} + onMouseOut={() => document.getElementById('unfold').style.display = 'block'} + id="inspection" style={{ width: 'calc(100% - 20px)', marginLeft: 10, height: unfold ? 280 : 600, whiteSpace: unfold ? 'nowrap' : '', position: "relative", }}> + {patrolAbnormal?.map(v => +
{ + console.log(v.id); + setPicturePop(true) + setPictureId(v.id); + }} + > + +
+ 获取时间:{moment(v.createTime).format("YYYY-MM-DD HH:MM:SS")} + {v.app?.name} +
+
)}
+
e.stopPropagation()} + onMouseOut={(e) => e.stopPropagation()} + onClick={() => setUnfold(!unfold)} + style={{ + width: 'calc(100% - 20px)', marginLeft: 10, height: 24, + background: unfold ? 'linear-gradient(180deg, rgba(36,139,255,0) 0%, rgba(36,139,255,0.38) 100%)' : 'linear-gradient(180deg, rgba(218,218,218,0) 0%, rgba(212,212,212,0.38) 100%)', + borderRadius: 3, + lineHeight: '24px', + fontSize: 14, + zIndex: 100, + position: 'relative', + top: unfold ? -20 : 6, + left: 0, + textAlign: 'center', + color: unfold ? 'rgba(0,90,189,0.7)' : '#969799', + cursor: 'pointer', + }}>{unfold ? '展开更多' : '收起'} +
+ {picturePop ? {pictureData.app?.name} + + 未读 { }/{patrolAbnormal.length} + +
} + hasCancel={false} + footer={
+ + + + +
} + visible={true} + onOk={() => { + }} + width={837} + onCancel={() => setPicturePop(false)} + > +
+ {pictureData.notedTime ? 核验信息:{pictureData.notedPepUser} {pictureData.notedTime}:""} + 截取时间:{moment(pictureData.createTime).format("YYYY-MM-DD HH:MM:SS")} +
+ + + : "" + }
) } diff --git a/web/client/src/sections/problem/components/inspection.less b/web/client/src/sections/problem/components/inspection.less new file mode 100644 index 0000000..e69de29 diff --git a/web/client/src/sections/problem/components/tableData.jsx b/web/client/src/sections/problem/components/tableData.jsx index 4521c03..900eba7 100644 --- a/web/client/src/sections/problem/components/tableData.jsx +++ b/web/client/src/sections/problem/components/tableData.jsx @@ -6,6 +6,7 @@ import { SkeletonScreen, } from "$components"; const TableData = ({ dispatch, actions, route, collectData, setSetup, exhibition }) => { + const [selected, setSelected] = useState([]) //表格被勾选项 const api = useRef(); @@ -67,7 +68,7 @@ const TableData = ({ dispatch, actions, route, collectData, setSetup, exhibition label={collectData.common.name + ':'} field={collectData.common.field} key={collectData.common.field} - // defaultPickerValue={[new Date('2022-08-08 00:00'), new Date('2022-08-09 12:00')]} + // defaultPickerValue={['2022-08-08 00:00'), new Date('2022-08-09 12:00')]} // initValue={[new Date('2022-08-08 00:00'), new Date()]} onChange={(v) => console.log(v)} />) @@ -76,21 +77,15 @@ const TableData = ({ dispatch, actions, route, collectData, setSetup, exhibition
- setSetup(true)} /> - + + setSetup(true)} />
@@ -127,14 +122,14 @@ const TableData = ({ dispatch, actions, route, collectData, setSetup, exhibition }} rowSelection={{ selectedRowKeys: selected, - onSelect: (record, selected) => { - console.log(`select row: ${selected}`, record); - }, - onSelectAll: (selected, selectedRows) => { - console.log(`select all rows: ${selected}`, selectedRows); - }, + // onSelect: (record, selected) => { + // console.log(`select row: ${selected}`, record); + // }, + // onSelectAll: (selected, selectedRows) => { + // console.log(`select all rows: ${selected}`, selectedRows); + // }, onChange: (selectedRowKeys, selectedRows) => { - console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); + // console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); setSelected(selectedRows.map(v => v.key)) }, }} @@ -148,12 +143,12 @@ const TableData = ({ dispatch, actions, route, collectData, setSetup, exhibition }} >
-
勾选{selected.length}条问题
+
勾选{selected.length}条问题
- + 共{100}个问题
-
+
) }