@bit-sun/business-component 4.0.8 → 4.0.9

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.
package/dist/index.esm.js CHANGED
@@ -15138,16 +15138,532 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
15138
15138
  }]);
15139
15139
  }(React$1.Component);
15140
15140
 
15141
+ var _excluded$f = ["className", "style"];
15142
+ var DragHandle$3 = SortableHandle(function () {
15143
+ return /*#__PURE__*/React$1.createElement("img", {
15144
+ width: 25,
15145
+ src: drag
15146
+ });
15147
+ });
15148
+ var SortableItem$3 = SortableElement(function (props) {
15149
+ return /*#__PURE__*/React$1.createElement("tr", _objectSpread2({}, props));
15150
+ });
15151
+ var SortableBody$3 = SortableContainer(function (props) {
15152
+ return /*#__PURE__*/React$1.createElement("tbody", _objectSpread2({}, props));
15153
+ });
15154
+ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
15155
+ function SearchItemTable() {
15156
+ var _this;
15157
+ _classCallCheck(this, SearchItemTable);
15158
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15159
+ args[_key] = arguments[_key];
15160
+ }
15161
+ _this = _callSuper(this, SearchItemTable, [].concat(args));
15162
+ _this.state = {
15163
+ dataSource: [],
15164
+ columns: [],
15165
+ sortDataSource: [],
15166
+ setVisible: false,
15167
+ searchDataSource: false,
15168
+ onSearchSort: false,
15169
+ isDefaultValue: false,
15170
+ defaultValue: [],
15171
+ bsTableCode: '' //设置table 列的标识
15172
+ };
15173
+ _this.patchUserSearchFieldsConfig = function (config) {
15174
+ var appRequestConfig = _this.props.appRequestConfig;
15175
+ var that = _this;
15176
+ var configvalue = config ? config.map(function (item) {
15177
+ return {
15178
+ name: item.name,
15179
+ hidden: item.hidden
15180
+ };
15181
+ }) : '';
15182
+ requestUtil({
15183
+ url: handleRequestUrl('/user', '/appConfig/saveQueryCriteria', appRequestConfig),
15184
+ method: 'POST',
15185
+ data: {
15186
+ code: that.state.bsTableCode,
15187
+ detail: configvalue ? JSON.stringify(configvalue) : ''
15188
+ }
15189
+ }).then(function (res) {
15190
+ if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
15191
+ _this.patchConfigToLocalstorage(configvalue);
15192
+ } else {
15193
+ message$1.error('保存搜索项自定义失败,请稍后尝试');
15194
+ }
15195
+ });
15196
+ };
15197
+ _this.getConfigFromlocalstorage = function () {
15198
+ var config = localStorage.getItem(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION) || '[]';
15199
+ var configArray = JSON.parse(config);
15200
+ var configSetting = configArray.filter(function (item) {
15201
+ return item.code === _this.state.bsTableCode;
15202
+ });
15203
+ if (configSetting.length && configSetting[0].detail) {
15204
+ return JSON.parse(configSetting[0].detail);
15205
+ }
15206
+ return [];
15207
+ };
15208
+ _this.patchConfigToLocalstorage = function (configvalue) {
15209
+ var _this$props = _this.props,
15210
+ setShowSearchFields = _this$props.setShowSearchFields,
15211
+ _this$props$datasourc = _this$props.datasource,
15212
+ datasource = _this$props$datasourc === void 0 ? [] : _this$props$datasourc;
15213
+ var _this$state = _this.state,
15214
+ sortDataSource = _this$state.sortDataSource,
15215
+ bsTableCode = _this$state.bsTableCode;
15216
+ var config = localStorage.getItem(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION) || '[]';
15217
+ var configArray = JSON.parse(config);
15218
+ var currentSetting = configArray.filter(function (item) {
15219
+ return item.code === bsTableCode;
15220
+ });
15221
+ if (currentSetting.length) {
15222
+ currentSetting[0].detail = JSON.stringify(configvalue);
15223
+ } else {
15224
+ configArray.push({
15225
+ "code": bsTableCode,
15226
+ "detail": JSON.stringify(configvalue)
15227
+ });
15228
+ }
15229
+ localStorage.setItem(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION, JSON.stringify(configArray));
15230
+ _this.setState({
15231
+ visible: false
15232
+ });
15233
+ if (configvalue) {
15234
+ setShowSearchFields(_toConsumableArray(sortDataSource));
15235
+ } else {
15236
+ _this.setState({
15237
+ isDefaultValue: true,
15238
+ dataSource: _toConsumableArray(datasource.map(function (item) {
15239
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15240
+ hidden: false
15241
+ });
15242
+ })),
15243
+ sortDataSource: _toConsumableArray(datasource.map(function (item) {
15244
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15245
+ hidden: false
15246
+ });
15247
+ }))
15248
+ });
15249
+ setShowSearchFields(_toConsumableArray(datasource));
15250
+ }
15251
+ };
15252
+ _this.setInitValue = function () {
15253
+ var _this$props2 = _this.props,
15254
+ _this$props2$datasour = _this$props2.datasource,
15255
+ datasource = _this$props2$datasour === void 0 ? [] : _this$props2$datasour,
15256
+ _this$props2$showSear = _this$props2.showSearchFields,
15257
+ showSearchFields = _this$props2$showSear === void 0 ? [] : _this$props2$showSear;
15258
+ var config = _this.getConfigFromlocalstorage();
15259
+ _this.setState({
15260
+ isDefaultValue: true,
15261
+ dataSource: datasource.map(function (item) {
15262
+ var innerItem = config.filter(function (inneritem) {
15263
+ var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
15264
+ var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
15265
+ return innerKey && innerKey === itemKey;
15266
+ });
15267
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15268
+ hidden: config.length && !innerItem.length
15269
+ });
15270
+ }),
15271
+ defaultValue: datasource.map(function (item) {
15272
+ var innerItem = config.filter(function (inneritem) {
15273
+ var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
15274
+ var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
15275
+ return innerKey && innerKey === itemKey;
15276
+ });
15277
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15278
+ hidden: config.length && !innerItem.length
15279
+ });
15280
+ }),
15281
+ sortDataSource: _toConsumableArray(showSearchFields)
15282
+ });
15283
+ };
15284
+ _this.columns = [{
15285
+ title: '搜索字段名称',
15286
+ dataIndex: 'label',
15287
+ className: 'drag-visible',
15288
+ width: 100
15289
+ }, {
15290
+ title: '删除',
15291
+ dataIndex: 'title1',
15292
+ render: function render(text, record) {
15293
+ return /*#__PURE__*/React$1.createElement("span", {
15294
+ onClick: function onClick() {
15295
+ _this.setState({
15296
+ sortDataSource: _this.state.sortDataSource.filter(function (item) {
15297
+ return item.label !== record.label;
15298
+ }),
15299
+ isDefaultValue: false,
15300
+ dataSource: _toConsumableArray(_this.state.dataSource.map(function (item) {
15301
+ if (item.label === record.label) {
15302
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15303
+ hidden: true
15304
+ });
15305
+ }
15306
+ return item;
15307
+ }))
15308
+ });
15309
+ }
15310
+ }, /*#__PURE__*/React$1.createElement("img", {
15311
+ width: 24,
15312
+ src: close
15313
+ }));
15314
+ }
15315
+ }, {
15316
+ title: 'Sort',
15317
+ dataIndex: 'sort',
15318
+ className: 'drag-visible',
15319
+ render: function render() {
15320
+ return /*#__PURE__*/React$1.createElement(DragHandle$3, null);
15321
+ }
15322
+ }];
15323
+ _this.showModal = function () {
15324
+ _this.setState({
15325
+ visible: true
15326
+ });
15327
+ _this.setInitValue();
15328
+ };
15329
+ _this.handleOk = function (e) {
15330
+ var _this$state2 = _this.state,
15331
+ sortDataSource = _this$state2.sortDataSource,
15332
+ isDefaultValue = _this$state2.isDefaultValue,
15333
+ defaultValue = _this$state2.defaultValue;
15334
+ if (!sortDataSource.length) {
15335
+ message$1.warning('至少选择一个搜索项!');
15336
+ return;
15337
+ }
15338
+ _this.patchUserSearchFieldsConfig(sortDataSource);
15339
+ };
15340
+ _this.handleCancel = function (e) {
15341
+ console.log(e);
15342
+ _this.setState({
15343
+ visible: false
15344
+ });
15345
+ };
15346
+ _this.handleTableHeadHidden = function (title) {
15347
+ var _this$state3 = _this.state,
15348
+ sortDataSource = _this$state3.sortDataSource,
15349
+ dataSource = _this$state3.dataSource;
15350
+ _this.setState({
15351
+ sortDataSource: sortDataSource.filter(function (item) {
15352
+ return item.title !== title;
15353
+ }),
15354
+ dataSource: _toConsumableArray(dataSource.map(function (item) {
15355
+ if (item.title === title) {
15356
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15357
+ hidden: true
15358
+ });
15359
+ }
15360
+ return item;
15361
+ }))
15362
+ }, function () {
15363
+ _this.handleOk();
15364
+ });
15365
+ };
15366
+ _this.onSortEnd = function (_ref) {
15367
+ var oldIndex = _ref.oldIndex,
15368
+ newIndex = _ref.newIndex;
15369
+ var sortDataSource = _this.state.sortDataSource;
15370
+ if (oldIndex !== newIndex) {
15371
+ var newData = arrayMoveImmutable([].concat(sortDataSource), oldIndex, newIndex).filter(function (el) {
15372
+ return !!el;
15373
+ });
15374
+ _this.setState({
15375
+ sortDataSource: _toConsumableArray(newData),
15376
+ isDefaultValue: false
15377
+ });
15378
+ }
15379
+ };
15380
+ _this.DraggableContainer = function (props) {
15381
+ return /*#__PURE__*/React$1.createElement(SortableBody$3, _objectSpread2({
15382
+ useDragHandle: true,
15383
+ disableAutoscroll: true,
15384
+ helperClass: "row-dragging",
15385
+ onSortEnd: _this.onSortEnd
15386
+ }, props));
15387
+ };
15388
+ _this.DraggableBodyRow = function (_ref2) {
15389
+ var className = _ref2.className,
15390
+ style = _ref2.style,
15391
+ restProps = _objectWithoutProperties(_ref2, _excluded$f);
15392
+ var sortDataSource = _this.state.sortDataSource;
15393
+ var index = sortDataSource.findIndex(function (x) {
15394
+ return x.name === restProps['data-row-key'];
15395
+ });
15396
+ return /*#__PURE__*/React$1.createElement(SortableItem$3, _objectSpread2({
15397
+ index: index
15398
+ }, restProps));
15399
+ };
15400
+ _this.onChange = function (e, label) {
15401
+ var _this$state4 = _this.state,
15402
+ sortDataSource = _this$state4.sortDataSource,
15403
+ dataSource = _this$state4.dataSource;
15404
+ if (!e.target.checked) {
15405
+ _this.setState({
15406
+ sortDataSource: sortDataSource.filter(function (item) {
15407
+ return item.label !== label;
15408
+ }),
15409
+ isDefaultValue: false,
15410
+ dataSource: _toConsumableArray(dataSource.map(function (item) {
15411
+ if (item.label === label) {
15412
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15413
+ hidden: true
15414
+ });
15415
+ }
15416
+ return item;
15417
+ }))
15418
+ });
15419
+ } else {
15420
+ var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
15421
+ return item.label === label;
15422
+ }).map(function (source) {
15423
+ return _objectSpread2(_objectSpread2({}, source), {}, {
15424
+ hidden: false
15425
+ });
15426
+ })));
15427
+ _this.setState({
15428
+ sortDataSource: _toConsumableArray(newSortData),
15429
+ isDefaultValue: false,
15430
+ dataSource: _toConsumableArray(dataSource.map(function (item) {
15431
+ if (item.label === label) {
15432
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15433
+ hidden: false
15434
+ });
15435
+ }
15436
+ return item;
15437
+ }))
15438
+ });
15439
+ }
15440
+ };
15441
+ _this.handleReset = function () {
15442
+ _this.setInitValue(true);
15443
+ };
15444
+ _this.handleResetSetting = function () {
15445
+ _this.patchUserSearchFieldsConfig('');
15446
+ };
15447
+ _this.onSearch = function (e) {
15448
+ _this.setState({
15449
+ searchDataSource: e.target.value
15450
+ });
15451
+ };
15452
+ _this.onSearchSort = function (e) {
15453
+ _this.setState({
15454
+ onSearchSort: e.target.value
15455
+ });
15456
+ };
15457
+ return _this;
15458
+ }
15459
+ _inherits(SearchItemTable, _React$Component);
15460
+ return _createClass(SearchItemTable, [{
15461
+ key: "componentDidMount",
15462
+ value: function componentDidMount() {
15463
+ var _this$props3 = this.props,
15464
+ datasource = _this$props3.datasource,
15465
+ showSearchFields = _this$props3.showSearchFields,
15466
+ bsTableCode = _this$props3.bsTableCode;
15467
+ var config = this.getConfigFromlocalstorage();
15468
+ this.setState({
15469
+ dataSource: datasource.map(function (item) {
15470
+ var innerItem = config.filter(function (inneritem) {
15471
+ var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
15472
+ var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
15473
+ return innerKey && innerKey === itemKey;
15474
+ });
15475
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15476
+ hidden: config.length && !innerItem.length
15477
+ });
15478
+ }),
15479
+ defaultValue: datasource.map(function (item) {
15480
+ var innerItem = config.filter(function (inneritem) {
15481
+ var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
15482
+ var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
15483
+ return innerKey && innerKey === itemKey;
15484
+ });
15485
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15486
+ hidden: config.length && !innerItem.length
15487
+ });
15488
+ }),
15489
+ sortDataSource: datasource.filter(function (item) {
15490
+ return !item.hidden;
15491
+ }).map(function (item) {
15492
+ return _objectSpread2({}, item);
15493
+ }),
15494
+ bsTableCode: bsTableCode
15495
+ });
15496
+ }
15497
+ }, {
15498
+ key: "render",
15499
+ value: function render() {
15500
+ var _this2 = this;
15501
+ var _this$state5 = this.state,
15502
+ _this$state5$dataSour = _this$state5.dataSource,
15503
+ dataSource = _this$state5$dataSour === void 0 ? [] : _this$state5$dataSour,
15504
+ searchDataSource = _this$state5.searchDataSource,
15505
+ sortDataSource = _this$state5.sortDataSource,
15506
+ visible = _this$state5.visible,
15507
+ onSearchSort = _this$state5.onSearchSort;
15508
+ var newSearchSource = dataSource.filter(function (item) {
15509
+ var _item$label;
15510
+ return (item === null || item === void 0 ? void 0 : (_item$label = item.label) === null || _item$label === void 0 ? void 0 : _item$label.indexOf(searchDataSource || '')) > -1;
15511
+ });
15512
+ return /*#__PURE__*/React$1.createElement("div", {
15513
+ className: 'sort_table_wrapper'
15514
+ }, visible && (/*#__PURE__*/React$1.createElement(Modal, {
15515
+ title: "\u8BBE\u7F6E\u641C\u7D22\u9879\u5185\u5BB9",
15516
+ wrapClassName: 'sort_table_wrapper',
15517
+ width: 820,
15518
+ visible: visible,
15519
+ onOk: this.handleOk,
15520
+ onCancel: this.handleCancel,
15521
+ footer: [/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, {
15522
+ key: "back",
15523
+ onClick: this.handleReset,
15524
+ style: {
15525
+ marginRight: 0
15526
+ }
15527
+ }, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React$1.createElement(Button, {
15528
+ key: "back",
15529
+ onClick: this.handleResetSetting
15530
+ }, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, {
15531
+ key: "submit",
15532
+ onClick: this.handleCancel,
15533
+ style: {
15534
+ marginRight: 0
15535
+ }
15536
+ }, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
15537
+ key: "submit",
15538
+ type: "primary",
15539
+ onClick: this.handleOk
15540
+ }, "\u786E\u8BA4"))]
15541
+ }, /*#__PURE__*/React$1.createElement("div", {
15542
+ className: 'sort_table'
15543
+ }, /*#__PURE__*/React$1.createElement("div", {
15544
+ className: 'sort_table_column_wrapper'
15545
+ }, /*#__PURE__*/React$1.createElement("span", {
15546
+ className: 'sort_table_column_count'
15547
+ }, "\u53EF\u9009\u5B57\u6BB5 ", /*#__PURE__*/React$1.createElement("span", null, "\uFF08\u5171", dataSource.length, "\u4E2A\uFF09")), /*#__PURE__*/React$1.createElement("div", {
15548
+ className: 'sort_table_column'
15549
+ }, /*#__PURE__*/React$1.createElement(Input, {
15550
+ prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
15551
+ className: "site-form-item-icon"
15552
+ }),
15553
+ placeholder: "\u641C\u7D22",
15554
+ allowClear: true,
15555
+ onChange: this.onSearch,
15556
+ style: {
15557
+ width: 540
15558
+ }
15559
+ }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
15560
+ checked: !dataSource.some(function (item) {
15561
+ if (item.hidden) return true;
15562
+ return false;
15563
+ }),
15564
+ onClick: function onClick(e) {
15565
+ _this2.setState({
15566
+ isDefaultValue: false,
15567
+ dataSource: _toConsumableArray(dataSource.map(function (item) {
15568
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15569
+ hidden: !e.target.checked
15570
+ });
15571
+ })),
15572
+ sortDataSource: e.target.checked ? _toConsumableArray(dataSource.map(function (item) {
15573
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15574
+ hidden: false
15575
+ });
15576
+ })) : []
15577
+ });
15578
+ }
15579
+ }, "\u5168\u9009"))), /*#__PURE__*/React$1.createElement("div", {
15580
+ className: 'sort_table_column_all'
15581
+ }, searchDataSource ? newSearchSource.map(function (item) {
15582
+ return /*#__PURE__*/React$1.createElement(Checkbox, {
15583
+ checked: !item.hidden,
15584
+ onChange: function onChange(e) {
15585
+ _this2.onChange(e, item.label);
15586
+ }
15587
+ }, item.label);
15588
+ }) : dataSource.map(function (item) {
15589
+ return /*#__PURE__*/React$1.createElement(Checkbox, {
15590
+ checked: !item.hidden,
15591
+ onChange: function onChange(e) {
15592
+ _this2.onChange(e, item.label);
15593
+ }
15594
+ }, item.label);
15595
+ }), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
15596
+ style: {
15597
+ width: '144px'
15598
+ }
15599
+ })), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
15600
+ className: 'sort_table_column_all_empty'
15601
+ }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
15602
+ className: 'sort_table_content_wrapper'
15603
+ }, /*#__PURE__*/React$1.createElement("span", {
15604
+ className: 'sort_table_content_count'
15605
+ }, "\u5DF2\u9009\u5B57\u6BB5 ", /*#__PURE__*/React$1.createElement("span", null, "\uFF08\u5171", sortDataSource.length, "\u4E2A\uFF09")), /*#__PURE__*/React$1.createElement("div", {
15606
+ className: 'sort_table_content'
15607
+ }, /*#__PURE__*/React$1.createElement("span", {
15608
+ style: {
15609
+ paddingLeft: '10px'
15610
+ }
15611
+ }, /*#__PURE__*/React$1.createElement(Input, {
15612
+ prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
15613
+ className: "site-form-item-icon"
15614
+ }),
15615
+ placeholder: "\u641C\u7D22",
15616
+ allowClear: true,
15617
+ onChange: this.onSearchSort,
15618
+ style: {
15619
+ width: 190
15620
+ }
15621
+ })), /*#__PURE__*/React$1.createElement(Table, {
15622
+ pagination: false,
15623
+ showHeader: false,
15624
+ dataSource: onSearchSort ? sortDataSource.filter(function (item) {
15625
+ var _item$label2;
15626
+ return (item === null || item === void 0 ? void 0 : (_item$label2 = item.label) === null || _item$label2 === void 0 ? void 0 : _item$label2.indexOf(onSearchSort)) > -1;
15627
+ }) : sortDataSource,
15628
+ columns: this.columns,
15629
+ rowKey: "name",
15630
+ components: {
15631
+ body: {
15632
+ wrapper: this.DraggableContainer,
15633
+ row: this.DraggableBodyRow
15634
+ }
15635
+ }
15636
+ })))))), /*#__PURE__*/React$1.createElement("div", {
15637
+ onClick: this.showModal,
15638
+ style: {
15639
+ fontSize: 14,
15640
+ textAlign: 'center',
15641
+ border: '0.67px solid #D9D9D9',
15642
+ width: '24px',
15643
+ height: '24px',
15644
+ lineHeight: '20px'
15645
+ }
15646
+ }, /*#__PURE__*/React$1.createElement("img", {
15647
+ style: {
15648
+ width: '20px',
15649
+ height: '20px'
15650
+ },
15651
+ src: shezhi
15652
+ })));
15653
+ }
15654
+ }]);
15655
+ }(React$1.Component);
15656
+
15141
15657
  var css_248z$g = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
