| | |
| | | }) |
| | | } |
| | | |
| | | export function getTaskDaliyWithHours(params) { |
| | | return request({ |
| | | url: 'api/taskDaliy', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | |
| | | export function get(params) { |
| | | return request({ |
| | | url: 'api/taskDaliy', |
| | |
| | | }) |
| | | } |
| | | |
| | | export default { get, getAll, add, edit, del, completedWork, complianceWork, taskTotalConsumedHours } |
| | | export default { get, getAll, add, edit, del, completedWork, complianceWork, taskTotalConsumedHours, getTaskDaliyWithHours } |
| | |
| | | taskClassification: [ |
| | | { required: true, message: '任务分类不能为空', trigger: 'change' } |
| | | ], |
| | | performanceType: [ |
| | | { required: true, message: '绩效类型不能为空', trigger: 'change' } |
| | | ], |
| | | planHours: [ |
| | | { required: true, message: '计划工时不能为空', trigger: 'blur' }, |
| | | { validator: durationValidate, trigger: 'blur' } |
| | |
| | | {{ crud.toDate(scope.row.fillDate) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="taskHours" label="分配工时" min-width="80px" /> |
| | | <el-table-column :show-overflow-tooltip="true" prop="consumedHours" label="消耗工时" min-width="80px" /> |
| | | <el-table-column :show-overflow-tooltip="true" prop="taskProgress" label="任务进度" min-width="80px"> |
| | | <template slot-scope="scope"> |
| | |
| | | // 显示内部对话框 |
| | | this.innerVisible = true |
| | | this.innerLoading = true |
| | | crudTaskDaliy.get({ userId: this.form.userId, projectId: this.form.projectId, taskId: this.form.taskId, page: 0, size: 5, sort: 'fillDate,desc' }).then(res => { |
| | | crudTaskDaliy.getTaskDaliyWithHours({ userId: this.form.userId, projectId: this.form.projectId, taskId: this.form.taskId, page: 0, size: 5, sort: 'fillDate,desc' }).then(res => { |
| | | this.innerData = res.content |
| | | this.innerLoading = false |
| | | }) |