venus-design 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -409,32 +409,32 @@ export var VENUS_TABLE_COLUMNRENDER_TYPE = {
|
|
|
409
409
|
};
|
|
410
410
|
},
|
|
411
411
|
"renderStatus": function renderStatus(column, actions) {
|
|
412
|
-
return function (text, record) {
|
|
413
|
-
return [
|
|
412
|
+
return function (text, record, _, action) {
|
|
413
|
+
return [record.approvalState == "DRAFT" ? /*#__PURE__*/React.createElement(_Badge, {
|
|
414
414
|
status: "success",
|
|
415
415
|
text: text,
|
|
416
416
|
style: {
|
|
417
417
|
marginRight: 3
|
|
418
418
|
}
|
|
419
|
-
}) :
|
|
419
|
+
}) : record.approvalState == "ADJUSTAPPROVAL" ? /*#__PURE__*/React.createElement(_Badge, {
|
|
420
420
|
status: "processing",
|
|
421
421
|
text: text,
|
|
422
422
|
style: {
|
|
423
423
|
marginRight: 3
|
|
424
424
|
}
|
|
425
|
-
}) :
|
|
425
|
+
}) : record.approvalState == "APPROVAL" ? /*#__PURE__*/React.createElement(_Badge, {
|
|
426
426
|
status: "error",
|
|
427
427
|
text: text,
|
|
428
428
|
style: {
|
|
429
429
|
marginRight: 3
|
|
430
430
|
}
|
|
431
|
-
}) :
|
|
431
|
+
}) : record.approvalState == "COMPLETED" ? /*#__PURE__*/React.createElement(_Badge, {
|
|
432
432
|
color: "rgb(0, 255, 119)",
|
|
433
433
|
text: text,
|
|
434
434
|
style: {
|
|
435
435
|
marginRight: 3
|
|
436
436
|
}
|
|
437
|
-
}) :
|
|
437
|
+
}) : record.approvalState == "DISAGREE" ? /*#__PURE__*/React.createElement(_Badge, {
|
|
438
438
|
color: "rgb(255, 0, 30)",
|
|
439
439
|
text: text,
|
|
440
440
|
style: {
|