|
@@ -133,7 +133,10 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="table-content">
|
|
|
- <div class="radio_group_style">
|
|
|
+ <div
|
|
|
+ class="radio_group_style"
|
|
|
+ style="display: flex; justify-content: space-between; align-items: center"
|
|
|
+ >
|
|
|
<el-radio-group
|
|
|
v-model="userType"
|
|
|
style="margin-top: 40px; margin-bottom: 20px"
|
|
@@ -146,6 +149,16 @@
|
|
|
<el-radio-button label="精神障碍"></el-radio-button>
|
|
|
<!-- <el-radio-button label="其他"></el-radio-button> -->
|
|
|
</el-radio-group>
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ style="margin-top: 40px; margin-bottom: 20px"
|
|
|
+ @click="funExport"
|
|
|
+ type="success"
|
|
|
+ round
|
|
|
+ class="add_class"
|
|
|
+ >
|
|
|
+ 心理异常导出
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
|
|
|
<el-table
|
|
@@ -165,26 +178,54 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="orgName" label="所属组织架构" align="center" width="">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" v-if="userType == '心理异常'">
|
|
|
+ <el-table-column label="操作" align="center" v-if="userType == '心理异常'">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-show="scope.row.symptom == '重度'" style="display: flex;align-items: center;justify-content: center;">
|
|
|
- <img style="width: 18px;height:18px;margin-right:4px" src="../assets/img/report/1.png" alt="" />
|
|
|
+ <div
|
|
|
+ v-show="scope.row.symptom == '重度'"
|
|
|
+ style="display: flex; align-items: center; justify-content: center"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ style="width: 18px; height: 18px; margin-right: 4px"
|
|
|
+ src="../assets/img/report/1.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
<div style="color: #d91b00">{{ scope.row.symptom }}</div>
|
|
|
</div>
|
|
|
- <div v-show="scope.row.symptom == '中度'" style="display: flex;align-items: center;justify-content: center;">
|
|
|
- <img style="width: 18px;height:18px;margin-right:4px" src="../assets/img/report/2.png" alt="" />
|
|
|
+ <div
|
|
|
+ v-show="scope.row.symptom == '中度'"
|
|
|
+ style="display: flex; align-items: center; justify-content: center"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ style="width: 18px; height: 18px; margin-right: 4px"
|
|
|
+ src="../assets/img/report/2.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
<div style="color: #f0a900">{{ scope.row.symptom }}</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" v-if="userType != '心理异常'">
|
|
|
+ <el-table-column label="操作" align="center" v-if="userType != '心理异常'">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-show="scope.row.dimensionSymptom == '重度'" style="display: flex;align-items: center;justify-content: center;">
|
|
|
- <img style="width: 18px;height:18px;margin-right:4px" src="../assets/img/report/1.png" alt="" />
|
|
|
+ <div
|
|
|
+ v-show="scope.row.dimensionSymptom == '重度'"
|
|
|
+ style="display: flex; align-items: center; justify-content: center"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ style="width: 18px; height: 18px; margin-right: 4px"
|
|
|
+ src="../assets/img/report/1.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
<div style="color: #d91b00">{{ scope.row.dimensionSymptom }}</div>
|
|
|
</div>
|
|
|
- <div v-show="scope.row.dimensionSymptom == '中度'" style="display: flex;align-items: center;justify-content: center;">
|
|
|
- <img style="width: 18px;height:18px;margin-right:4px" src="../assets/img/report/2.png" alt="" />
|
|
|
+ <div
|
|
|
+ v-show="scope.row.dimensionSymptom == '中度'"
|
|
|
+ style="display: flex; align-items: center; justify-content: center"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ style="width: 18px; height: 18px; margin-right: 4px"
|
|
|
+ src="../assets/img/report/2.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
<div style="color: #f0a900">{{ scope.row.dimensionSymptom }}</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -307,20 +348,37 @@
|
|
|
<div style="flex: 1">
|
|
|
<div style="display: flex; font-size: 16px; flex-direction: row">
|
|
|
<div style="display: flex; flex-direction: column">
|
|
|
-
|
|
|
- <span class="sex_class">{{ tabNameCurrent }}</span>
|
|
|
+ <span class="sex_class">{{ tabNameCurrent }}</span>
|
|
|
<span class="sex_class">心理健康</span>
|
|
|
- <span class="sex_class">中重度{{ dime == "躯体化" ? "压力" : dime }}</span>
|
|
|
+ <span class="sex_class"
|
|
|
+ >中重度{{ dime == "躯体化" ? "压力" : dime }}</span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div style="display: flex; flex-direction: column">
|
|
|
- <span class="sex_class">:<span style="visibility: hidden;">你</span></span>
|
|
|
- <span class="sex_class">:<span style="visibility: hidden;">你</span></span>
|
|
|
- <span class="sex_class">:<span style="visibility: hidden;">你</span></span>
|
|
|
+ <span class="sex_class"
|
|
|
+ >:<span style="visibility: hidden">你</span></span
|
|
|
+ >
|
|
|
+ <span class="sex_class"
|
|
|
+ >:<span style="visibility: hidden">你</span></span
|
|
|
+ >
|
|
|
+ <span class="sex_class"
|
|
|
+ >:<span style="visibility: hidden">你</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div style="display: flex; flex-direction: column">
|
|
|
<span class="sex_class1"> {{ subValue }} {{ subAll }}人</span>
|
|
|
- <span class="sex_class1" style="background-color: #5470C6;text-align: center;color:#ffffff"> {{ subAll }}人</span>
|
|
|
- <span class="sex_class1" style="background-color: #FFAE00;text-align: center;color:#ffffff"> {{ subSingle }}人</span>
|
|
|
+ <span
|
|
|
+ class="sex_class1"
|
|
|
+ style="background-color: #5470c6; text-align: center; color: #ffffff"
|
|
|
+ >
|
|
|
+ {{ subAll }}人</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ class="sex_class1"
|
|
|
+ style="background-color: #ffae00; text-align: center; color: #ffffff"
|
|
|
+ >
|
|
|
+ {{ subSingle }}人</span
|
|
|
+ >
|
|
|
</div>
|
|
|
|
|
|
<!-- <div style="display: flex; flex: 1; flex-direction: row">
|
|
@@ -458,6 +516,7 @@ import * as echarts from "echarts";
|
|
|
import PieChart from "@/components/PieChart";
|
|
|
import BingChart from "@/components/BingChart";
|
|
|
import BingChart2 from "@/components/BingChart2";
|
|
|
+import { basePath } from "../utils/http";
|
|
|
export default {
|
|
|
components: {
|
|
|
BingChart,
|
|
@@ -465,6 +524,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ basePath: basePath,
|
|
|
//获取计划名称
|
|
|
planName: "",
|
|
|
planId: "",
|
|
@@ -649,6 +709,35 @@ export default {
|
|
|
window.removeEventListener("resize", this.echartsAllSize);
|
|
|
},
|
|
|
methods: {
|
|
|
+ //导出心理异常的人员
|
|
|
+ funExport() {
|
|
|
+ // this.$http.getDown(
|
|
|
+ // `/planUser/exportCompletedUserHighRisk?planId=${this.planId}`,
|
|
|
+ // {},
|
|
|
+ // (res) => {
|
|
|
+ // // if (res && res.code == 200) {
|
|
|
+ // var blob = new Blob([res.data], {
|
|
|
+ // type: [
|
|
|
+ // "application/vnd.ms-excel;charset=utf-8", // xls
|
|
|
+ // "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8", // xlsx
|
|
|
+ // ],
|
|
|
+ // });
|
|
|
+ // //var url = window.URL.createObjectURL(blob);
|
|
|
+ // //新窗口打开
|
|
|
+ // var link = document.createElement("a");
|
|
|
+ // link.href = window.URL.createObjectURL(blob);
|
|
|
+ // //这个顺属性加了浏览器回闪一下
|
|
|
+ // // link.target = "_blank";
|
|
|
+ // link.click();
|
|
|
+ // }
|
|
|
+ // );
|
|
|
+ //下载
|
|
|
+ let a = document.createElement("a");
|
|
|
+ document.body.appendChild(a);
|
|
|
+ console.log(basePath + `/planUser/exportCompletedUserHighRisk?planId=${this.planId}`)
|
|
|
+ a.setAttribute("href", basePath + `/planUser/exportCompletedUserHighRisk?planId=${this.planId}`);
|
|
|
+ a.click();
|
|
|
+ },
|
|
|
echartsAllSize() {
|
|
|
let flag = false;
|
|
|
setTimeout(() => {
|
|
@@ -865,7 +954,7 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
userTypeChange(val) {
|
|
|
- console.log(this.userType)
|
|
|
+ console.log(this.userType);
|
|
|
this.pageNum = 1;
|
|
|
if (val == "心理异常") {
|
|
|
this.getAbnormalList();
|
|
@@ -911,12 +1000,12 @@ export default {
|
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
this.pageNum = val;
|
|
|
- if(this.userType=='心理异常'){
|
|
|
+ if (this.userType == "心理异常") {
|
|
|
this.getAbnormalList();
|
|
|
- }else if(this.userType=="压力"){
|
|
|
+ } else if (this.userType == "压力") {
|
|
|
//---
|
|
|
this.getDimensionPeopleList("躯体化");
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.getDimensionPeopleList(this.userType);
|
|
|
}
|
|
|
// this.searchList();
|
|
@@ -1271,13 +1360,12 @@ export default {
|
|
|
// }
|
|
|
|
|
|
.sex_class1 {
|
|
|
-
|
|
|
text-align: left;
|
|
|
margin: 2px;
|
|
|
line-height: 24px;
|
|
|
}
|
|
|
// .sex_class1:after {
|
|
|
-
|
|
|
+
|
|
|
// display: inline-block;
|
|
|
// width: 100%;
|
|
|
// content: "";
|