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 +135 -38
- package/dist/index.js +135 -38
- package/package.json +2 -2
- package/src/DocumentWhiteList/ui/main/black.tsx +10 -3
- package/src/DocumentWhiteList/ui/main/white.tsx +14 -6
- package/src/DocumentsCont/index.tsx +2 -5
- package/src/DocumentsList/index.less +0 -23
- package/src/DocumentsList/ui/ModalComfirm/index.tsx +14 -10
- package/src/DocumentsList/ui/PageHeader/index.tsx +2 -2
- package/src/DocumentsList/ui/RuleTable/index.tsx +16 -3
- package/src/DocumentsList/ui/sendlist/index.tsx +21 -3
- package/src/DocumentsRule/ui/main/index.tsx +13 -8
package/dist/index.js
CHANGED
|
@@ -3062,10 +3062,15 @@ function modalcomfirm(props) {
|
|
|
3062
3062
|
return s.targetId;
|
|
3063
3063
|
}, []);
|
|
3064
3064
|
|
|
3065
|
-
var _useState = React.useState(
|
|
3065
|
+
var _useState = React.useState(false),
|
|
3066
3066
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3067
|
-
|
|
3068
|
-
|
|
3067
|
+
loading = _useState2[0],
|
|
3068
|
+
setloading = _useState2[1];
|
|
3069
|
+
|
|
3070
|
+
var _useState3 = React.useState([]),
|
|
3071
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3072
|
+
targetList = _useState4[0],
|
|
3073
|
+
setTargetList = _useState4[1];
|
|
3069
3074
|
|
|
3070
3075
|
React.useEffect(function () {
|
|
3071
3076
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -3103,9 +3108,8 @@ function modalcomfirm(props) {
|
|
|
3103
3108
|
}, []);
|
|
3104
3109
|
var handleOk = React.useCallback(function () {
|
|
3105
3110
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
3106
|
-
var _DocumentsService$ins2;
|
|
3111
|
+
var note, data, _DocumentsService$ins2, res;
|
|
3107
3112
|
|
|
3108
|
-
var note, data, res;
|
|
3109
3113
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
3110
3114
|
while (1) {
|
|
3111
3115
|
switch (_context2.prev = _context2.next) {
|
|
@@ -3121,14 +3125,21 @@ function modalcomfirm(props) {
|
|
|
3121
3125
|
senderParticipantNote: note && note.remarkName
|
|
3122
3126
|
});
|
|
3123
3127
|
});
|
|
3124
|
-
|
|
3128
|
+
|
|
3129
|
+
if (loading) {
|
|
3130
|
+
_context2.next = 9;
|
|
3131
|
+
break;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
setloading(true);
|
|
3135
|
+
_context2.next = 6;
|
|
3125
3136
|
return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
|
|
3126
3137
|
url: '/schema/config/batchSend',
|
|
3127
3138
|
data: data,
|
|
3128
3139
|
type: 'post'
|
|
3129
3140
|
});
|
|
3130
3141
|
|
|
3131
|
-
case
|
|
3142
|
+
case 6:
|
|
3132
3143
|
res = _context2.sent;
|
|
3133
3144
|
|
|
3134
3145
|
if (res.res) {
|
|
@@ -3137,14 +3148,16 @@ function modalcomfirm(props) {
|
|
|
3137
3148
|
props.handleCancel();
|
|
3138
3149
|
}
|
|
3139
3150
|
|
|
3140
|
-
|
|
3151
|
+
setloading(false);
|
|
3152
|
+
|
|
3153
|
+
case 9:
|
|
3141
3154
|
case "end":
|
|
3142
3155
|
return _context2.stop();
|
|
3143
3156
|
}
|
|
3144
3157
|
}
|
|
3145
3158
|
}, _callee2);
|
|
3146
3159
|
}))();
|
|
3147
|
-
}, [targetId, targetList]);
|
|
3160
|
+
}, [targetId, targetList, loading]);
|
|
3148
3161
|
var gotoSendlist = React.useCallback(function () {
|
|
3149
3162
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3150
3163
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
@@ -3211,12 +3224,10 @@ function modalcomfirm(props) {
|
|
|
3211
3224
|
};
|
|
3212
3225
|
}, []);
|
|
3213
3226
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ktsXui.Modal, {
|
|
3214
|
-
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\
|
|
3227
|
+
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94DID",
|
|
3215
3228
|
visible: true,
|
|
3216
3229
|
onOk: handleOk,
|
|
3217
|
-
onCancel: handleCancel
|
|
3218
|
-
okText: "\u786E\u5B9A",
|
|
3219
|
-
cancelText: "\u53D6\u6D88"
|
|
3230
|
+
onCancel: handleCancel
|
|
3220
3231
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Radio.Group, {
|
|
3221
3232
|
onChange: targetSelect,
|
|
3222
3233
|
value: targetId
|
|
@@ -3618,9 +3629,15 @@ var PageHeader = (function () {
|
|
|
3618
3629
|
value: type,
|
|
3619
3630
|
onChange: switchType
|
|
3620
3631
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3621
|
-
value: 1
|
|
3632
|
+
value: 1,
|
|
3633
|
+
style: {
|
|
3634
|
+
whiteSpace: 'nowrap'
|
|
3635
|
+
}
|
|
3622
3636
|
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3623
|
-
value: 2
|
|
3637
|
+
value: 2,
|
|
3638
|
+
style: {
|
|
3639
|
+
whiteSpace: 'nowrap'
|
|
3640
|
+
}
|
|
3624
3641
|
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React__default['default'].createElement(ktsComponents.AdvancedSearch, {
|
|
3625
3642
|
width: 480,
|
|
3626
3643
|
height: 44,
|
|
@@ -3721,7 +3738,7 @@ var PageHeader = (function () {
|
|
|
3721
3738
|
}));
|
|
3722
3739
|
});
|
|
3723
3740
|
|
|
3724
|
-
var css_248z$3 = "
|
|
3741
|
+
var css_248z$3 = "";
|
|
3725
3742
|
styleInject(css_248z$3);
|
|
3726
3743
|
|
|
3727
3744
|
var attributionEnum = {
|
|
@@ -3921,15 +3938,19 @@ function validaterule(props) {
|
|
|
3921
3938
|
|
|
3922
3939
|
var columns = [{
|
|
3923
3940
|
title: '配置名称',
|
|
3924
|
-
dataIndex: 'configName'
|
|
3941
|
+
dataIndex: 'configName',
|
|
3942
|
+
width: 160,
|
|
3943
|
+
ellipsis: true
|
|
3925
3944
|
}, {
|
|
3926
3945
|
title: '单据大类',
|
|
3927
3946
|
dataIndex: 'type',
|
|
3947
|
+
width: 120,
|
|
3928
3948
|
render: function render(text) {
|
|
3929
3949
|
return bill[text];
|
|
3930
3950
|
}
|
|
3931
3951
|
}, {
|
|
3932
3952
|
title: '单据子类',
|
|
3953
|
+
width: 120,
|
|
3933
3954
|
dataIndex: 'profile',
|
|
3934
3955
|
render: function render(text, record) {
|
|
3935
3956
|
if (text) {
|
|
@@ -3945,24 +3966,31 @@ function validaterule(props) {
|
|
|
3945
3966
|
}, {
|
|
3946
3967
|
title: '收发角色',
|
|
3947
3968
|
dataIndex: 'attribution',
|
|
3969
|
+
width: 120,
|
|
3948
3970
|
render: function render(text) {
|
|
3949
3971
|
return attributionEnum[text];
|
|
3950
3972
|
}
|
|
3951
3973
|
}, {
|
|
3952
3974
|
title: '创建时间',
|
|
3953
3975
|
dataIndex: 'createAt',
|
|
3976
|
+
ellipsis: true,
|
|
3977
|
+
width: 160,
|
|
3954
3978
|
render: function render(text) {
|
|
3955
3979
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
3956
3980
|
}
|
|
3957
3981
|
}, {
|
|
3958
3982
|
title: '更新时间',
|
|
3959
3983
|
dataIndex: 'updateAt',
|
|
3984
|
+
ellipsis: true,
|
|
3985
|
+
width: 160,
|
|
3960
3986
|
render: function render(text) {
|
|
3961
3987
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
3962
3988
|
}
|
|
3963
3989
|
}, {
|
|
3964
3990
|
title: '操作',
|
|
3991
|
+
width: 170,
|
|
3965
3992
|
dataIndex: 'console',
|
|
3993
|
+
fixed: 'right',
|
|
3966
3994
|
render: function render(text, record) {
|
|
3967
3995
|
return /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
3968
3996
|
className: "tabel-action",
|
|
@@ -4078,13 +4106,20 @@ function validaterule(props) {
|
|
|
4078
4106
|
};
|
|
4079
4107
|
}())();
|
|
4080
4108
|
}, []);
|
|
4081
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(
|
|
4109
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4110
|
+
style: {
|
|
4111
|
+
flex: 'none',
|
|
4112
|
+
position: 'relative',
|
|
4113
|
+
zIndex: 1
|
|
4114
|
+
}
|
|
4115
|
+
}, /*#__PURE__*/React__default['default'].createElement(PageHeader, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.AutoTableContainer, {
|
|
4082
4116
|
style: {
|
|
4083
4117
|
flex: 1,
|
|
4084
4118
|
padding: '0 20px',
|
|
4085
|
-
|
|
4119
|
+
background: '#F4F4F4'
|
|
4086
4120
|
}
|
|
4087
4121
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
4122
|
+
className: 'fixheight',
|
|
4088
4123
|
columns: columns,
|
|
4089
4124
|
rowKey: "configNumber",
|
|
4090
4125
|
rowSelection: rowSelection,
|
|
@@ -4325,10 +4360,14 @@ function validaterule$1(props) {
|
|
|
4325
4360
|
var columns = React.useMemo(function () {
|
|
4326
4361
|
return [{
|
|
4327
4362
|
title: '配置名称',
|
|
4328
|
-
dataIndex: 'configName'
|
|
4363
|
+
dataIndex: 'configName',
|
|
4364
|
+
ellipsis: true,
|
|
4365
|
+
width: 160
|
|
4329
4366
|
}, {
|
|
4330
4367
|
title: '使用标识',
|
|
4331
4368
|
dataIndex: 'effectStatus',
|
|
4369
|
+
width: 120,
|
|
4370
|
+
ellipsis: true,
|
|
4332
4371
|
render: function render(text) {
|
|
4333
4372
|
if (text === 0) {
|
|
4334
4373
|
return /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u5931\u6548");
|
|
@@ -4344,12 +4383,14 @@ function validaterule$1(props) {
|
|
|
4344
4383
|
}
|
|
4345
4384
|
}, {
|
|
4346
4385
|
title: '单据类型',
|
|
4386
|
+
width: 120,
|
|
4347
4387
|
dataIndex: 'type',
|
|
4348
4388
|
render: function render(text) {
|
|
4349
4389
|
return bill[text];
|
|
4350
4390
|
}
|
|
4351
4391
|
}, {
|
|
4352
4392
|
title: '单据子类',
|
|
4393
|
+
width: 120,
|
|
4353
4394
|
dataIndex: 'profile',
|
|
4354
4395
|
render: function render(text, record) {
|
|
4355
4396
|
if (text) {
|
|
@@ -4365,28 +4406,40 @@ function validaterule$1(props) {
|
|
|
4365
4406
|
}, {
|
|
4366
4407
|
title: '我的收发角色',
|
|
4367
4408
|
dataIndex: 'attribution',
|
|
4409
|
+
width: 160,
|
|
4410
|
+
ellipsis: true,
|
|
4368
4411
|
render: function render(text) {
|
|
4369
4412
|
return attributionEnum[text];
|
|
4370
4413
|
}
|
|
4371
4414
|
}, {
|
|
4372
4415
|
title: '我司对应DID',
|
|
4373
4416
|
dataIndex: 'senderParticipantId',
|
|
4417
|
+
ellipsis: true,
|
|
4418
|
+
width: 200,
|
|
4374
4419
|
render: function render(text, record) {
|
|
4375
4420
|
if (record.senderParticipantNote) {
|
|
4376
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
4421
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
4422
|
+
title: record.senderParticipantNote + '' + text
|
|
4423
|
+
}, record.senderParticipantNote, text);
|
|
4377
4424
|
} else {
|
|
4378
4425
|
return /*#__PURE__*/React__default['default'].createElement("span", null, text);
|
|
4379
4426
|
}
|
|
4380
4427
|
}
|
|
4381
4428
|
}, {
|
|
4382
4429
|
title: '接受对象',
|
|
4430
|
+
width: 120,
|
|
4431
|
+
ellipsis: true,
|
|
4383
4432
|
dataIndex: 'receiverParticipantId'
|
|
4384
4433
|
}, {
|
|
4385
4434
|
title: '接受对象所属公司',
|
|
4435
|
+
width: 160,
|
|
4436
|
+
ellipsis: true,
|
|
4386
4437
|
dataIndex: 'receiverCompany'
|
|
4387
4438
|
}, {
|
|
4388
4439
|
title: '发布时间',
|
|
4389
4440
|
dataIndex: 'createAt',
|
|
4441
|
+
width: 160,
|
|
4442
|
+
ellipsis: true,
|
|
4390
4443
|
render: function render(text) {
|
|
4391
4444
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
4392
4445
|
}
|
|
@@ -4402,6 +4455,8 @@ function validaterule$1(props) {
|
|
|
4402
4455
|
{
|
|
4403
4456
|
title: '操作',
|
|
4404
4457
|
dataIndex: 'console',
|
|
4458
|
+
width: 80,
|
|
4459
|
+
fixed: 'right',
|
|
4405
4460
|
render: function render(text, record) {
|
|
4406
4461
|
return /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
4407
4462
|
className: "tabel-action",
|
|
@@ -4419,6 +4474,7 @@ function validaterule$1(props) {
|
|
|
4419
4474
|
backgroundColor: '#efefef'
|
|
4420
4475
|
}
|
|
4421
4476
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
4477
|
+
className: 'fixheight',
|
|
4422
4478
|
columns: columns,
|
|
4423
4479
|
rowKey: "id",
|
|
4424
4480
|
dataSource: list,
|
|
@@ -4570,9 +4626,7 @@ var DocumentsCont = /*#__PURE__*/function (_React$Component) {
|
|
|
4570
4626
|
}(React__default['default'].Component);
|
|
4571
4627
|
|
|
4572
4628
|
var Main$2 = function Main(props) {
|
|
4573
|
-
var initRoute = props.path || '/
|
|
4574
|
-
// console.log(uploadConfig);
|
|
4575
|
-
|
|
4629
|
+
var initRoute = props.path || '/rulelist';
|
|
4576
4630
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.ConfigProvider, {
|
|
4577
4631
|
locale: zhCN__default['default']
|
|
4578
4632
|
}, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.MemoryRouter, null, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.Route, {
|
|
@@ -5090,14 +5144,19 @@ function Rule(props) {
|
|
|
5090
5144
|
|
|
5091
5145
|
var _controller$useRuning = controller.useRuning(controller.configupdate, controller.configsave),
|
|
5092
5146
|
_controller$useRuning2 = _slicedToArray(_controller$useRuning, 1),
|
|
5093
|
-
loading = _controller$useRuning2[0];
|
|
5094
|
-
// const [first, setFirst] = useState(true);
|
|
5095
|
-
|
|
5147
|
+
loading = _controller$useRuning2[0];
|
|
5096
5148
|
|
|
5097
5149
|
var _useState15 = React.useState(false),
|
|
5098
5150
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5099
|
-
|
|
5100
|
-
|
|
5151
|
+
sendloading = _useState16[0],
|
|
5152
|
+
setloading = _useState16[1]; // const [status, setStatus] = useState(0);
|
|
5153
|
+
// const [first, setFirst] = useState(true);
|
|
5154
|
+
|
|
5155
|
+
|
|
5156
|
+
var _useState17 = React.useState(false),
|
|
5157
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
5158
|
+
hasChange = _useState18[0],
|
|
5159
|
+
setChange = _useState18[1];
|
|
5101
5160
|
|
|
5102
5161
|
var history = reactRouterDom.useHistory();
|
|
5103
5162
|
var search = history.location.search && qs__default['default'].parse(history.location.search);
|
|
@@ -5453,10 +5512,17 @@ function Rule(props) {
|
|
|
5453
5512
|
sendPublic: true,
|
|
5454
5513
|
senderParticipantNote: note && note.remarkName
|
|
5455
5514
|
});
|
|
5456
|
-
|
|
5515
|
+
|
|
5516
|
+
if (sendloading) {
|
|
5517
|
+
_context7.next = 9;
|
|
5518
|
+
break;
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5521
|
+
setloading(true);
|
|
5522
|
+
_context7.next = 6;
|
|
5457
5523
|
return controller.batchsend([data]);
|
|
5458
5524
|
|
|
5459
|
-
case
|
|
5525
|
+
case 6:
|
|
5460
5526
|
res = _context7.sent;
|
|
5461
5527
|
|
|
5462
5528
|
if (res.res) {
|
|
@@ -5470,14 +5536,16 @@ function Rule(props) {
|
|
|
5470
5536
|
});
|
|
5471
5537
|
}
|
|
5472
5538
|
|
|
5473
|
-
|
|
5539
|
+
setloading(false);
|
|
5540
|
+
|
|
5541
|
+
case 9:
|
|
5474
5542
|
case "end":
|
|
5475
5543
|
return _context7.stop();
|
|
5476
5544
|
}
|
|
5477
5545
|
}
|
|
5478
5546
|
}, _callee7);
|
|
5479
5547
|
}))();
|
|
5480
|
-
}, [targetId, record]);
|
|
5548
|
+
}, [targetId, record, sendloading]);
|
|
5481
5549
|
var targetSelect = React.useCallback(function (e) {
|
|
5482
5550
|
setTarget(e.target.value);
|
|
5483
5551
|
}, []);
|
|
@@ -6762,9 +6830,13 @@ function Rule$1(props) {
|
|
|
6762
6830
|
return [{
|
|
6763
6831
|
title: 'DID',
|
|
6764
6832
|
dataIndex: 'customerDid',
|
|
6833
|
+
width: 200,
|
|
6834
|
+
ellipsis: true,
|
|
6765
6835
|
render: function render(text, record) {
|
|
6766
6836
|
if (text) {
|
|
6767
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
6837
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6838
|
+
title: record.customerDidNote + ' ' + text
|
|
6839
|
+
}, record.customerDidNote, " ", text);
|
|
6768
6840
|
} else {
|
|
6769
6841
|
return '';
|
|
6770
6842
|
}
|
|
@@ -6772,11 +6844,13 @@ function Rule$1(props) {
|
|
|
6772
6844
|
}, {
|
|
6773
6845
|
title: '所属公司',
|
|
6774
6846
|
dataIndex: 'customerName',
|
|
6775
|
-
width: 200
|
|
6847
|
+
width: 200,
|
|
6848
|
+
ellipsis: true
|
|
6776
6849
|
}, {
|
|
6777
6850
|
title: '数据状态',
|
|
6778
6851
|
dataIndex: 'dataStatus',
|
|
6779
6852
|
width: 100,
|
|
6853
|
+
ellipsis: true,
|
|
6780
6854
|
render: function render(text) {
|
|
6781
6855
|
if (text === 2) {
|
|
6782
6856
|
return /*#__PURE__*/React__default['default'].createElement("span", null, "\u505C\u7528");
|
|
@@ -6793,9 +6867,13 @@ function Rule$1(props) {
|
|
|
6793
6867
|
}, {
|
|
6794
6868
|
title: '我司对应DID',
|
|
6795
6869
|
dataIndex: 'companyDid',
|
|
6870
|
+
width: 200,
|
|
6871
|
+
ellipsis: true,
|
|
6796
6872
|
render: function render(text, record) {
|
|
6797
6873
|
if (text) {
|
|
6798
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
6874
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6875
|
+
title: record.companyDidNote + '' + text
|
|
6876
|
+
}, record.companyDidNote, " ", text);
|
|
6799
6877
|
} else {
|
|
6800
6878
|
return '';
|
|
6801
6879
|
}
|
|
@@ -6804,6 +6882,7 @@ function Rule$1(props) {
|
|
|
6804
6882
|
title: '加入时间',
|
|
6805
6883
|
dataIndex: 'createTime',
|
|
6806
6884
|
width: 200,
|
|
6885
|
+
ellipsis: true,
|
|
6807
6886
|
render: function render(text) {
|
|
6808
6887
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
6809
6888
|
}
|
|
@@ -6888,6 +6967,10 @@ function Rule$1(props) {
|
|
|
6888
6967
|
}
|
|
6889
6968
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
6890
6969
|
rowSelection: rowSelection,
|
|
6970
|
+
scroll: {
|
|
6971
|
+
x: '1400',
|
|
6972
|
+
y: 'max-content'
|
|
6973
|
+
},
|
|
6891
6974
|
columns: columns,
|
|
6892
6975
|
rowKey: "index",
|
|
6893
6976
|
dataSource: list,
|
|
@@ -7233,9 +7316,13 @@ function Rule$2(props) {
|
|
|
7233
7316
|
return [{
|
|
7234
7317
|
title: 'DID',
|
|
7235
7318
|
dataIndex: 'customerDid',
|
|
7319
|
+
width: 200,
|
|
7320
|
+
ellipsis: true,
|
|
7236
7321
|
render: function render(text, record) {
|
|
7237
7322
|
if (text) {
|
|
7238
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
7323
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7324
|
+
title: record.customerDidNote + '' + text
|
|
7325
|
+
}, record.customerDidNote, text);
|
|
7239
7326
|
} else {
|
|
7240
7327
|
return '';
|
|
7241
7328
|
}
|
|
@@ -7243,6 +7330,7 @@ function Rule$2(props) {
|
|
|
7243
7330
|
}, {
|
|
7244
7331
|
title: '所属公司',
|
|
7245
7332
|
width: 200,
|
|
7333
|
+
ellipsis: true,
|
|
7246
7334
|
dataIndex: 'customerName'
|
|
7247
7335
|
}, {
|
|
7248
7336
|
title: '数据状态',
|
|
@@ -7263,10 +7351,14 @@ function Rule$2(props) {
|
|
|
7263
7351
|
}
|
|
7264
7352
|
}, {
|
|
7265
7353
|
title: '我司对应DID',
|
|
7354
|
+
width: 200,
|
|
7355
|
+
ellipsis: true,
|
|
7266
7356
|
dataIndex: 'companyDid',
|
|
7267
7357
|
render: function render(text, record) {
|
|
7268
7358
|
if (text) {
|
|
7269
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
7359
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7360
|
+
title: record.companyDidNote + '' + text
|
|
7361
|
+
}, record.companyDidNote, " ", text);
|
|
7270
7362
|
} else {
|
|
7271
7363
|
return '';
|
|
7272
7364
|
}
|
|
@@ -7274,6 +7366,7 @@ function Rule$2(props) {
|
|
|
7274
7366
|
}, {
|
|
7275
7367
|
title: '加入时间',
|
|
7276
7368
|
dataIndex: 'createTime',
|
|
7369
|
+
ellipsis: true,
|
|
7277
7370
|
width: 200,
|
|
7278
7371
|
render: function render(text) {
|
|
7279
7372
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
@@ -7358,6 +7451,10 @@ function Rule$2(props) {
|
|
|
7358
7451
|
backgroundColor: '#efefef'
|
|
7359
7452
|
}
|
|
7360
7453
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
7454
|
+
scroll: {
|
|
7455
|
+
x: '1400',
|
|
7456
|
+
y: 'max-content'
|
|
7457
|
+
},
|
|
7361
7458
|
rowSelection: rowSelection,
|
|
7362
7459
|
columns: columns,
|
|
7363
7460
|
rowKey: "index",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kts-components-document-access-point",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "dumi dev",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"kts-component-service": "^1.0.4",
|
|
36
36
|
"kts-components": "^1.2.26",
|
|
37
37
|
"kts-components-antd-x4": "^4.0.3",
|
|
38
|
-
"kts-xui": "1.0.
|
|
38
|
+
"kts-xui": "^1.0.31",
|
|
39
39
|
"lodash": "^4.17.21",
|
|
40
40
|
"moment": "2.29.1",
|
|
41
41
|
"query-string": "^7.0.1",
|
|
@@ -31,9 +31,11 @@ export default function Rule(props: any) {
|
|
|
31
31
|
{
|
|
32
32
|
title: 'DID',
|
|
33
33
|
dataIndex: 'customerDid',
|
|
34
|
+
width: 200,
|
|
35
|
+
ellipsis: true,
|
|
34
36
|
render: (text: any, record: any) => {
|
|
35
37
|
if (text) {
|
|
36
|
-
return <
|
|
38
|
+
return <span title={record.customerDidNote+''+text}>{record.customerDidNote}{text}</span>
|
|
37
39
|
} else {
|
|
38
40
|
return ''
|
|
39
41
|
}
|
|
@@ -42,12 +44,14 @@ export default function Rule(props: any) {
|
|
|
42
44
|
{
|
|
43
45
|
title: '所属公司',
|
|
44
46
|
width: 200,
|
|
47
|
+
ellipsis: true,
|
|
45
48
|
dataIndex: 'customerName',
|
|
46
49
|
},
|
|
47
50
|
{
|
|
48
51
|
title: '数据状态',
|
|
49
52
|
dataIndex: 'dataStatus',
|
|
50
53
|
width: 100,
|
|
54
|
+
|
|
51
55
|
render: (text: any) => {
|
|
52
56
|
if (text === 2) {
|
|
53
57
|
return <span>停用</span>
|
|
@@ -59,10 +63,12 @@ export default function Rule(props: any) {
|
|
|
59
63
|
},
|
|
60
64
|
{
|
|
61
65
|
title: '我司对应DID',
|
|
66
|
+
width: 200,
|
|
67
|
+
ellipsis: true,
|
|
62
68
|
dataIndex: 'companyDid',
|
|
63
69
|
render: (text: any, record: any) => {
|
|
64
70
|
if (text) {
|
|
65
|
-
return <
|
|
71
|
+
return <span title={record.companyDidNote+''+text}>{record.companyDidNote} {text}</span>
|
|
66
72
|
} else {
|
|
67
73
|
return ''
|
|
68
74
|
}
|
|
@@ -71,6 +77,7 @@ export default function Rule(props: any) {
|
|
|
71
77
|
{
|
|
72
78
|
title: '加入时间',
|
|
73
79
|
dataIndex: 'createTime',
|
|
80
|
+
ellipsis: true,
|
|
74
81
|
width: 200,
|
|
75
82
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
76
83
|
},
|
|
@@ -120,7 +127,7 @@ export default function Rule(props: any) {
|
|
|
120
127
|
<>
|
|
121
128
|
<Header />
|
|
122
129
|
<AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
|
|
123
|
-
<Table rowSelection={rowSelection} columns={columns} rowKey="index" dataSource={list} pagination={false} />
|
|
130
|
+
<Table scroll={{ x: '1400', y: 'max-content' }} rowSelection={rowSelection} columns={columns} rowKey="index" dataSource={list} pagination={false} />
|
|
124
131
|
</AutoTableContainer>
|
|
125
132
|
{pageMeta && <Pagination onChange={onPageChange} style={{ padding: '16px 0', flex: 'none', background: 'white', textAlign: 'center' }} total={pageMeta.total} pageSize={pageMeta.pageSize} current={pageMeta.pageNum} showSizeChanger={true} />}
|
|
126
133
|
</>);
|
|
@@ -14,7 +14,7 @@ export default function Rule(props: any) {
|
|
|
14
14
|
})()
|
|
15
15
|
}, []);
|
|
16
16
|
const onEnablehander = useCallback((type: number, record: any) => {
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
(async () => {
|
|
19
19
|
const res = await controller.enablewhitelist({
|
|
20
20
|
flag: type,
|
|
@@ -29,9 +29,11 @@ export default function Rule(props: any) {
|
|
|
29
29
|
{
|
|
30
30
|
title: 'DID',
|
|
31
31
|
dataIndex: 'customerDid',
|
|
32
|
+
width: 200,
|
|
33
|
+
ellipsis: true,
|
|
32
34
|
render: (text: any, record: any) => {
|
|
33
35
|
if (text) {
|
|
34
|
-
return <
|
|
36
|
+
return <span title={record.customerDidNote + ' ' + text}>{record.customerDidNote} {text}</span>
|
|
35
37
|
} else {
|
|
36
38
|
return ''
|
|
37
39
|
}
|
|
@@ -40,12 +42,15 @@ export default function Rule(props: any) {
|
|
|
40
42
|
{
|
|
41
43
|
title: '所属公司',
|
|
42
44
|
dataIndex: 'customerName',
|
|
43
|
-
width: 200
|
|
45
|
+
width: 200,
|
|
46
|
+
ellipsis: true,
|
|
47
|
+
|
|
44
48
|
},
|
|
45
49
|
{
|
|
46
50
|
title: '数据状态',
|
|
47
51
|
dataIndex: 'dataStatus',
|
|
48
52
|
width: 100,
|
|
53
|
+
ellipsis: true,
|
|
49
54
|
render: (text: any) => {
|
|
50
55
|
if (text === 2) {
|
|
51
56
|
return <span>停用</span>
|
|
@@ -58,9 +63,11 @@ export default function Rule(props: any) {
|
|
|
58
63
|
{
|
|
59
64
|
title: '我司对应DID',
|
|
60
65
|
dataIndex: 'companyDid',
|
|
66
|
+
width: 200,
|
|
67
|
+
ellipsis: true,
|
|
61
68
|
render: (text: any, record: any) => {
|
|
62
69
|
if (text) {
|
|
63
|
-
return <
|
|
70
|
+
return <span title={record.companyDidNote + '' + text}>{record.companyDidNote} {text}</span>
|
|
64
71
|
} else {
|
|
65
72
|
return ''
|
|
66
73
|
}
|
|
@@ -70,6 +77,7 @@ export default function Rule(props: any) {
|
|
|
70
77
|
title: '加入时间',
|
|
71
78
|
dataIndex: 'createTime',
|
|
72
79
|
width: 200,
|
|
80
|
+
ellipsis: true,
|
|
73
81
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
74
82
|
},
|
|
75
83
|
{
|
|
@@ -96,7 +104,7 @@ export default function Rule(props: any) {
|
|
|
96
104
|
}
|
|
97
105
|
})()
|
|
98
106
|
}, [whiteParams]);
|
|
99
|
-
|
|
107
|
+
|
|
100
108
|
useEffect(() => {
|
|
101
109
|
refreshList();
|
|
102
110
|
}, [whiteParams]);
|
|
@@ -113,7 +121,7 @@ export default function Rule(props: any) {
|
|
|
113
121
|
<>
|
|
114
122
|
<Header />
|
|
115
123
|
<AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
|
|
116
|
-
<Table rowSelection={rowSelection} columns={columns} rowKey="index" dataSource={list} pagination={false} />
|
|
124
|
+
<Table rowSelection={rowSelection} scroll={{ x: '1400', y: 'max-content' }} columns={columns} rowKey="index" dataSource={list} pagination={false} />
|
|
117
125
|
</AutoTableContainer>
|
|
118
126
|
{pageMeta && <Pagination onChange={onPageChange} style={{ padding: '16px 0', flex: 'none', background: 'white', textAlign: 'center' }} total={pageMeta.total} pageSize={pageMeta.pageSize} current={pageMeta.pageNum} showSizeChanger={true} />}
|
|
119
127
|
</>);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// import { Tabs } from 'kts-components-antd-x4';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { MemoryRouter, Switch, Route, Redirect } from 'react-router-dom';
|
|
4
|
-
import { DocumentsList, DocumentsRule, DocumentWhiteList
|
|
4
|
+
import { DocumentsList, DocumentsRule, DocumentWhiteList } from '../';
|
|
5
5
|
import { ConfigProvider } from 'kts-components-antd-x4';
|
|
6
6
|
import zhCN from 'kts-components-antd-x4/lib/locale/zh_CN';
|
|
7
7
|
|
|
@@ -10,9 +10,7 @@ export default class DocumentsCont extends React.Component<any> {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const Main = (props: any) => {
|
|
13
|
-
const initRoute = props.path || '/
|
|
14
|
-
// const uploadConfig = { domain: (DocumentsService.instance.service as any).sdk.service.domain, token: (DocumentsService.instance.service as any).sdk.user.cToken };
|
|
15
|
-
// console.log(uploadConfig);
|
|
13
|
+
const initRoute = props.path || '/rulelist'
|
|
16
14
|
return (
|
|
17
15
|
<ConfigProvider locale={zhCN}>
|
|
18
16
|
<MemoryRouter>
|
|
@@ -21,7 +19,6 @@ const Main = (props: any) => {
|
|
|
21
19
|
<Route path="/rulelist" component={DocumentsList} />
|
|
22
20
|
<Route path="/billwhiteliest" component={DocumentWhiteList} />
|
|
23
21
|
<Route path="/rule/:id?/:type?/:profile?" component={DocumentsRule} />
|
|
24
|
-
|
|
25
22
|
<Route render={() => <Redirect to={initRoute} />} />
|
|
26
23
|
</Switch>
|
|
27
24
|
</MemoryRouter>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
.header{
|
|
2
|
-
padding:10px 0px;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
.buttonGroup{
|
|
6
|
-
margin-right: 20px;
|
|
7
|
-
white-space: nowrap;
|
|
8
|
-
}
|
|
9
|
-
.buttons{
|
|
10
|
-
text-align: right;
|
|
11
|
-
flex: 1;
|
|
12
|
-
white-space: nowrap;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
.tabel-action{
|
|
16
|
-
padding: 0 5px;
|
|
17
|
-
font-size: 12px;
|
|
18
|
-
font-family: PingFangSC-Regular,PingFang SC;
|
|
19
|
-
font-weight: 400;
|
|
20
|
-
color: #0074ff;
|
|
21
|
-
white-space: nowrap;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
}
|