liteflow-editor-process 1.0.3 → 1.0.4

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.
@@ -1455,203 +1455,7 @@ var ComponentPropertiesEditor = function ComponentPropertiesEditor(_ref) {
1455
1455
 
1456
1456
  // 提取字段结构构造逻辑
1457
1457
  function generateInputParams(logFields) {
1458
- var staticFields = [{
1459
- id: "case",
1460
- label: "案例",
1461
- icon: "el-icon-c-scale-to-original",
1462
- isGroup: true,
1463
- children: [{
1464
- id: "case_id",
1465
- label: "案例ID",
1466
- icon: "el-icon-files",
1467
- type: "Standard",
1468
- fieldsType: "TEXT",
1469
- isGroup: false
1470
- }, {
1471
- id: "variant_id",
1472
- label: "变体ID",
1473
- icon: "el-icon-files",
1474
- type: "Standard",
1475
- fieldsType: "TEXT",
1476
- isGroup: false
1477
- }, {
1478
- id: "案例状态",
1479
- label: "案例状态",
1480
- icon: "el-icon-files",
1481
- type: "Standard",
1482
- fieldsType: "TEXT",
1483
- isGroup: false
1484
- }, {
1485
- id: "p_start_time",
1486
- label: "案例开始时间",
1487
- icon: "el-icon-date",
1488
- type: "Distribution",
1489
- fieldsType: "TIME",
1490
- isGroup: false
1491
- }, {
1492
- id: "p_cycle_time",
1493
- label: "案例持续时间",
1494
- icon: "el-icon-files",
1495
- type: "Standard",
1496
- fieldsType: "TIME TANG",
1497
- isGroup: false
1498
- }, {
1499
- id: "pnum",
1500
- label: "案例数",
1501
- icon: "el-icon-files",
1502
- type: "Standard",
1503
- fieldsType: "INT",
1504
- isGroup: false
1505
- }, {
1506
- id: "p_end_time",
1507
- label: "案例结束时间",
1508
- icon: "el-icon-date",
1509
- type: "Distribution",
1510
- fieldsType: "TIME",
1511
- isGroup: false
1512
- }, {
1513
- id: "activity_per_process_num",
1514
- label: "每个案例的活动数",
1515
- icon: "el-icon-files",
1516
- type: "Standard",
1517
- fieldsType: "INT",
1518
- isGroup: false
1519
- }, {
1520
- id: "connections_per_process_num",
1521
- label: "每个案例的连接数",
1522
- icon: "el-icon-files",
1523
- type: "Standard",
1524
- fieldsType: "INT",
1525
- isGroup: false
1526
- }]
1527
- }, {
1528
- id: "activity",
1529
- label: "活动",
1530
- icon: "el-icon-c-scale-to-original",
1531
- isGroup: true,
1532
- children: [{
1533
- id: "activity_name",
1534
- label: "活动名称",
1535
- icon: "el-icon-files",
1536
- type: "Standard",
1537
- fieldsType: "TEXT",
1538
- isGroup: false
1539
- }, {
1540
- id: "start_time",
1541
- label: "活动开始时间",
1542
- icon: "el-icon-date",
1543
- type: "Distribution",
1544
- fieldsType: "TIME",
1545
- isGroup: false
1546
- }, {
1547
- id: "a_occurrence",
1548
- label: "出现次数",
1549
- icon: "el-icon-files",
1550
- type: "Standard",
1551
- fieldsType: "INT",
1552
- isGroup: false
1553
- }, {
1554
- id: "startnum",
1555
- label: "开始活动数",
1556
- icon: "el-icon-files",
1557
- type: "Standard",
1558
- fieldsType: "INT",
1559
- isGroup: false
1560
- }, {
1561
- id: "a_cycle_time",
1562
- label: "活动周期时间",
1563
- icon: "el-icon-files",
1564
- type: "Standard",
1565
- fieldsType: "TIME TANG",
1566
- isGroup: false
1567
- }, {
1568
- id: "a_processing_time",
1569
- label: "活动持续时间",
1570
- icon: "el-icon-files",
1571
- type: "Standard",
1572
- fieldsType: "TIME TANG",
1573
- isGroup: false
1574
- }, {
1575
- id: "fnum",
1576
- label: "活动数",
1577
- icon: "el-icon-files",
1578
- type: "Standard",
1579
- fieldsType: "INT",
1580
- isGroup: false
1581
- }, {
1582
- id: "a_wait_time",
1583
- label: "活动等待时间",
1584
- icon: "el-icon-files",
1585
- type: "Standard",
1586
- fieldsType: "TIME TANG",
1587
- isGroup: false
1588
- }, {
1589
- id: "end_time",
1590
- label: "活动结束时间",
1591
- icon: "el-icon-date",
1592
- type: "Distribution",
1593
- fieldsType: "TIME",
1594
- isGroup: false
1595
- }, {
1596
- id: "endnum",
1597
- label: "结束活动数",
1598
- icon: "el-icon-files",
1599
- type: "Standard",
1600
- fieldsType: "INT",
1601
- isGroup: false
1602
- }]
1603
- }, {
1604
- id: "连接",
1605
- label: "连接",
1606
- icon: "el-icon-c-scale-to-original",
1607
- isGroup: true,
1608
- children: [{
1609
- id: "c_occurrence",
1610
- label: "出现次数",
1611
- icon: "el-icon-files",
1612
- type: "Standard",
1613
- fieldsType: "INT",
1614
- isGroup: false
1615
- }, {
1616
- id: "from_name",
1617
- label: "自(活动)",
1618
- icon: "el-icon-files",
1619
- type: "Standard",
1620
- fieldsType: "TEXT",
1621
- isGroup: false
1622
- }, {
1623
- id: "to_name",
1624
- label: "至(活动)",
1625
- icon: "el-icon-files",
1626
- type: "Standard",
1627
- fieldsType: "TEXT",
1628
- isGroup: false
1629
- }, {
1630
- id: "c_cycle_time",
1631
- label: "连接持续时间",
1632
- icon: "el-icon-files",
1633
- type: "Standard",
1634
- fieldsType: "TIME TANG",
1635
- isGroup: false
1636
- }, {
1637
- id: "cnum",
1638
- label: "连接数",
1639
- icon: "el-icon-files",
1640
- type: "Standard",
1641
- fieldsType: "INT",
1642
- isGroup: false
1643
- }]
1644
- }];
1645
- var treeFields = transformTreeData(logFields);
1646
- var curlogFields = treeFields.map(function (field) {
1647
- if (field.label === "模型字段") {
1648
- return _objectSpread(_objectSpread({}, field), {}, {
1649
- children: staticFields.concat(field.children ? field.children : [])
1650
- });
1651
- } else {
1652
- return field;
1653
- }
1654
- });
1458
+ var curlogFields = transformTreeData(logFields);
1655
1459
  setCaseAttrField(logFields.filter(function (log) {
1656
1460
  return log.fieldAttribute === "CASE";
1657
1461
  }).map(function (field) {
@@ -1698,7 +1502,22 @@ var ComponentPropertiesEditor = function ComponentPropertiesEditor(_ref) {
1698
1502
  });
1699
1503
  }
1700
1504
  function transformFieldNode(item) {
1701
- return {
1505
+ return item.isShowName ? {
1506
+ id: item.fieldName ? item.fieldName : "",
1507
+ label: item.shownFieldName ? item.shownFieldName : "",
1508
+ icon: item.type === "TIME" ? "el-icon-date" : "el-icon-files",
1509
+ type: item.type === "TIME" ? "Distribution" : "Standard",
1510
+ fieldsType: item.type,
1511
+ fieldsId: item.id,
1512
+ fieldAttribute: item.fieldAttribute,
1513
+ aggType: item.aggType,
1514
+ panelData: item.panelData,
1515
+ variable: item.variable,
1516
+ targetValue: item.targetValue,
1517
+ helperName: item.helperName,
1518
+ tableName: item.tableName,
1519
+ isGroup: false
1520
+ } : {
1702
1521
  id: item.fieldName ? item.fieldName : "",
1703
1522
  label: item.fieldName ? item.fieldName : "",
1704
1523
  icon: item.type === "TIME" ? "el-icon-date" : "el-icon-files",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liteflow-editor-process",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "LiteFlow Editor Process",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",