style:增加学习路径图
@@ -1,24 +1,29 @@
|
|||||||
# jdfstudy
|
# fe-stu
|
||||||
|
|
||||||
## Project setup
|
## Project setup
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiles and hot-reloads for development
|
### Compiles and hot-reloads for development
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run serve
|
npm run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiles and minifies for production
|
### Compiles and minifies for production
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Lints and fixes files
|
### Lints and fixes files
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run lint
|
npm run lint
|
||||||
```
|
```
|
||||||
|
|
||||||
### Customize configuration
|
### Customize configuration
|
||||||
|
|
||||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||||
|
|||||||
BIN
src/assets/image/band.png
Normal file
|
After Width: | Height: | Size: 420 B |
BIN
src/assets/image/completed.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
src/assets/image/nostarted.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
src/assets/image/ongoing.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
src/assets/image/pm.png
Normal file
|
After Width: | Height: | Size: 581 B |
BIN
src/assets/image/roadmap1.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
src/assets/image/roadmap2.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
@@ -1,6 +1,6 @@
|
|||||||
import { createRouter, createWebHashHistory } from 'vue-router';
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
||||||
import routesConfig from './config';
|
import routesConfig from './config';
|
||||||
console.log('routesConfig', routesConfig)
|
// console.log('routesConfig', routesConfig)
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
|
|||||||
175
src/views/roadmap/LearnPath.vue
Normal file
@@ -0,0 +1,175 @@
|
|||||||
|
<template>
|
||||||
|
<div class="LearnPath">
|
||||||
|
<div class="content">
|
||||||
|
<div class="title">
|
||||||
|
<div class="titleL">
|
||||||
|
<div class="text">学习路径图</div>
|
||||||
|
<div class="info" style="margin-right: 14px">
|
||||||
|
<img
|
||||||
|
style="width: 20px; height: 18px; margin-right: 10px"
|
||||||
|
src="../../assets/image/pm.png"
|
||||||
|
/>
|
||||||
|
<div style="margin-top: 1px">产品经理</div>
|
||||||
|
</div>
|
||||||
|
<div class="info">
|
||||||
|
<img
|
||||||
|
style="width: 18px; height: 17px; margin-right: 11px"
|
||||||
|
src="../../assets/image/band.png"
|
||||||
|
/>
|
||||||
|
<div style="margin-top: 2px">Band8</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="titleR">进入未完成任务</div>
|
||||||
|
</div>
|
||||||
|
<div class="head">
|
||||||
|
<el-table :data="tableData" style="width: 100%">
|
||||||
|
<el-table-column
|
||||||
|
prop="img"
|
||||||
|
label="缩略图"
|
||||||
|
#default="scope"
|
||||||
|
align="center"
|
||||||
|
width="255"
|
||||||
|
>
|
||||||
|
<img :src="scope.row.img" style="width: 230px; height: 155px" />
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
class-name="name"
|
||||||
|
prop="name"
|
||||||
|
label="路径名称"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
class-name="introduce"
|
||||||
|
prop="introduce"
|
||||||
|
label="路径介绍"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
class-name="target"
|
||||||
|
prop="target"
|
||||||
|
label="目标人群"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
#default="scope"
|
||||||
|
align="center"
|
||||||
|
class-name="state"
|
||||||
|
width="110"
|
||||||
|
prop="state"
|
||||||
|
label="状态"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
:src="
|
||||||
|
scope.row.state === 0
|
||||||
|
? require('../../assets/image/nostarted.png')
|
||||||
|
: scope.row.state === 1
|
||||||
|
? require('../../assets/image/completed.png')
|
||||||
|
: require('../../assets/image/ongoing.png')
|
||||||
|
"
|
||||||
|
style="width: 99px; height: 99px"
|
||||||
|
/>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { reactive, toRefs } from "vue";
|
||||||
|
export default {
|
||||||
|
name: "LearnPath",
|
||||||
|
setup() {
|
||||||
|
const state = reactive({
|
||||||
|
tableData: [
|
||||||
|
{
|
||||||
|
img: require("../../assets/image/roadmap1.png"),
|
||||||
|
name: "产品经理学习路径图",
|
||||||
|
introduce:
|
||||||
|
"为了提升集团各条线产品经理的 专业能力,集团XX组织为产品经 理设置了统一的学习径……",
|
||||||
|
target: "Band8-Band12",
|
||||||
|
state: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
img: require("../../assets/image/roadmap2.png"),
|
||||||
|
name: "管理者进阶学习路径图",
|
||||||
|
introduce:
|
||||||
|
"为了XXXXX,集团CHRO组织为各级管理者配置了统一的学习成长路径……",
|
||||||
|
target: "Band8-Band12",
|
||||||
|
state: 0,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
...toRefs(state),
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.LearnPath {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 734px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: rgba(255, 255, 255, 1);
|
||||||
|
display: flex;
|
||||||
|
.content {
|
||||||
|
width: 100%;
|
||||||
|
// flex: 1;
|
||||||
|
margin-top: 43px;
|
||||||
|
// background-color: pink;
|
||||||
|
.title {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-left: 53px;
|
||||||
|
margin-right: 54px;
|
||||||
|
}
|
||||||
|
.title .titleL {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.title .titleL .text {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 24px;
|
||||||
|
margin-right: 26px;
|
||||||
|
}
|
||||||
|
.title .titleL .info {
|
||||||
|
display: flex;
|
||||||
|
// align-items: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #387df7;
|
||||||
|
}
|
||||||
|
.title .titleR {
|
||||||
|
width: 157px;
|
||||||
|
height: 48px;
|
||||||
|
border: 2px solid #0060ff;
|
||||||
|
border-radius: 8px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #0060ff;
|
||||||
|
}
|
||||||
|
.head {
|
||||||
|
// height: 50px;
|
||||||
|
background: #f9f9f9;
|
||||||
|
margin-top: 50px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 53px;
|
||||||
|
margin-right: 54px;
|
||||||
|
width: calc(100% - 107px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||