kts-components-document-access-point 1.4.8 → 1.4.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 +90 -20
- package/dist/index.js +90 -20
- package/package.json +1 -1
- 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 +18 -0
- package/src/DocumentsList/ui/ModalComfirm/index.tsx +1 -3
- 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/dist/index.esm.js
CHANGED
|
@@ -3197,12 +3197,10 @@ function modalcomfirm(props) {
|
|
|
3197
3197
|
};
|
|
3198
3198
|
}, []);
|
|
3199
3199
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, {
|
|
3200
|
-
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\
|
|
3200
|
+
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94DID",
|
|
3201
3201
|
visible: true,
|
|
3202
3202
|
onOk: handleOk,
|
|
3203
|
-
onCancel: handleCancel
|
|
3204
|
-
okText: "\u786E\u5B9A",
|
|
3205
|
-
cancelText: "\u53D6\u6D88"
|
|
3203
|
+
onCancel: handleCancel
|
|
3206
3204
|
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
3207
3205
|
onChange: targetSelect,
|
|
3208
3206
|
value: targetId
|
|
@@ -3604,9 +3602,15 @@ var PageHeader = (function () {
|
|
|
3604
3602
|
value: type,
|
|
3605
3603
|
onChange: switchType
|
|
3606
3604
|
}, /*#__PURE__*/React.createElement(Radio$1.Button, {
|
|
3607
|
-
value: 1
|
|
3605
|
+
value: 1,
|
|
3606
|
+
style: {
|
|
3607
|
+
whiteSpace: 'nowrap'
|
|
3608
|
+
}
|
|
3608
3609
|
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$1.Button, {
|
|
3609
|
-
value: 2
|
|
3610
|
+
value: 2,
|
|
3611
|
+
style: {
|
|
3612
|
+
whiteSpace: 'nowrap'
|
|
3613
|
+
}
|
|
3610
3614
|
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React.createElement(AdvancedSearch, {
|
|
3611
3615
|
width: 480,
|
|
3612
3616
|
height: 44,
|
|
@@ -3707,7 +3711,7 @@ var PageHeader = (function () {
|
|
|
3707
3711
|
}));
|
|
3708
3712
|
});
|
|
3709
3713
|
|
|
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";
|
|
3714
|
+
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.ktsAntX-xui-page-header-foot {\n overflow: inherit !important;\n}\n.ktsAntX-table .ktsAntX-table-thead > tr > th {\n background: #fafafa !important;\n}\n.ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before {\n box-shadow: none !important;\n}\n.fixheight .ktsAntX-table .ktsAntX-table-thead > tr > th,\n.fixheight .ktsAntX-table .ktsAntX-table-tbody > tr > td,\n.fixheight .ktsAntX-table .ktsAntX-table tfoot > tr > th,\n.fixheight .ktsAntX-table .ktsAntX-table tfoot > tr > td {\n padding: 5px 16px;\n height: 50px;\n}\n.ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before {\n opacity: 0;\n}\n";
|
|
3711
3715
|
styleInject(css_248z$3);
|
|
3712
3716
|
|
|
3713
3717
|
var attributionEnum = {
|
|
@@ -3907,15 +3911,19 @@ function validaterule(props) {
|
|
|
3907
3911
|
|
|
3908
3912
|
var columns = [{
|
|
3909
3913
|
title: '配置名称',
|
|
3910
|
-
dataIndex: 'configName'
|
|
3914
|
+
dataIndex: 'configName',
|
|
3915
|
+
width: 160,
|
|
3916
|
+
ellipsis: true
|
|
3911
3917
|
}, {
|
|
3912
3918
|
title: '单据大类',
|
|
3913
3919
|
dataIndex: 'type',
|
|
3920
|
+
width: 120,
|
|
3914
3921
|
render: function render(text) {
|
|
3915
3922
|
return bill[text];
|
|
3916
3923
|
}
|
|
3917
3924
|
}, {
|
|
3918
3925
|
title: '单据子类',
|
|
3926
|
+
width: 120,
|
|
3919
3927
|
dataIndex: 'profile',
|
|
3920
3928
|
render: function render(text, record) {
|
|
3921
3929
|
if (text) {
|
|
@@ -3931,24 +3939,31 @@ function validaterule(props) {
|
|
|
3931
3939
|
}, {
|
|
3932
3940
|
title: '收发角色',
|
|
3933
3941
|
dataIndex: 'attribution',
|
|
3942
|
+
width: 120,
|
|
3934
3943
|
render: function render(text) {
|
|
3935
3944
|
return attributionEnum[text];
|
|
3936
3945
|
}
|
|
3937
3946
|
}, {
|
|
3938
3947
|
title: '创建时间',
|
|
3939
3948
|
dataIndex: 'createAt',
|
|
3949
|
+
ellipsis: true,
|
|
3950
|
+
width: 160,
|
|
3940
3951
|
render: function render(text) {
|
|
3941
3952
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
3942
3953
|
}
|
|
3943
3954
|
}, {
|
|
3944
3955
|
title: '更新时间',
|
|
3945
3956
|
dataIndex: 'updateAt',
|
|
3957
|
+
ellipsis: true,
|
|
3958
|
+
width: 160,
|
|
3946
3959
|
render: function render(text) {
|
|
3947
3960
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
3948
3961
|
}
|
|
3949
3962
|
}, {
|
|
3950
3963
|
title: '操作',
|
|
3964
|
+
width: 170,
|
|
3951
3965
|
dataIndex: 'console',
|
|
3966
|
+
fixed: 'right',
|
|
3952
3967
|
render: function render(text, record) {
|
|
3953
3968
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("a", {
|
|
3954
3969
|
className: "tabel-action",
|
|
@@ -4064,13 +4079,20 @@ function validaterule(props) {
|
|
|
4064
4079
|
};
|
|
4065
4080
|
}())();
|
|
4066
4081
|
}, []);
|
|
4067
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
4082
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
4083
|
+
style: {
|
|
4084
|
+
flex: 'none',
|
|
4085
|
+
position: 'relative',
|
|
4086
|
+
zIndex: 1
|
|
4087
|
+
}
|
|
4088
|
+
}, /*#__PURE__*/React.createElement(PageHeader, null)), /*#__PURE__*/React.createElement(AutoTableContainer, {
|
|
4068
4089
|
style: {
|
|
4069
4090
|
flex: 1,
|
|
4070
4091
|
padding: '0 20px',
|
|
4071
|
-
|
|
4092
|
+
background: '#F4F4F4'
|
|
4072
4093
|
}
|
|
4073
4094
|
}, /*#__PURE__*/React.createElement(Table$1, {
|
|
4095
|
+
className: 'fixheight',
|
|
4074
4096
|
columns: columns,
|
|
4075
4097
|
rowKey: "configNumber",
|
|
4076
4098
|
rowSelection: rowSelection,
|
|
@@ -4311,10 +4333,14 @@ function validaterule$1(props) {
|
|
|
4311
4333
|
var columns = useMemo(function () {
|
|
4312
4334
|
return [{
|
|
4313
4335
|
title: '配置名称',
|
|
4314
|
-
dataIndex: 'configName'
|
|
4336
|
+
dataIndex: 'configName',
|
|
4337
|
+
ellipsis: true,
|
|
4338
|
+
width: 160
|
|
4315
4339
|
}, {
|
|
4316
4340
|
title: '使用标识',
|
|
4317
4341
|
dataIndex: 'effectStatus',
|
|
4342
|
+
width: 120,
|
|
4343
|
+
ellipsis: true,
|
|
4318
4344
|
render: function render(text) {
|
|
4319
4345
|
if (text === 0) {
|
|
4320
4346
|
return /*#__PURE__*/React.createElement("span", null, "\u5DF2\u5931\u6548");
|
|
@@ -4330,12 +4356,14 @@ function validaterule$1(props) {
|
|
|
4330
4356
|
}
|
|
4331
4357
|
}, {
|
|
4332
4358
|
title: '单据类型',
|
|
4359
|
+
width: 120,
|
|
4333
4360
|
dataIndex: 'type',
|
|
4334
4361
|
render: function render(text) {
|
|
4335
4362
|
return bill[text];
|
|
4336
4363
|
}
|
|
4337
4364
|
}, {
|
|
4338
4365
|
title: '单据子类',
|
|
4366
|
+
width: 120,
|
|
4339
4367
|
dataIndex: 'profile',
|
|
4340
4368
|
render: function render(text, record) {
|
|
4341
4369
|
if (text) {
|
|
@@ -4351,28 +4379,40 @@ function validaterule$1(props) {
|
|
|
4351
4379
|
}, {
|
|
4352
4380
|
title: '我的收发角色',
|
|
4353
4381
|
dataIndex: 'attribution',
|
|
4382
|
+
width: 160,
|
|
4383
|
+
ellipsis: true,
|
|
4354
4384
|
render: function render(text) {
|
|
4355
4385
|
return attributionEnum[text];
|
|
4356
4386
|
}
|
|
4357
4387
|
}, {
|
|
4358
4388
|
title: '我司对应DID',
|
|
4359
4389
|
dataIndex: 'senderParticipantId',
|
|
4390
|
+
ellipsis: true,
|
|
4391
|
+
width: 200,
|
|
4360
4392
|
render: function render(text, record) {
|
|
4361
4393
|
if (record.senderParticipantNote) {
|
|
4362
|
-
return /*#__PURE__*/React.createElement("
|
|
4394
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
4395
|
+
title: record.senderParticipantNote + '' + text
|
|
4396
|
+
}, record.senderParticipantNote, text);
|
|
4363
4397
|
} else {
|
|
4364
4398
|
return /*#__PURE__*/React.createElement("span", null, text);
|
|
4365
4399
|
}
|
|
4366
4400
|
}
|
|
4367
4401
|
}, {
|
|
4368
4402
|
title: '接受对象',
|
|
4403
|
+
width: 120,
|
|
4404
|
+
ellipsis: true,
|
|
4369
4405
|
dataIndex: 'receiverParticipantId'
|
|
4370
4406
|
}, {
|
|
4371
4407
|
title: '接受对象所属公司',
|
|
4408
|
+
width: 160,
|
|
4409
|
+
ellipsis: true,
|
|
4372
4410
|
dataIndex: 'receiverCompany'
|
|
4373
4411
|
}, {
|
|
4374
4412
|
title: '发布时间',
|
|
4375
4413
|
dataIndex: 'createAt',
|
|
4414
|
+
width: 160,
|
|
4415
|
+
ellipsis: true,
|
|
4376
4416
|
render: function render(text) {
|
|
4377
4417
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
4378
4418
|
}
|
|
@@ -4388,6 +4428,8 @@ function validaterule$1(props) {
|
|
|
4388
4428
|
{
|
|
4389
4429
|
title: '操作',
|
|
4390
4430
|
dataIndex: 'console',
|
|
4431
|
+
width: 80,
|
|
4432
|
+
fixed: 'right',
|
|
4391
4433
|
render: function render(text, record) {
|
|
4392
4434
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("a", {
|
|
4393
4435
|
className: "tabel-action",
|
|
@@ -4405,6 +4447,7 @@ function validaterule$1(props) {
|
|
|
4405
4447
|
backgroundColor: '#efefef'
|
|
4406
4448
|
}
|
|
4407
4449
|
}, /*#__PURE__*/React.createElement(Table$1, {
|
|
4450
|
+
className: 'fixheight',
|
|
4408
4451
|
columns: columns,
|
|
4409
4452
|
rowKey: "id",
|
|
4410
4453
|
dataSource: list,
|
|
@@ -4556,9 +4599,7 @@ var DocumentsCont = /*#__PURE__*/function (_React$Component) {
|
|
|
4556
4599
|
}(React.Component);
|
|
4557
4600
|
|
|
4558
4601
|
var Main$2 = function Main(props) {
|
|
4559
|
-
var initRoute = props.path || '/
|
|
4560
|
-
// console.log(uploadConfig);
|
|
4561
|
-
|
|
4602
|
+
var initRoute = props.path || '/rulelist';
|
|
4562
4603
|
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
4563
4604
|
locale: zhCN
|
|
4564
4605
|
}, /*#__PURE__*/React.createElement(MemoryRouter, null, /*#__PURE__*/React.createElement(Switch$1, null, /*#__PURE__*/React.createElement(Route, {
|
|
@@ -6748,9 +6789,13 @@ function Rule$1(props) {
|
|
|
6748
6789
|
return [{
|
|
6749
6790
|
title: 'DID',
|
|
6750
6791
|
dataIndex: 'customerDid',
|
|
6792
|
+
width: 200,
|
|
6793
|
+
ellipsis: true,
|
|
6751
6794
|
render: function render(text, record) {
|
|
6752
6795
|
if (text) {
|
|
6753
|
-
return /*#__PURE__*/React.createElement("
|
|
6796
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
6797
|
+
title: record.customerDidNote + ' ' + text
|
|
6798
|
+
}, record.customerDidNote, " ", text);
|
|
6754
6799
|
} else {
|
|
6755
6800
|
return '';
|
|
6756
6801
|
}
|
|
@@ -6758,11 +6803,13 @@ function Rule$1(props) {
|
|
|
6758
6803
|
}, {
|
|
6759
6804
|
title: '所属公司',
|
|
6760
6805
|
dataIndex: 'customerName',
|
|
6761
|
-
width: 200
|
|
6806
|
+
width: 200,
|
|
6807
|
+
ellipsis: true
|
|
6762
6808
|
}, {
|
|
6763
6809
|
title: '数据状态',
|
|
6764
6810
|
dataIndex: 'dataStatus',
|
|
6765
6811
|
width: 100,
|
|
6812
|
+
ellipsis: true,
|
|
6766
6813
|
render: function render(text) {
|
|
6767
6814
|
if (text === 2) {
|
|
6768
6815
|
return /*#__PURE__*/React.createElement("span", null, "\u505C\u7528");
|
|
@@ -6779,9 +6826,13 @@ function Rule$1(props) {
|
|
|
6779
6826
|
}, {
|
|
6780
6827
|
title: '我司对应DID',
|
|
6781
6828
|
dataIndex: 'companyDid',
|
|
6829
|
+
width: 200,
|
|
6830
|
+
ellipsis: true,
|
|
6782
6831
|
render: function render(text, record) {
|
|
6783
6832
|
if (text) {
|
|
6784
|
-
return /*#__PURE__*/React.createElement("
|
|
6833
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
6834
|
+
title: record.companyDidNote + '' + text
|
|
6835
|
+
}, record.companyDidNote, " ", text);
|
|
6785
6836
|
} else {
|
|
6786
6837
|
return '';
|
|
6787
6838
|
}
|
|
@@ -6790,6 +6841,7 @@ function Rule$1(props) {
|
|
|
6790
6841
|
title: '加入时间',
|
|
6791
6842
|
dataIndex: 'createTime',
|
|
6792
6843
|
width: 200,
|
|
6844
|
+
ellipsis: true,
|
|
6793
6845
|
render: function render(text) {
|
|
6794
6846
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6795
6847
|
}
|
|
@@ -6874,6 +6926,10 @@ function Rule$1(props) {
|
|
|
6874
6926
|
}
|
|
6875
6927
|
}, /*#__PURE__*/React.createElement(Table$1, {
|
|
6876
6928
|
rowSelection: rowSelection,
|
|
6929
|
+
scroll: {
|
|
6930
|
+
x: '1400',
|
|
6931
|
+
y: 'max-content'
|
|
6932
|
+
},
|
|
6877
6933
|
columns: columns,
|
|
6878
6934
|
rowKey: "index",
|
|
6879
6935
|
dataSource: list,
|
|
@@ -7219,9 +7275,13 @@ function Rule$2(props) {
|
|
|
7219
7275
|
return [{
|
|
7220
7276
|
title: 'DID',
|
|
7221
7277
|
dataIndex: 'customerDid',
|
|
7278
|
+
width: 200,
|
|
7279
|
+
ellipsis: true,
|
|
7222
7280
|
render: function render(text, record) {
|
|
7223
7281
|
if (text) {
|
|
7224
|
-
return /*#__PURE__*/React.createElement("
|
|
7282
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
7283
|
+
title: record.customerDidNote + '' + text
|
|
7284
|
+
}, record.customerDidNote, text);
|
|
7225
7285
|
} else {
|
|
7226
7286
|
return '';
|
|
7227
7287
|
}
|
|
@@ -7229,6 +7289,7 @@ function Rule$2(props) {
|
|
|
7229
7289
|
}, {
|
|
7230
7290
|
title: '所属公司',
|
|
7231
7291
|
width: 200,
|
|
7292
|
+
ellipsis: true,
|
|
7232
7293
|
dataIndex: 'customerName'
|
|
7233
7294
|
}, {
|
|
7234
7295
|
title: '数据状态',
|
|
@@ -7249,10 +7310,14 @@ function Rule$2(props) {
|
|
|
7249
7310
|
}
|
|
7250
7311
|
}, {
|
|
7251
7312
|
title: '我司对应DID',
|
|
7313
|
+
width: 200,
|
|
7314
|
+
ellipsis: true,
|
|
7252
7315
|
dataIndex: 'companyDid',
|
|
7253
7316
|
render: function render(text, record) {
|
|
7254
7317
|
if (text) {
|
|
7255
|
-
return /*#__PURE__*/React.createElement("
|
|
7318
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
7319
|
+
title: record.companyDidNote + '' + text
|
|
7320
|
+
}, record.companyDidNote, " ", text);
|
|
7256
7321
|
} else {
|
|
7257
7322
|
return '';
|
|
7258
7323
|
}
|
|
@@ -7260,6 +7325,7 @@ function Rule$2(props) {
|
|
|
7260
7325
|
}, {
|
|
7261
7326
|
title: '加入时间',
|
|
7262
7327
|
dataIndex: 'createTime',
|
|
7328
|
+
ellipsis: true,
|
|
7263
7329
|
width: 200,
|
|
7264
7330
|
render: function render(text) {
|
|
7265
7331
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
@@ -7344,6 +7410,10 @@ function Rule$2(props) {
|
|
|
7344
7410
|
backgroundColor: '#efefef'
|
|
7345
7411
|
}
|
|
7346
7412
|
}, /*#__PURE__*/React.createElement(Table$1, {
|
|
7413
|
+
scroll: {
|
|
7414
|
+
x: '1400',
|
|
7415
|
+
y: 'max-content'
|
|
7416
|
+
},
|
|
7347
7417
|
rowSelection: rowSelection,
|
|
7348
7418
|
columns: columns,
|
|
7349
7419
|
rowKey: "index",
|
package/dist/index.js
CHANGED
|
@@ -3211,12 +3211,10 @@ function modalcomfirm(props) {
|
|
|
3211
3211
|
};
|
|
3212
3212
|
}, []);
|
|
3213
3213
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ktsXui.Modal, {
|
|
3214
|
-
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\
|
|
3214
|
+
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94DID",
|
|
3215
3215
|
visible: true,
|
|
3216
3216
|
onOk: handleOk,
|
|
3217
|
-
onCancel: handleCancel
|
|
3218
|
-
okText: "\u786E\u5B9A",
|
|
3219
|
-
cancelText: "\u53D6\u6D88"
|
|
3217
|
+
onCancel: handleCancel
|
|
3220
3218
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Radio.Group, {
|
|
3221
3219
|
onChange: targetSelect,
|
|
3222
3220
|
value: targetId
|
|
@@ -3618,9 +3616,15 @@ var PageHeader = (function () {
|
|
|
3618
3616
|
value: type,
|
|
3619
3617
|
onChange: switchType
|
|
3620
3618
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3621
|
-
value: 1
|
|
3619
|
+
value: 1,
|
|
3620
|
+
style: {
|
|
3621
|
+
whiteSpace: 'nowrap'
|
|
3622
|
+
}
|
|
3622
3623
|
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3623
|
-
value: 2
|
|
3624
|
+
value: 2,
|
|
3625
|
+
style: {
|
|
3626
|
+
whiteSpace: 'nowrap'
|
|
3627
|
+
}
|
|
3624
3628
|
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React__default['default'].createElement(ktsComponents.AdvancedSearch, {
|
|
3625
3629
|
width: 480,
|
|
3626
3630
|
height: 44,
|
|
@@ -3721,7 +3725,7 @@ var PageHeader = (function () {
|
|
|
3721
3725
|
}));
|
|
3722
3726
|
});
|
|
3723
3727
|
|
|
3724
|
-
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";
|
|
3728
|
+
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.ktsAntX-xui-page-header-foot {\n overflow: inherit !important;\n}\n.ktsAntX-table .ktsAntX-table-thead > tr > th {\n background: #fafafa !important;\n}\n.ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before {\n box-shadow: none !important;\n}\n.fixheight .ktsAntX-table .ktsAntX-table-thead > tr > th,\n.fixheight .ktsAntX-table .ktsAntX-table-tbody > tr > td,\n.fixheight .ktsAntX-table .ktsAntX-table tfoot > tr > th,\n.fixheight .ktsAntX-table .ktsAntX-table tfoot > tr > td {\n padding: 5px 16px;\n height: 50px;\n}\n.ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before {\n opacity: 0;\n}\n";
|
|
3725
3729
|
styleInject(css_248z$3);
|
|
3726
3730
|
|
|
3727
3731
|
var attributionEnum = {
|
|
@@ -3921,15 +3925,19 @@ function validaterule(props) {
|
|
|
3921
3925
|
|
|
3922
3926
|
var columns = [{
|
|
3923
3927
|
title: '配置名称',
|
|
3924
|
-
dataIndex: 'configName'
|
|
3928
|
+
dataIndex: 'configName',
|
|
3929
|
+
width: 160,
|
|
3930
|
+
ellipsis: true
|
|
3925
3931
|
}, {
|
|
3926
3932
|
title: '单据大类',
|
|
3927
3933
|
dataIndex: 'type',
|
|
3934
|
+
width: 120,
|
|
3928
3935
|
render: function render(text) {
|
|
3929
3936
|
return bill[text];
|
|
3930
3937
|
}
|
|
3931
3938
|
}, {
|
|
3932
3939
|
title: '单据子类',
|
|
3940
|
+
width: 120,
|
|
3933
3941
|
dataIndex: 'profile',
|
|
3934
3942
|
render: function render(text, record) {
|
|
3935
3943
|
if (text) {
|
|
@@ -3945,24 +3953,31 @@ function validaterule(props) {
|
|
|
3945
3953
|
}, {
|
|
3946
3954
|
title: '收发角色',
|
|
3947
3955
|
dataIndex: 'attribution',
|
|
3956
|
+
width: 120,
|
|
3948
3957
|
render: function render(text) {
|
|
3949
3958
|
return attributionEnum[text];
|
|
3950
3959
|
}
|
|
3951
3960
|
}, {
|
|
3952
3961
|
title: '创建时间',
|
|
3953
3962
|
dataIndex: 'createAt',
|
|
3963
|
+
ellipsis: true,
|
|
3964
|
+
width: 160,
|
|
3954
3965
|
render: function render(text) {
|
|
3955
3966
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
3956
3967
|
}
|
|
3957
3968
|
}, {
|
|
3958
3969
|
title: '更新时间',
|
|
3959
3970
|
dataIndex: 'updateAt',
|
|
3971
|
+
ellipsis: true,
|
|
3972
|
+
width: 160,
|
|
3960
3973
|
render: function render(text) {
|
|
3961
3974
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
3962
3975
|
}
|
|
3963
3976
|
}, {
|
|
3964
3977
|
title: '操作',
|
|
3978
|
+
width: 170,
|
|
3965
3979
|
dataIndex: 'console',
|
|
3980
|
+
fixed: 'right',
|
|
3966
3981
|
render: function render(text, record) {
|
|
3967
3982
|
return /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
3968
3983
|
className: "tabel-action",
|
|
@@ -4078,13 +4093,20 @@ function validaterule(props) {
|
|
|
4078
4093
|
};
|
|
4079
4094
|
}())();
|
|
4080
4095
|
}, []);
|
|
4081
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(
|
|
4096
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4097
|
+
style: {
|
|
4098
|
+
flex: 'none',
|
|
4099
|
+
position: 'relative',
|
|
4100
|
+
zIndex: 1
|
|
4101
|
+
}
|
|
4102
|
+
}, /*#__PURE__*/React__default['default'].createElement(PageHeader, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.AutoTableContainer, {
|
|
4082
4103
|
style: {
|
|
4083
4104
|
flex: 1,
|
|
4084
4105
|
padding: '0 20px',
|
|
4085
|
-
|
|
4106
|
+
background: '#F4F4F4'
|
|
4086
4107
|
}
|
|
4087
4108
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
4109
|
+
className: 'fixheight',
|
|
4088
4110
|
columns: columns,
|
|
4089
4111
|
rowKey: "configNumber",
|
|
4090
4112
|
rowSelection: rowSelection,
|
|
@@ -4325,10 +4347,14 @@ function validaterule$1(props) {
|
|
|
4325
4347
|
var columns = React.useMemo(function () {
|
|
4326
4348
|
return [{
|
|
4327
4349
|
title: '配置名称',
|
|
4328
|
-
dataIndex: 'configName'
|
|
4350
|
+
dataIndex: 'configName',
|
|
4351
|
+
ellipsis: true,
|
|
4352
|
+
width: 160
|
|
4329
4353
|
}, {
|
|
4330
4354
|
title: '使用标识',
|
|
4331
4355
|
dataIndex: 'effectStatus',
|
|
4356
|
+
width: 120,
|
|
4357
|
+
ellipsis: true,
|
|
4332
4358
|
render: function render(text) {
|
|
4333
4359
|
if (text === 0) {
|
|
4334
4360
|
return /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u5931\u6548");
|
|
@@ -4344,12 +4370,14 @@ function validaterule$1(props) {
|
|
|
4344
4370
|
}
|
|
4345
4371
|
}, {
|
|
4346
4372
|
title: '单据类型',
|
|
4373
|
+
width: 120,
|
|
4347
4374
|
dataIndex: 'type',
|
|
4348
4375
|
render: function render(text) {
|
|
4349
4376
|
return bill[text];
|
|
4350
4377
|
}
|
|
4351
4378
|
}, {
|
|
4352
4379
|
title: '单据子类',
|
|
4380
|
+
width: 120,
|
|
4353
4381
|
dataIndex: 'profile',
|
|
4354
4382
|
render: function render(text, record) {
|
|
4355
4383
|
if (text) {
|
|
@@ -4365,28 +4393,40 @@ function validaterule$1(props) {
|
|
|
4365
4393
|
}, {
|
|
4366
4394
|
title: '我的收发角色',
|
|
4367
4395
|
dataIndex: 'attribution',
|
|
4396
|
+
width: 160,
|
|
4397
|
+
ellipsis: true,
|
|
4368
4398
|
render: function render(text) {
|
|
4369
4399
|
return attributionEnum[text];
|
|
4370
4400
|
}
|
|
4371
4401
|
}, {
|
|
4372
4402
|
title: '我司对应DID',
|
|
4373
4403
|
dataIndex: 'senderParticipantId',
|
|
4404
|
+
ellipsis: true,
|
|
4405
|
+
width: 200,
|
|
4374
4406
|
render: function render(text, record) {
|
|
4375
4407
|
if (record.senderParticipantNote) {
|
|
4376
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
4408
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
4409
|
+
title: record.senderParticipantNote + '' + text
|
|
4410
|
+
}, record.senderParticipantNote, text);
|
|
4377
4411
|
} else {
|
|
4378
4412
|
return /*#__PURE__*/React__default['default'].createElement("span", null, text);
|
|
4379
4413
|
}
|
|
4380
4414
|
}
|
|
4381
4415
|
}, {
|
|
4382
4416
|
title: '接受对象',
|
|
4417
|
+
width: 120,
|
|
4418
|
+
ellipsis: true,
|
|
4383
4419
|
dataIndex: 'receiverParticipantId'
|
|
4384
4420
|
}, {
|
|
4385
4421
|
title: '接受对象所属公司',
|
|
4422
|
+
width: 160,
|
|
4423
|
+
ellipsis: true,
|
|
4386
4424
|
dataIndex: 'receiverCompany'
|
|
4387
4425
|
}, {
|
|
4388
4426
|
title: '发布时间',
|
|
4389
4427
|
dataIndex: 'createAt',
|
|
4428
|
+
width: 160,
|
|
4429
|
+
ellipsis: true,
|
|
4390
4430
|
render: function render(text) {
|
|
4391
4431
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
4392
4432
|
}
|
|
@@ -4402,6 +4442,8 @@ function validaterule$1(props) {
|
|
|
4402
4442
|
{
|
|
4403
4443
|
title: '操作',
|
|
4404
4444
|
dataIndex: 'console',
|
|
4445
|
+
width: 80,
|
|
4446
|
+
fixed: 'right',
|
|
4405
4447
|
render: function render(text, record) {
|
|
4406
4448
|
return /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
4407
4449
|
className: "tabel-action",
|
|
@@ -4419,6 +4461,7 @@ function validaterule$1(props) {
|
|
|
4419
4461
|
backgroundColor: '#efefef'
|
|
4420
4462
|
}
|
|
4421
4463
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
4464
|
+
className: 'fixheight',
|
|
4422
4465
|
columns: columns,
|
|
4423
4466
|
rowKey: "id",
|
|
4424
4467
|
dataSource: list,
|
|
@@ -4570,9 +4613,7 @@ var DocumentsCont = /*#__PURE__*/function (_React$Component) {
|
|
|
4570
4613
|
}(React__default['default'].Component);
|
|
4571
4614
|
|
|
4572
4615
|
var Main$2 = function Main(props) {
|
|
4573
|
-
var initRoute = props.path || '/
|
|
4574
|
-
// console.log(uploadConfig);
|
|
4575
|
-
|
|
4616
|
+
var initRoute = props.path || '/rulelist';
|
|
4576
4617
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.ConfigProvider, {
|
|
4577
4618
|
locale: zhCN__default['default']
|
|
4578
4619
|
}, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.MemoryRouter, null, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.Route, {
|
|
@@ -6762,9 +6803,13 @@ function Rule$1(props) {
|
|
|
6762
6803
|
return [{
|
|
6763
6804
|
title: 'DID',
|
|
6764
6805
|
dataIndex: 'customerDid',
|
|
6806
|
+
width: 200,
|
|
6807
|
+
ellipsis: true,
|
|
6765
6808
|
render: function render(text, record) {
|
|
6766
6809
|
if (text) {
|
|
6767
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
6810
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6811
|
+
title: record.customerDidNote + ' ' + text
|
|
6812
|
+
}, record.customerDidNote, " ", text);
|
|
6768
6813
|
} else {
|
|
6769
6814
|
return '';
|
|
6770
6815
|
}
|
|
@@ -6772,11 +6817,13 @@ function Rule$1(props) {
|
|
|
6772
6817
|
}, {
|
|
6773
6818
|
title: '所属公司',
|
|
6774
6819
|
dataIndex: 'customerName',
|
|
6775
|
-
width: 200
|
|
6820
|
+
width: 200,
|
|
6821
|
+
ellipsis: true
|
|
6776
6822
|
}, {
|
|
6777
6823
|
title: '数据状态',
|
|
6778
6824
|
dataIndex: 'dataStatus',
|
|
6779
6825
|
width: 100,
|
|
6826
|
+
ellipsis: true,
|
|
6780
6827
|
render: function render(text) {
|
|
6781
6828
|
if (text === 2) {
|
|
6782
6829
|
return /*#__PURE__*/React__default['default'].createElement("span", null, "\u505C\u7528");
|
|
@@ -6793,9 +6840,13 @@ function Rule$1(props) {
|
|
|
6793
6840
|
}, {
|
|
6794
6841
|
title: '我司对应DID',
|
|
6795
6842
|
dataIndex: 'companyDid',
|
|
6843
|
+
width: 200,
|
|
6844
|
+
ellipsis: true,
|
|
6796
6845
|
render: function render(text, record) {
|
|
6797
6846
|
if (text) {
|
|
6798
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
6847
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6848
|
+
title: record.companyDidNote + '' + text
|
|
6849
|
+
}, record.companyDidNote, " ", text);
|
|
6799
6850
|
} else {
|
|
6800
6851
|
return '';
|
|
6801
6852
|
}
|
|
@@ -6804,6 +6855,7 @@ function Rule$1(props) {
|
|
|
6804
6855
|
title: '加入时间',
|
|
6805
6856
|
dataIndex: 'createTime',
|
|
6806
6857
|
width: 200,
|
|
6858
|
+
ellipsis: true,
|
|
6807
6859
|
render: function render(text) {
|
|
6808
6860
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
6809
6861
|
}
|
|
@@ -6888,6 +6940,10 @@ function Rule$1(props) {
|
|
|
6888
6940
|
}
|
|
6889
6941
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
6890
6942
|
rowSelection: rowSelection,
|
|
6943
|
+
scroll: {
|
|
6944
|
+
x: '1400',
|
|
6945
|
+
y: 'max-content'
|
|
6946
|
+
},
|
|
6891
6947
|
columns: columns,
|
|
6892
6948
|
rowKey: "index",
|
|
6893
6949
|
dataSource: list,
|
|
@@ -7233,9 +7289,13 @@ function Rule$2(props) {
|
|
|
7233
7289
|
return [{
|
|
7234
7290
|
title: 'DID',
|
|
7235
7291
|
dataIndex: 'customerDid',
|
|
7292
|
+
width: 200,
|
|
7293
|
+
ellipsis: true,
|
|
7236
7294
|
render: function render(text, record) {
|
|
7237
7295
|
if (text) {
|
|
7238
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
7296
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7297
|
+
title: record.customerDidNote + '' + text
|
|
7298
|
+
}, record.customerDidNote, text);
|
|
7239
7299
|
} else {
|
|
7240
7300
|
return '';
|
|
7241
7301
|
}
|
|
@@ -7243,6 +7303,7 @@ function Rule$2(props) {
|
|
|
7243
7303
|
}, {
|
|
7244
7304
|
title: '所属公司',
|
|
7245
7305
|
width: 200,
|
|
7306
|
+
ellipsis: true,
|
|
7246
7307
|
dataIndex: 'customerName'
|
|
7247
7308
|
}, {
|
|
7248
7309
|
title: '数据状态',
|
|
@@ -7263,10 +7324,14 @@ function Rule$2(props) {
|
|
|
7263
7324
|
}
|
|
7264
7325
|
}, {
|
|
7265
7326
|
title: '我司对应DID',
|
|
7327
|
+
width: 200,
|
|
7328
|
+
ellipsis: true,
|
|
7266
7329
|
dataIndex: 'companyDid',
|
|
7267
7330
|
render: function render(text, record) {
|
|
7268
7331
|
if (text) {
|
|
7269
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
7332
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7333
|
+
title: record.companyDidNote + '' + text
|
|
7334
|
+
}, record.companyDidNote, " ", text);
|
|
7270
7335
|
} else {
|
|
7271
7336
|
return '';
|
|
7272
7337
|
}
|
|
@@ -7274,6 +7339,7 @@ function Rule$2(props) {
|
|
|
7274
7339
|
}, {
|
|
7275
7340
|
title: '加入时间',
|
|
7276
7341
|
dataIndex: 'createTime',
|
|
7342
|
+
ellipsis: true,
|
|
7277
7343
|
width: 200,
|
|
7278
7344
|
render: function render(text) {
|
|
7279
7345
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
@@ -7358,6 +7424,10 @@ function Rule$2(props) {
|
|
|
7358
7424
|
backgroundColor: '#efefef'
|
|
7359
7425
|
}
|
|
7360
7426
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
7427
|
+
scroll: {
|
|
7428
|
+
x: '1400',
|
|
7429
|
+
y: 'max-content'
|
|
7430
|
+
},
|
|
7361
7431
|
rowSelection: rowSelection,
|
|
7362
7432
|
columns: columns,
|
|
7363
7433
|
rowKey: "index",
|
package/package.json
CHANGED
|
@@ -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>
|
|
@@ -20,4 +20,22 @@
|
|
|
20
20
|
color: #0074ff;
|
|
21
21
|
white-space: nowrap;
|
|
22
22
|
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
.ktsAntX-xui-page-header-foot{
|
|
25
|
+
overflow: inherit !important;
|
|
26
|
+
}
|
|
27
|
+
.ktsAntX-table .ktsAntX-table-thead > tr > th{
|
|
28
|
+
background:#fafafa !important
|
|
29
|
+
}
|
|
30
|
+
.ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before{
|
|
31
|
+
box-shadow:none !important;
|
|
32
|
+
}
|
|
33
|
+
.fixheight {
|
|
34
|
+
.ktsAntX-table .ktsAntX-table-thead > tr > th, .ktsAntX-table .ktsAntX-table-tbody > tr > td, .ktsAntX-table .ktsAntX-table tfoot > tr > th, .ktsAntX-table .ktsAntX-table tfoot > tr > td{
|
|
35
|
+
padding: 5px 16px;
|
|
36
|
+
height: 50px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before{
|
|
40
|
+
opacity: 0;
|
|
23
41
|
}
|
|
@@ -68,12 +68,10 @@ export default function modalcomfirm(props: any) {
|
|
|
68
68
|
return (
|
|
69
69
|
<div>
|
|
70
70
|
<Modal
|
|
71
|
-
title="请选择我司对应
|
|
71
|
+
title="请选择我司对应DID"
|
|
72
72
|
visible={true}
|
|
73
73
|
onOk={handleOk}
|
|
74
74
|
onCancel={handleCancel}
|
|
75
|
-
okText="确定"
|
|
76
|
-
cancelText="取消"
|
|
77
75
|
>
|
|
78
76
|
<Radio.Group onChange={targetSelect} value={targetId} >
|
|
79
77
|
{
|
|
@@ -216,8 +216,8 @@ export default () => {
|
|
|
216
216
|
<div style={{ display: 'flex' }}>
|
|
217
217
|
<div style={{ marginRight: 10 }}>
|
|
218
218
|
<Radio.Group value={type} onChange={switchType}>
|
|
219
|
-
<Radio.Button value={1}>单据校验规则配置</Radio.Button>
|
|
220
|
-
<Radio.Button value={2}>发布记录</Radio.Button>
|
|
219
|
+
<Radio.Button value={1} style={{whiteSpace:'nowrap'}}>单据校验规则配置</Radio.Button>
|
|
220
|
+
<Radio.Button value={2} style={{whiteSpace:'nowrap'}}>发布记录</Radio.Button>
|
|
221
221
|
</Radio.Group>
|
|
222
222
|
</div>
|
|
223
223
|
<AdvancedSearch
|
|
@@ -72,16 +72,20 @@ export default function validaterule(props: any) {
|
|
|
72
72
|
{
|
|
73
73
|
title: '配置名称',
|
|
74
74
|
dataIndex: 'configName',
|
|
75
|
+
width: 160,
|
|
76
|
+
ellipsis: true,
|
|
75
77
|
},
|
|
76
78
|
{
|
|
77
79
|
title: '单据大类',
|
|
78
80
|
dataIndex: 'type',
|
|
81
|
+
width: 120,
|
|
79
82
|
render: (text: any) => {
|
|
80
83
|
return bill[text];
|
|
81
84
|
}
|
|
82
85
|
},
|
|
83
86
|
{
|
|
84
87
|
title: '单据子类',
|
|
88
|
+
width: 120,
|
|
85
89
|
dataIndex: 'profile',
|
|
86
90
|
render: (text: any, record: any) => {
|
|
87
91
|
if (text) {
|
|
@@ -94,21 +98,28 @@ export default function validaterule(props: any) {
|
|
|
94
98
|
{
|
|
95
99
|
title: '收发角色',
|
|
96
100
|
dataIndex: 'attribution',
|
|
101
|
+
width: 120,
|
|
97
102
|
render: (text: string) => attributionEnum[text]
|
|
98
103
|
},
|
|
99
104
|
{
|
|
100
105
|
title: '创建时间',
|
|
101
106
|
dataIndex: 'createAt',
|
|
107
|
+
ellipsis: true,
|
|
108
|
+
width: 160,
|
|
102
109
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
103
110
|
},
|
|
104
111
|
{
|
|
105
112
|
title: '更新时间',
|
|
106
113
|
dataIndex: 'updateAt',
|
|
114
|
+
ellipsis: true,
|
|
115
|
+
width: 160,
|
|
107
116
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
108
117
|
},
|
|
109
118
|
{
|
|
110
119
|
title: '操作',
|
|
120
|
+
width: 170,
|
|
111
121
|
dataIndex: 'console',
|
|
122
|
+
fixed: 'right',
|
|
112
123
|
render: (text: any, record: any) => (
|
|
113
124
|
<span>
|
|
114
125
|
<a className="tabel-action" onClick={() => { onBillView(record) }}>查看</a>
|
|
@@ -155,9 +166,11 @@ export default function validaterule(props: any) {
|
|
|
155
166
|
}, [])
|
|
156
167
|
return (
|
|
157
168
|
<>
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
|
|
169
|
+
<div style={{ flex: 'none', position: 'relative', zIndex: 1 }}>
|
|
170
|
+
<PageHeader />
|
|
171
|
+
</div>
|
|
172
|
+
<AutoTableContainer style={{ flex: 1, padding: '0 20px', background: '#F4F4F4' }} >
|
|
173
|
+
<Table className='fixheight' columns={columns as any} rowKey="configNumber" rowSelection={rowSelection} dataSource={list} pagination={false} />
|
|
161
174
|
</AutoTableContainer>
|
|
162
175
|
{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} />}
|
|
163
176
|
</>);
|
|
@@ -17,7 +17,7 @@ export default function validaterule(props: any) {
|
|
|
17
17
|
const [bill, setConfig] = useState<{ [key: string]: string }>({});
|
|
18
18
|
useEffect(() => {
|
|
19
19
|
(async () => {
|
|
20
|
-
const res = await DocumentsService.instance.service?.call({ url: '/schema/config/querySendRecordPage', data:
|
|
20
|
+
const res = await DocumentsService.instance.service?.call({ url: '/schema/config/querySendRecordPage', data: params, type: 'post' }) as any;
|
|
21
21
|
if (res.err) {
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
@@ -60,10 +60,14 @@ export default function validaterule(props: any) {
|
|
|
60
60
|
{
|
|
61
61
|
title: '配置名称',
|
|
62
62
|
dataIndex: 'configName',
|
|
63
|
+
ellipsis: true,
|
|
64
|
+
width: 160,
|
|
63
65
|
},
|
|
64
66
|
{
|
|
65
67
|
title: '使用标识',
|
|
66
68
|
dataIndex: 'effectStatus',
|
|
69
|
+
width: 120,
|
|
70
|
+
ellipsis: true,
|
|
67
71
|
render: (text: any) => {
|
|
68
72
|
if (text === 0) {
|
|
69
73
|
return <span>已失效</span>
|
|
@@ -75,6 +79,7 @@ export default function validaterule(props: any) {
|
|
|
75
79
|
},
|
|
76
80
|
{
|
|
77
81
|
title: '单据类型',
|
|
82
|
+
width: 120,
|
|
78
83
|
dataIndex: 'type',
|
|
79
84
|
render: (text: any) => {
|
|
80
85
|
return bill[text];
|
|
@@ -82,6 +87,7 @@ export default function validaterule(props: any) {
|
|
|
82
87
|
},
|
|
83
88
|
{
|
|
84
89
|
title: '单据子类',
|
|
90
|
+
width: 120,
|
|
85
91
|
dataIndex: 'profile',
|
|
86
92
|
render: (text: string, record: any) => {
|
|
87
93
|
if (text) {
|
|
@@ -94,14 +100,18 @@ export default function validaterule(props: any) {
|
|
|
94
100
|
{
|
|
95
101
|
title: '我的收发角色',
|
|
96
102
|
dataIndex: 'attribution',
|
|
103
|
+
width: 160,
|
|
104
|
+
ellipsis: true,
|
|
97
105
|
render: (text: any) => attributionEnum[text]
|
|
98
106
|
},
|
|
99
107
|
{
|
|
100
108
|
title: '我司对应DID',
|
|
101
109
|
dataIndex: 'senderParticipantId',
|
|
110
|
+
ellipsis: true,
|
|
111
|
+
width: 200,
|
|
102
112
|
render: (text: any, record: any) => {
|
|
103
113
|
if (record.senderParticipantNote) {
|
|
104
|
-
return <
|
|
114
|
+
return <span title={record.senderParticipantNote+''+text}>{record.senderParticipantNote}{text}</span>
|
|
105
115
|
} else {
|
|
106
116
|
return <span>{text}</span>
|
|
107
117
|
}
|
|
@@ -110,16 +120,22 @@ export default function validaterule(props: any) {
|
|
|
110
120
|
},
|
|
111
121
|
{
|
|
112
122
|
title: '接受对象',
|
|
123
|
+
width: 120,
|
|
124
|
+
ellipsis: true,
|
|
113
125
|
dataIndex: 'receiverParticipantId',
|
|
114
126
|
|
|
115
127
|
},
|
|
116
128
|
{
|
|
117
129
|
title: '接受对象所属公司',
|
|
130
|
+
width: 160,
|
|
131
|
+
ellipsis: true,
|
|
118
132
|
dataIndex: 'receiverCompany',
|
|
119
133
|
},
|
|
120
134
|
{
|
|
121
135
|
title: '发布时间',
|
|
122
136
|
dataIndex: 'createAt',
|
|
137
|
+
width: 160,
|
|
138
|
+
ellipsis: true,
|
|
123
139
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
124
140
|
},
|
|
125
141
|
// {
|
|
@@ -134,6 +150,8 @@ export default function validaterule(props: any) {
|
|
|
134
150
|
{
|
|
135
151
|
title: '操作',
|
|
136
152
|
dataIndex: 'console',
|
|
153
|
+
width: 80,
|
|
154
|
+
fixed: 'right',
|
|
137
155
|
render: (text: any, record: any) => (
|
|
138
156
|
<span>
|
|
139
157
|
<a className="tabel-action" onClick={() => { onBillView(record.id) }}>查看</a>
|
|
@@ -145,7 +163,7 @@ export default function validaterule(props: any) {
|
|
|
145
163
|
<>
|
|
146
164
|
<PageHeader />
|
|
147
165
|
<AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
|
|
148
|
-
<Table columns={columns} rowKey="id" dataSource={list} pagination={false} />
|
|
166
|
+
<Table className='fixheight' columns={columns as any} rowKey="id" dataSource={list} pagination={false} />
|
|
149
167
|
</AutoTableContainer>
|
|
150
168
|
{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} />}
|
|
151
169
|
</>);
|