添加cvt管理页面

This commit is contained in:
GGJ
2025-01-23 13:26:20 +08:00
parent 92e7a7a5eb
commit e7807c8eae
8 changed files with 1670 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
<template>
<div class="pa10">
<el-tabs type="border-card" style="height: calc(100vh - 20px)" v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="CVT台账" name="1">
<cvt></cvt>
</el-tab-pane>
<el-tab-pane label="数据绑定" name="2">
<bind></bind>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import cvt from './components/cvt.vue'
import bind from './components/bind.vue'
export default {
components: {
cvt,
bind
},
data() {
return {
activeName: '1'
}
},
created() {
if (process.env.VUE_APP_MODE === 'cgyqr') {
this.guanzhou()
}
},
mounted() {},
methods: {
guanzhou() {
var data = {
token: this.$route.query.token
}
api1.guanzhou(data).then(res => {
if (res.code == 'A0000') {
return
} else {
this.$router.push('/error/massege/403')
}
})
},
handleClick(tab, event) {
// console.log(tab, event);
this.activeName = tab.name
}
}
}
</script>
<style lang="less" scoped>
.pa10 {
padding: 10px;
}
::v-deep .el-tabs--border-card > .el-tabs__content {
padding: 10px;
}
</style>