From 6f9087eb09281b59860ca737a20bbe045a31a5ea Mon Sep 17 00:00:00 2001
From: zhangshuaibao <15731629597@163.com>
Date: 星期三, 07 四月 2021 17:58:26 +0800
Subject: [PATCH] 增加查询操作
---
src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue | 69 +++++++++++++++++++++++++++++++---
1 files changed, 62 insertions(+), 7 deletions(-)
diff --git a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
index fcba6c6..1cc8a00 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
@@ -1,14 +1,41 @@
<template>
<div id="Tab">
- <div class="Infomation">
+ <div class="infomation">
<el-tag>姘哀鍖栫墿 : 29.93 鏍囧噯 : 100</el-tag>
<el-tag>浜屾哀鍖栫~ : 17.34 鏍囧噯 : 50</el-tag>
<el-tag>鐑熷皹 : 6.93 鏍囧噯 : 30</el-tag>
<el-tag>搴熸皵娴侀噺 : 120343.18</el-tag>
</div>
<div class="form-echrts">
- <!-- :title="this.$attrs.getWasteGasDetails[0].OnLineMonEmissPointName"-->
- <div>
+ <!-- :title="this.$attrs.getWasteGasDetails[0].OnLineMonEmissPointName" -->
+ <div class="from-search">
+ <el-form :inline="true" :model="formInline" class="demo-form-inline">
+<!-- <el-form-item label="瀹℃壒浜�">-->
+<!-- <el-input v-model="formInline.user" placeholder="瀹℃壒浜�"></el-input>-->
+<!-- </el-form-item>-->
+ <div class="block">
+ <el-date-picker
+ class="date"
+ v-model="value"
+ type="datetimerange"
+ range-separator="鑷�"
+ start-placeholder="寮�濮嬫棩鏈�"
+ end-placeholder="缁撴潫鏃ユ湡">
+ </el-date-picker>
+ </div>
+ <el-form-item label="閲囨牱鐐规暟" class="text-size">
+ <el-select v-model="formInline.region" placeholder="0">
+ <el-option label="0" value="shanghai"></el-option>
+ <el-option label="25" value="beijing"></el-option>
+ <el-option label="50" value="beijing"></el-option>
+ <el-option label="75" value="beijing"></el-option>
+ <el-option label="100" value="beijing"></el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item>
+ <el-button type="primary" @click="onSubmit">鏌ヨ</el-button>
+ </el-form-item>
+ </el-form>
<el-button size="mini" round @click="dialogVisible = true">鏄庣粏琛�</el-button>
<el-dialog :visible.sync="dialogVisible"
:append-to-body="true"
@@ -40,6 +67,7 @@
watchData: [],
dialogVisible: false,
dataDate: [],
+ value: '',
options: {
title: {
// text: '鎶樼嚎鍥惧爢鍙�'
@@ -87,7 +115,7 @@
},
grid: {
left: '3%',
- right: '1%',
+ right: '3%',
bottom: '3%',
// top: '1%',
containLabel: true
@@ -120,7 +148,7 @@
xAxis: {
type: 'category',
boundaryGap: false,
- data: ['鍛ㄤ竴', '鍛ㄤ簩', '鍛ㄤ笁', '鍛ㄥ洓', '鍛ㄤ簲', '鍛ㄥ叚', '鍛ㄥ叚'],
+ data: ['12:00:00', '13:00:00', '14:00:00', '15:00:00', '16:00:00', '17:00:00', '18:00:00'],
axisLabel: { // x杞村叏閮ㄦ樉绀�
rotate: 20,
interval: 0,
@@ -195,10 +223,17 @@
data: [820, 932, 901, 934, 1290, 1330, 1320]
}
]
+ },
+ formInline: {
+ user: '',
+ region: ''
}
}
},
methods: {
+ onSubmit () {
+ console.log('submit!')
+ },
drawChart: function () {
const myChart = this.$echarts.init(this.$refs.main)
myChart.setOption(this.options)
@@ -217,7 +252,7 @@
</script>
<style scoped lang="less">
- .Infomation {
+ .infomation {
margin-left: 10px;
}
@@ -242,7 +277,27 @@
overflow: auto;
//overflow: hidden;
}
-
+ .block{
+ .date{
+ width: 300px;
+ height: 30px;
+ }
+ }
+ .text-size{
+ display: flex;
+ justify-content: space-around;
+ }
+ .from-search{
+ display: flex;
+ justify-content: space-around;
+ .demo-form-inline{
+ display: flex;
+ justify-content: space-around;
+ }
+ .el-button--mini, .el-button--mini.is-round{
+ height: 30px;
+ }
+ }
#echarts {
margin: 0;
padding: 0;
--
Gitblit v1.8.0