|
@@ -67,7 +67,7 @@
|
|
|
|
|
|
<el-dialog title="用户信息" :visible.sync="showUserInfo" width="50%" append-to-body :close-on-click-modal="false">
|
|
|
<div class="filter-box">
|
|
|
- <el-select size="small" style="width: 100px" v-model="userOrGroup" placeholder="任务类型" @change="searchTestRight">
|
|
|
+ <el-select size="small" style="width: 100px" v-model="userOrGroup" placeholder="任务类型" @change="changeUserOrGroup(userOrGroup)">
|
|
|
<el-option label="个人" value="0"> </el-option>
|
|
|
<el-option label="分组" value="1"> </el-option>
|
|
|
</el-select>
|
|
@@ -87,7 +87,10 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="gender" label="性别" width="auto" align="center" :formatter="sexFormat"></el-table-column>
|
|
|
<el-table-column prop="birthday" label="生日" width="auto" align="center">
|
|
|
+ <template slot-scope="scope">{{scope.row.birthday}}</template>
|
|
|
</el-table-column>
|
|
|
+<!-- <el-table-column prop="birthday" label="生日" width="auto" align="center">-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
<el-table-column prop="profession" label="职业" width="auto" align="center">
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -117,13 +120,14 @@
|
|
|
<!-- 任务信息 -->
|
|
|
<el-dialog :close-on-click-modal="false" title="任务信息" :visible.sync="showTaskInfo" width="50%" append-to-body>
|
|
|
<div class="filter-box">
|
|
|
- <el-select v-model="taskType" placeholder="任务类型" @change="searchTestRight" size="small">
|
|
|
+ <el-select v-model="taskType" placeholder="任务类型" @change="changeSearch" size="small">
|
|
|
<el-option v-for="item in taskTypeOptions" :key="item.taskType" :label="item.label" :value="item.taskType">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<el-table :data="testRightDatas" @selection-change="handleSelectionChangeForTypeTask" width="100%" size="small">
|
|
|
- <el-table-column property="name" label="名称"></el-table-column>
|
|
|
+ <el-table-column property="name" label="名称">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column property="name" label="类型" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.type == "0" ? "量表" : "认知任务" }}
|
|
@@ -137,6 +141,7 @@
|
|
|
:page-size="pageSizeForTestRight" layout="total, sizes, prev, pager, next, jumper" :total="totalForTestRight">
|
|
|
</el-pagination>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
<el-dialog :close-on-click-modal="false" title="分组人员" :visible.sync="showGroupPeople" width="50%" append-to-body>
|
|
|
<el-table :data="groupPeopleList" size="small">
|
|
|
<el-table-column prop="petName" label="用户名称" width="auto" align="center">
|
|
@@ -405,6 +410,19 @@ export default {
|
|
|
},
|
|
|
handleSizeChangeForTestRight(){
|
|
|
|
|
|
+ },
|
|
|
+ //处理用户信息-个人和分组切换时候的请求变化
|
|
|
+ changeUserOrGroup(userOrGroup){
|
|
|
+ if(userOrGroup==0){
|
|
|
+ this.searchUser();
|
|
|
+ }else if(userOrGroup==1){
|
|
|
+ this.searchTestRight();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //处理任务信息-认知任务和量表切换
|
|
|
+ changeSearch(){
|
|
|
+ this.currentPageForTestRight = 1;
|
|
|
+ this.searchTestRight();
|
|
|
},
|
|
|
// 历史计划分页切换
|
|
|
planCurrentChangeHandle(i) {
|
|
@@ -439,6 +457,13 @@ export default {
|
|
|
|
|
|
// 查询任务
|
|
|
searchTestRight() {
|
|
|
+ console.log(this.ingRowId +
|
|
|
+ "&type=" +
|
|
|
+ this.taskType +
|
|
|
+ "&beginNum=" +
|
|
|
+ this.currentPageForTestRight +
|
|
|
+ "&pageSize=" +
|
|
|
+ this.pageSizeForTestRight,'hhhh')
|
|
|
this.$http.get(
|
|
|
"/testPlan/contend/info?testPlanId=" +
|
|
|
this.ingRowId +
|
|
@@ -450,10 +475,13 @@ export default {
|
|
|
this.pageSizeForTestRight,
|
|
|
{},
|
|
|
(response) => {
|
|
|
- console.log("333", response);
|
|
|
+ console.log(response,'查询任务');
|
|
|
this.totalForTestRight = response.data.num;
|
|
|
this.testRightDatas = response.data.data;
|
|
|
- console.log(response);
|
|
|
+
|
|
|
+ // this.testRightDatas.forEach((item) => {
|
|
|
+ // console.log(item.description, '11111');
|
|
|
+ // });
|
|
|
}
|
|
|
);
|
|
|
},
|
|
@@ -480,9 +508,9 @@ export default {
|
|
|
this.pageSizeForAddUser,
|
|
|
{},
|
|
|
(response) => {
|
|
|
- this.totalForUser = response.data.num;
|
|
|
this.userDatas = response.data.data;
|
|
|
- console.log(response.data.data);
|
|
|
+ console.log(response.data.data,'用户信息');
|
|
|
+ this.totalForUser = response.data.num;
|
|
|
}
|
|
|
);
|
|
|
},
|