kts-components-document-access-point 1.4.8 → 1.4.11

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
@@ -3048,10 +3048,15 @@ function modalcomfirm(props) {
3048
3048
  return s.targetId;
3049
3049
  }, []);
3050
3050
 
3051
- var _useState = useState([]),
3051
+ var _useState = useState(false),
3052
3052
  _useState2 = _slicedToArray(_useState, 2),
3053
- targetList = _useState2[0],
3054
- setTargetList = _useState2[1];
3053
+ loading = _useState2[0],
3054
+ setloading = _useState2[1];
3055
+
3056
+ var _useState3 = useState([]),
3057
+ _useState4 = _slicedToArray(_useState3, 2),
3058
+ targetList = _useState4[0],
3059
+ setTargetList = _useState4[1];
3055
3060
 
3056
3061
  useEffect(function () {
3057
3062
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -3089,9 +3094,8 @@ function modalcomfirm(props) {
3089
3094
  }, []);
3090
3095
  var handleOk = useCallback(function () {
3091
3096
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
3092
- var _DocumentsService$ins2;
3097
+ var note, data, _DocumentsService$ins2, res;
3093
3098
 
3094
- var note, data, res;
3095
3099
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
3096
3100
  while (1) {
3097
3101
  switch (_context2.prev = _context2.next) {
@@ -3107,14 +3111,21 @@ function modalcomfirm(props) {
3107
3111
  senderParticipantNote: note && note.remarkName
3108
3112
  });
3109
3113
  });
3110
- _context2.next = 4;
3114
+
3115
+ if (loading) {
3116
+ _context2.next = 9;
3117
+ break;
3118
+ }
3119
+
3120
+ setloading(true);
3121
+ _context2.next = 6;
3111
3122
  return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
3112
3123
  url: '/schema/config/batchSend',
3113
3124
  data: data,
3114
3125
  type: 'post'
3115
3126
  });
3116
3127
 
3117
- case 4:
3128
+ case 6:
3118
3129
  res = _context2.sent;
3119
3130
 
3120
3131
  if (res.res) {
@@ -3123,14 +3134,16 @@ function modalcomfirm(props) {
3123
3134
  props.handleCancel();
3124
3135
  }
3125
3136
 
3126
- case 6:
3137
+ setloading(false);
3138
+
3139
+ case 9:
3127
3140
  case "end":
3128
3141
  return _context2.stop();
3129
3142
  }
3130
3143
  }
3131
3144
  }, _callee2);
3132
3145
  }))();
