vera_min 2 жил өмнө
parent
commit
27ca578cf8

+ 4 - 0
src/api/system/index.ts

@@ -135,5 +135,9 @@ export default {
     edit: (data: object) => put('/common/city/edit', data),
     del: (id: number) => del('/common/city/del', { id }),
     detail: (id: number) => get('/common/city/getInfoById', { id }),
+  },
+  plugin: {
+    getList: (params: object) => get('/system/plugins/list', params),
+    changeStatus: (params: object) => post('/system/plugins/set', params),
   }
 }

+ 2 - 2
src/views/heating/monitor/weather.vue

@@ -197,7 +197,7 @@ export default defineComponent({
 
 			const option = {
 				backgroundColor: state.charts.bgColor,
-				grid: { top: 70, right: 40, bottom: 30, left: 40 },
+				grid: { top: 70, right: 40, bottom: 50, left: 40 },
 				tooltip: { trigger: 'axis' },
 				legend: { data: ['气温(℃)', '当日平均(℃)'], left: '40%' },
 				xAxis: {
@@ -277,7 +277,7 @@ export default defineComponent({
 			global.homeChartTwo = <any>echarts.init(homeWindLineRef.value, state.charts.theme);
 			const option = {
 				backgroundColor: state.charts.bgColor,
-				grid: { top: 70, right: 40, bottom: 30, left: 40 },
+				grid: { top: 70, right: 40, bottom: 50, left: 40 },
 				tooltip: { trigger: 'axis' },
 				legend: { data: ['风力(级)', '当日风力(级)'], left: '40%' },
 				xAxis: {