dlt-for-react 1.0.13 → 1.0.15
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/README.md +9 -1
- package/assets/components/KyTableCardList/index.less +200 -0
- package/lib/components/HqSelector/HqLsrySelector/index.js +1 -1
- package/lib/components/HqSelector/HqRySelector/index.js +331 -0
- package/lib/components/KyTableCardList/AddFieldsModal.js +370 -0
- package/lib/components/KyTableCardList/highSearchForm.js +585 -0
- package/lib/components/KyTableCardList/highSelect.js +301 -0
- package/lib/components/KyTableCardList/index.js +1045 -0
- package/lib/index.js +169 -143
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ npm publish
|
|
|
8
8
|
|
|
9
9
|
## 前端 dlt-for-react 依赖包版本更新记录
|
|
10
10
|
|
|
11
|
-
##### 当前最新版本:1.0.
|
|
11
|
+
##### 当前最新版本:1.0.15
|
|
12
12
|
|
|
13
13
|
##### 安装依赖
|
|
14
14
|
|
|
@@ -16,6 +16,14 @@ npm publish
|
|
|
16
16
|
|
|
17
17
|
##### 版本修改记录
|
|
18
18
|
|
|
19
|
+
#### V1.0.14—2023 年 10 月 26 日
|
|
20
|
+
|
|
21
|
+
1. 补充 HqRySelector 组件
|
|
22
|
+
|
|
23
|
+
#### V1.0.14—2023 年 10 月 25 日
|
|
24
|
+
|
|
25
|
+
1. 补充 KyTableCardList 组件
|
|
26
|
+
|
|
19
27
|
#### V1.0.13—2023 年 10 月 24 日
|
|
20
28
|
|
|
21
29
|
1. 补充 KyTree 组件
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.ky-table-card-list {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
.custom_scrollbars {
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
.searchDiv {
|
|
9
|
+
margin-bottom: 16px;
|
|
10
|
+
.hide_select_field_icon {
|
|
11
|
+
.ant-select-arrow {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ant-select .ant-select-selection {
|
|
17
|
+
border: none !important;
|
|
18
|
+
outline: none !important;
|
|
19
|
+
box-shadow: none !important;
|
|
20
|
+
}
|
|
21
|
+
.search-input {
|
|
22
|
+
width: 230px;
|
|
23
|
+
}
|
|
24
|
+
.search-radio,
|
|
25
|
+
.search-checkbox {
|
|
26
|
+
margin-left: 28px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.search-btn {
|
|
30
|
+
margin: 0 20px;
|
|
31
|
+
}
|
|
32
|
+
.height-text {
|
|
33
|
+
margin-left: 10px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.highSearch-box {
|
|
38
|
+
margin-bottom: 10px;
|
|
39
|
+
div.ant-select-selection {
|
|
40
|
+
border-width: 1px !important;
|
|
41
|
+
}
|
|
42
|
+
button.ant-btn {
|
|
43
|
+
margin: 10px 0 0px 10px;
|
|
44
|
+
}
|
|
45
|
+
div.ant-form-item {
|
|
46
|
+
margin-bottom: 0px;
|
|
47
|
+
}
|
|
48
|
+
span.ant-time-picker {
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.content-box {
|
|
53
|
+
padding: 2px 0 0 0;
|
|
54
|
+
.card-list {
|
|
55
|
+
position: relative;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: flex-start;
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 110px;
|
|
60
|
+
margin-bottom: 16px;
|
|
61
|
+
padding: 24px;
|
|
62
|
+
padding: 24px 24px 24px 22px;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
background: #ffffff;
|
|
65
|
+
border-right: 1px solid #d9d9d9;
|
|
66
|
+
border-radius: 6px;
|
|
67
|
+
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.12);
|
|
68
|
+
opacity: 1;
|
|
69
|
+
|
|
70
|
+
.statusLine {
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
width: 6px;
|
|
75
|
+
height: 110px;
|
|
76
|
+
background: #397ef0;
|
|
77
|
+
}
|
|
78
|
+
.item-left {
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
width: 70%;
|
|
81
|
+
.title_box {
|
|
82
|
+
display: flex;
|
|
83
|
+
.title {
|
|
84
|
+
width: 400px;
|
|
85
|
+
margin-bottom: 16px;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
color: #397ef0;
|
|
88
|
+
font-weight: bold;
|
|
89
|
+
font-size: 18px;
|
|
90
|
+
font-family: Source Han Sans CN;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
opacity: 1;
|
|
95
|
+
}
|
|
96
|
+
.subhead {
|
|
97
|
+
margin-left: 25px;
|
|
98
|
+
.subhead_label {
|
|
99
|
+
color: rgba(0, 0, 0, 0.85);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.label,
|
|
104
|
+
.value {
|
|
105
|
+
display: inline-block;
|
|
106
|
+
color: rgba(0, 0, 0, 0.85);
|
|
107
|
+
font-weight: bold;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
font-family: Source Han Sans CN;
|
|
110
|
+
}
|
|
111
|
+
.value {
|
|
112
|
+
color: rgba(0, 0, 0, 0.65);
|
|
113
|
+
font-weight: 400;
|
|
114
|
+
}
|
|
115
|
+
.warningText {
|
|
116
|
+
color: #ff4d4f;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.status {
|
|
121
|
+
flex-basis: 10%;
|
|
122
|
+
flex-shrink: 0;
|
|
123
|
+
margin-right: 16px;
|
|
124
|
+
line-height: 62px;
|
|
125
|
+
text-align: right;
|
|
126
|
+
.dot {
|
|
127
|
+
position: relative;
|
|
128
|
+
top: -2px;
|
|
129
|
+
display: inline-block;
|
|
130
|
+
width: 6px;
|
|
131
|
+
height: 6px;
|
|
132
|
+
margin-right: 4px;
|
|
133
|
+
border-radius: 50%;
|
|
134
|
+
}
|
|
135
|
+
.status-text {
|
|
136
|
+
font-weight: 400;
|
|
137
|
+
font-size: 14px;
|
|
138
|
+
font-family: Source Han Sans CN;
|
|
139
|
+
opacity: 1;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
.operate {
|
|
143
|
+
flex-basis: 20%;
|
|
144
|
+
flex-shrink: 0;
|
|
145
|
+
line-height: 62px;
|
|
146
|
+
text-align: right;
|
|
147
|
+
.iconDown {
|
|
148
|
+
margin-left: 4px;
|
|
149
|
+
font-size: 12px;
|
|
150
|
+
}
|
|
151
|
+
.action {
|
|
152
|
+
color: #397ef0;
|
|
153
|
+
font-weight: 400;
|
|
154
|
+
font-size: 14px;
|
|
155
|
+
font-family: Source Han Sans CN;
|
|
156
|
+
opacity: 1;
|
|
157
|
+
&[disabled] {
|
|
158
|
+
color: rgba(0, 0, 0, 0.45);
|
|
159
|
+
}
|
|
160
|
+
.operate-icon {
|
|
161
|
+
width: 20px;
|
|
162
|
+
height: 20px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
.card-list-pagination {
|
|
169
|
+
width: 100%;
|
|
170
|
+
height: 24px;
|
|
171
|
+
.ant-pagination {
|
|
172
|
+
text-align: right;
|
|
173
|
+
}
|
|
174
|
+
.ant-pagination.mini .ant-pagination-total-text,
|
|
175
|
+
.ant-pagination.mini .ant-pagination-simple-pager {
|
|
176
|
+
float: left;
|
|
177
|
+
}
|
|
178
|
+
.ant-pagination-item-active {
|
|
179
|
+
background: #fff;
|
|
180
|
+
a {
|
|
181
|
+
color: #397ef0;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
.ant-dropdown-menu-item .action {
|
|
187
|
+
color: #397ef0;
|
|
188
|
+
font-weight: 400;
|
|
189
|
+
font-size: 14px;
|
|
190
|
+
font-family: Source Han Sans CN;
|
|
191
|
+
opacity: 1;
|
|
192
|
+
&[disabled] {
|
|
193
|
+
color: rgba(0, 0, 0, 0.45);
|
|
194
|
+
}
|
|
195
|
+
.operate-icon {
|
|
196
|
+
width: 20px;
|
|
197
|
+
height: 20px;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -261,7 +261,7 @@ var HqLsrySelector = exports.HqLsrySelector = function (_React$Component) {
|
|
|
261
261
|
_props$searchWidth = _props.searchWidth,
|
|
262
262
|
searchWidth = _props$searchWidth === undefined ? '300' : _props$searchWidth,
|
|
263
263
|
_props$placeholder = _props.placeholder,
|
|
264
|
-
placeholder = _props$placeholder === undefined ? '
|
|
264
|
+
placeholder = _props$placeholder === undefined ? '工号/姓名/性别/所属科室/所属单位' : _props$placeholder,
|
|
265
265
|
sign = _props.sign,
|
|
266
266
|
treeUrl = _props.treeUrl,
|
|
267
267
|
tableUrl = _props.tableUrl,
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HqRySelector = undefined;
|
|
7
|
+
|
|
8
|
+
var _NHSelector2 = require("xgui-for-react/lib/components/NHSelector");
|
|
9
|
+
|
|
10
|
+
var _NHSelector3 = _interopRequireDefault(_NHSelector2);
|
|
11
|
+
|
|
12
|
+
var _tooltip = require("antd/lib/tooltip");
|
|
13
|
+
|
|
14
|
+
var _tooltip2 = _interopRequireDefault(_tooltip);
|
|
15
|
+
|
|
16
|
+
var _getPrototypeOf = require("babel-runtime/core-js/object/get-prototype-of");
|
|
17
|
+
|
|
18
|
+
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
|
19
|
+
|
|
20
|
+
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
|
|
21
|
+
|
|
22
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
23
|
+
|
|
24
|
+
var _createClass2 = require("babel-runtime/helpers/createClass");
|
|
25
|
+
|
|
26
|
+
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
27
|
+
|
|
28
|
+
var _possibleConstructorReturn2 = require("babel-runtime/helpers/possibleConstructorReturn");
|
|
29
|
+
|
|
30
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
|
31
|
+
|
|
32
|
+
var _inherits2 = require("babel-runtime/helpers/inherits");
|
|
33
|
+
|
|
34
|
+
var _inherits3 = _interopRequireDefault(_inherits2);
|
|
35
|
+
|
|
36
|
+
require("antd/lib/tooltip/style");
|
|
37
|
+
|
|
38
|
+
var _react = require("react");
|
|
39
|
+
|
|
40
|
+
var _react2 = _interopRequireDefault(_react);
|
|
41
|
+
|
|
42
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 人员选择器
|
|
46
|
+
* 用法如下:(记得先引入组件)
|
|
47
|
+
|
|
48
|
+
// 人员分类择器显示
|
|
49
|
+
this.HqRySelector.show([id]);
|
|
50
|
+
|
|
51
|
+
<HqRySelector
|
|
52
|
+
label={'选择人员分类'}
|
|
53
|
+
isSinger={false}
|
|
54
|
+
ref={el => this.HqRySelector = el}
|
|
55
|
+
onSelect={this.onSelector}
|
|
56
|
+
/>
|
|
57
|
+
|
|
58
|
+
// 人员分类择器选中事件
|
|
59
|
+
onSelector = (selectKeys, selectValue) => {
|
|
60
|
+
if (selectValue && selectValue.length > 0) {
|
|
61
|
+
let params = this.state.params;
|
|
62
|
+
const obj = selectValue[0];
|
|
63
|
+
params.gh = obj.GH;
|
|
64
|
+
params.xm = obj.XM;
|
|
65
|
+
this.setState({ params });
|
|
66
|
+
} else {
|
|
67
|
+
message.warn("请选择人员分类信息!")
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
*/
|
|
72
|
+
var HqRySelector = exports.HqRySelector = function (_React$Component) {
|
|
73
|
+
(0, _inherits3.default)(HqRySelector, _React$Component);
|
|
74
|
+
|
|
75
|
+
function HqRySelector(props) {
|
|
76
|
+
(0, _classCallCheck3.default)(this, HqRySelector);
|
|
77
|
+
|
|
78
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, (HqRySelector.__proto__ || (0, _getPrototypeOf2.default)(HqRySelector)).call(this, props));
|
|
79
|
+
|
|
80
|
+
_this.show = function (initValues) {
|
|
81
|
+
_this.HqRySelector.show(initValues);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
_this.singerBottomShowRender = function (record) {
|
|
85
|
+
var gh = record.GH || record.gh;
|
|
86
|
+
var xm = record.XM || record.xm;
|
|
87
|
+
var bmmc = record.BMMC || record.bmmc;
|
|
88
|
+
// let ksmc = record.KSMC || record.ksmc;
|
|
89
|
+
return _react2.default.createElement(
|
|
90
|
+
"span",
|
|
91
|
+
null,
|
|
92
|
+
_react2.default.createElement(
|
|
93
|
+
"font",
|
|
94
|
+
null,
|
|
95
|
+
"(",
|
|
96
|
+
bmmc,
|
|
97
|
+
")-"
|
|
98
|
+
),
|
|
99
|
+
_react2.default.createElement(
|
|
100
|
+
"font",
|
|
101
|
+
{ style: { fontSize: "14px", color: "red" } },
|
|
102
|
+
xm,
|
|
103
|
+
"(",
|
|
104
|
+
gh,
|
|
105
|
+
")"
|
|
106
|
+
)
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
_this.state = {};
|
|
111
|
+
return _this;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 单选时底部结果渲染
|
|
116
|
+
* @param record 选中的那条结果数据
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
(0, _createClass3.default)(HqRySelector, [{
|
|
121
|
+
key: "render",
|
|
122
|
+
value: function render() {
|
|
123
|
+
var _this2 = this;
|
|
124
|
+
|
|
125
|
+
var columns = [{
|
|
126
|
+
key: "gh",
|
|
127
|
+
title: "工号",
|
|
128
|
+
width: "100",
|
|
129
|
+
ellipsis: true,
|
|
130
|
+
render: function render(text, record) {
|
|
131
|
+
return record.GH || record.gh;
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: "xm",
|
|
135
|
+
title: "姓名",
|
|
136
|
+
minWidth: "160",
|
|
137
|
+
sorted: false,
|
|
138
|
+
ellipsis: true,
|
|
139
|
+
render: function render(text, record) {
|
|
140
|
+
return record.XM || record.xm;
|
|
141
|
+
}
|
|
142
|
+
}, {
|
|
143
|
+
key: "xb",
|
|
144
|
+
title: "性别",
|
|
145
|
+
minWidth: "80",
|
|
146
|
+
sorted: false,
|
|
147
|
+
ellipsis: true,
|
|
148
|
+
render: function render(text, record) {
|
|
149
|
+
return record.XB || record.xb;
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
// {
|
|
153
|
+
// key: 'title',
|
|
154
|
+
// title: '职称',
|
|
155
|
+
// minWidth: '100',
|
|
156
|
+
// sorted: false,
|
|
157
|
+
// render: (text, record, index) => {
|
|
158
|
+
// let temp = record.TITLE || record.title;
|
|
159
|
+
// if (temp && temp.length > 6) {
|
|
160
|
+
// return (<font><Tooltip title={temp}>{temp.substring(0, 6)}...</Tooltip ></font>)
|
|
161
|
+
// } else {
|
|
162
|
+
// return (<font>{temp}</font>)
|
|
163
|
+
// }
|
|
164
|
+
// },
|
|
165
|
+
// },
|
|
166
|
+
// {
|
|
167
|
+
// key: 'discipline',
|
|
168
|
+
// title: '一级学科',
|
|
169
|
+
// minWidth: '120',
|
|
170
|
+
// sorted: false,
|
|
171
|
+
// ellipsis: true,
|
|
172
|
+
// render: (text, record, index) => {
|
|
173
|
+
// let temp = record.DISCIPLINE || record.discipline;
|
|
174
|
+
// if (temp && temp.length > 13) {
|
|
175
|
+
// return (<font><Tooltip title={temp}>{temp.substring(0, 13)}...</Tooltip ></font>)
|
|
176
|
+
// } else {
|
|
177
|
+
// return (<font>{temp}</font>)
|
|
178
|
+
// }
|
|
179
|
+
// },
|
|
180
|
+
// },
|
|
181
|
+
// {
|
|
182
|
+
// key: 'degree',
|
|
183
|
+
// title: '最后学位',
|
|
184
|
+
// minWidth: '120',
|
|
185
|
+
// sorted: false,
|
|
186
|
+
// render: (text, record, index) => {
|
|
187
|
+
// let temp = record.DEGREE || record.degree;
|
|
188
|
+
// if (temp && temp.length > 13) {
|
|
189
|
+
// return (<font><Tooltip title={temp}>{temp.substring(0, 13)}...</Tooltip ></font>)
|
|
190
|
+
// } else {
|
|
191
|
+
// return (<font>{temp}</font>)
|
|
192
|
+
// }
|
|
193
|
+
// },
|
|
194
|
+
// },
|
|
195
|
+
// {
|
|
196
|
+
// key: 'ksmc',
|
|
197
|
+
// title: '所属科室',
|
|
198
|
+
// minWidth: '140',
|
|
199
|
+
// sorted: false,
|
|
200
|
+
// render: (text, record, index) => {
|
|
201
|
+
// let temp = record.KSMC || record.ksmc;
|
|
202
|
+
// if (temp && temp.length > 13) {
|
|
203
|
+
// return (<font><Tooltip title={temp}>{temp.substring(0, 13)}...</Tooltip ></font>)
|
|
204
|
+
// } else {
|
|
205
|
+
// return (<font>{temp}</font>)
|
|
206
|
+
// }
|
|
207
|
+
// },
|
|
208
|
+
// },
|
|
209
|
+
{
|
|
210
|
+
key: "bmmc",
|
|
211
|
+
title: "所属部门",
|
|
212
|
+
minWidth: "160",
|
|
213
|
+
sorted: false,
|
|
214
|
+
render: function render(text, record, index) {
|
|
215
|
+
var temp = record.BMMC || record.bmmc;
|
|
216
|
+
if (temp && temp.length > 13) {
|
|
217
|
+
return _react2.default.createElement(
|
|
218
|
+
"font",
|
|
219
|
+
null,
|
|
220
|
+
_react2.default.createElement(
|
|
221
|
+
_tooltip2.default,
|
|
222
|
+
{ title: temp },
|
|
223
|
+
temp.substring(0, 13),
|
|
224
|
+
"..."
|
|
225
|
+
)
|
|
226
|
+
);
|
|
227
|
+
} else {
|
|
228
|
+
return _react2.default.createElement(
|
|
229
|
+
"font",
|
|
230
|
+
null,
|
|
231
|
+
temp
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}];
|
|
236
|
+
var _props = this.props,
|
|
237
|
+
mode = _props.mode,
|
|
238
|
+
treeWidth = _props.treeWidth,
|
|
239
|
+
tableWidth = _props.tableWidth,
|
|
240
|
+
resultWidth = _props.resultWidth,
|
|
241
|
+
_props$title = _props.title,
|
|
242
|
+
title = _props$title === undefined ? "人员选择器" : _props$title,
|
|
243
|
+
_props$keyField = _props.keyField,
|
|
244
|
+
keyField = _props$keyField === undefined ? "GH" : _props$keyField,
|
|
245
|
+
_props$titleField = _props.titleField,
|
|
246
|
+
titleField = _props$titleField === undefined ? "XM" : _props$titleField,
|
|
247
|
+
_props$searchField = _props.searchField,
|
|
248
|
+
searchField = _props$searchField === undefined ? "gh,xm,xb,bmmc" : _props$searchField,
|
|
249
|
+
_props$searchWidth = _props.searchWidth,
|
|
250
|
+
searchWidth = _props$searchWidth === undefined ? "300" : _props$searchWidth,
|
|
251
|
+
_props$placeholder = _props.placeholder,
|
|
252
|
+
placeholder = _props$placeholder === undefined ? "工号/姓名/性别/所属部门" : _props$placeholder,
|
|
253
|
+
sign = _props.sign,
|
|
254
|
+
treeUrl = _props.treeUrl,
|
|
255
|
+
tableUrl = _props.tableUrl,
|
|
256
|
+
_props$baseUrl = _props.baseUrl,
|
|
257
|
+
baseUrl = _props$baseUrl === undefined ? "api/hq-xtgl" : _props$baseUrl;
|
|
258
|
+
|
|
259
|
+
if (!sign && !treeUrl && !tableUrl) {
|
|
260
|
+
//没有设置方案说明此时使用默认的数据源调用
|
|
261
|
+
sign = "ly_hq_selector_jsxx";
|
|
262
|
+
treeUrl = baseUrl + "/proData/selector/tree/list"; //默认的路径,当没有设置方案的时候,就使用此路径查询数据
|
|
263
|
+
tableUrl = baseUrl + "/proData/selector/table/list"; //默认的路径,当没有设置方案的时候,就使用此路径查询数据
|
|
264
|
+
}
|
|
265
|
+
return _react2.default.createElement(
|
|
266
|
+
"div",
|
|
267
|
+
null,
|
|
268
|
+
_react2.default.createElement(_NHSelector3.default, {
|
|
269
|
+
ref: function ref(form) {
|
|
270
|
+
_this2.HqRySelector = form;
|
|
271
|
+
},
|
|
272
|
+
title: title,
|
|
273
|
+
mode: mode,
|
|
274
|
+
sign: sign,
|
|
275
|
+
treeUrl: treeUrl,
|
|
276
|
+
tableUrl: tableUrl,
|
|
277
|
+
treeWidth: treeWidth,
|
|
278
|
+
tableWidth: tableWidth,
|
|
279
|
+
resultWidth: resultWidth,
|
|
280
|
+
height: 500,
|
|
281
|
+
isSinger: this.props.isSinger,
|
|
282
|
+
columns: columns,
|
|
283
|
+
keyField: keyField,
|
|
284
|
+
titleField: titleField,
|
|
285
|
+
searchField: searchField,
|
|
286
|
+
searchWidth: searchWidth,
|
|
287
|
+
placeholder: placeholder,
|
|
288
|
+
onSelect: this.props.onSelect,
|
|
289
|
+
tableParams: this.props.tableParams,
|
|
290
|
+
tableSqlParams: this.props.tableSqlParams,
|
|
291
|
+
treeParams: this.props.treeParams,
|
|
292
|
+
treeSqlParams: this.props.treeSqlParams,
|
|
293
|
+
treeShowIcon: true,
|
|
294
|
+
singerBottomShowFlag: true,
|
|
295
|
+
singerBottomShowRender: this.singerBottomShowRender,
|
|
296
|
+
baseUrl: this.props.baseUrl,
|
|
297
|
+
rangeFilter: this.props.rangeFilter,
|
|
298
|
+
rangeFilterList: this.props.rangeFilterList
|
|
299
|
+
})
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
}]);
|
|
303
|
+
return HqRySelector;
|
|
304
|
+
}(_react2.default.Component);
|
|
305
|
+
|
|
306
|
+
HqRySelector.defaultProps = {
|
|
307
|
+
mode: "treeAndTable",
|
|
308
|
+
treeWidth: 250,
|
|
309
|
+
tableWidth: 600,
|
|
310
|
+
resultWidth: 150,
|
|
311
|
+
sign: undefined,
|
|
312
|
+
treeUrl: undefined,
|
|
313
|
+
tableUrl: undefined,
|
|
314
|
+
title: undefined,
|
|
315
|
+
keyField: undefined,
|
|
316
|
+
titleField: undefined,
|
|
317
|
+
searchField: undefined,
|
|
318
|
+
searchWidth: undefined,
|
|
319
|
+
placeholder: undefined,
|
|
320
|
+
isSinger: false, //是否是单选,true表示是单选,false表示是多选,默认为false
|
|
321
|
+
onSelect: function onSelect() {}, //选中结果的时候的回调方法
|
|
322
|
+
treeParams: {}, //树数据过滤参数
|
|
323
|
+
treeSqlParams: undefined, //树的sql语句内的参数
|
|
324
|
+
tableParams: {}, //列表数据过滤参数
|
|
325
|
+
tableSqlParams: undefined, //列表的sql语句内的参数
|
|
326
|
+
baseUrl: undefined, //请求路径的前缀,可通过改参数控制访问的后端服务,如果不设置,则会去访问当前前端服务对应的后端服务,例如:api/sm-bpm-expansion
|
|
327
|
+
rangeFilter: undefined, //是否开启职务范围过滤
|
|
328
|
+
rangeFilterList: undefined // 自定义职务过滤列表
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
exports.default = HqRySelector;
|