Browse Source

可视化bug

彭宇 2 years ago
parent
commit
4339491c95
3 changed files with 4 additions and 2 deletions
  1. 2 2
      src/components/eventLocation.vue
  2. 1 0
      src/views/event.vue
  3. 1 0
      src/views/forest.vue

+ 2 - 2
src/components/eventLocation.vue

@@ -6,9 +6,9 @@
         <div class="event-info-top">
         <div class="event-info-top">
           <el-form>
           <el-form>
             <div class="event-info-top-grp">
             <div class="event-info-top-grp">
-              <el-input placeholder="输入经度" v-model="longitude" class="m-l-none">
+              <el-input placeholder="输入经度" type="number" v-model="longitude"  class="m-l-none">
               </el-input>
               </el-input>
-              <el-input placeholder="输入纬度" v-model="latitude">
+              <el-input placeholder="输入纬度" type="number" v-model="latitude">
               </el-input>
               </el-input>
               <el-button type="success" size="mini" @click="getNearEvent()">定位</el-button>
               <el-button type="success" size="mini" @click="getNearEvent()">定位</el-button>
             </div>
             </div>

+ 1 - 0
src/views/event.vue

@@ -1059,6 +1059,7 @@
 					that.todayEventCountDeptList = res.data.eventcountDept
 					that.todayEventCountDeptList = res.data.eventcountDept
 					//  事件分类
 					//  事件分类
 					that.todayEventCountTypeList = res.data.eventcountType
 					that.todayEventCountTypeList = res.data.eventcountType
+          this.eventChartData=[]
 					if (res.data.eventcountSource != null && res.data.eventcountSource.length > 0) {
 					if (res.data.eventcountSource != null && res.data.eventcountSource.length > 0) {
 						for (let i = 0; i < res.data.eventcountSource.length; i++) {
 						for (let i = 0; i < res.data.eventcountSource.length; i++) {
 							let data = {}
 							let data = {}

+ 1 - 0
src/views/forest.vue

@@ -1400,6 +1400,7 @@
 					that.todayEventCountDeptList = res.data.eventcountDept
 					that.todayEventCountDeptList = res.data.eventcountDept
 					//  事件分类
 					//  事件分类
 					that.todayEventCountTypeList = res.data.eventcountType
 					that.todayEventCountTypeList = res.data.eventcountType
+          this.eventChartData=[]
 					if (res.data.eventcountSource != null && res.data.eventcountSource.length > 0) {
 					if (res.data.eventcountSource != null && res.data.eventcountSource.length > 0) {
 						for (let i = 0; i < res.data.eventcountSource.length; i++) {
 						for (let i = 0; i < res.data.eventcountSource.length; i++) {
 							let data = {}
 							let data = {}