kts-components-document-access-point 1.2.5 → 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 +307 -228
- package/dist/index.js +307 -228
- 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 +14 -2
- package/src/DocumentWhiteList/ui/main/index.tsx +0 -23
- package/src/DocumentWhiteList/ui/main/white.tsx +14 -2
- package/src/DocumentWhiteList/ui/pageheader/BlackHeader.tsx +1 -1
- package/src/DocumentWhiteList/ui/pageheader/WhiteHeader.tsx +14 -2
- package/src/DocumentWhiteList/ui/whitemodal/index.tsx +3 -3
- package/src/DocumentsList/index.tsx +6 -3
- package/src/DocumentsList/ui/PageHeader/index.tsx +2 -1
- package/src/DocumentsRule/ui/main/index.tsx +65 -34
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
|
}
|
|
@@ -3261,7 +3266,7 @@ var PageHeader = (function () {
|
|
|
3261
3266
|
style: {
|
|
3262
3267
|
marginRight: 10
|
|
3263
3268
|
}
|
|
3264
|
-
}, "\u53D1\u5E03"), /*#__PURE__*/React.createElement(Dropdown, {
|
|
3269
|
+
}, "\u53D1\u5E03"), type === 1 && /*#__PURE__*/React.createElement(Dropdown, {
|
|
3265
3270
|
key: "2",
|
|
3266
3271
|
overlay: menu
|
|
3267
3272
|
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
@@ -4015,16 +4020,18 @@ var Main$1 = function Main(props) {
|
|
|
4015
4020
|
return s.type;
|
|
4016
4021
|
}, []);
|
|
4017
4022
|
useEffect(function () {
|
|
4018
|
-
var params = props.location.
|
|
4023
|
+
var params = props.location.state;
|
|
4024
|
+
var tab = params && params.type;
|
|
4025
|
+
console.log(tab);
|
|
4019
4026
|
|
|
4020
|
-
if (
|
|
4027
|
+
if (tab) {
|
|
4021
4028
|
controller.pipeline( /*#__PURE__*/function () {
|
|
4022
4029
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
|
|
4023
4030
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
4024
4031
|
while (1) {
|
|
4025
4032
|
switch (_context.prev = _context.next) {
|
|
4026
4033
|
case 0:
|
|
4027
|
-
s.type = Number(
|
|
4034
|
+
s.type = Number(tab);
|
|
4028
4035
|
|
|
4029
4036
|
case 1:
|
|
4030
4037
|
case "end":
|
|
@@ -4797,100 +4804,151 @@ function Rule(props) {
|
|
|
4797
4804
|
}, []);
|
|
4798
4805
|
var handleCancel = useCallback(function () {
|
|
4799
4806
|
setVisible(false);
|
|
4800
|
-
}, []);
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4807
|
+
}, []); // const autoSave = useCallback(() => {
|
|
4808
|
+
// (async () => {
|
|
4809
|
+
// // let url = '/schema/config/save';
|
|
4810
|
+
// let data: any = { ...schema };
|
|
4811
|
+
// const formValue = form.getFieldsValue();
|
|
4812
|
+
// let res;
|
|
4813
|
+
// if (record && record.id) {
|
|
4814
|
+
// // url = '/schema/config/update';
|
|
4815
|
+
// data = { ...record, schemaContent: JSON.stringify(data), ...formValue }
|
|
4816
|
+
// res = await controller.configupdate(data);
|
|
4817
|
+
// } else {
|
|
4818
|
+
// data = { schemaContent: JSON.stringify(data), ...formValue }
|
|
4819
|
+
// res = await controller.configsave(data);
|
|
4820
|
+
// }
|
|
4821
|
+
// // const res = await DocumentsService.instance.service?.call({ url, data, type: 'post' }) as any;
|
|
4822
|
+
// if (res.err) {
|
|
4823
|
+
// return false;
|
|
4824
|
+
// } else {
|
|
4825
|
+
// if (res.res) {
|
|
4826
|
+
// message.success('保存成功');
|
|
4827
|
+
// setChange(false);
|
|
4828
|
+
// setRecord(res.res);
|
|
4829
|
+
// }
|
|
4830
|
+
// }
|
|
4831
|
+
// })()
|
|
4832
|
+
// }, [record, schema]);
|
|
4833
|
+
// useEffect(() => {
|
|
4834
|
+
// if (status !== 0 && !disabled && first === false) {
|
|
4835
|
+
// autoSave();
|
|
4836
|
+
// }
|
|
4837
|
+
// }, [schema, status, first])
|
|
4838
|
+
// const onFinish = useCallback(() => {
|
|
4839
|
+
// setStatus(new Date().getTime());
|
|
4840
|
+
// }, []);
|
|
4841
|
+
// const onFinishFailed = useCallback(() => {
|
|
4842
|
+
// setStatus(0);
|
|
4843
|
+
// }, []);
|
|
4844
|
+
|
|
4845
|
+
/**
|
|
4846
|
+
* 手动保存
|
|
4847
|
+
*/
|
|
4848
|
+
|
|
4849
|
+
var onSave = useCallback(function () {
|
|
4850
|
+
var publish = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
4851
|
+
|
|
4852
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
4853
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
4805
4854
|
while (1) {
|
|
4806
|
-
switch (
|
|
4855
|
+
switch (_context5.prev = _context5.next) {
|
|
4807
4856
|
case 0:
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4857
|
+
form.validateFields().then( /*#__PURE__*/function () {
|
|
4858
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(values) {
|
|
4859
|
+
var data, res;
|
|
4860
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
4861
|
+
while (1) {
|
|
4862
|
+
switch (_context4.prev = _context4.next) {
|
|
4863
|
+
case 0:
|
|
4864
|
+
data = _objectSpread2({}, schema); // const formValue = form.getFieldsValue();
|
|
4811
4865
|
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4866
|
+
if (!(record && record.id)) {
|
|
4867
|
+
_context4.next = 8;
|
|
4868
|
+
break;
|
|
4869
|
+
}
|
|
4816
4870
|
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
return controller.configupdate(data);
|
|
4871
|
+
data = _objectSpread2(_objectSpread2({}, record), {}, {
|
|
4872
|
+
schemaContent: JSON.stringify(data)
|
|
4873
|
+
}, values);
|
|
4874
|
+
_context4.next = 5;
|
|
4875
|
+
return controller.configupdate(data);
|
|
4823
4876
|
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4877
|
+
case 5:
|
|
4878
|
+
res = _context4.sent;
|
|
4879
|
+
_context4.next = 12;
|
|
4880
|
+
break;
|
|
4828
4881
|
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4882
|
+
case 8:
|
|
4883
|
+
data = _objectSpread2({
|
|
4884
|
+
schemaContent: JSON.stringify(data)
|
|
4885
|
+
}, values);
|
|
4886
|
+
_context4.next = 11;
|
|
4887
|
+
return controller.configsave(data);
|
|
4835
4888
|
|
|
4836
|
-
|
|
4837
|
-
|
|
4889
|
+
case 11:
|
|
4890
|
+
res = _context4.sent;
|
|
4838
4891
|
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4892
|
+
case 12:
|
|
4893
|
+
if (!res.err) {
|
|
4894
|
+
_context4.next = 17;
|
|
4895
|
+
break;
|
|
4896
|
+
}
|
|
4844
4897
|
|
|
4845
|
-
|
|
4898
|
+
message$1.error('保存失败');
|
|
4899
|
+
return _context4.abrupt("return", false);
|
|
4846
4900
|
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
}
|
|
4901
|
+
case 17:
|
|
4902
|
+
if (res.res) {
|
|
4903
|
+
message$1.success('保存成功');
|
|
4904
|
+
setChange(false);
|
|
4905
|
+
setRecord(res.res);
|
|
4853
4906
|
|
|
4854
|
-
|
|
4907
|
+
if (publish) {
|
|
4908
|
+
onSendCheck();
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4911
|
+
|
|
4912
|
+
case 18:
|
|
4913
|
+
case "end":
|
|
4914
|
+
return _context4.stop();
|
|
4915
|
+
}
|
|
4916
|
+
}
|
|
4917
|
+
}, _callee4);
|
|
4918
|
+
}));
|
|
4919
|
+
|
|
4920
|
+
return function (_x) {
|
|
4921
|
+
return _ref5.apply(this, arguments);
|
|
4922
|
+
};
|
|
4923
|
+
}()).catch(function (errorInfo) {
|
|
4924
|
+
message$1.error('请输入必填内容!');
|
|
4925
|
+
});
|
|
4926
|
+
|
|
4927
|
+
case 1:
|
|
4855
4928
|
case "end":
|
|
4856
|
-
return
|
|
4929
|
+
return _context5.stop();
|
|
4857
4930
|
}
|
|
4858
4931
|
}
|
|
4859
|
-
},
|
|
4932
|
+
}, _callee5);
|
|
4860
4933
|
}))();
|
|
4861
|
-
}, [record, schema]);
|
|
4862
|
-
// if (status !== 0 && !disabled && first === false) {
|
|
4863
|
-
// autoSave();
|
|
4864
|
-
// }
|
|
4865
|
-
// }, [schema, status, first])
|
|
4866
|
-
// const onFinish = useCallback(() => {
|
|
4867
|
-
// setStatus(new Date().getTime());
|
|
4868
|
-
// }, []);
|
|
4869
|
-
// const onFinishFailed = useCallback(() => {
|
|
4870
|
-
// setStatus(0);
|
|
4871
|
-
// }, []);
|
|
4872
|
-
|
|
4934
|
+
}, [record, schema]);
|
|
4873
4935
|
/**
|
|
4874
|
-
*
|
|
4936
|
+
* 保存并发布
|
|
4875
4937
|
*/
|
|
4876
4938
|
|
|
4877
|
-
var onSave = useCallback(function () {
|
|
4878
|
-
autoSave();
|
|
4879
|
-
}, [record, schema]);
|
|
4880
4939
|
var onSendCheck = useCallback(function () {
|
|
4881
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
4940
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
4882
4941
|
var res;
|
|
4883
|
-
return regeneratorRuntime.wrap(function
|
|
4942
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
4884
4943
|
while (1) {
|
|
4885
|
-
switch (
|
|
4944
|
+
switch (_context6.prev = _context6.next) {
|
|
4886
4945
|
case 0:
|
|
4887
|
-
|
|
4946
|
+
_context6.next = 2;
|
|
4888
4947
|
return controller.listbysubjectid({});
|
|
4889
4948
|
|
|
4890
4949
|
case 2:
|
|
4891
|
-
res =
|
|
4950
|
+
res = _context6.sent;
|
|
4892
4951
|
|
|
4893
|
-
// const res = await DocumentsService.instance.service?.call({ url: '/dap/web/participant/listBySubjectId', data: null, type: 'get' }) as any;
|
|
4894
4952
|
if (res.res) {
|
|
4895
4953
|
setVisible(true);
|
|
4896
4954
|
setList(res.res);
|
|
@@ -4898,29 +4956,29 @@ function Rule(props) {
|
|
|
4898
4956
|
|
|
4899
4957
|
case 4:
|
|
4900
4958
|
case "end":
|
|
4901
|
-
return
|
|
4959
|
+
return _context6.stop();
|
|
4902
4960
|
}
|
|
4903
4961
|
}
|
|
4904
|
-
},
|
|
4962
|
+
}, _callee6);
|
|
4905
4963
|
}))();
|
|
4906
4964
|
}, []);
|
|
4907
4965
|
var handleOk = useCallback(function () {
|
|
4908
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
4966
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
4909
4967
|
var data, res;
|
|
4910
|
-
return regeneratorRuntime.wrap(function
|
|
4968
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
4911
4969
|
while (1) {
|
|
4912
|
-
switch (
|
|
4970
|
+
switch (_context7.prev = _context7.next) {
|
|
4913
4971
|
case 0:
|
|
4914
4972
|
data = _objectSpread2(_objectSpread2({}, record), {}, {
|
|
4915
4973
|
senderPartitionId: targetId,
|
|
4916
4974
|
privateList: [],
|
|
4917
4975
|
sendPublic: true
|
|
4918
4976
|
});
|
|
4919
|
-
|
|
4977
|
+
_context7.next = 3;
|
|
4920
4978
|
return controller.batchsend([data]);
|
|
4921
4979
|
|
|
4922
4980
|
case 3:
|
|
4923
|
-
res =
|
|
4981
|
+
res = _context7.sent;
|
|
4924
4982
|
|
|
4925
4983
|
// const res = await DocumentsService.instance.service?.call({ url: '/dap/web/schema/config/batchSend', data: [data], type: 'post' }) as any;
|
|
4926
4984
|
if (res.res) {
|
|
@@ -4930,10 +4988,10 @@ function Rule(props) {
|
|
|
4930
4988
|
|
|
4931
4989
|
case 5:
|
|
4932
4990
|
case "end":
|
|
4933
|
-
return
|
|
4991
|
+
return _context7.stop();
|
|
4934
4992
|
}
|
|
4935
4993
|
}
|
|
4936
|
-
},
|
|
4994
|
+
}, _callee7);
|
|
4937
4995
|
}))();
|
|
4938
4996
|
}, [targetId, record]);
|
|
4939
4997
|
var targetSelect = useCallback(function (e) {
|
|
@@ -4967,10 +5025,17 @@ function Rule(props) {
|
|
|
4967
5025
|
if (type === 'record') {
|
|
4968
5026
|
history.push({
|
|
4969
5027
|
pathname: "/rulelist",
|
|
4970
|
-
|
|
5028
|
+
state: {
|
|
5029
|
+
type: 2
|
|
5030
|
+
}
|
|
4971
5031
|
});
|
|
4972
5032
|
} else {
|
|
4973
|
-
history.
|
|
5033
|
+
history.push({
|
|
5034
|
+
pathname: "/rulelist",
|
|
5035
|
+
state: {
|
|
5036
|
+
type: 1
|
|
5037
|
+
}
|
|
5038
|
+
});
|
|
4974
5039
|
}
|
|
4975
5040
|
}, []);
|
|
4976
5041
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -4994,14 +5059,18 @@ function Rule(props) {
|
|
|
4994
5059
|
style: {
|
|
4995
5060
|
display: type === 'record' ? 'none' : ''
|
|
4996
5061
|
},
|
|
4997
|
-
onClick:
|
|
5062
|
+
onClick: function onClick() {
|
|
5063
|
+
onSave();
|
|
5064
|
+
}
|
|
4998
5065
|
}, "\u4FDD\u5B58"), /*#__PURE__*/React.createElement(Button$1, {
|
|
4999
5066
|
key: "3",
|
|
5000
5067
|
style: {
|
|
5001
5068
|
display: type === 'record' ? 'none' : ''
|
|
5002
5069
|
},
|
|
5003
|
-
onClick:
|
|
5004
|
-
|
|
5070
|
+
onClick: function onClick() {
|
|
5071
|
+
onSave(true);
|
|
5072
|
+
}
|
|
5073
|
+
}, "\u4FDD\u5B58\u5E76\u53D1\u5E03"), /*#__PURE__*/React.createElement(Button$1, {
|
|
5005
5074
|
key: "1",
|
|
5006
5075
|
type: "primary",
|
|
5007
5076
|
onClick: onQuit
|
|
@@ -5790,11 +5859,15 @@ var didList = /*#__PURE__*/(function () {
|
|
|
5790
5859
|
return _context.abrupt("return", false);
|
|
5791
5860
|
|
|
5792
5861
|
case 5:
|
|
5793
|
-
if (res.res) {
|
|
5794
|
-
|
|
5862
|
+
if (!res.res) {
|
|
5863
|
+
_context.next = 8;
|
|
5864
|
+
break;
|
|
5795
5865
|
}
|
|
5796
5866
|
|
|
5797
|
-
|
|
5867
|
+
s.didlist = res.res;
|
|
5868
|
+
return _context.abrupt("return", res);
|
|
5869
|
+
|
|
5870
|
+
case 8:
|
|
5798
5871
|
case "end":
|
|
5799
5872
|
return _context.stop();
|
|
5800
5873
|
}
|
|
@@ -5898,7 +5971,50 @@ var Header = (function () {
|
|
|
5898
5971
|
controller.checkclient();
|
|
5899
5972
|
}, []);
|
|
5900
5973
|
useEffect(function () {
|
|
5901
|
-
|
|
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
|
+
}))();
|
|
5902
6018
|
}, []);
|
|
5903
6019
|
useEffect(function () {
|
|
5904
6020
|
var didEnum = didlist.map(function (item) {
|
|
@@ -5925,7 +6041,7 @@ var Header = (function () {
|
|
|
5925
6041
|
},
|
|
5926
6042
|
dataStatus: {
|
|
5927
6043
|
type: "string",
|
|
5928
|
-
title: "
|
|
6044
|
+
title: "数据状态",
|
|
5929
6045
|
enum: [{
|
|
5930
6046
|
"label": "使用中",
|
|
5931
6047
|
"value": 1
|
|
@@ -5951,20 +6067,20 @@ var Header = (function () {
|
|
|
5951
6067
|
setSchema(obj);
|
|
5952
6068
|
}, [didlist]);
|
|
5953
6069
|
var batchBlockList = useCallback(function (type) {
|
|
5954
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6070
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
5955
6071
|
var res;
|
|
5956
|
-
return regeneratorRuntime.wrap(function
|
|
6072
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
5957
6073
|
while (1) {
|
|
5958
|
-
switch (
|
|
6074
|
+
switch (_context4.prev = _context4.next) {
|
|
5959
6075
|
case 0:
|
|
5960
|
-
|
|
6076
|
+
_context4.next = 2;
|
|
5961
6077
|
return controller.enablewhitelist({
|
|
5962
6078
|
flag: type,
|
|
5963
6079
|
didList: selectedRowKey
|
|
5964
6080
|
});
|
|
5965
6081
|
|
|
5966
6082
|
case 2:
|
|
5967
|
-
res =
|
|
6083
|
+
res = _context4.sent;
|
|
5968
6084
|
|
|
5969
6085
|
if (res.res) {
|
|
5970
6086
|
controller.getWhitelist(_objectSpread2(_objectSpread2({}, whiteParams), pageMeta));
|
|
@@ -5972,55 +6088,55 @@ var Header = (function () {
|
|
|
5972
6088
|
|
|
5973
6089
|
case 4:
|
|
5974
6090
|
case "end":
|
|
5975
|
-
return
|
|
6091
|
+
return _context4.stop();
|
|
5976
6092
|
}
|
|
5977
6093
|
}
|
|
5978
|
-
},
|
|
6094
|
+
}, _callee4);
|
|
5979
6095
|
}))();
|
|
5980
6096
|
}, [selectedRowKey]);
|
|
5981
6097
|
var createWhiteList = useCallback(function () {
|
|
5982
6098
|
controller.pipeline( /*#__PURE__*/function () {
|
|
5983
|
-
var
|
|
5984
|
-
return regeneratorRuntime.wrap(function
|
|
6099
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(s) {
|
|
6100
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
5985
6101
|
while (1) {
|
|
5986
|
-
switch (
|
|
6102
|
+
switch (_context5.prev = _context5.next) {
|
|
5987
6103
|
case 0:
|
|
5988
6104
|
s.visible = true;
|
|
5989
6105
|
s.listNature = '1';
|
|
5990
6106
|
|
|
5991
6107
|
case 2:
|
|
5992
6108
|
case "end":
|
|
5993
|
-
return
|
|
6109
|
+
return _context5.stop();
|
|
5994
6110
|
}
|
|
5995
6111
|
}
|
|
5996
|
-
},
|
|
6112
|
+
}, _callee5);
|
|
5997
6113
|
}));
|
|
5998
6114
|
|
|
5999
|
-
return function (
|
|
6000
|
-
return
|
|
6115
|
+
return function (_x3) {
|
|
6116
|
+
return _ref5.apply(this, arguments);
|
|
6001
6117
|
};
|
|
6002
6118
|
}())();
|
|
6003
6119
|
}, []);
|
|
6004
6120
|
var showClientModal = useCallback(function () {
|
|
6005
6121
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6006
|
-
var
|
|
6007
|
-
return regeneratorRuntime.wrap(function
|
|
6122
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(s) {
|
|
6123
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
6008
6124
|
while (1) {
|
|
6009
|
-
switch (
|
|
6125
|
+
switch (_context6.prev = _context6.next) {
|
|
6010
6126
|
case 0:
|
|
6011
6127
|
s.clientModal = true;
|
|
6012
6128
|
s.listNature = '1';
|
|
6013
6129
|
|
|
6014
6130
|
case 2:
|
|
6015
6131
|
case "end":
|
|
6016
|
-
return
|
|
6132
|
+
return _context6.stop();
|
|
6017
6133
|
}
|
|
6018
6134
|
}
|
|
6019
|
-
},
|
|
6135
|
+
}, _callee6);
|
|
6020
6136
|
}));
|
|
6021
6137
|
|
|
6022
|
-
return function (
|
|
6023
|
-
return
|
|
6138
|
+
return function (_x4) {
|
|
6139
|
+
return _ref6.apply(this, arguments);
|
|
6024
6140
|
};
|
|
6025
6141
|
}())();
|
|
6026
6142
|
}, []);
|
|
@@ -6119,13 +6235,22 @@ function Rule$1(props) {
|
|
|
6119
6235
|
var columns = useMemo(function () {
|
|
6120
6236
|
return [{
|
|
6121
6237
|
title: 'DID',
|
|
6122
|
-
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
|
+
}
|
|
6123
6246
|
}, {
|
|
6124
6247
|
title: '所属公司',
|
|
6125
|
-
dataIndex: 'customerName'
|
|
6248
|
+
dataIndex: 'customerName',
|
|
6249
|
+
width: 200
|
|
6126
6250
|
}, {
|
|
6127
|
-
title: '
|
|
6251
|
+
title: '数据状态',
|
|
6128
6252
|
dataIndex: 'dataStatus',
|
|
6253
|
+
width: 100,
|
|
6129
6254
|
render: function render(text) {
|
|
6130
6255
|
return dataStatusEnum[text];
|
|
6131
6256
|
}
|
|
@@ -6134,7 +6259,7 @@ function Rule$1(props) {
|
|
|
6134
6259
|
dataIndex: 'companyDid',
|
|
6135
6260
|
render: function render(text, record) {
|
|
6136
6261
|
if (text) {
|
|
6137
|
-
return /*#__PURE__*/React.createElement("
|
|
6262
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.companyDidNote), text);
|
|
6138
6263
|
} else {
|
|
6139
6264
|
return '';
|
|
6140
6265
|
}
|
|
@@ -6142,18 +6267,21 @@ function Rule$1(props) {
|
|
|
6142
6267
|
}, {
|
|
6143
6268
|
title: '加入时间',
|
|
6144
6269
|
dataIndex: 'createTime',
|
|
6270
|
+
width: 200,
|
|
6145
6271
|
render: function render(text) {
|
|
6146
6272
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6147
6273
|
}
|
|
6148
6274
|
}, {
|
|
6149
6275
|
title: '最近更新时间',
|
|
6150
6276
|
dataIndex: 'updateTime',
|
|
6277
|
+
width: 200,
|
|
6151
6278
|
render: function render(text) {
|
|
6152
6279
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6153
6280
|
}
|
|
6154
6281
|
}, {
|
|
6155
6282
|
title: '操作',
|
|
6156
6283
|
dataIndex: 'console',
|
|
6284
|
+
width: 80,
|
|
6157
6285
|
render: function render(text, record) {
|
|
6158
6286
|
return /*#__PURE__*/React.createElement("span", null, record.dataStatus === 1 ? /*#__PURE__*/React.createElement("a", {
|
|
6159
6287
|
className: "tabel-action",
|
|
@@ -6360,7 +6488,7 @@ var Header$1 = (function () {
|
|
|
6360
6488
|
},
|
|
6361
6489
|
dataStatus: {
|
|
6362
6490
|
type: "string",
|
|
6363
|
-
title: "
|
|
6491
|
+
title: "数据状态",
|
|
6364
6492
|
enum: [{
|
|
6365
6493
|
"label": "使用中",
|
|
6366
6494
|
"value": 1
|
|
@@ -6551,13 +6679,22 @@ function Rule$2(props) {
|
|
|
6551
6679
|
var columns = useMemo(function () {
|
|
6552
6680
|
return [{
|
|
6553
6681
|
title: 'DID',
|
|
6554
|
-
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
|
+
}
|
|
6555
6690
|
}, {
|
|
6556
6691
|
title: '所属公司',
|
|
6692
|
+
width: 200,
|
|
6557
6693
|
dataIndex: 'customerName'
|
|
6558
6694
|
}, {
|
|
6559
|
-
title: '
|
|
6695
|
+
title: '数据状态',
|
|
6560
6696
|
dataIndex: 'dataStatus',
|
|
6697
|
+
width: 100,
|
|
6561
6698
|
render: function render(text) {
|
|
6562
6699
|
return dataStatusEnum[text];
|
|
6563
6700
|
}
|
|
@@ -6566,7 +6703,7 @@ function Rule$2(props) {
|
|
|
6566
6703
|
dataIndex: 'companyDid',
|
|
6567
6704
|
render: function render(text, record) {
|
|
6568
6705
|
if (text) {
|
|
6569
|
-
return /*#__PURE__*/React.createElement("
|
|
6706
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.companyDidNote), text);
|
|
6570
6707
|
} else {
|
|
6571
6708
|
return '';
|
|
6572
6709
|
}
|
|
@@ -6574,17 +6711,20 @@ function Rule$2(props) {
|
|
|
6574
6711
|
}, {
|
|
6575
6712
|
title: '加入时间',
|
|
6576
6713
|
dataIndex: 'createTime',
|
|
6714
|
+
width: 200,
|
|
6577
6715
|
render: function render(text) {
|
|
6578
6716
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6579
6717
|
}
|
|
6580
6718
|
}, {
|
|
6581
6719
|
title: '最近更新时间',
|
|
6720
|
+
width: 200,
|
|
6582
6721
|
dataIndex: 'updateTime',
|
|
6583
6722
|
render: function render(text) {
|
|
6584
6723
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6585
6724
|
}
|
|
6586
6725
|
}, {
|
|
6587
6726
|
title: '操作',
|
|
6727
|
+
width: 80,
|
|
6588
6728
|
dataIndex: 'console',
|
|
6589
6729
|
render: function render(text, record) {
|
|
6590
6730
|
return /*#__PURE__*/React.createElement("span", null, record.dataStatus === 1 ? /*#__PURE__*/React.createElement("a", {
|
|
@@ -7079,8 +7219,8 @@ function modalcomfirm$1(props) {
|
|
|
7079
7219
|
message: '请输入必填项'
|
|
7080
7220
|
}]
|
|
7081
7221
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
7082
|
-
maxLength:
|
|
7083
|
-
placeholder: "\u6700\u591A\u8F93\
|
|
7222
|
+
maxLength: 60,
|
|
7223
|
+
placeholder: "\u6700\u591A\u8F93\u516560\u4E2A\u5B57\u7B26"
|
|
7084
7224
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
7085
7225
|
label: "DID\u5907\u6CE8\u540D\u79F0",
|
|
7086
7226
|
name: "customerDidNote",
|
|
@@ -7089,8 +7229,8 @@ function modalcomfirm$1(props) {
|
|
|
7089
7229
|
message: '请输入必填项'
|
|
7090
7230
|
}]
|
|
7091
7231
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
7092
|
-
maxLength:
|
|
7093
|
-
placeholder: "\u6700\u591A\u8F93\
|
|
7232
|
+
maxLength: 20,
|
|
7233
|
+
placeholder: "\u6700\u591A\u8F93\u516520\u4E2A\u5B57\u7B26"
|
|
7094
7234
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
7095
7235
|
label: "\u6240\u5C5E\u516C\u53F8",
|
|
7096
7236
|
name: "customerName",
|
|
@@ -7099,8 +7239,8 @@ function modalcomfirm$1(props) {
|
|
|
7099
7239
|
message: '请输入必填项'
|
|
7100
7240
|
}]
|
|
7101
7241
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
7102
|
-
maxLength:
|
|
7103
|
-
placeholder: "\u6700\u591A\u8F93\
|
|
7242
|
+
maxLength: 100,
|
|
7243
|
+
placeholder: "\u6700\u591A\u8F93\u5165100\u4E2A\u5B57\u7B26"
|
|
7104
7244
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
7105
7245
|
label: "\u5BF9\u5E94\u6211\u7684DID",
|
|
7106
7246
|
name: "companyDid",
|
|
@@ -7131,83 +7271,6 @@ function modalcomfirm$1(props) {
|
|
|
7131
7271
|
}, "\u53D6\u6D88")))));
|
|
7132
7272
|
}
|
|
7133
7273
|
|
|
7134
|
-
var CustomerPage = /*#__PURE__*/function (_React$Component) {
|
|
7135
|
-
_inherits(CustomerPage, _React$Component);
|
|
7136
|
-
|
|
7137
|
-
var _super = _createSuper(CustomerPage);
|
|
7138
|
-
|
|
7139
|
-
function CustomerPage(props) {
|
|
7140
|
-
var _this;
|
|
7141
|
-
|
|
7142
|
-
_classCallCheck(this, CustomerPage);
|
|
7143
|
-
|
|
7144
|
-
_this = _super.call(this, props);
|
|
7145
|
-
|
|
7146
|
-
_this.onPageChange = function (page, pageSize) {
|
|
7147
|
-
_this.props.onChange(page, pageSize);
|
|
7148
|
-
};
|
|
7149
|
-
|
|
7150
|
-
_this.onShowSizeChange = function (current, pageSize) {
|
|
7151
|
-
_this.props.onChange(current, pageSize);
|
|
7152
|
-
};
|
|
7153
|
-
|
|
7154
|
-
_this.state = {
|
|
7155
|
-
pageMeta: _this.props.data
|
|
7156
|
-
};
|
|
7157
|
-
return _this;
|
|
7158
|
-
} // 点击下标改变页面
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
_createClass(CustomerPage, [{
|
|
7162
|
-
key: "componentWillReceiveProps",
|
|
7163
|
-
value: function componentWillReceiveProps(nextProps) {
|
|
7164
|
-
if (nextProps.data !== this.props.data) {
|
|
7165
|
-
this.setState({
|
|
7166
|
-
pageMeta: nextProps.data
|
|
7167
|
-
});
|
|
7168
|
-
}
|
|
7169
|
-
}
|
|
7170
|
-
}, {
|
|
7171
|
-
key: "render",
|
|
7172
|
-
value: function render() {
|
|
7173
|
-
var _this2 = this;
|
|
7174
|
-
|
|
7175
|
-
var pageMeta = this.state.pageMeta;
|
|
7176
|
-
var isShowPageSize = this.props.showSizeChanger !== undefined ? this.props.showSizeChanger : true;
|
|
7177
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7178
|
-
style: {
|
|
7179
|
-
padding: '16px 10px',
|
|
7180
|
-
textAlign: 'center'
|
|
7181
|
-
}
|
|
7182
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7183
|
-
className: "my-pagination-div"
|
|
7184
|
-
}, /*#__PURE__*/React.createElement(Pagination$1, {
|
|
7185
|
-
size: "small",
|
|
7186
|
-
showQuickJumper: true,
|
|
7187
|
-
defaultCurrent: pageMeta.pageNum,
|
|
7188
|
-
total: pageMeta.total,
|
|
7189
|
-
current: pageMeta.pageNum,
|
|
7190
|
-
pageSize: pageMeta.pageSize,
|
|
7191
|
-
pageSizeOptions: this.props.pageSizeOptions || [],
|
|
7192
|
-
showTotal: function showTotal(total, range) {
|
|
7193
|
-
if (total > 0) {
|
|
7194
|
-
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", {
|
|
7195
|
-
className: "number"
|
|
7196
|
-
}, total), "\u6761"));
|
|
7197
|
-
}
|
|
7198
|
-
|
|
7199
|
-
return '';
|
|
7200
|
-
},
|
|
7201
|
-
onChange: this.onPageChange,
|
|
7202
|
-
onShowSizeChange: this.onShowSizeChange,
|
|
7203
|
-
showSizeChanger: pageMeta.total > 0 && isShowPageSize === true ? true : false
|
|
7204
|
-
})));
|
|
7205
|
-
}
|
|
7206
|
-
}]);
|
|
7207
|
-
|
|
7208
|
-
return CustomerPage;
|
|
7209
|
-
}(React.Component);
|
|
7210
|
-
|
|
7211
7274
|
function modalcomfirm$2(props) {
|
|
7212
7275
|
var controller = WhiteList.useController();
|
|
7213
7276
|
var clientInfo = controller.useMemo(function (s) {
|
|
@@ -7228,7 +7291,8 @@ function modalcomfirm$2(props) {
|
|
|
7228
7291
|
|
|
7229
7292
|
var _useState3 = useState({
|
|
7230
7293
|
pageNum: 1,
|
|
7231
|
-
pageSize: 10
|
|
7294
|
+
pageSize: 10,
|
|
7295
|
+
total: 0
|
|
7232
7296
|
}),
|
|
7233
7297
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7234
7298
|
pageMeta = _useState4[0],
|
|
@@ -7250,12 +7314,6 @@ function modalcomfirm$2(props) {
|
|
|
7250
7314
|
var listNature = controller.useMemo(function (s) {
|
|
7251
7315
|
return s.listNature;
|
|
7252
7316
|
}, []);
|
|
7253
|
-
|
|
7254
|
-
var _useState9 = useState(''),
|
|
7255
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
7256
|
-
companyDidNote = _useState10[0],
|
|
7257
|
-
setNote = _useState10[1];
|
|
7258
|
-
|
|
7259
7317
|
useEffect(function () {
|
|
7260
7318
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
7261
7319
|
var res;
|
|
@@ -7331,16 +7389,24 @@ function modalcomfirm$2(props) {
|
|
|
7331
7389
|
var columns = useMemo(function () {
|
|
7332
7390
|
return [{
|
|
7333
7391
|
title: 'DID',
|
|
7334
|
-
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
|
+
}
|
|
7335
7400
|
}, {
|
|
7336
7401
|
title: '所属公司',
|
|
7337
|
-
dataIndex: 'customerName'
|
|
7402
|
+
dataIndex: 'customerName',
|
|
7403
|
+
width: 200
|
|
7338
7404
|
}, {
|
|
7339
7405
|
title: '对应我的DID',
|
|
7340
7406
|
dataIndex: 'companyDid',
|
|
7341
7407
|
render: function render(text, record) {
|
|
7342
7408
|
if (text) {
|
|
7343
|
-
return /*#__PURE__*/React.createElement("
|
|
7409
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, record.companyDidNote), text);
|
|
7344
7410
|
} else {
|
|
7345
7411
|
return '';
|
|
7346
7412
|
}
|
|
@@ -7424,10 +7490,13 @@ function modalcomfirm$2(props) {
|
|
|
7424
7490
|
visible: true,
|
|
7425
7491
|
footer: null,
|
|
7426
7492
|
onCancel: handleCancel,
|
|
7427
|
-
width:
|
|
7493
|
+
width: 1000
|
|
7428
7494
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7429
7495
|
style: {
|
|
7430
|
-
marginBottom: 24
|
|
7496
|
+
marginBottom: 24,
|
|
7497
|
+
display: 'flex',
|
|
7498
|
+
alignItems: 'center',
|
|
7499
|
+
justifyContent: 'space-between'
|
|
7431
7500
|
}
|
|
7432
7501
|
}, /*#__PURE__*/React.createElement(AdvancedSearch, {
|
|
7433
7502
|
width: 480,
|
|
@@ -7443,24 +7512,34 @@ function modalcomfirm$2(props) {
|
|
|
7443
7512
|
compact: true,
|
|
7444
7513
|
schema: schema,
|
|
7445
7514
|
defaultValue: _.pick(params, ['customerDid', 'customerDidNote', 'companyDid', 'customerName'])
|
|
7446
|
-
}))
|
|
7447
|
-
rowSelection: rowSelection,
|
|
7448
|
-
columns: columns,
|
|
7449
|
-
rowKey: "customerDid",
|
|
7450
|
-
dataSource: list,
|
|
7451
|
-
pagination: false
|
|
7452
|
-
}), pageMeta && /*#__PURE__*/React.createElement(CustomerPage, {
|
|
7453
|
-
data: pageMeta,
|
|
7454
|
-
onChange: onPageChange
|
|
7455
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
7515
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
7456
7516
|
onClick: handleCancel,
|
|
7457
7517
|
style: {
|
|
7458
7518
|
marginRight: 20
|
|
7459
7519
|
}
|
|
7460
7520
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
7521
|
+
disabled: selectedRowKeys.length > 0 ? false : true,
|
|
7461
7522
|
type: "primary",
|
|
7462
7523
|
onClick: onSubmit
|
|
7463
|
-
}, "\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
|
+
})));
|
|
7464
7543
|
}
|
|
7465
7544
|
|
|
7466
7545
|
var MainContext = /*#__PURE__*/createContext(null);
|