Compare commits

...

2 Commits

  1. 28
      src/layout/header/Header.vue
  2. 5
      src/router/index.ts
  3. 16
      src/views/stock/plate/Index.vue

28
src/layout/header/Header.vue

@ -6,21 +6,23 @@
background-color="#545c64"
text-color="#fff"
active-text-color="#ffd04b"
router="true"
@select="handleSelect"
>
<el-menu-item index="1">股票情绪</el-menu-item>
<el-sub-menu index="2">
<template #title>测试菜单</template>
<el-menu-item index="2-1">item one</el-menu-item>
<el-menu-item index="2-2">item two</el-menu-item>
<el-menu-item index="2-3">item three</el-menu-item>
<el-sub-menu index="2-4">
<template #title>item four</template>
<el-menu-item index="2-4-1">item one</el-menu-item>
<el-menu-item index="2-4-2">item two</el-menu-item>
<el-menu-item index="2-4-3">item three</el-menu-item>
</el-sub-menu>
</el-sub-menu>
<el-menu-item index="1" route="/chg">股票情绪</el-menu-item>
<el-menu-item index="2" route="/plate">板块周期</el-menu-item>
<!-- <el-sub-menu index="2">-->
<!-- <template #title>测试菜单</template>-->
<!-- <el-menu-item index="2-1">item one</el-menu-item>-->
<!-- <el-menu-item index="2-2">item two</el-menu-item>-->
<!-- <el-menu-item index="2-3">item three</el-menu-item>-->
<!-- <el-sub-menu index="2-4">-->
<!-- <template #title>item four</template>-->
<!-- <el-menu-item index="2-4-1">item one</el-menu-item>-->
<!-- <el-menu-item index="2-4-2">item two</el-menu-item>-->
<!-- <el-menu-item index="2-4-3">item three</el-menu-item>-->
<!-- </el-sub-menu>-->
<!-- </el-sub-menu>-->
<el-menu-item index="3" disabled>无用菜单</el-menu-item>
</el-menu>
</template>

5
src/router/index.ts

@ -14,6 +14,11 @@ const routes: Array<RouteRecordRaw> =
path: 'chg',
name: 'StockChg',
component: () => import('@/views/stock/chg/Index.vue')
},
{
path: 'plate',
name: 'StockPlate',
component: () => import('@/views/stock/plate/Index.vue')
}
]
}

16
src/views/stock/plate/Index.vue

@ -0,0 +1,16 @@
<template>
<div class="plate-container">
<iframe src="http://page.tdx.com.cn:7615/site/pcwebcall/html/pc_tcld_bkzqb.html" width="100%" height="100%" />
</div>
</template>
<script setup lang="ts">
</script>
<style scoped lang="scss">
.plate-container{
height: 100%;
width: 100%;
}
</style>
Loading…
Cancel
Save