update code
parent
950fb0c504
commit
3be5e9683f
|
@ -30,6 +30,10 @@ import Layout from '@/layout'
|
|||
|
||||
// 公共路由
|
||||
export const constantRoutes = [
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('@/views/index2.vue'),
|
||||
},
|
||||
{
|
||||
path: '/index',
|
||||
component: () => import('@/views/index1.vue'),
|
||||
|
@ -37,6 +41,12 @@ export const constantRoutes = [
|
|||
{
|
||||
path: '/attendanceCfg',
|
||||
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',
|
||||
|
@ -74,10 +84,7 @@ export const constantRoutes = [
|
|||
component: () => import('@/views/wxsetting/labourComplaint/index'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
component: () => import('@/views/index_v1'),
|
||||
},
|
||||
|
||||
{
|
||||
path: '/user',
|
||||
component: Layout,
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
<template>
|
||||
<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>
|
||||
</template>
|
||||
|
||||
|
@ -11,9 +16,14 @@ export default{
|
|||
|
||||
},
|
||||
data(){
|
||||
return{}
|
||||
return{
|
||||
src:''
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
goUrl(url){
|
||||
this.src=url+"?t="+(+new Date());
|
||||
}
|
||||
},
|
||||
created(){}
|
||||
}
|
||||
|
@ -22,5 +32,11 @@ export default{
|
|||
<style lang="scss" scoped>
|
||||
.index1{
|
||||
padding:10px;
|
||||
.nav{
|
||||
label{
|
||||
margin-right: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
</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