'commit'
This commit is contained in:
@@ -3,7 +3,7 @@ from fastapi import APIRouter
|
|||||||
from Model.RuYuanZaiYuanCountModel import RuYuanZaiYuanModel
|
from Model.RuYuanZaiYuanCountModel import RuYuanZaiYuanModel
|
||||||
|
|
||||||
# 创建APIRouter实例
|
# 创建APIRouter实例
|
||||||
router = APIRouter(prefix="/bigscreen", tags=["大屏展示"])
|
router = APIRouter(prefix="/RuYuanZaiYuan", tags=["大屏展示"])
|
||||||
|
|
||||||
# 默认的根路由
|
# 默认的根路由
|
||||||
@router.get("/")
|
@router.get("/")
|
||||||
|
Binary file not shown.
@@ -98,8 +98,8 @@
|
|||||||
|
|
||||||
// 根据当前类型加载不同数据
|
// 根据当前类型加载不同数据
|
||||||
var url = currentType === 'enroll' ?
|
var url = currentType === 'enroll' ?
|
||||||
'/bigscreen/school/preschool/chart' :
|
'/RuYuanZaiYuan/school/preschool/chart' :
|
||||||
'/bigscreen/school/preschool/inschool/chart';
|
'/RuYuanZaiYuan/school/preschool/inschool/chart';
|
||||||
|
|
||||||
$.getJSON(url)
|
$.getJSON(url)
|
||||||
.done(function(data) {
|
.done(function(data) {
|
||||||
|
@@ -22,7 +22,7 @@ function showError(messageElement, message) {
|
|||||||
function loadPopulationChartData() {
|
function loadPopulationChartData() {
|
||||||
showLoading(populationChart, $('#populationMessage')[0]);
|
showLoading(populationChart, $('#populationMessage')[0]);
|
||||||
var year = $('#yearSelect').val();
|
var year = $('#yearSelect').val();
|
||||||
$.getJSON('/bigscreen/population/chart/' + year)
|
$.getJSON('/RuYanZaiYuan/population/chart/' + year)
|
||||||
.done(function(data) {
|
.done(function(data) {
|
||||||
populationChart.setOption(data);
|
populationChart.setOption(data);
|
||||||
})
|
})
|
||||||
@@ -37,7 +37,7 @@ function loadPopulationChartData() {
|
|||||||
// 加载城镇化率图表
|
// 加载城镇化率图表
|
||||||
function loadUrbanizationRateChartData() {
|
function loadUrbanizationRateChartData() {
|
||||||
showLoading(urbanizationChart, $('#urbanizationMessage')[0]);
|
showLoading(urbanizationChart, $('#urbanizationMessage')[0]);
|
||||||
$.getJSON('/bigscreen/population/urbanization')
|
$.getJSON('/RuYanZaiYuan/population/urbanization')
|
||||||
.done(function(data) {
|
.done(function(data) {
|
||||||
urbanizationChart.setOption(data);
|
urbanizationChart.setOption(data);
|
||||||
})
|
})
|
Reference in New Issue
Block a user