3133
- }, [targetId, targetList]);
3146
+ }, [targetId, targetList, loading]);
3134
3147
  var gotoSendlist = useCallback(function () {
3135
3148
  controller.pipeline( /*#__PURE__*/function () {
3136
3149
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
@@ -3197,12 +3210,10 @@ function modalcomfirm(props) {
3197
3210
  };
3198
3211
  }, []);
3199
3212
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, {
3200
- title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94did",
3213
+ title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94DID",
3201
3214
  visible: true,
3202
3215
  onOk: handleOk,
3203
- onCancel: handleCancel,
3204
- okText: "\u786E\u5B9A",
3205
- cancelText: "\u53D6\u6D88"
3216
+ onCancel: handleCancel
3206
3217
  }, /*#__PURE__*/React.createElement(Radio.Group, {
3207
3218
  onChange: targetSelect,
3208
3219
  value: targetId
@@ -3604,9 +3615,15 @@ var PageHeader = (function () {
3604
3615
  value: type,
3605
3616
  onChange: switchType
3606
3617
  }, /*#__PURE__*/React.createElement(Radio$1.Button, {
3607
- value: 1
3618
+ value: 1,
3619
+ style: {
3620
+ whiteSpace: 'nowrap'
3621
+ }
3608
3622
  }, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$1.Button, {
3609
- value: 2
3623
+ value: 2,
3624
+ style: {
3625
+ whiteSpace: 'nowrap'
3626
+ }
3610
3627
  }, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React.createElement(AdvancedSearch, {
3611
3628
  width: 480,
3612
3629
  height: 44,
@@ -3707,7 +3724,7 @@ var PageHeader = (function () {
3707
3724
  }));
3708
3725
  });
3709
3726
 
3710
- var css_248z$3 = ".header {\n padding: 10px 0px;\n display: flex;\n align-items: center;\n}\n.header .buttonGroup {\n margin-right: 20px;\n white-space: nowrap;\n}\n.header .buttons {\n text-align: right;\n flex: 1;\n white-space: nowrap;\n}\n.tabel-action {\n padding: 0 5px;\n font-size: 12px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #0074ff;\n white-space: nowrap;\n cursor: pointer;\n}\n";
3727
+ var css_248z$3 = "";
3711
3728
  styleInject(css_248z$3);
3712
3729
 
3713
3730
  var attributionEnum = {
@@ -3907,15 +3924,19 @@ function validaterule(props) {
3907
3924
 
3908
3925
  var columns = [{
3909
3926
  title: '配置名称',
3910
- dataIndex: 'configName'
3927
+ dataIndex: 'configName',
3928
+ width: 160,
3929
+ ellipsis: true
3911
3930
  }, {
3912
3931
  title: '单据大类',
3913
3932
  dataIndex: 'type',
3933
+ width: 120,
3914
3934
  render: function render(text) {
3915
3935
  return bill[text];
3916
3936
  }
3917
3937
  }, {
3918
3938
  title: '单据子类',
3939
+ width: 120,
3919
3940
  dataIndex: 'profile',
3920
3941
  render: function render(text, record) {
3921
3942
  if (text) {
@@ -3931,24 +3952,31 @@ function validaterule(props) {
3931
3952
  }, {
3932
3953
  title: '收发角色',
3933
3954
  dataIndex: 'attribution',
3955
+ width: 120,
3934
3956
  render: function render(text) {
3935
3957
  return attributionEnum[text];
3936
3958
  }
3937
3959
  }, {
3938
3960
  title: '创建时间',
3939
3961
  dataIndex: 'createAt',
3962
+ ellipsis: true,
3963
+ width: 160,
3940
3964
  render: function render(text) {
3941
3965
  return moment(text).format('YYYY-MM-DD HH:mm');
3942
3966
  }
3943
3967
  }, {
3944
3968
  title: '更新时间',
3945
3969
  dataIndex: 'updateAt',
3970
+ ellipsis: true,
3971
+ width: 160,
3946
3972
  render: function render(text) {
3947
3973
  return moment(text).format('YYYY-MM-DD HH:mm');
3948
3974
  }
3949
3975
  }, {
3950
3976
  title: '操作',
3977
+ width: 170,
3951
3978
  dataIndex: 'console',
3979
+ fixed: 'right',
3952
3980
  render: function render(text, record) {
3953
3981
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("a", {
3954
3982
  className: "tabel-action",
@@ -4064,13 +4092,20 @@ function validaterule(props) {
4064
4092
  };
4065
4093
  }())();
4066
4094
  }, []);
4067
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageHeader, null), /*#__PURE__*/React.createElement(AutoTableContainer, {
4095
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
4096
+ style: {
4097
+ flex: 'none',
4098
+ position: 'relative',
4099
+ zIndex: 1
4100
+ }
4101
+ }, /*#__PURE__*/React.createElement(PageHeader, null)), /*#__PURE__*/React.createElement(AutoTableContainer, {
4068
4102
  style: {
4069
4103
  flex: 1,
4070
4104
  padding: '0 20px',
4071
- backgroundColor: '#efefef'
4105
+ background: '#F4F4F4'
4072
4106
  }
4073
4107
  }, /*#__PURE__*/React.createElement(Table$1, {
4108
+ className: 'fixheight',
4074
4109
  columns: columns,
4075
4110
  rowKey: "configNumber",
4076
4111
  rowSelection: rowSelection,
@@ -4311,10 +4346,14 @@ function validaterule$1(props) {
4311
4346
  var columns = useMemo(function () {
4312
4347
  return [{
4313
4348
  title: '配置名称',
4314
- dataIndex: 'configName'
4349
+ dataIndex: 'configName',
4350
+ ellipsis: true,
4351
+ width: 160
4315
4352
  }, {
4316
4353
  title: '使用标识',
4317
4354
  dataIndex: 'effectStatus',
4355
+ width: 120,
4356
+ ellipsis: true,
4318
4357
  render: function render(text) {
4319
4358
  if (text === 0) {
4320
4359
  return /*#__PURE__*/React.createElement("span", null, "\u5DF2\u5931\u6548");
@@ -4330,12 +4369,14 @@ function validaterule$1(props) {
4330
4369
  }
4331
4370
  }, {
4332
4371
  title: '单据类型',
4372
+ width: 120,
4333
4373
  dataIndex: 'type',
4334
4374
  render: function render(text) {
4335
4375
  return bill[text];
4336
4376
  }
4337
4377
  }, {
4338
4378
  title: '单据子类',
4379
+ width: 120,
4339
4380
  dataIndex: 'profile',
4340
4381
  render: function render(text, record) {
4341
4382
  if (text) {
@@ -4351,28 +4392,40 @@ function validaterule$1(props) {
4351
4392
  }, {
4352
4393
  title: '我的收发角色',
4353
4394
  dataIndex: 'attribution',
4395
+ width: 160,
4396
+ ellipsis: true,
4354
4397
  render: function render(text) {
4355
4398
  return attributionEnum[text];
4356
4399
  }
4357
4400
  }, {
4358
4401
  title: '我司对应DID',
4359
4402
  dataIndex: 'senderParticipantId',
4403
+ ellipsis: true,
4404
+ width: 200,
4360
4405
  render: function render(text, record) {
4361
4406
  if (record.senderParticipantNote) {
4362
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.senderParticipantNote), text);
4407
+ return /*#__PURE__*/React.createElement("span", {
4408
+ title: record.senderParticipantNote + '' + text
4409
+ }, record.senderParticipantNote, text);
4363
4410
  } else {
4364
4411
  return /*#__PURE__*/React.createElement("span", null, text);
4365
4412
  }
4366
4413
  }
4367
4414
  }, {
4368
4415
  title: '接受对象',
4416
+ width: 120,
4417
+ ellipsis: true,
4369
4418
  dataIndex: 'receiverParticipantId'
4370
4419
  }, {
4371
4420
  title: '接受对象所属公司',
4421
+ width: 160,
4422
+ ellipsis: true,
4372
4423
  dataIndex: 'receiverCompany'
4373
4424
  }, {
4374
4425
  title: '发布时间',
4375
4426
  dataIndex: 'createAt',
4427
+ width: 160,
4428
+ ellipsis: true,
4376
4429
  render: function render(text) {
4377
4430
  return moment(text).format('YYYY-MM-DD HH:mm');
4378
4431
  }
@@ -4388,6 +4441,8 @@ function validaterule$1(props) {
4388
4441
  {
4389
4442
  title: '操作',
4390
4443
  dataIndex: 'console',
4444
+ width: 80,
4445
+ fixed: 'right',
4391
4446
  render: function render(text, record) {
4392
4447
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("a", {
4393
4448
  className: "tabel-action",
@@ -4405,6 +4460,7 @@ function validaterule$1(props) {
4405
4460
  backgroundColor: '#efefef'
4406
4461
  }
4407
4462
  }, /*#__PURE__*/React.createElement(Table$1, {
4463
+ className: 'fixheight',
4408
4464
  columns: columns,
4409
4465
  rowKey: "id",
4410
4466
  dataSource: list,
@@ -4556,9 +4612,7 @@ var DocumentsCont = /*#__PURE__*/function (_React$Component) {
4556
4612
  }(React.Component);
4557
4613
 
4558
4614
  var Main$2 = function Main(props) {
4559
- var initRoute = props.path || '/billwhiteliest'; // const uploadConfig = { domain: (DocumentsService.instance.service as any).sdk.service.domain, token: (DocumentsService.instance.service as any).sdk.user.cToken };
4560
- // console.log(uploadConfig);
4561
-
4615
+ var initRoute = props.path || '/rulelist';
4562
4616
  return /*#__PURE__*/React.createElement(ConfigProvider, {
4563
4617
  locale: zhCN
4564
4618
  }, /*#__PURE__*/React.createElement(MemoryRouter, null, /*#__PURE__*/React.createElement(Switch$1, null, /*#__PURE__*/React.createElement(Route, {
@@ -5076,14 +5130,19 @@ function Rule(props) {
5076
5130
 
5077
5131
  var _controller$useRuning = controller.useRuning(controller.configupdate, controller.configsave),
5078
5132
  _controller$useRuning2 = _slicedToArray(_controller$useRuning, 1),
5079
- loading = _controller$useRuning2[0]; // const [status, setStatus] = useState(0);
5080
- // const [first, setFirst] = useState(true);
5081
-
5133
+ loading = _controller$useRuning2[0];
5082
5134
 
5083
5135
  var _useState15 = useState(false),
5084
5136
  _useState16 = _slicedToArray(_useState15, 2),
5085
- hasChange = _useState16[0],
5086
- setChange = _useState16[1];
5137
+ sendloading = _useState16[0],
5138
+ setloading = _useState16[1]; // const [status, setStatus] = useState(0);
5139
+ // const [first, setFirst] = useState(true);
5140
+
5141
+
5142
+ var _useState17 = useState(false),
5143
+ _useState18 = _slicedToArray(_useState17, 2),
5144
+ hasChange = _useState18[0],
5145
+ setChange = _useState18[1];
5087
5146
 
5088
5147
  var history = useHistory();
5089
5148
  var search = history.location.search && qs.parse(history.location.search);
@@ -5439,10 +5498,17 @@ function Rule(props) {
5439
5498
  sendPublic: true,
5440
5499
  senderParticipantNote: note && note.remarkName
5441
5500
  });
5442
- _context7.next = 4;
5501
+
5502
+ if (sendloading) {
5503
+ _context7.next = 9;
5504
+ break;
5505
+ }
5506
+
5507
+ setloading(true);
5508
+ _context7.next = 6;
5443
5509
  return controller.batchsend([data]);
5444
5510
 
5445
- case 4:
5511
+ case 6:
5446
5512
  res = _context7.sent;
5447
5513
 
5448
5514
  if (res.res) {
@@ -5456,14 +5522,16 @@ function Rule(props) {
5456
5522
  });
5457
5523
  }
5458
5524
 
5459
- case 6:
5525
+ setloading(false);
5526
+
5527
+ case 9:
5460
5528
  case "end":
5461
5529
  return _context7.stop();
5462
5530
  }
5463
5531
  }
5464
5532
  }, _callee7);
5465
5533
  }))();
5466
- }, [targetId, record]);
5534
+ }, [targetId, record, sendloading]);
5467
5535
  var targetSelect = useCallback(function (e) {
5468
5536
  setTarget(e.target.value);
5469
5537
  }, []);
@@ -6748,9 +6816,13 @@ function Rule$1(props) {
6748
6816
  return [{
6749
6817
  title: 'DID',
6750
6818
  dataIndex: 'customerDid',
6819
+ width: 200,
6820
+ ellipsis: true,
6751
6821
  render: function render(text, record) {
6752
6822
  if (text) {
6753
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.customerDidNote), text);
6823
+ return /*#__PURE__*/React.createElement("span", {
6824
+ title: record.customerDidNote + ' ' + text
6825
+ }, record.customerDidNote, " ", text);
6754
6826
  } else {
6755
6827
  return '';
6756
6828
  }
@@ -6758,11 +6830,13 @@ function Rule$1(props) {
6758
6830
  }, {
6759
6831
  title: '所属公司',
6760
6832
  dataIndex: 'customerName',
6761
- width: 200
6833
+ width: 200,
6834
+ ellipsis: true
6762
6835
  }, {
6763
6836
  title: '数据状态',
6764
6837
  dataIndex: 'dataStatus',
6765
6838
  width: 100,
6839
+ ellipsis: true,
6766
6840
  render: function render(text) {
6767
6841
  if (text === 2) {
6768
6842
  return /*#__PURE__*/React.createElement("span", null, "\u505C\u7528");
@@ -6779,9 +6853,13 @@ function Rule$1(props) {
6779
6853
  }, {
6780
6854
  title: '我司对应DID',
6781
6855
  dataIndex: 'companyDid',
6856
+ width: 200,
6857
+ ellipsis: true,
6782
6858
  render: function render(text, record) {
6783
6859
  if (text) {
6784
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.companyDidNote), text);
6860
+ return /*#__PURE__*/React.createElement("span", {
6861
+ title: record.companyDidNote + '' + text
6862
+ }, record.companyDidNote, " ", text);
6785
6863
  } else {
6786
6864
  return '';
6787
6865
  }
@@ -6790,6 +6868,7 @@ function Rule$1(props) {
6790
6868
  title: '加入时间',
6791
6869
  dataIndex: 'createTime',
6792
6870
  width: 200,
6871
+ ellipsis: true,
6793
6872
  render: function render(text) {
6794
6873
  return moment(text).format('YYYY-MM-DD HH:mm');
6795
6874
  }
@@ -6874,6 +6953,10 @@ function Rule$1(props) {
6874
6953
  }
6875
6954
  }, /*#__PURE__*/React.createElement(Table$1, {
6876
6955
  rowSelection: rowSelection,
6956
+ scroll: {
6957
+ x: '1400',
6958
+ y: 'max-content'
6959
+ },
6877
6960
  columns: columns,
6878
6961
  rowKey: "index",
6879
6962
  dataSource: list,
@@ -7219,9 +7302,13 @@ function Rule$2(props) {
7219
7302
  return [{
7220
7303
  title: 'DID',
7221
7304
  dataIndex: 'customerDid',
7305
+ width: 200,
7306
+ ellipsis: true,
7222
7307
  render: function render(text, record) {
7223
7308
  if (text) {
7224
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.customerDidNote), text);
7309
+ return /*#__PURE__*/React.createElement("span", {
7310
+ title: record.customerDidNote + '' + text
7311
+ }, record.customerDidNote, text);
7225
7312
  } else {
7226
7313
  return '';
7227
7314
  }
@@ -7229,6 +7316,7 @@ function Rule$2(props) {
7229
7316
  }, {
7230
7317
  title: '所属公司',
7231
7318
  width: 200,
7319
+ ellipsis: true,
7232
7320
  dataIndex: 'customerName'
7233
7321
  }, {
7234
7322
  title: '数据状态',
@@ -7249,10 +7337,14 @@ function Rule$2(props) {
7249
7337
  }
7250
7338
  }, {
7251
7339
  title: '我司对应DID',
7340
+ width: 200,
7341
+ ellipsis: true,
7252
7342
  dataIndex: 'companyDid',
7253
7343
  render: function render(text, record) {
7254
7344
  if (text) {
7255
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.companyDidNote), text);
7345
+ return /*#__PURE__*/React.createElement("span", {
7346
+ title: record.companyDidNote + '' + text
7347
+ }, record.companyDidNote, " ", text);
7256
7348
  } else {
7257
7349
  return '';
7258
7350
  }
@@ -7260,6 +7352,7 @@ function Rule$2(props) {
7260
7352
  }, {
7261
7353
  title: '加入时间',
7262
7354
  dataIndex: 'createTime',
7355
+ ellipsis: true,
7263
7356
  width: 200,
7264
7357
  render: function render(text) {
7265
7358
  return moment(text).format('YYYY-MM-DD HH:mm');
@@ -7344,6 +7437,10 @@ function Rule$2(props) {
7344
7437
  backgroundColor: '#efefef'
7345
7438
  }
7346
7439
  }, /*#__PURE__*/React.createElement(Table$1, {
7440
+ scroll: {
7441
+ x: '1400',
7442
+ y: 'max-content'
7443
+ },
7347
7444
  rowSelection: rowSelection,
7348
7445
  columns: columns,
7349
7446
  rowKey: "index",