kts-components-document-access-point 1.2.8 → 1.2.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/DocumentWhiteList/control/actions/didilist/index.d.ts +1 -1
- package/dist/index.esm.js +168 -146
- package/dist/index.js +168 -146
- package/package.json +1 -1
- package/src/DocumentWhiteList/control/actions/didilist/index.ts +5 -1
- package/src/DocumentWhiteList/control/state/index.ts +1 -1
- package/src/DocumentWhiteList/index.tsx +0 -1
- package/src/DocumentWhiteList/ui/clientmodal/index.tsx +23 -11
- package/src/DocumentWhiteList/ui/main/black.tsx +13 -1
- package/src/DocumentWhiteList/ui/main/index.tsx +0 -23
- package/src/DocumentWhiteList/ui/main/white.tsx +13 -1
- package/src/DocumentWhiteList/ui/pageheader/WhiteHeader.tsx +13 -1
- package/src/DocumentWhiteList/ui/whitemodal/index.tsx +3 -3
- package/src/DocumentsCont/___demo___/base/index.tsx +1 -1
- package/src/DocumentsList/index.tsx +6 -5
- package/src/DocumentsList/ui/PageHeader/index.tsx +1 -0
- package/src/DocumentsRule/ui/main/index.tsx +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import ControllerState from '../../state';
|
|
2
2
|
import { IParams } from '../../../interface';
|
|
3
|
-
declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<
|
|
3
|
+
declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<any>;
|
|
4
4
|
export default _default;
|
package/dist/index.esm.js
CHANGED
|
@@ -10,7 +10,6 @@ import { LifeCycleTypes } from '@formily/antd';
|
|
|
10
10
|
import { useHistory, MemoryRouter, Switch as Switch$1, Route, Redirect } from 'react-router-dom';
|
|
11
11
|
import zhCN from 'kts-components-antd-x4/lib/locale/zh_CN';
|
|
12
12
|
import qs from 'query-string';
|
|
13
|
-
import { Pagination as Pagination$1 } from 'antd';
|
|
14
13
|
import _ from 'lodash';
|
|
15
14
|
|
|
16
15
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -2962,8 +2961,14 @@ var PageHeader = (function () {
|
|
|
2962
2961
|
case 0:
|
|
2963
2962
|
s.type = e.target.value;
|
|
2964
2963
|
s.params = {};
|
|
2964
|
+
history.push({
|
|
2965
|
+
pathname: '/rulelist',
|
|
2966
|
+
state: {
|
|
2967
|
+
type: e.target.value
|
|
2968
|
+
}
|
|
2969
|
+
});
|
|
2965
2970
|
|
|
2966
|
-
case
|
|
2971
|
+
case 3:
|
|
2967
2972
|
case "end":
|
|
2968
2973
|
return _context3.stop();
|
|
2969
2974
|
}
|
|
@@ -4015,20 +4020,20 @@ var Main$1 = function Main(props) {
|
|
|
4015
4020
|
return s.type;
|
|
4016
4021
|
}, []);
|
|
4017
4022
|
useEffect(function () {
|
|
4018
|
-
var params = props.location.
|
|
4019
|
-
|
|
4023
|
+
var params = props.location.state;
|
|
4024
|
+
var tab = params && params.type;
|
|
4025
|
+
console.log(tab);
|
|
4020
4026
|
|
|
4021
|
-
if (
|
|
4027
|
+
if (tab) {
|
|
4022
4028
|
controller.pipeline( /*#__PURE__*/function () {
|
|
4023
4029
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
4024
4030
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
4025
4031
|
while (1) {
|
|
4026
4032
|
switch (_context.prev = _context.next) {
|
|
4027
4033
|
case 0:
|
|
4028
|
-
s.type = Number(
|
|
4029
|
-
console.log(params);
|
|
4034
|
+
s.type = Number(tab);
|
|
4030
4035
|
|
|
4031
|
-
case
|
|
4036
|
+
case 1:
|
|
4032
4037
|
case "end":
|
|
4033
4038
|
return _context.stop();
|
|
4034
4039
|
}
|
|
@@ -5020,10 +5025,17 @@ function Rule(props) {
|
|
|
5020
5025
|
if (type === 'record') {
|
|
5021
5026
|
history.push({
|
|
5022
5027
|
pathname: "/rulelist",
|
|
5023
|
-
|
|
5028
|
+
state: {
|
|
5029
|
+
type: 2
|
|
5030
|
+
}
|
|
5024
5031
|
});
|
|
5025
5032
|
} else {
|
|
5026
|
-
history.
|
|
5033
|
+
history.push({
|
|
5034
|
+
pathname: "/rulelist",
|
|
5035
|
+
state: {
|
|
5036
|
+
type: 1
|
|
5037
|
+
}
|
|
5038
|
+
});
|
|
5027
5039
|
}
|
|
5028
5040
|
}, []);
|
|
5029
5041
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -5847,11 +5859,15 @@ var didList = /*#__PURE__*/(function () {
|
|
|
5847
5859
|
return _context.abrupt("return", false);
|
|
5848
5860
|
|
|
5849
5861
|
case 5:
|
|
5850
|
-
if (res.res) {
|
|
5851
|
-
|
|
5862
|
+
if (!res.res) {
|
|
5863
|
+
_context.next = 8;
|
|
5864
|
+
break;
|
|
5852
5865
|
}
|
|
5853
5866
|
|
|
5854
|
-
|
|
5867
|
+
s.didlist = res.res;
|
|
5868
|
+
return _context.abrupt("return", res);
|
|
5869
|
+
|
|
5870
|
+
case 8:
|
|
5855
5871
|
case "end":
|
|
5856
5872
|
return _context.stop();
|
|
5857
5873
|
}
|
|
@@ -5955,7 +5971,50 @@ var Header = (function () {
|
|
|
5955
5971
|
controller.checkclient();
|
|
5956
5972
|
}, []);
|
|
5957
5973
|
useEffect(function () {
|
|
5958
|
-
|
|
5974
|
+
// console.log(controller);
|
|
5975
|
+
// controller.pipeline(controller.didList)({})
|
|
5976
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
5977
|
+
var res;
|
|
5978
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
5979
|
+
while (1) {
|
|
5980
|
+
switch (_context3.prev = _context3.next) {
|
|
5981
|
+
case 0:
|
|
5982
|
+
_context3.next = 2;
|
|
5983
|
+
return controller.didList({});
|
|
5984
|
+
|
|
5985
|
+
case 2:
|
|
5986
|
+
res = _context3.sent;
|
|
5987
|
+
|
|
5988
|
+
if (!res.err) {
|
|
5989
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
5990
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(s) {
|
|
5991
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
5992
|
+
while (1) {
|
|
5993
|
+
switch (_context2.prev = _context2.next) {
|
|
5994
|
+
case 0:
|
|
5995
|
+
s.didlist = res.res;
|
|
5996
|
+
|
|
5997
|
+
case 1:
|
|
5998
|
+
case "end":
|
|
5999
|
+
return _context2.stop();
|
|
6000
|
+
}
|
|
6001
|
+
}
|
|
6002
|
+
}, _callee2);
|
|
6003
|
+
}));
|
|
6004
|
+
|
|
6005
|
+
return function (_x2) {
|
|
6006
|
+
return _ref3.apply(this, arguments);
|
|
6007
|
+
};
|
|
6008
|
+
}())();
|
|
6009
|
+
}
|
|
6010
|
+
|
|
6011
|
+
case 4:
|
|
6012
|
+
case "end":
|
|
6013
|
+
return _context3.stop();
|
|
6014
|
+
}
|
|
6015
|
+
}
|
|
6016
|
+
}, _callee3);
|
|
6017
|
+
}))();
|
|
5959
6018
|
}, []);
|
|
5960
6019
|
useEffect(function () {
|
|
5961
6020
|
var didEnum = didlist.map(function (item) {
|
|
@@ -6008,20 +6067,20 @@ var Header = (function () {
|
|
|
6008
6067
|
setSchema(obj);
|
|
6009
6068
|
}, [didlist]);
|
|
6010
6069
|
var batchBlockList = useCallback(function (type) {
|
|
6011
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6070
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
6012
6071
|
var res;
|
|
6013
|
-
return regeneratorRuntime.wrap(function
|
|
6072
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
6014
6073
|
while (1) {
|
|
6015
|
-
switch (
|
|
6074
|
+
switch (_context4.prev = _context4.next) {
|
|
6016
6075
|
case 0:
|
|
6017
|
-
|
|
6076
|
+
_context4.next = 2;
|
|
6018
6077
|
return controller.enablewhitelist({
|
|
6019
6078
|
flag: type,
|
|
6020
6079
|
didList: selectedRowKey
|
|
6021
6080
|
});
|
|
6022
6081
|
|
|
6023
6082
|
case 2:
|
|
6024
|
-
res =
|
|
6083
|
+
res = _context4.sent;
|
|
6025
6084
|
|
|
6026
6085
|
if (res.res) {
|
|
6027
6086
|
controller.getWhitelist(_objectSpread2(_objectSpread2({}, whiteParams), pageMeta));
|
|
@@ -6029,55 +6088,55 @@ var Header = (function () {
|
|
|
6029
6088
|
|
|
6030
6089
|
case 4:
|
|
6031
6090
|
case "end":
|
|
6032
|
-
return
|
|
6091
|
+
return _context4.stop();
|
|
6033
6092
|
}
|
|
6034
6093
|
}
|
|
6035
|
-
},
|
|
6094
|
+
}, _callee4);
|
|
6036
6095
|
}))();
|
|
6037
6096
|
}, [selectedRowKey]);
|
|
6038
6097
|
var createWhiteList = useCallback(function () {
|
|
6039
6098
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6040
|
-
var
|
|
6041
|
-
return regeneratorRuntime.wrap(function
|
|
6099
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(s) {
|
|
6100
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
6042
6101
|
while (1) {
|
|
6043
|
-
switch (
|
|
6102
|
+
switch (_context5.prev = _context5.next) {
|
|
6044
6103
|
case 0:
|
|
6045
6104
|
s.visible = true;
|
|
6046
6105
|
s.listNature = '1';
|
|
6047
6106
|
|
|
6048
6107
|
case 2:
|
|
6049
6108
|
case "end":
|
|
6050
|
-
return
|
|
6109
|
+
return _context5.stop();
|
|
6051
6110
|
}
|
|
6052
6111
|
}
|
|
6053
|
-
},
|
|
6112
|
+
}, _callee5);
|
|
6054
6113
|
}));
|
|
6055
6114
|
|
|
6056
|
-
return function (
|
|
6057
|
-
return
|
|
6115
|
+
return function (_x3) {
|
|
6116
|
+
return _ref5.apply(this, arguments);
|
|
6058
6117
|
};
|
|
6059
6118
|
}())();
|
|
6060
6119
|
}, []);
|
|
6061
6120
|
var showClientModal = useCallback(function () {
|
|
6062
6121
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6063
|
-
var
|
|
6064
|
-
return regeneratorRuntime.wrap(function
|
|
6122
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(s) {
|
|
6123
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
6065
6124
|
while (1) {
|
|
6066
|
-
switch (
|
|
6125
|
+
switch (_context6.prev = _context6.next) {
|
|
6067
6126
|
case 0:
|
|
6068
6127
|
s.clientModal = true;
|
|
6069
6128
|
s.listNature = '1';
|
|
6070
6129
|
|
|
6071
6130
|
case 2:
|
|
6072
6131
|
case "end":
|
|
6073
|
-
return
|
|
6132
|
+
return _context6.stop();
|
|
6074
6133
|
}
|
|
6075
6134
|
}
|
|
6076
|
-
},
|
|
6135
|
+
}, _callee6);
|
|
6077
6136
|
}));
|
|
6078
6137
|
|
|
6079
|
-
return function (
|
|
6080
|
-
return
|
|
6138
|
+
return function (_x4) {
|
|
6139
|
+
return _ref6.apply(this, arguments);
|
|
6081
6140
|
};
|
|
6082
6141
|
}())();
|
|
6083
6142
|
}, []);
|
|
@@ -6176,13 +6235,22 @@ function Rule$1(props) {
|
|
|
6176
6235
|
var columns = useMemo(function () {
|
|
6177
6236
|
return [{
|
|
6178
6237
|
title: 'DID',
|
|
6179
|
-
dataIndex: 'customerDid'
|
|
6238
|
+
dataIndex: 'customerDid',
|
|
6239
|
+
render: function render(text, record) {
|
|
6240
|
+
if (text) {
|
|
6241
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.customerDidNote), text);
|
|
6242
|
+
} else {
|
|
6243
|
+
return '';
|
|
6244
|
+
}
|
|
6245
|
+
}
|
|
6180
6246
|
}, {
|
|
6181
6247
|
title: '所属公司',
|
|
6182
|
-
dataIndex: 'customerName'
|
|
6248
|
+
dataIndex: 'customerName',
|
|
6249
|
+
width: 200
|
|
6183
6250
|
}, {
|
|
6184
6251
|
title: '数据状态',
|
|
6185
6252
|
dataIndex: 'dataStatus',
|
|
6253
|
+
width: 100,
|
|
6186
6254
|
render: function render(text) {
|
|
6187
6255
|
return dataStatusEnum[text];
|
|
6188
6256
|
}
|
|
@@ -6191,7 +6259,7 @@ function Rule$1(props) {
|
|
|
6191
6259
|
dataIndex: 'companyDid',
|
|
6192
6260
|
render: function render(text, record) {
|
|
6193
6261
|
if (text) {
|
|
6194
|
-
return /*#__PURE__*/React.createElement("
|
|
6262
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.companyDidNote), text);
|
|
6195
6263
|
} else {
|
|
6196
6264
|
return '';
|
|
6197
6265
|
}
|
|
@@ -6199,18 +6267,21 @@ function Rule$1(props) {
|
|
|
6199
6267
|
}, {
|
|
6200
6268
|
title: '加入时间',
|
|
6201
6269
|
dataIndex: 'createTime',
|
|
6270
|
+
width: 200,
|
|
6202
6271
|
render: function render(text) {
|
|
6203
6272
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6204
6273
|
}
|
|
6205
6274
|
}, {
|
|
6206
6275
|
title: '最近更新时间',
|
|
6207
6276
|
dataIndex: 'updateTime',
|
|
6277
|
+
width: 200,
|
|
6208
6278
|
render: function render(text) {
|
|
6209
6279
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6210
6280
|
}
|
|
6211
6281
|
}, {
|
|
6212
6282
|
title: '操作',
|
|
6213
6283
|
dataIndex: 'console',
|
|
6284
|
+
width: 80,
|
|
6214
6285
|
render: function render(text, record) {
|
|
6215
6286
|
return /*#__PURE__*/React.createElement("span", null, record.dataStatus === 1 ? /*#__PURE__*/React.createElement("a", {
|
|
6216
6287
|
className: "tabel-action",
|
|
@@ -6608,13 +6679,22 @@ function Rule$2(props) {
|
|
|
6608
6679
|
var columns = useMemo(function () {
|
|
6609
6680
|
return [{
|
|
6610
6681
|
title: 'DID',
|
|
6611
|
-
dataIndex: 'customerDid'
|
|
6682
|
+
dataIndex: 'customerDid',
|
|
6683
|
+
render: function render(text, record) {
|
|
6684
|
+
if (text) {
|
|
6685
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.customerDidNote), text);
|
|
6686
|
+
} else {
|
|
6687
|
+
return '';
|
|
6688
|
+
}
|
|
6689
|
+
}
|
|
6612
6690
|
}, {
|
|
6613
6691
|
title: '所属公司',
|
|
6692
|
+
width: 200,
|
|
6614
6693
|
dataIndex: 'customerName'
|
|
6615
6694
|
}, {
|
|
6616
6695
|
title: '数据状态',
|
|
6617
6696
|
dataIndex: 'dataStatus',
|
|
6697
|
+
width: 100,
|
|
6618
6698
|
render: function render(text) {
|
|
6619
6699
|
return dataStatusEnum[text];
|
|
6620
6700
|
}
|
|
@@ -6623,7 +6703,7 @@ function Rule$2(props) {
|
|
|
6623
6703
|
dataIndex: 'companyDid',
|
|
6624
6704
|
render: function render(text, record) {
|
|
6625
6705
|
if (text) {
|
|
6626
|
-
return /*#__PURE__*/React.createElement("
|
|
6706
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.companyDidNote), text);
|
|
6627
6707
|
} else {
|
|
6628
6708
|
return '';
|
|
6629
6709
|
}
|
|
@@ -6631,17 +6711,20 @@ function Rule$2(props) {
|
|
|
6631
6711
|
}, {
|
|
6632
6712
|
title: '加入时间',
|
|
6633
6713
|
dataIndex: 'createTime',
|
|
6714
|
+
width: 200,
|
|
6634
6715
|
render: function render(text) {
|
|
6635
6716
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6636
6717
|
}
|
|
6637
6718
|
}, {
|
|
6638
6719
|
title: '最近更新时间',
|
|
6720
|
+
width: 200,
|
|
6639
6721
|
dataIndex: 'updateTime',
|
|
6640
6722
|
render: function render(text) {
|
|
6641
6723
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6642
6724
|
}
|
|
6643
6725
|
}, {
|
|
6644
6726
|
title: '操作',
|
|
6727
|
+
width: 80,
|
|
6645
6728
|
dataIndex: 'console',
|
|
6646
6729
|
render: function render(text, record) {
|
|
6647
6730
|
return /*#__PURE__*/React.createElement("span", null, record.dataStatus === 1 ? /*#__PURE__*/React.createElement("a", {
|
|
@@ -7136,8 +7219,8 @@ function modalcomfirm$1(props) {
|
|
|
7136
7219
|
message: '请输入必填项'
|
|
7137
7220
|
}]
|
|
7138
7221
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
7139
|
-
maxLength:
|
|
7140
|
-
placeholder: "\u6700\u591A\u8F93\
|
|
7222
|
+
maxLength: 60,
|
|
7223
|
+
placeholder: "\u6700\u591A\u8F93\u516560\u4E2A\u5B57\u7B26"
|
|
7141
7224
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
7142
7225
|
label: "DID\u5907\u6CE8\u540D\u79F0",
|
|
7143
7226
|
name: "customerDidNote",
|
|
@@ -7146,8 +7229,8 @@ function modalcomfirm$1(props) {
|
|
|
7146
7229
|
message: '请输入必填项'
|
|
7147
7230
|
}]
|
|
7148
7231
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
7149
|
-
maxLength:
|
|
7150
|
-
placeholder: "\u6700\u591A\u8F93\
|
|
7232
|
+
maxLength: 20,
|
|
7233
|
+
placeholder: "\u6700\u591A\u8F93\u516520\u4E2A\u5B57\u7B26"
|
|
7151
7234
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
7152
7235
|
label: "\u6240\u5C5E\u516C\u53F8",
|
|
7153
7236
|
name: "customerName",
|
|
@@ -7156,8 +7239,8 @@ function modalcomfirm$1(props) {
|
|
|
7156
7239
|
message: '请输入必填项'
|
|
7157
7240
|
}]
|
|
7158
7241
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
7159
|
-
maxLength:
|
|
7160
|
-
placeholder: "\u6700\u591A\u8F93\
|
|
7242
|
+
maxLength: 100,
|
|
7243
|
+
placeholder: "\u6700\u591A\u8F93\u5165100\u4E2A\u5B57\u7B26"
|
|
7161
7244
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
7162
7245
|
label: "\u5BF9\u5E94\u6211\u7684DID",
|
|
7163
7246
|
name: "companyDid",
|
|
@@ -7188,83 +7271,6 @@ function modalcomfirm$1(props) {
|
|
|
7188
7271
|
}, "\u53D6\u6D88")))));
|
|
7189
7272
|
}
|
|
7190
7273
|
|
|
7191
|
-
var CustomerPage = /*#__PURE__*/function (_React$Component) {
|
|
7192
|
-
_inherits(CustomerPage, _React$Component);
|
|
7193
|
-
|
|
7194
|
-
var _super = _createSuper(CustomerPage);
|
|
7195
|
-
|
|
7196
|
-
function CustomerPage(props) {
|
|
7197
|
-
var _this;
|
|
7198
|
-
|
|
7199
|
-
_classCallCheck(this, CustomerPage);
|
|
7200
|
-
|
|
7201
|
-
_this = _super.call(this, props);
|
|
7202
|
-
|
|
7203
|
-
_this.onPageChange = function (page, pageSize) {
|
|
7204
|
-
_this.props.onChange(page, pageSize);
|
|
7205
|
-
};
|
|
7206
|
-
|
|
7207
|
-
_this.onShowSizeChange = function (current, pageSize) {
|
|
7208
|
-
_this.props.onChange(current, pageSize);
|
|
7209
|
-
};
|
|
7210
|
-
|
|
7211
|
-
_this.state = {
|
|
7212
|
-
pageMeta: _this.props.data
|
|
7213
|
-
};
|
|
7214
|
-
return _this;
|
|
7215
|
-
} // 点击下标改变页面
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
_createClass(CustomerPage, [{
|
|
7219
|
-
key: "componentWillReceiveProps",
|
|
7220
|
-
value: function componentWillReceiveProps(nextProps) {
|
|
7221
|
-
if (nextProps.data !== this.props.data) {
|
|
7222
|
-
this.setState({
|
|
7223
|
-
pageMeta: nextProps.data
|
|
7224
|
-
});
|
|
7225
|
-
}
|
|
7226
|
-
}
|
|
7227
|
-
}, {
|
|
7228
|
-
key: "render",
|
|
7229
|
-
value: function render() {
|
|
7230
|
-
var _this2 = this;
|
|
7231
|
-
|
|
7232
|
-
var pageMeta = this.state.pageMeta;
|
|
7233
|
-
var isShowPageSize = this.props.showSizeChanger !== undefined ? this.props.showSizeChanger : true;
|
|
7234
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7235
|
-
style: {
|
|
7236
|
-
padding: '16px 10px',
|
|
7237
|
-
textAlign: 'center'
|
|
7238
|
-
}
|
|
7239
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7240
|
-
className: "my-pagination-div"
|
|
7241
|
-
}, /*#__PURE__*/React.createElement(Pagination$1, {
|
|
7242
|
-
size: "small",
|
|
7243
|
-
showQuickJumper: true,
|
|
7244
|
-
defaultCurrent: pageMeta.pageNum,
|
|
7245
|
-
total: pageMeta.total,
|
|
7246
|
-
current: pageMeta.pageNum,
|
|
7247
|
-
pageSize: pageMeta.pageSize,
|
|
7248
|
-
pageSizeOptions: this.props.pageSizeOptions || [],
|
|
7249
|
-
showTotal: function showTotal(total, range) {
|
|
7250
|
-
if (total > 0) {
|
|
7251
|
-
return /*#__PURE__*/React.createElement("span", null, !_this2.props.hideTotal && /*#__PURE__*/React.createElement("span", null, "\u7B2C ", (pageMeta.pageNum - 1) * pageMeta.pageSize + 1, " - ", pageMeta.pageNum * pageMeta.pageSize, " \u6761\uFF0C\u5171\u6709", /*#__PURE__*/React.createElement("span", {
|
|
7252
|
-
className: "number"
|
|
7253
|
-
}, total), "\u6761"));
|
|
7254
|
-
}
|
|
7255
|
-
|
|
7256
|
-
return '';
|
|
7257
|
-
},
|
|
7258
|
-
onChange: this.onPageChange,
|
|
7259
|
-
onShowSizeChange: this.onShowSizeChange,
|
|
7260
|
-
showSizeChanger: pageMeta.total > 0 && isShowPageSize === true ? true : false
|
|
7261
|
-
})));
|
|
7262
|
-
}
|
|
7263
|
-
}]);
|
|
7264
|
-
|
|
7265
|
-
return CustomerPage;
|
|
7266
|
-
}(React.Component);
|
|
7267
|
-
|
|
7268
7274
|
function modalcomfirm$2(props) {
|
|
7269
7275
|
var controller = WhiteList.useController();
|
|
7270
7276
|
var clientInfo = controller.useMemo(function (s) {
|
|
@@ -7285,7 +7291,8 @@ function modalcomfirm$2(props) {
|
|
|
7285
7291
|
|
|
7286
7292
|
var _useState3 = useState({
|
|
7287
7293
|
pageNum: 1,
|
|
7288
|
-
pageSize: 10
|
|
7294
|
+
pageSize: 10,
|
|
7295
|
+
total: 0
|
|
7289
7296
|
}),
|
|
7290
7297
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7291
7298
|
pageMeta = _useState4[0],
|
|
@@ -7307,12 +7314,6 @@ function modalcomfirm$2(props) {
|
|
|
7307
7314
|
var listNature = controller.useMemo(function (s) {
|
|
7308
7315
|
return s.listNature;
|
|
7309
7316
|
}, []);
|
|
7310
|
-
|
|
7311
|
-
var _useState9 = useState(''),
|
|
7312
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
7313
|
-
companyDidNote = _useState10[0],
|
|
7314
|
-
setNote = _useState10[1];
|
|
7315
|
-
|
|
7316
7317
|
useEffect(function () {
|
|
7317
7318
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
7318
7319
|
var res;
|
|
@@ -7388,16 +7389,24 @@ function modalcomfirm$2(props) {
|
|
|
7388
7389
|
var columns = useMemo(function () {
|
|
7389
7390
|
return [{
|
|
7390
7391
|
title: 'DID',
|
|
7391
|
-
dataIndex: 'customerDid'
|
|
7392
|
+
dataIndex: 'customerDid',
|
|
7393
|
+
render: function render(text, record) {
|
|
7394
|
+
if (text) {
|
|
7395
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.customerDidNote), text);
|
|
7396
|
+
} else {
|
|
7397
|
+
return '';
|
|
7398
|
+
}
|
|
7399
|
+
}
|
|
7392
7400
|
}, {
|
|
7393
7401
|
title: '所属公司',
|
|
7394
|
-
dataIndex: 'customerName'
|
|
7402
|
+
dataIndex: 'customerName',
|
|
7403
|
+
width: 200
|
|
7395
7404
|
}, {
|
|
7396
7405
|
title: '对应我的DID',
|
|
7397
7406
|
dataIndex: 'companyDid',
|
|
7398
7407
|
render: function render(text, record) {
|
|
7399
7408
|
if (text) {
|
|
7400
|
-
return /*#__PURE__*/React.createElement("
|
|
7409
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.companyDidNote), text);
|
|
7401
7410
|
} else {
|
|
7402
7411
|
return '';
|
|
7403
7412
|
}
|
|
@@ -7481,10 +7490,13 @@ function modalcomfirm$2(props) {
|
|
|
7481
7490
|
visible: true,
|
|
7482
7491
|
footer: null,
|
|
7483
7492
|
onCancel: handleCancel,
|
|
7484
|
-
width:
|
|
7493
|
+
width: 1000
|
|
7485
7494
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7486
7495
|
style: {
|
|
7487
|
-
marginBottom: 24
|
|
7496
|
+
marginBottom: 24,
|
|
7497
|
+
display: 'flex',
|
|
7498
|
+
alignItems: 'center',
|
|
7499
|
+
justifyContent: 'space-between'
|
|
7488
7500
|
}
|
|
7489
7501
|
}, /*#__PURE__*/React.createElement(AdvancedSearch, {
|
|
7490
7502
|
width: 480,
|
|
@@ -7500,24 +7512,34 @@ function modalcomfirm$2(props) {
|
|
|
7500
7512
|
compact: true,
|
|
7501
7513
|
schema: schema,
|
|
7502
7514
|
defaultValue: _.pick(params, ['customerDid', 'customerDidNote', 'companyDid', 'customerName'])
|
|
7503
|
-
}))
|
|
7504
|
-
rowSelection: rowSelection,
|
|
7505
|
-
columns: columns,
|
|
7506
|
-
rowKey: "customerDid",
|
|
7507
|
-
dataSource: list,
|
|
7508
|
-
pagination: false
|
|
7509
|
-
}), pageMeta && /*#__PURE__*/React.createElement(CustomerPage, {
|
|
7510
|
-
data: pageMeta,
|
|
7511
|
-
onChange: onPageChange
|
|
7512
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
7515
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
7513
7516
|
onClick: handleCancel,
|
|
7514
7517
|
style: {
|
|
7515
7518
|
marginRight: 20
|
|
7516
7519
|
}
|
|
7517
7520
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
7521
|
+
disabled: selectedRowKeys.length > 0 ? false : true,
|
|
7518
7522
|
type: "primary",
|
|
7519
7523
|
onClick: onSubmit
|
|
7520
|
-
}, "\u63D0\u4EA4")))
|
|
7524
|
+
}, "\u63D0\u4EA4"))), /*#__PURE__*/React.createElement("p", null, clientInfo.noticeMessage), /*#__PURE__*/React.createElement(Table$1, {
|
|
7525
|
+
rowSelection: rowSelection,
|
|
7526
|
+
columns: columns,
|
|
7527
|
+
rowKey: "customerDid",
|
|
7528
|
+
dataSource: list,
|
|
7529
|
+
pagination: false
|
|
7530
|
+
}), pageMeta && /*#__PURE__*/React.createElement(Pagination, {
|
|
7531
|
+
onChange: onPageChange,
|
|
7532
|
+
style: {
|
|
7533
|
+
padding: '16px 0',
|
|
7534
|
+
flex: 'none',
|
|
7535
|
+
background: 'white',
|
|
7536
|
+
textAlign: 'center'
|
|
7537
|
+
},
|
|
7538
|
+
total: pageMeta.total,
|
|
7539
|
+
pageSize: pageMeta.pageSize,
|
|
7540
|
+
current: pageMeta.pageNum,
|
|
7541
|
+
showSizeChanger: true
|
|
7542
|
+
})));
|
|
7521
7543
|
}
|
|
7522
7544
|
|
|
7523
7545
|
var MainContext = /*#__PURE__*/createContext(null);
|