|
@@ -77,7 +77,7 @@ function FlowModal(props) {
|
|
|
data = [...data, arr];
|
|
|
}
|
|
|
});
|
|
|
- data.sort((a, b) => a.id - b.id);
|
|
|
+ data.sort((a, b) => b.id - a.id);
|
|
|
data.forEach((item, id) => {
|
|
|
//解决key报错问题
|
|
|
data[id].key = `${id}-${item.name}`;
|
|
@@ -148,7 +148,9 @@ function FlowModal(props) {
|
|
|
// width: '33%',
|
|
|
render: item => (
|
|
|
<span style={{ color: item.audit_status != 0 ? '#9b9b9b' : '' }}>
|
|
|
- {item.id == version.id && <CheckOutlined style={{ marginRight: 10 }} />}
|
|
|
+ {item.id == version.id && !item.isParent && (
|
|
|
+ <CheckOutlined style={{ marginRight: 10 }} />
|
|
|
+ )}
|
|
|
{item.version_no && !item.isParent
|
|
|
? `${item.version_name}.${item.version_no}`
|
|
|
: item.version_name}
|
|
@@ -159,7 +161,7 @@ function FlowModal(props) {
|
|
|
title: '状态',
|
|
|
width: '30%',
|
|
|
render: item => {
|
|
|
- // if (!item.flow_id && item.isParent) return;
|
|
|
+ if (!item.flow_id && item.isParent) return;
|
|
|
let style = { color: getColor(item) };
|
|
|
let txt = '';
|
|
|
switch (item.audit_status) {
|
|
@@ -195,6 +197,7 @@ function FlowModal(props) {
|
|
|
item.id != version.id && (
|
|
|
<a
|
|
|
onClick={() => {
|
|
|
+ console.log(item);
|
|
|
onChangeVersion(item);
|
|
|
onClose();
|
|
|
}}
|