kts-components-document-access-point 1.3.7 → 1.3.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/DocumentWhiteList/interface/index.d.ts +2 -0
- package/dist/index.esm.js +136 -122
- package/dist/index.js +136 -122
- package/package.json +2 -2
- package/src/DocumentWhiteList/control/state/index.ts +2 -2
- package/src/DocumentWhiteList/interface/index.ts +2 -0
- package/src/DocumentWhiteList/ui/main/black.tsx +8 -12
- package/src/DocumentWhiteList/ui/main/index.tsx +4 -4
- package/src/DocumentWhiteList/ui/main/white.tsx +9 -13
- package/src/DocumentWhiteList/ui/pageheader/BlackHeader.tsx +2 -0
- package/src/DocumentWhiteList/ui/pageheader/WhiteHeader.tsx +3 -2
- package/src/DocumentsCont/___demo___/base/index.tsx +1 -1
- package/src/DocumentsEdit/ui/AddPropertyButton/index.tsx +1 -1
- package/src/DocumentsEdit/ui/EditProperty/index.tsx +1 -1
- package/src/DocumentsEdit/ui/EditRule/ui/AddRuleButton/index.tsx +1 -1
- package/src/DocumentsEdit/ui/EditRule/ui/DelRuleButton/index.tsx +7 -6
- package/src/DocumentsList/ui/ModalComfirm/index.tsx +1 -0
- package/src/DocumentsList/ui/PageHeader/index.tsx +3 -2
- package/src/DocumentsList/ui/RuleTable/index.tsx +1 -1
- package/src/DocumentsList/ui/sendlist/index.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1183,8 +1183,8 @@ var DrawerBody = function DrawerBody(props) {
|
|
|
1183
1183
|
required: true,
|
|
1184
1184
|
message: '请输入字段名'
|
|
1185
1185
|
}, {
|
|
1186
|
-
max:
|
|
1187
|
-
message: '只能输入
|
|
1186
|
+
max: 50,
|
|
1187
|
+
message: '只能输入50个字符'
|
|
1188
1188
|
}, {
|
|
1189
1189
|
validator: function validator(_, value) {
|
|
1190
1190
|
if (!value) return Promise.resolve();
|
|
@@ -1861,8 +1861,8 @@ var EditProperty = (function () {
|
|
|
1861
1861
|
required: true,
|
|
1862
1862
|
message: '请输入显示名称'
|
|
1863
1863
|
}, {
|
|
1864
|
-
max:
|
|
1865
|
-
message: '只能输入
|
|
1864
|
+
max: 50,
|
|
1865
|
+
message: '只能输入50个字符'
|
|
1866
1866
|
}]
|
|
1867
1867
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
1868
1868
|
placeholder: "\u8BF7\u8F93\u5165\u663E\u793A\u540D\u79F0"
|
|
@@ -2014,7 +2014,7 @@ var AddRuleButton$1 = (function () {
|
|
|
2014
2014
|
rules.forEach(function (e) {
|
|
2015
2015
|
if (e._index > sum) sum = e._index;
|
|
2016
2016
|
});
|
|
2017
|
-
return sum;
|
|
2017
|
+
return parseInt("".concat(sum));
|
|
2018
2018
|
}, []);
|
|
2019
2019
|
var onClick = React.useCallback(function () {
|
|
2020
2020
|
controller.pipeline( /*#__PURE__*/function () {
|
|
@@ -2511,9 +2511,8 @@ var DelRuleButton = (function (props) {
|
|
|
2511
2511
|
e.stopPropagation();
|
|
2512
2512
|
controller.pipeline( /*#__PURE__*/function () {
|
|
2513
2513
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
2514
|
-
var _s$ruleState$ruleProp, _s$ruleState$ruleProp2;
|
|
2514
|
+
var _s$ruleState$ruleProp, _s$ruleState$ruleProp2, _s$ruleState$ruleProp3, _s$ruleState$ruleProp4, _s$ruleState$ruleProp5, _s$ruleState$ruleProp6;
|
|
2515
2515
|
|
|
2516
|
-
var rules;
|
|
2517
2516
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2518
2517
|
while (1) {
|
|
2519
2518
|
switch (_context.prev = _context.next) {
|
|
@@ -2526,11 +2525,15 @@ var DelRuleButton = (function (props) {
|
|
|
2526
2525
|
return _context.abrupt("return");
|
|
2527
2526
|
|
|
2528
2527
|
case 2:
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2528
|
+
if (s.ruleState.ruleProperties.ref.items) {
|
|
2529
|
+
(_s$ruleState$ruleProp = s.ruleState.ruleProperties.ref.items.rules) === null || _s$ruleState$ruleProp === void 0 ? void 0 : _s$ruleState$ruleProp.splice(props.index, 1);
|
|
2530
|
+
s.ruleState.ruleProperties.ref.items.rules = (_s$ruleState$ruleProp2 = (_s$ruleState$ruleProp3 = s.ruleState.ruleProperties.ref.items.rules) === null || _s$ruleState$ruleProp3 === void 0 ? void 0 : _s$ruleState$ruleProp3.slice()) !== null && _s$ruleState$ruleProp2 !== void 0 ? _s$ruleState$ruleProp2 : [];
|
|
2531
|
+
} else {
|
|
2532
|
+
(_s$ruleState$ruleProp4 = s.ruleState.ruleProperties.ref.rules) === null || _s$ruleState$ruleProp4 === void 0 ? void 0 : _s$ruleState$ruleProp4.splice(props.index, 1);
|
|
2533
|
+
s.ruleState.ruleProperties.ref.rules = (_s$ruleState$ruleProp5 = (_s$ruleState$ruleProp6 = s.ruleState.ruleProperties.ref.rules) === null || _s$ruleState$ruleProp6 === void 0 ? void 0 : _s$ruleState$ruleProp6.slice()) !== null && _s$ruleState$ruleProp5 !== void 0 ? _s$ruleState$ruleProp5 : [];
|
|
2534
|
+
}
|
|
2532
2535
|
|
|
2533
|
-
case
|
|
2536
|
+
case 3:
|
|
2534
2537
|
case "end":
|
|
2535
2538
|
return _context.stop();
|
|
2536
2539
|
}
|
|
@@ -2544,14 +2547,10 @@ var DelRuleButton = (function (props) {
|
|
|
2544
2547
|
}())();
|
|
2545
2548
|
}, [controller, props.index]);
|
|
2546
2549
|
if (readOnly) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
2547
|
-
return (
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
className: "ktsAntX-btn-dangerous ktsAntX-btn-link",
|
|
2552
|
-
onClick: onClick
|
|
2553
|
-
}, "\u5220\u9664")
|
|
2554
|
-
);
|
|
2550
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
2551
|
+
className: "ktsAntX-btn-dangerous ktsAntX-btn-link",
|
|
2552
|
+
onClick: onClick
|
|
2553
|
+
}, "\u5220\u9664");
|
|
2555
2554
|
});
|
|
2556
2555
|
|
|
2557
2556
|
var Panel = Collapse.Panel;
|
|
@@ -3088,6 +3087,7 @@ function modalcomfirm(props) {
|
|
|
3088
3087
|
s.params = {
|
|
3089
3088
|
configNumber: selectItems[0].configNumber
|
|
3090
3089
|
};
|
|
3090
|
+
s.selectedRowKey = [];
|
|
3091
3091
|
}
|
|
3092
3092
|
|
|
3093
3093
|
history.push({
|
|
@@ -3286,7 +3286,8 @@ var PageHeader = (function () {
|
|
|
3286
3286
|
}, []);
|
|
3287
3287
|
var onSearchFormSubmit = React.useCallback(function (value) {
|
|
3288
3288
|
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3289
|
-
typeList: value['typeList'] && [value['typeList']]
|
|
3289
|
+
typeList: value['typeList'] && [value['typeList']],
|
|
3290
|
+
pageNum: 1
|
|
3290
3291
|
});
|
|
3291
3292
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3292
3293
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
@@ -3623,6 +3624,7 @@ var PageHeader = (function () {
|
|
|
3623
3624
|
}, /*#__PURE__*/React.createElement(PageHeaderFoot, {
|
|
3624
3625
|
expandLeft: topExpand(),
|
|
3625
3626
|
expandRight: [type === 1 && /*#__PURE__*/React.createElement(Button$1, {
|
|
3627
|
+
disabled: selectedRowKey.length === 0,
|
|
3626
3628
|
key: "1",
|
|
3627
3629
|
onClick: batchSend,
|
|
3628
3630
|
style: {
|
|
@@ -3700,7 +3702,7 @@ function validaterule(props) {
|
|
|
3700
3702
|
_context.next = 2;
|
|
3701
3703
|
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
3702
3704
|
url: '/schema/config/queryConfigSchemaPage',
|
|
3703
|
-
data: _objectSpread2(_objectSpread2({},
|
|
3705
|
+
data: _objectSpread2(_objectSpread2({}, pageParams), params),
|
|
3704
3706
|
type: 'post'
|
|
3705
3707
|
});
|
|
3706
3708
|
|
|
@@ -4120,7 +4122,7 @@ function validaterule$1(props) {
|
|
|
4120
4122
|
_context.next = 2;
|
|
4121
4123
|
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
4122
4124
|
url: '/schema/config/querySendRecordPage',
|
|
4123
|
-
data: _objectSpread2(_objectSpread2({},
|
|
4125
|
+
data: _objectSpread2(_objectSpread2({}, pageParams), params),
|
|
4124
4126
|
type: 'post'
|
|
4125
4127
|
});
|
|
4126
4128
|
|
|
@@ -5638,8 +5640,14 @@ var ControllerState$1 = function ControllerState() {
|
|
|
5638
5640
|
pageSize: 10,
|
|
5639
5641
|
pageNum: 1
|
|
5640
5642
|
};
|
|
5641
|
-
this.params = {
|
|
5642
|
-
|
|
5643
|
+
this.params = {
|
|
5644
|
+
pageNum: 1,
|
|
5645
|
+
pageSize: 10
|
|
5646
|
+
};
|
|
5647
|
+
this.whiteParams = {
|
|
5648
|
+
pageNum: 1,
|
|
5649
|
+
pageSize: 10
|
|
5650
|
+
};
|
|
5643
5651
|
this.visible = false;
|
|
5644
5652
|
this.schema = void 0;
|
|
5645
5653
|
this.targetId = '';
|
|
@@ -6307,7 +6315,10 @@ var Header = (function () {
|
|
|
6307
6315
|
return s.didlist;
|
|
6308
6316
|
}, []);
|
|
6309
6317
|
var onSearchFormSubmit = React.useCallback(function (value) {
|
|
6310
|
-
value = _objectSpread2({}, value)
|
|
6318
|
+
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
6319
|
+
pageNum: 1,
|
|
6320
|
+
pageSize: 10
|
|
6321
|
+
});
|
|
6311
6322
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6312
6323
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
6313
6324
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -6571,27 +6582,37 @@ function Rule$1(props) {
|
|
|
6571
6582
|
}),
|
|
6572
6583
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6573
6584
|
pageMeta = _useState2[0],
|
|
6574
|
-
setpageMeta = _useState2[1];
|
|
6585
|
+
setpageMeta = _useState2[1]; // const [pageParams, setpageParams] = useState<{ pageSize?: number, pageNum?: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
6575
6586
|
|
|
6576
|
-
var _useState3 = useState({
|
|
6577
|
-
pageSize: 10,
|
|
6578
|
-
pageNum: 1
|
|
6579
|
-
}),
|
|
6580
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
6581
|
-
pageParams = _useState4[0],
|
|
6582
|
-
setpageParams = _useState4[1];
|
|
6583
6587
|
|
|
6584
6588
|
var whiteParams = controller.useMemo(function (s) {
|
|
6585
6589
|
return s.whiteParams;
|
|
6586
6590
|
}, []);
|
|
6591
|
+
var onPageChange = useCallback(function (pageNum, pageSize) {
|
|
6592
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
6593
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
6594
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
6595
|
+
while (1) {
|
|
6596
|
+
switch (_context.prev = _context.next) {
|
|
6597
|
+
case 0:
|
|
6598
|
+
s.whiteParams = _objectSpread2(_objectSpread2({}, s.whiteParams), {}, {
|
|
6599
|
+
pageNum: pageNum,
|
|
6600
|
+
pageSize: pageSize
|
|
6601
|
+
});
|
|
6587
6602
|
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6603
|
+
case 1:
|
|
6604
|
+
case "end":
|
|
6605
|
+
return _context.stop();
|
|
6606
|
+
}
|
|
6607
|
+
}
|
|
6608
|
+
}, _callee);
|
|
6609
|
+
}));
|
|
6594
6610
|
|
|
6611
|
+
return function (_x) {
|
|
6612
|
+
return _ref.apply(this, arguments);
|
|
6613
|
+
};
|
|
6614
|
+
}())();
|
|
6615
|
+
}, []);
|
|
6595
6616
|
var columns = useMemo(function () {
|
|
6596
6617
|
return [{
|
|
6597
6618
|
title: 'DID',
|
|
@@ -6667,82 +6688,79 @@ function Rule$1(props) {
|
|
|
6667
6688
|
}];
|
|
6668
6689
|
}, []);
|
|
6669
6690
|
var onEnablehander = useCallback(function (type, record) {
|
|
6670
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6671
|
-
var res
|
|
6672
|
-
return regeneratorRuntime.wrap(function
|
|
6691
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
6692
|
+
var res;
|
|
6693
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
6673
6694
|
while (1) {
|
|
6674
|
-
switch (
|
|
6695
|
+
switch (_context2.prev = _context2.next) {
|
|
6675
6696
|
case 0:
|
|
6676
|
-
|
|
6697
|
+
_context2.next = 2;
|
|
6677
6698
|
return controller.enablewhitelist({
|
|
6678
6699
|
flag: type,
|
|
6679
6700
|
didList: [record]
|
|
6680
6701
|
});
|
|
6681
6702
|
|
|
6682
6703
|
case 2:
|
|
6683
|
-
res =
|
|
6704
|
+
res = _context2.sent;
|
|
6684
6705
|
|
|
6685
6706
|
if (res.res) {
|
|
6686
|
-
|
|
6687
|
-
setpageParams(data);
|
|
6707
|
+
message.success('操作成功');
|
|
6688
6708
|
}
|
|
6689
6709
|
|
|
6690
6710
|
case 4:
|
|
6691
6711
|
case "end":
|
|
6692
|
-
return
|
|
6712
|
+
return _context2.stop();
|
|
6693
6713
|
}
|
|
6694
6714
|
}
|
|
6695
|
-
},
|
|
6715
|
+
}, _callee2);
|
|
6696
6716
|
}))();
|
|
6697
6717
|
}, []);
|
|
6698
6718
|
useEffect(function () {
|
|
6699
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6719
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
6700
6720
|
var res;
|
|
6701
|
-
return regeneratorRuntime.wrap(function
|
|
6721
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
6702
6722
|
while (1) {
|
|
6703
|
-
switch (
|
|
6723
|
+
switch (_context3.prev = _context3.next) {
|
|
6704
6724
|
case 0:
|
|
6705
|
-
|
|
6706
|
-
return controller.getWhitelist(
|
|
6725
|
+
_context3.next = 2;
|
|
6726
|
+
return controller.getWhitelist(whiteParams);
|
|
6707
6727
|
|
|
6708
6728
|
case 2:
|
|
6709
|
-
res =
|
|
6729
|
+
res = _context3.sent;
|
|
6710
6730
|
|
|
6711
6731
|
if (res.res) {
|
|
6712
|
-
setpageMeta(res.res.pageMeta);
|
|
6713
|
-
// s.whiteblacklist = res.res.items || [];
|
|
6714
|
-
// })()
|
|
6732
|
+
setpageMeta(res.res.pageMeta);
|
|
6715
6733
|
}
|
|
6716
6734
|
|
|
6717
6735
|
case 4:
|
|
6718
6736
|
case "end":
|
|
6719
|
-
return
|
|
6737
|
+
return _context3.stop();
|
|
6720
6738
|
}
|
|
6721
6739
|
}
|
|
6722
|
-
},
|
|
6740
|
+
}, _callee3);
|
|
6723
6741
|
}))();
|
|
6724
6742
|
}, [whiteParams]);
|
|
6725
6743
|
var rowSelection = useMemo(function () {
|
|
6726
6744
|
return {
|
|
6727
6745
|
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
6728
6746
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6729
|
-
var
|
|
6730
|
-
return regeneratorRuntime.wrap(function
|
|
6747
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(s) {
|
|
6748
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
6731
6749
|
while (1) {
|
|
6732
|
-
switch (
|
|
6750
|
+
switch (_context4.prev = _context4.next) {
|
|
6733
6751
|
case 0:
|
|
6734
6752
|
s.selectedRowKey = selectedRows;
|
|
6735
6753
|
|
|
6736
6754
|
case 1:
|
|
6737
6755
|
case "end":
|
|
6738
|
-
return
|
|
6756
|
+
return _context4.stop();
|
|
6739
6757
|
}
|
|
6740
6758
|
}
|
|
6741
|
-
},
|
|
6759
|
+
}, _callee4);
|
|
6742
6760
|
}));
|
|
6743
6761
|
|
|
6744
|
-
return function (
|
|
6745
|
-
return
|
|
6762
|
+
return function (_x2) {
|
|
6763
|
+
return _ref4.apply(this, arguments);
|
|
6746
6764
|
};
|
|
6747
6765
|
}())();
|
|
6748
6766
|
}
|
|
@@ -6806,7 +6824,10 @@ var Header$1 = (function () {
|
|
|
6806
6824
|
setNote = _useState4[1];
|
|
6807
6825
|
|
|
6808
6826
|
var onSearchFormSubmit = React.useCallback(function (value) {
|
|
6809
|
-
value = _objectSpread2({}, value)
|
|
6827
|
+
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
6828
|
+
pageNum: 1,
|
|
6829
|
+
pageSize: 10
|
|
6830
|
+
});
|
|
6810
6831
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6811
6832
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
6812
6833
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -7025,15 +7046,8 @@ function Rule$2(props) {
|
|
|
7025
7046
|
}),
|
|
7026
7047
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7027
7048
|
pageMeta = _useState2[0],
|
|
7028
|
-
setpageMeta = _useState2[1];
|
|
7029
|
-
|
|
7030
|
-
var _useState3 = useState({
|
|
7031
|
-
pageSize: 10,
|
|
7032
|
-
pageNum: 1
|
|
7033
|
-
}),
|
|
7034
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
7035
|
-
pageParams = _useState4[0],
|
|
7036
|
-
setpageParams = _useState4[1]; // const pageMeta = controller.useMemo((s) => s.pageMeta, []);
|
|
7049
|
+
setpageMeta = _useState2[1]; // const [pageParams, setpageParams] = useState<{ pageSize?: number, pageNum?: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
7050
|
+
// const pageMeta = controller.useMemo((s) => s.pageMeta, []);
|
|
7037
7051
|
|
|
7038
7052
|
|
|
7039
7053
|
var params = controller.useMemo(function (s) {
|
|
@@ -7041,10 +7055,29 @@ function Rule$2(props) {
|
|
|
7041
7055
|
}, []);
|
|
7042
7056
|
|
|
7043
7057
|
var onPageChange = function onPageChange(pageNum, pageSize) {
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7058
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
7059
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
7060
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7061
|
+
while (1) {
|
|
7062
|
+
switch (_context.prev = _context.next) {
|
|
7063
|
+
case 0:
|
|
7064
|
+
s.params = _objectSpread2(_objectSpread2({}, s.params), {}, {
|
|
7065
|
+
pageNum: pageNum,
|
|
7066
|
+
pageSize: pageSize
|
|
7067
|
+
});
|
|
7068
|
+
|
|
7069
|
+
case 1:
|
|
7070
|
+
case "end":
|
|
7071
|
+
return _context.stop();
|
|
7072
|
+
}
|
|
7073
|
+
}
|
|
7074
|
+
}, _callee);
|
|
7075
|
+
}));
|
|
7076
|
+
|
|
7077
|
+
return function (_x) {
|
|
7078
|
+
return _ref.apply(this, arguments);
|
|
7079
|
+
};
|
|
7080
|
+
}())();
|
|
7048
7081
|
};
|
|
7049
7082
|
|
|
7050
7083
|
var columns = useMemo(function () {
|
|
@@ -7122,32 +7155,31 @@ function Rule$2(props) {
|
|
|
7122
7155
|
}];
|
|
7123
7156
|
}, []);
|
|
7124
7157
|
var onEnablehander = useCallback(function (type, record) {
|
|
7125
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
7126
|
-
var res
|
|
7127
|
-
return regeneratorRuntime.wrap(function
|
|
7158
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
7159
|
+
var res;
|
|
7160
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7128
7161
|
while (1) {
|
|
7129
|
-
switch (
|
|
7162
|
+
switch (_context2.prev = _context2.next) {
|
|
7130
7163
|
case 0:
|
|
7131
|
-
|
|
7164
|
+
_context2.next = 2;
|
|
7132
7165
|
return controller.enableblacklist({
|
|
7133
7166
|
flag: type,
|
|
7134
7167
|
didList: [record]
|
|
7135
7168
|
});
|
|
7136
7169
|
|
|
7137
7170
|
case 2:
|
|
7138
|
-
res =
|
|
7171
|
+
res = _context2.sent;
|
|
7139
7172
|
|
|
7140
7173
|
if (res.res) {
|
|
7141
|
-
|
|
7142
|
-
setpageParams(data);
|
|
7174
|
+
message$1.success('操作成功');
|
|
7143
7175
|
}
|
|
7144
7176
|
|
|
7145
7177
|
case 4:
|
|
7146
7178
|
case "end":
|
|
7147
|
-
return
|
|
7179
|
+
return _context2.stop();
|
|
7148
7180
|
}
|
|
7149
7181
|
}
|
|
7150
|
-
},
|
|
7182
|
+
}, _callee2);
|
|
7151
7183
|
}))();
|
|
7152
7184
|
}, []);
|
|
7153
7185
|
useEffect(function () {
|
|
@@ -7158,47 +7190,23 @@ function Rule$2(props) {
|
|
|
7158
7190
|
switch (_context3.prev = _context3.next) {
|
|
7159
7191
|
case 0:
|
|
7160
7192
|
_context3.next = 2;
|
|
7161
|
-
return controller.getBlacklist(
|
|
7193
|
+
return controller.getBlacklist(params);
|
|
7162
7194
|
|
|
7163
7195
|
case 2:
|
|
7164
7196
|
res = _context3.sent;
|
|
7165
7197
|
|
|
7166
|
-
if (
|
|
7167
|
-
|
|
7168
|
-
break;
|
|
7198
|
+
if (res.res) {
|
|
7199
|
+
setpageMeta(res.res.pageMeta);
|
|
7169
7200
|
}
|
|
7170
7201
|
|
|
7171
|
-
|
|
7172
|
-
_context3.next = 7;
|
|
7173
|
-
return controller.pipeline( /*#__PURE__*/function () {
|
|
7174
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(s) {
|
|
7175
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7176
|
-
while (1) {
|
|
7177
|
-
switch (_context2.prev = _context2.next) {
|
|
7178
|
-
case 0:
|
|
7179
|
-
s.blacklist = res.res.items || [];
|
|
7180
|
-
|
|
7181
|
-
case 1:
|
|
7182
|
-
case "end":
|
|
7183
|
-
return _context2.stop();
|
|
7184
|
-
}
|
|
7185
|
-
}
|
|
7186
|
-
}, _callee2);
|
|
7187
|
-
}));
|
|
7188
|
-
|
|
7189
|
-
return function (_x) {
|
|
7190
|
-
return _ref3.apply(this, arguments);
|
|
7191
|
-
};
|
|
7192
|
-
}())();
|
|
7193
|
-
|
|
7194
|
-
case 7:
|
|
7202
|
+
case 4:
|
|
7195
7203
|
case "end":
|
|
7196
7204
|
return _context3.stop();
|
|
7197
7205
|
}
|
|
7198
7206
|
}
|
|
7199
7207
|
}, _callee3);
|
|
7200
7208
|
}))();
|
|
7201
|
-
}, [params
|
|
7209
|
+
}, [params]);
|
|
7202
7210
|
var rowSelection = useMemo(function () {
|
|
7203
7211
|
return {
|
|
7204
7212
|
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
@@ -7363,8 +7371,14 @@ function Rule$4(props) {
|
|
|
7363
7371
|
case 0:
|
|
7364
7372
|
s.selectedRowKey = [];
|
|
7365
7373
|
s.selectedBlackRowKey = [];
|
|
7366
|
-
s.params = {
|
|
7367
|
-
|
|
7374
|
+
s.params = {
|
|
7375
|
+
pageNum: 1,
|
|
7376
|
+
pageSize: 10
|
|
7377
|
+
};
|
|
7378
|
+
s.whiteParams = {
|
|
7379
|
+
pageNum: 1,
|
|
7380
|
+
pageSize: 10
|
|
7381
|
+
};
|
|
7368
7382
|
|
|
7369
7383
|
case 4:
|
|
7370
7384
|
case "end":
|
package/dist/index.js
CHANGED
|
@@ -1197,8 +1197,8 @@ var DrawerBody = function DrawerBody(props) {
|
|
|
1197
1197
|
required: true,
|
|
1198
1198
|
message: '请输入字段名'
|
|
1199
1199
|
}, {
|
|
1200
|
-
max:
|
|
1201
|
-
message: '只能输入
|
|
1200
|
+
max: 50,
|
|
1201
|
+
message: '只能输入50个字符'
|
|
1202
1202
|
}, {
|
|
1203
1203
|
validator: function validator(_, value) {
|
|
1204
1204
|
if (!value) return Promise.resolve();
|
|
@@ -1875,8 +1875,8 @@ var EditProperty = (function () {
|
|
|
1875
1875
|
required: true,
|
|
1876
1876
|
message: '请输入显示名称'
|
|
1877
1877
|
}, {
|
|
1878
|
-
max:
|
|
1879
|
-
message: '只能输入
|
|
1878
|
+
max: 50,
|
|
1879
|
+
message: '只能输入50个字符'
|
|
1880
1880
|
}]
|
|
1881
1881
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
1882
1882
|
placeholder: "\u8BF7\u8F93\u5165\u663E\u793A\u540D\u79F0"
|
|
@@ -2028,7 +2028,7 @@ var AddRuleButton$1 = (function () {
|
|
|
2028
2028
|
rules.forEach(function (e) {
|
|
2029
2029
|
if (e._index > sum) sum = e._index;
|
|
2030
2030
|
});
|
|
2031
|
-
return sum;
|
|
2031
|
+
return parseInt("".concat(sum));
|
|
2032
2032
|
}, []);
|
|
2033
2033
|
var onClick = React__default['default'].useCallback(function () {
|
|
2034
2034
|
controller.pipeline( /*#__PURE__*/function () {
|
|
@@ -2525,9 +2525,8 @@ var DelRuleButton = (function (props) {
|
|
|
2525
2525
|
e.stopPropagation();
|
|
2526
2526
|
controller.pipeline( /*#__PURE__*/function () {
|
|
2527
2527
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
2528
|
-
var _s$ruleState$ruleProp, _s$ruleState$ruleProp2;
|
|
2528
|
+
var _s$ruleState$ruleProp, _s$ruleState$ruleProp2, _s$ruleState$ruleProp3, _s$ruleState$ruleProp4, _s$ruleState$ruleProp5, _s$ruleState$ruleProp6;
|
|
2529
2529
|
|
|
2530
|
-
var rules;
|
|
2531
2530
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2532
2531
|
while (1) {
|
|
2533
2532
|
switch (_context.prev = _context.next) {
|
|
@@ -2540,11 +2539,15 @@ var DelRuleButton = (function (props) {
|
|
|
2540
2539
|
return _context.abrupt("return");
|
|
2541
2540
|
|
|
2542
2541
|
case 2:
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2542
|
+
if (s.ruleState.ruleProperties.ref.items) {
|
|
2543
|
+
(_s$ruleState$ruleProp = s.ruleState.ruleProperties.ref.items.rules) === null || _s$ruleState$ruleProp === void 0 ? void 0 : _s$ruleState$ruleProp.splice(props.index, 1);
|
|
2544
|
+
s.ruleState.ruleProperties.ref.items.rules = (_s$ruleState$ruleProp2 = (_s$ruleState$ruleProp3 = s.ruleState.ruleProperties.ref.items.rules) === null || _s$ruleState$ruleProp3 === void 0 ? void 0 : _s$ruleState$ruleProp3.slice()) !== null && _s$ruleState$ruleProp2 !== void 0 ? _s$ruleState$ruleProp2 : [];
|
|
2545
|
+
} else {
|
|
2546
|
+
(_s$ruleState$ruleProp4 = s.ruleState.ruleProperties.ref.rules) === null || _s$ruleState$ruleProp4 === void 0 ? void 0 : _s$ruleState$ruleProp4.splice(props.index, 1);
|
|
2547
|
+
s.ruleState.ruleProperties.ref.rules = (_s$ruleState$ruleProp5 = (_s$ruleState$ruleProp6 = s.ruleState.ruleProperties.ref.rules) === null || _s$ruleState$ruleProp6 === void 0 ? void 0 : _s$ruleState$ruleProp6.slice()) !== null && _s$ruleState$ruleProp5 !== void 0 ? _s$ruleState$ruleProp5 : [];
|
|
2548
|
+
}
|
|
2546
2549
|
|
|
2547
|
-
case
|
|
2550
|
+
case 3:
|
|
2548
2551
|
case "end":
|
|
2549
2552
|
return _context.stop();
|
|
2550
2553
|
}
|
|
@@ -2558,14 +2561,10 @@ var DelRuleButton = (function (props) {
|
|
|
2558
2561
|
}())();
|
|
2559
2562
|
}, [controller, props.index]);
|
|
2560
2563
|
if (readOnly) return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
2561
|
-
return (
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
className: "ktsAntX-btn-dangerous ktsAntX-btn-link",
|
|
2566
|
-
onClick: onClick
|
|
2567
|
-
}, "\u5220\u9664")
|
|
2568
|
-
);
|
|
2564
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
2565
|
+
className: "ktsAntX-btn-dangerous ktsAntX-btn-link",
|
|
2566
|
+
onClick: onClick
|
|
2567
|
+
}, "\u5220\u9664");
|
|
2569
2568
|
});
|
|
2570
2569
|
|
|
2571
2570
|
var Panel = ktsComponentsAntdX4.Collapse.Panel;
|
|
@@ -3102,6 +3101,7 @@ function modalcomfirm(props) {
|
|
|
3102
3101
|
s.params = {
|
|
3103
3102
|
configNumber: selectItems[0].configNumber
|
|
3104
3103
|
};
|
|
3104
|
+
s.selectedRowKey = [];
|
|
3105
3105
|
}
|
|
3106
3106
|
|
|
3107
3107
|
history.push({
|
|
@@ -3300,7 +3300,8 @@ var PageHeader = (function () {
|
|
|
3300
3300
|
}, []);
|
|
3301
3301
|
var onSearchFormSubmit = React__default['default'].useCallback(function (value) {
|
|
3302
3302
|
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3303
|
-
typeList: value['typeList'] && [value['typeList']]
|
|
3303
|
+
typeList: value['typeList'] && [value['typeList']],
|
|
3304
|
+
pageNum: 1
|
|
3304
3305
|
});
|
|
3305
3306
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3306
3307
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
@@ -3637,6 +3638,7 @@ var PageHeader = (function () {
|
|
|
3637
3638
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.PageHeaderFoot, {
|
|
3638
3639
|
expandLeft: topExpand(),
|
|
3639
3640
|
expandRight: [type === 1 && /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
3641
|
+
disabled: selectedRowKey.length === 0,
|
|
3640
3642
|
key: "1",
|
|
3641
3643
|
onClick: batchSend,
|
|
3642
3644
|
style: {
|
|
@@ -3714,7 +3716,7 @@ function validaterule(props) {
|
|
|
3714
3716
|
_context.next = 2;
|
|
3715
3717
|
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
3716
3718
|
url: '/schema/config/queryConfigSchemaPage',
|
|
3717
|
-
data: _objectSpread2(_objectSpread2({},
|
|
3719
|
+
data: _objectSpread2(_objectSpread2({}, pageParams), params),
|
|
3718
3720
|
type: 'post'
|
|
3719
3721
|
});
|
|
3720
3722
|
|
|
@@ -4134,7 +4136,7 @@ function validaterule$1(props) {
|
|
|
4134
4136
|
_context.next = 2;
|
|
4135
4137
|
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
4136
4138
|
url: '/schema/config/querySendRecordPage',
|
|
4137
|
-
data: _objectSpread2(_objectSpread2({},
|
|
4139
|
+
data: _objectSpread2(_objectSpread2({}, pageParams), params),
|
|
4138
4140
|
type: 'post'
|
|
4139
4141
|
});
|
|
4140
4142
|
|
|
@@ -5652,8 +5654,14 @@ var ControllerState$1 = function ControllerState() {
|
|
|
5652
5654
|
pageSize: 10,
|
|
5653
5655
|
pageNum: 1
|
|
5654
5656
|
};
|
|
5655
|
-
this.params = {
|
|
5656
|
-
|
|
5657
|
+
this.params = {
|
|
5658
|
+
pageNum: 1,
|
|
5659
|
+
pageSize: 10
|
|
5660
|
+
};
|
|
5661
|
+
this.whiteParams = {
|
|
5662
|
+
pageNum: 1,
|
|
5663
|
+
pageSize: 10
|
|
5664
|
+
};
|
|
5657
5665
|
this.visible = false;
|
|
5658
5666
|
this.schema = void 0;
|
|
5659
5667
|
this.targetId = '';
|
|
@@ -6321,7 +6329,10 @@ var Header = (function () {
|
|
|
6321
6329
|
return s.didlist;
|
|
6322
6330
|
}, []);
|
|
6323
6331
|
var onSearchFormSubmit = React__default['default'].useCallback(function (value) {
|
|
6324
|
-
value = _objectSpread2({}, value)
|
|
6332
|
+
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
6333
|
+
pageNum: 1,
|
|
6334
|
+
pageSize: 10
|
|
6335
|
+
});
|
|
6325
6336
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6326
6337
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
6327
6338
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -6585,27 +6596,37 @@ function Rule$1(props) {
|
|
|
6585
6596
|
}),
|
|
6586
6597
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6587
6598
|
pageMeta = _useState2[0],
|
|
6588
|
-
setpageMeta = _useState2[1];
|
|
6599
|
+
setpageMeta = _useState2[1]; // const [pageParams, setpageParams] = useState<{ pageSize?: number, pageNum?: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
6589
6600
|
|
|
6590
|
-
var _useState3 = React.useState({
|
|
6591
|
-
pageSize: 10,
|
|
6592
|
-
pageNum: 1
|
|
6593
|
-
}),
|
|
6594
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
6595
|
-
pageParams = _useState4[0],
|
|
6596
|
-
setpageParams = _useState4[1];
|
|
6597
6601
|
|
|
6598
6602
|
var whiteParams = controller.useMemo(function (s) {
|
|
6599
6603
|
return s.whiteParams;
|
|
6600
6604
|
}, []);
|
|
6605
|
+
var onPageChange = React.useCallback(function (pageNum, pageSize) {
|
|
6606
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
6607
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
6608
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
6609
|
+
while (1) {
|
|
6610
|
+
switch (_context.prev = _context.next) {
|
|
6611
|
+
case 0:
|
|
6612
|
+
s.whiteParams = _objectSpread2(_objectSpread2({}, s.whiteParams), {}, {
|
|
6613
|
+
pageNum: pageNum,
|
|
6614
|
+
pageSize: pageSize
|
|
6615
|
+
});
|
|
6601
6616
|
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6617
|
+
case 1:
|
|
6618
|
+
case "end":
|
|
6619
|
+
return _context.stop();
|
|
6620
|
+
}
|
|
6621
|
+
}
|
|
6622
|
+
}, _callee);
|
|
6623
|
+
}));
|
|
6608
6624
|
|
|
6625
|
+
return function (_x) {
|
|
6626
|
+
return _ref.apply(this, arguments);
|
|
6627
|
+
};
|
|
6628
|
+
}())();
|
|
6629
|
+
}, []);
|
|
6609
6630
|
var columns = React.useMemo(function () {
|
|
6610
6631
|
return [{
|
|
6611
6632
|
title: 'DID',
|
|
@@ -6681,82 +6702,79 @@ function Rule$1(props) {
|
|
|
6681
6702
|
}];
|
|
6682
6703
|
}, []);
|
|
6683
6704
|
var onEnablehander = React.useCallback(function (type, record) {
|
|
6684
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6685
|
-
var res
|
|
6686
|
-
return regeneratorRuntime.wrap(function
|
|
6705
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
6706
|
+
var res;
|
|
6707
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
6687
6708
|
while (1) {
|
|
6688
|
-
switch (
|
|
6709
|
+
switch (_context2.prev = _context2.next) {
|
|
6689
6710
|
case 0:
|
|
6690
|
-
|
|
6711
|
+
_context2.next = 2;
|
|
6691
6712
|
return controller.enablewhitelist({
|
|
6692
6713
|
flag: type,
|
|
6693
6714
|
didList: [record]
|
|
6694
6715
|
});
|
|
6695
6716
|
|
|
6696
6717
|
case 2:
|
|
6697
|
-
res =
|
|
6718
|
+
res = _context2.sent;
|
|
6698
6719
|
|
|
6699
6720
|
if (res.res) {
|
|
6700
|
-
|
|
6701
|
-
setpageParams(data);
|
|
6721
|
+
ktsComponentsAntdX4.message.success('操作成功');
|
|
6702
6722
|
}
|
|
6703
6723
|
|
|
6704
6724
|
case 4:
|
|
6705
6725
|
case "end":
|
|
6706
|
-
return
|
|
6726
|
+
return _context2.stop();
|
|
6707
6727
|
}
|
|
6708
6728
|
}
|
|
6709
|
-
},
|
|
6729
|
+
}, _callee2);
|
|
6710
6730
|
}))();
|
|
6711
6731
|
}, []);
|
|
6712
6732
|
React.useEffect(function () {
|
|
6713
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6733
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
6714
6734
|
var res;
|
|
6715
|
-
return regeneratorRuntime.wrap(function
|
|
6735
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
6716
6736
|
while (1) {
|
|
6717
|
-
switch (
|
|
6737
|
+
switch (_context3.prev = _context3.next) {
|
|
6718
6738
|
case 0:
|
|
6719
|
-
|
|
6720
|
-
return controller.getWhitelist(
|
|
6739
|
+
_context3.next = 2;
|
|
6740
|
+
return controller.getWhitelist(whiteParams);
|
|
6721
6741
|
|
|
6722
6742
|
case 2:
|
|
6723
|
-
res =
|
|
6743
|
+
res = _context3.sent;
|
|
6724
6744
|
|
|
6725
6745
|
if (res.res) {
|
|
6726
|
-
setpageMeta(res.res.pageMeta);
|
|
6727
|
-
// s.whiteblacklist = res.res.items || [];
|
|
6728
|
-
// })()
|
|
6746
|
+
setpageMeta(res.res.pageMeta);
|
|
6729
6747
|
}
|
|
6730
6748
|
|
|
6731
6749
|
case 4:
|
|
6732
6750
|
case "end":
|
|
6733
|
-
return
|
|
6751
|
+
return _context3.stop();
|
|
6734
6752
|
}
|
|
6735
6753
|
}
|
|
6736
|
-
},
|
|
6754
|
+
}, _callee3);
|
|
6737
6755
|
}))();
|
|
6738
6756
|
}, [whiteParams]);
|
|
6739
6757
|
var rowSelection = React.useMemo(function () {
|
|
6740
6758
|
return {
|
|
6741
6759
|
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
6742
6760
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6743
|
-
var
|
|
6744
|
-
return regeneratorRuntime.wrap(function
|
|
6761
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(s) {
|
|
6762
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
6745
6763
|
while (1) {
|
|
6746
|
-
switch (
|
|
6764
|
+
switch (_context4.prev = _context4.next) {
|
|
6747
6765
|
case 0:
|
|
6748
6766
|
s.selectedRowKey = selectedRows;
|
|
6749
6767
|
|
|
6750
6768
|
case 1:
|
|
6751
6769
|
case "end":
|
|
6752
|
-
return
|
|
6770
|
+
return _context4.stop();
|
|
6753
6771
|
}
|
|
6754
6772
|
}
|
|
6755
|
-
},
|
|
6773
|
+
}, _callee4);
|
|
6756
6774
|
}));
|
|
6757
6775
|
|
|
6758
|
-
return function (
|
|
6759
|
-
return
|
|
6776
|
+
return function (_x2) {
|
|
6777
|
+
return _ref4.apply(this, arguments);
|
|
6760
6778
|
};
|
|
6761
6779
|
}())();
|
|
6762
6780
|
}
|
|
@@ -6820,7 +6838,10 @@ var Header$1 = (function () {
|
|
|
6820
6838
|
setNote = _useState4[1];
|
|
6821
6839
|
|
|
6822
6840
|
var onSearchFormSubmit = React__default['default'].useCallback(function (value) {
|
|
6823
|
-
value = _objectSpread2({}, value)
|
|
6841
|
+
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
6842
|
+
pageNum: 1,
|
|
6843
|
+
pageSize: 10
|
|
6844
|
+
});
|
|
6824
6845
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6825
6846
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
6826
6847
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -7039,15 +7060,8 @@ function Rule$2(props) {
|
|
|
7039
7060
|
}),
|
|
7040
7061
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7041
7062
|
pageMeta = _useState2[0],
|
|
7042
|
-
setpageMeta = _useState2[1];
|
|
7043
|
-
|
|
7044
|
-
var _useState3 = React.useState({
|
|
7045
|
-
pageSize: 10,
|
|
7046
|
-
pageNum: 1
|
|
7047
|
-
}),
|
|
7048
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
7049
|
-
pageParams = _useState4[0],
|
|
7050
|
-
setpageParams = _useState4[1]; // const pageMeta = controller.useMemo((s) => s.pageMeta, []);
|
|
7063
|
+
setpageMeta = _useState2[1]; // const [pageParams, setpageParams] = useState<{ pageSize?: number, pageNum?: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
7064
|
+
// const pageMeta = controller.useMemo((s) => s.pageMeta, []);
|
|
7051
7065
|
|
|
7052
7066
|
|
|
7053
7067
|
var params = controller.useMemo(function (s) {
|
|
@@ -7055,10 +7069,29 @@ function Rule$2(props) {
|
|
|
7055
7069
|
}, []);
|
|
7056
7070
|
|
|
7057
7071
|
var onPageChange = function onPageChange(pageNum, pageSize) {
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7072
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
7073
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
7074
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7075
|
+
while (1) {
|
|
7076
|
+
switch (_context.prev = _context.next) {
|
|
7077
|
+
case 0:
|
|
7078
|
+
s.params = _objectSpread2(_objectSpread2({}, s.params), {}, {
|
|
7079
|
+
pageNum: pageNum,
|
|
7080
|
+
pageSize: pageSize
|
|
7081
|
+
});
|
|
7082
|
+
|
|
7083
|
+
case 1:
|
|
7084
|
+
case "end":
|
|
7085
|
+
return _context.stop();
|
|
7086
|
+
}
|
|
7087
|
+
}
|
|
7088
|
+
}, _callee);
|
|
7089
|
+
}));
|
|
7090
|
+
|
|
7091
|
+
return function (_x) {
|
|
7092
|
+
return _ref.apply(this, arguments);
|
|
7093
|
+
};
|
|
7094
|
+
}())();
|
|
7062
7095
|
};
|
|
7063
7096
|
|
|
7064
7097
|
var columns = React.useMemo(function () {
|
|
@@ -7136,32 +7169,31 @@ function Rule$2(props) {
|
|
|
7136
7169
|
}];
|
|
7137
7170
|
}, []);
|
|
7138
7171
|
var onEnablehander = React.useCallback(function (type, record) {
|
|
7139
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
7140
|
-
var res
|
|
7141
|
-
return regeneratorRuntime.wrap(function
|
|
7172
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
7173
|
+
var res;
|
|
7174
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7142
7175
|
while (1) {
|
|
7143
|
-
switch (
|
|
7176
|
+
switch (_context2.prev = _context2.next) {
|
|
7144
7177
|
case 0:
|
|
7145
|
-
|
|
7178
|
+
_context2.next = 2;
|
|
7146
7179
|
return controller.enableblacklist({
|
|
7147
7180
|
flag: type,
|
|
7148
7181
|
didList: [record]
|
|
7149
7182
|
});
|
|
7150
7183
|
|
|
7151
7184
|
case 2:
|
|
7152
|
-
res =
|
|
7185
|
+
res = _context2.sent;
|
|
7153
7186
|
|
|
7154
7187
|
if (res.res) {
|
|
7155
|
-
|
|
7156
|
-
setpageParams(data);
|
|
7188
|
+
ktsXui.message.success('操作成功');
|
|
7157
7189
|
}
|
|
7158
7190
|
|
|
7159
7191
|
case 4:
|
|
7160
7192
|
case "end":
|
|
7161
|
-
return
|
|
7193
|
+
return _context2.stop();
|
|
7162
7194
|
}
|
|
7163
7195
|
}
|
|
7164
|
-
},
|
|
7196
|
+
}, _callee2);
|
|
7165
7197
|
}))();
|
|
7166
7198
|
}, []);
|
|
7167
7199
|
React.useEffect(function () {
|
|
@@ -7172,47 +7204,23 @@ function Rule$2(props) {
|
|
|
7172
7204
|
switch (_context3.prev = _context3.next) {
|
|
7173
7205
|
case 0:
|
|
7174
7206
|
_context3.next = 2;
|
|
7175
|
-
return controller.getBlacklist(
|
|
7207
|
+
return controller.getBlacklist(params);
|
|
7176
7208
|
|
|
7177
7209
|
case 2:
|
|
7178
7210
|
res = _context3.sent;
|
|
7179
7211
|
|
|
7180
|
-
if (
|
|
7181
|
-
|
|
7182
|
-
break;
|
|
7212
|
+
if (res.res) {
|
|
7213
|
+
setpageMeta(res.res.pageMeta);
|
|
7183
7214
|
}
|
|
7184
7215
|
|
|
7185
|
-
|
|
7186
|
-
_context3.next = 7;
|
|
7187
|
-
return controller.pipeline( /*#__PURE__*/function () {
|
|
7188
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(s) {
|
|
7189
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7190
|
-
while (1) {
|
|
7191
|
-
switch (_context2.prev = _context2.next) {
|
|
7192
|
-
case 0:
|
|
7193
|
-
s.blacklist = res.res.items || [];
|
|
7194
|
-
|
|
7195
|
-
case 1:
|
|
7196
|
-
case "end":
|
|
7197
|
-
return _context2.stop();
|
|
7198
|
-
}
|
|
7199
|
-
}
|
|
7200
|
-
}, _callee2);
|
|
7201
|
-
}));
|
|
7202
|
-
|
|
7203
|
-
return function (_x) {
|
|
7204
|
-
return _ref3.apply(this, arguments);
|
|
7205
|
-
};
|
|
7206
|
-
}())();
|
|
7207
|
-
|
|
7208
|
-
case 7:
|
|
7216
|
+
case 4:
|
|
7209
7217
|
case "end":
|
|
7210
7218
|
return _context3.stop();
|
|
7211
7219
|
}
|
|
7212
7220
|
}
|
|
7213
7221
|
}, _callee3);
|
|
7214
7222
|
}))();
|
|
7215
|
-
}, [params
|
|
7223
|
+
}, [params]);
|
|
7216
7224
|
var rowSelection = React.useMemo(function () {
|
|
7217
7225
|
return {
|
|
7218
7226
|
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
@@ -7377,8 +7385,14 @@ function Rule$4(props) {
|
|
|
7377
7385
|
case 0:
|
|
7378
7386
|
s.selectedRowKey = [];
|
|
7379
7387
|
s.selectedBlackRowKey = [];
|
|
7380
|
-
s.params = {
|
|
7381
|
-
|
|
7388
|
+
s.params = {
|
|
7389
|
+
pageNum: 1,
|
|
7390
|
+
pageSize: 10
|
|
7391
|
+
};
|
|
7392
|
+
s.whiteParams = {
|
|
7393
|
+
pageNum: 1,
|
|
7394
|
+
pageSize: 10
|
|
7395
|
+
};
|
|
7382
7396
|
|
|
7383
7397
|
case 4:
|
|
7384
7398
|
case "end":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kts-components-document-access-point",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "dumi dev",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"antd": "3.26.20",
|
|
34
34
|
"grey-react-box": "^0.2.15",
|
|
35
35
|
"kts-component-service": "^1.0.4",
|
|
36
|
-
"kts-components": "^1.2.
|
|
36
|
+
"kts-components": "^1.2.25",
|
|
37
37
|
"kts-components-antd-x4": "^4.0.3",
|
|
38
38
|
"kts-xui": "^1.0.6",
|
|
39
39
|
"lodash": "^4.17.21",
|
|
@@ -33,8 +33,8 @@ export default class ControllerState {
|
|
|
33
33
|
selectedBlackRowKey: string[] = [];
|
|
34
34
|
billEnum: IBillEnum[] = [];
|
|
35
35
|
pageMeta: IPageMeta = { pageSize: 10, pageNum: 1 };
|
|
36
|
-
params: IFilter = {};
|
|
37
|
-
whiteParams: IFilter = {};
|
|
36
|
+
params: IFilter = {pageNum: 1, pageSize: 10 };
|
|
37
|
+
whiteParams: IFilter = { pageNum: 1, pageSize: 10 };
|
|
38
38
|
visible: boolean = false;
|
|
39
39
|
schema: any;
|
|
40
40
|
targetId: string = '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState, useMemo } from 'react';
|
|
2
|
-
import { Table, AutoTableContainer, Pagination } from 'kts-xui';
|
|
2
|
+
import { Table, AutoTableContainer, Pagination, message } from 'kts-xui';
|
|
3
3
|
import { dataStatusEnum, listNatureEnum } from '../../util/ConfigEnum';
|
|
4
4
|
import Main from '../..';
|
|
5
5
|
import moment from 'moment';
|
|
@@ -8,11 +8,13 @@ export default function Rule(props: any) {
|
|
|
8
8
|
const controller = Main.useController();
|
|
9
9
|
const list = controller.useMemo((s) => s.blacklist, []);
|
|
10
10
|
const [pageMeta, setpageMeta] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, total: 0, });
|
|
11
|
-
const [pageParams, setpageParams] = useState<{ pageSize?: number, pageNum?: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
11
|
+
// const [pageParams, setpageParams] = useState<{ pageSize?: number, pageNum?: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
12
12
|
// const pageMeta = controller.useMemo((s) => s.pageMeta, []);
|
|
13
13
|
const params = controller.useMemo((s) => s.params, []);
|
|
14
14
|
const onPageChange = (pageNum: any, pageSize: any) => {
|
|
15
|
-
|
|
15
|
+
controller.pipeline(async s => {
|
|
16
|
+
s.params = { ...s.params, pageNum, pageSize };
|
|
17
|
+
})()
|
|
16
18
|
}
|
|
17
19
|
const columns = useMemo(() => [
|
|
18
20
|
{
|
|
@@ -95,24 +97,18 @@ export default function Rule(props: any) {
|
|
|
95
97
|
didList: [record]
|
|
96
98
|
})
|
|
97
99
|
if (res.res) {
|
|
98
|
-
|
|
99
|
-
...pageParams
|
|
100
|
-
}
|
|
101
|
-
setpageParams(data);
|
|
100
|
+
message.success('操作成功')
|
|
102
101
|
}
|
|
103
102
|
})()
|
|
104
103
|
}, []);
|
|
105
104
|
useEffect(() => {
|
|
106
105
|
(async () => {
|
|
107
|
-
const res = await controller.getBlacklist(
|
|
106
|
+
const res = await controller.getBlacklist(params);
|
|
108
107
|
if (res.res) {
|
|
109
108
|
setpageMeta(res.res.pageMeta);
|
|
110
|
-
await controller.pipeline(async s => {
|
|
111
|
-
s.blacklist = res.res.items || [];
|
|
112
|
-
})()
|
|
113
109
|
}
|
|
114
110
|
})()
|
|
115
|
-
}, [params
|
|
111
|
+
}, [params]);
|
|
116
112
|
const rowSelection = useMemo(() => {
|
|
117
113
|
return {
|
|
118
114
|
onChange: (selectedRowKeys: any, selectedRows: any) => {
|
|
@@ -14,15 +14,15 @@ export default function Rule(props: any) {
|
|
|
14
14
|
controller.pipeline(async s => {
|
|
15
15
|
s.selectedRowKey = [];
|
|
16
16
|
s.selectedBlackRowKey = [];
|
|
17
|
-
s.params = {};
|
|
18
|
-
s.whiteParams = {}
|
|
17
|
+
s.params = { pageNum: 1, pageSize: 10 };
|
|
18
|
+
s.whiteParams = { pageNum: 1, pageSize: 10 }
|
|
19
19
|
})()
|
|
20
20
|
}, [])
|
|
21
21
|
// const onSubmit = useCallback((data) => {
|
|
22
22
|
// setValues(data);
|
|
23
23
|
// }, []);
|
|
24
24
|
const onClickHandler = useCallback(() => {
|
|
25
|
-
controller.setmode({status:mode});
|
|
25
|
+
controller.setmode({ status: mode });
|
|
26
26
|
}, [mode]);
|
|
27
27
|
return (
|
|
28
28
|
<>
|
|
@@ -44,7 +44,7 @@ export default function Rule(props: any) {
|
|
|
44
44
|
}
|
|
45
45
|
{
|
|
46
46
|
activeKey === '/switchmode' &&
|
|
47
|
-
<SwitchMode
|
|
47
|
+
<SwitchMode />
|
|
48
48
|
}
|
|
49
49
|
</>);
|
|
50
50
|
}
|
|
@@ -4,15 +4,18 @@ import { dataStatusEnum, listNatureEnum } from '../../util/ConfigEnum';
|
|
|
4
4
|
import Main from '../..';
|
|
5
5
|
import moment from 'moment';
|
|
6
6
|
import Header from '../pageheader/WhiteHeader'
|
|
7
|
+
import { message } from 'kts-components-antd-x4';
|
|
7
8
|
export default function Rule(props: any) {
|
|
8
9
|
const controller = Main.useController();
|
|
9
10
|
const list = controller.useMemo((s) => s.whiteblacklist, []);
|
|
10
11
|
const [pageMeta, setpageMeta] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, total: 0, });
|
|
11
|
-
const [pageParams, setpageParams] = useState<{ pageSize?: number, pageNum?: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
12
|
+
// const [pageParams, setpageParams] = useState<{ pageSize?: number, pageNum?: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
12
13
|
const whiteParams = controller.useMemo((s) => s.whiteParams, []);
|
|
13
|
-
const onPageChange = (pageNum: any, pageSize: any) => {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const onPageChange = useCallback((pageNum: any, pageSize: any) => {
|
|
15
|
+
controller.pipeline(async s => {
|
|
16
|
+
s.whiteParams = { ...s.whiteParams, pageNum, pageSize };
|
|
17
|
+
})()
|
|
18
|
+
}, []);
|
|
16
19
|
const columns = useMemo(() => [
|
|
17
20
|
{
|
|
18
21
|
title: 'DID',
|
|
@@ -94,22 +97,15 @@ export default function Rule(props: any) {
|
|
|
94
97
|
didList: [record]
|
|
95
98
|
})
|
|
96
99
|
if (res.res) {
|
|
97
|
-
|
|
98
|
-
...pageParams
|
|
99
|
-
}
|
|
100
|
-
setpageParams(data);
|
|
100
|
+
message.success('操作成功')
|
|
101
101
|
}
|
|
102
102
|
})()
|
|
103
103
|
}, []);
|
|
104
104
|
useEffect(() => {
|
|
105
105
|
(async () => {
|
|
106
|
-
const res = await controller.getWhitelist(
|
|
106
|
+
const res = await controller.getWhitelist(whiteParams);
|
|
107
107
|
if (res.res) {
|
|
108
108
|
setpageMeta(res.res.pageMeta);
|
|
109
|
-
|
|
110
|
-
// await controller.pipeline(async s => {
|
|
111
|
-
// s.whiteblacklist = res.res.items || [];
|
|
112
|
-
// })()
|
|
113
109
|
}
|
|
114
110
|
})()
|
|
115
111
|
}, [whiteParams]);
|
|
@@ -15,10 +15,11 @@ export default () => {
|
|
|
15
15
|
const onSearchFormSubmit = React.useCallback((value) => {
|
|
16
16
|
value = {
|
|
17
17
|
...value,
|
|
18
|
+
pageNum: 1,
|
|
19
|
+
pageSize: 10
|
|
18
20
|
}
|
|
19
21
|
controller.pipeline(async s => {
|
|
20
22
|
s.whiteParams = value;
|
|
21
|
-
|
|
22
23
|
})()
|
|
23
24
|
}, [controller])
|
|
24
25
|
useEffect(() => {
|
|
@@ -33,7 +34,7 @@ export default () => {
|
|
|
33
34
|
})()
|
|
34
35
|
}
|
|
35
36
|
})();
|
|
36
|
-
|
|
37
|
+
|
|
37
38
|
|
|
38
39
|
}, []);
|
|
39
40
|
useEffect(() => {
|
|
@@ -134,7 +134,7 @@ const DrawerBody = (props: { form: FormInstance<any> }) => {
|
|
|
134
134
|
label="字段名"
|
|
135
135
|
rules={[
|
|
136
136
|
{ required: true, message: '请输入字段名' },
|
|
137
|
-
{ max:
|
|
137
|
+
{ max: 50, message: '只能输入50个字符' },
|
|
138
138
|
{
|
|
139
139
|
validator(_, value: string) {
|
|
140
140
|
if (!value) return Promise.resolve();
|
|
@@ -17,18 +17,19 @@ export default (props: { index: number }) => {
|
|
|
17
17
|
controller.pipeline(async s => {
|
|
18
18
|
if (!s.ruleState.ruleProperties) return;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
if (s.ruleState.ruleProperties.ref.items) {
|
|
21
|
+
s.ruleState.ruleProperties.ref.items.rules?.splice(props.index, 1);
|
|
22
|
+
s.ruleState.ruleProperties.ref.items.rules = s.ruleState.ruleProperties.ref.items.rules?.slice() ?? [];
|
|
23
|
+
} else {
|
|
24
|
+
s.ruleState.ruleProperties.ref.rules?.splice(props.index, 1);
|
|
25
|
+
s.ruleState.ruleProperties.ref.rules = s.ruleState.ruleProperties.ref.rules?.slice() ?? [];
|
|
26
|
+
}
|
|
25
27
|
})()
|
|
26
28
|
}, [controller, props.index])
|
|
27
29
|
|
|
28
30
|
if (readOnly) return <></>
|
|
29
31
|
|
|
30
32
|
return (
|
|
31
|
-
// <Button className="ktsAntX-btn-dangerous" danger type="link" onClick={onClick} >删除</Button>
|
|
32
33
|
<span className="ktsAntX-btn-dangerous ktsAntX-btn-link" onClick={onClick} >删除</span>
|
|
33
34
|
);
|
|
34
35
|
};
|
|
@@ -45,7 +45,8 @@ export default () => {
|
|
|
45
45
|
const onSearchFormSubmit = React.useCallback((value) => {
|
|
46
46
|
value = {
|
|
47
47
|
...value,
|
|
48
|
-
typeList: value['typeList'] && [value['typeList']]
|
|
48
|
+
typeList: value['typeList'] && [value['typeList']],
|
|
49
|
+
pageNum: 1
|
|
49
50
|
}
|
|
50
51
|
controller.pipeline(async s => {
|
|
51
52
|
s.params = value;
|
|
@@ -306,7 +307,7 @@ export default () => {
|
|
|
306
307
|
<PageHeaderFoot
|
|
307
308
|
expandLeft={topExpand()}
|
|
308
309
|
expandRight={[
|
|
309
|
-
type === 1 && <Button key="1" onClick={batchSend} style={{ marginRight: 10 }}>发布</Button>,
|
|
310
|
+
type === 1 && <Button disabled={selectedRowKey.length === 0} key="1" onClick={batchSend} style={{ marginRight: 10 }}>发布</Button>,
|
|
310
311
|
type === 1 && <Dropdown key="2" overlay={menu}>
|
|
311
312
|
<Button type="primary" >创建配置</Button>
|
|
312
313
|
</Dropdown>
|
|
@@ -20,7 +20,7 @@ export default function validaterule(props: any) {
|
|
|
20
20
|
useEffect(() => {
|
|
21
21
|
(async () => {
|
|
22
22
|
const res = await DocumentsService.instance.service?.call({
|
|
23
|
-
url: '/schema/config/queryConfigSchemaPage', data: { ...
|
|
23
|
+
url: '/schema/config/queryConfigSchemaPage', data: { ...pageParams, ...params }, type: 'post'
|
|
24
24
|
}) as any;
|
|
25
25
|
|
|
26
26
|
if (res.err) {
|
|
@@ -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: { ...pageParams, ...params }, type: 'post' }) as any;
|
|
21
21
|
if (res.err) {
|
|
22
22
|
return false;
|
|
23
23
|
}
|