|
@@ -45,7 +45,7 @@
|
|
|
clearable
|
|
|
></el-cascader>
|
|
|
<el-cascader
|
|
|
- v-show="userInfo.roleType == '4'||userInfo.roleType == '3'"
|
|
|
+ v-show="userInfo.roleType == '4' || userInfo.roleType == '3'"
|
|
|
@change="banChange"
|
|
|
placeholder="请选择组织架构"
|
|
|
v-model="group"
|
|
@@ -70,7 +70,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
|
|
|
-
|
|
|
+ <el-button v-show="!isUser && isJump" style="border-radius:20px;" @click="backParent"> 返回</el-button>
|
|
|
<div
|
|
|
style="display: flex; flex-direction: row; align-items: center"
|
|
|
v-show="isUser"
|
|
@@ -89,7 +89,6 @@
|
|
|
</div>
|
|
|
<div v-show="isUser"> </div>
|
|
|
|
|
|
-
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
round
|
|
@@ -260,6 +259,7 @@ export default {
|
|
|
components: { QSChart: QSChart },
|
|
|
data() {
|
|
|
return {
|
|
|
+ isJump: false,
|
|
|
//判断是用户还是计划对比
|
|
|
isUser: true,
|
|
|
//用户背景图
|
|
@@ -286,7 +286,7 @@ export default {
|
|
|
//搜索的组织架构
|
|
|
// 搜索需要的性别
|
|
|
sex: "",
|
|
|
- userType:'',
|
|
|
+ userType: "",
|
|
|
|
|
|
group: "",
|
|
|
ppData: [],
|
|
@@ -486,7 +486,7 @@ export default {
|
|
|
},
|
|
|
//查询4个维度的值
|
|
|
async query4Score() {
|
|
|
- let list = ["抑郁", "焦虑", "躯体化", "视觉整合能力"];
|
|
|
+ let list = ["抑郁", "焦虑", "压力", "视觉整合能力"];
|
|
|
//抑郁集合
|
|
|
let listDepressed = [];
|
|
|
//焦虑组合
|
|
@@ -504,8 +504,8 @@ export default {
|
|
|
if (list[i] == "焦虑") {
|
|
|
listAnxiety = await this.queryDetailScore(list[i]);
|
|
|
}
|
|
|
- //躯体化集合
|
|
|
- if (list[i] == "躯体化") {
|
|
|
+ //压力集合
|
|
|
+ if (list[i] == "压力") {
|
|
|
listStress = await this.queryDetailScore(list[i]);
|
|
|
}
|
|
|
//视觉能力集合
|
|
@@ -518,7 +518,7 @@ export default {
|
|
|
// console.log(listAnxiety);
|
|
|
// //抑郁
|
|
|
// console.log(listDepressed);
|
|
|
- // //躯体化
|
|
|
+ // //压力
|
|
|
// console.log(listStress);
|
|
|
// //视觉整合能力
|
|
|
// console.log(listSj);
|
|
@@ -546,7 +546,7 @@ export default {
|
|
|
for (let i = 0; i < listDepressed.length; i++) {
|
|
|
listDepressedTmp.push((parseFloat(listDepressed[i].num) * 100).toFixed(2));
|
|
|
}
|
|
|
- //躯体化数据重组
|
|
|
+ //压力数据重组
|
|
|
let listStressTmp = [];
|
|
|
for (let i = 0; i < listStress.length; i++) {
|
|
|
listStressTmp.push((parseFloat(listStress[i].num) * 100).toFixed(2));
|
|
@@ -679,6 +679,18 @@ export default {
|
|
|
// this.queryDetailScore();
|
|
|
}
|
|
|
},
|
|
|
+ backParent() {
|
|
|
+ let user = JSON.parse(sessionStorage.getItem("tendency"));
|
|
|
+ user.isBack = true;
|
|
|
+ sessionStorage.setItem("tendency", JSON.stringify(user));
|
|
|
+ if (user.rouName == "comparaAnalysis") {
|
|
|
+ let url = "/manage/comparaAnalysis";
|
|
|
+ this.bus.$emit("menuStatusUpdate", url);
|
|
|
+ this.$router.push({
|
|
|
+ path: "/manage/comparaAnalysis",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
initGroup(val) {
|
|
|
if (this.userInfo.roleType == "5") {
|
|
|
if (val) {
|
|
@@ -686,6 +698,7 @@ export default {
|
|
|
//需要循环列表
|
|
|
//且、路径上有参数的话
|
|
|
let params = this.$route.query;
|
|
|
+ this.isJump = true;
|
|
|
if (params.hasOwnProperty("orgNo")) {
|
|
|
//当存在该属性时
|
|
|
// this. channelTmp
|
|
@@ -709,6 +722,7 @@ export default {
|
|
|
if (val) {
|
|
|
let params = this.$route.query;
|
|
|
if (params.hasOwnProperty("orgNo")) {
|
|
|
+ this.isJump = true;
|
|
|
for (let i = 0; i < this.channelTmp.length; i++) {
|
|
|
//
|
|
|
if (this.channelTmp[i].orgNo == this.group[this.group.length - 1]) {
|
|
@@ -773,6 +787,7 @@ export default {
|
|
|
if (val) {
|
|
|
let params = this.$route.query;
|
|
|
console.log(params.hasOwnProperty("orgNo"));
|
|
|
+ this.isJump = true;
|
|
|
if (params.hasOwnProperty("orgNo")) {
|
|
|
//当存在该属性时
|
|
|
this.group = [params.orgNo];
|
|
@@ -912,8 +927,8 @@ export default {
|
|
|
getChannel() {
|
|
|
return new Promise((resole, reject) => {
|
|
|
this.$http.get(
|
|
|
- // `/org/findAllOrgByPOrgNo?orgNo=${this.userInfo.orgNo}`,
|
|
|
- `/org/findAllOrgByCurrent`,
|
|
|
+ // `/org/findAllOrgByPOrgNo?orgNo=${this.userInfo.orgNo}`,
|
|
|
+ `/org/findAllOrgByCurrent`,
|
|
|
{},
|
|
|
(res) => {
|
|
|
// this.$toast.success({message:'成功'});
|
|
@@ -1035,7 +1050,7 @@ export default {
|
|
|
// 搜索需要的性别
|
|
|
this.planName = "";
|
|
|
this.group = "";
|
|
|
- this.userType='';
|
|
|
+ this.userType = "";
|
|
|
this.searchTarget();
|
|
|
},
|
|
|
|
|
@@ -1056,7 +1071,7 @@ export default {
|
|
|
if (this.isUser) {
|
|
|
url = `/user/findUserListByPage?pageSize=${this.pageSize}&pageNum=${
|
|
|
this.pageNum
|
|
|
- }${this.userType==''?'':`&roleType=${this.userType}`}${
|
|
|
+ }${this.userType == "" ? "" : `&roleType=${this.userType}`}${
|
|
|
this.group.length == 0
|
|
|
? `&orgNo=${this.userInfo.orgNo}`
|
|
|
: `&orgNo=${this.group[this.group.length - 1]}`
|
|
@@ -1089,7 +1104,6 @@ export default {
|
|
|
this.pageNum = 1;
|
|
|
this.searchList();
|
|
|
} else {
|
|
|
- // this.queryDetailScore("躯体化");
|
|
|
this.query4Score();
|
|
|
}
|
|
|
},
|