desc: 修改路由监听

This commit is contained in:
zyy 2019-08-16 16:33:59 +08:00
parent e6f83a7998
commit 25493993d9
4 changed files with 10 additions and 4 deletions

View File

@ -17,6 +17,9 @@ export default {
add: '添加',
are: '是',
deny: '否',
drawMap: '绘图',
advanced: '高级',
viewLayer: '视图图层',
save: '保存',
updata: '更新',

View File

@ -21,12 +21,12 @@
type="text"
style="float: right; padding: 3px 0; margin-right: 5px;"
@click="drawMap"
>绘图</el-button>
>{{ $t('map.drawMap') }}</el-button>
<el-button
type="text"
style="float: right; padding: 3px 0; margin-right: 5px;"
@click="showMap"
>视图图层</el-button>
>{{ $t('map.viewLayer') }}</el-button>
</div>
<el-tabs v-model="enabledTab" type="card" @tab-click="changePane">
<el-tab-pane label="进路" name="route">

View File

@ -87,6 +87,9 @@ export default {
watch: {
'$store.state.map.mapDataLoadedCount': function (val) {
this.initAutoSaveTask();
},
$route() {
this.loadInitPage();
}
},
mounted() {

View File

@ -25,12 +25,12 @@
type="text"
style="float: right; padding: 3px 0; margin-right: 5px;"
@click="dataRelation"
>高级</el-button>
>{{ $t('map.advanced') }}</el-button>
<el-button
type="text"
style="float: right; padding: 3px 0; margin-right: 5px;"
@click="showMap"
>视图图层</el-button>
>{{ $t('map.viewLayer') }}</el-button>
</div>
<el-tabs v-model="enabledTab" type="card">
<el-tab-pane :label="$t('map.link')" name="Link">