kts-components-document-access-point 1.1.22 → 1.1.26

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.
Files changed (36) hide show
  1. package/dist/DocumentWhiteList/control/actions/setmode/index.d.ts +1 -2
  2. package/dist/DocumentWhiteList/control/index.d.ts +1 -1
  3. package/dist/DocumentWhiteList/interface/index.d.ts +1 -1
  4. package/dist/DocumentsList/ui/PageHeader/SendHeader.d.ts +2 -0
  5. package/dist/DocumentsList/ui/{PageUi → PageUI}/index.d.ts +0 -0
  6. package/dist/index.esm.js +279 -147
  7. package/dist/index.js +279 -147
  8. package/package.json +1 -1
  9. package/src/DocumentWhiteList/control/actions/addblack/index.ts +1 -1
  10. package/src/DocumentWhiteList/control/actions/addwhite/index.ts +1 -1
  11. package/src/DocumentWhiteList/control/actions/blacklist/index.ts +1 -1
  12. package/src/DocumentWhiteList/control/actions/checkclient/index.ts +1 -1
  13. package/src/DocumentWhiteList/control/actions/enableblacklist/index.ts +1 -1
  14. package/src/DocumentWhiteList/control/actions/enablelist/index.ts +1 -1
  15. package/src/DocumentWhiteList/control/actions/enablewhitelist/index.ts +1 -1
  16. package/src/DocumentWhiteList/control/actions/getmode/index.ts +1 -2
  17. package/src/DocumentWhiteList/control/actions/setmode/index.ts +2 -2
  18. package/src/DocumentWhiteList/control/actions/synclist/index.ts +1 -1
  19. package/src/DocumentWhiteList/control/actions/whitelist/index.ts +1 -1
  20. package/src/DocumentWhiteList/interface/index.ts +1 -1
  21. package/src/DocumentWhiteList/ui/main/black.tsx +4 -2
  22. package/src/DocumentWhiteList/ui/main/index.tsx +8 -9
  23. package/src/DocumentWhiteList/ui/main/switchmode.tsx +5 -5
  24. package/src/DocumentWhiteList/ui/main/white.tsx +4 -2
  25. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/index.ts +1 -1
  26. package/src/DocumentsEdit/DocumentsEditController/actions/editProperties/index.ts +9 -4
  27. package/src/DocumentsEdit/___demo___/monitor/index.tsx +1 -0
  28. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/index.tsx +1 -0
  29. package/src/DocumentsList/DocumentsListController/actions/typelist/index.ts +1 -1
  30. package/src/DocumentsList/index.tsx +2 -2
  31. package/src/DocumentsList/ui/ModalComfirm/index.tsx +4 -4
  32. package/src/DocumentsList/ui/PageHeader/SendHeader.tsx +230 -0
  33. package/src/DocumentsList/ui/PageHeader/index.tsx +130 -62
  34. package/src/DocumentsList/ui/RuleTable/index.tsx +9 -8
  35. package/src/DocumentsList/ui/sendlist/index.tsx +53 -19
  36. package/src/DocumentsRule/ui/main/index.tsx +8 -8
package/dist/index.esm.js CHANGED
@@ -557,7 +557,7 @@ var DocumentsEditControllerState = function DocumentsEditControllerState(schema)
557
557
  this.definitions = new Map();
558
558
  this.breadcrumbState = [];
559
559
  this.ruleState = new RuleState();
560
- this.schema = schema || JSON.parse(JSON.stringify(defaultSchema));
560
+ this.schema = schema ? JSON.parse(JSON.stringify(schema)) : JSON.parse(JSON.stringify(defaultSchema));
561
561
  }
562
562
  /** 文档数据 */
563
563
  ;