15142
15658
  styleInject(css_248z$g);
15143
15659
 
15144
- var _excluded$f = ["onResize", "width"];
15660
+ var _excluded$g = ["onResize", "width"];
15145
15661
  var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
15146
15662
  var Text$2 = Typography.Text;
15147
15663
  var ResizeableTitle$2 = function ResizeableTitle(props) {
15148
15664
  var onResize = props.onResize,
15149
15665
  width = props.width,
15150
- restProps = _objectWithoutProperties(props, _excluded$f);
15666
+ restProps = _objectWithoutProperties(props, _excluded$g);
15151
15667
  if (!width) {
15152
15668
  return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
15153
15669
  }
@@ -15161,7 +15677,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
15161
15677
  }, /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps)));
15162
15678
  };
15163
15679
  var BsSulaQueryTable = (function (props) {
15164
- var _sortTableRef$current3, _props$expandable, _value$exportConfig6;
15680
+ var _props$expandable, _sortTableRef$current3, _value$exportConfig6;
15165
15681
  var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
15166
15682
  // 获取 table columns中所有的 key 防止有的地方是 dataindex
15167
15683
  var checkedList = useMemo(function () {
@@ -15607,14 +16123,14 @@ var BsSulaQueryTable = (function (props) {
15607
16123
  return cols;
15608
16124
  };
15609
16125
  var config = _objectSpread2(_objectSpread2({
15610
- visibleFieldsCount: 3,
16126
+ visibleFieldsCount: 7,
15611
16127
  tableWrapperStyle: {
15612
16128
  padding: '10px'
15613
16129
  // background: '#f3f3f3',
15614
16130
  },
15615
16131
  setVisibleColumn: setVisibleColumn,
15616
16132
  itemLayout: {
15617
- span: 8,
16133
+ span: 6,
15618
16134
  labelCol: {
15619
16135
  // label标签布局;可设置 span、offset
15620
16136
  span: 8
@@ -15627,29 +16143,7 @@ var BsSulaQueryTable = (function (props) {
15627
16143
  rowSelection: false
15628
16144
  }, handleTimeValue()), {}, {
15629
16145
  tableProps: setTableProps(),
15630
- columns: [].concat(_toConsumableArray(getColumns()), [{
15631
- key: 'setting',
15632
- title: /*#__PURE__*/React$1.createElement("span", {
15633
- className: "ant-dropdown-link"
15634
- }, /*#__PURE__*/React$1.createElement("div", {
15635
- onClick: sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current3 = sortTableRef.current) === null || _sortTableRef$current3 === void 0 ? void 0 : _sortTableRef$current3.showModal,
15636
- className: "ant-dropdown-link"
15637
- }, /*#__PURE__*/React$1.createElement("img", {
15638
- style: {
15639
- position: 'relative',
15640
- left: '-7px'
15641
- },
15642
- width: 24,
15643
- src: shezhi
15644
- }))),
15645
- width: '24px',
15646
- fixed: 'right',
15647
- render: function render(_ref3) {
15648
- var text = _ref3.text,
15649
- record = _ref3.record;
15650
- return ' ';
15651
- }
15652
- }]),
16146
+ columns: _toConsumableArray(getColumns()),
15653
16147
  fields: _toConsumableArray(showSearchFields),
15654
16148
  ref: props.forwardedRef || refs,
15655
16149
  isFullScreen: isFullScreen
@@ -15730,9 +16224,32 @@ var BsSulaQueryTable = (function (props) {
15730
16224
  isBsSulaQueryTable: true
15731
16225
  });
15732
16226
  }, [checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
16227
+ var columnsDom = /*#__PURE__*/React$1.createElement("span", {
16228
+ className: "ant-dropdown-link"
16229
+ }, /*#__PURE__*/React$1.createElement("div", {
16230
+ onClick: sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current3 = sortTableRef.current) === null || _sortTableRef$current3 === void 0 ? void 0 : _sortTableRef$current3.showModal,
16231
+ className: "ant-dropdown-link"
16232
+ }, /*#__PURE__*/React$1.createElement("img", {
16233
+ style: {
16234
+ position: 'relative',
16235
+ left: '-7px'
16236
+ },
16237
+ width: 24,
16238
+ src: shezhi
16239
+ })));
16240
+ var queryFieldsDom = /*#__PURE__*/React$1.createElement(SearchItemTable, {
16241
+ ref: searchTableRef,
16242
+ setShowSearchFields: setShowSearchFields,
16243
+ showSearchFields: showSearchFields,
16244
+ datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
16245
+ bsTableCode: bsTableCode
16246
+ });
15733
16247
  return /*#__PURE__*/React$1.createElement("div", {
15734
16248
  id: "bs-sula-query-table"
15735
- }, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React$1.createElement(SortableTable$1, {
16249
+ }, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2(_objectSpread2({}, memoConfig), {}, {
16250
+ columnsDom: columnsDom,
16251
+ queryFieldsDom: queryFieldsDom
16252
+ })), /*#__PURE__*/React$1.createElement(SortableTable$1, {
15736
16253
  ref: sortTableRef,
15737
16254
  setShowColumns: setShowColumns,
15738
16255
  showColumn: showColumn,
@@ -18110,7 +18627,7 @@ var NoFoundPage = function NoFoundPage(props) {
18110
18627
  }));
18111
18628
  };
18112
18629
 
18113
- var _excluded$g = ["route"];
18630
+ var _excluded$h = ["route"];
18114
18631
  var TabPane = Tabs.TabPane;
18115
18632
  var getId = function getId(str) {
18116
18633
  // 找到最后一个 / 的位置
@@ -19039,7 +19556,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
19039
19556
  }); // 添加数据大屏
19040
19557
  var _this$props3 = this.props,
19041
19558
  route = _this$props3.route,
19042
- restPrpos = _objectWithoutProperties(_this$props3, _excluded$g);
19559
+ restPrpos = _objectWithoutProperties(_this$props3, _excluded$h);
19043
19560
  var exist = route.routes.find(function (route) {
19044
19561
  return route.path === '/homePage/data-show';
19045
19562
  });
@@ -20008,10 +20525,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
20008
20525
  }))))));
20009
20526
  });
