From d13cebe7fbadd396e91a989af331df8a8e7b40f8 Mon Sep 17 00:00:00 2001
From: xieb <vip_xiaobin810@163.com>
Date: Tue, 21 Jan 2025 11:40:42 +0800
Subject: [PATCH] 考核结果查看详情

---
 src/option/evaluate/evaluateTask.js |  148 ++++++++++++++++++++++++++----------------------
 1 files changed, 80 insertions(+), 68 deletions(-)

diff --git a/src/option/evaluate/evaluateTask.js b/src/option/evaluate/evaluateTask.js
index 56ffc56..871687d 100644
--- a/src/option/evaluate/evaluateTask.js
+++ b/src/option/evaluate/evaluateTask.js
@@ -1,10 +1,10 @@
 const status = {
   0: '未开始',
   1: '进行中',
-  2: '已结束'
+  2: '已完成'
 }
 
-export default {
+export const option = {
   height: 'auto',
   calcHeight: 30,
   tip: false,
@@ -12,12 +12,14 @@
   searchMenuSpan: 6,
   border: true,
   index: true,
-  viewBtn: true,
+  viewBtn: false,
   addBtn: false,
   editBtn: false,
+  delBtn: false,
   selection: true,
   dialogClickModal: false,
   menuFixed: 'right',
+  labelWidth: '120',
   column: [
     {
       label: "主键",
@@ -45,97 +47,53 @@
       minWidth: '120px'
     },
     {
-      label: "任务类别",
-      prop: "taskType",
-      type: "input",
-      minWidth: '100px'
-    },
-    {
-      label: "认定标准描述",
-      prop: "remark",
-      type: "input",
-      hide: true,
-    },
-    {
-      label: "候选人数量",
-      prop: "candidateNum",
-      type: "input",
-      span: 24,
-      minWidth: '100px',
-      // prop: {
-      //   label: "title",
-      // },
-      formatter: (row, value) => {
-        let num = 0
-        if (value === void 0) {
-          num = 0
-        } else {
-          value.forEach(item => {
-            num += Number(item.val)
-          })
-        }
-        return num + '人'
-      },
-    },
-    {
-      label: "类型",
+      label: "任务类型",
       prop: 'type',
-      type: 'select',
-      hide: true,
-      dicData: [{
-        label: '个人评优',
-        value: 0,
-      },
-      {
-        label: '部门评优',
-        value: 1,
-      }]
+      type: 'input',
+      minWidth: '120px',
+      formatter: (row, value) => {
+        return value ? '部门评优' : '员工评优'
+      }
     },
     {
-      label: "候选人截止日期",
-      prop: "candidateCutoffTime",
-      type: "date",
-      format: "YYYY-MM-DD HH:mm:ss",
-      valueFormat: "YYYY-MM-DD HH:mm:ss",
-      minWidth: '200px'
-    },
-    {
-      label: "候选人状态",
+      label: "第一轮状态",
       prop: "candidateState",
       type: "input",
       addDisplay: false,
       editDisplay: false,
       viewDisplay: false,
+      slot: true,
       formatter: (row, value) => {
         return status[value]
       },
       minWidth: '100px'
     },
     {
-      label: "评优数量",
-      prop: "evaluateNum",
+      label: "第一轮时间",
+      prop: "candidateCutoffTimeEnd",
       type: "input",
-      minWidth: '100px'
+      minWidth: '170px',
+      isSlot: true
     },
     {
-      label: "评优评先截止时间",
-      prop: "evaluateCutoffTime",
-      type: "date",
-      format: "YYYY-MM-DD HH:mm:ss",
-      valueFormat: "YYYY-MM-DD HH:mm:ss",
-      minWidth: '200px'
-    },
-    {
-      label: "评优评选状态",
+      label: "第二轮状态",
       prop: "evaluateState",
       type: "input",
       addDisplay: false,
       editDisplay: false,
       viewDisplay: false,
+      slot: true,
       formatter: (row, value) => {
         return status[value]
       },
       minWidth: '100px'
+    },
+    {
+      label: "第二轮时间",
+      prop: "evaluateCutoffTimeEnd",
+      type: "input",
+      minWidth: '170px',
+      isSlot: true
     },
     {
       label: "创建人",
@@ -202,3 +160,57 @@
     },
   ]
 }
+
+export const sectionOption = {
+  height: 'auto',
+  calcHeight: 30,
+  tip: false,
+  searchShow: true,
+  searchMenuSpan: 6,
+  border: true,
+  index: true,
+  viewBtn: false,
+  addBtn: false,
+  editBtn: false,
+  delBtn: false,
+  selection: true,
+  dialogClickModal: false,
+  menuFixed: 'right',
+  labelWidth: '120',
+  column: [
+    {
+      label: "任务名称",
+      prop: "taskName",
+      type: "input",
+      search: true,
+      minWidth: '120px'
+    },
+    {
+      label: "任务类型",
+      prop: 'type',
+      type: 'input',
+      minWidth: '120px',
+      formatter: (row, value) => {
+        return value ? '部门评优' : '员工评优'
+      }
+    },
+    {
+      label: "评选状态",
+      prop: "evaluateState",
+      type: "input",
+      addDisplay: false,
+      editDisplay: false,
+      viewDisplay: false,
+      slot: true,
+      formatter: (row, value) => {
+        return status[value]
+      },
+      minWidth: '100px'
+    },
+    {
+      label: "截止时间",
+      prop: "evaluateCutoffTimeEnd",
+      minWidth: '200px'
+    }
+  ]
+}

--
Gitblit v1.9.3