|
@@ -1,5 +1,47 @@
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<style>
|
|
|
+.parent {
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+}
|
|
|
+.sub1 {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+ background: #f6cb00;
|
|
|
+ overflow: hidden;
|
|
|
+ /* overflow: hidden; */
|
|
|
+}
|
|
|
+
|
|
|
+.sub2 {
|
|
|
+ flex: 1;
|
|
|
+ background: red;
|
|
|
+}
|
|
|
+.sub3 {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+ background: #f6cb00;
|
|
|
+
|
|
|
+}
|
|
|
+</style>
|
|
|
<template>
|
|
|
<div class="pp">
|
|
|
+ <!-- <div class="parent">
|
|
|
+ <div class="sub1">
|
|
|
+ 1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa11111111111111111111111111aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</div>
|
|
|
+ <div class="sub2">2</div>
|
|
|
+ </div>
|
|
|
+ <div class="parent" style="display: flex; margin-top: 80px">
|
|
|
+ <div class="sub3">
|
|
|
+ <div style="flex:1;overflow:hidden">
|
|
|
+ 1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa11111111111111111111111111aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="sub2">2</div>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
<!-- <img style="width:90%;" src="../../assets/report/home2.png" /> -->
|
|
|
<div class="general_situation">
|
|
|
<div class="number_people">
|
|
@@ -8,14 +50,26 @@
|
|
|
src="../../assets/img/home/bg_p.png"
|
|
|
alt=""
|
|
|
/>
|
|
|
- <div class="number_people_top">人数统计</div>
|
|
|
+ <div class="number_people_top">学院名称</div>
|
|
|
<div class="number_people_yuan">
|
|
|
<div class="out">
|
|
|
<span :title="userInfo.orgName" class="yuan_name">{{
|
|
|
userInfo.orgName
|
|
|
}}</span>
|
|
|
+ <!-- <span :title="userInfo.orgName" class="yuan_name"
|
|
|
+ >都开始了获得了大厦及伦敦峰会就是咯啊支持下自行车踩踩踩踩踩踩踩踩踩踩踩踩啊</span
|
|
|
+ > -->
|
|
|
+ <!-- <div style="display: flex;width:100%">
|
|
|
+ <div :title="userInfo.orgName" class="yuan_name"
|
|
|
+ >1211232312321321321321321111111111111111111111111111111111111111111111111111111111111111111111113</div
|
|
|
+ >
|
|
|
+ </div> -->
|
|
|
|
|
|
- <span class="yuan_people">{{ peopleData["总人数"] }}人</span>
|
|
|
+ <span class="yuan_people">
|
|
|
+ <span class="people_t">人数:</span>
|
|
|
+ <span class="people_n">{{ peopleData["总人数"] }}</span
|
|
|
+ ><span class="people_r">人</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -27,6 +81,7 @@
|
|
|
<div class="detail">创建时间</div>
|
|
|
<div class="detail">结束时间</div>
|
|
|
<div class="detail">状态</div>
|
|
|
+ <div class="detail">是否授权</div>
|
|
|
</div>
|
|
|
<div class="table_a">
|
|
|
<div v-if="tableData.length == 0">
|
|
@@ -57,7 +112,7 @@
|
|
|
src="../../assets/img/home/isCom.png"
|
|
|
alt=""
|
|
|
/>
|
|
|
- <div style="color: #333333">已完成</div>
|
|
|
+ <div style="color: #00955e">已完成</div>
|
|
|
</div>
|
|
|
<div
|
|
|
style="display: flex; justify-content: center; align-items: center"
|
|
@@ -82,6 +137,23 @@
|
|
|
<div style="color: #d52121">未开始</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="detail">
|
|
|
+ <!-- {{ planStatusFun(item) }} -->
|
|
|
+ <div
|
|
|
+ style="display: flex; justify-content: center; align-items: center"
|
|
|
+ v-if="item.enable == '1'"
|
|
|
+ >
|
|
|
+
|
|
|
+ <div style="color: #00955e">已授权</div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="display: flex; justify-content: center; align-items: center"
|
|
|
+ v-if="item.enable == '0'"
|
|
|
+ >
|
|
|
+
|
|
|
+ <div style="color: #d52121">未授权</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -101,7 +173,7 @@
|
|
|
<div class="block_ren">
|
|
|
<div class="re">最近测评结果</div>
|
|
|
<!-- 当没有测试计划是则不显示 -->
|
|
|
- <div class="detail" v-show="planData.hasOwnProperty('planName')">
|
|
|
+ <div class="detail" v-show="planData.hasOwnProperty('planName')">
|
|
|
<img
|
|
|
@click="queryDetail"
|
|
|
style="width: 80px; cursor: pointer"
|
|
@@ -171,7 +243,11 @@
|
|
|
>
|
|
|
</div>
|
|
|
|
|
|
- <div v-if="planData.hasOwnProperty('planName')" class="block_lei" ref="echarts_lei"></div>
|
|
|
+ <div
|
|
|
+ v-if="planData.hasOwnProperty('planName')"
|
|
|
+ class="block_lei"
|
|
|
+ ref="echarts_lei"
|
|
|
+ ></div>
|
|
|
<div
|
|
|
v-else
|
|
|
style="
|
|
@@ -237,6 +313,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.userInfo = JSON.parse(oSessionStorage.getItem("userInfo"));
|
|
|
+
|
|
|
//查询最新人数统计
|
|
|
this.queryAllPeople();
|
|
|
//查询最新计划
|
|
@@ -260,21 +337,15 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
formatter: function (params) {
|
|
|
- var relVal = '';
|
|
|
+ var relVal = "";
|
|
|
let na = params[0].name;
|
|
|
for (var i = 0, l = params.length; i < l; i++) {
|
|
|
- relVal +=
|
|
|
-
|
|
|
- params[i].marker +
|
|
|
- na +
|
|
|
- " : " +
|
|
|
- params[i].value +
|
|
|
- "%";
|
|
|
+ relVal += params[i].marker + na + " : " + params[i].value + "%";
|
|
|
}
|
|
|
return relVal;
|
|
|
},
|
|
|
// formatter: "{b} : {c} % ",
|
|
|
-
|
|
|
+
|
|
|
// formatter: function (params,trigger) {
|
|
|
|
|
|
// return '{a} <br/>{b} : {c} <br/>百分比 : {d}%'
|
|
@@ -290,6 +361,9 @@ export default {
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
data: [],
|
|
|
+ axisLabel: {
|
|
|
+ interval: 0,
|
|
|
+ },
|
|
|
// axisLabel: {
|
|
|
// width: 40, //设置内容宽度
|
|
|
// // overflow:'break',
|
|
@@ -305,7 +379,7 @@ export default {
|
|
|
// type: "inside", //放大缩小x轴数值
|
|
|
// },
|
|
|
yAxis: {
|
|
|
- max: 100,
|
|
|
+ // max: 100,
|
|
|
type: "value",
|
|
|
boundaryGap: [0, 0.01],
|
|
|
minInterval: 1,
|
|
@@ -407,7 +481,6 @@ export default {
|
|
|
interval: 0,
|
|
|
// rotate:'-90',
|
|
|
formatter: function (value) {
|
|
|
-
|
|
|
// return ''
|
|
|
// return value
|
|
|
return value.substring(0, 4) + "...";
|
|
@@ -476,6 +549,7 @@ export default {
|
|
|
let url = `/plan/findListByPage?pageSize=${this.pageSize}&pageNum=${this.pageNum}&orgNo=${this.userInfo.orgNo}`;
|
|
|
this.$http.get(url, {}, (res) => {
|
|
|
if (res && res.code == 200) {
|
|
|
+ debugger;
|
|
|
this.tableData = res.data.content;
|
|
|
// this.total = res.data.totalElements;
|
|
|
} else {
|
|
@@ -555,14 +629,32 @@ export default {
|
|
|
nameList.push("焦虑");
|
|
|
nameList.push("精神障碍");
|
|
|
let scoreList = [];
|
|
|
- scoreList.push(this.completeNum==0?0:
|
|
|
- parseInt(((this.completeNum - this.abnormalNum) / this.completeNum) * 100)
|
|
|
+ scoreList.push(
|
|
|
+ this.completeNum == 0
|
|
|
+ ? 0
|
|
|
+ : parseInt(((this.completeNum - this.abnormalNum) / this.completeNum) * 100)
|
|
|
+ );
|
|
|
+ scoreList.push(
|
|
|
+ this.completeNum == 0
|
|
|
+ ? 0
|
|
|
+ : parseInt((dimensionList[1]["抑郁"] / this.completeNum) * 100)
|
|
|
+ );
|
|
|
+ scoreList.push(
|
|
|
+ this.completeNum == 0
|
|
|
+ ? 0
|
|
|
+ : parseInt((dimensionList[2]["压力"] / this.completeNum) * 100)
|
|
|
+ );
|
|
|
+ scoreList.push(
|
|
|
+ this.completeNum == 0
|
|
|
+ ? 0
|
|
|
+ : parseInt((dimensionList[0]["焦虑"] / this.completeNum) * 100)
|
|
|
);
|
|
|
- scoreList.push(this.completeNum==0?0:parseInt((dimensionList[1]["抑郁"] / this.completeNum) * 100));
|
|
|
- scoreList.push(this.completeNum==0?0:parseInt((dimensionList[2]["压力"] / this.completeNum) * 100));
|
|
|
- scoreList.push(this.completeNum==0?0:parseInt((dimensionList[0]["焦虑"] / this.completeNum) * 100));
|
|
|
scoreList.push(
|
|
|
- parseInt(this.completeNum==0?0:(dimensionList[3]["精神障碍"] / this.completeNum) * 100)
|
|
|
+ parseInt(
|
|
|
+ this.completeNum == 0
|
|
|
+ ? 0
|
|
|
+ : (dimensionList[3]["精神障碍"] / this.completeNum) * 100
|
|
|
+ )
|
|
|
);
|
|
|
this.echarts_zhu = this.$refs.echarts_zhu;
|
|
|
this.option.xAxis.data = nameList;
|
|
@@ -762,6 +854,11 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
+@font-face {
|
|
|
+ font-family: "Electronic";
|
|
|
+ src: url("../../assets/font/sjxk.ttf") format("truetype");
|
|
|
+}
|
|
|
+
|
|
|
.computer::-webkit-scrollbar {
|
|
|
width: 6px;
|
|
|
}
|
|
@@ -810,6 +907,7 @@ export default {
|
|
|
background-size: cover;
|
|
|
border-radius: 20px;
|
|
|
flex: 5;
|
|
|
+ overflow: hidden;
|
|
|
// background-color: #48d68e;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -823,7 +921,7 @@ export default {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.number_people_yuan {
|
|
|
- display: flex;
|
|
|
+ // display: flex;
|
|
|
color: #ffffff;
|
|
|
.out {
|
|
|
border-radius: 20px;
|
|
@@ -831,25 +929,70 @@ export default {
|
|
|
// background-color: #7fe2b0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
+ flex: 1;
|
|
|
.yuan_name {
|
|
|
- width: 80%;
|
|
|
- margin-left: 20px;
|
|
|
+ height: 80px;
|
|
|
+ flex: 1;
|
|
|
+ margin-right: 100px;
|
|
|
+ // flex: 1;
|
|
|
+ // background-color: #0d3bb1;
|
|
|
+ // margin-left: 20px;
|
|
|
margin-top: 10px;
|
|
|
color: #ffffff;
|
|
|
letter-spacing: 3px;
|
|
|
- font-size: 26px;
|
|
|
+ font-size: 34px;
|
|
|
+ font-family: Electronic;
|
|
|
// flex:1,;
|
|
|
+ // width: 200px;
|
|
|
+ // width: 100%;
|
|
|
+
|
|
|
+ // word-wrap: break-word;
|
|
|
overflow: hidden;
|
|
|
- -webkit-line-clamp: 1;
|
|
|
+ text-overflow: ellipsis;
|
|
|
display: -webkit-box;
|
|
|
+
|
|
|
-webkit-box-orient: vertical;
|
|
|
+
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+
|
|
|
+ // word-wrap: break-word;
|
|
|
+ // text-overflow: ellipsis;
|
|
|
+ // display: -webkit-box;
|
|
|
+ // /* autoprefixer: off */
|
|
|
+ // -webkit-box-orient: vertical;
|
|
|
+ // /* autoprefixer: on */
|
|
|
+ // -webkit-line-clamp: 2;
|
|
|
}
|
|
|
.yuan_people {
|
|
|
+ text-align: right;
|
|
|
margin-left: 20px;
|
|
|
margin-top: 10px;
|
|
|
- color: #ffffff;
|
|
|
- font-size: 60px;
|
|
|
- letter-spacing: 3px;
|
|
|
+ margin-right: 20px;
|
|
|
+ // color: #ffffff;
|
|
|
+ // font-size: 60px;
|
|
|
+ // letter-spacing: 3px;
|
|
|
+ // text-decoration:underline;
|
|
|
+ .people_t {
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 20px;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ }
|
|
|
+ .people_n {
|
|
|
+ background-image: linear-gradient(0deg, #0d3bb1 0%, #00c0ff 100%);
|
|
|
+ background-clip: text;
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ -webkit-text-fill-color: transparent;
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 60px;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ text-decoration: underline;
|
|
|
+ text-decoration-color: #ffffff;
|
|
|
+ }
|
|
|
+ .people_r {
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 60px;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.computer {
|
|
@@ -1008,7 +1151,7 @@ export default {
|
|
|
// justify-content: center;
|
|
|
text-align: center;
|
|
|
// flex: 1;
|
|
|
-
|
|
|
+
|
|
|
-webkit-line-clamp: 1;
|
|
|
display: -webkit-box;
|
|
|
-webkit-box-orient: vertical;
|