diff --git a/src/api/apis/apis.js b/src/api/apis/apis.js index 20786d2..5b7d605 100644 --- a/src/api/apis/apis.js +++ b/src/api/apis/apis.js @@ -1476,4 +1476,44 @@ export default { data, }); }, + //学校学段及年级 + sectionAndGradeList(data) { + return service({ + url: setUpUrls.sectionAndGradeList, + method: "POST", + data, + }); + }, + //学校设备使用分析 + usageStatistics(data) { + return service({ + url: setUpUrls.usageStatistics, + method: "POST", + data, + }); + }, + //集团设备使用分析 + tenantUsageStatistics(data) { + return service({ + url: setUpUrls.tenantUsageStatistics, + method: "POST", + data, + }); + }, + //集团学段及年级 + tenantSectionAndGradeList(data) { + return service({ + url: setUpUrls.tenantSectionAndGradeList, + method: "POST", + data, + }); + }, + //集团查询科目列表 + tenantSubjectList(data) { + return service({ + url: setUpUrls.tenantSubjectList, + method: "POST", + data, + }); + }, }; diff --git a/src/api/urls/apis.js b/src/api/urls/apis.js index c16b41f..029435d 100644 --- a/src/api/urls/apis.js +++ b/src/api/urls/apis.js @@ -382,4 +382,14 @@ export default { updateSubject: "/api_html/school/manager/updateSubject", //.net下载地址 runtimeEnvFileUrl: "/api_html/school/manager/runtimeEnvFileUrl", + //学校学段及年级 + sectionAndGradeList: "/api_html/school/manager/sectionAndGradeList", + //学校设备使用分析 + usageStatistics: "/api_html/school/manager/usageStatistics", + //集团设备使用分析 + tenantUsageStatistics: "/api_html/tenant/usageStatistics", + //集团学段及年级 + tenantSectionAndGradeList: "/api_html/tenant/sectionAndGradeList", + //集团查询科目列表 + tenantSubjectList: "/api_html/tenant/subjectList", } diff --git a/src/components/charts/barChart.vue b/src/components/charts/barChart.vue new file mode 100644 index 0000000..9c5ec6b --- /dev/null +++ b/src/components/charts/barChart.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/src/plugins/echarts.js b/src/plugins/echarts.js index 0b042fb..3ced106 100644 --- a/src/plugins/echarts.js +++ b/src/plugins/echarts.js @@ -3,6 +3,7 @@ import Vue from 'vue' import * as echarts from 'echarts/core'; // 引入柱状图图表,图表后缀都为 Chart import { + BarChart, LineChart, PieChart, ScatterChart, @@ -19,7 +20,8 @@ import { GridComponent, GraphicComponent, SingleAxisComponent, - LegendComponent + LegendComponent, + ToolboxComponent } from 'echarts/components'; // 引入 Canvas 渲染器,注意引入 CanvasRenderer 或者 SVGRenderer 是必须的一步 @@ -29,7 +31,7 @@ import { // 注册必须的组件 echarts.use( - [LineChart,RadarChart, ScatterChart, PieChart, SingleAxisComponent, TitleComponent, TooltipComponent, GridComponent, CanvasRenderer, GraphicComponent, UniversalTransition, LabelLayout,LegendComponent] + [BarChart,LineChart,RadarChart, ScatterChart, PieChart, SingleAxisComponent, TitleComponent, TooltipComponent, GridComponent, CanvasRenderer, GraphicComponent, UniversalTransition, LabelLayout,LegendComponent,ToolboxComponent] ); Vue.prototype.$echarts = echarts \ No newline at end of file diff --git a/src/views/standard/analysis/index.vue b/src/views/standard/analysis/index.vue index cb85746..a1fcc5e 100644 --- a/src/views/standard/analysis/index.vue +++ b/src/views/standard/analysis/index.vue @@ -6,219 +6,198 @@
-
-
- - - - - - - - -
- - - ~ - - +
    +
  • + 时间段: +
    +
    + + + ~ + + +
    +

    + 今天 + 本周 + 本月 + 本季度 +

    -

    - 今天 - 本周 - 本月 +

  • + 对比项{{ setBigNum(index) }}: +
    + +
    + +
  • +
  • + +
    + 添加对比项 - 本季度确定 -

    - 筛选 -
    -
-
- - 学校使用对比 - 学段使用对比 - -
-
- - - - - - - - - -

- 导出报表 -

+
+ + +
+
@@ -451,13 +455,89 @@ div::-webkit-scrollbar-thumb { } \ No newline at end of file diff --git a/src/views/standard/analysis/indexOld.vue b/src/views/standard/analysis/indexOld.vue new file mode 100644 index 0000000..cb85746 --- /dev/null +++ b/src/views/standard/analysis/indexOld.vue @@ -0,0 +1,463 @@ + + + + + \ No newline at end of file diff --git a/src/views/standard/card/index.vue b/src/views/standard/card/index.vue index 5fce5c2..05320bd 100644 --- a/src/views/standard/card/index.vue +++ b/src/views/standard/card/index.vue @@ -146,6 +146,8 @@ }} +