kts-components-document-access-point 2.0.1 → 2.0.2
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/DocumentsList/DocumentsListController/DocumentsListControllerState/index.d.ts +4 -0
- package/dist/index.esm.js +142 -151
- package/dist/index.js +123 -132
- package/package.json +1 -1
- package/src/DocumentWhiteList/ui/pageheader/BlackHeader.tsx +11 -15
- package/src/DocumentWhiteList/ui/pageheader/WhiteHeader.tsx +15 -17
- package/src/DocumentsList/DocumentsListController/DocumentsListControllerState/index.ts +4 -0
- package/src/DocumentsList/ui/PageHeader/index.tsx +51 -61
- package/src/DocumentWhiteList/ui/pageheader/index.less +0 -10
- package/src/DocumentsList/ui/PageHeader/index.less +0 -10
package/dist/index.js
CHANGED
|
@@ -2905,10 +2905,6 @@ function modalcomfirm(props) {
|
|
|
2905
2905
|
}))));
|
|
2906
2906
|
}
|
|
2907
2907
|
|
|
2908
|
-
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";
|
|
2909
|
-
styleInject(css_248z$3);
|
|
2910
|
-
|
|
2911
|
-
var Option$2 = antd.Select.Option;
|
|
2912
2908
|
var RangePicker = antd.DatePicker.RangePicker;
|
|
2913
2909
|
var RadioGroup = antd.Radio.Group;
|
|
2914
2910
|
var CheckboxGroup = antd.Checkbox.Group;
|
|
@@ -2932,10 +2928,10 @@ var PageHeader = (function () {
|
|
|
2932
2928
|
var visible = controller.useMemo(function (s) {
|
|
2933
2929
|
return s.visible;
|
|
2934
2930
|
}, []);
|
|
2935
|
-
var
|
|
2936
|
-
var _useState3 = React.useState({}),
|
|
2931
|
+
var _useState3 = React.useState([]),
|
|
2937
2932
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
2938
|
-
|
|
2933
|
+
profileEnum = _useState4[0],
|
|
2934
|
+
setProfileEnum = _useState4[1];
|
|
2939
2935
|
var ktsRef = React.useRef(null);
|
|
2940
2936
|
var _useState5 = React.useState([]),
|
|
2941
2937
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
@@ -3043,14 +3039,17 @@ var PageHeader = (function () {
|
|
|
3043
3039
|
var target = billEnum.find(function (item) {
|
|
3044
3040
|
return item.value === value;
|
|
3045
3041
|
});
|
|
3046
|
-
|
|
3042
|
+
var newProfileEnum = (target === null || target === void 0 ? void 0 : (_target$profileList = target.profileList) === null || _target$profileList === void 0 ? void 0 : _target$profileList.map(function (item) {
|
|
3047
3043
|
return {
|
|
3048
3044
|
label: item.name,
|
|
3049
3045
|
value: item.value
|
|
3050
3046
|
};
|
|
3051
3047
|
})) || [];
|
|
3052
|
-
|
|
3053
|
-
|
|
3048
|
+
setProfileEnum(newProfileEnum);
|
|
3049
|
+
form === null || form === void 0 ? void 0 : form.setFieldsValue({
|
|
3050
|
+
profile: undefined
|
|
3051
|
+
});
|
|
3052
|
+
}, [billEnum, controller]);
|
|
3054
3053
|
var switchType = React__default['default'].useCallback(function (e) {
|
|
3055
3054
|
controller.pipeline(/*#__PURE__*/function () {
|
|
3056
3055
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(s) {
|
|
@@ -3077,6 +3076,8 @@ var PageHeader = (function () {
|
|
|
3077
3076
|
return _ref4.apply(this, arguments);
|
|
3078
3077
|
};
|
|
3079
3078
|
}())();
|
|
3079
|
+
// 切换类型时也清空单据子类的值并重新创建表单
|
|
3080
|
+
setProfileEnum([]);
|
|
3080
3081
|
}, []);
|
|
3081
3082
|
var handleCancel = React__default['default'].useCallback(function () {
|
|
3082
3083
|
controller.pipeline(/*#__PURE__*/function () {
|
|
@@ -3133,30 +3134,23 @@ var PageHeader = (function () {
|
|
|
3133
3134
|
name: "type",
|
|
3134
3135
|
label: "单据大类",
|
|
3135
3136
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
3136
|
-
className:
|
|
3137
|
+
className: "underline",
|
|
3137
3138
|
allowClear: true,
|
|
3138
|
-
onChange: handleTypeChange
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
key: item.value,
|
|
3142
|
-
value: item.value
|
|
3143
|
-
}, item.label);
|
|
3144
|
-
})))
|
|
3139
|
+
onChange: handleTypeChange,
|
|
3140
|
+
options: billEnum
|
|
3141
|
+
}))
|
|
3145
3142
|
});
|
|
3146
3143
|
// 单据子类
|
|
3147
3144
|
items.push({
|
|
3148
3145
|
name: 'profile',
|
|
3149
3146
|
label: '单据子类',
|
|
3150
|
-
hidden:
|
|
3147
|
+
hidden: profileEnum.length === 0,
|
|
3151
3148
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
value: item.value
|
|
3158
|
-
}, item.label);
|
|
3159
|
-
})))
|
|
3149
|
+
key: "profile-".concat((params === null || params === void 0 ? void 0 : params.type) || 'none'),
|
|
3150
|
+
className: "underline",
|
|
3151
|
+
allowClear: true,
|
|
3152
|
+
options: profileEnum
|
|
3153
|
+
}))
|
|
3160
3154
|
});
|
|
3161
3155
|
// 收发角色
|
|
3162
3156
|
items.push({
|
|
@@ -3177,7 +3171,7 @@ var PageHeader = (function () {
|
|
|
3177
3171
|
name: "createTime",
|
|
3178
3172
|
label: "创建时间",
|
|
3179
3173
|
children: /*#__PURE__*/React__default['default'].createElement(RangePicker, {
|
|
3180
|
-
className:
|
|
3174
|
+
className: "underline-datepicker"
|
|
3181
3175
|
})
|
|
3182
3176
|
});
|
|
3183
3177
|
// 更新时间
|
|
@@ -3185,7 +3179,7 @@ var PageHeader = (function () {
|
|
|
3185
3179
|
name: "sendTime",
|
|
3186
3180
|
label: "更新时间",
|
|
3187
3181
|
children: /*#__PURE__*/React__default['default'].createElement(RangePicker, {
|
|
3188
|
-
className:
|
|
3182
|
+
className: "underline-datepicker"
|
|
3189
3183
|
})
|
|
3190
3184
|
});
|
|
3191
3185
|
} else if (type === 2) {
|
|
@@ -3204,6 +3198,10 @@ var PageHeader = (function () {
|
|
|
3204
3198
|
}, "\u5DF2\u5931\u6548"), /*#__PURE__*/React__default['default'].createElement(antd.Radio, {
|
|
3205
3199
|
value: 1
|
|
3206
3200
|
}, "\u4F7F\u7528\u4E2D")))
|
|
3201
|
+
// options: [
|
|
3202
|
+
// { label: '已失效', value: 0 },
|
|
3203
|
+
// { label: '使用中', value: 1 },
|
|
3204
|
+
// ],
|
|
3207
3205
|
});
|
|
3208
3206
|
// 我的收发角色
|
|
3209
3207
|
items.push({
|
|
@@ -3214,20 +3212,20 @@ var PageHeader = (function () {
|
|
|
3214
3212
|
}, "\u53D1\u9001\u65B9"), /*#__PURE__*/React__default['default'].createElement(antd.Radio, {
|
|
3215
3213
|
value: 2
|
|
3216
3214
|
}, "\u63A5\u6536\u65B9")))
|
|
3215
|
+
// options: [
|
|
3216
|
+
// { label: '发送方', value: 1 },
|
|
3217
|
+
// { label: '接收方', value: 2 },
|
|
3218
|
+
// ],
|
|
3217
3219
|
});
|
|
3218
3220
|
// 我司对应DID
|
|
3219
3221
|
items.push({
|
|
3220
3222
|
name: "senderParticipantId",
|
|
3221
3223
|
label: "我司对应DID",
|
|
3222
3224
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
3223
|
-
className:
|
|
3224
|
-
allowClear: true
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
key: item.value,
|
|
3228
|
-
value: item.value
|
|
3229
|
-
}, item.label);
|
|
3230
|
-
})))
|
|
3225
|
+
className: "underline",
|
|
3226
|
+
allowClear: true,
|
|
3227
|
+
options: didEnum
|
|
3228
|
+
}))
|
|
3231
3229
|
});
|
|
3232
3230
|
// 接受对象
|
|
3233
3231
|
items.push({
|
|
@@ -3246,42 +3244,34 @@ var PageHeader = (function () {
|
|
|
3246
3244
|
name: "type",
|
|
3247
3245
|
label: "单据大类",
|
|
3248
3246
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
3249
|
-
className:
|
|
3247
|
+
className: "underline",
|
|
3250
3248
|
allowClear: true,
|
|
3251
|
-
onChange: handleTypeChange
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
key: item.value,
|
|
3255
|
-
value: item.value
|
|
3256
|
-
}, item.label);
|
|
3257
|
-
})))
|
|
3249
|
+
onChange: handleTypeChange,
|
|
3250
|
+
options: billEnum
|
|
3251
|
+
}))
|
|
3258
3252
|
});
|
|
3259
3253
|
// 单据子类
|
|
3260
3254
|
items.push({
|
|
3261
3255
|
name: 'profile',
|
|
3262
3256
|
label: '单据子类',
|
|
3263
|
-
hidden:
|
|
3257
|
+
hidden: profileEnum.length === 0,
|
|
3264
3258
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
3265
|
-
className:
|
|
3266
|
-
allowClear: true
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
key: item.value,
|
|
3270
|
-
value: item.value
|
|
3271
|
-
}, item.label);
|
|
3272
|
-
})))
|
|
3259
|
+
className: "underline",
|
|
3260
|
+
allowClear: true,
|
|
3261
|
+
options: profileEnum
|
|
3262
|
+
}))
|
|
3273
3263
|
});
|
|
3274
3264
|
// 发布时间
|
|
3275
3265
|
items.push({
|
|
3276
3266
|
name: "createTime",
|
|
3277
3267
|
label: "发布时间",
|
|
3278
3268
|
children: /*#__PURE__*/React__default['default'].createElement(RangePicker, {
|
|
3279
|
-
className:
|
|
3269
|
+
className: "underline-datepicker"
|
|
3280
3270
|
})
|
|
3281
3271
|
});
|
|
3282
3272
|
}
|
|
3283
3273
|
return items;
|
|
3284
|
-
}, [billEnum, type, didlist]);
|
|
3274
|
+
}, [billEnum, type, didlist, profileEnum]);
|
|
3285
3275
|
var onCreateType = React.useCallback(function (category, record) {
|
|
3286
3276
|
history.push({
|
|
3287
3277
|
pathname: "/rule",
|
|
@@ -3299,46 +3289,29 @@ var PageHeader = (function () {
|
|
|
3299
3289
|
}, [params, formItems]),
|
|
3300
3290
|
formItems: formItems
|
|
3301
3291
|
}),
|
|
3302
|
-
search = _SearchXui$useCreate.search
|
|
3292
|
+
search = _SearchXui$useCreate.search,
|
|
3293
|
+
inventory = _SearchXui$useCreate.inventory,
|
|
3294
|
+
form = _SearchXui$useCreate.form;
|
|
3303
3295
|
var topExpand = React.useCallback(function () {
|
|
3304
3296
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3305
3297
|
style: {
|
|
3306
|
-
|
|
3298
|
+
width: "100%"
|
|
3307
3299
|
}
|
|
3308
3300
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3309
|
-
|
|
3310
|
-
marginRight: 10
|
|
3311
|
-
}
|
|
3312
|
-
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Group, {
|
|
3313
|
-
value: type,
|
|
3314
|
-
onChange: switchType
|
|
3315
|
-
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3316
|
-
value: 1,
|
|
3317
|
-
style: {
|
|
3318
|
-
whiteSpace: 'nowrap'
|
|
3319
|
-
}
|
|
3320
|
-
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3321
|
-
value: 2,
|
|
3322
|
-
style: {
|
|
3323
|
-
whiteSpace: 'nowrap'
|
|
3324
|
-
}
|
|
3325
|
-
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3326
|
-
style: {
|
|
3327
|
-
width: "100%",
|
|
3328
|
-
paddingTop: '10px'
|
|
3329
|
-
}
|
|
3301
|
+
className: 'unifiedSearch'
|
|
3330
3302
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3331
3303
|
style: {
|
|
3332
3304
|
display: "flex",
|
|
3333
3305
|
alignItems: "flex-start",
|
|
3334
|
-
gap: "16px"
|
|
3306
|
+
gap: "16px",
|
|
3307
|
+
padding: '10px 0px'
|
|
3335
3308
|
}
|
|
3336
3309
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3337
3310
|
style: {
|
|
3338
3311
|
flex: 1
|
|
3339
3312
|
}
|
|
3340
|
-
}, search))));
|
|
3341
|
-
}, [type, search]);
|
|
3313
|
+
}, search)), inventory));
|
|
3314
|
+
}, [type, search, inventory]);
|
|
3342
3315
|
var menu = React.useMemo(function () {
|
|
3343
3316
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Menu, null, billEnum && billEnum.map(function (item, key) {
|
|
3344
3317
|
if (item.profileList) {
|
|
@@ -3363,7 +3336,25 @@ var PageHeader = (function () {
|
|
|
3363
3336
|
}
|
|
3364
3337
|
}));
|
|
3365
3338
|
}, [billEnum]);
|
|
3366
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3339
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3340
|
+
style: {
|
|
3341
|
+
padding: "16px 20px",
|
|
3342
|
+
borderBottom: "1px solid rgb(240, 240, 240)"
|
|
3343
|
+
}
|
|
3344
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Group, {
|
|
3345
|
+
value: type,
|
|
3346
|
+
onChange: switchType
|
|
3347
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3348
|
+
value: 1,
|
|
3349
|
+
style: {
|
|
3350
|
+
whiteSpace: 'nowrap'
|
|
3351
|
+
}
|
|
3352
|
+
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3353
|
+
value: 2,
|
|
3354
|
+
style: {
|
|
3355
|
+
whiteSpace: 'nowrap'
|
|
3356
|
+
}
|
|
3357
|
+
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3367
3358
|
style: {
|
|
3368
3359
|
flex: 'none',
|
|
3369
3360
|
position: 'relative',
|
|
@@ -3387,11 +3378,11 @@ var PageHeader = (function () {
|
|
|
3387
3378
|
}), visible && /*#__PURE__*/React__default['default'].createElement(modalcomfirm, {
|
|
3388
3379
|
handleCancel: handleCancel,
|
|
3389
3380
|
list: selectedRowKey
|
|
3390
|
-
}));
|
|
3381
|
+
})));
|
|
3391
3382
|
});
|
|
3392
3383
|
|
|
3393
|
-
var css_248z$
|
|
3394
|
-
styleInject(css_248z$
|
|
3384
|
+
var css_248z$3 = "";
|
|
3385
|
+
styleInject(css_248z$3);
|
|
3395
3386
|
|
|
3396
3387
|
var attributionEnum = {
|
|
3397
3388
|
'1': '发送方',
|
|
@@ -5717,10 +5708,7 @@ var Controller$1 = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
5717
5708
|
return _createClass(Controller);
|
|
5718
5709
|
}(GreyReactBox__default['default']);
|
|
5719
5710
|
|
|
5720
|
-
var
|
|
5721
|
-
styleInject(css_248z$5);
|
|
5722
|
-
|
|
5723
|
-
var Option$3 = antd.Select.Option;
|
|
5711
|
+
var Option$2 = antd.Select.Option;
|
|
5724
5712
|
var RangePicker$1 = antd.DatePicker.RangePicker;
|
|
5725
5713
|
var Header = (function () {
|
|
5726
5714
|
var controller = WhiteList.useController();
|
|
@@ -5825,34 +5813,33 @@ var Header = (function () {
|
|
|
5825
5813
|
name: "companyDid",
|
|
5826
5814
|
label: "我司对应DID",
|
|
5827
5815
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
5828
|
-
className:
|
|
5829
|
-
allowClear: true
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
key: item.value,
|
|
5833
|
-
value: item.value
|
|
5834
|
-
}, item.label);
|
|
5835
|
-
})))
|
|
5816
|
+
className: "underline",
|
|
5817
|
+
allowClear: true,
|
|
5818
|
+
options: didEnum
|
|
5819
|
+
}))
|
|
5836
5820
|
});
|
|
5837
5821
|
// 数据状态
|
|
5838
5822
|
items.push({
|
|
5839
5823
|
name: "dataStatus",
|
|
5840
5824
|
label: "数据状态",
|
|
5841
5825
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
5842
|
-
className:
|
|
5843
|
-
allowClear: true
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5826
|
+
className: "underline",
|
|
5827
|
+
allowClear: true,
|
|
5828
|
+
options: [{
|
|
5829
|
+
label: '使用中',
|
|
5830
|
+
value: 1
|
|
5831
|
+
}, {
|
|
5832
|
+
label: '停用',
|
|
5833
|
+
value: 2
|
|
5834
|
+
}]
|
|
5835
|
+
}))
|
|
5849
5836
|
});
|
|
5850
5837
|
// 创建时间
|
|
5851
5838
|
items.push({
|
|
5852
5839
|
name: "createTime",
|
|
5853
5840
|
label: "创建时间",
|
|
5854
5841
|
children: /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
5855
|
-
className:
|
|
5842
|
+
className: "underline-datepicker"
|
|
5856
5843
|
})
|
|
5857
5844
|
});
|
|
5858
5845
|
return items;
|
|
@@ -5926,25 +5913,28 @@ var Header = (function () {
|
|
|
5926
5913
|
}, [whiteParams, formItems]),
|
|
5927
5914
|
formItems: formItems
|
|
5928
5915
|
}),
|
|
5929
|
-
search = _SearchXui$useCreate.search
|
|
5916
|
+
search = _SearchXui$useCreate.search,
|
|
5917
|
+
inventory = _SearchXui$useCreate.inventory;
|
|
5930
5918
|
var topExpand = React.useCallback(function () {
|
|
5931
5919
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5932
5920
|
style: {
|
|
5933
5921
|
width: "100%"
|
|
5934
|
-
}
|
|
5922
|
+
}
|
|
5923
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5935
5924
|
className: 'unifiedSearch'
|
|
5936
5925
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5937
5926
|
style: {
|
|
5938
5927
|
display: "flex",
|
|
5939
5928
|
alignItems: "flex-start",
|
|
5940
|
-
gap: "16px"
|
|
5929
|
+
gap: "16px",
|
|
5930
|
+
padding: '10px 0px'
|
|
5941
5931
|
}
|
|
5942
5932
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5943
5933
|
style: {
|
|
5944
5934
|
flex: 1
|
|
5945
5935
|
}
|
|
5946
|
-
}, search)));
|
|
5947
|
-
}, [search]);
|
|
5936
|
+
}, search))), inventory);
|
|
5937
|
+
}, [search, inventory]);
|
|
5948
5938
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5949
5939
|
style: {
|
|
5950
5940
|
flex: 'none',
|
|
@@ -6196,7 +6186,7 @@ function Rule$1(props) {
|
|
|
6196
6186
|
}));
|
|
6197
6187
|
}
|
|
6198
6188
|
|
|
6199
|
-
var Option$
|
|
6189
|
+
var Option$3 = antd.Select.Option;
|
|
6200
6190
|
var RangePicker$2 = antd.DatePicker.RangePicker;
|
|
6201
6191
|
var Header$1 = (function () {
|
|
6202
6192
|
var controller = WhiteList.useController();
|
|
@@ -6271,34 +6261,33 @@ var Header$1 = (function () {
|
|
|
6271
6261
|
name: "companyDid",
|
|
6272
6262
|
label: "我司对应DID",
|
|
6273
6263
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
6274
|
-
className:
|
|
6275
|
-
allowClear: true
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
key: item.value,
|
|
6279
|
-
value: item.value
|
|
6280
|
-
}, item.label);
|
|
6281
|
-
})))
|
|
6264
|
+
className: "underline",
|
|
6265
|
+
allowClear: true,
|
|
6266
|
+
options: didEnum
|
|
6267
|
+
}))
|
|
6282
6268
|
});
|
|
6283
6269
|
// 数据状态
|
|
6284
6270
|
items.push({
|
|
6285
6271
|
name: "dataStatus",
|
|
6286
6272
|
label: "数据状态",
|
|
6287
6273
|
children: (/*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
6288
|
-
className:
|
|
6289
|
-
allowClear: true
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6274
|
+
className: "underline",
|
|
6275
|
+
allowClear: true,
|
|
6276
|
+
options: [{
|
|
6277
|
+
label: '使用中',
|
|
6278
|
+
value: 1
|
|
6279
|
+
}, {
|
|
6280
|
+
label: '停用',
|
|
6281
|
+
value: 2
|
|
6282
|
+
}]
|
|
6283
|
+
}))
|
|
6295
6284
|
});
|
|
6296
6285
|
// 创建时间
|
|
6297
6286
|
items.push({
|
|
6298
6287
|
name: "createTime",
|
|
6299
6288
|
label: "创建时间",
|
|
6300
6289
|
children: /*#__PURE__*/React__default['default'].createElement(RangePicker$2, {
|
|
6301
|
-
className:
|
|
6290
|
+
className: "underline-datepicker"
|
|
6302
6291
|
})
|
|
6303
6292
|
});
|
|
6304
6293
|
return items;
|
|
@@ -6372,7 +6361,8 @@ var Header$1 = (function () {
|
|
|
6372
6361
|
}, [params, formItems]),
|
|
6373
6362
|
formItems: formItems
|
|
6374
6363
|
}),
|
|
6375
|
-
search = _SearchXui$useCreate.search
|
|
6364
|
+
search = _SearchXui$useCreate.search,
|
|
6365
|
+
inventory = _SearchXui$useCreate.inventory;
|
|
6376
6366
|
var topExpand = React.useCallback(function () {
|
|
6377
6367
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6378
6368
|
style: {
|
|
@@ -6382,14 +6372,15 @@ var Header$1 = (function () {
|
|
|
6382
6372
|
style: {
|
|
6383
6373
|
display: "flex",
|
|
6384
6374
|
alignItems: "flex-start",
|
|
6385
|
-
gap: "16px"
|
|
6375
|
+
gap: "16px",
|
|
6376
|
+
padding: '10px 0px'
|
|
6386
6377
|
}
|
|
6387
6378
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6388
6379
|
style: {
|
|
6389
6380
|
flex: 1
|
|
6390
6381
|
}
|
|
6391
|
-
}, search)));
|
|
6392
|
-
}, [search]);
|
|
6382
|
+
}, search)), inventory);
|
|
6383
|
+
}, [search, inventory]);
|
|
6393
6384
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6394
6385
|
style: {
|
|
6395
6386
|
flex: 'none',
|
package/package.json
CHANGED
|
@@ -63,13 +63,7 @@ export default () => {
|
|
|
63
63
|
name: "companyDid",
|
|
64
64
|
label: "我司对应DID",
|
|
65
65
|
children: (
|
|
66
|
-
<SearchSelect className={
|
|
67
|
-
{didEnum?.map(item => (
|
|
68
|
-
<Option key={item.value} value={item.value}>
|
|
69
|
-
{item.label}
|
|
70
|
-
</Option>
|
|
71
|
-
))}
|
|
72
|
-
</SearchSelect>
|
|
66
|
+
<SearchSelect className={"underline"} allowClear options={didEnum} />
|
|
73
67
|
),
|
|
74
68
|
});
|
|
75
69
|
|
|
@@ -78,10 +72,10 @@ export default () => {
|
|
|
78
72
|
name: "dataStatus",
|
|
79
73
|
label: "数据状态",
|
|
80
74
|
children: (
|
|
81
|
-
<SearchSelect className={
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
<SearchSelect className={"underline"} allowClear options={[
|
|
76
|
+
{ label: '使用中', value: 1 },
|
|
77
|
+
{ label: '停用', value: 2 },
|
|
78
|
+
]} />
|
|
85
79
|
),
|
|
86
80
|
});
|
|
87
81
|
|
|
@@ -89,7 +83,7 @@ export default () => {
|
|
|
89
83
|
items.push({
|
|
90
84
|
name: "createTime",
|
|
91
85
|
label: "创建时间",
|
|
92
|
-
children: <RangePicker className={
|
|
86
|
+
children: <RangePicker className={"underline-datepicker"} />,
|
|
93
87
|
});
|
|
94
88
|
|
|
95
89
|
return items;
|
|
@@ -118,7 +112,7 @@ export default () => {
|
|
|
118
112
|
})()
|
|
119
113
|
}, []);
|
|
120
114
|
// 创建搜索组件
|
|
121
|
-
const { search } = SearchXui.useCreate({
|
|
115
|
+
const { search, inventory } = SearchXui.useCreate({
|
|
122
116
|
labelCol: 9,
|
|
123
117
|
onSubmit: (e) => {
|
|
124
118
|
onSearchFormSubmit(e);
|
|
@@ -132,12 +126,14 @@ export default () => {
|
|
|
132
126
|
const topExpand = useCallback(() => {
|
|
133
127
|
return (
|
|
134
128
|
<div style={{ width: "100%" }}>
|
|
135
|
-
<div style={{ display: "flex", alignItems: "flex-start", gap: "16px" }}>
|
|
129
|
+
<div style={{ display: "flex", alignItems: "flex-start", gap: "16px",padding: '10px 0px' }}>
|
|
136
130
|
<div style={{ flex: 1 }}>{search}</div>
|
|
137
131
|
</div>
|
|
132
|
+
{/* 搜索条件标签 */}
|
|
133
|
+
{inventory}
|
|
138
134
|
</div>
|
|
139
135
|
);
|
|
140
|
-
}, [search]);
|
|
136
|
+
}, [search, inventory]);
|
|
141
137
|
return (
|
|
142
138
|
<div style={{ flex: 'none', position: 'relative', zIndex: 1 }} >
|
|
143
139
|
<PageHeaderFoot
|
|
@@ -72,13 +72,7 @@ export default () => {
|
|
|
72
72
|
name: "companyDid",
|
|
73
73
|
label: "我司对应DID",
|
|
74
74
|
children: (
|
|
75
|
-
<SearchSelect className={
|
|
76
|
-
{didEnum?.map(item => (
|
|
77
|
-
<Option key={item.value} value={item.value}>
|
|
78
|
-
{item.label}
|
|
79
|
-
</Option>
|
|
80
|
-
))}
|
|
81
|
-
</SearchSelect>
|
|
75
|
+
<SearchSelect className={"underline"} allowClear options={didEnum} />
|
|
82
76
|
),
|
|
83
77
|
});
|
|
84
78
|
|
|
@@ -87,10 +81,10 @@ export default () => {
|
|
|
87
81
|
name: "dataStatus",
|
|
88
82
|
label: "数据状态",
|
|
89
83
|
children: (
|
|
90
|
-
<SearchSelect className={
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
<SearchSelect className={"underline"} allowClear options={[
|
|
85
|
+
{ label: '使用中', value: 1 },
|
|
86
|
+
{ label: '停用', value: 2 },
|
|
87
|
+
]} />
|
|
94
88
|
),
|
|
95
89
|
});
|
|
96
90
|
|
|
@@ -98,7 +92,7 @@ export default () => {
|
|
|
98
92
|
items.push({
|
|
99
93
|
name: "createTime",
|
|
100
94
|
label: "创建时间",
|
|
101
|
-
children: <RangePicker className={
|
|
95
|
+
children: <RangePicker className={"underline-datepicker"}/>,
|
|
102
96
|
});
|
|
103
97
|
|
|
104
98
|
return items;
|
|
@@ -127,7 +121,7 @@ export default () => {
|
|
|
127
121
|
})()
|
|
128
122
|
}, []);
|
|
129
123
|
// 创建搜索组件
|
|
130
|
-
const { search } = SearchXui.useCreate({
|
|
124
|
+
const { search, inventory } = SearchXui.useCreate({
|
|
131
125
|
labelCol: 9,
|
|
132
126
|
onSubmit: (e) => {
|
|
133
127
|
onSearchFormSubmit(e);
|
|
@@ -140,13 +134,17 @@ export default () => {
|
|
|
140
134
|
|
|
141
135
|
const topExpand = useCallback(() => {
|
|
142
136
|
return (
|
|
143
|
-
<div style={{ width: "100%" }}
|
|
144
|
-
<div
|
|
145
|
-
<div style={{ flex:
|
|
137
|
+
<div style={{ width: "100%" }}>
|
|
138
|
+
<div className={'unifiedSearch'}>
|
|
139
|
+
<div style={{ display: "flex", alignItems: "flex-start", gap: "16px",padding: '10px 0px' }}>
|
|
140
|
+
<div style={{ flex: 1 }}>{search}</div>
|
|
141
|
+
</div>
|
|
146
142
|
</div>
|
|
143
|
+
{/* 搜索条件标签 */}
|
|
144
|
+
{inventory}
|
|
147
145
|
</div>
|
|
148
146
|
);
|
|
149
|
-
}, [search]);
|
|
147
|
+
}, [search, inventory]);
|
|
150
148
|
return (
|
|
151
149
|
<div style={{ flex: 'none', position: 'relative', zIndex: 1 }} >
|
|
152
150
|
<PageHeaderFoot
|