From 2db171c48f0140c5b00f2d3d5867f1c5cd06e599 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Fri, 29 Mar 2024 11:28:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=9A=84=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E6=94=B9=E6=88=90=E9=87=8D=E7=BD=AE=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/InputSearch/index.vue | 8 +++----- .../Home/components/RoadAndEvents/utils/map.js | 10 +++++----- .../views/dutyOfficer/index.vue | 7 ++++++- .../views/emergencyAgencies/index.vue | 7 ++++++- .../views/firstResponders/index.vue | 9 ++++++++- .../views/jurisdictionalManagement/index.vue | 7 ++++++- .../pages/control/event/dispatch/index.vue | 7 ++++++- .../pages/control/event/event/index.vue | 12 +++++++----- .../pages/control/event/plan/index.vue | 6 ++++-- .../pages/control/manual/events/index.vue | 17 +++++++++-------- 10 files changed, 60 insertions(+), 30 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue index 7017c011..1ea6d06f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue @@ -160,19 +160,17 @@ export default { handleResetForm() { if(this.params && this.types == 'input'){ this.value = ""; - return } - // this.visible = true; this.$refs.FormConfigRef?.reset(); - this.$refs.FormConfigRef.$refs.ElFormRef.resetFields(); + this.$refs.FormConfigRef?.$refs.ElFormRef.resetFields(); // this.$refs.PopoverRef.doClose(); - + this.$emit( "handleSearch", cloneDeep(this.$refs.FormConfigRef?.formData), "reset" - ); + ); }, async handleSearch(value) { if (this.types === "input") { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js index d00e4d0b..3b508ed5 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js @@ -134,7 +134,7 @@ export class MarkerCluster { return `
${++num} - ${( + ${( item.extData.deviceName || item.extData.warningTitle || item.config?.item.title @@ -151,11 +151,11 @@ export class MarkerCluster { window.renderData = renderData; + // min-width: 240px; + // min-height: 90px; + // width: 90px; this.infoWindow.setContent(`
${++num} - ${( + ${( item.extData.deviceName || item.extData.warningTitle || item.config?.item.title diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue index 87874eb6..fffda1c4 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue @@ -26,7 +26,7 @@ 新增 - + @@ -35,6 +35,7 @@
导出 - + @@ -23,6 +23,7 @@
导出 - + @@ -22,7 +22,10 @@ + + 导出 - + @@ -23,6 +23,7 @@
- + @@ -10,6 +10,7 @@
- + @@ -212,10 +212,12 @@ export default { } }, onRefresh() { - this.data = []; - setTimeout(() => { - this.getData(); - }, 100); + this.searchData.pageNum = 1; + this.$refs.searchComp.handleResetForm(); + // this.data = []; + // setTimeout(() => { + // this.getData(); + // }, 100); }, onSizeChange(pageSize) { this.searchData.pageSize = pageSize; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue index cc963d44..838b2e1b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue @@ -17,7 +17,7 @@ 刷新
- @@ -119,7 +119,9 @@ export default { this.initData(); }, onRefresh() { - this.initData(); + this.searchData.pageNum = 1; + this.$refs.searchComp.handleResetForm(); + // this.initData(); }, onAdd() { this.detail = {} diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue index ac816b3e..a07a4b19 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue @@ -18,6 +18,7 @@ { @@ -147,13 +152,9 @@ export default { firstBtnClick(id) {}, handleSearch(data) { - console.log("data", data); - this.searchData = { - ...this.searchData, - warningType: data.warningType, - startTime: data.warningTime[0], - completeTime: data.warningTime[1], - }; + this.searchData.warningType = data.warningType; + this.searchData.startTime = data.warningTime && data.warningTime[0]; + this.searchData.completeTime = data.warningTime && data.warningTime[1]; this.initData(); }, },