瀏覽代碼

修改项目日志

Renxy 1 年之前
父節點
當前提交
5655442502
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/pages/PurchaseAdmin/PurchaseList/Approval/ProjectRecordModal.js

+ 5 - 4
src/pages/PurchaseAdmin/PurchaseList/Approval/ProjectRecordModal.js

@@ -10,7 +10,7 @@ const ProjectRecordModal = ({ visible, currentItem, depUserTree, onOk, onClose }
     author: '',
     s_time: '',
     e_time: '',
-    pageSize: 1,
+    currentPage: 1,
   });
   const { data, run, loading } = useRequest(
     data => approvalLogProjectsList({ ...data, id: currentItem.id }),
@@ -24,7 +24,7 @@ const ProjectRecordModal = ({ visible, currentItem, depUserTree, onOk, onClose }
   const columns = [
     {
       title: '提交人',
-      dataIndex: 'name',
+      dataIndex: 'author_name',
       width: '12%',
     },
     {
@@ -34,13 +34,14 @@ const ProjectRecordModal = ({ visible, currentItem, depUserTree, onOk, onClose }
     },
     {
       title: '日志概述',
-      dataIndex: 'doc',
+      dataIndex: 'content',
       render: doc => <div className={styles.doc}>{doc}</div>,
     },
     {
       title: '提交时间',
-      dataIndex: 'time',
+      dataIndex: 'c_time',
       width: '20%',
+      render: time => moment(time).format('YYYY-MM-DD HH:mm'),
     },
     // {
     //   title: '操作',