@yilianjituan/yilian_dgerm 0.0.1-alpha.21 → 0.0.1-alpha.23
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.
|
@@ -56,7 +56,11 @@ export interface DropDownSelectProps extends SelectProps {
|
|
|
56
56
|
*/
|
|
57
57
|
onChange?: (value: any) => void;
|
|
58
58
|
/**
|
|
59
|
-
* @description
|
|
59
|
+
* @description 动态参数,执行查询需要执行之前处理的参数
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
dynamicParameter?: any;
|
|
62
|
+
/**
|
|
63
|
+
* @description 动态参数,处理动态参数的方法
|
|
64
|
+
*/
|
|
65
|
+
beforeSearch?: (params: any) => void;
|
|
62
66
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["url", "method", "handleSelect", "showValue", "customInput", "searchValue", "additionalParameters", "
|
|
2
|
+
var _excluded = ["url", "method", "handleSelect", "showValue", "customInput", "searchValue", "additionalParameters", "dynamicParameter", "beforeSearch", "filterOptionsCallback", "onChange", "mode"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
5
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -25,7 +25,6 @@ import React, { useEffect, useState, useRef } from 'react';
|
|
|
25
25
|
import { Select, Spin } from "antd";
|
|
26
26
|
import { http } from "../../commonAxios/http";
|
|
27
27
|
import _ from 'lodash';
|
|
28
|
-
import { caleParmsData } from "../../commonType/globalFun";
|
|
29
28
|
var Option = Select.Option;
|
|
30
29
|
var Index = function Index(props) {
|
|
31
30
|
var url = props.url,
|
|
@@ -37,8 +36,9 @@ var Index = function Index(props) {
|
|
|
37
36
|
customInput = _props$customInput === void 0 ? false : _props$customInput,
|
|
38
37
|
searchValue = props.searchValue,
|
|
39
38
|
additionalParameters = props.additionalParameters,
|
|
40
|
-
_props$
|
|
41
|
-
|
|
39
|
+
_props$dynamicParamet = props.dynamicParameter,
|
|
40
|
+
dynamicParameter = _props$dynamicParamet === void 0 ? undefined : _props$dynamicParamet,
|
|
41
|
+
beforeSearch = props.beforeSearch,
|
|
42
42
|
filterOptionsCallback = props.filterOptionsCallback,
|
|
43
43
|
_onChange = props.onChange,
|
|
44
44
|
_props$mode = props.mode,
|
|
@@ -92,11 +92,11 @@ var Index = function Index(props) {
|
|
|
92
92
|
while (1) switch (_context2.prev = _context2.next) {
|
|
93
93
|
case 0:
|
|
94
94
|
setSelectState(true);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
_context2.next =
|
|
95
|
+
_additionalParameters = dynamicParameter && beforeSearch ? beforeSearch(dynamicParameter) : additionalParameters;
|
|
96
|
+
console.log("🚀 ~ getStoreList ~ _additionalParameters:", _additionalParameters, beforeSearch, additionalParameters);
|
|
97
|
+
_context2.next = 5;
|
|
98
98
|
return inquireDiseases(_objectSpread(_defineProperty(_defineProperty(_defineProperty({}, searchValue, paramsRef.current), "pageNo", pageRef.current), "pageSize", 10), _additionalParameters ? _additionalParameters : {}));
|
|
99
|
-
case
|
|
99
|
+
case 5:
|
|
100
100
|
data = _context2.sent;
|
|
101
101
|
if (data.code === "OK") {
|
|
102
102
|
target = data.result;
|
|
@@ -106,7 +106,7 @@ var Index = function Index(props) {
|
|
|
106
106
|
setStoreList(storeListRef.current || []);
|
|
107
107
|
setSelectState(false);
|
|
108
108
|
}
|
|
109
|
-
case
|
|
109
|
+
case 7:
|
|
110
110
|
case "end":
|
|
111
111
|
return _context2.stop();
|
|
112
112
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.page-template{
|
|
1
|
+
.page-template {
|
|
2
2
|
|
|
3
|
-
.ant-form-inline{
|
|
3
|
+
.ant-form-inline {
|
|
4
4
|
|
|
5
5
|
.ant-form-item {
|
|
6
6
|
|
|
@@ -8,21 +8,23 @@
|
|
|
8
8
|
// width: 80px;
|
|
9
9
|
// }
|
|
10
10
|
|
|
11
|
-
.ant-select{
|
|
11
|
+
.ant-select {
|
|
12
12
|
top: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.ant-input-group-addon{
|
|
15
|
+
.ant-input-group-addon {
|
|
16
16
|
|
|
17
|
-
.ant-select{
|
|
17
|
+
.ant-select {
|
|
18
18
|
width: auto;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.ant-select
|
|
22
|
+
.ant-select,
|
|
23
|
+
.ant-input,
|
|
24
|
+
.ant-input-number {
|
|
23
25
|
width: 200px;
|
|
24
26
|
|
|
25
|
-
&.ant-calendar-picker-input{
|
|
27
|
+
&.ant-calendar-picker-input {
|
|
26
28
|
width: auto;
|
|
27
29
|
min-width: 200px;
|
|
28
30
|
}
|
|
@@ -42,36 +44,47 @@
|
|
|
42
44
|
margin-bottom: 5px;
|
|
43
45
|
}
|
|
44
46
|
}
|
|
47
|
+
|
|
45
48
|
.extra-filter-box {
|
|
46
49
|
display: flex;
|
|
47
50
|
flex-wrap: wrap;
|
|
51
|
+
|
|
48
52
|
& .ant-form-item {
|
|
49
53
|
margin-bottom: 5px;
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
.ant-table-thead
|
|
58
|
+
.ant-table-thead>tr>th,
|
|
59
|
+
.ant-table-tbody>tr>td {
|
|
55
60
|
text-align: center;
|
|
56
61
|
min-width: 80px;
|
|
57
62
|
max-width: 230px;
|
|
58
63
|
}
|
|
59
|
-
|
|
60
|
-
&__filter{
|
|
61
64
|
|
|
62
|
-
|
|
65
|
+
&__filter {
|
|
63
66
|
|
|
64
|
-
|
|
67
|
+
.actions {
|
|
68
|
+
|
|
69
|
+
.ant-btn {
|
|
65
70
|
margin-right: 8px;
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
// 科室主题颜色
|
|
70
|
-
.actions-theme{
|
|
71
|
-
|
|
75
|
+
.actions-theme {
|
|
76
|
+
.ant-btn {
|
|
77
|
+
margin-right: 8px;
|
|
78
|
+
background: #00998F;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ant-btn:hover {
|
|
82
|
+
background: #03b1a6;
|
|
83
|
+
}
|
|
72
84
|
}
|
|
73
85
|
}
|
|
74
|
-
|
|
86
|
+
|
|
87
|
+
.radioInfos {
|
|
75
88
|
margin-left: 10px;
|
|
76
89
|
}
|
|
77
|
-
}
|
|
90
|
+
}
|