diff --git a/src/api/homePage.ts b/src/api/homePage.ts index e6e75ee..ff00ed6 100644 --- a/src/api/homePage.ts +++ b/src/api/homePage.ts @@ -107,3 +107,23 @@ export function workPerformProgress(params) { params: params }); } +/** + * 履职情况列表:按岗位 + */ +export function staPerformProgress(params) { + return request({ + url: `/screen/statistic/workPerformProgress`, + method: "GET", + params: params + }); +} + +/** + * 岗位树形 + */ +export function getListperformTree() { + return request({ + url: `/screen/statistic/getListperformTree`, + method: "GET", + }); +} \ No newline at end of file diff --git a/src/assets/images/home-page/left/lingjiangtai.png b/src/assets/images/home-page/left/lingjiangtai.png new file mode 100644 index 0000000..fb1eba2 Binary files /dev/null and b/src/assets/images/home-page/left/lingjiangtai.png differ diff --git a/src/styles/element-plus.scss b/src/styles/element-plus.scss index f42ec43..7eb8954 100644 --- a/src/styles/element-plus.scss +++ b/src/styles/element-plus.scss @@ -363,4 +363,16 @@ table { .inline-block { width: 94%; } +} + +.el-select__wrapper { + background-color: transparent !important; +} + +.el-tree-node__content { + background-color: #2c5473 !important; +} + +.el-select__placeholder { + color: #fff !important; } \ No newline at end of file diff --git a/src/views/data-statistics/left-side/components/portrait.vue b/src/views/data-statistics/left-side/components/portrait.vue index 00a2343..63e634a 100644 --- a/src/views/data-statistics/left-side/components/portrait.vue +++ b/src/views/data-statistics/left-side/components/portrait.vue @@ -3,48 +3,29 @@
-
-
- {{ item.title }} -
+
+
-
-
-
- {{ index + 1 }} - {{ item.chinaName }}-{{ item.postName }} - {{ item.orgName }} -
-
- {{ item.percentage }} - {{ item.completedNum }}/{{ item.totalNum }} -
-
-
- -
+ +
+ Podium +
+ {{ item.chinaName }} +
@@ -57,55 +38,47 @@ export default defineComponent({ }); @@ -183,4 +156,40 @@ onMounted(() => { height: 10px; background-color: rgba(255, 255, 255, 0.1); } +.podium-container { + position: relative; + display: flex; /* 或者其他,取决于你的布局需求 */ + flex-direction: column-reverse; + width: 100%; + height: 100%; +} + +.podium-img { + width: 100%; /* 或具体宽度 */ + height: 80%; + display: block; +} + +.name-position { + position: absolute; + color: #fff; /* 假设背景是深色,文字需要浅色 */ + font-size: 20px; /* 字体大小根据需要调整 */ + font-weight: bold; + /* 接下来根据图片和需要调整每个名字的具体位置 */ + /* 例如,对于第一个名字,可以放在顶部中央 */ + &:nth-child(2) { + top: 0px; /* 顶部偏移 */ + left: 50%; /* 水平中心 */ + transform: translateX(-50%); /* 校正水平偏移 */ + } + /* 对于第二个和第三个名字,你可能需要调整top和left的值 */ + &:nth-child(3) { + bottom: 110px; + left: 13%; + } + &:nth-child(4) { + bottom: 96px; + left: 76%; + } +} \ No newline at end of file