mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 平台配置页面
This commit is contained in:
@@ -205,6 +205,19 @@ export const constantRoutes = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/secret/detail",
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
children: [
|
||||
{
|
||||
path: "index/:id",
|
||||
component: () => import("@/views/thirdparty/secret/detail"),
|
||||
name: "secretDetail",
|
||||
meta: { title: "第三方平台配置详情", activeMenu: "/secret/detail" },
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
// 动态路由,基于用户权限动态去加载
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
// 日期格式化
|
||||
export function parseTime(time, pattern) {
|
||||
console.log("parseTime", time, pattern);
|
||||
// console.log("parseTime", time, pattern);
|
||||
if (arguments.length === 0 || !time) {
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -231,10 +231,7 @@ export default {
|
||||
this.queryGroundLockQrCode =
|
||||
"https://api.jsowellcloud.com/app-xcx-h5/getGroundLockInfo/" +
|
||||
this.stationId;
|
||||
const stationName = this.stationName;
|
||||
const title = "【" + stationName + "】站点详情";
|
||||
const route = Object.assign({}, this.$route, { title: `${title}` });
|
||||
this.$store.dispatch("tagsView/updateVisitedView", route);
|
||||
this.updateTitle();
|
||||
this.getRelationByStationId();
|
||||
this.getParkingList();
|
||||
this.queryStationInfo();
|
||||
@@ -243,6 +240,13 @@ export default {
|
||||
this.initializeData(this.activeName);
|
||||
},
|
||||
methods: {
|
||||
// 更新页面title显示
|
||||
updateTitle() {
|
||||
const stationName = this.stationName;
|
||||
const title = "【" + stationName + "】站点详情";
|
||||
const route = Object.assign({}, this.$route, { title: `${title}` });
|
||||
this.$store.dispatch("tagsView/updateVisitedView", route);
|
||||
},
|
||||
handleClick(tab, event) {
|
||||
// console.log(tab, event);
|
||||
this.initializeData(tab.name);
|
||||
|
||||
50
jsowell-ui/src/views/thirdparty/secret/detail.vue
vendored
Normal file
50
jsowell-ui/src/views/thirdparty/secret/detail.vue
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<div class="app-container Input">
|
||||
<el-tabs type="border-card">
|
||||
<el-tab-pane label="密钥配置" name="order">
|
||||
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane label="同步数据" name="pile">
|
||||
|
||||
</el-tab-pane>
|
||||
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
export default {
|
||||
dicts: ["third_party_type"],
|
||||
components: {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: this.$route.params.id,
|
||||
platformName: this.$route.params.platformName,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.updateTitle();
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 更新页面title显示
|
||||
updateTitle() {
|
||||
const platformName = this.platformName;
|
||||
const title = "【" + platformName + "】平台配置";
|
||||
const route = Object.assign({}, this.$route, { title: `${title}` });
|
||||
this.$store.dispatch("tagsView/updateVisitedView", route);
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
@@ -130,7 +130,11 @@
|
||||
<el-table v-loading="loading" :data="secretList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!--<el-table-column label="主键" align="center" prop="id" />-->
|
||||
<el-table-column label="对接平台名称" align="center" prop="platformName" />
|
||||
<el-table-column label="对接平台名称" align="center" prop="platformName" >
|
||||
<template slot-scope="scope">
|
||||
<span class="link-type" @click="goDetail(scope)">{{ scope.row.platformName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="对接平台类型" align="center" prop="platformType" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag
|
||||
@@ -278,6 +282,15 @@ export default {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
goDetail(scope) {
|
||||
this.$router.push({
|
||||
name: 'secretDetail',
|
||||
params: {
|
||||
id: scope.row.id,
|
||||
platformName: scope.row.platformName
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 查询对接三方平台配置列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
Reference in New Issue
Block a user