|
|
@@ -36,6 +36,14 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="人员名称" prop="name">
|
|
|
+ <el-select @change="changecompletionstatus" size="medium" filterable
|
|
|
+ v-model="taskUserId" placeholder="请选择">
|
|
|
+ <el-option v-for="item in taskUserIdArr" :key="item.id" :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<!-- <el-form-item label="指派类型" prop="name">
|
|
|
<el-select @change="changeassignmenttype" size="medium" filterable v-model="assignmenttype" placeholder="请选择">
|
|
|
<el-option
|
|
|
@@ -416,7 +424,6 @@ export default {
|
|
|
name:'指派给我'
|
|
|
},
|
|
|
],
|
|
|
-
|
|
|
tableData: [],
|
|
|
value: '',
|
|
|
pagesize:10,
|
|
|
@@ -438,6 +445,8 @@ export default {
|
|
|
remark:'',
|
|
|
overTime:'',
|
|
|
},
|
|
|
+ taskUserId:-1,
|
|
|
+ taskUserIdArr:[],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -476,17 +485,6 @@ export default {
|
|
|
}
|
|
|
var url = "/api/PersonnelModule/PostTaskAllocationPage"
|
|
|
var that = this
|
|
|
- var data={
|
|
|
- portType:1,
|
|
|
- userId: that.userId,
|
|
|
- pageId: that.pageId,
|
|
|
- pageIndex: that.currentPage,
|
|
|
- pageSize: that.pagesize,
|
|
|
- type: that.assignmenttype,
|
|
|
- status: that.completionstatus,
|
|
|
- taskName: that.tasknames,
|
|
|
- }
|
|
|
- console.log(JSON.stringify(data))
|
|
|
this.$axios({
|
|
|
method: 'post',
|
|
|
url: url,
|
|
|
@@ -502,6 +500,7 @@ export default {
|
|
|
type: that.assignmenttype,
|
|
|
status: that.completionstatus,
|
|
|
taskName: that.tasknames,
|
|
|
+ taskUserId: that.taskUserId,
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
console.log(res)
|
|
|
@@ -618,7 +617,9 @@ export default {
|
|
|
console.log(res)
|
|
|
if(res.data.code==200){
|
|
|
that.tasknamelist=res.data.data.taskNameInfos;
|
|
|
- that.PostTaskAllocationPage()
|
|
|
+ that.taskUserIdArr=res.data.data.executeTaskUserInfos;
|
|
|
+ that.taskUserIdArr.unshift({id:-1,name:'全部'});
|
|
|
+ that.PostTaskAllocationPage();
|
|
|
}else{
|
|
|
that.$message.error(res.data.msg);
|
|
|
}
|