kts-components-document-access-point 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +527 -454
- package/dist/index.js +565 -492
- package/package.json +4 -4
- package/src/DocumentWhiteList/control/actions/blacklist/index.ts +3 -0
- package/src/DocumentWhiteList/control/actions/checkclient/index.ts +4 -1
- package/src/DocumentWhiteList/control/actions/didilist/index.ts +3 -0
- package/src/DocumentWhiteList/control/actions/enableblacklist/index.ts +3 -0
- package/src/DocumentWhiteList/control/actions/enablelist/index.ts +3 -0
- package/src/DocumentWhiteList/control/actions/enablewhitelist/index.ts +3 -0
- package/src/DocumentWhiteList/control/actions/synclist/index.ts +3 -0
- package/src/DocumentWhiteList/control/actions/whitelist/index.ts +3 -0
- package/src/DocumentWhiteList/ui/pageheader/BlackHeader.tsx +91 -10
- package/src/DocumentWhiteList/ui/pageheader/WhiteHeader.tsx +91 -9
- package/src/DocumentWhiteList/ui/pageheader/index.less +10 -0
- package/src/DocumentsEdit/ui/EditRule/ui/RuleForm/fn/algorithmFormComponent/index.tsx +1 -1
- package/src/DocumentsList/ui/PageHeader/SendHeader.tsx +107 -168
- package/src/DocumentsList/ui/PageHeader/index.less +10 -0
- package/src/DocumentsList/ui/PageHeader/index.tsx +124 -177
- package/src/DocumentsList/ui/RuleTable/index.tsx +7 -3
- package/dist/DocumentWhiteList/ui/UnifiedSearch/index.d.ts +0 -11
- package/src/DocumentWhiteList/ui/UnifiedSearch/index.scss +0 -119
- package/src/DocumentWhiteList/ui/UnifiedSearch/index.tsx +0 -146
package/dist/index.esm.js
CHANGED
|
@@ -4,9 +4,9 @@ import GreyReactBox from 'grey-react-box';
|
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
import Icon, { InfoCircleOutlined } from '@ant-design/icons';
|
|
6
6
|
import moment from 'moment';
|
|
7
|
-
import { Modal,
|
|
7
|
+
import { Modal, Search, Select as Select$2, searchUnFormat, Radio as Radio$2, PageHeaderFoot, Button as Button$1, Dropdown, AutoTableContainer, Table as Table$1, Pagination, Form as Form$1, message as message$1, Input as Input$1 } from 'kts-xui';
|
|
8
|
+
import { Select as Select$1, DatePicker as DatePicker$1, Radio as Radio$1, Checkbox } from 'antd';
|
|
8
9
|
import { useHistory, MemoryRouter, Switch as Switch$1, Route, Redirect } from 'react-router-dom';
|
|
9
|
-
import { Select as Select$1, DatePicker as DatePicker$2 } from 'antd';
|
|
10
10
|
import zhCN from 'kts-components-antd-x4/lib/locale/zh_CN';
|
|
11
11
|
import qs from 'query-string';
|
|
12
12
|
import { AdvancedSearch, KtsForm } from 'kts-components';
|
|
@@ -2891,9 +2891,14 @@ function modalcomfirm(props) {
|
|
|
2891
2891
|
}))));
|
|
2892
2892
|
}
|
|
2893
2893
|
|
|
2894
|
-
var
|
|
2894
|
+
var css_248z$3 = ".underline :global(.ktsAntX-select-selector) {\n border: none !important;\n border-bottom: 1px solid #d9d9d9 !important;\n}\n.underline :global(.ant-input) {\n border: none !important;\n border-bottom: 1px solid #d9d9d9 !important;\n}\n";
|
|
2895
|
+
styleInject(css_248z$3);
|
|
2896
|
+
|
|
2895
2897
|
var Option$2 = Select$1.Option;
|
|
2896
2898
|
var RangePicker = DatePicker$1.RangePicker;
|
|
2899
|
+
var RadioGroup = Radio$1.Group;
|
|
2900
|
+
var CheckboxGroup = Checkbox.Group;
|
|
2901
|
+
var SubMenu = Menu.SubMenu;
|
|
2897
2902
|
var PageHeader = (function () {
|
|
2898
2903
|
var history = useHistory();
|
|
2899
2904
|
var controller = DocumentsList.useController();
|
|
@@ -2913,202 +2918,15 @@ var PageHeader = (function () {
|
|
|
2913
2918
|
var visible = controller.useMemo(function (s) {
|
|
2914
2919
|
return s.visible;
|
|
2915
2920
|
}, []);
|
|
2916
|
-
var
|
|
2921
|
+
var profileEnumRef = useRef([]);
|
|
2922
|
+
var _useState3 = useState({}),
|
|
2917
2923
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
2918
|
-
|
|
2919
|
-
setProfile = _useState4[1];
|
|
2924
|
+
forceUpdate = _useState4[1];
|
|
2920
2925
|
var ktsRef = useRef(null);
|
|
2921
2926
|
var _useState5 = useState([]),
|
|
2922
2927
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
2923
2928
|
didlist = _useState6[0],
|
|
2924
2929
|
setDidList = _useState6[1]; //我司对应DID
|
|
2925
|
-
// 动态生成 formItems
|
|
2926
|
-
var formItems = useMemo(function () {
|
|
2927
|
-
var items = [];
|
|
2928
|
-
var didEnum = didlist.map(function (item) {
|
|
2929
|
-
return {
|
|
2930
|
-
label: item.remarkName + ':' + item.participantId,
|
|
2931
|
-
value: item.participantId
|
|
2932
|
-
};
|
|
2933
|
-
});
|
|
2934
|
-
if (type === 1) {
|
|
2935
|
-
// 配置名称
|
|
2936
|
-
items.push({
|
|
2937
|
-
name: "configName",
|
|
2938
|
-
label: "配置名称",
|
|
2939
|
-
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
2940
|
-
});
|
|
2941
|
-
// 单据大类
|
|
2942
|
-
items.push({
|
|
2943
|
-
name: "type",
|
|
2944
|
-
label: "单据大类",
|
|
2945
|
-
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
2946
|
-
className: "underline",
|
|
2947
|
-
allowClear: true
|
|
2948
|
-
}, billEnum.map(function (item) {
|
|
2949
|
-
return /*#__PURE__*/React.createElement(Option$2, {
|
|
2950
|
-
key: item.value,
|
|
2951
|
-
value: item.value
|
|
2952
|
-
}, item.label);
|
|
2953
|
-
})))
|
|
2954
|
-
});
|
|
2955
|
-
// 单据子类
|
|
2956
|
-
items.push({
|
|
2957
|
-
name: "profile",
|
|
2958
|
-
label: "单据子类",
|
|
2959
|
-
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
2960
|
-
className: "underline",
|
|
2961
|
-
allowClear: true
|
|
2962
|
-
}, profileEnum.map(function (item) {
|
|
2963
|
-
return /*#__PURE__*/React.createElement(Option$2, {
|
|
2964
|
-
key: item.value,
|
|
2965
|
-
value: item.value
|
|
2966
|
-
}, item.name);
|
|
2967
|
-
})))
|
|
2968
|
-
});
|
|
2969
|
-
// 收发角色
|
|
2970
|
-
items.push({
|
|
2971
|
-
name: "attributionList",
|
|
2972
|
-
label: "收发角色",
|
|
2973
|
-
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
2974
|
-
className: "underline",
|
|
2975
|
-
allowClear: true,
|
|
2976
|
-
mode: "multiple"
|
|
2977
|
-
}, /*#__PURE__*/React.createElement(Option$2, {
|
|
2978
|
-
value: 1
|
|
2979
|
-
}, "\u53D1\u9001\u65B9"), /*#__PURE__*/React.createElement(Option$2, {
|
|
2980
|
-
value: 2
|
|
2981
|
-
}, "\u63A5\u6536\u65B9")))
|
|
2982
|
-
});
|
|
2983
|
-
// 创建时间
|
|
2984
|
-
items.push({
|
|
2985
|
-
name: "createTime",
|
|
2986
|
-
label: "创建时间",
|
|
2987
|
-
children: (/*#__PURE__*/React.createElement(RangePicker, {
|
|
2988
|
-
style: {
|
|
2989
|
-
width: "100%"
|
|
2990
|
-
},
|
|
2991
|
-
format: "YYYY-MM-DD",
|
|
2992
|
-
placeholder: ["开始时间", "结束时间"],
|
|
2993
|
-
className: "underline-datepicker"
|
|
2994
|
-
}))
|
|
2995
|
-
});
|
|
2996
|
-
// 更新时间
|
|
2997
|
-
items.push({
|
|
2998
|
-
name: "sendTime",
|
|
2999
|
-
label: "更新时间",
|
|
3000
|
-
children: (/*#__PURE__*/React.createElement(RangePicker, {
|
|
3001
|
-
style: {
|
|
3002
|
-
width: "100%"
|
|
3003
|
-
},
|
|
3004
|
-
format: "YYYY-MM-DD",
|
|
3005
|
-
placeholder: ["开始时间", "结束时间"],
|
|
3006
|
-
className: "underline-datepicker"
|
|
3007
|
-
}))
|
|
3008
|
-
});
|
|
3009
|
-
} else if (type === 2) {
|
|
3010
|
-
// 配置名称
|
|
3011
|
-
items.push({
|
|
3012
|
-
name: "configName",
|
|
3013
|
-
label: "配置名称",
|
|
3014
|
-
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
3015
|
-
});
|
|
3016
|
-
// 使用标识
|
|
3017
|
-
items.push({
|
|
3018
|
-
name: "effectStatus",
|
|
3019
|
-
label: "使用标识",
|
|
3020
|
-
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3021
|
-
className: "underline",
|
|
3022
|
-
allowClear: true
|
|
3023
|
-
}, /*#__PURE__*/React.createElement(Option$2, {
|
|
3024
|
-
value: 0
|
|
3025
|
-
}, "\u5DF2\u5931\u6548"), /*#__PURE__*/React.createElement(Option$2, {
|
|
3026
|
-
value: 1
|
|
3027
|
-
}, "\u4F7F\u7528\u4E2D")))
|
|
3028
|
-
});
|
|
3029
|
-
// 我的收发角色
|
|
3030
|
-
items.push({
|
|
3031
|
-
name: "attribution",
|
|
3032
|
-
label: "我的收发角色",
|
|
3033
|
-
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3034
|
-
className: "underline",
|
|
3035
|
-
allowClear: true
|
|
3036
|
-
}, /*#__PURE__*/React.createElement(Option$2, {
|
|
3037
|
-
value: 1
|
|
3038
|
-
}, "\u53D1\u9001\u65B9"), /*#__PURE__*/React.createElement(Option$2, {
|
|
3039
|
-
value: 2
|
|
3040
|
-
}, "\u63A5\u6536\u65B9")))
|
|
3041
|
-
});
|
|
3042
|
-
// 我司对应DID
|
|
3043
|
-
items.push({
|
|
3044
|
-
name: "senderParticipantId",
|
|
3045
|
-
label: "我司对应DID",
|
|
3046
|
-
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3047
|
-
className: "underline",
|
|
3048
|
-
allowClear: true
|
|
3049
|
-
}, didEnum.map(function (item) {
|
|
3050
|
-
return /*#__PURE__*/React.createElement(Option$2, {
|
|
3051
|
-
key: item.value,
|
|
3052
|
-
value: item.value
|
|
3053
|
-
}, item.label);
|
|
3054
|
-
})))
|
|
3055
|
-
});
|
|
3056
|
-
// 接受对象
|
|
3057
|
-
items.push({
|
|
3058
|
-
name: "receiverParticipantId",
|
|
3059
|
-
label: "接受对象",
|
|
3060
|
-
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
3061
|
-
});
|
|
3062
|
-
// 接受对象所属公司
|
|
3063
|
-
items.push({
|
|
3064
|
-
name: "receiverCompany",
|
|
3065
|
-
label: "接受对象所属公司",
|
|
3066
|
-
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
3067
|
-
});
|
|
3068
|
-
// 单据大类
|
|
3069
|
-
items.push({
|
|
3070
|
-
name: "type",
|
|
3071
|
-
label: "单据大类",
|
|
3072
|
-
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3073
|
-
className: "underline",
|
|
3074
|
-
allowClear: true
|
|
3075
|
-
}, billEnum.map(function (item) {
|
|
3076
|
-
return /*#__PURE__*/React.createElement(Option$2, {
|
|
3077
|
-
key: item.value,
|
|
3078
|
-
value: item.value
|
|
3079
|
-
}, item.label);
|
|
3080
|
-
})))
|
|
3081
|
-
});
|
|
3082
|
-
// 单据子类
|
|
3083
|
-
items.push({
|
|
3084
|
-
name: "profile",
|
|
3085
|
-
label: "单据子类",
|
|
3086
|
-
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3087
|
-
className: "underline",
|
|
3088
|
-
allowClear: true
|
|
3089
|
-
}, profileEnum.map(function (item) {
|
|
3090
|
-
return /*#__PURE__*/React.createElement(Option$2, {
|
|
3091
|
-
key: item.value,
|
|
3092
|
-
value: item.value
|
|
3093
|
-
}, item.name);
|
|
3094
|
-
})))
|
|
3095
|
-
});
|
|
3096
|
-
// 发布时间
|
|
3097
|
-
items.push({
|
|
3098
|
-
name: "createTime",
|
|
3099
|
-
label: "发布时间",
|
|
3100
|
-
children: (/*#__PURE__*/React.createElement(RangePicker, {
|
|
3101
|
-
style: {
|
|
3102
|
-
width: "100%"
|
|
3103
|
-
},
|
|
3104
|
-
format: "YYYY-MM-DD",
|
|
3105
|
-
placeholder: ["开始时间", "结束时间"],
|
|
3106
|
-
className: "underline-datepicker"
|
|
3107
|
-
}))
|
|
3108
|
-
});
|
|
3109
|
-
}
|
|
3110
|
-
return items;
|
|
3111
|
-
}, [billEnum, type, profileEnum, didlist]);
|
|
3112
2930
|
useEffect(function () {
|
|
3113
2931
|
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3114
2932
|
var _DocumentsService$ins;
|
|
@@ -3124,37 +2942,21 @@ var PageHeader = (function () {
|
|
|
3124
2942
|
});
|
|
3125
2943
|
case 1:
|
|
3126
2944
|
res = _context.v;
|
|
2945
|
+
if (res) {
|
|
2946
|
+
_context.n = 2;
|
|
2947
|
+
break;
|
|
2948
|
+
}
|
|
2949
|
+
return _context.a(2, false);
|
|
2950
|
+
case 2:
|
|
3127
2951
|
if (res.res) {
|
|
3128
2952
|
setDidList(res.res);
|
|
3129
2953
|
}
|
|
3130
|
-
case
|
|
2954
|
+
case 3:
|
|
3131
2955
|
return _context.a(2);
|
|
3132
2956
|
}
|
|
3133
2957
|
}, _callee);
|
|
3134
2958
|
}))();
|
|
3135
2959
|
}, []);
|
|
3136
|
-
// 处理单据子类的动态更新
|
|
3137
|
-
useEffect(function () {
|
|
3138
|
-
var selectedType = params.type;
|
|
3139
|
-
if (selectedType) {
|
|
3140
|
-
var target = billEnum.find(function (item) {
|
|
3141
|
-
return item.value === selectedType;
|
|
3142
|
-
});
|
|
3143
|
-
if (target && target.profileList) {
|
|
3144
|
-
var list = target.profileList.map(function (item) {
|
|
3145
|
-
return {
|
|
3146
|
-
label: item.name,
|
|
3147
|
-
value: item.value
|
|
3148
|
-
};
|
|
3149
|
-
});
|
|
3150
|
-
setProfile(list);
|
|
3151
|
-
} else {
|
|
3152
|
-
setProfile([]);
|
|
3153
|
-
}
|
|
3154
|
-
} else {
|
|
3155
|
-
setProfile([]);
|
|
3156
|
-
}
|
|
3157
|
-
}, [billEnum, params]);
|
|
3158
2960
|
useEffect(function () {
|
|
3159
2961
|
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
3160
2962
|
var _DocumentsService$ins2;
|
|
@@ -3170,12 +2972,18 @@ var PageHeader = (function () {
|
|
|
3170
2972
|
});
|
|
3171
2973
|
case 1:
|
|
3172
2974
|
res = _context2.v;
|
|
3173
|
-
if (
|
|
2975
|
+
if (res) {
|
|
3174
2976
|
_context2.n = 2;
|
|
3175
2977
|
break;
|
|
3176
2978
|
}
|
|
3177
2979
|
return _context2.a(2, false);
|
|
3178
2980
|
case 2:
|
|
2981
|
+
if (!res.err) {
|
|
2982
|
+
_context2.n = 3;
|
|
2983
|
+
break;
|
|
2984
|
+
}
|
|
2985
|
+
return _context2.a(2, false);
|
|
2986
|
+
case 3:
|
|
3179
2987
|
list = res.res.map(function (item) {
|
|
3180
2988
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
3181
2989
|
label: item.name,
|
|
@@ -3183,7 +2991,7 @@ var PageHeader = (function () {
|
|
|
3183
2991
|
});
|
|
3184
2992
|
});
|
|
3185
2993
|
setBill(list);
|
|
3186
|
-
case
|
|
2994
|
+
case 4:
|
|
3187
2995
|
return _context2.a(2);
|
|
3188
2996
|
}
|
|
3189
2997
|
}, _callee2);
|
|
@@ -3215,50 +3023,20 @@ var PageHeader = (function () {
|
|
|
3215
3023
|
};
|
|
3216
3024
|
}())();
|
|
3217
3025
|
}, [controller]);
|
|
3218
|
-
//
|
|
3219
|
-
var
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
delete processedValues.sendTime;
|
|
3233
|
-
onSearchFormSubmit(processedValues);
|
|
3234
|
-
},
|
|
3235
|
-
values: React.useMemo(function () {
|
|
3236
|
-
// 转换搜索值格式
|
|
3237
|
-
var convertedValues = _objectSpread2({}, params);
|
|
3238
|
-
var paramsAny = params;
|
|
3239
|
-
if (paramsAny.beginCreateTime && paramsAny.endCreateTime) {
|
|
3240
|
-
convertedValues.createTime = [paramsAny.beginCreateTime, paramsAny.endCreateTime];
|
|
3241
|
-
}
|
|
3242
|
-
if (paramsAny.beginSendTime && paramsAny.endSendTime) {
|
|
3243
|
-
convertedValues.sendTime = [paramsAny.beginSendTime, paramsAny.endSendTime];
|
|
3244
|
-
}
|
|
3245
|
-
return searchUnFormat(convertedValues, formItems);
|
|
3246
|
-
}, [params, formItems]),
|
|
3247
|
-
formItems: formItems
|
|
3248
|
-
}),
|
|
3249
|
-
search = _SearchXui$useCreate.search,
|
|
3250
|
-
setSearchValues = _SearchXui$useCreate.setSearchValues;
|
|
3251
|
-
useEffect(function () {
|
|
3252
|
-
var convertedValues = _objectSpread2({}, params);
|
|
3253
|
-
var paramsAny = params;
|
|
3254
|
-
if (paramsAny.beginCreateTime && paramsAny.endCreateTime) {
|
|
3255
|
-
convertedValues.createTime = [paramsAny.beginCreateTime, paramsAny.endCreateTime];
|
|
3256
|
-
}
|
|
3257
|
-
if (paramsAny.beginSendTime && paramsAny.endSendTime) {
|
|
3258
|
-
convertedValues.sendTime = [paramsAny.beginSendTime, paramsAny.endSendTime];
|
|
3259
|
-
}
|
|
3260
|
-
setSearchValues(searchUnFormat(convertedValues, formItems));
|
|
3261
|
-
}, [formItems, params, setSearchValues]);
|
|
3026
|
+
// 处理单据大类变化
|
|
3027
|
+
var handleTypeChange = useCallback(function (value) {
|
|
3028
|
+
var _target$profileList;
|
|
3029
|
+
var target = billEnum.find(function (item) {
|
|
3030
|
+
return item.value === value;
|
|
3031
|
+
});
|
|
3032
|
+
profileEnumRef.current = (target === null || target === void 0 ? void 0 : (_target$profileList = target.profileList) === null || _target$profileList === void 0 ? void 0 : _target$profileList.map(function (item) {
|
|
3033
|
+
return {
|
|
3034
|
+
label: item.name,
|
|
3035
|
+
value: item.value
|
|
3036
|
+
};
|
|
3037
|
+
})) || [];
|
|
3038
|
+
forceUpdate({});
|
|
3039
|
+
}, [billEnum]);
|
|
3262
3040
|
var switchType = React.useCallback(function (e) {
|
|
3263
3041
|
controller.pipeline(/*#__PURE__*/function () {
|
|
3264
3042
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(s) {
|
|
@@ -3320,12 +3098,194 @@ var PageHeader = (function () {
|
|
|
3320
3098
|
};
|
|
3321
3099
|
}())();
|
|
3322
3100
|
}, [controller]);
|
|
3101
|
+
// 动态生成 formItems
|
|
3102
|
+
var formItems = useMemo(function () {
|
|
3103
|
+
var didEnum = didlist.map(function (item) {
|
|
3104
|
+
return {
|
|
3105
|
+
label: item.remarkName + ':' + item.participantId,
|
|
3106
|
+
value: item.participantId
|
|
3107
|
+
};
|
|
3108
|
+
});
|
|
3109
|
+
var items = [];
|
|
3110
|
+
if (type === 1) {
|
|
3111
|
+
// 配置名称
|
|
3112
|
+
items.push({
|
|
3113
|
+
name: "configName",
|
|
3114
|
+
label: "配置名称",
|
|
3115
|
+
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
3116
|
+
});
|
|
3117
|
+
// 单据大类
|
|
3118
|
+
items.push({
|
|
3119
|
+
name: "type",
|
|
3120
|
+
label: "单据大类",
|
|
3121
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3122
|
+
className: css_248z$3.underline,
|
|
3123
|
+
allowClear: true,
|
|
3124
|
+
onChange: handleTypeChange
|
|
3125
|
+
}, billEnum.map(function (item) {
|
|
3126
|
+
return /*#__PURE__*/React.createElement(Option$2, {
|
|
3127
|
+
key: item.value,
|
|
3128
|
+
value: item.value
|
|
3129
|
+
}, item.label);
|
|
3130
|
+
})))
|
|
3131
|
+
});
|
|
3132
|
+
// 单据子类
|
|
3133
|
+
items.push({
|
|
3134
|
+
name: 'profile',
|
|
3135
|
+
label: '单据子类',
|
|
3136
|
+
hidden: profileEnumRef.current.length === 0,
|
|
3137
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3138
|
+
className: css_248z$3.underline,
|
|
3139
|
+
allowClear: true
|
|
3140
|
+
}, profileEnumRef.current.map(function (item) {
|
|
3141
|
+
return /*#__PURE__*/React.createElement(Option$2, {
|
|
3142
|
+
key: item.value,
|
|
3143
|
+
value: item.value
|
|
3144
|
+
}, item.label);
|
|
3145
|
+
})))
|
|
3146
|
+
});
|
|
3147
|
+
// 收发角色
|
|
3148
|
+
items.push({
|
|
3149
|
+
name: "attributionList",
|
|
3150
|
+
label: "收发角色",
|
|
3151
|
+
children: (/*#__PURE__*/React.createElement(CheckboxGroup, {
|
|
3152
|
+
options: [{
|
|
3153
|
+
label: "发送方",
|
|
3154
|
+
value: 1
|
|
3155
|
+
}, {
|
|
3156
|
+
label: "接收方",
|
|
3157
|
+
value: 2
|
|
3158
|
+
}]
|
|
3159
|
+
}))
|
|
3160
|
+
});
|
|
3161
|
+
// 创建时间
|
|
3162
|
+
items.push({
|
|
3163
|
+
name: "createTime",
|
|
3164
|
+
label: "创建时间",
|
|
3165
|
+
children: /*#__PURE__*/React.createElement(RangePicker, {
|
|
3166
|
+
className: css_248z$3.underline
|
|
3167
|
+
})
|
|
3168
|
+
});
|
|
3169
|
+
// 更新时间
|
|
3170
|
+
items.push({
|
|
3171
|
+
name: "sendTime",
|
|
3172
|
+
label: "更新时间",
|
|
3173
|
+
children: /*#__PURE__*/React.createElement(RangePicker, {
|
|
3174
|
+
className: css_248z$3.underline
|
|
3175
|
+
})
|
|
3176
|
+
});
|
|
3177
|
+
} else if (type === 2) {
|
|
3178
|
+
// 配置名称
|
|
3179
|
+
items.push({
|
|
3180
|
+
name: "configName",
|
|
3181
|
+
label: "配置名称",
|
|
3182
|
+
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
3183
|
+
});
|
|
3184
|
+
// 使用标识
|
|
3185
|
+
items.push({
|
|
3186
|
+
name: "effectStatus",
|
|
3187
|
+
label: "使用标识",
|
|
3188
|
+
children: (/*#__PURE__*/React.createElement(RadioGroup, null, /*#__PURE__*/React.createElement(Radio$1, {
|
|
3189
|
+
value: 0
|
|
3190
|
+
}, "\u5DF2\u5931\u6548"), /*#__PURE__*/React.createElement(Radio$1, {
|
|
3191
|
+
value: 1
|
|
3192
|
+
}, "\u4F7F\u7528\u4E2D")))
|
|
3193
|
+
});
|
|
3194
|
+
// 我的收发角色
|
|
3195
|
+
items.push({
|
|
3196
|
+
name: "attribution",
|
|
3197
|
+
label: "我的收发角色",
|
|
3198
|
+
children: (/*#__PURE__*/React.createElement(RadioGroup, null, /*#__PURE__*/React.createElement(Radio$1, {
|
|
3199
|
+
value: 1
|
|
3200
|
+
}, "\u53D1\u9001\u65B9"), /*#__PURE__*/React.createElement(Radio$1, {
|
|
3201
|
+
value: 2
|
|
3202
|
+
}, "\u63A5\u6536\u65B9")))
|
|
3203
|
+
});
|
|
3204
|
+
// 我司对应DID
|
|
3205
|
+
items.push({
|
|
3206
|
+
name: "senderParticipantId",
|
|
3207
|
+
label: "我司对应DID",
|
|
3208
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3209
|
+
className: css_248z$3.underline,
|
|
3210
|
+
allowClear: true
|
|
3211
|
+
}, didEnum.map(function (item) {
|
|
3212
|
+
return /*#__PURE__*/React.createElement(Option$2, {
|
|
3213
|
+
key: item.value,
|
|
3214
|
+
value: item.value
|
|
3215
|
+
}, item.label);
|
|
3216
|
+
})))
|
|
3217
|
+
});
|
|
3218
|
+
// 接受对象
|
|
3219
|
+
items.push({
|
|
3220
|
+
name: "receiverParticipantId",
|
|
3221
|
+
label: "接受对象",
|
|
3222
|
+
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
3223
|
+
});
|
|
3224
|
+
// 接受对象所属公司
|
|
3225
|
+
items.push({
|
|
3226
|
+
name: "receiverCompany",
|
|
3227
|
+
label: "接受对象所属公司",
|
|
3228
|
+
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
3229
|
+
});
|
|
3230
|
+
// 单据大类
|
|
3231
|
+
items.push({
|
|
3232
|
+
name: "type",
|
|
3233
|
+
label: "单据大类",
|
|
3234
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3235
|
+
className: css_248z$3.underline,
|
|
3236
|
+
allowClear: true,
|
|
3237
|
+
onChange: handleTypeChange
|
|
3238
|
+
}, billEnum.map(function (item) {
|
|
3239
|
+
return /*#__PURE__*/React.createElement(Option$2, {
|
|
3240
|
+
key: item.value,
|
|
3241
|
+
value: item.value
|
|
3242
|
+
}, item.label);
|
|
3243
|
+
})))
|
|
3244
|
+
});
|
|
3245
|
+
// 单据子类
|
|
3246
|
+
items.push({
|
|
3247
|
+
name: 'profile',
|
|
3248
|
+
label: '单据子类',
|
|
3249
|
+
hidden: profileEnumRef.current.length === 0,
|
|
3250
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
3251
|
+
className: css_248z$3.underline,
|
|
3252
|
+
allowClear: true
|
|
3253
|
+
}, profileEnumRef.current.map(function (item) {
|
|
3254
|
+
return /*#__PURE__*/React.createElement(Option$2, {
|
|
3255
|
+
key: item.value,
|
|
3256
|
+
value: item.value
|
|
3257
|
+
}, item.label);
|
|
3258
|
+
})))
|
|
3259
|
+
});
|
|
3260
|
+
// 发布时间
|
|
3261
|
+
items.push({
|
|
3262
|
+
name: "createTime",
|
|
3263
|
+
label: "发布时间",
|
|
3264
|
+
children: /*#__PURE__*/React.createElement(RangePicker, {
|
|
3265
|
+
className: css_248z$3.underline
|
|
3266
|
+
})
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3269
|
+
return items;
|
|
3270
|
+
}, [billEnum, type, didlist]);
|
|
3323
3271
|
var onCreateType = useCallback(function (category, record) {
|
|
3324
3272
|
history.push({
|
|
3325
3273
|
pathname: "/rule",
|
|
3326
3274
|
search: "?type=config&profile=".concat(record && record.value || '', "&billtype=").concat(category)
|
|
3327
3275
|
});
|
|
3328
3276
|
}, []);
|
|
3277
|
+
// 创建搜索组件
|
|
3278
|
+
var _SearchXui$useCreate = Search.useCreate({
|
|
3279
|
+
labelCol: 9,
|
|
3280
|
+
onSubmit: function onSubmit(e) {
|
|
3281
|
+
onSearchFormSubmit(e);
|
|
3282
|
+
},
|
|
3283
|
+
values: React.useMemo(function () {
|
|
3284
|
+
return searchUnFormat(params, formItems);
|
|
3285
|
+
}, [params, formItems]),
|
|
3286
|
+
formItems: formItems
|
|
3287
|
+
}),
|
|
3288
|
+
search = _SearchXui$useCreate.search;
|
|
3329
3289
|
var topExpand = useCallback(function () {
|
|
3330
3290
|
return /*#__PURE__*/React.createElement("div", {
|
|
3331
3291
|
style: {
|
|
@@ -3335,24 +3295,35 @@ var PageHeader = (function () {
|
|
|
3335
3295
|
style: {
|
|
3336
3296
|
marginRight: 10
|
|
3337
3297
|
}
|
|
3338
|
-
}, /*#__PURE__*/React.createElement(Radio$
|
|
3298
|
+
}, /*#__PURE__*/React.createElement(Radio$2.Group, {
|
|
3339
3299
|
value: type,
|
|
3340
3300
|
onChange: switchType
|
|
3341
|
-
}, /*#__PURE__*/React.createElement(Radio$
|
|
3301
|
+
}, /*#__PURE__*/React.createElement(Radio$2.Button, {
|
|
3342
3302
|
value: 1,
|
|
3343
3303
|
style: {
|
|
3344
3304
|
whiteSpace: 'nowrap'
|
|
3345
3305
|
}
|
|
3346
|
-
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$
|
|
3306
|
+
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$2.Button, {
|
|
3347
3307
|
value: 2,
|
|
3348
3308
|
style: {
|
|
3349
3309
|
whiteSpace: 'nowrap'
|
|
3350
3310
|
}
|
|
3351
3311
|
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React.createElement("div", {
|
|
3312
|
+
style: {
|
|
3313
|
+
width: "100%",
|
|
3314
|
+
paddingTop: '10px'
|
|
3315
|
+
}
|
|
3316
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3317
|
+
style: {
|
|
3318
|
+
display: "flex",
|
|
3319
|
+
alignItems: "flex-start",
|
|
3320
|
+
gap: "16px"
|
|
3321
|
+
}
|
|
3322
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3352
3323
|
style: {
|
|
3353
3324
|
flex: 1
|
|
3354
3325
|
}
|
|
3355
|
-
}, search));
|
|
3326
|
+
}, search))));
|
|
3356
3327
|
}, [type, search]);
|
|
3357
3328
|
var menu = useMemo(function () {
|
|
3358
3329
|
return /*#__PURE__*/React.createElement(Menu, null, billEnum && billEnum.map(function (item, key) {
|
|
@@ -3405,8 +3376,8 @@ var PageHeader = (function () {
|
|
|
3405
3376
|
}));
|
|
3406
3377
|
});
|
|
3407
3378
|
|
|
3408
|
-
var css_248z$
|
|
3409
|
-
styleInject(css_248z$
|
|
3379
|
+
var css_248z$4 = "";
|
|
3380
|
+
styleInject(css_248z$4);
|
|
3410
3381
|
|
|
3411
3382
|
var attributionEnum = {
|
|
3412
3383
|
'1': '发送方',
|
|
@@ -3456,17 +3427,23 @@ function validaterule(props) {
|
|
|
3456
3427
|
});
|
|
3457
3428
|
case 1:
|
|
3458
3429
|
res = _context.v;
|
|
3459
|
-
if (
|
|
3430
|
+
if (res) {
|
|
3460
3431
|
_context.n = 2;
|
|
3461
3432
|
break;
|
|
3462
3433
|
}
|
|
3463
3434
|
return _context.a(2, false);
|
|
3464
3435
|
case 2:
|
|
3436
|
+
if (!res.err) {
|
|
3437
|
+
_context.n = 3;
|
|
3438
|
+
break;
|
|
3439
|
+
}
|
|
3440
|
+
return _context.a(2, false);
|
|
3441
|
+
case 3:
|
|
3465
3442
|
if (res.res) {
|
|
3466
3443
|
setList(res.res.items);
|
|
3467
3444
|
setpageMeta(res.res.pageMeta);
|
|
3468
3445
|
}
|
|
3469
|
-
case
|
|
3446
|
+
case 4:
|
|
3470
3447
|
return _context.a(2);
|
|
3471
3448
|
}
|
|
3472
3449
|
}, _callee);
|
|
@@ -3487,12 +3464,18 @@ function validaterule(props) {
|
|
|
3487
3464
|
});
|
|
3488
3465
|
case 1:
|
|
3489
3466
|
res = _context2.v;
|
|
3490
|
-
if (
|
|
3467
|
+
if (res) {
|
|
3491
3468
|
_context2.n = 2;
|
|
3492
3469
|
break;
|
|
3493
3470
|
}
|
|
3494
3471
|
return _context2.a(2, false);
|
|
3495
3472
|
case 2:
|
|
3473
|
+
if (!res.err) {
|
|
3474
|
+
_context2.n = 3;
|
|
3475
|
+
break;
|
|
3476
|
+
}
|
|
3477
|
+
return _context2.a(2, false);
|
|
3478
|
+
case 3:
|
|
3496
3479
|
_list = res.res.map(function (item) {
|
|
3497
3480
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
3498
3481
|
label: item.name,
|
|
@@ -3500,7 +3483,7 @@ function validaterule(props) {
|
|
|
3500
3483
|
});
|
|
3501
3484
|
});
|
|
3502
3485
|
setBill(_list);
|
|
3503
|
-
case
|
|
3486
|
+
case 4:
|
|
3504
3487
|
return _context2.a(2);
|
|
3505
3488
|
}
|
|
3506
3489
|
}, _callee2);
|
|
@@ -5092,11 +5075,11 @@ function Rule(props) {
|
|
|
5092
5075
|
visible: visible,
|
|
5093
5076
|
onOk: handleOk,
|
|
5094
5077
|
onCancel: handleCancel
|
|
5095
|
-
}, /*#__PURE__*/React.createElement(Radio$
|
|
5078
|
+
}, /*#__PURE__*/React.createElement(Radio$2.Group, {
|
|
5096
5079
|
onChange: targetSelect,
|
|
5097
5080
|
value: targetId
|
|
5098
5081
|
}, targetList.map(function (item, key) {
|
|
5099
|
-
return /*#__PURE__*/React.createElement(Radio$
|
|
5082
|
+
return /*#__PURE__*/React.createElement(Radio$2, {
|
|
5100
5083
|
style: radioStyle,
|
|
5101
5084
|
key: key,
|
|
5102
5085
|
value: item.participantId
|
|
@@ -5211,16 +5194,22 @@ var getWhitelist = (/*#__PURE__*/function () {
|
|
|
5211
5194
|
});
|
|
5212
5195
|
case 1:
|
|
5213
5196
|
res = _context.v;
|
|
5214
|
-
if (
|
|
5197
|
+
if (res) {
|
|
5215
5198
|
_context.n = 2;
|
|
5216
5199
|
break;
|
|
5217
5200
|
}
|
|
5218
5201
|
return _context.a(2, false);
|
|
5219
5202
|
case 2:
|
|
5220
|
-
if (!res.
|
|
5203
|
+
if (!res.err) {
|
|
5221
5204
|
_context.n = 3;
|
|
5222
5205
|
break;
|
|
5223
5206
|
}
|
|
5207
|
+
return _context.a(2, false);
|
|
5208
|
+
case 3:
|
|
5209
|
+
if (!res.res) {
|
|
5210
|
+
_context.n = 4;
|
|
5211
|
+
break;
|
|
5212
|
+
}
|
|
5224
5213
|
res.res.items = res.res.items.map(function (item, index) {
|
|
5225
5214
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
5226
5215
|
index: index
|
|
@@ -5228,7 +5217,7 @@ var getWhitelist = (/*#__PURE__*/function () {
|
|
|
5228
5217
|
});
|
|
5229
5218
|
s.whiteblacklist = res.res.items || [];
|
|
5230
5219
|
return _context.a(2, res);
|
|
5231
|
-
case
|
|
5220
|
+
case 4:
|
|
5232
5221
|
return _context.a(2);
|
|
5233
5222
|
}
|
|
5234
5223
|
}, _callee);
|
|
@@ -5253,16 +5242,22 @@ var getBlacklist = (/*#__PURE__*/function () {
|
|
|
5253
5242
|
});
|
|
5254
5243
|
case 1:
|
|
5255
5244
|
res = _context.v;
|
|
5256
|
-
if (
|
|
5245
|
+
if (res) {
|
|
5257
5246
|
_context.n = 2;
|
|
5258
5247
|
break;
|
|
5259
5248
|
}
|
|
5260
5249
|
return _context.a(2, false);
|
|
5261
5250
|
case 2:
|
|
5262
|
-
if (!res.
|
|
5251
|
+
if (!res.err) {
|
|
5263
5252
|
_context.n = 3;
|
|
5264
5253
|
break;
|
|
5265
5254
|
}
|
|
5255
|
+
return _context.a(2, false);
|
|
5256
|
+
case 3:
|
|
5257
|
+
if (!res.res) {
|
|
5258
|
+
_context.n = 4;
|
|
5259
|
+
break;
|
|
5260
|
+
}
|
|
5266
5261
|
res.res.items = res.res.items.map(function (item, index) {
|
|
5267
5262
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
5268
5263
|
index: index
|
|
@@ -5270,7 +5265,7 @@ var getBlacklist = (/*#__PURE__*/function () {
|
|
|
5270
5265
|
});
|
|
5271
5266
|
s.blacklist = res.res.items || [];
|
|
5272
5267
|
return _context.a(2, res);
|
|
5273
|
-
case
|
|
5268
|
+
case 4:
|
|
5274
5269
|
return _context.a(2);
|
|
5275
5270
|
}
|
|
5276
5271
|
}, _callee);
|
|
@@ -5332,19 +5327,25 @@ var enablewhitelist = (/*#__PURE__*/function () {
|
|
|
5332
5327
|
});
|
|
5333
5328
|
case 1:
|
|
5334
5329
|
res = _context.v;
|
|
5335
|
-
if (
|
|
5330
|
+
if (res) {
|
|
5336
5331
|
_context.n = 2;
|
|
5337
5332
|
break;
|
|
5338
5333
|
}
|
|
5339
5334
|
return _context.a(2, false);
|
|
5340
5335
|
case 2:
|
|
5341
|
-
if (!res.
|
|
5336
|
+
if (!res.err) {
|
|
5342
5337
|
_context.n = 3;
|
|
5343
5338
|
break;
|
|
5344
5339
|
}
|
|
5340
|
+
return _context.a(2, false);
|
|
5341
|
+
case 3:
|
|
5342
|
+
if (!res.res) {
|
|
5343
|
+
_context.n = 4;
|
|
5344
|
+
break;
|
|
5345
|
+
}
|
|
5345
5346
|
message.success('操作成功');
|
|
5346
5347
|
return _context.a(2, res);
|
|
5347
|
-
case
|
|
5348
|
+
case 4:
|
|
5348
5349
|
return _context.a(2);
|
|
5349
5350
|
}
|
|
5350
5351
|
}, _callee);
|
|
@@ -5369,19 +5370,25 @@ var enablelist = (/*#__PURE__*/function () {
|
|
|
5369
5370
|
});
|
|
5370
5371
|
case 1:
|
|
5371
5372
|
res = _context.v;
|
|
5372
|
-
if (
|
|
5373
|
+
if (res) {
|
|
5373
5374
|
_context.n = 2;
|
|
5374
5375
|
break;
|
|
5375
5376
|
}
|
|
5376
5377
|
return _context.a(2, false);
|
|
5377
5378
|
case 2:
|
|
5378
|
-
if (!res.
|
|
5379
|
+
if (!res.err) {
|
|
5379
5380
|
_context.n = 3;
|
|
5380
5381
|
break;
|
|
5381
5382
|
}
|
|
5383
|
+
return _context.a(2, false);
|
|
5384
|
+
case 3:
|
|
5385
|
+
if (!res.res) {
|
|
5386
|
+
_context.n = 4;
|
|
5387
|
+
break;
|
|
5388
|
+
}
|
|
5382
5389
|
message.success('操作成功');
|
|
5383
5390
|
return _context.a(2, res);
|
|
5384
|
-
case
|
|
5391
|
+
case 4:
|
|
5385
5392
|
return _context.a(2);
|
|
5386
5393
|
}
|
|
5387
5394
|
}, _callee);
|
|
@@ -5406,19 +5413,25 @@ var enableblacklist = (/*#__PURE__*/function () {
|
|
|
5406
5413
|
});
|
|
5407
5414
|
case 1:
|
|
5408
5415
|
res = _context.v;
|
|
5409
|
-
if (
|
|
5416
|
+
if (res) {
|
|
5410
5417
|
_context.n = 2;
|
|
5411
5418
|
break;
|
|
5412
5419
|
}
|
|
5413
5420
|
return _context.a(2, false);
|
|
5414
5421
|
case 2:
|
|
5415
|
-
if (!res.
|
|
5422
|
+
if (!res.err) {
|
|
5416
5423
|
_context.n = 3;
|
|
5417
5424
|
break;
|
|
5418
5425
|
}
|
|
5426
|
+
return _context.a(2, false);
|
|
5427
|
+
case 3:
|
|
5428
|
+
if (!res.res) {
|
|
5429
|
+
_context.n = 4;
|
|
5430
|
+
break;
|
|
5431
|
+
}
|
|
5419
5432
|
message.success('操作成功');
|
|
5420
5433
|
return _context.a(2, res);
|
|
5421
|
-
case
|
|
5434
|
+
case 4:
|
|
5422
5435
|
return _context.a(2);
|
|
5423
5436
|
}
|
|
5424
5437
|
}, _callee);
|
|
@@ -5430,31 +5443,38 @@ var enableblacklist = (/*#__PURE__*/function () {
|
|
|
5430
5443
|
|
|
5431
5444
|
var checkclient = (/*#__PURE__*/function () {
|
|
5432
5445
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(s) {
|
|
5446
|
+
var _DocumentsService$ins;
|
|
5433
5447
|
var res;
|
|
5434
5448
|
return _regenerator().w(function (_context) {
|
|
5435
5449
|
while (1) switch (_context.n) {
|
|
5436
5450
|
case 0:
|
|
5437
5451
|
_context.n = 1;
|
|
5438
|
-
return DocumentsService.instance.service.call({
|
|
5452
|
+
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
5439
5453
|
url: '/whiteblacklist/config/showButton',
|
|
5440
5454
|
data: {},
|
|
5441
5455
|
type: 'post'
|
|
5442
5456
|
});
|
|
5443
5457
|
case 1:
|
|
5444
5458
|
res = _context.v;
|
|
5445
|
-
if (
|
|
5459
|
+
if (res) {
|
|
5446
5460
|
_context.n = 2;
|
|
5447
5461
|
break;
|
|
5448
5462
|
}
|
|
5449
5463
|
return _context.a(2, false);
|
|
5450
5464
|
case 2:
|
|
5465
|
+
if (!res.err) {
|
|
5466
|
+
_context.n = 3;
|
|
5467
|
+
break;
|
|
5468
|
+
}
|
|
5469
|
+
return _context.a(2, false);
|
|
5470
|
+
case 3:
|
|
5451
5471
|
if (res.res) {
|
|
5452
5472
|
s.clientInfo = res.res || {
|
|
5453
5473
|
showButton: false
|
|
5454
5474
|
};
|
|
5455
5475
|
// s.pageMeta = res.res.pageMeta;
|
|
5456
5476
|
}
|
|
5457
|
-
case
|
|
5477
|
+
case 4:
|
|
5458
5478
|
return _context.a(2);
|
|
5459
5479
|
}
|
|
5460
5480
|
}, _callee);
|
|
@@ -5479,18 +5499,24 @@ var synclist = (/*#__PURE__*/function () {
|
|
|
5479
5499
|
});
|
|
5480
5500
|
case 1:
|
|
5481
5501
|
res = _context.v;
|
|
5482
|
-
if (
|
|
5502
|
+
if (res) {
|
|
5483
5503
|
_context.n = 2;
|
|
5484
5504
|
break;
|
|
5485
5505
|
}
|
|
5486
5506
|
return _context.a(2, false);
|
|
5487
5507
|
case 2:
|
|
5488
|
-
if (!res.
|
|
5508
|
+
if (!res.err) {
|
|
5489
5509
|
_context.n = 3;
|
|
5490
5510
|
break;
|
|
5491
5511
|
}
|
|
5492
|
-
return _context.a(2,
|
|
5512
|
+
return _context.a(2, false);
|
|
5493
5513
|
case 3:
|
|
5514
|
+
if (!res.res) {
|
|
5515
|
+
_context.n = 4;
|
|
5516
|
+
break;
|
|
5517
|
+
}
|
|
5518
|
+
return _context.a(2, res);
|
|
5519
|
+
case 4:
|
|
5494
5520
|
return _context.a(2);
|
|
5495
5521
|
}
|
|
5496
5522
|
}, _callee);
|
|
@@ -5620,19 +5646,25 @@ var didList = (/*#__PURE__*/function () {
|
|
|
5620
5646
|
});
|
|
5621
5647
|
case 1:
|
|
5622
5648
|
res = _context.v;
|
|
5623
|
-
if (
|
|
5649
|
+
if (res) {
|
|
5624
5650
|
_context.n = 2;
|
|
5625
5651
|
break;
|
|
5626
5652
|
}
|
|
5627
5653
|
return _context.a(2, false);
|
|
5628
5654
|
case 2:
|
|
5629
|
-
if (!res.
|
|
5655
|
+
if (!res.err) {
|
|
5630
5656
|
_context.n = 3;
|
|
5631
5657
|
break;
|
|
5632
5658
|
}
|
|
5659
|
+
return _context.a(2, false);
|
|
5660
|
+
case 3:
|
|
5661
|
+
if (!res.res) {
|
|
5662
|
+
_context.n = 4;
|
|
5663
|
+
break;
|
|
5664
|
+
}
|
|
5633
5665
|
s.didlist = res.res;
|
|
5634
5666
|
return _context.a(2, res);
|
|
5635
|
-
case
|
|
5667
|
+
case 4:
|
|
5636
5668
|
return _context.a(2);
|
|
5637
5669
|
}
|
|
5638
5670
|
}, _callee);
|
|
@@ -5671,137 +5703,11 @@ var Controller$1 = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
5671
5703
|
return _createClass(Controller);
|
|
5672
5704
|
}(GreyReactBox);
|
|
5673
5705
|
|
|
5674
|
-
var
|
|
5675
|
-
|
|
5676
|
-
function UnifiedSearch(props) {
|
|
5677
|
-
var searchFormSubmit = props.searchFormSubmit,
|
|
5678
|
-
searchValues = props.searchValues,
|
|
5679
|
-
right = props.right,
|
|
5680
|
-
onRefresh = props.onRefresh,
|
|
5681
|
-
_props$didlist = props.didlist,
|
|
5682
|
-
didlist = _props$didlist === void 0 ? [] : _props$didlist,
|
|
5683
|
-
_props$labelCol = props.labelCol,
|
|
5684
|
-
labelCol = _props$labelCol === void 0 ? 7 : _props$labelCol;
|
|
5685
|
-
// 动态生成 formItems
|
|
5686
|
-
var formItems = useMemo(function () {
|
|
5687
|
-
var items = [];
|
|
5688
|
-
// DID
|
|
5689
|
-
items.push({
|
|
5690
|
-
name: "customerDid",
|
|
5691
|
-
label: "DID",
|
|
5692
|
-
children: /*#__PURE__*/createElement(Search.Input, null)
|
|
5693
|
-
});
|
|
5694
|
-
// 所属公司
|
|
5695
|
-
items.push({
|
|
5696
|
-
name: "customerName",
|
|
5697
|
-
label: "所属公司",
|
|
5698
|
-
children: /*#__PURE__*/createElement(Search.Input, null)
|
|
5699
|
-
});
|
|
5700
|
-
// 我司对应DID
|
|
5701
|
-
items.push({
|
|
5702
|
-
name: "companyDid",
|
|
5703
|
-
label: "我司对应DID",
|
|
5704
|
-
children: (/*#__PURE__*/createElement(Select$2, {
|
|
5705
|
-
className: "underline",
|
|
5706
|
-
allowClear: true
|
|
5707
|
-
}, didlist.map(function (item) {
|
|
5708
|
-
return /*#__PURE__*/createElement(Option$3, {
|
|
5709
|
-
key: item.participantId,
|
|
5710
|
-
value: item.participantId
|
|
5711
|
-
}, item.remarkName + ':' + item.participantId);
|
|
5712
|
-
})))
|
|
5713
|
-
});
|
|
5714
|
-
// 数据状态
|
|
5715
|
-
items.push({
|
|
5716
|
-
name: "dataStatus",
|
|
5717
|
-
label: "数据状态",
|
|
5718
|
-
children: (/*#__PURE__*/createElement(Select$2, {
|
|
5719
|
-
className: "underline",
|
|
5720
|
-
allowClear: true
|
|
5721
|
-
}, /*#__PURE__*/createElement(Option$3, {
|
|
5722
|
-
value: 1
|
|
5723
|
-
}, "\u4F7F\u7528\u4E2D"), /*#__PURE__*/createElement(Option$3, {
|
|
5724
|
-
value: 2
|
|
5725
|
-
}, "\u505C\u7528")))
|
|
5726
|
-
});
|
|
5727
|
-
// 创建时间
|
|
5728
|
-
items.push({
|
|
5729
|
-
name: "createTime",
|
|
5730
|
-
label: "创建时间",
|
|
5731
|
-
children: (/*#__PURE__*/createElement(RangePicker$1, {
|
|
5732
|
-
style: {
|
|
5733
|
-
width: "100%"
|
|
5734
|
-
},
|
|
5735
|
-
showTime: true,
|
|
5736
|
-
format: "YYYY-MM-DD HH:mm:ss",
|
|
5737
|
-
placeholder: ["开始时间", "结束时间"],
|
|
5738
|
-
className: "underline-datepicker"
|
|
5739
|
-
}))
|
|
5740
|
-
});
|
|
5741
|
-
return items;
|
|
5742
|
-
}, [didlist]);
|
|
5743
|
-
var _SearchXui$useCreate = Search.useCreate({
|
|
5744
|
-
labelCol: labelCol,
|
|
5745
|
-
onSubmit: function onSubmit(e) {
|
|
5746
|
-
if (searchFormSubmit) {
|
|
5747
|
-
// 处理日期字段格式转换
|
|
5748
|
-
var processedValues = _objectSpread2(_objectSpread2({}, e), {}, {
|
|
5749
|
-
beginCreateTime: e.createTime && e.createTime[0] ? e.createTime[0].format('YYYY-MM-DD 00:00:00') : undefined,
|
|
5750
|
-
endCreateTime: e.createTime && e.createTime[1] ? e.createTime[1].format('YYYY-MM-DD 23:59:59') : undefined,
|
|
5751
|
-
pageNum: 1,
|
|
5752
|
-
pageSize: 10
|
|
5753
|
-
});
|
|
5754
|
-
// 移除原始的 createTime 字段,因为已经转换了
|
|
5755
|
-
delete processedValues.createTime;
|
|
5756
|
-
searchFormSubmit(processedValues);
|
|
5757
|
-
}
|
|
5758
|
-
},
|
|
5759
|
-
values: useMemo(function () {
|
|
5760
|
-
// 将搜索值转换回组件所需的格式
|
|
5761
|
-
var convertedValues = _objectSpread2({}, searchValues);
|
|
5762
|
-
if (searchValues.beginCreateTime && searchValues.endCreateTime) {
|
|
5763
|
-
// 如果有处理过的日期字段,需要转换回来
|
|
5764
|
-
// 这里可能需要根据实际需求调整
|
|
5765
|
-
convertedValues.createTime = [searchValues.beginCreateTime, searchValues.endCreateTime];
|
|
5766
|
-
}
|
|
5767
|
-
return searchUnFormat(convertedValues, formItems);
|
|
5768
|
-
}, [searchValues, formItems]),
|
|
5769
|
-
formItems: formItems
|
|
5770
|
-
}),
|
|
5771
|
-
search = _SearchXui$useCreate.search,
|
|
5772
|
-
inventory = _SearchXui$useCreate.inventory,
|
|
5773
|
-
setSearchValues = _SearchXui$useCreate.setSearchValues;
|
|
5774
|
-
useEffect(function () {
|
|
5775
|
-
var convertedValues = _objectSpread2({}, searchValues);
|
|
5776
|
-
if (searchValues.beginCreateTime && searchValues.endCreateTime) {
|
|
5777
|
-
convertedValues.createTime = [searchValues.beginCreateTime, searchValues.endCreateTime];
|
|
5778
|
-
}
|
|
5779
|
-
setSearchValues(searchUnFormat(convertedValues, formItems));
|
|
5780
|
-
}, [formItems, searchValues, setSearchValues]);
|
|
5781
|
-
return /*#__PURE__*/createElement("div", {
|
|
5782
|
-
style: {
|
|
5783
|
-
width: "100%"
|
|
5784
|
-
},
|
|
5785
|
-
className: 'unifiedSearch'
|
|
5786
|
-
}, /*#__PURE__*/createElement("div", {
|
|
5787
|
-
style: {
|
|
5788
|
-
display: "flex",
|
|
5789
|
-
alignItems: "flex-start",
|
|
5790
|
-
gap: "16px"
|
|
5791
|
-
}
|
|
5792
|
-
}, /*#__PURE__*/createElement("div", {
|
|
5793
|
-
style: {
|
|
5794
|
-
flex: 1
|
|
5795
|
-
}
|
|
5796
|
-
}, search), right && (/*#__PURE__*/createElement("div", {
|
|
5797
|
-
style: {
|
|
5798
|
-
display: "flex",
|
|
5799
|
-
alignItems: "center",
|
|
5800
|
-
gap: "8px"
|
|
5801
|
-
}
|
|
5802
|
-
}, right))));
|
|
5803
|
-
}
|
|
5706
|
+
var css_248z$5 = ".underline :global(.ktsAntX-select-selector) {\n border: none !important;\n border-bottom: 1px solid #d9d9d9 !important;\n}\n.underline :global(.ant-input) {\n border: none !important;\n border-bottom: 1px solid #d9d9d9 !important;\n}\n";
|
|
5707
|
+
styleInject(css_248z$5);
|
|
5804
5708
|
|
|
5709
|
+
var Option$3 = Select$1.Option;
|
|
5710
|
+
var RangePicker$1 = DatePicker$1.RangePicker;
|
|
5805
5711
|
var Header = (function () {
|
|
5806
5712
|
var controller = WhiteList.useController();
|
|
5807
5713
|
var pageMeta = controller.useMemo(function (s) {
|
|
@@ -5821,6 +5727,12 @@ var Header = (function () {
|
|
|
5821
5727
|
return s.didlist;
|
|
5822
5728
|
}, []);
|
|
5823
5729
|
var onSearchFormSubmit = React.useCallback(function (value) {
|
|
5730
|
+
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
5731
|
+
beginCreateTime: value['beginCreateTime'] && moment(value['beginCreateTime']).format('YYYY-MM-DD 00:00:00'),
|
|
5732
|
+
endCreateTime: value['endCreateTime'] && moment(value['endCreateTime']).format('YYYY-MM-DD 23:59:59'),
|
|
5733
|
+
pageNum: 1,
|
|
5734
|
+
pageSize: 10
|
|
5735
|
+
});
|
|
5824
5736
|
controller.pipeline(/*#__PURE__*/function () {
|
|
5825
5737
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(s) {
|
|
5826
5738
|
return _regenerator().w(function (_context) {
|
|
@@ -5873,7 +5785,64 @@ var Header = (function () {
|
|
|
5873
5785
|
}, _callee3);
|
|
5874
5786
|
}))();
|
|
5875
5787
|
}, []);
|
|
5876
|
-
//
|
|
5788
|
+
// 动态生成 formItems
|
|
5789
|
+
var formItems = React.useMemo(function () {
|
|
5790
|
+
var didEnum = didlist === null || didlist === void 0 ? void 0 : didlist.map(function (item) {
|
|
5791
|
+
return {
|
|
5792
|
+
label: item.remarkName + ':' + item.participantId,
|
|
5793
|
+
value: item.participantId
|
|
5794
|
+
};
|
|
5795
|
+
});
|
|
5796
|
+
var items = [];
|
|
5797
|
+
// DID
|
|
5798
|
+
items.push({
|
|
5799
|
+
name: "customerDid",
|
|
5800
|
+
label: "DID",
|
|
5801
|
+
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
5802
|
+
});
|
|
5803
|
+
// 所属公司
|
|
5804
|
+
items.push({
|
|
5805
|
+
name: "customerName",
|
|
5806
|
+
label: "所属公司",
|
|
5807
|
+
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
5808
|
+
});
|
|
5809
|
+
// 我司对应DID
|
|
5810
|
+
items.push({
|
|
5811
|
+
name: "companyDid",
|
|
5812
|
+
label: "我司对应DID",
|
|
5813
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
5814
|
+
className: css_248z$5.underline,
|
|
5815
|
+
allowClear: true
|
|
5816
|
+
}, didEnum === null || didEnum === void 0 ? void 0 : didEnum.map(function (item) {
|
|
5817
|
+
return /*#__PURE__*/React.createElement(Option$3, {
|
|
5818
|
+
key: item.value,
|
|
5819
|
+
value: item.value
|
|
5820
|
+
}, item.label);
|
|
5821
|
+
})))
|
|
5822
|
+
});
|
|
5823
|
+
// 数据状态
|
|
5824
|
+
items.push({
|
|
5825
|
+
name: "dataStatus",
|
|
5826
|
+
label: "数据状态",
|
|
5827
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
5828
|
+
className: css_248z$5.underline,
|
|
5829
|
+
allowClear: true
|
|
5830
|
+
}, /*#__PURE__*/React.createElement(Option$3, {
|
|
5831
|
+
value: 1
|
|
5832
|
+
}, "\u4F7F\u7528\u4E2D"), /*#__PURE__*/React.createElement(Option$3, {
|
|
5833
|
+
value: 2
|
|
5834
|
+
}, "\u505C\u7528")))
|
|
5835
|
+
});
|
|
5836
|
+
// 创建时间
|
|
5837
|
+
items.push({
|
|
5838
|
+
name: "createTime",
|
|
5839
|
+
label: "创建时间",
|
|
5840
|
+
children: /*#__PURE__*/React.createElement(RangePicker$1, {
|
|
5841
|
+
className: css_248z$5.underline
|
|
5842
|
+
})
|
|
5843
|
+
});
|
|
5844
|
+
return items;
|
|
5845
|
+
}, [didlist]);
|
|
5877
5846
|
var batchBlockList = useCallback(function (type) {
|
|
5878
5847
|
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
5879
5848
|
var res;
|
|
@@ -5932,14 +5901,36 @@ var Header = (function () {
|
|
|
5932
5901
|
};
|
|
5933
5902
|
}())();
|
|
5934
5903
|
}, []);
|
|
5904
|
+
// 创建搜索组件
|
|
5905
|
+
var _SearchXui$useCreate = Search.useCreate({
|
|
5906
|
+
labelCol: 9,
|
|
5907
|
+
onSubmit: function onSubmit(e) {
|
|
5908
|
+
onSearchFormSubmit(e);
|
|
5909
|
+
},
|
|
5910
|
+
values: React.useMemo(function () {
|
|
5911
|
+
return searchUnFormat(whiteParams, formItems);
|
|
5912
|
+
}, [whiteParams, formItems]),
|
|
5913
|
+
formItems: formItems
|
|
5914
|
+
}),
|
|
5915
|
+
search = _SearchXui$useCreate.search;
|
|
5935
5916
|
var topExpand = useCallback(function () {
|
|
5936
|
-
return /*#__PURE__*/React.createElement(
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
}
|
|
5942
|
-
|
|
5917
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
5918
|
+
style: {
|
|
5919
|
+
width: "100%"
|
|
5920
|
+
},
|
|
5921
|
+
className: 'unifiedSearch'
|
|
5922
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5923
|
+
style: {
|
|
5924
|
+
display: "flex",
|
|
5925
|
+
alignItems: "flex-start",
|
|
5926
|
+
gap: "16px"
|
|
5927
|
+
}
|
|
5928
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
5929
|
+
style: {
|
|
5930
|
+
flex: 1
|
|
5931
|
+
}
|
|
5932
|
+
}, search)));
|
|
5933
|
+
}, [search]);
|
|
5943
5934
|
return /*#__PURE__*/React.createElement("div", {
|
|
5944
5935
|
style: {
|
|
5945
5936
|
flex: 'none',
|
|
@@ -6191,6 +6182,8 @@ function Rule$1(props) {
|
|
|
6191
6182
|
}));
|
|
6192
6183
|
}
|
|
6193
6184
|
|
|
6185
|
+
var Option$4 = Select$1.Option;
|
|
6186
|
+
var RangePicker$2 = DatePicker$1.RangePicker;
|
|
6194
6187
|
var Header$1 = (function () {
|
|
6195
6188
|
var controller = WhiteList.useController();
|
|
6196
6189
|
var pageMeta = controller.useMemo(function (s) {
|
|
@@ -6209,11 +6202,13 @@ var Header$1 = (function () {
|
|
|
6209
6202
|
var didlist = controller.useMemo(function (s) {
|
|
6210
6203
|
return s.didlist;
|
|
6211
6204
|
}, []);
|
|
6212
|
-
var _useState = useState(''),
|
|
6213
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
6214
|
-
companyDidNote = _useState2[0],
|
|
6215
|
-
setNote = _useState2[1];
|
|
6216
6205
|
var onSearchFormSubmit = React.useCallback(function (value) {
|
|
6206
|
+
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
6207
|
+
beginCreateTime: value['beginCreateTime'] && moment(value['beginCreateTime']).format('YYYY-MM-DD 00:00:00'),
|
|
6208
|
+
endCreateTime: value['endCreateTime'] && moment(value['endCreateTime']).format('YYYY-MM-DD 23:59:59'),
|
|
6209
|
+
pageNum: 1,
|
|
6210
|
+
pageSize: 10
|
|
6211
|
+
});
|
|
6217
6212
|
controller.pipeline(/*#__PURE__*/function () {
|
|
6218
6213
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(s) {
|
|
6219
6214
|
return _regenerator().w(function (_context) {
|
|
@@ -6236,7 +6231,64 @@ var Header$1 = (function () {
|
|
|
6236
6231
|
useEffect(function () {
|
|
6237
6232
|
controller.didList({});
|
|
6238
6233
|
}, []);
|
|
6239
|
-
//
|
|
6234
|
+
// 动态生成 formItems
|
|
6235
|
+
var formItems = React.useMemo(function () {
|
|
6236
|
+
var didEnum = didlist === null || didlist === void 0 ? void 0 : didlist.map(function (item) {
|
|
6237
|
+
return {
|
|
6238
|
+
label: item.remarkName + ':' + item.participantId,
|
|
6239
|
+
value: item.participantId
|
|
6240
|
+
};
|
|
6241
|
+
});
|
|
6242
|
+
var items = [];
|
|
6243
|
+
// DID
|
|
6244
|
+
items.push({
|
|
6245
|
+
name: "customerDid",
|
|
6246
|
+
label: "DID",
|
|
6247
|
+
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
6248
|
+
});
|
|
6249
|
+
// 所属公司
|
|
6250
|
+
items.push({
|
|
6251
|
+
name: "customerName",
|
|
6252
|
+
label: "所属公司",
|
|
6253
|
+
children: /*#__PURE__*/React.createElement(Search.Input, null)
|
|
6254
|
+
});
|
|
6255
|
+
// 我司对应DID
|
|
6256
|
+
items.push({
|
|
6257
|
+
name: "companyDid",
|
|
6258
|
+
label: "我司对应DID",
|
|
6259
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
6260
|
+
className: css_248z$5.underline,
|
|
6261
|
+
allowClear: true
|
|
6262
|
+
}, didEnum === null || didEnum === void 0 ? void 0 : didEnum.map(function (item) {
|
|
6263
|
+
return /*#__PURE__*/React.createElement(Option$4, {
|
|
6264
|
+
key: item.value,
|
|
6265
|
+
value: item.value
|
|
6266
|
+
}, item.label);
|
|
6267
|
+
})))
|
|
6268
|
+
});
|
|
6269
|
+
// 数据状态
|
|
6270
|
+
items.push({
|
|
6271
|
+
name: "dataStatus",
|
|
6272
|
+
label: "数据状态",
|
|
6273
|
+
children: (/*#__PURE__*/React.createElement(Select$2, {
|
|
6274
|
+
className: css_248z$5.underline,
|
|
6275
|
+
allowClear: true
|
|
6276
|
+
}, /*#__PURE__*/React.createElement(Option$4, {
|
|
6277
|
+
value: 1
|
|
6278
|
+
}, "\u4F7F\u7528\u4E2D"), /*#__PURE__*/React.createElement(Option$4, {
|
|
6279
|
+
value: 2
|
|
6280
|
+
}, "\u505C\u7528")))
|
|
6281
|
+
});
|
|
6282
|
+
// 创建时间
|
|
6283
|
+
items.push({
|
|
6284
|
+
name: "createTime",
|
|
6285
|
+
label: "创建时间",
|
|
6286
|
+
children: /*#__PURE__*/React.createElement(RangePicker$2, {
|
|
6287
|
+
className: css_248z$5.underline
|
|
6288
|
+
})
|
|
6289
|
+
});
|
|
6290
|
+
return items;
|
|
6291
|
+
}, [didlist]);
|
|
6240
6292
|
var batchBlockList = useCallback(function (type) {
|
|
6241
6293
|
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
6242
6294
|
var res;
|
|
@@ -6295,14 +6347,35 @@ var Header$1 = (function () {
|
|
|
6295
6347
|
};
|
|
6296
6348
|
}())();
|
|
6297
6349
|
}, []);
|
|
6350
|
+
// 创建搜索组件
|
|
6351
|
+
var _SearchXui$useCreate = Search.useCreate({
|
|
6352
|
+
labelCol: 9,
|
|
6353
|
+
onSubmit: function onSubmit(e) {
|
|
6354
|
+
onSearchFormSubmit(e);
|
|
6355
|
+
},
|
|
6356
|
+
values: React.useMemo(function () {
|
|
6357
|
+
return searchUnFormat(params, formItems);
|
|
6358
|
+
}, [params, formItems]),
|
|
6359
|
+
formItems: formItems
|
|
6360
|
+
}),
|
|
6361
|
+
search = _SearchXui$useCreate.search;
|
|
6298
6362
|
var topExpand = useCallback(function () {
|
|
6299
|
-
return /*#__PURE__*/React.createElement(
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6363
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
6364
|
+
style: {
|
|
6365
|
+
width: "100%"
|
|
6366
|
+
}
|
|
6367
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6368
|
+
style: {
|
|
6369
|
+
display: "flex",
|
|
6370
|
+
alignItems: "flex-start",
|
|
6371
|
+
gap: "16px"
|
|
6372
|
+
}
|
|
6373
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6374
|
+
style: {
|
|
6375
|
+
flex: 1
|
|
6376
|
+
}
|
|
6377
|
+
}, search)));
|
|
6378
|
+
}, [search]);
|
|
6306
6379
|
return /*#__PURE__*/React.createElement("div", {
|
|
6307
6380
|
style: {
|
|
6308
6381
|
flex: 'none',
|
|
@@ -6633,9 +6706,9 @@ function Rule$3(props) {
|
|
|
6633
6706
|
labelAlign: "left",
|
|
6634
6707
|
name: "status",
|
|
6635
6708
|
label: "\u60A8\u671F\u671B\u7528\u54EA\u4E2A\u540D\u5355\u6765\u8FC7\u6EE4\u4F60\u7684\u5355\u636E\u6536\u53D1?"
|
|
6636
|
-
}, /*#__PURE__*/React.createElement(Radio$
|
|
6709
|
+
}, /*#__PURE__*/React.createElement(Radio$2.Group, null, /*#__PURE__*/React.createElement(Radio$2, {
|
|
6637
6710
|
value: 1
|
|
6638
|
-
}, "\u4F7F\u7528\u767D\u540D\u5355\u8FC7\u6EE4"), /*#__PURE__*/React.createElement(Radio$
|
|
6711
|
+
}, "\u4F7F\u7528\u767D\u540D\u5355\u8FC7\u6EE4"), /*#__PURE__*/React.createElement(Radio$2, {
|
|
6639
6712
|
value: 2
|
|
6640
6713
|
}, "\u4F7F\u7528\u9ED1\u540D\u5355\u8FC7\u6EE4")))), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("a", null, /*#__PURE__*/React.createElement(InfoCircleOutlined, null), " \u6E29\u99A8\u63D0\u793A\uFF1A"), "\u5F53\u60A8\u4F7F\u7528\u767D\u540D\u5355\u8FC7\u6EE4\u65F6\uFF0C\u53EA\u6709\u767D\u540D\u5355\u91CC\u9762\u7684DID\u624D\u53EF\u4EE5\u8DDF\u60A8\u53D1\u9001\u6216\u63A5\u6536\u5355\u636E\uFF1B\u5F53\u60A8\u4F7F\u7528\u9ED1\u540D\u5355\u8FC7\u6EE4\u65F6\uFF0C\u9664\u4E86\u9ED1\u540D\u5355\u91CC\u9762\u7684DID\u4E0D\u80FD\u7ED9\u60A8\u53D1\u9001\u548C\u63A5\u6536\u5355\u636E\u5916\uFF0C\u5176\u4ED6DID\u90FD\u53EF\u4EE5\u7ED9\u60A8\u53D1\u9001\u548C\u63A5\u6536\u5355\u636E\u3002"));
|
|
6641
6714
|
}
|
|
@@ -6692,14 +6765,14 @@ function Rule$4(props) {
|
|
|
6692
6765
|
justifyContent: "space-between",
|
|
6693
6766
|
borderBottom: '1px solid #f0f0f0'
|
|
6694
6767
|
}
|
|
6695
|
-
}, /*#__PURE__*/React.createElement(Radio$
|
|
6768
|
+
}, /*#__PURE__*/React.createElement(Radio$2.Group, {
|
|
6696
6769
|
defaultValue: "/whitelist",
|
|
6697
6770
|
onChange: tabsOnChange
|
|
6698
|
-
}, /*#__PURE__*/React.createElement(Radio$
|
|
6771
|
+
}, /*#__PURE__*/React.createElement(Radio$2.Button, {
|
|
6699
6772
|
value: "/whitelist"
|
|
6700
|
-
}, "\u767D\u540D\u5355\u8BBE\u7F6E"), /*#__PURE__*/React.createElement(Radio$
|
|
6773
|
+
}, "\u767D\u540D\u5355\u8BBE\u7F6E"), /*#__PURE__*/React.createElement(Radio$2.Button, {
|
|
6701
6774
|
value: "/blacklist"
|
|
6702
|
-
}, "\u9ED1\u540D\u5355\u8BBE\u7F6E"), /*#__PURE__*/React.createElement(Radio$
|
|
6775
|
+
}, "\u9ED1\u540D\u5355\u8BBE\u7F6E"), /*#__PURE__*/React.createElement(Radio$2.Button, {
|
|
6703
6776
|
value: "/switchmode"
|
|
6704
6777
|
}, "\u5207\u6362\u8FC7\u6EE4\u65B9\u5F0F")), activeKey === '/switchmode' && /*#__PURE__*/React.createElement(Button$1, {
|
|
6705
6778
|
onClick: onClickHandler,
|