update 平台配置页面

This commit is contained in:
2024-04-22 15:02:55 +08:00
parent 01319e7648
commit 32403e337c
7 changed files with 86 additions and 6 deletions

View File

@@ -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" },
},
],
},
];
// 动态路由,基于用户权限动态去加载

View File

@@ -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
}

View File

@@ -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);

View 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>

View File

@@ -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;