|
@@ -53,26 +53,33 @@
|
|
align="center"
|
|
align="center"
|
|
width=""
|
|
width=""
|
|
>
|
|
>
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="scope.row.isComplete == '0'" style="color: #ff7800">
|
|
|
|
- 未开始
|
|
|
|
- </div>
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="scope.row.isComplete == '0'" style="color: #ff7800">
|
|
|
|
+ 未开始
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div v-if="scope.row.isComplete == '1'" style="color: #333333">
|
|
|
|
- 已完成
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <div v-if="scope.row.isComplete == '1'" style="color: #333333">
|
|
|
|
+ 已完成
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
+ <!-- complatePageSize: 10,
|
|
|
|
+ //未完成的分页--第几页
|
|
|
|
+ complatePageNum: 1,
|
|
|
|
+ //未完成的数据
|
|
|
|
+ complateTableData: [],
|
|
|
|
+ //未完成的总条数
|
|
|
|
+ complateTotal: 0, -->
|
|
<el-pagination
|
|
<el-pagination
|
|
class="pag_class"
|
|
class="pag_class"
|
|
background
|
|
background
|
|
- @current-change="handleCurrentChange"
|
|
|
|
- :current-page.sync="pageNum"
|
|
|
|
|
|
+ @current-change="complateHandleCurrentChange"
|
|
|
|
+ :current-page.sync="complatePageNum"
|
|
layout="total, prev, pager, next"
|
|
layout="total, prev, pager, next"
|
|
- :page-size="pageSize"
|
|
|
|
|
|
+ :page-size="complatePageSize"
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
- :total="total"
|
|
|
|
|
|
+ :total="complateTotal"
|
|
>
|
|
>
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
@@ -103,11 +110,11 @@
|
|
</div>
|
|
</div>
|
|
<div class="table-content">
|
|
<div class="table-content">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
- <el-form-item label="人员类型">
|
|
|
|
|
|
+ <el-form-item label="维度占比">
|
|
<el-select
|
|
<el-select
|
|
v-model="userType"
|
|
v-model="userType"
|
|
@change="userTypeChange"
|
|
@change="userTypeChange"
|
|
- placeholder="请选择人员类型"
|
|
|
|
|
|
+ placeholder="请选择维度占比"
|
|
>
|
|
>
|
|
<el-option label="焦虑" value="焦虑"></el-option>
|
|
<el-option label="焦虑" value="焦虑"></el-option>
|
|
<el-option label="抑郁" value="抑郁"></el-option>
|
|
<el-option label="抑郁" value="抑郁"></el-option>
|
|
@@ -143,7 +150,6 @@
|
|
width=""
|
|
width=""
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<el-pagination
|
|
<el-pagination
|
|
@@ -157,6 +163,17 @@
|
|
:total="total"
|
|
:total="total"
|
|
>
|
|
>
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ margin-bottom: 40px;
|
|
|
|
+ margin-top: 40px;
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ 已完成人数中各个维度人员情况
|
|
|
|
+ </div>
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form-item label="维度选择">
|
|
<el-form-item label="维度选择">
|
|
<el-select
|
|
<el-select
|
|
@@ -170,21 +187,30 @@
|
|
:label="item.paramName"
|
|
:label="item.paramName"
|
|
:value="item.paramValue"
|
|
:value="item.paramValue"
|
|
></el-option>
|
|
></el-option>
|
|
- <!-- <el-option label="抑郁" value="抑郁"></el-option>
|
|
|
|
- <el-option label="压力" value="躯体化"></el-option>
|
|
|
|
- <el-option label="精神障碍" value="精神障碍"></el-option> -->
|
|
|
|
- <!-- collapse-tags -->
|
|
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="组织架构选择">
|
|
|
|
|
|
+ <!-- @change="userDimensionality" -->
|
|
|
|
+ <el-form-item label="年级选择">
|
|
|
|
+ <el-select v-model="grade" placeholder="请选择年级" @change="gradeChange" >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in gradeList"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item == '全部' ? '' : item + '级'"
|
|
|
|
+ :value="item"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="组织架构选择" class="org_class">
|
|
<el-select
|
|
<el-select
|
|
|
|
+ width="300px"
|
|
multiple
|
|
multiple
|
|
v-model="orgName"
|
|
v-model="orgName"
|
|
|
|
+
|
|
@change="userOrgName"
|
|
@change="userOrgName"
|
|
placeholder="请选择组织架构"
|
|
placeholder="请选择组织架构"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- style="width: 200px"
|
|
|
|
|
|
+ style="width: 300px"
|
|
v-for="item in orgList"
|
|
v-for="item in orgList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
:label="item.orgName"
|
|
:label="item.orgName"
|
|
@@ -237,8 +263,6 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="orgName" label="所属组织架构" align="center" width="">
|
|
<el-table-column prop="orgName" label="所属组织架构" align="center" width="">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="dimensionSymptom" label="症状" align="center" width="">
|
|
|
|
- </el-table-column>
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="dimensionName"
|
|
prop="dimensionName"
|
|
label="维度"
|
|
label="维度"
|
|
@@ -247,6 +271,8 @@
|
|
width=""
|
|
width=""
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column prop="dimensionSymptom" label="症状" align="center" width="">
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<el-pagination
|
|
<el-pagination
|
|
class="pag_class"
|
|
class="pag_class"
|
|
@@ -335,6 +361,8 @@ export default {
|
|
//未完成的总条数
|
|
//未完成的总条数
|
|
complateTotal: 0,
|
|
complateTotal: 0,
|
|
abnormalNum: 0,
|
|
abnormalNum: 0,
|
|
|
|
+ grade: "",
|
|
|
|
+ gradeList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -383,6 +411,10 @@ export default {
|
|
// myChart.setOption(option_bing);
|
|
// myChart.setOption(option_bing);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //年级改变参数
|
|
|
|
+ gradeChange(val) {
|
|
|
|
+ this.getOrgList(val);
|
|
|
|
+ },
|
|
//格式化页面数据
|
|
//格式化页面数据
|
|
forDimen(row) {
|
|
forDimen(row) {
|
|
if (row.dimensionName == "躯体化") {
|
|
if (row.dimensionName == "躯体化") {
|
|
@@ -399,7 +431,7 @@ export default {
|
|
//调用统计
|
|
//调用统计
|
|
let params = {
|
|
let params = {
|
|
dimensionName: this.dime,
|
|
dimensionName: this.dime,
|
|
- orgList: [],
|
|
|
|
|
|
+ orgList: this.orgName,
|
|
planId: this.planId,
|
|
planId: this.planId,
|
|
quesType: this.tabName,
|
|
quesType: this.tabName,
|
|
quesValue: this.subValue,
|
|
quesValue: this.subValue,
|
|
@@ -421,7 +453,7 @@ export default {
|
|
userOrgName() {
|
|
userOrgName() {
|
|
let params = {
|
|
let params = {
|
|
dimensionName: this.dime,
|
|
dimensionName: this.dime,
|
|
- orgList: [],
|
|
|
|
|
|
+ orgList: this.orgName,
|
|
planId: this.planId,
|
|
planId: this.planId,
|
|
quesType: this.tabName,
|
|
quesType: this.tabName,
|
|
quesValue: this.subValue,
|
|
quesValue: this.subValue,
|
|
@@ -442,13 +474,28 @@ export default {
|
|
this.isScore();
|
|
this.isScore();
|
|
this.searchTarget();
|
|
this.searchTarget();
|
|
//个维度异常初次调用
|
|
//个维度异常初次调用
|
|
-
|
|
|
|
|
|
+ this.queryGrade();
|
|
//获取维度列表
|
|
//获取维度列表
|
|
this.getDimensionList();
|
|
this.getDimensionList();
|
|
//获取组织架构信息
|
|
//获取组织架构信息
|
|
- this.getOrgList();
|
|
|
|
},
|
|
},
|
|
|
|
+ //查询计划下年级
|
|
|
|
+ queryGrade() {
|
|
|
|
+ this.$http.get(`/planOrg/findPlanGrade?planId=${this.planId}`, {}, (res) => {
|
|
|
|
+ if (res && res.code == 200) {
|
|
|
|
+ this.gradeList = res.data;
|
|
|
|
+
|
|
|
|
+ this.gradeList.unshift("全部");
|
|
|
|
+ this.grade = res.data[0];
|
|
|
|
+ this.getOrgList(this.grade);
|
|
|
|
|
|
|
|
+ // this.orgName = [res.data[0].orgNo];
|
|
|
|
+ // this.orgList = res.data;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//管理端统计完成情况
|
|
//管理端统计完成情况
|
|
isFin() {
|
|
isFin() {
|
|
//调用接口返回信息
|
|
//调用接口返回信息
|
|
@@ -555,6 +602,11 @@ export default {
|
|
//将首页重置为1时---且总条数变化
|
|
//将首页重置为1时---且总条数变化
|
|
//设置为当前总条数
|
|
//设置为当前总条数
|
|
},
|
|
},
|
|
|
|
+ complateHandleCurrentChange(val) {
|
|
|
|
+ this.complatePageNum=val
|
|
|
|
+ this.getUnCompleteList();
|
|
|
|
+ },
|
|
|
|
+
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
this.pageNum = val;
|
|
this.pageNum = val;
|
|
this.searchList();
|
|
this.searchList();
|
|
@@ -639,16 +691,44 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//组织架构选择--
|
|
//组织架构选择--
|
|
- getOrgList() {
|
|
|
|
|
|
+ getOrgList1() {
|
|
this.$http.get(`/planOrg/findAllByPlanId?planId=${this.planId}`, {}, (res) => {
|
|
this.$http.get(`/planOrg/findAllByPlanId?planId=${this.planId}`, {}, (res) => {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
- this.orgName = [res.data[0].orgNo];
|
|
|
|
- this.orgList = res.data;
|
|
|
|
|
|
+ if (res.data.length > 0) {
|
|
|
|
+ let list = [];
|
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
|
+ list.push(res.data[i].orgNo);
|
|
|
|
+ }
|
|
|
|
+ this.orgName = list;
|
|
|
|
+ this.orgList = res.data;
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.msg);
|
|
this.$message.error(res.msg);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getOrgList(val) {
|
|
|
|
+ let url = "";
|
|
|
|
+ if (val == "全部") {
|
|
|
|
+ this.getOrgList1();
|
|
|
|
+ } else {
|
|
|
|
+ url = `/planOrg/findPlanGradeOrg?planId=${this.planId}&grade=${val}`;
|
|
|
|
+ this.$http.get(url, {}, (res) => {
|
|
|
|
+ if (res && res.code == 200) {
|
|
|
|
+ if (res.data.length > 0) {
|
|
|
|
+ let list = [];
|
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
|
+ list.push(res.data[i].orgNo);
|
|
|
|
+ }
|
|
|
|
+ this.orgName = list;
|
|
|
|
+ }
|
|
|
|
+ this.orgList = res.data;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//获取维度下变的子项维度
|
|
//获取维度下变的子项维度
|
|
getSexList() {
|
|
getSexList() {
|
|
this.$http.get(`/param/findAllByType?type=ques`, {}, (res) => {
|
|
this.$http.get(`/param/findAllByType?type=ques`, {}, (res) => {
|
|
@@ -670,7 +750,7 @@ export default {
|
|
this.subValue = res.data[0];
|
|
this.subValue = res.data[0];
|
|
let params = {
|
|
let params = {
|
|
dimensionName: this.dime,
|
|
dimensionName: this.dime,
|
|
- orgList: [],
|
|
|
|
|
|
+ orgList: this.orgName,
|
|
planId: this.planId,
|
|
planId: this.planId,
|
|
quesType: this.tabName,
|
|
quesType: this.tabName,
|
|
quesValue: this.subValue,
|
|
quesValue: this.subValue,
|
|
@@ -726,7 +806,6 @@ export default {
|
|
{},
|
|
{},
|
|
(res) => {
|
|
(res) => {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
- debugger;
|
|
|
|
this.subData = res.data.content;
|
|
this.subData = res.data.content;
|
|
this.subTotal = res.data.totalElements;
|
|
this.subTotal = res.data.totalElements;
|
|
//调用接口开始查询选择的列表
|
|
//调用接口开始查询选择的列表
|
|
@@ -748,6 +827,31 @@ export default {
|
|
.el-tabs__content {
|
|
.el-tabs__content {
|
|
display: contents !important;
|
|
display: contents !important;
|
|
}
|
|
}
|
|
|
|
+.org_class>>>.el-select-dropdown.is-multiple .el-select-dropdown__item {
|
|
|
|
+
|
|
|
|
+width: 300px !important;
|
|
|
|
+}
|
|
|
|
+.org_class>>>.el-select-dropdown__item {
|
|
|
|
+
|
|
|
|
+width: 300px !important;
|
|
|
|
+}
|
|
|
|
+</style>
|
|
|
|
+<style scoped>
|
|
|
|
+.org_class>>>.el-input__inner {
|
|
|
|
+ width: 300px !important;
|
|
|
|
+}
|
|
|
|
+.org_class>>>.el-input {
|
|
|
|
+ width: 300px;
|
|
|
|
+}
|
|
|
|
+.org_class>>>.el-select-dropdown.is-multiple .el-select-dropdown__item {
|
|
|
|
+
|
|
|
|
+ width: 300px !important;
|
|
|
|
+}
|
|
|
|
+.org_class>>>.el-select-dropdown__item {
|
|
|
|
+
|
|
|
|
+ width: 300px !important;
|
|
|
|
+}
|
|
|
|
+
|
|
</style>
|
|
</style>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
.pag_class /deep/ .el-input__inner {
|
|
.pag_class /deep/ .el-input__inner {
|