update code
parent
950fb0c504
commit
3be5e9683f
|
@ -30,6 +30,10 @@ import Layout from '@/layout'
|
||||||
|
|
||||||
// 公共路由
|
// 公共路由
|
||||||
export const constantRoutes = [
|
export const constantRoutes = [
|
||||||
|
{
|
||||||
|
path: '/',
|
||||||
|
component: () => import('@/views/index2.vue'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/index',
|
path: '/index',
|
||||||
component: () => import('@/views/index1.vue'),
|
component: () => import('@/views/index1.vue'),
|
||||||
|
@ -37,6 +41,12 @@ export const constantRoutes = [
|
||||||
{
|
{
|
||||||
path: '/attendanceCfg',
|
path: '/attendanceCfg',
|
||||||
component: () => import('@/views/project/attendanceConfig/index.vue'),
|
component: () => import('@/views/project/attendanceConfig/index.vue'),
|
||||||
|
},{
|
||||||
|
path: '/attendanceUser',
|
||||||
|
component: () => import('@/views/project/attendanceWorker/index.vue'),
|
||||||
|
},{
|
||||||
|
path: '/attendanceData',
|
||||||
|
component: () => import('@/views/project/attendance/index.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/redirect',
|
path: '/redirect',
|
||||||
|
@ -74,10 +84,7 @@ export const constantRoutes = [
|
||||||
component: () => import('@/views/wxsetting/labourComplaint/index'),
|
component: () => import('@/views/wxsetting/labourComplaint/index'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '',
|
|
||||||
component: () => import('@/views/index_v1'),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/user',
|
path: '/user',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="index1">
|
<div class="index1">
|
||||||
<a href="#/attendanceCfg">考勤配置</a>
|
<div class="nav">
|
||||||
|
<label @click="goUrl('#/attendanceCfg')">考勤配置</label>
|
||||||
|
<label @click="goUrl('#/attendanceUser')">考勤人员</label>
|
||||||
|
<label @click="goUrl('#/attendanceData')">考勤记录</label>
|
||||||
|
</div>
|
||||||
|
<iframe :src="src" :key="src" v-if="src" style="width: 100%;height:calc(100vh - 100px);" frameborder="0"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -11,9 +16,14 @@ export default{
|
||||||
|
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{}
|
return{
|
||||||
|
src:''
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
goUrl(url){
|
||||||
|
this.src=url+"?t="+(+new Date());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
created(){}
|
created(){}
|
||||||
}
|
}
|
||||||
|
@ -22,5 +32,11 @@ export default{
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.index1{
|
.index1{
|
||||||
padding:10px;
|
padding:10px;
|
||||||
|
.nav{
|
||||||
|
label{
|
||||||
|
margin-right: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
<template>
|
||||||
|
<div class="index2">
|
||||||
|
这是一个测试页面
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default{
|
||||||
|
name:"Index2",
|
||||||
|
props:{
|
||||||
|
|
||||||
|
},
|
||||||
|
data(){
|
||||||
|
return{}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
},
|
||||||
|
created(){}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
Loading…
Reference in New Issue