@@ -642,7 +642,7 @@ var addProperties = /*#__PURE__*/(function () {
642
642
 
643
643
  var editProperties = /*#__PURE__*/(function () {
644
644
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s, options) {
645
- var editProperties, properties, current, pro;
645
+ var editProperties, properties, current, required, p, pro;
646
646
  return regeneratorRuntime.wrap(function _callee$(_context) {
647
647
  while (1) {
648
648
  switch (_context.prev = _context.next) {
@@ -655,8 +655,7 @@ var editProperties = /*#__PURE__*/(function () {
655
655
  return _context.abrupt("return");
656
656
 
657
657
  case 2:
658
- editProperties = options.editProperties, properties = options.properties, current = options.current;
659
- debugger; // 对象数据
658
+ editProperties = options.editProperties, properties = options.properties, current = options.current; // 对象数据
660
659
 
661
660
  current.properties[properties.$name].alias = properties.title;
662
661
  current.properties[properties.$name].detailed = properties.description; // 修改了类型 清空规则
@@ -666,12 +665,18 @@ var editProperties = /*#__PURE__*/(function () {
666
665
  } // 设置必填
667
666
 
668
667
 
669
- current.required = current.required.filter(function (e) {
670
- return e !== properties.$name;
671
- });
668
+ required = current.required;
672
669
 
673
670
  if (properties.required) {
674
- current.required.push(properties.$name);
671
+ if (required.indexOf(properties.$name) < 0) {
672
+ current.required.push(properties.$name);
673
+ }
674
+ } else {
675
+ p = required.indexOf(properties.$name);
676
+
677
+ if (p >= 0) {
678
+ required.splice(p, 1);
679
+ }
675
680
  }
676
681
 
677
682
  pro = function () {
@@ -703,7 +708,7 @@ var editProperties = /*#__PURE__*/(function () {
703
708
 
704
709
  s.schema = _objectSpread2({}, s.schema);
705
710
 
706
- case 13:
711
+ case 12:
707
712
  case "end":
708
713
  return _context.stop();
709
714
  }
@@ -2705,7 +2710,7 @@ function modalcomfirm(props) {
2705
2710
  case 0:
2706
2711
  _context.next = 2;
2707
2712
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
2708
- url: '/dap/participant/listBySubjectId',
2713
+ url: '/dap/web/participant/listBySubjectId',
2709
2714
  data: {},
2710
2715
  type: 'get'
2711
2716
  });
@@ -2739,14 +2744,14 @@ function modalcomfirm(props) {
2739
2744
  case 0:
2740
2745
  data = selectItems.map(function (item) {
2741
2746
  return _objectSpread2(_objectSpread2({}, item), {}, {
2742
- sendPartitionId: targetId,
2747
+ senderPartitionId: targetId,
2743
2748
  privateList: [],
2744
2749
  sendPublic: true
2745
2750
  });
2746
2751
  });
2747
2752
  _context2.next = 3;
2748
2753
  return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
2749
- url: '/dap/schema/config/batchSend',
2754
+ url: '/dap/web/schema/config/batchSend',
2750
2755
  data: data,
2751
2756
  type: 'post'
2752
2757
  });
@@ -2797,7 +2802,7 @@ function modalcomfirm(props) {
2797
2802
  };
2798
2803
  }, []);
2799
2804
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, {
2800
- title: "\u8BF7\u9009\u62E9",
2805
+ title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94DID",
2801
2806
  visible: true,
2802
2807
  onOk: handleOk,
2803
2808
  onCancel: handleCancel
@@ -2858,7 +2863,7 @@ var PageHeader = (function () {
2858
2863
  case 0:
2859
2864
  _context.next = 2;
2860
2865
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
2861
- url: '/dap/schema/config/getDefaultTypeList',
2866
+ url: '/dap/web/schema/config/getDefaultTypeList',
2862
2867
  data: {},
2863
2868
  type: 'get'
2864
2869
  });
@@ -2983,62 +2988,129 @@ var PageHeader = (function () {
2983
2988
  }())();
2984
2989
  }, [controller]);
2985
2990
  useEffect(function () {
2986
- var obj = {
2987
- type: "object",
2988
- properties: {
2989
- // configNumber: {
2990
- // type: "string",
2991
- // title: "配置编号",
2992
- // },
2993
- configName: {
2994
- type: "string",
2995
- title: "配置名称"
2996
- },
2997
- attributionList: {
2998
- type: "string",
2999
- title: "发送对象",
3000
- visible: type === 2 ? true : false
3001
- },
3002
- type: {
3003
- type: "string",
3004
- title: "单据大类",
3005
- enum: billEnum
3006
- },
3007
- profile: {
3008
- type: "string",
3009
- title: "单据子类",
3010
- enum: profileEnum,
3011
- visible: false
3012
- },
3013
- attribution: {
3014
- type: "string",
3015
- title: "单据类型",
3016
- enum: [{
3017
- "label": "发送方",
3018
- "value": '1'
3019
- }, {
3020
- "label": "接收方",
3021
- "value": '0'
3022
- }],
3023
- 'x-props': {
3024
- mode: "multiple"
2991
+ if (type === 1) {
2992
+ var obj = {
2993
+ type: "object",
2994
+ properties: {
2995
+ configName: {
2996
+ type: "string",
2997
+ title: "配置名称"
2998
+ },
2999
+ attributionList: {
3000
+ type: "string",
3001
+ title: "发送对象",
3002
+ visible: false
3003
+ },
3004
+ type: {
3005
+ type: "string",
3006
+ title: "单据大类",
3007
+ enum: billEnum
3008
+ },
3009
+ profile: {
3010
+ type: "string",
3011
+ title: "单据子类",
3012
+ enum: profileEnum,
3013
+ visible: false
3014
+ },
3015
+ attribution: {
3016
+ type: "string",
3017
+ title: "单据类型",
3018
+ enum: [{
3019
+ "label": "发送方",
3020
+ "value": '1'
3021
+ }, {
3022
+ "label": "接收方",
3023
+ "value": '0'
3024
+ }],
3025
+ 'x-props': {
3026
+ mode: "multiple"
3027
+ }
3028
+ },
3029
+ '[beginCreateTime,endCreateTime]': {
3030
+ key: "[beginCreateTime,endCreateTime",
3031
+ name: "[beginCreateTime,endCreateTime",
3032
+ type: "daterange",
3033
+ title: "创建时间"
3034
+ },
3035
+ '[beginSendTime,endSendTime]': {
3036
+ key: "[beginSendTime,endSendTime",
3037
+ name: "[beginSendTime,endSendTime",
3038
+ type: "daterange",
3039
+ title: "更新时间"
3025
3040
  }
3026
- },
3027
- '[beginCreateTime,endCreateTime]': {
3028
- key: "[beginCreateTime,endCreateTime",
3029
- name: "[beginCreateTime,endCreateTime",
3030
- type: "daterange",
3031
- title: "创建时间"
3032
- },
3033
- '[beginSendTime,endSendTime]': {
3034
- key: "[beginSendTime,endSendTime",
3035
- name: "[beginSendTime,endSendTime",
3036
- type: "daterange",
3037
- title: "更新时间"
3038
3041
  }
3039
- }
3040
- };
3041
- setSchema(obj);
3042
+ };
3043
+ setSchema(obj);
3044
+ } else if (type === 2) {
3045
+ var _obj = {
3046
+ type: "object",
3047
+ properties: {
3048
+ configName: {
3049
+ type: "string",
3050
+ title: "配置名称"
3051
+ },
3052
+ biaoshi: {
3053
+ type: "string",
3054
+ title: "标识"
3055
+ },
3056
+ attributionList: {
3057
+ type: "string",
3058
+ title: "发送对象",
3059
+ visible: true
3060
+ },
3061
+ did: {
3062
+ type: "string",
3063
+ title: "我司对应DID"
3064
+ },
3065
+ duixiang: {
3066
+ type: "string",
3067
+ title: "接受对象"
3068
+ },
3069
+ duixianggongsi: {
3070
+ type: "string",
3071
+ title: "接受对象所属公司"
3072
+ },
3073
+ type: {
3074
+ type: "string",
3075
+ title: "单据大类",
3076
+ enum: billEnum
3077
+ },
3078
+ profile: {
3079
+ type: "string",
3080
+ title: "单据子类",
3081
+ enum: profileEnum,
3082
+ visible: false
3083
+ },
3084
+ attribution: {
3085
+ type: "string",
3086
+ title: "单据类型",
3087
+ enum: [{
3088
+ "label": "发送方",
3089
+ "value": '1'
3090
+ }, {
3091
+ "label": "接收方",
3092
+ "value": '0'
3093
+ }],
3094
+ 'x-props': {
3095
+ mode: "multiple"
3096
+ }
3097
+ },
3098
+ '[beginCreateTime,endCreateTime]': {
3099
+ key: "[beginCreateTime,endCreateTime",
3100
+ name: "[beginCreateTime,endCreateTime",
3101
+ type: "daterange",
3102
+ title: "创建时间"
3103
+ },
3104
+ '[beginSendTime,endSendTime]': {
3105
+ key: "[beginSendTime,endSendTime",
3106
+ name: "[beginSendTime,endSendTime",
3107
+ type: "daterange",
3108
+ title: "更新时间"
3109
+ }
3110
+ }
3111
+ };
3112
+ setSchema(_obj);
3113
+ }
3042
3114
  }, [billEnum, type, profileEnum]);
3043
3115
  var onCreateType = useCallback(function (category, record) {
3044
3116
  history.push({
@@ -3062,7 +3134,7 @@ var PageHeader = (function () {
3062
3134
  value: 1
3063
3135
  }, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$1.Button, {
3064
3136
  value: 2
3065
- }, "\u53D1\u9001\u8BB0\u5F55"))), /*#__PURE__*/React.createElement(AdvancedSearch, {
3137
+ }, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React.createElement(AdvancedSearch, {
3066
3138
  width: 480,
3067
3139
  height: 44,
3068
3140
  compact: true,
@@ -3076,16 +3148,15 @@ var PageHeader = (function () {
3076
3148
  labelAlign: 'left',
3077
3149
  compact: true,
3078
3150
  schema: schema,
3079
- defaultValue: _.pick(params, ['configNumber', 'configName', 'type', 'profile', 'attributionList', 'attribution', '[beginCreateTime,endCreateTime]', '[beginSendTime,endSendTime]']),
3151
+ defaultValue: _.pick(params, ['configName', 'type', 'profile', 'attributionList', 'attribution', '[beginCreateTime,endCreateTime]', '[beginSendTime,endSendTime]']),
3080
3152
  effects: function effects($, actions) {
3081
3153
  $(LifeCycleTypes.ON_FIELD_VALUE_CHANGE, 'type').subscribe(function (fieldState) {
3082
3154
  if (fieldState.value) {
3083
- var value = fieldState.value;
3084
3155
  var target = billEnum.find(function (item) {
3085
- return item.value === value;
3156
+ return item.value === fieldState.value;
3086
3157
  });
3087
3158
 
3088
- if (target.profileList) {
3159
+ if (target && target.profileList) {
3089
3160
  actions.setFieldState('profile', function (state) {
3090
3161
  state.visible = true;
3091
3162
  });
@@ -3111,7 +3182,7 @@ var PageHeader = (function () {
3111
3182
  });
3112
3183
  }
3113
3184
  })));
3114
- }, [type]);
3185
+ }, [type, schema]);
3115
3186
  var menu = useMemo(function () {
3116
3187
  return /*#__PURE__*/React.createElement(Menu, null, billEnum && billEnum.map(function (item, key) {
3117
3188
  if (item.profileList) {
@@ -3150,7 +3221,7 @@ var PageHeader = (function () {
3150
3221
  style: {
3151
3222
  marginRight: 10
3152
3223
  }
3153
- }, "\u6279\u91CF\u53D1\u9001"), /*#__PURE__*/React.createElement(Dropdown, {
3224
+ }, "\u6279\u91CF\u53D1\u5E03"), /*#__PURE__*/React.createElement(Dropdown, {
3154
3225
  key: "2",
3155
3226
  overlay: menu
3156
3227
  }, /*#__PURE__*/React.createElement(Button$1, {
@@ -3187,7 +3258,10 @@ function validaterule(props) {
3187
3258
  pageMeta = _useState2[0],
3188
3259
  setpageMeta = _useState2[1];
3189
3260
 
3190
- var _useState3 = useState(),
3261
+ var _useState3 = useState({
3262
+ pageSize: 10,
3263
+ pageNum: 1
3264
+ }),
3191
3265
  _useState4 = _slicedToArray(_useState3, 2),
3192
3266
  pageParams = _useState4[0],
3193
3267
  setpageParams = _useState4[1];
@@ -3218,7 +3292,7 @@ function validaterule(props) {
3218
3292
  case 0:
3219
3293
  _context.next = 2;
3220
3294
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
3221
- url: '/dap/schema/config/queryConfigSchemaPage',
3295
+ url: '/dap/web/schema/config/queryConfigSchemaPage',
3222
3296
  data: _objectSpread2(_objectSpread2({}, params), pageParams),
3223
3297
  type: 'post'
3224
3298
  });
@@ -3259,7 +3333,7 @@ function validaterule(props) {
3259
3333
  case 0:
3260
3334
  _context2.next = 2;
3261
3335
  return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
3262
- url: '/dap/schema/config/getDefaultTypeList',
3336
+ url: '/dap/web/schema/config/getDefaultTypeList',
3263
3337
  data: {},
3264
3338
  type: 'get'
3265
3339
  });
@@ -3394,12 +3468,12 @@ function validaterule(props) {
3394
3468
  onClick: function onClick() {
3395
3469
  onSendCheck(record);
3396
3470
  }
3397
- }, "\u53D1\u9001"), /*#__PURE__*/React.createElement("a", {
3471
+ }, "\u53D1\u5E03"), record.publishStatus === 1 && /*#__PURE__*/React.createElement("a", {
3398
3472
  className: "tabel-action",
3399
3473
  onClick: function onClick() {
3400
3474
  onBillSendList(record);
3401
3475
  }
3402
- }, "\u53D1\u9001\u8BB0\u5F55"));
3476
+ }, "\u53D1\u5E03\u8BB0\u5F55"));
3403
3477
  }
3404
3478
  }];
3405
3479
  var rowSelection = useMemo(function () {
@@ -3469,7 +3543,7 @@ function validaterule(props) {
3469
3543
  }())();
3470
3544
  _context6.next = 4;
3471
3545
  return (_DocumentsService$ins3 = DocumentsService.instance.service) === null || _DocumentsService$ins3 === void 0 ? void 0 : _DocumentsService$ins3.call({
3472
- url: '/dap/participant/listBySubjectId',
3546
+ url: '/dap/web/participant/listBySubjectId',
3473
3547
  data: {},
3474
3548
  type: 'get'
3475
3549
  });
@@ -3512,7 +3586,7 @@ function validaterule(props) {
3512
3586
  };
3513
3587
  }())();
3514
3588
  }, []);
3515
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AutoTableContainer, {
3589
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageHeader, null), /*#__PURE__*/React.createElement(AutoTableContainer, {
3516
3590
  style: {
3517
3591
  flex: 1,
3518
3592
  padding: '0 20px',
@@ -3617,7 +3691,10 @@ function validaterule$1(props) {
3617
3691
  pageMeta = _useState4[0],
3618
3692
  setpageMeta = _useState4[1];
3619
3693
 
3620
- var _useState5 = useState(),
3694
+ var _useState5 = useState({
3695
+ pageSize: 10,
3696
+ pageNum: 1
3697
+ }),
3621
3698
  _useState6 = _slicedToArray(_useState5, 2),
3622
3699
  pageParams = _useState6[0],
3623
3700
  setpageParams = _useState6[1];
@@ -3643,7 +3720,7 @@ function validaterule$1(props) {
3643
3720
  case 0:
3644
3721
  _context.next = 2;
3645
3722
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
3646
- url: '/dap/schema/config/querySendRecordPage',
3723
+ url: '/dap/web/schema/config/querySendRecordPage',
3647
3724
  data: _objectSpread2(_objectSpread2({}, params), pageParams),
3648
3725
  type: 'post'
3649
3726
  });
@@ -3684,7 +3761,7 @@ function validaterule$1(props) {
3684
3761
  case 0:
3685
3762
  _context2.next = 2;
3686
3763
  return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
3687
- url: '/dap/schema/config/getDefaultTypeList',
3764
+ url: '/dap/web/schema/config/getDefaultTypeList',
3688
3765
  data: {},
3689
3766
  type: 'get'
3690
3767
  });
@@ -3742,7 +3819,19 @@ function validaterule$1(props) {
3742
3819
  title: '配置名称',
3743
3820
  dataIndex: 'configName'
3744
3821
  }, {
3745
- title: '单据大类',
3822
+ title: '使用标识',
3823
+ dataIndex: 'effectStatus',
3824
+ render: function render(text) {
3825
+ if (text === 0) {
3826
+ return /*#__PURE__*/React.createElement("span", null, "\u672A\u751F\u6548");
3827
+ }
3828
+
3829
+ if (text === 1) {
3830
+ return /*#__PURE__*/React.createElement("span", null, "\u5DF2\u751F\u6548");
3831
+ }
3832
+ }
3833
+ }, {
3834
+ title: '单据类型',
3746
3835
  dataIndex: 'type',
3747
3836
  render: function render(text) {
3748
3837
  return bill[text];
@@ -3762,31 +3851,47 @@ function validaterule$1(props) {
3762
3851
  }
3763
3852
  }
3764
3853
  }, {
3765
- title: '收发角色',
3854
+ title: '我的收发角色',
3766
3855
  dataIndex: 'attribution',
3767
3856
  render: function render(text) {
3768
3857
  return attributionEnum[text];
3769
3858
  }
3770
- }, // {
3771
- // title: '发送对象',
3772
- // dataIndex: 'sender',
3773
- // render: (text: any, record: any) => {
3774
- // return <a className="tabel-action" onClick={() => { onCompanyList(record); }}>查看</a>
3775
- // }
3776
- // },
3777
- {
3778
- title: '创建时间',
3779
- dataIndex: 'createAt',
3780
- render: function render(text) {
3781
- return moment(text).format('YYYY-MM-DD hh:mm');
3859
+ }, {
3860
+ title: '我司对应DID',
3861
+ dataIndex: 'senderParticipantId',
3862
+ render: function render(text, record) {
3863
+ return /*#__PURE__*/React.createElement("span", null, record.senderParticipantNote, ":", text);
3782
3864
  }
3783
3865
  }, {
3784
- title: '最近更新时间',
3785
- dataIndex: 'updateAt',
3866
+ title: '接受对象',
3867
+ dataIndex: 'receiverParticipantId',
3868
+ render: function render(text, record) {
3869
+ if (text === '*') {
3870
+ return /*#__PURE__*/React.createElement("span", null, "\u516C\u5F00\u53D1\u5E03");
3871
+ } else if (text === '') {
3872
+ return '-';
3873
+ } else {
3874
+ return /*#__PURE__*/React.createElement("span", null, record.receiverParticipantNote, ":", text);
3875
+ }
3876
+ }
3877
+ }, {
3878
+ title: '接受对象所属公司',
3879
+ dataIndex: 'receiverCompany'
3880
+ }, {
3881
+ title: '发布时间',
3882
+ dataIndex: 'createAt',
3786
3883
  render: function render(text) {
3787
3884
  return moment(text).format('YYYY-MM-DD hh:mm');
3788
3885
  }
3789
3886
  }, {
3887
+ title: '详细内容',
3888
+ dataIndex: 'neirong'
3889
+ }, // {
3890
+ // title: '最近更新时间',
3891
+ // dataIndex: 'updateAt',
3892
+ // render: (text: any) => moment(text).format('YYYY-MM-DD hh:mm')
3893
+ // },
3894
+ {
3790
3895
  title: '操作',
3791
3896
  dataIndex: 'console',
3792
3897
  render: function render(text, record) {
@@ -3799,7 +3904,7 @@ function validaterule$1(props) {
3799
3904
  }
3800
3905
  }];
3801
3906
  }, [bill]);
3802
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AutoTableContainer, {
3907
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageHeader, null), /*#__PURE__*/React.createElement(AutoTableContainer, {
3803
3908
  style: {
3804
3909
  flex: 1,
3805
3910
  padding: '0 20px',
@@ -3874,7 +3979,7 @@ var Main$1 = function Main(props) {
3874
3979
  display: 'flex',
3875
3980
  flexDirection: 'column'
3876
3981
  }
3877
- }, /*#__PURE__*/React.createElement(PageHeader, null), type === 1 && /*#__PURE__*/React.createElement(validaterule, null), type === 2 && /*#__PURE__*/React.createElement(validaterule$1, null)));
3982
+ }, type === 1 && /*#__PURE__*/React.createElement(validaterule, null), type === 2 && /*#__PURE__*/React.createElement(validaterule$1, null)));
3878
3983
  };
3879
3984
 
3880
3985
  var DocumentsService = /*#__PURE__*/function () {
@@ -4108,7 +4213,7 @@ function Rule(props) {
4108
4213
  return _context.abrupt("return", false);
4109
4214
 
4110
4215
  case 2:
4111
- url = type === 'config' ? '/dap/schema/config/getConfigOneById' : '/dap/schema/config/getRecordOneById';
4216
+ url = type === 'config' ? '/dap/web/schema/config/getConfigOneById' : '/dap/web/schema/config/getRecordOneById';
4112
4217
  _context.next = 5;
4113
4218
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
4114
4219
  url: url,
@@ -4164,7 +4269,7 @@ function Rule(props) {
4164
4269
  case 2:
4165
4270
  _context2.next = 4;
4166
4271
  return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
4167
- url: '/dap/schema/config/getDefaultTypeTemplate',
4272
+ url: '/dap/web/schema/config/getDefaultTypeTemplate',
4168
4273
  data: {
4169
4274
  type: queryType,
4170
4275
  profile: profile
@@ -4204,7 +4309,7 @@ function Rule(props) {
4204
4309
  case 0:
4205
4310
  _context3.next = 2;
4206
4311
  return (_DocumentsService$ins3 = DocumentsService.instance.service) === null || _DocumentsService$ins3 === void 0 ? void 0 : _DocumentsService$ins3.call({
4207
- url: '/dap/schema/config/getDefaultTypeList',
4312
+ url: '/dap/web/schema/config/getDefaultTypeList',
4208
4313
  data: null,
4209
4314
  type: 'get'
4210
4315
  });
@@ -4248,12 +4353,12 @@ function Rule(props) {
4248
4353
  while (1) {
4249
4354
  switch (_context4.prev = _context4.next) {
4250
4355
  case 0:
4251
- url = '/dap/schema/config/save';
4356
+ url = '/dap/web/schema/config/save';
4252
4357
  data = _objectSpread2({}, schema);
4253
4358
  formValue = form.getFieldsValue();
4254
4359
 
4255
4360
  if (record && record.id) {
4256
- url = '/dap/schema/config/update';
4361
+ url = '/dap/web/schema/config/update';
4257
4362
  data = _objectSpread2(_objectSpread2({}, record), {}, {
4258
4363
  schemaContent: JSON.stringify(data)
4259
4364
  }, formValue);
@@ -4315,7 +4420,7 @@ function Rule(props) {
4315
4420
  case 0:
4316
4421
  _context5.next = 2;
4317
4422
  return (_DocumentsService$ins5 = DocumentsService.instance.service) === null || _DocumentsService$ins5 === void 0 ? void 0 : _DocumentsService$ins5.call({
4318
- url: '/dap/participant/listBySubjectId',
4423
+ url: '/dap/web/participant/listBySubjectId',
4319
4424
  data: null,
4320
4425
  type: 'get'
4321
4426
  });
@@ -4346,13 +4451,13 @@ function Rule(props) {
4346
4451
  switch (_context6.prev = _context6.next) {
4347
4452
  case 0:
4348
4453
  data = _objectSpread2(_objectSpread2({}, record), {}, {
4349
- sendPartitionId: targetId,
4454
+ senderPartitionId: targetId,
4350
4455
  privateList: [],
4351
4456
  sendPublic: true
4352
4457
  });
4353
4458
  _context6.next = 3;
4354
4459
  return (_DocumentsService$ins6 = DocumentsService.instance.service) === null || _DocumentsService$ins6 === void 0 ? void 0 : _DocumentsService$ins6.call({
4355
- url: '/dap/schema/config/batchSend',
4460
+ url: '/dap/web/schema/config/batchSend',
4356
4461
  data: [data],
4357
4462
  type: 'post'
4358
4463
  });
@@ -4665,7 +4770,7 @@ var getWhitelist = /*#__PURE__*/(function () {
4665
4770
  case 0:
4666
4771
  _context.next = 2;
4667
4772
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
4668
- url: '/dap/whiteblacklist/config/queryWhiteListPage',
4773
+ url: '/dap/web/whiteblacklist/config/queryWhiteListPage',
4669
4774
  data: params,
4670
4775
  type: 'post'
4671
4776
  });
@@ -4718,7 +4823,7 @@ var getBlacklist = /*#__PURE__*/(function () {
4718
4823
  case 0:
4719
4824
  _context.next = 2;
4720
4825
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
4721
- url: '/dap/whiteblacklist/config/queryBlackListPage',
4826
+ url: '/dap/web/whiteblacklist/config/queryBlackListPage',
4722
4827
  data: params,
4723
4828
  type: 'post'
4724
4829
  });
@@ -4771,7 +4876,7 @@ var addWhite = /*#__PURE__*/(function () {
4771
4876
  case 0:
4772
4877
  _context.next = 2;
4773
4878
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
4774
- url: '/dap/whiteblacklist/config/addBatchWhiteList',
4879
+ url: '/dap/web/whiteblacklist/config/addBatchWhiteList',
4775
4880
  data: params,
4776
4881
  type: 'post'
4777
4882
  });
@@ -4819,7 +4924,7 @@ var enablewhitelist = /*#__PURE__*/(function () {
4819
4924
  case 0:
4820
4925
  _context.next = 2;
4821
4926
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
4822
- url: '/dap/whiteblacklist/config/enableOrDisableWhiteList?status=' + (params === null || params === void 0 ? void 0 : params.flag),
4927
+ url: '/dap/web/whiteblacklist/config/enableOrDisableWhiteList?status=' + (params === null || params === void 0 ? void 0 : params.flag),
4823
4928
  data: params === null || params === void 0 ? void 0 : params.didList,
4824
4929
  type: 'post'
4825
4930
  });
@@ -4867,7 +4972,7 @@ var enablelist = /*#__PURE__*/(function () {
4867
4972
  case 0:
4868
4973
  _context.next = 2;
4869
4974
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
4870
- url: '/dap/whiteblacklist/config/enableList?status=' + (params === null || params === void 0 ? void 0 : params.status),
4975
+ url: '/dap/web/whiteblacklist/config/enableList?status=' + (params === null || params === void 0 ? void 0 : params.status),
4871
4976
  data: params === null || params === void 0 ? void 0 : params.didList,
4872
4977
  type: 'post'
4873
4978
  });
@@ -4915,7 +5020,7 @@ var enableblacklist = /*#__PURE__*/(function () {
4915
5020
  case 0:
4916
5021
  _context.next = 2;
4917
5022
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
4918
- url: '/dap/whiteblacklist/config/enableOrDisableBlackList?status=' + (params === null || params === void 0 ? void 0 : params.flag),
5023
+ url: '/dap/web/whiteblacklist/config/enableOrDisableBlackList?status=' + (params === null || params === void 0 ? void 0 : params.flag),
4919
5024
  data: params === null || params === void 0 ? void 0 : params.didList,
4920
5025
  type: 'post'
4921
5026
  });
@@ -4963,7 +5068,7 @@ var checkclient = /*#__PURE__*/(function () {
4963
5068
  case 0:
4964
5069
  _context.next = 2;
4965
5070
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
4966
- url: '/dap/whiteblacklist/config/showButton',
5071
+ url: '/dap/web/whiteblacklist/config/showButton',
4967
5072
  data: {},
4968
5073
  type: 'post'
4969
5074
  });
@@ -5009,7 +5114,7 @@ var synclist = /*#__PURE__*/(function () {
5009
5114
  case 0:
5010
5115
  _context.next = 2;
5011
5116
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
5012
- url: '/dap/whiteblacklist/config/querySyncPage',
5117
+ url: '/dap/web/whiteblacklist/config/querySyncPage',
5013
5118
  data: params,
5014
5119
  type: 'post'
5015
5120
  });
@@ -5056,7 +5161,7 @@ var getmode = /*#__PURE__*/(function () {
5056
5161
  case 0:
5057
5162
  _context.next = 2;
5058
5163
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
5059
- url: '/dap/whiteblacklist/config/whitelistSwitchStatus',
5164
+ url: '/dap/web/whiteblacklist/config/whitelistSwitchStatus',
5060
5165
  data: null,
5061
5166
  type: 'get'
5062
5167
  });
@@ -5073,7 +5178,6 @@ var getmode = /*#__PURE__*/(function () {
5073
5178
 
5074
5179
  case 5:
5075
5180
  if (res.res) {
5076
- console.log(res.res);
5077
5181
  s.mode = res.res;
5078
5182
  }
5079
5183
 
@@ -5101,7 +5205,7 @@ var setmode = /*#__PURE__*/(function () {
5101
5205
  case 0:
5102
5206
  _context.next = 2;
5103
5207
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
5104
- url: '/dap/whiteblacklist/config/updateWhitelistSwitchStatus',
5208
+ url: '/dap/web/whiteblacklist/config/updateWhitelistSwitchStatus',
5105
5209
  data: params,
5106
5210
  type: 'get'
5107
5211
  });
@@ -5145,7 +5249,7 @@ var addBlack = /*#__PURE__*/(function () {
5145
5249
  case 0:
5146
5250
  _context.next = 2;
5147
5251
  return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
5148
- url: '/dap/whiteblacklist/config/addBatchBlackList',
5252
+ url: '/dap/web/whiteblacklist/config/addBatchBlackList',
5149
5253
  data: params,
5150
5254
  type: 'post'
5151
5255
  });
@@ -5516,7 +5620,10 @@ function Rule$1(props) {
5516
5620
  pageMeta = _useState2[0],
5517
5621
  setpageMeta = _useState2[1];
5518
5622
 
5519
- var _useState3 = useState(),
5623
+ var _useState3 = useState({
5624
+ pageSize: 10,
5625
+ pageNum: 1
5626
+ }),
5520
5627
  _useState4 = _slicedToArray(_useState3, 2),
5521
5628
  pageParams = _useState4[0],
5522
5629
  setpageParams = _useState4[1];
@@ -5626,7 +5733,10 @@ function Rule$1(props) {
5626
5733
 
5627
5734
  case 2:
5628
5735
  res = _context2.sent;
5629
- setpageMeta(res.res.pageMeta);
5736
+
5737
+ if (res.res) {
5738
+ setpageMeta(res.res.pageMeta);
5739
+ }
5630
5740
 
5631
5741
  case 4:
5632
5742
  case "end":
@@ -5954,7 +6064,10 @@ function Rule$2(props) {
5954
6064
  pageMeta = _useState2[0],
5955
6065
  setpageMeta = _useState2[1];
5956
6066
 
5957
- var _useState3 = useState(),
6067
+ var _useState3 = useState({
6068
+ pageSize: 10,
6069
+ pageNum: 1
6070
+ }),
5958
6071
  _useState4 = _slicedToArray(_useState3, 2),
5959
6072
  pageParams = _useState4[0],
5960
6073
  setpageParams = _useState4[1]; // const pageMeta = controller.useMemo((s) => s.pageMeta, []);
@@ -6065,7 +6178,10 @@ function Rule$2(props) {
6065
6178
 
6066
6179
  case 2:
6067
6180
  res = _context2.sent;
6068
- setpageMeta(res.res.pageMeta);
6181
+
6182
+ if (res.res) {
6183
+ setpageMeta(res.res.pageMeta);
6184
+ }
6069
6185
 
6070
6186
  case 4:
6071
6187
  case "end":
@@ -6167,7 +6283,27 @@ function Rule$3(props) {
6167
6283
  props.onSubmit(e.target.value);
6168
6284
  }, []);
6169
6285
  var onValuesChange = useCallback(function (changedvalue, allvalue) {
6170
- props.onSubmit(allvalue);
6286
+ controller.pipeline( /*#__PURE__*/function () {
6287
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(s) {
6288
+ return regeneratorRuntime.wrap(function _callee$(_context) {
6289
+ while (1) {
6290
+ switch (_context.prev = _context.next) {
6291
+ case 0:
6292
+ s.mode = allvalue.status;
6293
+
6294
+ case 1:
6295
+ case "end":
6296
+ return _context.stop();
6297
+ }
6298
+ }
6299
+ }, _callee);
6300
+ }));
6301
+
6302
+ return function (_x) {
6303
+ return _ref.apply(this, arguments);
6304
+ };
6305
+ }())(); // console.log(allvalue);
6306
+ // props.onSubmit(allvalue);
6171
6307
  }, []);
6172
6308
  return /*#__PURE__*/React.createElement("div", {
6173
6309
  style: {
@@ -6204,15 +6340,11 @@ function Rule$4(props) {
6204
6340
  activeKey = _useState2[0],
6205
6341
  setKey = _useState2[1];
6206
6342
 
6207
- var controller = WhiteList.useController();
6208
-
6209
- var _useState3 = useState(),
6210
- _useState4 = _slicedToArray(_useState3, 2),
6211
- values = _useState4[0],
6212
- setValues = _useState4[1]; // const selectedRowKey = controller.useMemo(s => s.selectedRowKey, [])
6213
- // const selectedBlackRowKey = controller.useMemo(s => s.selectedBlackRowKey, [])
6214
-
6343
+ var controller = WhiteList.useController(); // const [values, setValues] = useState();
6215
6344
 
6345
+ var mode = controller.useMemo(function (s) {
6346
+ return s.mode;
6347
+ }, []);
6216
6348
  var tabsOnChange = useCallback(function (e) {
6217
6349
  setKey(e.target.value);
6218
6350
  controller.pipeline( /*#__PURE__*/function () {
@@ -6238,13 +6370,15 @@ function Rule$4(props) {
6238
6370
  return _ref.apply(this, arguments);
6239
6371
  };
6240
6372
  }())();
6241
- }, []);
6242
- var onSubmit = useCallback(function (data) {
6243
- setValues(data);
6244
- }, []);
6373
+ }, []); // const onSubmit = useCallback((data) => {
6374
+ // setValues(data);
6375
+ // }, []);
6376
+
6245
6377
  var onClickHandler = useCallback(function () {
6246
- controller.setmode(values);
6247
- }, [values]);
6378
+ controller.setmode({
6379
+ status: mode
6380
+ });
6381
+ }, [mode]);
6248
6382
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
6249
6383
  style: {
6250
6384
  padding: '16px 20px',
@@ -6264,9 +6398,7 @@ function Rule$4(props) {
6264
6398
  }, "\u5207\u6362\u8FC7\u6EE4\u65B9\u5F0F")), activeKey === '/switchmode' && /*#__PURE__*/React.createElement(Button$1, {
6265
6399
  onClick: onClickHandler,
6266
6400
  type: "primary"
6267
- }, "\u4FDD\u5B58")), activeKey === '/whitelist' && /*#__PURE__*/React.createElement(Rule$1, null), activeKey === '/blacklist' && /*#__PURE__*/React.createElement(Rule$2, null), activeKey === '/switchmode' && /*#__PURE__*/React.createElement(Rule$3, {
6268
- onSubmit: onSubmit
6269
- }));
6401
+ }, "\u4FDD\u5B58")), activeKey === '/whitelist' && /*#__PURE__*/React.createElement(Rule$1, null), activeKey === '/blacklist' && /*#__PURE__*/React.createElement(Rule$2, null), activeKey === '/switchmode' && /*#__PURE__*/React.createElement(Rule$3, null));
6270
6402
  }
6271
6403
 
6272
6404
  /**
@@ -6410,7 +6542,7 @@ function modalcomfirm$1(props) {
6410
6542
  return function (_x2) {
6411
6543
  return _ref3.apply(this, arguments);
6412
6544
  };
6413
- }())(); // controller.getWhitelist({ ...params, ...pageMeta });
6545
+ }())();
6414
6546
  } else {
6415
6547
  _data2 = _objectSpread2({}, params);
6416
6548
  controller.pipeline( /*#__PURE__*/function () {
@@ -6432,7 +6564,7 @@ function modalcomfirm$1(props) {
6432
6564
  return function (_x3) {
6433
6565
  return _ref4.apply(this, arguments);
6434
6566
  };
6435
- }())(); // controller.getBlacklist({ ...params, ...pageMeta });
6567
+ }())();
6436
6568
  }
6437
6569
  }
6438
6570