@zgfe/business-lib 1.0.30-user.3 → 1.0.30-user.5

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.
@@ -91,6 +91,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
91
91
  var _props$value = props.value,
92
92
  datasetId = _props$value.datasetId,
93
93
  datasetTable = _props$value.datasetTable,
94
+ datasetName = _props$value.datasetName,
94
95
  fieldName = _props$value.fieldName,
95
96
  fieldType = _props$value.fieldType,
96
97
  webType = _props$value.webType,
@@ -98,7 +99,8 @@ var CdpConditionItem = function CdpConditionItem(props) {
98
99
  params = _props$value.params;
99
100
  setDataset({
100
101
  id: datasetId,
101
- tableName: datasetTable
102
+ tableName: datasetTable,
103
+ datasetName: datasetName
102
104
  });
103
105
  setField({
104
106
  name: fieldName,
@@ -124,6 +126,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
124
126
  props.onChange({
125
127
  datasetId: dataset.id,
126
128
  datasetTable: dataset.tableName,
129
+ datasetName: dataset.datasetName,
127
130
  fieldName: field === null || field === void 0 ? void 0 : field.name,
128
131
  fieldType: field === null || field === void 0 ? void 0 : field.type,
129
132
  webType: field === null || field === void 0 ? void 0 : field.webType,
@@ -251,7 +251,7 @@ var Text = function Text(props) {
251
251
 
252
252
  return /*#__PURE__*/React.createElement("span", {
253
253
  key: Math.random()
254
- }, "".concat(value.datasetTable, "\u4E2D").concat(value.fieldName).concat(valuesDom));
254
+ }, "".concat(value.datasetName, "\u4E2D").concat(value.fieldName).concat(valuesDom));
255
255
  }), /*#__PURE__*/React.createElement("span", null, ")")));
256
256
  }
257
257
 
@@ -77,6 +77,7 @@ export declare const conditions: {
77
77
  dataset: {
78
78
  datasetId: number;
79
79
  datasetTable: string;
80
+ datasetName: string;
80
81
  fieldName: string;
81
82
  fieldType: string;
82
83
  webType: string;
@@ -538,6 +538,7 @@ export var conditions = [[{
538
538
  dataset: [{
539
539
  datasetId: 174,
540
540
  datasetTable: '181e55e003bc25945698fdb2e65d3c2193d',
541
+ datasetName: 's6',
541
542
  fieldName: 'a_id',
542
543
  fieldType: 'bigint',
543
544
  webType: 'number',
@@ -220,7 +220,7 @@ var BizUserCondition = function BizUserCondition(props) {
220
220
  show: value.length < andConditionNum,
221
221
  label: "\u4E14",
222
222
  onAdd: onAdd
223
- }), openCdpCondition && (!menuNameMap || menuNameMap['cdp']) ? /*#__PURE__*/React.createElement("div", {
223
+ }), openCdpCondition && (!menuNameMap || menuNameMap['dataset']) ? /*#__PURE__*/React.createElement("div", {
224
224
  className: "".concat(classPrefix, "-tip")
225
225
  }, ' ', /*#__PURE__*/React.createElement(IconFont, {
226
226
  type: "tishiicon"
@@ -113,6 +113,7 @@ export declare namespace BizUserConditionT {
113
113
  interface CdpConditionDetail {
114
114
  datasetId?: number;
115
115
  datasetTable?: string;
116
+ datasetName?: string;
116
117
  fieldName?: string;
117
118
  fieldType?: string;
118
119
  webType?: PropType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.30-user.3",
3
+ "version": "1.0.30-user.5",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -58,5 +58,5 @@
58
58
  "react": "^16.12.0 || ^17.0.0",
59
59
  "yorkie": "^2.0.0"
60
60
  },
61
- "gitHead": "eaa12ea299f24b2fbb4f33437c89e28c2df32903"
61
+ "gitHead": "fe2c84b666fecef5382c34648e25f36feb1745a2"
62
62
  }