20010
20527
 
20011
- var _excluded$h = ["children"];
20528
+ var _excluded$i = ["children"];
20012
20529
  var Drawer = (function (props) {
20013
20530
  var children = props.children,
20014
- restProps = _objectWithoutProperties(props, _excluded$h);
20531
+ restProps = _objectWithoutProperties(props, _excluded$i);
20015
20532
  return /*#__PURE__*/React$1.createElement(Drawer$1, _objectSpread2({
20016
20533
  mask: true,
20017
20534
  closable: false,
@@ -28790,7 +29307,7 @@ var formatListName = function formatListName(list, columns) {
28790
29307
  });
28791
29308
  };
28792
29309
 
28793
- var _excluded$i = ["sorter"];
29310
+ var _excluded$j = ["sorter"];
28794
29311
  /**
28795
29312
  * 删掉查询条件的qp- 和 -eq等
28796
29313
  * @param {object} data
@@ -28873,7 +29390,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
28873
29390
  var _requestConfig$method;
28874
29391
  var params = _ref.params;
28875
29392
  var sorter = params.sorter,
28876
- paramsTemp = _objectWithoutProperties(params, _excluded$i);
29393
+ paramsTemp = _objectWithoutProperties(params, _excluded$j);
28877
29394
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
28878
29395
  currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
28879
29396
  });
@@ -36014,14 +36531,14 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
36014
36531
  var css_248z$v = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
36015
36532
  styleInject(css_248z$v);
36016
36533
 
36017
- var _excluded$j = ["titleExtra", "header", "showArrow"];
36534
+ var _excluded$k = ["titleExtra", "header", "showArrow"];
36018
36535
  var Panel = Collapse.Panel;
36019
36536
  var ExtendedPanel = function ExtendedPanel(_ref) {
36020
36537
  var titleExtra = _ref.titleExtra,
36021
36538
  header = _ref.header,
36022
36539
  _ref$showArrow = _ref.showArrow,
36023
36540
  showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
36024
- props = _objectWithoutProperties(_ref, _excluded$j);
36541
+ props = _objectWithoutProperties(_ref, _excluded$k);
36025
36542
  var renderHeader = function renderHeader() {
36026
36543
  return /*#__PURE__*/React$1.createElement(Space, {
36027
36544
  align: "center"
@@ -36045,11 +36562,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
36045
36562
  }), props.children);
36046
36563
  };
36047
36564
 
36048
- var _excluded$k = ["children", "bordered"];
36565
+ var _excluded$l = ["children", "bordered"];
36049
36566
  var ExtendedCollapse = function ExtendedCollapse(props) {
36050
36567
  var children = props.children,
36051
36568
  bordered = props.bordered,
36052
- restProps = _objectWithoutProperties(props, _excluded$k);
36569
+ restProps = _objectWithoutProperties(props, _excluded$l);
36053
36570
  return /*#__PURE__*/React$1.createElement("div", {
36054
36571
  className: classNames({
36055
36572
  'bs-collapse-wrap': true,