Browse Source

添加被修改状态

Renxy 1 year ago
parent
commit
a9cf19ad1e
2 changed files with 9 additions and 1 deletions
  1. 8 0
      src/pages/Detail/FlowModal.js
  2. 1 1
      src/pages/Detail/Index.js

+ 8 - 0
src/pages/Detail/FlowModal.js

@@ -339,6 +339,14 @@ function FlowModal(props) {
           );
         },
       },
+      {
+        title: '修改',
+        width: '20%',
+        render: item => {
+          console.log('------------', item.is_edit);
+          return item?.is_edit ? '被修改' : '';
+        },
+      },
       {
         title: '操作',
         width: '20%',

+ 1 - 1
src/pages/Detail/Index.js

@@ -562,7 +562,7 @@ function Detail(props) {
         </div>
         <div className={styles.btns}>
           {saveTime && <span style={{ color: '#333', fontSize: 14 }}>上次保存时间 {saveTime}</span>}
-          {version.audit_status === 0 && (
+          {(version.audit_status === 0 || node?.node_type_psr == 6) && (
             <Button type="primary" loading={loading.effects['detail/saveSheet']} onClick={onUpdate}>
               保存
             </Button>