|
|
@@ -9,6 +9,10 @@
|
|
|
collapse-tags
|
|
|
:show-all-levels="false" clearable></el-cascader>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="执行(负责)人" prop="executors">
|
|
|
+ <dept-user-tree ref="dut" :userList="userList" :multiple="true"
|
|
|
+ @selected="selectExecutors"></dept-user-tree>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="日期" prop="month">
|
|
|
<el-date-picker
|
|
|
v-model="queryParams.rangeDate"
|
|
|
@@ -149,6 +153,8 @@ import {getProjectList, getProjectTree} from "@/api/task/project";
|
|
|
import DateUtil from "@/utils/date"
|
|
|
import TaskDetail from "./components/taskDetail"
|
|
|
import FileUpload from "@/components/FileUpload"
|
|
|
+import DeptUserTree from "@/components/DeptUserTree"
|
|
|
+import {getDeptUserTree} from "@/api/system/user";
|
|
|
|
|
|
const statusMap = {
|
|
|
'0': {name: '待查看', type: 'info'},
|
|
|
@@ -160,7 +166,7 @@ const statusMap = {
|
|
|
}
|
|
|
|
|
|
export default {
|
|
|
- components: {TaskDetail, FileUpload},
|
|
|
+ components: {TaskDetail, FileUpload, DeptUserTree},
|
|
|
dicts: ['task_status',],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -170,6 +176,7 @@ export default {
|
|
|
status: '0'
|
|
|
},
|
|
|
projectTree: [],
|
|
|
+ userList: [],
|
|
|
tableHeaders: [],
|
|
|
tableData: [],
|
|
|
statusMap: statusMap,
|
|
|
@@ -204,11 +211,19 @@ export default {
|
|
|
getProjectTree().then(res => {
|
|
|
this.projectTree = res.data
|
|
|
})
|
|
|
+ getDeptUserTree('').then(res => {
|
|
|
+ this.userList = res.data
|
|
|
+ })
|
|
|
},
|
|
|
+ //项目选择事件
|
|
|
selectProjectChange(val) {
|
|
|
this.queryParams.projectId = val[val.length - 1]
|
|
|
this.getList()
|
|
|
},
|
|
|
+ selectExecutors(val) {
|
|
|
+ this.queryParams.executors = val
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
getList() {
|
|
|
if (this.queryParams.rangeDate && this.queryParams.rangeDate.length === 2) {
|
|
|
this.queryParams.startDate = this.queryParams.rangeDate[0]
|