Skip to content

Commit

Permalink
Deaso 2018.4.17 可以刷新城市了 #11
Browse files Browse the repository at this point in the history
点击左边地图的时候,右边的城市可以刷新了(其它的属性待增加)
  • Loading branch information
Deasoso committed Apr 17, 2018
1 parent 00d88e2 commit fbb2287
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/views/GameView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
城市
</div>
<div class="column has-text-right subtitle">
新野<!--{{selectedstatus.name}}-->
{{selectedstatus.name}}<!--新野-->
</div>
<div class="column has-text-left subtitle">
太守
Expand Down Expand Up @@ -90,7 +90,7 @@ export default {
</div>
<div class="columns is-mobile">
<div class="column has-text-left">
武力
武将
</div>
<div class="column has-text-right">
5
Expand Down Expand Up @@ -137,6 +137,7 @@ export default {
{ 位置: '襄平', 人口: 1223 },
],
};
var theself = this;
this.selectedstatus = {name : "wow"};
this.legendVisible = false;
this.chartSettings = {
Expand Down Expand Up @@ -211,9 +212,12 @@ export default {
},
};
this.chartEvents = {
click(e) {
() => this.selectedstatus = e;
click(e){
theself.selectedstatus = e;
theself.$forceUpdate();
console.log(e);
console.log(this);
console.log(theself);
},
mouseover(e) {
console.log(e.name);
Expand Down

0 comments on commit fbb2287

Please sign in to comment.