From 426c8b34e6c0a6f97de69864c537cf5e0d7dbb08 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期四, 15 十二月 2022 18:13:34 +0800
Subject: [PATCH] 2022-12-15 趋势分析 地图位置 ,弹窗修改
---
src/views/operate/viewEvent/index.vue | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/src/views/operate/viewEvent/index.vue b/src/views/operate/viewEvent/index.vue
index 628f749..26b6e09 100644
--- a/src/views/operate/viewEvent/index.vue
+++ b/src/views/operate/viewEvent/index.vue
@@ -23,9 +23,8 @@
<div class="contentItem">
<div style="width: 80px">鎸夌ぞ鍖�:</div>
<div class="search">
- <el-select clearable v-model="searchData.communityId" placeholder="璇烽�夋嫨绀惧尯">
- <el-option v-for="option in communityOptions" :key="option.id" :value="option.id" :label="option.regionName"></el-option>
- </el-select>
+ <el-cascader clearable v-model="searchData.community" :props="communityProps" :options="communityOptions" placeholder="璇烽�夋嫨绀惧尯">
+ </el-cascader>
</div>
</div>
<div class="contentItem">
@@ -89,7 +88,7 @@
<el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8">
<template v-if="scope.row.eventSource" slot-scope="scope">
<span>{{
- scope.row.eventSource === 2 ? "浜哄伐涓婃姤" : "瑙嗛涓婁紶"
+ scope.row.eventSource === 2 ? "浜哄伐涓婃姤" : "瑙嗛宸℃煡"
}}</span>
</template>
</el-table-column>
@@ -208,12 +207,16 @@
currentPage: 1,
categoryOptions: CATEGOTY,
communityOptions: [],
+ communityProps: {
+ label: 'regionName',
+ value: 'id'
+ },
myproblem: 1,
number: "",
searchData: {
categories: null,
number: null,
- communityId: null,
+ community: null,
endTime: null,
site: null,
startTime: null,
@@ -227,11 +230,16 @@
methods: {
// 鑾峰彇鍒楄〃
getList() {
+ const searchData = Object.assign({}, this.searchData);
+ if (this.searchData.community) {
+ searchData.communityId = searchData.community[1];
+ }
+ delete searchData.community;
casequery
.baseCaseQuery({
current: this.currentPage,
pageSize: this.pageSize,
- ...this.searchData,
+ ...searchData,
})
.then((res) => {
this.tableData = res.records;
--
Gitblit v1.8.0