县域分析0930

init
feiliming 4 years ago
parent a2b216bbd5
commit 0fd4a14ebe

@ -54,6 +54,7 @@
"eslint": "^6.7.2", "eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2", "eslint-plugin-vue": "^6.2.2",
"less-loader": "^7.3.0", "less-loader": "^7.3.0",
"mockjs": "^1.1.0",
"node-sass": "^5.0.0", "node-sass": "^5.0.0",
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.11"
}, },

@ -20,7 +20,7 @@ export default {
mounted(){ mounted(){
let html = document.getElementsByTagName('html')[0]; let html = document.getElementsByTagName('html')[0];
html.style.overflow = 'auto'; html.style.overflow = 'auto';
html.style.width = '1920px'; html.style.width = '100%';
// html.style.minWidth = '1920px'; // html.style.minWidth = '1920px';
html.style.height = '100%'; html.style.height = '100%';
html.style.minHeight = '400px'; html.style.minHeight = '400px';

@ -0,0 +1,16 @@
import interfaceConfig from '../../../../global-llibs/axios-config'
/**
* 3.3.21县域分析 021.学校整体对比表格图表
* @param params
* @param callback
*/
function getSchoolTotalNumAvgRankList(params, callback) {
interfaceConfig.callInterface([{
url: "intellioa/getSchoolTotalNumAvgRankList",
method: "get",
params: params,
isTestLogin: false
}], callback)
}

@ -0,0 +1,42 @@
let Mock = require('mockjs')
/**
* 3.3.21县域分析 021.学校整体对比表格图表
* @param params
* @param callback
*/
function getSchoolTotalNumAvgRankList(params, callback) {
return Mock.mock({
'list|20': [{
"id|+1": 0,
"report_year": "20202021",
"school_id": "400195",
"school_name": "@city(true)",
"bureau_id": "300529",
"bureau_name": "吉林省长春市南关区",
"data_type": 4,
"psn_num_boy|1000-5000": 0,
"psn_num_girl|1000-5000": 0,
"psn_num_stu|3000-10000": 0,
"scr_avg_boy|1-100.2": 0,
"scr_avg_girl|1-100.2": 0,
"scr_avg_stu|1-100.2": 0,
"rnk_rto_a_boy|1-100.2": 0,
"rnk_rto_a_girl|1-100.2": 0,
"rnk_rto_a_stu|1-100.2": 0,
"rnk_rto_b_boy|1-100.2": 0,
"rnk_rto_b_girl|1-100.2": 0,
"rnk_rto_b_stu|1-100.2": 0,
"rnk_rto_c_boy|1-100.2": 0,
"rnk_rto_c_girl|1-100.2": 0,
"rnk_rto_c_stu|1-100.2": 0,
"rnk_rto_d_boy|1-100.2": 0,
"rnk_rto_d_girl|1-100.2": 0,
"rnk_rto_d_stu|1-100.2": 0,
}]
}).list
}
export default {
getSchoolTotalNumAvgRankList
}

@ -8,7 +8,7 @@ const columns = [{
},{ },{
title: '学校', title: '学校',
align: 'center', align: 'center',
dataIndex: 'shcool_name' dataIndex: 'school_name'
},{ },{
title: '所属区县', title: '所属区县',
align: 'center', align: 'center',
@ -76,6 +76,4 @@ const columns = [{
] ]
}] }]
const tableDatas = [] export { columns }
export { columns, tableDatas }

@ -25,7 +25,8 @@
<script> <script>
import YearSelect from '../common/YearSelect'; import YearSelect from '../common/YearSelect';
import { Table } from "ant-design-vue"; import { Table } from "ant-design-vue";
import { columns,tableDatas } from './District_02' import DistrictAnalysisMockApi from './DistrictAnalysisMockApi'
import { columns } from './District_02'
export default { export default {
name: "District_02", name: "District_02",
props: { props: {
@ -41,12 +42,20 @@
}, },
components: { components: {
YearSelect, YearSelect,
ATable: Table, ATable: Table
}, },
data: function() { data: function() {
return { return {
columns, columns,
tableDatas, tableDatas: [],
}
},
mounted() {
this.tableDatas = DistrictAnalysisMockApi.getSchoolTotalNumAvgRankList()
},
methods: {
onYearChange: function () {
} }
} }
} }

@ -21,6 +21,10 @@ function getEntry() {
let filepath = items[i] let filepath = items[i]
let fileList = filepath.split('/'); let fileList = filepath.split('/');
let fileName = fileList[fileList.length - 2]; let fileName = fileList[fileList.length - 2];
// TODO 只打包正在编码的项目
if (fileName != "physicalHealth") {
continue;
}
entries[fileName] = { entries[fileName] = {
entry: `src/views/${fileName}/main.js`, entry: `src/views/${fileName}/main.js`,
// 在 dist/index.html 的输出 // 在 dist/index.html 的输出
@ -58,7 +62,7 @@ module.exports = {
publicPath: '/', //默认/,确保 publicPath 总是以斜杠(/)开头和结尾。 publicPath: '/', //默认/,确保 publicPath 总是以斜杠(/)开头和结尾。
proxy: { proxy: {
'/dsideal_yy/': { '/dsideal_yy/': {
target: 'http://10.10.14.199', target: 'http://10.10.11.190',
changeOrigin: true, changeOrigin: true,
secure: false secure: false
}, },
@ -68,7 +72,7 @@ module.exports = {
secure: false secure: false
}, },
'': { '': {
target: 'http://10.10.14.199', target: 'http://10.10.11.190',
pathRewrite: { "^": "/dsideal_yy/" }, pathRewrite: { "^": "/dsideal_yy/" },
changeOrigin: true, changeOrigin: true,
secure: false secure: false

Loading…
Cancel
Save