mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-11 13:30:15 +08:00
update 动态标签名称
This commit is contained in:
@@ -62,10 +62,15 @@ export default {
|
|||||||
return {
|
return {
|
||||||
activeName: 'pile',
|
activeName: 'pile',
|
||||||
stationId: this.$route.params.id,
|
stationId: this.$route.params.id,
|
||||||
|
stationName: this.$route.params.stationName,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// console.log(this.stationId, "充电桩详情 create");
|
// console.log(this.stationId, "充电桩详情 create");
|
||||||
|
const stationName = this.stationName;
|
||||||
|
const title = "【" + stationName + "】站点详情";
|
||||||
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initializeData(this.activeName);
|
this.initializeData(this.activeName);
|
||||||
|
|||||||
@@ -92,12 +92,13 @@
|
|||||||
<!--<el-table-column label="" align="center" prop="id" />-->
|
<!--<el-table-column label="" align="center" prop="id" />-->
|
||||||
<el-table-column label="站点名称" align="center" prop="stationName">
|
<el-table-column label="站点名称" align="center" prop="stationName">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<router-link
|
<!--<router-link
|
||||||
:to="'/station/detail/index/' + scope.row.id"
|
:to="'/station/detail/index/' + scope.row.id"
|
||||||
class="link-type"
|
class="link-type"
|
||||||
>
|
>
|
||||||
<span>{{ scope.row.stationName }}</span>
|
<span>{{ scope.row.stationName }}</span>
|
||||||
</router-link>
|
</router-link>-->
|
||||||
|
<span class="link-type" @click="goStationDetail(scope)">{{ scope.row.stationName }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--<el-table-column label="容量" align="center" prop="capacity" />-->
|
<!--<el-table-column label="容量" align="center" prop="capacity" />-->
|
||||||
@@ -328,6 +329,16 @@ export default {
|
|||||||
// this.getMerchantList();
|
// this.getMerchantList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
goStationDetail(scope) {
|
||||||
|
// console.log("跳转到充电站详情", scope.row.stationName);
|
||||||
|
this.$router.push({
|
||||||
|
name: 'stationDetail',
|
||||||
|
params: {
|
||||||
|
id: scope.row.id,
|
||||||
|
stationName: scope.row.stationName,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
getMerchantList() {
|
getMerchantList() {
|
||||||
getMerchantList().then((response) => {
|
getMerchantList().then((response) => {
|
||||||
this.merchantList = response.rows;
|
this.merchantList = response.rows;
|
||||||
|
|||||||
Reference in New Issue
Block a user