yaozc
2023-02-28 2d35cad22314b6eb39526636df6c3002ba52f49b
BUG改修
3 files modified
16 ■■■■■ changed files
eladmin-web-master/src/api/task/taskDaliy.js 10 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/task/task/index.vue 3 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/task/taskDaliy/index.vue 3 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/api/task/taskDaliy.js
@@ -8,6 +8,14 @@
  })
}
export function getTaskDaliyWithHours(params) {
  return request({
    url: 'api/taskDaliy',
    method: 'get',
    params
  })
}
export function get(params) {
  return request({
    url: 'api/taskDaliy',
@@ -64,4 +72,4 @@
  })
}
export default { get, getAll, add, edit, del, completedWork, complianceWork, taskTotalConsumedHours }
export default { get, getAll, add, edit, del, completedWork, complianceWork, taskTotalConsumedHours, getTaskDaliyWithHours }
eladmin-web-master/src/views/task/task/index.vue
@@ -364,6 +364,9 @@
        taskClassification: [
          { required: true, message: '任务分类不能为空', trigger: 'change' }
        ],
        performanceType: [
          { required: true, message: '绩效类型不能为空', trigger: 'change' }
        ],
        planHours: [
          { required: true, message: '计划工时不能为空', trigger: 'blur' },
          { validator: durationValidate, trigger: 'blur' }
eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -119,6 +119,7 @@
                {{ 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">
@@ -469,7 +470,7 @@
      // 显示内部对话框
      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
      })