123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <template>
- <div class="assessmentPage">
- <!-- <div class="treeList" :style="allHeight">
- <p>全业务域对标考评系统</p>
- <el-tree ref="tree" :data="forecastDatas" :props="defaultProps" highlight-current node-key="id"
- :default-expanded-keys="['5']" @node-click="handleNodeClick">
- <template #default="{ node, data }">
- <span class="custom-tree-node">
- <el-icon size="small" v-if="node.level === 1"><FolderOpened /></el-icon>
- <span style="margin-left:5px;font-size:14px;line-height:35px;display:inline-block">{{node.label}}</span>
- </span>
- </template>
- </el-tree>
- </div>
- <div class="mainMessage" :style="mainHeight">
- <router-view/>
- </div> -->
- </div>
- </template>
- <script>
- export default {
- data() {
- return {
- forecastDatas:[],
- defaultProps: {
- children: 'children',
- label: 'label',
- }
- }
- },
- computed:{
- allHeight() {
- return {
- 'height': document.documentElement.clientHeight-40 + 'px'
- }
- },
- mainHeight() {
- return {
- 'height': document.documentElement.clientHeight-50 + 'px'
- }
- }
- },
- created() {
- this.forecastDatas = [
- {
- id: '1',
- label: '对标业务',
- icon: 'FolderOpened',
- children: [
- {
- id: '1-1',
- label: '排行榜',
- },
- {
- id: '1-2',
- label: '分类对标',
- },
- {
- id: '1-3',
- label: '综合对标',
- },
- {
- id: '1-4',
- label: '立标管理',
- },
- {
- id: '1-5',
- label: '寻标管理',
- },
- {
- id: '1-6',
- label: '达标管理',
- },
- {
- id: '1-7',
- label: '超标管理',
- },
- {
- id: '1-8',
- label: '对标报告'
- }
- ]
- },
- {
- id: '2',
- label: '考评业务',
- children: [
- {
- id: '2-1',
- label: '考评总览'
- },
- {
- id: '2-2',
- label: '考评启动'
- },
- {
- id: '2-3',
- label: '考评修订'
- },
- {
- id: '2-4',
- label: '考评目标分解'
- },
- {
- id: '2-5',
- label: '月/季度考评'
- },
- {
- id: '2-6',
- label: '考评项对标'
- },
- {
- id: '2-7',
- label: '考评项预警'
- },
- {
- id: '2-8',
- label: '年度考评'
- },
- {
- id: '2-9',
- label: '人员考评'
- },
- {
- id: '2-10',
- label: '任期考评'
- },
- {
- id: '2-11',
- label: '考评监督'
- },
- {
- id: '2-12',
- label: '考评评级'
- },
- {
- id: '2-13',
- label: '考评报告'
- },
- {
- id: '2-14',
- label: '考评公告'
- },
- {
- id: '2-15',
- label: '奖金及薪资总额调整'
- },
- ]
- },
- {
- id: '3',
- label: '对标考评知识',
- children: [
- {
- id: '3-1',
- label: '对标指标标准',
- },
- {
- id: '3-2',
- label: '对标算法规则',
- },
- {
- id: '3-3',
- label: '对标预警规则',
- },
- {
- id: '3-4',
- label: '考评得分规则',
- },
- {
- id: '3-5',
- label: '考评评级规则',
- },
- {
- id: '3-6',
- label: '考评预警规则',
- },
- ]
- },
- {
- id: '4',
- label: '对标体系配置',
- children: [
- {
- id: '4-1',
- label: '对标指标管理',
- },
- {
- id: '4-2',
- label: '指标规则配置',
- },
- {
- id: '4-3',
- label: '对标结构配置',
- },
- ]
- },
- {
- id: '5',
- label: '考评体系配置',
- children: [
- {
- id: '5-1',
- label: '考评指标管理',
- path: '/assessment/evaluationSystem/evaluationIndexPage'
- },
- {
- id: '5-2',
- label: '考评规则配置',
- },
- {
- id: '5-3',
- label: '考评单位配置',
- },
- {
- id: '5-4',
- label: '考评部门配置',
- },
- {
- id: '5-5',
- label: '考评人员配置',
- },
- ]
- },
- {
- id: '6',
- label: '基础信息配置',
- children: [
- {
- id: '6-1',
- label: '人员权限配置',
- },
- {
- id: '6-2',
- label: '工作流程配置',
- }
- ]
- }
- ]
- // this.forecastDatas = [
- // {
- // id: '1',
- // label: '首页'
- // },
- // {
- // id: '2',
- // label: '对标业务'
- // },
- // {
- // id: '3',
- // label: '目标责任书',
- // children: [
- // {
- // id: '3-1',
- // label: '目标责任书',
- // children: []
- // },
- // {
- // id: '3-2',
- // label: '草稿箱'
- // },
- // ]
- // },
- // {
- // id: '4',
- // label: '绩效考评'
- // },
- // {
- // id: '5',
- // label: '知识库',
- // children: [
- // {
- // id: '5-1',
- // label: '指标体系',
- // children: []
- // },
- // {
- // id: '5-2',
- // label: '评分规则'
- // },
- // ]
- // },
- // {
- // id: '6',
- // label: '基础配置'
- // }
- // ]
- },
- mounted() {
- // this.$nextTick(() => {
- // this.$refs.tree.setCurrentKey('5-1')
- // })
- },
- methods: {
- handleNodeClick(val) {
- this.$router.push({ path: val.path})
- }
- }
- }
- </script>
- <style lang="less">
- .assessmentPage{
- display: flex;
- width: 100%;
- padding: 0 10px;
- .treeList{
- margin-left: 5px;
- width: 15%;
- // background: #fff;
- border-radius: 20px;
- p{
- font-size: 18px;
- font-family: '微软雅黑';
- font-weight: bold;
- color: #171e28;
- position: relative;
- left: 30px;
- top: 5px;
- letter-spacing: 1px;
- }
- .el-tree{
- position: relative;
- top: 15px;
- padding: 0 0 0 20px;
- background: transparent;
- .el-tree-node{
- .el-tree-node__content{
- height: 35px;
- .custom-tree-node{
- height: 35px;
- }
- }
- .el-tree-node__children{
- .el-tree-node__content{
- height: 35px;
- .custom-tree-node{
- height: 35px;
- }
- }
- }
- }
- }
- .el-tree--highlight-current
- .el-tree-node.is-current
- > .el-tree-node__content {
- background-color: rgba(135, 206, 235, 0.2);
- color: #007aab;
- font-weight: bold;
- border-radius: 5px;
- }
- }
- .mainMessage{
- width: 84%;
- padding-top: 10px;
- margin-left: 10px;
- background: #fff;
- border-radius: 20px;
- }
- }
- </style>
|