youhua
This commit is contained in:
parent
35da2c6fd1
commit
0dfae77379
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<router-view/>
|
<router-view class="main"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="appamin">
|
<div class="appamin">
|
||||||
<transition name="fade" mode="out-in">
|
<transition name="fade" mode="out-in">
|
||||||
<router-view ></router-view>
|
<router-view class="mainContent"></router-view>
|
||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -31,6 +31,10 @@ export default {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 90px 80px 30px;
|
padding: 90px 80px 30px;
|
||||||
}
|
}
|
||||||
|
.mainContent{
|
||||||
|
width: 1360px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|||||||
@ -88,6 +88,15 @@ export default [
|
|||||||
title: '员工绩效详情',
|
title: '员工绩效详情',
|
||||||
isNav: true
|
isNav: true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'goals',
|
||||||
|
name: 'assessment-goals',
|
||||||
|
component: (resolve) => require(['@/views/kpi/assessment/goals/index.vue'], resolve),
|
||||||
|
meta: {
|
||||||
|
title: '制定目标',
|
||||||
|
isNav: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -27,13 +27,17 @@ import {
|
|||||||
Tooltip,
|
Tooltip,
|
||||||
Popover,
|
Popover,
|
||||||
Pagination,
|
Pagination,
|
||||||
Cascader
|
Cascader,
|
||||||
|
Tabs,
|
||||||
|
TabPane
|
||||||
} from 'element-ui'
|
} from 'element-ui'
|
||||||
|
|
||||||
Vue.prototype.$message = Message
|
Vue.prototype.$message = Message
|
||||||
Vue.prototype.$confirm = MessageBox.confirm
|
Vue.prototype.$confirm = MessageBox.confirm
|
||||||
Vue.prototype.$alert = MessageBox.alert
|
Vue.prototype.$alert = MessageBox.alert
|
||||||
|
|
||||||
|
Vue.use(Tabs)
|
||||||
|
Vue.use(TabPane)
|
||||||
Vue.use(Cascader)
|
Vue.use(Cascader)
|
||||||
Vue.use(Pagination)
|
Vue.use(Pagination)
|
||||||
Vue.use(Popover)
|
Vue.use(Popover)
|
||||||
|
|||||||
81
src/views/kpi/assessment/goals/index.vue
Normal file
81
src/views/kpi/assessment/goals/index.vue
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
<!-- -->
|
||||||
|
<template>
|
||||||
|
<div class="goals">
|
||||||
|
<SmallNav />
|
||||||
|
<div class="goals-content boderAndRadius">
|
||||||
|
<div class="goals-content-title">
|
||||||
|
<div class="goals-content-title-img">
|
||||||
|
<img src="https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2346299354,1694591848&fm=26&gp=0.jpg" alt="">
|
||||||
|
</div>
|
||||||
|
<div class="goals-content-title-right commonFont">
|
||||||
|
<span style="font-size:14px;">熊成强</span>
|
||||||
|
<span style="font-size:12px;">技术部门</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="goals-content-tabbar">
|
||||||
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
|
<el-tab-pane label="用户管理" name="first">用户管理</el-tab-pane>
|
||||||
|
<el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane>
|
||||||
|
<el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
|
||||||
|
<el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import SmallNav from '@/components/kpi-layout/SmallNav'
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
activeName: 'second'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
SmallNav
|
||||||
|
},
|
||||||
|
computed: {},
|
||||||
|
beforeMount () {},
|
||||||
|
mounted () {},
|
||||||
|
methods: {
|
||||||
|
handleClick (tab, event) {
|
||||||
|
console.log(tab, event)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang='less' scoped>
|
||||||
|
.goals{
|
||||||
|
&-content{
|
||||||
|
padding: 28px;
|
||||||
|
&-title{
|
||||||
|
margin: 0 0 10PX 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
&-img{
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
|
overflow: hidden;
|
||||||
|
img{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-right{
|
||||||
|
margin-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-tabbar{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -15,7 +15,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div class="performance-content-top-right">
|
<div class="performance-content-top-right">
|
||||||
<el-button size="small" plain>沟通管理</el-button>
|
<el-button size="small" @click="handleChangeTtitle" plain>沟通管理</el-button>
|
||||||
<el-button size="small" plain>管理</el-button>
|
<el-button size="small" plain>管理</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -106,7 +106,12 @@ export default {
|
|||||||
computed: {},
|
computed: {},
|
||||||
beforeMount () {},
|
beforeMount () {},
|
||||||
mounted () {},
|
mounted () {},
|
||||||
methods: {},
|
methods: {
|
||||||
|
handleChangeTtitle () {
|
||||||
|
// this.$route
|
||||||
|
console.log('this.$route: ', this.$route.meta.title = '123')
|
||||||
|
}
|
||||||
|
},
|
||||||
watch: {}
|
watch: {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -115,7 +115,9 @@ export default {
|
|||||||
}],
|
}],
|
||||||
props: {
|
props: {
|
||||||
lazy: true,
|
lazy: true,
|
||||||
lazyLoad (node, resolve) {
|
lazyLoad: (node, resolve) => {
|
||||||
|
console.log(this)
|
||||||
|
console.log('node: ', node)
|
||||||
const { level } = node
|
const { level } = node
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const nodes = Array.from({ length: level + 1 })
|
const nodes = Array.from({ length: level + 1 })
|
||||||
@ -151,6 +153,7 @@ export default {
|
|||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
height: 537px;
|
height: 537px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
width: 100%;
|
||||||
&-top{
|
&-top{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user