kts-components-document-access-point 1.2.13 → 1.2.18
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 +58 -42
- package/dist/index.js +58 -42
- package/package.json +1 -1
- package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.ts +25 -1
- package/src/DocumentsEdit/DocumentsEditController/actions/delProperties/index.ts +6 -3
- package/src/DocumentsEdit/ui/EditRule/ui/RuleForm/fn/algorithmFormComponent/index.tsx +1 -1
- package/src/DocumentsList/ui/ModalComfirm/index.tsx +11 -7
- package/src/DocumentsList/ui/PageHeader/index.tsx +3 -3
- package/src/DocumentsList/ui/RuleTable/index.tsx +1 -4
- package/src/DocumentsRule/ui/main/index.tsx +8 -6
package/dist/index.esm.js
CHANGED
|
@@ -318,6 +318,16 @@ var RuleState = function RuleState() {
|
|
|
318
318
|
type: 'string',
|
|
319
319
|
label: '非空',
|
|
320
320
|
operator: ['notBlank']
|
|
321
|
+
}, {
|
|
322
|
+
name: 'exclude',
|
|
323
|
+
type: 'string',
|
|
324
|
+
label: '不包含',
|
|
325
|
+
operator: ['exclude']
|
|
326
|
+
}, {
|
|
327
|
+
name: 'include',
|
|
328
|
+
type: 'string',
|
|
329
|
+
label: '包含',
|
|
330
|
+
operator: ['include']
|
|
321
331
|
}, // integer/number -----------------------------------------------------------------------------------
|
|
322
332
|
{
|
|
323
333
|
name: 'enumNumber',
|
|
@@ -446,10 +456,20 @@ var RuleState = function RuleState() {
|
|
|
446
456
|
}]
|
|
447
457
|
},
|
|
448
458
|
enum: {
|
|
449
|
-
label: '
|
|
459
|
+
label: '值',
|
|
450
460
|
type: 'array',
|
|
451
461
|
name: 'enum'
|
|
452
462
|
},
|
|
463
|
+
exclude: {
|
|
464
|
+
label: '值',
|
|
465
|
+
type: 'array',
|
|
466
|
+
name: 'exclude'
|
|
467
|
+
},
|
|
468
|
+
include: {
|
|
469
|
+
label: '值',
|
|
470
|
+
type: 'array',
|
|
471
|
+
name: 'include'
|
|
472
|
+
},
|
|
453
473
|
const: {
|
|
454
474
|
label: '固定值',
|
|
455
475
|
type: 'string',
|
|
@@ -740,9 +760,11 @@ var delProperties = /*#__PURE__*/(function () {
|
|
|
740
760
|
case 2:
|
|
741
761
|
properties = ((_s$propertyTableState = s.propertyTableState.current) === null || _s$propertyTableState === void 0 ? void 0 : _s$propertyTableState.items) ? (_s$propertyTableState2 = s.propertyTableState.current) === null || _s$propertyTableState2 === void 0 ? void 0 : _s$propertyTableState2.items.properties : (_s$propertyTableState3 = s.propertyTableState.current) === null || _s$propertyTableState3 === void 0 ? void 0 : _s$propertyTableState3.properties; // 删除必填
|
|
742
762
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
763
|
+
(function () {
|
|
764
|
+
var p = options.required.indexOf(options.value.$name);
|
|
765
|
+
options.required.splice(p, 1);
|
|
766
|
+
})(); // 删除引用
|
|
767
|
+
|
|
746
768
|
|
|
747
769
|
if (properties) {
|
|
748
770
|
_context.next = 6;
|
|
@@ -1994,7 +2016,7 @@ function algorithmFormComponent(operator, ruleProperties, readOnly) {
|
|
|
1994
2016
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
1995
2017
|
readOnly: readOnly,
|
|
1996
2018
|
suffix: /*#__PURE__*/React.createElement(Tooltip, {
|
|
1997
|
-
title: "\
|
|
2019
|
+
title: "\u82E5\u6709\u591A\u4E2A\u503C\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u9017\u53F7\u201C,\u201D\u9694\u5F00\u3002"
|
|
1998
2020
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1999
2021
|
component: SvgIcon,
|
|
2000
2022
|
style: {
|
|
@@ -2756,26 +2778,30 @@ function modalcomfirm(props) {
|
|
|
2756
2778
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
2757
2779
|
var _DocumentsService$ins2;
|
|
2758
2780
|
|
|
2759
|
-
var data, res;
|
|
2781
|
+
var note, data, res;
|
|
2760
2782
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
2761
2783
|
while (1) {
|
|
2762
2784
|
switch (_context2.prev = _context2.next) {
|
|
2763
2785
|
case 0:
|
|
2786
|
+
note = targetList.find(function (item) {
|
|
2787
|
+
return item.participantId === targetId;
|
|
2788
|
+
});
|
|
2764
2789
|
data = selectItems.map(function (item) {
|
|
2765
2790
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
2766
|
-
|
|
2791
|
+
senderParticipantId: targetId,
|
|
2767
2792
|
privateList: [],
|
|
2768
|
-
sendPublic: true
|
|
2793
|
+
sendPublic: true,
|
|
2794
|
+
senderParticipantNote: note && note.remarkName
|
|
2769
2795
|
});
|
|
2770
2796
|
});
|
|
2771
|
-
_context2.next =
|
|
2797
|
+
_context2.next = 4;
|
|
2772
2798
|
return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
|
|
2773
2799
|
url: '/schema/config/batchSend',
|
|
2774
2800
|
data: data,
|
|
2775
2801
|
type: 'post'
|
|
2776
2802
|
});
|
|
2777
2803
|
|
|
2778
|
-
case
|
|
2804
|
+
case 4:
|
|
2779
2805
|
res = _context2.sent;
|
|
2780
2806
|
|
|
2781
2807
|
if (res.res) {
|
|
@@ -2784,7 +2810,7 @@ function modalcomfirm(props) {
|
|
|
2784
2810
|
props.handleCancel();
|
|
2785
2811
|
}
|
|
2786
2812
|
|
|
2787
|
-
case
|
|
2813
|
+
case 6:
|
|
2788
2814
|
case "end":
|
|
2789
2815
|
return _context2.stop();
|
|
2790
2816
|
}
|
|
@@ -2875,7 +2901,7 @@ function modalcomfirm(props) {
|
|
|
2875
2901
|
flexDirection: 'column',
|
|
2876
2902
|
alignContent: 'flex-start'
|
|
2877
2903
|
}
|
|
2878
|
-
}, /*#__PURE__*/React.createElement("span", null, item.remarkName
|
|
2904
|
+
}, /*#__PURE__*/React.createElement("span", null, item.remarkName), /*#__PURE__*/React.createElement("span", {
|
|
2879
2905
|
style: {
|
|
2880
2906
|
maxWidth: 460,
|
|
2881
2907
|
overflow: 'hidden',
|
|
@@ -3136,10 +3162,10 @@ var PageHeader = (function () {
|
|
|
3136
3162
|
title: "收发角色",
|
|
3137
3163
|
enum: [{
|
|
3138
3164
|
"label": "发送方",
|
|
3139
|
-
"value":
|
|
3165
|
+
"value": 1
|
|
3140
3166
|
}, {
|
|
3141
3167
|
"label": "接收方",
|
|
3142
|
-
"value":
|
|
3168
|
+
"value": 0
|
|
3143
3169
|
}],
|
|
3144
3170
|
'x-props': {
|
|
3145
3171
|
mode: "multiple"
|
|
@@ -3184,10 +3210,10 @@ var PageHeader = (function () {
|
|
|
3184
3210
|
title: "我的收发角色",
|
|
3185
3211
|
enum: [{
|
|
3186
3212
|
"label": "发送方",
|
|
3187
|
-
"value":
|
|
3213
|
+
"value": 1
|
|
3188
3214
|
}, {
|
|
3189
3215
|
"label": "接收方",
|
|
3190
|
-
"value":
|
|
3216
|
+
"value": 0
|
|
3191
3217
|
}],
|
|
3192
3218
|
'x-props': {
|
|
3193
3219
|
mode: "multiple"
|
|
@@ -3198,16 +3224,16 @@ var PageHeader = (function () {
|
|
|
3198
3224
|
title: "发送对象",
|
|
3199
3225
|
visible: true
|
|
3200
3226
|
},
|
|
3201
|
-
|
|
3227
|
+
senderParticipantId: {
|
|
3202
3228
|
type: "string",
|
|
3203
3229
|
title: "我司对应DID",
|
|
3204
3230
|
enum: didEnum
|
|
3205
3231
|
},
|
|
3206
|
-
|
|
3232
|
+
receiverParticipantId: {
|
|
3207
3233
|
type: "string",
|
|
3208
3234
|
title: "接受对象"
|
|
3209
3235
|
},
|
|
3210
|
-
|
|
3236
|
+
receiverCompany: {
|
|
3211
3237
|
type: "string",
|
|
3212
3238
|
title: "接受对象所属公司"
|
|
3213
3239
|
},
|
|
@@ -3643,9 +3669,7 @@ function validaterule(props) {
|
|
|
3643
3669
|
}, []);
|
|
3644
3670
|
var onSendCheck = useCallback(function (record) {
|
|
3645
3671
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
3646
|
-
var
|
|
3647
|
-
|
|
3648
|
-
var data, res;
|
|
3672
|
+
var data;
|
|
3649
3673
|
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
3650
3674
|
while (1) {
|
|
3651
3675
|
switch (_context6.prev = _context6.next) {
|
|
@@ -3674,21 +3698,9 @@ function validaterule(props) {
|
|
|
3674
3698
|
return _ref6.apply(this, arguments);
|
|
3675
3699
|
};
|
|
3676
3700
|
}())();
|
|
3677
|
-
|
|
3678
|
-
return (_DocumentsService$ins3 = DocumentsService.instance.service) === null || _DocumentsService$ins3 === void 0 ? void 0 : _DocumentsService$ins3.call({
|
|
3679
|
-
url: '/participant/listBySubjectId',
|
|
3680
|
-
data: {},
|
|
3681
|
-
type: 'get'
|
|
3682
|
-
});
|
|
3701
|
+
handleCancel(true);
|
|
3683
3702
|
|
|
3684
|
-
case
|
|
3685
|
-
res = _context6.sent;
|
|
3686
|
-
|
|
3687
|
-
if (res.res) {
|
|
3688
|
-
handleCancel(true);
|
|
3689
|
-
}
|
|
3690
|
-
|
|
3691
|
-
case 6:
|
|
3703
|
+
case 3:
|
|
3692
3704
|
case "end":
|
|
3693
3705
|
return _context6.stop();
|
|
3694
3706
|
}
|
|
@@ -5058,20 +5070,24 @@ function Rule(props) {
|
|
|
5058
5070
|
}, []);
|
|
5059
5071
|
var handleOk = useCallback(function () {
|
|
5060
5072
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
5061
|
-
var data, res;
|
|
5073
|
+
var note, data, res;
|
|
5062
5074
|
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
5063
5075
|
while (1) {
|
|
5064
5076
|
switch (_context7.prev = _context7.next) {
|
|
5065
5077
|
case 0:
|
|
5078
|
+
note = targetList.find(function (item) {
|
|
5079
|
+
return item.participantId === targetId;
|
|
5080
|
+
});
|
|
5066
5081
|
data = _objectSpread2(_objectSpread2({}, record), {}, {
|
|
5067
|
-
|
|
5082
|
+
senderParticipantId: targetId,
|
|
5068
5083
|
privateList: [],
|
|
5069
|
-
sendPublic: true
|
|
5084
|
+
sendPublic: true,
|
|
5085
|
+
senderParticipantNote: note && note.remarkName
|
|
5070
5086
|
});
|
|
5071
|
-
_context7.next =
|
|
5087
|
+
_context7.next = 4;
|
|
5072
5088
|
return controller.batchsend([data]);
|
|
5073
5089
|
|
|
5074
|
-
case
|
|
5090
|
+
case 4:
|
|
5075
5091
|
res = _context7.sent;
|
|
5076
5092
|
|
|
5077
5093
|
if (res.res) {
|
|
@@ -5085,7 +5101,7 @@ function Rule(props) {
|
|
|
5085
5101
|
});
|
|
5086
5102
|
}
|
|
5087
5103
|
|
|
5088
|
-
case
|
|
5104
|
+
case 6:
|
|
5089
5105
|
case "end":
|
|
5090
5106
|
return _context7.stop();
|
|
5091
5107
|
}
|
package/dist/index.js
CHANGED
|
@@ -332,6 +332,16 @@ var RuleState = function RuleState() {
|
|
|
332
332
|
type: 'string',
|
|
333
333
|
label: '非空',
|
|
334
334
|
operator: ['notBlank']
|
|
335
|
+
}, {
|
|
336
|
+
name: 'exclude',
|
|
337
|
+
type: 'string',
|
|
338
|
+
label: '不包含',
|
|
339
|
+
operator: ['exclude']
|
|
340
|
+
}, {
|
|
341
|
+
name: 'include',
|
|
342
|
+
type: 'string',
|
|
343
|
+
label: '包含',
|
|
344
|
+
operator: ['include']
|
|
335
345
|
}, // integer/number -----------------------------------------------------------------------------------
|
|
336
346
|
{
|
|
337
347
|
name: 'enumNumber',
|
|
@@ -460,10 +470,20 @@ var RuleState = function RuleState() {
|
|
|
460
470
|
}]
|
|
461
471
|
},
|
|
462
472
|
enum: {
|
|
463
|
-
label: '
|
|
473
|
+
label: '值',
|
|
464
474
|
type: 'array',
|
|
465
475
|
name: 'enum'
|
|
466
476
|
},
|
|
477
|
+
exclude: {
|
|
478
|
+
label: '值',
|
|
479
|
+
type: 'array',
|
|
480
|
+
name: 'exclude'
|
|
481
|
+
},
|
|
482
|
+
include: {
|
|
483
|
+
label: '值',
|
|
484
|
+
type: 'array',
|
|
485
|
+
name: 'include'
|
|
486
|
+
},
|
|
467
487
|
const: {
|
|
468
488
|
label: '固定值',
|
|
469
489
|
type: 'string',
|
|
@@ -754,9 +774,11 @@ var delProperties = /*#__PURE__*/(function () {
|
|
|
754
774
|
case 2:
|
|
755
775
|
properties = ((_s$propertyTableState = s.propertyTableState.current) === null || _s$propertyTableState === void 0 ? void 0 : _s$propertyTableState.items) ? (_s$propertyTableState2 = s.propertyTableState.current) === null || _s$propertyTableState2 === void 0 ? void 0 : _s$propertyTableState2.items.properties : (_s$propertyTableState3 = s.propertyTableState.current) === null || _s$propertyTableState3 === void 0 ? void 0 : _s$propertyTableState3.properties; // 删除必填
|
|
756
776
|
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
777
|
+
(function () {
|
|
778
|
+
var p = options.required.indexOf(options.value.$name);
|
|
779
|
+
options.required.splice(p, 1);
|
|
780
|
+
})(); // 删除引用
|
|
781
|
+
|
|
760
782
|
|
|
761
783
|
if (properties) {
|
|
762
784
|
_context.next = 6;
|
|
@@ -2008,7 +2030,7 @@ function algorithmFormComponent(operator, ruleProperties, readOnly) {
|
|
|
2008
2030
|
}), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
2009
2031
|
readOnly: readOnly,
|
|
2010
2032
|
suffix: /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Tooltip, {
|
|
2011
|
-
title: "\
|
|
2033
|
+
title: "\u82E5\u6709\u591A\u4E2A\u503C\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u9017\u53F7\u201C,\u201D\u9694\u5F00\u3002"
|
|
2012
2034
|
}, /*#__PURE__*/React__default['default'].createElement(Icon__default['default'], {
|
|
2013
2035
|
component: SvgIcon,
|
|
2014
2036
|
style: {
|
|
@@ -2770,26 +2792,30 @@ function modalcomfirm(props) {
|
|
|
2770
2792
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
2771
2793
|
var _DocumentsService$ins2;
|
|
2772
2794
|
|
|
2773
|
-
var data, res;
|
|
2795
|
+
var note, data, res;
|
|
2774
2796
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
2775
2797
|
while (1) {
|
|
2776
2798
|
switch (_context2.prev = _context2.next) {
|
|
2777
2799
|
case 0:
|
|
2800
|
+
note = targetList.find(function (item) {
|
|
2801
|
+
return item.participantId === targetId;
|
|
2802
|
+
});
|
|
2778
2803
|
data = selectItems.map(function (item) {
|
|
2779
2804
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
2780
|
-
|
|
2805
|
+
senderParticipantId: targetId,
|
|
2781
2806
|
privateList: [],
|
|
2782
|
-
sendPublic: true
|
|
2807
|
+
sendPublic: true,
|
|
2808
|
+
senderParticipantNote: note && note.remarkName
|
|
2783
2809
|
});
|
|
2784
2810
|
});
|
|
2785
|
-
_context2.next =
|
|
2811
|
+
_context2.next = 4;
|
|
2786
2812
|
return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
|
|
2787
2813
|
url: '/schema/config/batchSend',
|
|
2788
2814
|
data: data,
|
|
2789
2815
|
type: 'post'
|
|
2790
2816
|
});
|
|
2791
2817
|
|
|
2792
|
-
case
|
|
2818
|
+
case 4:
|
|
2793
2819
|
res = _context2.sent;
|
|
2794
2820
|
|
|
2795
2821
|
if (res.res) {
|
|
@@ -2798,7 +2824,7 @@ function modalcomfirm(props) {
|
|
|
2798
2824
|
props.handleCancel();
|
|
2799
2825
|
}
|
|
2800
2826
|
|
|
2801
|
-
case
|
|
2827
|
+
case 6:
|
|
2802
2828
|
case "end":
|
|
2803
2829
|
return _context2.stop();
|
|
2804
2830
|
}
|
|
@@ -2889,7 +2915,7 @@ function modalcomfirm(props) {
|
|
|
2889
2915
|
flexDirection: 'column',
|
|
2890
2916
|
alignContent: 'flex-start'
|
|
2891
2917
|
}
|
|
2892
|
-
}, /*#__PURE__*/React__default['default'].createElement("span", null, item.remarkName
|
|
2918
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, item.remarkName), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
2893
2919
|
style: {
|
|
2894
2920
|
maxWidth: 460,
|
|
2895
2921
|
overflow: 'hidden',
|
|
@@ -3150,10 +3176,10 @@ var PageHeader = (function () {
|
|
|
3150
3176
|
title: "收发角色",
|
|
3151
3177
|
enum: [{
|
|
3152
3178
|
"label": "发送方",
|
|
3153
|
-
"value":
|
|
3179
|
+
"value": 1
|
|
3154
3180
|
}, {
|
|
3155
3181
|
"label": "接收方",
|
|
3156
|
-
"value":
|
|
3182
|
+
"value": 0
|
|
3157
3183
|
}],
|
|
3158
3184
|
'x-props': {
|
|
3159
3185
|
mode: "multiple"
|
|
@@ -3198,10 +3224,10 @@ var PageHeader = (function () {
|
|
|
3198
3224
|
title: "我的收发角色",
|
|
3199
3225
|
enum: [{
|
|
3200
3226
|
"label": "发送方",
|
|
3201
|
-
"value":
|
|
3227
|
+
"value": 1
|
|
3202
3228
|
}, {
|
|
3203
3229
|
"label": "接收方",
|
|
3204
|
-
"value":
|
|
3230
|
+
"value": 0
|
|
3205
3231
|
}],
|
|
3206
3232
|
'x-props': {
|
|
3207
3233
|
mode: "multiple"
|
|
@@ -3212,16 +3238,16 @@ var PageHeader = (function () {
|
|
|
3212
3238
|
title: "发送对象",
|
|
3213
3239
|
visible: true
|
|
3214
3240
|
},
|
|
3215
|
-
|
|
3241
|
+
senderParticipantId: {
|
|
3216
3242
|
type: "string",
|
|
3217
3243
|
title: "我司对应DID",
|
|
3218
3244
|
enum: didEnum
|
|
3219
3245
|
},
|
|
3220
|
-
|
|
3246
|
+
receiverParticipantId: {
|
|
3221
3247
|
type: "string",
|
|
3222
3248
|
title: "接受对象"
|
|
3223
3249
|
},
|
|
3224
|
-
|
|
3250
|
+
receiverCompany: {
|
|
3225
3251
|
type: "string",
|
|
3226
3252
|
title: "接受对象所属公司"
|
|
3227
3253
|
},
|
|
@@ -3657,9 +3683,7 @@ function validaterule(props) {
|
|
|
3657
3683
|
}, []);
|
|
3658
3684
|
var onSendCheck = React.useCallback(function (record) {
|
|
3659
3685
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
3660
|
-
var
|
|
3661
|
-
|
|
3662
|
-
var data, res;
|
|
3686
|
+
var data;
|
|
3663
3687
|
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
3664
3688
|
while (1) {
|
|
3665
3689
|
switch (_context6.prev = _context6.next) {
|
|
@@ -3688,21 +3712,9 @@ function validaterule(props) {
|
|
|
3688
3712
|
return _ref6.apply(this, arguments);
|
|
3689
3713
|
};
|
|
3690
3714
|
}())();
|
|
3691
|
-
|
|
3692
|
-
return (_DocumentsService$ins3 = DocumentsService.instance.service) === null || _DocumentsService$ins3 === void 0 ? void 0 : _DocumentsService$ins3.call({
|
|
3693
|
-
url: '/participant/listBySubjectId',
|
|
3694
|
-
data: {},
|
|
3695
|
-
type: 'get'
|
|
3696
|
-
});
|
|
3715
|
+
handleCancel(true);
|
|
3697
3716
|
|
|
3698
|
-
case
|
|
3699
|
-
res = _context6.sent;
|
|
3700
|
-
|
|
3701
|
-
if (res.res) {
|
|
3702
|
-
handleCancel(true);
|
|
3703
|
-
}
|
|
3704
|
-
|
|
3705
|
-
case 6:
|
|
3717
|
+
case 3:
|
|
3706
3718
|
case "end":
|
|
3707
3719
|
return _context6.stop();
|
|
3708
3720
|
}
|
|
@@ -5072,20 +5084,24 @@ function Rule(props) {
|
|
|
5072
5084
|
}, []);
|
|
5073
5085
|
var handleOk = React.useCallback(function () {
|
|
5074
5086
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
5075
|
-
var data, res;
|
|
5087
|
+
var note, data, res;
|
|
5076
5088
|
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
5077
5089
|
while (1) {
|
|
5078
5090
|
switch (_context7.prev = _context7.next) {
|
|
5079
5091
|
case 0:
|
|
5092
|
+
note = targetList.find(function (item) {
|
|
5093
|
+
return item.participantId === targetId;
|
|
5094
|
+
});
|
|
5080
5095
|
data = _objectSpread2(_objectSpread2({}, record), {}, {
|
|
5081
|
-
|
|
5096
|
+
senderParticipantId: targetId,
|
|
5082
5097
|
privateList: [],
|
|
5083
|
-
sendPublic: true
|
|
5098
|
+
sendPublic: true,
|
|
5099
|
+
senderParticipantNote: note && note.remarkName
|
|
5084
5100
|
});
|
|
5085
|
-
_context7.next =
|
|
5101
|
+
_context7.next = 4;
|
|
5086
5102
|
return controller.batchsend([data]);
|
|
5087
5103
|
|
|
5088
|
-
case
|
|
5104
|
+
case 4:
|
|
5089
5105
|
res = _context7.sent;
|
|
5090
5106
|
|
|
5091
5107
|
if (res.res) {
|
|
@@ -5099,7 +5115,7 @@ function Rule(props) {
|
|
|
5099
5115
|
});
|
|
5100
5116
|
}
|
|
5101
5117
|
|
|
5102
|
-
case
|
|
5118
|
+
case 6:
|
|
5103
5119
|
case "end":
|
|
5104
5120
|
return _context7.stop();
|
|
5105
5121
|
}
|
package/package.json
CHANGED
package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.ts
CHANGED
|
@@ -67,6 +67,18 @@ export default class RuleState {
|
|
|
67
67
|
label: '非空',
|
|
68
68
|
operator: ['notBlank'],
|
|
69
69
|
},
|
|
70
|
+
{
|
|
71
|
+
name: 'exclude',
|
|
72
|
+
type: 'string',
|
|
73
|
+
label: '不包含',
|
|
74
|
+
operator: ['exclude'],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'include',
|
|
78
|
+
type: 'string',
|
|
79
|
+
label: '包含',
|
|
80
|
+
operator: ['include'],
|
|
81
|
+
},
|
|
70
82
|
|
|
71
83
|
// integer/number -----------------------------------------------------------------------------------
|
|
72
84
|
{
|
|
@@ -201,11 +213,23 @@ export default class RuleState {
|
|
|
201
213
|
},
|
|
202
214
|
|
|
203
215
|
enum: {
|
|
204
|
-
label: '
|
|
216
|
+
label: '值',
|
|
205
217
|
type: 'array',
|
|
206
218
|
name: 'enum',
|
|
207
219
|
},
|
|
208
220
|
|
|
221
|
+
exclude: {
|
|
222
|
+
label: '值',
|
|
223
|
+
type: 'array',
|
|
224
|
+
name: 'exclude',
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
include: {
|
|
228
|
+
label: '值',
|
|
229
|
+
type: 'array',
|
|
230
|
+
name: 'include',
|
|
231
|
+
},
|
|
232
|
+
|
|
209
233
|
const: {
|
|
210
234
|
label: '固定值',
|
|
211
235
|
type: 'string',
|
|
@@ -3,13 +3,16 @@ import DocumentsEditControllerState, { IDataSource } from '../../DocumentsEditCo
|
|
|
3
3
|
|
|
4
4
|
export default async (s: DocumentsEditControllerState, options?: IDataSource) => {
|
|
5
5
|
if (!options) return;
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
const properties = s.propertyTableState.current?.items
|
|
8
8
|
? s.propertyTableState.current?.items.properties
|
|
9
|
-
: s.propertyTableState.current?.properties
|
|
9
|
+
: s.propertyTableState.current?.properties;
|
|
10
10
|
|
|
11
11
|
// 删除必填
|
|
12
|
-
|
|
12
|
+
(() => {
|
|
13
|
+
const p = options.required.indexOf(options.value.$name);
|
|
14
|
+
options.required.splice(p, 1);
|
|
15
|
+
})()
|
|
13
16
|
|
|
14
17
|
// 删除引用
|
|
15
18
|
if (!properties) return;
|
|
@@ -90,7 +90,7 @@ export default function algorithmFormComponent(operator: IOperator, ruleProperti
|
|
|
90
90
|
<Input
|
|
91
91
|
readOnly={readOnly}
|
|
92
92
|
suffix={
|
|
93
|
-
<Tooltip title="
|
|
93
|
+
<Tooltip title="若有多个值,请使用英文逗号“,”隔开。">
|
|
94
94
|
<Icon component={IconSvg} style={{ color: 'rgba(0,0,0,.45)' }} />
|
|
95
95
|
</Tooltip>
|
|
96
96
|
}
|
|
@@ -4,12 +4,13 @@ import { Modal } from 'kts-xui';
|
|
|
4
4
|
import Main from '../../';
|
|
5
5
|
import { useHistory } from 'react-router-dom';
|
|
6
6
|
import { DocumentsService } from "../../../";
|
|
7
|
+
//发布弹框
|
|
7
8
|
export default function modalcomfirm(props: any) {
|
|
8
9
|
const selectItems = props.list;
|
|
9
10
|
const history = useHistory();
|
|
10
11
|
const controller = Main.useController();
|
|
11
12
|
const targetId = controller.useMemo(s => s.targetId, [])
|
|
12
|
-
const [targetList, setTargetList] = useState([]);
|
|
13
|
+
const [targetList, setTargetList] = useState<any[]>([]);
|
|
13
14
|
useEffect(() => {
|
|
14
15
|
(async () => {
|
|
15
16
|
const res = await DocumentsService.instance.service?.call({ url: '/participant/listBySubjectId', data: {}, type: 'get' }) as any;
|
|
@@ -23,12 +24,14 @@ export default function modalcomfirm(props: any) {
|
|
|
23
24
|
}, [])
|
|
24
25
|
const handleOk = useCallback(() => {
|
|
25
26
|
(async () => {
|
|
27
|
+
const note = targetList.find(item => item.participantId === targetId)
|
|
26
28
|
const data = selectItems.map((item: any) => {
|
|
27
29
|
return {
|
|
28
30
|
...item,
|
|
29
|
-
|
|
31
|
+
senderParticipantId: targetId,
|
|
30
32
|
privateList: [],
|
|
31
|
-
sendPublic: true
|
|
33
|
+
sendPublic: true,
|
|
34
|
+
senderParticipantNote: note && note.remarkName
|
|
32
35
|
};
|
|
33
36
|
});
|
|
34
37
|
const res = await DocumentsService.instance.service?.call({ url: '/schema/config/batchSend', data: data, type: 'post' }) as any;
|
|
@@ -39,16 +42,17 @@ export default function modalcomfirm(props: any) {
|
|
|
39
42
|
}
|
|
40
43
|
})()
|
|
41
44
|
}, [targetId]);
|
|
42
|
-
const gotoSendlist=useCallback(()=>{
|
|
45
|
+
const gotoSendlist = useCallback(() => {
|
|
43
46
|
controller.pipeline(async s => {
|
|
44
47
|
s.type = 2;
|
|
45
|
-
if(selectItems.length===1){
|
|
48
|
+
if (selectItems.length === 1) {
|
|
46
49
|
s.params = { configNumber: selectItems[0].configNumber }
|
|
47
50
|
}
|
|
48
51
|
history.push({ pathname: `/rulelist`, state: { type: 2 } })
|
|
49
52
|
})()
|
|
50
|
-
},[]);
|
|
53
|
+
}, []);
|
|
51
54
|
const targetSelect = useCallback((e) => {
|
|
55
|
+
|
|
52
56
|
controller.pipeline(async s => {
|
|
53
57
|
s.targetId = e.target.value;
|
|
54
58
|
})()
|
|
@@ -74,7 +78,7 @@ export default function modalcomfirm(props: any) {
|
|
|
74
78
|
return <Radio style={radioStyle as any} key={key} value={item.participantId} >
|
|
75
79
|
|
|
76
80
|
<div style={{ display: 'flex', flexDirection: 'column', alignContent: 'flex-start' }}>
|
|
77
|
-
<span>{item.remarkName}
|
|
81
|
+
<span>{item.remarkName}</span>
|
|
78
82
|
<span style={{ maxWidth: 460, overflow: 'hidden', textOverflow: 'ellipsis', display: 'block' }}>{item.participantId}</span>
|
|
79
83
|
</div>
|
|
80
84
|
</Radio>
|
|
@@ -164,16 +164,16 @@ export default () => {
|
|
|
164
164
|
title: "发送对象",
|
|
165
165
|
visible: true
|
|
166
166
|
},
|
|
167
|
-
|
|
167
|
+
senderParticipantId: {
|
|
168
168
|
type: "string",
|
|
169
169
|
title: "我司对应DID",
|
|
170
170
|
enum: didEnum
|
|
171
171
|
},
|
|
172
|
-
|
|
172
|
+
receiverParticipantId: {
|
|
173
173
|
type: "string",
|
|
174
174
|
title: "接受对象",
|
|
175
175
|
},
|
|
176
|
-
|
|
176
|
+
receiverCompany: {
|
|
177
177
|
type: "string",
|
|
178
178
|
title: "接受对象所属公司",
|
|
179
179
|
},
|
|
@@ -143,10 +143,7 @@ export default function validaterule(props: any) {
|
|
|
143
143
|
controller.pipeline(async s => {
|
|
144
144
|
s.selectedRowKey = data;
|
|
145
145
|
})()
|
|
146
|
-
|
|
147
|
-
if (res.res) {
|
|
148
|
-
handleCancel(true);
|
|
149
|
-
}
|
|
146
|
+
handleCancel(true);
|
|
150
147
|
})()
|
|
151
148
|
}, []);
|
|
152
149
|
const handleCancel = useCallback((value: boolean = false) => {
|
|
@@ -15,7 +15,7 @@ export default function Rule(props: any) {
|
|
|
15
15
|
const [form] = Form.useForm();
|
|
16
16
|
const [visible, setVisible] = useState(false);
|
|
17
17
|
const [targetId, setTarget] = useState();
|
|
18
|
-
const [targetList, setList] = useState([]);
|
|
18
|
+
const [targetList, setList] = useState<any[]>([]);
|
|
19
19
|
// const [status, setStatus] = useState(0);
|
|
20
20
|
// const [first, setFirst] = useState(true);
|
|
21
21
|
const [hasChange, setChange] = useState(false);
|
|
@@ -157,8 +157,8 @@ export default function Rule(props: any) {
|
|
|
157
157
|
setRecord(res.res);
|
|
158
158
|
if (publish) {
|
|
159
159
|
onSendCheck();
|
|
160
|
-
|
|
161
|
-
}else{
|
|
160
|
+
|
|
161
|
+
} else {
|
|
162
162
|
history.push({ pathname: `/rulelist`, state: { type: 1 } })
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -178,17 +178,19 @@ export default function Rule(props: any) {
|
|
|
178
178
|
if (res.res) {
|
|
179
179
|
setVisible(true);
|
|
180
180
|
setList(res.res);
|
|
181
|
-
|
|
181
|
+
|
|
182
182
|
}
|
|
183
183
|
})()
|
|
184
184
|
}, []);
|
|
185
185
|
const handleOk = useCallback(() => {
|
|
186
186
|
(async () => {
|
|
187
|
+
const note = targetList.find(item => item.participantId === targetId)
|
|
187
188
|
const data = {
|
|
188
189
|
...record,
|
|
189
|
-
|
|
190
|
+
senderParticipantId: targetId,
|
|
190
191
|
privateList: [],
|
|
191
|
-
sendPublic: true
|
|
192
|
+
sendPublic: true,
|
|
193
|
+
senderParticipantNote: note && note.remarkName
|
|
192
194
|
}
|
|
193
195
|
const res = await controller.batchsend([data]);
|
|
194
196
|
if (res.res) {
|