From cab5c25634e2bce68c9f350fd055227ca7d4f244 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Fri, 13 Oct 2023 07:56:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=9A=E5=8A=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/img/arrow/left.png | Bin 0 -> 810 bytes src/assets/img/arrow/right.png | Bin 0 -> 826 bytes src/components/Formula.vue | 2 +- src/components/Setting/components/Device.vue | 2 +- src/components/Setting/components/History.vue | 7 ++++--- src/components/Setting/components/RunInfectionSetting.vue | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 src/assets/img/arrow/left.png create mode 100644 src/assets/img/arrow/right.png diff --git a/src/assets/img/arrow/left.png b/src/assets/img/arrow/left.png new file mode 100644 index 0000000000000000000000000000000000000000..dabd2f40281ec56e22554a15ef4c709a25bbb95c GIT binary patch literal 810 zcmV+_1J(SAP)Px#1am@3R0s$N2z&@+hyVZr)Ja4^R9J=8n9+6GKoCXW8&QBdh!*+ZNe8$By98VT zaRr77Y$|{f>Z|8@8)Hn|WgWJZ^0O@aN%B@zzqeY5+^XtEM3!x28wu{k0Ls@vb=@GT`)IA5lU$*HIRFSquB^55x6xc~U=D8$yL^fzmDt0AyJyYB|L&id$&X;YZfv@%SbTLxcSK>J^f=06-VssI6QWhW9{`9&P70LPU(DX*y{+ z@1xvX|7tl|mfgvID;rWJ7o5c|=UPZMEd+*^1Ib{7W|c}=&QH^HE+R1+o?usPSK-&K zuc`s9wZH2Ik=%~Q;~z~#x^QCsq_!U159-n9fGCRmQ@>AZZG_XgRD>7+cDvnLM835Z zst9#$h)HfoB;%SK*)z4)VlU}=-h7~|F%eab8xEdYYgYhZjEP0$2Islv3RE=_0Pij4 z3@WLruOcEZE$3B9p5-8Up0^QWOiXgya_)g-|7!UGF~-CrAm2&=tvUtBB`5BX_5LhX z)eYdvE%)r}5~e^^C;e#^BqFi|oS>`!muFb0D@FgNxJkaSi+vM27XT$eV@#r|50`QJ zi>e-U7!K}Y_a0pgEmh*EnN-=EaepDx0fY)%JMJigmDP-hJe2cb0M_^4uDJ~nM&KBE81B~jIfQw_}jzXe>zJ(gx9CmoyUuT8}|36_bXC`i+ELh{zV o4E<8!o47kV2JkK-FI|g@KdbS4WS`$#nE(I)07*qoM6N<$f&_MKbN~PV literal 0 HcmV?d00001 diff --git a/src/assets/img/arrow/right.png b/src/assets/img/arrow/right.png new file mode 100644 index 0000000000000000000000000000000000000000..ac8e70abf624850d6511adf50c72a8ed175fb192 GIT binary patch literal 826 zcmV-A1I7G_P)Px#1am@3R0s$N2z&@+hyVZr39&dD zQiVihQl2;)K%aN70FoczD$6pnD)Mn-v9~q(DXNmu(s(X%d!Lj(lni*Wh9+*mt2H$ASE3k&zOjYp1Hx0M3jusJbSJGl?R%( zlzE;{;d3xe(}~s^Xvj$sNl0t`w+7PqL~lG;hUoM2^F>6)HC=4&c@RK66kPHArVb;l z?c3Ke_7SdxY-6=^?oSj&H^m2Qtrt!A8X__yA~OC)woftkd_cpvvP=|3lQJ9*TN5pd zh&k{jp)$;T9}*v7t)ZDJE6cW { const ele = document.getElementById('set_device_container') - ele.scrollTop = ele.scrollTop - 100 < 0 ? 0 : ele.scrollTop - 100 + ele.scrollTop = ele.scrollTop - 100 < 100 ? 0 : ele.scrollTop - 100 } const bottomContainer = () => { diff --git a/src/components/Setting/components/Device.vue b/src/components/Setting/components/Device.vue index 1f01ac9..9f5f59f 100644 --- a/src/components/Setting/components/Device.vue +++ b/src/components/Setting/components/Device.vue @@ -251,7 +251,7 @@ import { const topContainer = () => { const ele = document.getElementById('set_device_container') - ele.scrollTop = ele.scrollTop - 100 < 0 ? 0 : ele.scrollTop - 100 + ele.scrollTop = ele.scrollTop - 100 < 100 ? 0 : ele.scrollTop - 100 } const bottomContainer = () => { diff --git a/src/components/Setting/components/History.vue b/src/components/Setting/components/History.vue index d7b1109..7421297 100644 --- a/src/components/Setting/components/History.vue +++ b/src/components/Setting/components/History.vue @@ -67,7 +67,7 @@ const webSocketStore = useWebSocketStore() const topContainer = () => { const ele = document.getElementById('set_device_container') - ele.scrollTop = ele.scrollTop - 100 < 0 ? 0 : ele.scrollTop - 100 + ele.scrollTop = ele.scrollTop - 100 < 100 ? 0 : ele.scrollTop - 100 } const bottomContainer = () => { @@ -77,7 +77,7 @@ const bottomContainer = () => { const topContainer2 = () => { const ele = document.getElementById('tabledetail_device_container') - ele.scrollTop = ele.scrollTop - 100 < 0 ? 0 : ele.scrollTop - 100 + ele.scrollTop = ele.scrollTop - 100 < 100 ? 0 : ele.scrollTop - 100 } const bottomContainer2 = () => { @@ -86,11 +86,12 @@ const bottomContainer2 = () => { } const showDetailModal = item => { + historyStore.updateDetailData([]) // 根据这个item获取详细信息 webSocketStore.sendCommandMsg(getDetailInfoById(item)) setTimeout(() => { showDetailVisible.value = true - }, 1000) + }) } diff --git a/src/components/Setting/components/RunInfectionSetting.vue b/src/components/Setting/components/RunInfectionSetting.vue index ea1940e..aa30667 100644 --- a/src/components/Setting/components/RunInfectionSetting.vue +++ b/src/components/Setting/components/RunInfectionSetting.vue @@ -218,7 +218,7 @@ const props = defineProps({ const topContainer = () => { const ele = document.getElementById('set_device_container') - ele.scrollTop = ele.scrollTop - 100 < 0 ? 0 : ele.scrollTop - 100 + ele.scrollTop = ele.scrollTop - 100 < 100 ? 0 : ele.scrollTop - 100 } const bottomContainer = () => {