assessmentPage.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <template>
  2. <div class="assessmentPage">
  3. <!-- <div class="treeList" :style="allHeight">
  4. <p>全业务域对标考评系统</p>
  5. <el-tree ref="tree" :data="forecastDatas" :props="defaultProps" highlight-current node-key="id"
  6. :default-expanded-keys="['5']" @node-click="handleNodeClick">
  7. <template #default="{ node, data }">
  8. <span class="custom-tree-node">
  9. <el-icon size="small" v-if="node.level === 1"><FolderOpened /></el-icon>
  10. <span style="margin-left:5px;font-size:14px;line-height:35px;display:inline-block">{{node.label}}</span>
  11. </span>
  12. </template>
  13. </el-tree>
  14. </div>
  15. <div class="mainMessage" :style="mainHeight">
  16. <router-view/>
  17. </div> -->
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. forecastDatas:[],
  25. defaultProps: {
  26. children: 'children',
  27. label: 'label',
  28. }
  29. }
  30. },
  31. computed:{
  32. allHeight() {
  33. return {
  34. 'height': document.documentElement.clientHeight-40 + 'px'
  35. }
  36. },
  37. mainHeight() {
  38. return {
  39. 'height': document.documentElement.clientHeight-50 + 'px'
  40. }
  41. }
  42. },
  43. created() {
  44. this.forecastDatas = [
  45. {
  46. id: '1',
  47. label: '对标业务',
  48. icon: 'FolderOpened',
  49. children: [
  50. {
  51. id: '1-1',
  52. label: '排行榜',
  53. },
  54. {
  55. id: '1-2',
  56. label: '分类对标',
  57. },
  58. {
  59. id: '1-3',
  60. label: '综合对标',
  61. },
  62. {
  63. id: '1-4',
  64. label: '立标管理',
  65. },
  66. {
  67. id: '1-5',
  68. label: '寻标管理',
  69. },
  70. {
  71. id: '1-6',
  72. label: '达标管理',
  73. },
  74. {
  75. id: '1-7',
  76. label: '超标管理',
  77. },
  78. {
  79. id: '1-8',
  80. label: '对标报告'
  81. }
  82. ]
  83. },
  84. {
  85. id: '2',
  86. label: '考评业务',
  87. children: [
  88. {
  89. id: '2-1',
  90. label: '考评总览'
  91. },
  92. {
  93. id: '2-2',
  94. label: '考评启动'
  95. },
  96. {
  97. id: '2-3',
  98. label: '考评修订'
  99. },
  100. {
  101. id: '2-4',
  102. label: '考评目标分解'
  103. },
  104. {
  105. id: '2-5',
  106. label: '月/季度考评'
  107. },
  108. {
  109. id: '2-6',
  110. label: '考评项对标'
  111. },
  112. {
  113. id: '2-7',
  114. label: '考评项预警'
  115. },
  116. {
  117. id: '2-8',
  118. label: '年度考评'
  119. },
  120. {
  121. id: '2-9',
  122. label: '人员考评'
  123. },
  124. {
  125. id: '2-10',
  126. label: '任期考评'
  127. },
  128. {
  129. id: '2-11',
  130. label: '考评监督'
  131. },
  132. {
  133. id: '2-12',
  134. label: '考评评级'
  135. },
  136. {
  137. id: '2-13',
  138. label: '考评报告'
  139. },
  140. {
  141. id: '2-14',
  142. label: '考评公告'
  143. },
  144. {
  145. id: '2-15',
  146. label: '奖金及薪资总额调整'
  147. },
  148. ]
  149. },
  150. {
  151. id: '3',
  152. label: '对标考评知识',
  153. children: [
  154. {
  155. id: '3-1',
  156. label: '对标指标标准',
  157. },
  158. {
  159. id: '3-2',
  160. label: '对标算法规则',
  161. },
  162. {
  163. id: '3-3',
  164. label: '对标预警规则',
  165. },
  166. {
  167. id: '3-4',
  168. label: '考评得分规则',
  169. },
  170. {
  171. id: '3-5',
  172. label: '考评评级规则',
  173. },
  174. {
  175. id: '3-6',
  176. label: '考评预警规则',
  177. },
  178. ]
  179. },
  180. {
  181. id: '4',
  182. label: '对标体系配置',
  183. children: [
  184. {
  185. id: '4-1',
  186. label: '对标指标管理',
  187. },
  188. {
  189. id: '4-2',
  190. label: '指标规则配置',
  191. },
  192. {
  193. id: '4-3',
  194. label: '对标结构配置',
  195. },
  196. ]
  197. },
  198. {
  199. id: '5',
  200. label: '考评体系配置',
  201. children: [
  202. {
  203. id: '5-1',
  204. label: '考评指标管理',
  205. path: '/assessment/evaluationSystem/evaluationIndexPage'
  206. },
  207. {
  208. id: '5-2',
  209. label: '考评规则配置',
  210. },
  211. {
  212. id: '5-3',
  213. label: '考评单位配置',
  214. },
  215. {
  216. id: '5-4',
  217. label: '考评部门配置',
  218. },
  219. {
  220. id: '5-5',
  221. label: '考评人员配置',
  222. },
  223. ]
  224. },
  225. {
  226. id: '6',
  227. label: '基础信息配置',
  228. children: [
  229. {
  230. id: '6-1',
  231. label: '人员权限配置',
  232. },
  233. {
  234. id: '6-2',
  235. label: '工作流程配置',
  236. }
  237. ]
  238. }
  239. ]
  240. // this.forecastDatas = [
  241. // {
  242. // id: '1',
  243. // label: '首页'
  244. // },
  245. // {
  246. // id: '2',
  247. // label: '对标业务'
  248. // },
  249. // {
  250. // id: '3',
  251. // label: '目标责任书',
  252. // children: [
  253. // {
  254. // id: '3-1',
  255. // label: '目标责任书',
  256. // children: []
  257. // },
  258. // {
  259. // id: '3-2',
  260. // label: '草稿箱'
  261. // },
  262. // ]
  263. // },
  264. // {
  265. // id: '4',
  266. // label: '绩效考评'
  267. // },
  268. // {
  269. // id: '5',
  270. // label: '知识库',
  271. // children: [
  272. // {
  273. // id: '5-1',
  274. // label: '指标体系',
  275. // children: []
  276. // },
  277. // {
  278. // id: '5-2',
  279. // label: '评分规则'
  280. // },
  281. // ]
  282. // },
  283. // {
  284. // id: '6',
  285. // label: '基础配置'
  286. // }
  287. // ]
  288. },
  289. mounted() {
  290. // this.$nextTick(() => {
  291. // this.$refs.tree.setCurrentKey('5-1')
  292. // })
  293. },
  294. methods: {
  295. handleNodeClick(val) {
  296. this.$router.push({ path: val.path})
  297. }
  298. }
  299. }
  300. </script>
  301. <style lang="less">
  302. .assessmentPage{
  303. display: flex;
  304. width: 100%;
  305. padding: 0 10px;
  306. .treeList{
  307. margin-left: 5px;
  308. width: 15%;
  309. // background: #fff;
  310. border-radius: 20px;
  311. p{
  312. font-size: 18px;
  313. font-family: '微软雅黑';
  314. font-weight: bold;
  315. color: #171e28;
  316. position: relative;
  317. left: 30px;
  318. top: 5px;
  319. letter-spacing: 1px;
  320. }
  321. .el-tree{
  322. position: relative;
  323. top: 15px;
  324. padding: 0 0 0 20px;
  325. background: transparent;
  326. .el-tree-node{
  327. .el-tree-node__content{
  328. height: 35px;
  329. .custom-tree-node{
  330. height: 35px;
  331. }
  332. }
  333. .el-tree-node__children{
  334. .el-tree-node__content{
  335. height: 35px;
  336. .custom-tree-node{
  337. height: 35px;
  338. }
  339. }
  340. }
  341. }
  342. }
  343. .el-tree--highlight-current
  344. .el-tree-node.is-current
  345. > .el-tree-node__content {
  346. background-color: rgba(135, 206, 235, 0.2);
  347. color: #007aab;
  348. font-weight: bold;
  349. border-radius: 5px;
  350. }
  351. }
  352. .mainMessage{
  353. width: 84%;
  354. padding-top: 10px;
  355. margin-left: 10px;
  356. background: #fff;
  357. border-radius: 20px;
  358. }
  359. }
  360. </style>