Commit 30484ddf authored by 王文琼's avatar 王文琼

看板模板

parent 9399d136
...@@ -88,9 +88,7 @@ ...@@ -88,9 +88,7 @@
.el-row { .el-row {
margin-bottom: 20px; margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
} }
.el-col { .el-col {
......
...@@ -2,32 +2,40 @@ ...@@ -2,32 +2,40 @@
<div class="main-left"> <div class="main-left">
<div class="border-container"> <div class="border-container">
<div class="name-title"> <div class="name-title">
=== <a v-if="chartListLeft[0].tittle">{{chartListLeft[0].tittle}}</a>
<a v-else>===</a>
</div> </div>
<div id="radar1"> <div id="radar1">
<component :is="left1" > </component> <component :is="left1" :id="chartListLeft[0].id "></component>
<!-- <Edubalance /> --> <!-- <Edubalance /> -->
</div> </div>
<Border /> <Border />
</div> </div>
<div class="border-container"> <div class="border-container">
<div class="name-title"> <div class="name-title">
=== <a v-if="chartListLeft[1].tittle">{{chartListLeft[1].tittle}}</a>
<a v-else>===</a>
</div> </div>
<div id="graduateyear1"> <div id="graduateyear1">
<component :is="left2" :id="chartListLeft[1].id "></component>
<component :is="left2" > </component>
</div> </div>
<ul class="three-pie clearfix"> <ul class="three-pie clearfix">
<li> <li>
<div id="sexrate1"> <div id="sexrate1">
<component :is="left3" > </component> <div class="name-title">
<a v-if="chartListLeft[2].tittle">{{chartListLeft[2].tittle}}</a>
<a v-else>===</a>
</div>
<component :is="left3" :id=" chartListLeft[2].id "></component>
</div> </div>
</li> </li>
<li> <li>
<div id="householdrate1"> <div id="householdrate1">
<component :is="left4" > </component> <div class="name-title">
<a v-if="chartListLeft[3].tittle">{{chartListLeft[3].tittle}}</a>
<a v-else>===</a>
</div>
<component :is="left4" :id="chartListLeft[3].id "></component>
</div> </div>
</li> </li>
</ul> </ul>
...@@ -37,22 +45,22 @@ ...@@ -37,22 +45,22 @@
</template> </template>
<script> <script>
import Border from "../chartDemo/border"; import Border from "../chartDemo/border";
import Pie from '../../chart/echarts/pie'; import Pie from "../../chart/echarts/pie";
import Bar from '../../chart/echarts/bar'; import Bar from "../../chart/echarts/bar";
import chartLine from '../../chart/echarts/line'; import chartLine from "../../chart/echarts/line";
import Radar from '../../chart/echarts/radar'; import Radar from "../../chart/echarts/radar";
import Scatter from '../../chart/echarts/scatter'; import Scatter from "../../chart/echarts/scatter";
import Graduateyear from '../../chart/echarts/graduateyear'; import Graduateyear from "../../chart/echarts/graduateyear";
import Sexrate from '../../chart/echarts/sexrate'; import Sexrate from "../../chart/echarts/sexrate";
import Householdrate from '../../chart/echarts/householdrate'; import Householdrate from "../../chart/echarts/householdrate";
import Courserate from '../../chart/echarts/courserate'; import Courserate from "../../chart/echarts/courserate";
import Professionrate from '../../chart/echarts/professionrate' import Professionrate from "../../chart/echarts/professionrate";
import Changedetail from '../../chart/echarts/changedetail' import Changedetail from "../../chart/echarts/changedetail";
import Juniorservice from '../../chart/echarts/juniorservice' import Juniorservice from "../../chart/echarts/juniorservice";
import Edubalance from '../../chart/echarts/edubalance' import Edubalance from "../../chart/echarts/edubalance";
export default { export default {
components: { components: {
Pie, Pie,
Border, Border,
...@@ -72,16 +80,15 @@ ...@@ -72,16 +80,15 @@
data() { data() {
return { return {
chart: { chart: {
BackgroundColor: "#040f3c", BackgroundColor: "#040f3c"
}, },
id:'id3', id: "id3",
chartListLeft:[], chartListLeft: JSON.parse(localStorage.getItem("chartListLeft")),
left1:'', left1: "",
left2:'', left2: "",
left3:'', left3: "",
left4:'' left4: ""
} };
}, },
// props:[ // props:[
// 'chartListLeft' // 'chartListLeft'
...@@ -93,82 +100,71 @@ ...@@ -93,82 +100,71 @@
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.chartListLeft = JSON.parse(localStorage.getItem("chartListLeft")) // this.chartListLeft =
this.left1 = this.chartListLeft[0].chartTypeId; this.left1 = this.chartListLeft[0].chartTypeId;
this.left2 = this.chartListLeft[1].chartTypeId; this.left2 = this.chartListLeft[1].chartTypeId;
this.left3 = this.chartListLeft[2].chartTypeId; this.left3 = this.chartListLeft[2].chartTypeId;
this.left4 = this.chartListLeft[3].chartTypeId; this.left4 = this.chartListLeft[3].chartTypeId;
console.log("vvvvvvvvvvvvv"+this.left1) console.log("vvvvvvvvvvvvv" + this.left1);
}); });
},
methods: {
}, },
methods: {}
} };
</script> </script>
<style scoped> <style scoped>
.main-left { .main-left {
float: left; float: left;
width: 100%; width: 100%;
padding: 0 10px; padding: 0 10px;
box-sizing: border-box; box-sizing: border-box;
} }
.border-container { .border-container {
position: relative; position: relative;
margin-top: 15px; margin-top: 15px;
padding: 10px; padding: 10px;
border: 1px solid #54dcf2; border: 1px solid #54dcf2;
} }
.name-title {
.name-title {
font-size: 20px; font-size: 20px;
color: #00ffff; color: #00ffff;
} }
#radar1 { #radar1 {
height: 275px; height: 275px;
} }
#dormitorydetail1 { #dormitorydetail1 {
height: 135px; height: 135px;
} }
#graduateyear1 { #graduateyear1 {
height: 192px; height: 192px;
} }
.three-pie { .three-pie {
border-top: 1px solid #2c768a; border-top: 1px solid #2c768a;
margin: -10px; margin: -10px;
margin-top: 10px; margin-top: 10px;
height: 266px; height: 266px;
} }
.three-pie li { .three-pie li {
float: left; float: left;
width: 50%; width: 50%;
border-right: 1px solid #2c768a; border-right: 1px solid #2c768a;
box-sizing: border-box; box-sizing: border-box;
} }
.three-pie li:last-child { .three-pie li:last-child {
border-right: none; border-right: none;
} }
#sexrate1, #sexrate1,
#householdrate1 { #householdrate1 {
width:100%; width: 100%;
height: 266px; height: 266px;
} }
</style> </style>
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
<div class="main-middle"> <div class="main-middle">
<div class="border-container"> <div class="border-container">
<div id="mapadd1"> <div id="mapadd1">
<component :is="main1" > </component> <div class="name-title">
<a v-if="chartListMain[2].tittle">{{chartListMain[2].tittle}}</a>
<a v-else>===</a>
</div>
<component :is="main1" :id="chartListMain[0].id "></component>
</div> </div>
<Border /> <Border />
...@@ -11,27 +15,30 @@ ...@@ -11,27 +15,30 @@
<ul class="teacher-pie clearfix"> <ul class="teacher-pie clearfix">
<li> <li>
<div class="name-title"> <div class="name-title">
======= <a v-if="chartListMain[1].tittle">{{chartListMain[1].tittle}}</a>
<a v-else>===</a>
</div> </div>
<div id="courserate1"> <div id="courserate1">
<component :is="main2" > </component> <component :is="main2" :id=" chartListMain[1].id "></component>
</div> </div>
</li> </li>
<li> <li>
<div class="name-title"> <div class="name-title">
======= <a v-if="chartListMain[2].tittle">{{chartListMain[2].tittle}}</a>
<a v-else>===</a>
</div> </div>
<div id="professionrate1"> <div id="professionrate1">
<component :is="main3" > </component> <component :is="main3" :id=" chartListMain[2].id "></component>
</div> </div>
</li> </li>
</ul> </ul>
<div class="name-title"> <div class="name-title">
=== <a v-if="chartListMain[3].tittle">{{chartListMain[3].tittle}}</a>
<a v-else>===</a>
</div> </div>
<div id="changedetail1"> <div id="changedetail1">
<component :is="main4" > </component> <component :is="main4" :id=" chartListMain[3].id "></component>
</div> </div>
<Border /> <Border />
</div> </div>
...@@ -39,22 +46,22 @@ ...@@ -39,22 +46,22 @@
</template> </template>
<script> <script>
import Border from "../chartDemo/border"; import Border from "../chartDemo/border";
import Pie from '../../chart/echarts/pie'; import Pie from "../../chart/echarts/pie";
import Bar from '../../chart/echarts/bar'; import Bar from "../../chart/echarts/bar";
import chartLine from '../../chart/echarts/line'; import chartLine from "../../chart/echarts/line";
import Radar from '../../chart/echarts/radar'; import Radar from "../../chart/echarts/radar";
import Scatter from '../../chart/echarts/scatter'; import Scatter from "../../chart/echarts/scatter";
import Graduateyear from '../../chart/echarts/graduateyear'; import Graduateyear from "../../chart/echarts/graduateyear";
import Sexrate from '../../chart/echarts/sexrate'; import Sexrate from "../../chart/echarts/sexrate";
import Householdrate from '../../chart/echarts/householdrate'; import Householdrate from "../../chart/echarts/householdrate";
import Courserate from '../../chart/echarts/courserate'; import Courserate from "../../chart/echarts/courserate";
import Professionrate from '../../chart/echarts/professionrate' import Professionrate from "../../chart/echarts/professionrate";
import Changedetail from '../../chart/echarts/changedetail' import Changedetail from "../../chart/echarts/changedetail";
import Juniorservice from '../../chart/echarts/juniorservice' import Juniorservice from "../../chart/echarts/juniorservice";
import Edubalance from '../../chart/echarts/edubalance' import Edubalance from "../../chart/echarts/edubalance";
export default { export default {
components: { components: {
Pie, Pie,
Border, Border,
...@@ -74,119 +81,106 @@ ...@@ -74,119 +81,106 @@
data() { data() {
return { return {
chart: { chart: {
BackgroundColor: "#040f3c", BackgroundColor: "#040f3c"
}, },
id:'id3', id: "id3",
chartListMain:[], chartListMain: JSON.parse(localStorage.getItem("chartListMain")),
main1:'', main1: "",
main2:'', main2: "",
main3:'', main3: "",
main4:'' main4: ""
} };
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.chartListMain = JSON.parse(localStorage.getItem("chartListMain")) //this.chartListMain =
this.main1 = this.chartListMain[0].chartTypeId; this.main1 = this.chartListMain[0].chartTypeId;
this.main2 = this.chartListMain[1].chartTypeId; this.main2 = this.chartListMain[1].chartTypeId;
this.main3 = this.chartListMain[2].chartTypeId; this.main3 = this.chartListMain[2].chartTypeId;
this.main4 = this.chartListMain[3].chartTypeId; this.main4 = this.chartListMain[3].chartTypeId;
console.log("vvvvvvvvvvvvv"+this.main1) console.log("vvvvvvvvvvvvv" + this.main1);
}); });
}, },
methods: { methods: {}
};
},
}
</script> </script>
<style scoped> <style scoped>
.main-middle { .main-middle {
padding: 0 10px; padding: 0 10px;
} }
.border-container { .border-container {
position: relative; position: relative;
margin-top: 15px; margin-top: 15px;
padding: 10px; padding: 10px;
border: 1px solid #54dcf2; border: 1px solid #54dcf2;
} }
.name-title { .name-title {
font-size: 20px; font-size: 20px;
color: #00ffff; color: #00ffff;
} }
#mapadd1 { #mapadd1 {
height: 304px; height: 304px;
} }
.number-show { .number-show {
position: absolute; position: absolute;
top: 20%; top: 20%;
right: 5%; right: 5%;
} }
.number-show span.span-name { .number-show span.span-name {
font-size: 14px; font-size: 14px;
color: #fffd51; color: #fffd51;
} }
.number-show span.span-number-show { .number-show span.span-number-show {
font-size: 18px; font-size: 18px;
color: #54b5b5; color: #54b5b5;
font-style: italic; font-style: italic;
} }
.number-show li { .number-show li {
line-height: 25px; line-height: 25px;
} }
#teacherrate1, #teacherrate1,
#courserate1, #courserate1,
#professionrate1 { #professionrate1 {
height: 200px; height: 200px;
} }
#agelist1 { #agelist1 {
height: 130px; height: 130px;
} }
#changedetail1 { #changedetail1 {
height: 229px; height: 229px;
} }
.teacher-pie li:last-child { .teacher-pie li:last-child {
border-right: none; border-right: none;
} }
.teacher-pie li .name-title { .teacher-pie li .name-title {
padding-left: 10px; padding-left: 10px;
padding-top: 10px; padding-top: 10px;
} }
.teacher-pie li { .teacher-pie li {
float: left; float: left;
width: 50%; width: 50%;
border-right: 1px solid #2c768a; border-right: 1px solid #2c768a;
box-sizing: border-box; box-sizing: border-box;
} }
.teacher-pie { .teacher-pie {
border-bottom: 1px solid #2c768a; border-bottom: 1px solid #2c768a;
margin: -10px; margin: -10px;
margin-bottom: 0; margin-bottom: 0;
} }
</style> </style>
<template> <template>
<div class="main-right"> <div class="main-right">
<div class="border-container"> <div class="border-container">
<div class="name-title">===</div> <div class="name-title">
<a v-if="chartListRight[0].tittle">{{chartListRight[0].tittle}}</a>
<a v-else>===</a>
</div>
<div style=" height: 275px;"> <div style=" height: 275px;">
<component :is="right1"></component> <component :is="right1" :id=" chartListRight[0].id "></component>
</div> </div>
<Border /> <Border />
</div> </div>
<div class="border-container"> <div class="border-container">
<div class="name-title">===</div> <div class="name-title">
<a v-if="chartListRight[1].tittle">{{chartListRight[1].tittle}}</a>
<a v-else>===</a>
</div>
<div id="juniorservice1"> <div id="juniorservice1">
<component :is="right2"></component> <component :is="right2" :id=" chartListRight[1].id "></component>
</div> </div>
<Border /> <Border />
</div> </div>
<div class="border-container"> <div class="border-container">
<div class="name-title">===</div> <div class="name-title">
<a v-if="chartListRight[2].tittle">{{chartListRight[2].tittle}}</a>
<a v-else>===</a>
</div>
<div id="edubalance1"> <div id="edubalance1">
<component :is="right3"></component> <component :is="right3" :id="chartListRight[2].id "></component>
</div> </div>
<Border /> <Border />
</div> </div>
...@@ -63,7 +72,7 @@ export default { ...@@ -63,7 +72,7 @@ export default {
BackgroundColor: "#040f3c" BackgroundColor: "#040f3c"
}, },
chartListRight: [], chartListRight: JSON.parse(localStorage.getItem("chartListRight")),
right1: "", right1: "",
right2: "", right2: "",
right3: "" right3: ""
...@@ -72,7 +81,7 @@ export default { ...@@ -72,7 +81,7 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.chartListRight = JSON.parse(localStorage.getItem("chartListRight")); // this.chartListRight = ;
this.right1 = this.chartListRight[0].chartTypeId; this.right1 = this.chartListRight[0].chartTypeId;
this.right2 = this.chartListRight[1].chartTypeId; this.right2 = this.chartListRight[1].chartTypeId;
this.right3 = this.chartListRight[2].chartTypeId; this.right3 = this.chartListRight[2].chartTypeId;
......
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
return { return {
width: 0, width: 0,
height: 0, height: 0,
id: "love" // id: "love"
}; };
}, },
mounted() { mounted() {
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
// props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -12,7 +12,7 @@ var echarts = require("echarts"); ...@@ -12,7 +12,7 @@ var echarts = require("echarts");
export default { export default {
data() { data() {
return { return {
id: "changedetail", // id: "changedetail",
}; };
}, },
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -12,7 +12,7 @@ var echarts = require("echarts"); ...@@ -12,7 +12,7 @@ var echarts = require("echarts");
export default { export default {
data() { data() {
return { return {
id: "courserate",
data: [ data: [
{ {
name: "FK", name: "FK",
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -12,7 +12,7 @@ var echarts = require("echarts"); ...@@ -12,7 +12,7 @@ var echarts = require("echarts");
export default { export default {
data() { data() {
return { return {
id: "edubalance", // id: "edubalance",
}; };
}, },
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
name: "radar", name: "radar",
data() { data() {
return { return {
id: "graduateyear" // id: "graduateyear"
}; };
}, },
mounted() { mounted() {
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -5,14 +5,12 @@ ...@@ -5,14 +5,12 @@
</template> </template>
<script> <script>
import Axios from "@/function/axios.js";
import qs from "qs";
var echarts = require("echarts"); var echarts = require("echarts");
export default { export default {
data() { data() {
return { return {
id: "householdrate", // id: "householdrate",
data: [ data: [
{ {
name: 'FK', name: 'FK',
...@@ -60,7 +58,7 @@ export default { ...@@ -60,7 +58,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -5,14 +5,11 @@ ...@@ -5,14 +5,11 @@
</template> </template>
<script> <script>
import Axios from "@/function/axios.js";
import qs from "qs";
var echarts = require("echarts"); var echarts = require("echarts");
export default { export default {
data() { data() {
return { return {
id: "juniorservice", // id: "juniorservice",
}; };
}, },
...@@ -25,7 +22,7 @@ export default { ...@@ -25,7 +22,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -5,10 +5,7 @@ ...@@ -5,10 +5,7 @@
</template> </template>
<script> <script>
import Axios from "@/function/axios.js";
import qs from "qs";
var echarts = require("echarts"); var echarts = require("echarts");
export default { export default {
name: "radar", name: "radar",
data() { data() {
...@@ -95,7 +92,7 @@ export default { ...@@ -95,7 +92,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -5,17 +5,14 @@ ...@@ -5,17 +5,14 @@
</template> </template>
<script> <script>
import Axios from "@/function/axios.js";
import qs from "qs";
var echarts = require("echarts"); var echarts = require("echarts");
export default { export default {
name: "pie", name: "pie",
data() { data() {
return { return {
width: 0, width: 0,
height: 0, height: 0,
id: "pie" // id: "pie"
}; };
}, },
mounted() { mounted() {
...@@ -31,7 +28,7 @@ export default { ...@@ -31,7 +28,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
// props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -12,7 +12,7 @@ var echarts = require("echarts"); ...@@ -12,7 +12,7 @@ var echarts = require("echarts");
export default { export default {
data() { data() {
return { return {
id: "professionrate", // id: "professionrate",
data: [ data: [
{ {
name: "FK", name: "FK",
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -6,21 +6,18 @@ ...@@ -6,21 +6,18 @@
</template> </template>
<script> <script>
import Axios from "@/function/axios.js";
import qs from "qs";
var echarts = require("echarts"); var echarts = require("echarts");
export default { export default {
name: "radar1", name: "radar1",
data() { data() {
return { return {
width: 0, width: 0,
height: 0, height: 0,
id: "radar1" // id: "radar1"
}; };
}, },
mounted() { mounted() {
console.log(this.width, this.height); console.log(this.id);
this.$nextTick(() => { this.$nextTick(() => {
this.setCharcts(); this.setCharcts();
...@@ -28,7 +25,7 @@ export default { ...@@ -28,7 +25,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
// props: ["chart", "id"], props: ["id"],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -5,10 +5,7 @@ ...@@ -5,10 +5,7 @@
</template> </template>
<script> <script>
import Axios from "@/function/axios.js";
import qs from "qs";
var echarts = require("echarts"); var echarts = require("echarts");
export default { export default {
name: "radar", name: "radar",
data() { data() {
...@@ -71,7 +68,7 @@ export default { ...@@ -71,7 +68,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
// props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
...@@ -12,7 +12,7 @@ var echarts = require("echarts"); ...@@ -12,7 +12,7 @@ var echarts = require("echarts");
export default { export default {
data() { data() {
return { return {
id: "sexrate", // id: "sexrate",
data: [ data: [
{ {
name: "PK", name: "PK",
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}, },
//props: [ 'width', 'height','boardstore','chart','id'], //props: [ 'width', 'height','boardstore','chart','id'],
//props: ['chart', 'id'], props: [ 'id'],
methods: { methods: {
setCharcts() { setCharcts() {
var myChart = echarts.init(document.getElementById(this.id)); var myChart = echarts.init(document.getElementById(this.id));
......
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