Commit b9e298fa authored by 范加坤's avatar 范加坤

zhaoqi

parent 084bc4ce
......@@ -99,7 +99,7 @@
</template>
<script>
import request from '../../api/layer'
// import request from '../../api/layer'
import DateWidget from '../../components/DateWidget/DateWidget.vue'
import Echart from '../../components/Echart/Echarts.vue'
import PartWrap from '../../components/PartWrap/PartWrap.vue'
......@@ -182,7 +182,7 @@ export default {
},
methods: {
async getYearRange() {
let res = await request.aggregation('ra_biogas', {
let res = await this.$api.layer.default.aggregation('ra_biogas', {
groupFields: ['year'],
aggregates: [
['year', 'max'],
......@@ -192,7 +192,7 @@ export default {
console.log(res)
},
async get() {
let res = await request.query('ra_biogas', {
let res = await this.$api.layer.default.query('ra_biogas', {
filter: [
'all',
['=', 'pcode', '10'],
......
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