From 2d35cad22314b6eb39526636df6c3002ba52f49b Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Tue, 28 Feb 2023 09:55:00 +0000
Subject: [PATCH] BUG改修

---
 eladmin-web-master/src/api/task/taskDaliy.js          |   10 +++++++++-
 eladmin-web-master/src/views/task/task/index.vue      |    3 +++
 eladmin-web-master/src/views/task/taskDaliy/index.vue |    3 ++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/eladmin-web-master/src/api/task/taskDaliy.js b/eladmin-web-master/src/api/task/taskDaliy.js
index 9210426..68354e1 100644
--- a/eladmin-web-master/src/api/task/taskDaliy.js
+++ b/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 }
diff --git a/eladmin-web-master/src/views/task/task/index.vue b/eladmin-web-master/src/views/task/task/index.vue
index bfa23a9..3de3a0c 100644
--- a/eladmin-web-master/src/views/task/task/index.vue
+++ b/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' }
diff --git a/eladmin-web-master/src/views/task/taskDaliy/index.vue b/eladmin-web-master/src/views/task/taskDaliy/index.vue
index bda8b4c..c73409c 100644
--- a/eladmin-web-master/src/views/task/taskDaliy/index.vue
+++ b/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
       })

--
Gitblit v1.9.3