Commit 6876d186 authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent c4e5efad
......@@ -44,9 +44,8 @@ export default {
tablePagination,
chart,
pie
},
data () {
},
data() {
return {
typeList: [
{ name: '当日' },
......@@ -67,11 +66,7 @@ export default {
chartList: [
{ id: '11', title: '温度', color: '#21ACFC' },
{ id: '22', title: '湿度', color: '#36CBCB' },
{ id: '33', title: '风速', color: '#3AA0FF' },
{ id: '44', title: '光照', color: '#FAD337' },
{ id: '55', title: 'CO2', color: '#4ECB74' },
{ id: '66', title: 'PM2.5', color: '#999999' },
{ id: '77', title: '辐射', color: '#975FE4' }
{ id: '33', title: 'CO2', color: '#4ECB74' }
],
data: [
['2019-8-14 8:00:00', 70],
......@@ -81,15 +76,12 @@ export default {
['2019-8-14 8:00:06', 10],
['2019-8-14 8:00:20', 31]
],
dataRule: {
name: [ { required: true, message: '不能为空', trigger: 'blur' }]
}
dataRule: {}
}
},
methods: {
init (id, type) {
init(id, type) {
this.type = type
this.dataForm.id = id
......@@ -110,15 +102,13 @@ export default {
})
}
},
getDataList() {
},
getDataList() {},
// 当日 ,本周
handleDate(i) {
this.currentActive = i
},
// 表单提交
dataFormSubmit () {
dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
// this.$http({
......@@ -146,7 +136,7 @@ export default {
}
}
</script>
<style lang='scss' scoped>
<style lang="scss" scoped>
.echartsWarp {
display: flex;
justify-content: space-between;
......@@ -166,7 +156,7 @@ export default {
color: #000000;
line-height: 40px;
&::before {
content: "";
content: '';
display: inline-block;
width: 10px;
height: 10px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment