Explorar o código

add prev_executor

visuddhinanda hai 10 meses
pai
achega
da4ddcf563
Modificáronse 1 ficheiros con 25 adicións e 0 borrados
  1. 25 0
      dashboard-v4/dashboard/src/components/task/TaskList.tsx

+ 25 - 0
dashboard-v4/dashboard/src/components/task/TaskList.tsx

@@ -26,6 +26,7 @@ import Executors from "./Executors";
 import Category from "./Category";
 import Category from "./Category";
 import TaskListAdd from "./TaskListAdd";
 import TaskListAdd from "./TaskListAdd";
 import { updateNode } from "./ProjectTask";
 import { updateNode } from "./ProjectTask";
+import User from "../auth/User";
 
 
 const { Text } = Typography;
 const { Text } = Typography;
 
 
@@ -256,6 +257,30 @@ const TaskList = ({
         return <Assignees task={entity} onChange={changeData} />;
         return <Assignees task={entity} onChange={changeData} />;
       },
       },
     },
     },
+    {
+      title: intl.formatMessage({
+        id: "labels.task.prev.executors",
+      }),
+      key: "prev_executor",
+      dataIndex: "executor",
+      search: false,
+      readonly: true,
+      render(dom, entity, index, action, schema) {
+        return (
+          <div>
+            {entity.pre_task?.map((item, id) => {
+              return (
+                <User
+                  {...item.executor}
+                  key={id}
+                  showName={entity.pre_task?.length === 1}
+                />
+              );
+            })}
+          </div>
+        );
+      },
+    },
     {
     {
       title: intl.formatMessage({
       title: intl.formatMessage({
         id: "forms.fields.started-at.label",
         id: "forms.fields.started-at.label",