From 7705cdd240ea1a07a5772ffb6ba0e1e4995bcc74 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期四, 09 二月 2023 16:36:19 +0800
Subject: [PATCH] 部门组件,bug修改
---
src/views/intelligentPatrol/studyJudge/index.vue | 42 +++++++++++++++++++++++++++++-------------
1 files changed, 29 insertions(+), 13 deletions(-)
diff --git a/src/views/intelligentPatrol/studyJudge/index.vue b/src/views/intelligentPatrol/studyJudge/index.vue
index 293d94b..89ff8f7 100644
--- a/src/views/intelligentPatrol/studyJudge/index.vue
+++ b/src/views/intelligentPatrol/studyJudge/index.vue
@@ -30,7 +30,7 @@
<!-- <span class="moni-area">{{ currentEvent.street }}</span>-->
<!-- <span>{{ currentEvent.address }}</span>-->
<!-- </div>-->
- <span
+ <span @click="openDialogTable" class="count-data-span"
>鎮ㄦ湁{{ countData.review }}鏉″緟瀹℃牳鎶ヨ淇℃伅,浠婃棩绔嬫{{
countData.register
}}鏉�,鍐嶅涔爗{ countData.study }}鏉�</span
@@ -228,6 +228,9 @@
<div id="dom1" class="dom1"></div>
</div>
</el-dialog>
+ <el-dialog :visible.sync="isShowTable" title="鎶ヨ淇℃伅" width="1200px">
+ <inspection-table />
+ </el-dialog>
</div>
</template>
@@ -238,21 +241,16 @@
import { FILE_ORIGINAL_URL } from "@/utils";
import { validateCarNum } from "@/utils/validate";
import MyDispatch from "@/components/dispatch";
-
-import MyMap from "@/components/map";
+import InspectionTable from "@/views/intelligentPatrol/studyJudge/inspectionTable/index.vue";
+// import MyMap from "@/components/map";
+import MyMap from "@/components/map/leafletMap.vue";
export default {
- components: { MyDispatch, MyMap },
+ components: { MyDispatch, MyMap, InspectionTable },
created() {
this.getInspectionData();
this.initEventParams();
- basecase
- .getInspectionCountData()
- .then((res) => {
- this.countData = res;
- })
- .catch((err) => this.$message.error(err));
-
+ this.getInspectionCount();
getStoreInfoList({ current: 1, size: 100 })
.then(({ list }) => {
this.storeList = list;
@@ -277,7 +275,7 @@
},
mounted() {
this.timer = setInterval(() => {
- setTimeout(this.getInspectionData, 0);
+ this.getInspectionCount();
}, 1000 * 10);
},
data() {
@@ -293,6 +291,7 @@
}
};
return {
+ isShowTable: false,
timer: null,
countData: {
study: 0,
@@ -370,6 +369,19 @@
};
},
methods: {
+ getInspectionCount() {
+ basecase
+ .getInspectionCountData({
+ showLoading: false,
+ })
+ .then((res) => {
+ this.countData = res;
+ })
+ .catch((err) => this.$message.error(err));
+ },
+ openDialogTable() {
+ this.isShowTable = true;
+ },
pageChange(type) {
if (type === "next") {
this.currentPage += 1;
@@ -388,7 +400,7 @@
x: this.currentEvent.longitude,
y: this.currentEvent.latitude,
};
- this.zoom = 19;
+ this.zoom = 18;
this.mark = { title: this.currentEvent.address };
if (this.currentEvent?.picData) {
this.imageList = this.currentEvent.picData
@@ -682,6 +694,10 @@
.sjm-content-left {
line-height: 4.8vh;
+ .count-data-span {
+ cursor: pointer;
+ color: #66b1ff;
+ }
.left-form > ::v-deep.el-form-item__label {
font-size: 16px !important;
}
--
Gitblit v1.8.0