dlt-for-react 1.1.15 → 1.1.17
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 +17 -1
- package/assets/HqCheckButton/index.less +13 -0
- package/assets/HqImage/index.less +11 -0
- package/assets/HqInputPicker/index.less +8 -0
- package/assets/selector/resultview/index.less +53 -0
- package/assets/selector/selectormodal/index.less +15 -0
- package/assets/selector/table/index.less +211 -0
- package/assets/selector/tree/index.less +138 -0
- package/assets/stuSelector/index.less +24 -0
- package/assets/teaSelector/index.less +4 -0
- package/lib/components/HqCascader/index.js +306 -0
- package/lib/components/HqCheckBox/index.js +375 -0
- package/lib/components/HqCheckButton/index.js +284 -0
- package/lib/components/HqConfirm/index.js +81 -0
- package/lib/components/HqFormItem/FormRules.js +27 -0
- package/lib/components/HqFormItem/index.js +309 -0
- package/lib/components/HqImage/index.js +553 -0
- package/lib/components/HqInputPicker/edit-page.js +585 -0
- package/lib/components/HqInputPicker/index.js +226 -0
- package/lib/components/HqInputPicker/input-const.js +134 -0
- package/lib/components/HqInputPicker/render.js +2496 -0
- package/lib/components/HqInputPicker/setting-checkbox.js +853 -0
- package/lib/components/HqInputPicker/setting-datepicker.js +430 -0
- package/lib/components/HqInputPicker/setting-datetimepicker.js +443 -0
- package/lib/components/HqInputPicker/setting-input.js +555 -0
- package/lib/components/HqInputPicker/setting-inputNumber.js +658 -0
- package/lib/components/HqInputPicker/setting-monthpicker.js +434 -0
- package/lib/components/HqInputPicker/setting-multiSelect.js +533 -0
- package/lib/components/HqInputPicker/setting-nhcascader.js +588 -0
- package/lib/components/HqInputPicker/setting-old-upload.js +428 -0
- package/lib/components/HqInputPicker/setting-radio.js +468 -0
- package/lib/components/HqInputPicker/setting-rangepicker.js +466 -0
- package/lib/components/HqInputPicker/setting-select.js +534 -0
- package/lib/components/HqInputPicker/setting-stu-selector.js +508 -0
- package/lib/components/HqInputPicker/setting-switch.js +274 -0
- package/lib/components/HqInputPicker/setting-tea-selector.js +508 -0
- package/lib/components/HqInputPicker/setting-textarea.js +619 -0
- package/lib/components/HqInputPicker/setting-timepicker.js +437 -0
- package/lib/components/HqInputPicker/setting-upload.js +795 -0
- package/lib/components/HqMultiSelect/index.js +495 -0
- package/lib/components/HqOldUpload/index.js +350 -0
- package/lib/components/HqSelect/getSelectName.js +20 -0
- package/lib/components/HqSelect/index.js +495 -0
- package/lib/components/HqSelector/HqLsrySelector/index.js +269 -267
- package/lib/components/HqSelector/HqRySelector/index.js +4 -2
- package/lib/components/HqSelector/HqWzSelector/index.js +4 -2
- package/lib/components/HqStuSelector/index.js +267 -0
- package/lib/components/HqTeaSelector/index.js +221 -0
- package/lib/components/KyCollapse/index.js +23 -24
- package/lib/components/KyContainerFrame/index.js +2 -2
- package/lib/components/KyEditableTable/component.js +38 -38
- package/lib/components/KyEditableTable/index.js +203 -181
- package/lib/components/KyExcel/index.js +191 -153
- package/lib/components/KyModal/index.js +43 -33
- package/lib/components/KyTable/AddFieldsModal.js +66 -59
- package/lib/components/KyTable/checkButtons.js +3 -13
- package/lib/components/KyTable/index.js +2 -2
- package/lib/components/KyTableCardList/AddFieldsModal.js +280 -282
- package/lib/components/KyTableCardList/index.js +2 -2
- package/lib/components/KyTree/index.js +7 -7
- package/lib/components/KyUpload/index.js +170 -165
- package/lib/components/NHSelector/ListSort/index.js +411 -0
- package/lib/components/NHSelector/index.js +636 -0
- package/lib/components/NHSelector/resultview/index.js +408 -0
- package/lib/components/NHSelector/selectormodal/index.js +303 -0
- package/lib/components/NHSelector/table/index.js +784 -0
- package/lib/components/NHSelector/tree/index.js +554 -0
- package/lib/index.js +155 -36
- package/lib/layouts/LeftMenu/index.js +6 -6
- package/lib/layouts/Login/index-pre.js +107 -103
- package/lib/layouts/Login/index.js +2 -2
- package/lib/layouts/Login/login.js +178 -172
- package/lib/layouts/NavigationBar/index.js +67 -67
- package/lib/layouts/Top/editPassWord.js +84 -64
- package/lib/layouts/Top/index.js +117 -117
- package/lib/layouts/TopMenu/index.js +53 -53
- package/lib/layouts/layout/index.js +115 -118
- package/lib/layouts/mixTop/index.js +95 -95
- package/lib/layouts/settingDrawer/index.js +96 -96
- package/lib/routes/AuthorizedRoute.js +33 -32
- package/lib/utils/NHCore.js +65 -65
- package/package.json +3 -3
- package/lib/utils/createUuid.js +0 -40
- package/lib/utils/getLoginUser.js +0 -10
- package/lib/utils/getSize.js +0 -27
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = undefined;
|
|
7
|
+
|
|
8
|
+
var _message2 = require("antd/lib/message");
|
|
9
|
+
|
|
10
|
+
var _message3 = _interopRequireDefault(_message2);
|
|
11
|
+
|
|
12
|
+
var _upload = require("antd/lib/upload");
|
|
13
|
+
|
|
14
|
+
var _upload2 = _interopRequireDefault(_upload);
|
|
15
|
+
|
|
16
|
+
var _button = require("antd/lib/button");
|
|
17
|
+
|
|
18
|
+
var _button2 = _interopRequireDefault(_button);
|
|
19
|
+
|
|
20
|
+
var _icon = require("antd/lib/icon");
|
|
21
|
+
|
|
22
|
+
var _icon2 = _interopRequireDefault(_icon);
|
|
23
|
+
|
|
24
|
+
var _stringify = require("babel-runtime/core-js/json/stringify");
|
|
25
|
+
|
|
26
|
+
var _stringify2 = _interopRequireDefault(_stringify);
|
|
27
|
+
|
|
28
|
+
var _getPrototypeOf = require("babel-runtime/core-js/object/get-prototype-of");
|
|
29
|
+
|
|
30
|
+
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
|
31
|
+
|
|
32
|
+
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
|
|
33
|
+
|
|
34
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
35
|
+
|
|
36
|
+
var _createClass2 = require("babel-runtime/helpers/createClass");
|
|
37
|
+
|
|
38
|
+
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
39
|
+
|
|
40
|
+
var _possibleConstructorReturn2 = require("babel-runtime/helpers/possibleConstructorReturn");
|
|
41
|
+
|
|
42
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
|
43
|
+
|
|
44
|
+
var _inherits2 = require("babel-runtime/helpers/inherits");
|
|
45
|
+
|
|
46
|
+
var _inherits3 = _interopRequireDefault(_inherits2);
|
|
47
|
+
|
|
48
|
+
require("antd/lib/message/style");
|
|
49
|
+
|
|
50
|
+
require("antd/lib/upload/style");
|
|
51
|
+
|
|
52
|
+
require("antd/lib/button/style");
|
|
53
|
+
|
|
54
|
+
require("antd/lib/icon/style");
|
|
55
|
+
|
|
56
|
+
var _react = require("react");
|
|
57
|
+
|
|
58
|
+
var _react2 = _interopRequireDefault(_react);
|
|
59
|
+
|
|
60
|
+
var _NHCore = require("../../utils/NHCore");
|
|
61
|
+
|
|
62
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 文件上传路径:
|
|
66
|
+
* file模式:api/docrepo/upload
|
|
67
|
+
* redis模式:api/zhxg-lxxt/proData/uploadRedis
|
|
68
|
+
* 文件下载路径:
|
|
69
|
+
* file模式:/api/docrepo/download/file?attachmentId={uuid}
|
|
70
|
+
* redis模式:api/zhxg-lxxt/proData/downloadRedis
|
|
71
|
+
*/
|
|
72
|
+
var HqOldUpload = function (_React$Component) {
|
|
73
|
+
(0, _inherits3.default)(HqOldUpload, _React$Component);
|
|
74
|
+
|
|
75
|
+
function HqOldUpload(props) {
|
|
76
|
+
(0, _classCallCheck3.default)(this, HqOldUpload);
|
|
77
|
+
|
|
78
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, (HqOldUpload.__proto__ || (0, _getPrototypeOf2.default)(HqOldUpload)).call(this, props));
|
|
79
|
+
|
|
80
|
+
_initialiseProps.call(_this);
|
|
81
|
+
|
|
82
|
+
var fileList = props.value || props.defaultValue || props.fileList;
|
|
83
|
+
_this.state = {
|
|
84
|
+
fileList: fileList //上传的文件
|
|
85
|
+
};
|
|
86
|
+
return _this;
|
|
87
|
+
}
|
|
88
|
+
//设置可以传递参数的默认值
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
(0, _createClass3.default)(HqOldUpload, [{
|
|
92
|
+
key: "componentWillReceiveProps",
|
|
93
|
+
value: function componentWillReceiveProps(nextProps) {
|
|
94
|
+
if ("fileList" in nextProps || "value" in nextProps) {
|
|
95
|
+
var fileList = nextProps.value || nextProps.fileList;
|
|
96
|
+
if ((0, _stringify2.default)(fileList) === "[]" || typeof fileList === "undefined" || typeof fileList === "string" && fileList.trim() === "") {
|
|
97
|
+
this.setState({ fileList: [] });
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// if(typeof(nextProps.fileList)===undefined || nextProps.fileList.trim()==='' || nextProps.fileList===[]){
|
|
102
|
+
// this.setState({fileList:[]})
|
|
103
|
+
// }
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
//在组件挂载之前调用一次。如果在这个函数里面调用setState,本次的render函数可以看到更新后的state,并且只渲染一次。
|
|
107
|
+
|
|
108
|
+
}, {
|
|
109
|
+
key: "UNSAFE_componentWillMount",
|
|
110
|
+
value: function UNSAFE_componentWillMount() {
|
|
111
|
+
if (this.props.fileList || this.props.value || this.props.defaultValue) {
|
|
112
|
+
var propsfileList = this.props.value || this.props.fileList || this.props.defaultValue;
|
|
113
|
+
var initFielList = propsfileList;
|
|
114
|
+
if (typeof propsfileList === "string") {
|
|
115
|
+
initFielList = [];
|
|
116
|
+
propsfileList.split(",").map(function (item) {
|
|
117
|
+
initFielList.push({
|
|
118
|
+
uuid: item.split(";")[0],
|
|
119
|
+
name: item.split(";")[1]
|
|
120
|
+
});
|
|
121
|
+
return item;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
var fileList = [];
|
|
125
|
+
initFielList.map(function (item, index) {
|
|
126
|
+
fileList.push({
|
|
127
|
+
uuid: item.uuid,
|
|
128
|
+
uid: item.uuid,
|
|
129
|
+
name: item.name,
|
|
130
|
+
status: "done",
|
|
131
|
+
reponse: "Server Error 500" // custom error message to show
|
|
132
|
+
// url: 'http://www.baidu.com/xxx.png',
|
|
133
|
+
});
|
|
134
|
+
return item;
|
|
135
|
+
});
|
|
136
|
+
this.setState({
|
|
137
|
+
fileList: fileList
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
//在组件挂载之后调用一次。
|
|
142
|
+
|
|
143
|
+
}, {
|
|
144
|
+
key: "componentDidMount",
|
|
145
|
+
value: function componentDidMount() {}
|
|
146
|
+
|
|
147
|
+
//判断文件是否满足要求文件格式的要求
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
//文件上传之前执行的方法
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
//文件上传改变事件
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
//发送请求的时候的数据
|
|
157
|
+
|
|
158
|
+
}, {
|
|
159
|
+
key: "render",
|
|
160
|
+
value: function render() {
|
|
161
|
+
var action = this.props.uploadType === "file" ? "zuul/docrepo/upload" : window.baseUrl + "/proData/uploadRedis";
|
|
162
|
+
return _react2.default.createElement(
|
|
163
|
+
_upload2.default,
|
|
164
|
+
{
|
|
165
|
+
name: "file"
|
|
166
|
+
// accept={'application/vnd.openxmlformats-officedocument.presentationml.presentation'} 用来限制可以上传的文件,不是这种类型的会看不到
|
|
167
|
+
, action: action,
|
|
168
|
+
beforeUpload: this.beforeUpload,
|
|
169
|
+
listType: "text",
|
|
170
|
+
onChange: this.handleChange,
|
|
171
|
+
disabled: this.props.disabled,
|
|
172
|
+
data: this.requestData(),
|
|
173
|
+
fileList: this.state.fileList
|
|
174
|
+
},
|
|
175
|
+
_react2.default.createElement(
|
|
176
|
+
_button2.default,
|
|
177
|
+
{ disabled: this.props.disabled },
|
|
178
|
+
_react2.default.createElement(_icon2.default, { type: "upload" }),
|
|
179
|
+
" \u70B9\u51FB\u4E0A\u4F20"
|
|
180
|
+
)
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
}]);
|
|
184
|
+
return HqOldUpload;
|
|
185
|
+
}(_react2.default.Component);
|
|
186
|
+
|
|
187
|
+
HqOldUpload.defaultProps = {
|
|
188
|
+
multiple: false, //是否支持上传多个文件,默认false
|
|
189
|
+
fileList: [], //设置默认上传的内容,格式:[{uuid:'附件文档库的标志',name:'文件名称'}],只有uploadType为file(文档库)模式的时候才能使用此功能
|
|
190
|
+
uploadType: "file", //文件上传方式,file:文档库,redis:Redis缓存,如果是需要永久上传请使用文档库,如果只是暂存,建议使用redis缓存
|
|
191
|
+
redisData: 30, //缓存时间,单位:分钟,设置缓存时间,意思是超过这个时间就会删除这个缓存信息
|
|
192
|
+
fileCountLimit: undefined, //上传文件个数限制
|
|
193
|
+
fileTypeLimit: undefined, //上传文件格式限制
|
|
194
|
+
disabled: false, //是否禁用
|
|
195
|
+
onChange: undefined, //值改变事件,参数:resultStr,resultList
|
|
196
|
+
maxFileSize: 20 //默认上传最大大小限制20MB
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
var _initialiseProps = function _initialiseProps() {
|
|
200
|
+
var _this2 = this;
|
|
201
|
+
|
|
202
|
+
this.checkTypeLimit = function (filename, fileTypeLimit) {
|
|
203
|
+
for (var i = 0; i < fileTypeLimit.length; i++) {
|
|
204
|
+
if (filename.toUpperCase().indexOf(fileTypeLimit[i].toUpperCase()) > -1) {
|
|
205
|
+
return true;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return false;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
this.beforeUpload = function (file, fileList) {
|
|
212
|
+
var suffixMap = {
|
|
213
|
+
word: [".doc", ".docx"],
|
|
214
|
+
exce: [".xls", ".xlsx"],
|
|
215
|
+
img: [".png", ".jpeg", ".jpg", ".gif", ".bmp"]
|
|
216
|
+
};
|
|
217
|
+
//文件格式的限制
|
|
218
|
+
if (_this2.props.fileTypeLimit && _this2.props.fileTypeLimit.length > 0) {
|
|
219
|
+
var fileTypeLimit = _this2.props.fileTypeLimit;
|
|
220
|
+
for (var i = fileTypeLimit.length - 1; i >= 0; i--) {
|
|
221
|
+
var list = suffixMap[fileTypeLimit[i]];
|
|
222
|
+
if (list) {
|
|
223
|
+
fileTypeLimit.splice(i, 1);
|
|
224
|
+
for (var j = 0; j < list.length; j++) {
|
|
225
|
+
fileTypeLimit.push(list[j]);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
if (!_this2.checkTypeLimit(file.name, fileTypeLimit)) {
|
|
230
|
+
_message3.default.info("只能上传后缀为[" + fileTypeLimit.join(",") + "]格式的文件!");
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
//文件上传数量限制
|
|
235
|
+
var fileCountLimit = _this2.props.multiple === false ? 1 : _this2.props.fileCountLimit;
|
|
236
|
+
if (fileCountLimit && fileCountLimit <= _this2.state.fileList.length) {
|
|
237
|
+
_message3.default.info("最多只能上传" + fileCountLimit + "个文件!");
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
//限制上传文件大小(默认上传大小限制20MB)
|
|
242
|
+
var _props$maxFileSize = _this2.props.maxFileSize,
|
|
243
|
+
maxFileSize = _props$maxFileSize === undefined ? 20 : _props$maxFileSize;
|
|
244
|
+
|
|
245
|
+
var fileSize = file.size / 1024 / 1024;
|
|
246
|
+
var isOverSize = fileSize > maxFileSize;
|
|
247
|
+
|
|
248
|
+
if (isOverSize) {
|
|
249
|
+
var msg = "抱歉,上传文件大小最大不能超过" + maxFileSize + "M!";
|
|
250
|
+
_message3.default.error(msg);
|
|
251
|
+
return !isOverSize;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return true;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
this.handleChange = function (e) {
|
|
258
|
+
var fileList = e.fileList;
|
|
259
|
+
if (e.file.status === "done") {
|
|
260
|
+
//上传链接调用成功
|
|
261
|
+
var response = e.file.response;
|
|
262
|
+
if (_this2.props.uploadType === "file") {
|
|
263
|
+
//上传到文档库中
|
|
264
|
+
if (response.meta && response.meta.statusCode === 200) {
|
|
265
|
+
//导出成功
|
|
266
|
+
fileList = fileList.map(function (file) {
|
|
267
|
+
if (file.uid === e.file.uid) {
|
|
268
|
+
file.uuid = response.data.ssbh;
|
|
269
|
+
}
|
|
270
|
+
return file;
|
|
271
|
+
});
|
|
272
|
+
_this2.getResult(fileList);
|
|
273
|
+
} else {
|
|
274
|
+
_message3.default.error("文件上传失败,请重新上传!");
|
|
275
|
+
fileList = _this2.filterCurrentFile(e.fileList, e.file);
|
|
276
|
+
}
|
|
277
|
+
} else {
|
|
278
|
+
//上传到redis中缓存
|
|
279
|
+
if (response.code === 200) {
|
|
280
|
+
fileList = fileList.map(function (file) {
|
|
281
|
+
if (file.uid === e.file.uid) {
|
|
282
|
+
file.uuid = e.file.response.data;
|
|
283
|
+
}
|
|
284
|
+
return file;
|
|
285
|
+
});
|
|
286
|
+
_this2.getResult(fileList);
|
|
287
|
+
} else {
|
|
288
|
+
_message3.default.error("文件上传失败,请重新上传!");
|
|
289
|
+
fileList = _this2.filterCurrentFile(e.fileList, e.file);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
} else if (e.file.status === "uploading") {
|
|
293
|
+
//上传中,此时不需要做处理
|
|
294
|
+
} else if (e.file.status === "error") {
|
|
295
|
+
//上传错误
|
|
296
|
+
_message3.default.error("文件由于未知原因失败,请重新上传!");
|
|
297
|
+
fileList = _this2.filterCurrentFile(e.fileList, e.file);
|
|
298
|
+
} else if (e.file.status === "removed") {
|
|
299
|
+
//删除
|
|
300
|
+
_this2.getResult(fileList);
|
|
301
|
+
}
|
|
302
|
+
//beforeUpload返回false的时候,status状态值是undefined
|
|
303
|
+
if (e.file.status) {
|
|
304
|
+
_this2.setState({
|
|
305
|
+
fileList: fileList
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
this.filterCurrentFile = function (list, currFile) {
|
|
311
|
+
var fileList = [];
|
|
312
|
+
list.map(function (file) {
|
|
313
|
+
if (file.uid !== currFile.uid) {
|
|
314
|
+
fileList.push(file);
|
|
315
|
+
}
|
|
316
|
+
return file;
|
|
317
|
+
});
|
|
318
|
+
return fileList;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
this.requestData = function () {
|
|
322
|
+
if (_this2.props.uploadType === "file") {
|
|
323
|
+
return { uuid: (0, _NHCore.createUuid)(), type: "1" };
|
|
324
|
+
} else {
|
|
325
|
+
return { redisData: _this2.props.redisData };
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
this.getResult = function (fileList) {
|
|
330
|
+
var resultStr = "";
|
|
331
|
+
var resultList = [];
|
|
332
|
+
fileList.map(function (file) {
|
|
333
|
+
resultList.push({
|
|
334
|
+
uuid: file.uuid,
|
|
335
|
+
name: file.name
|
|
336
|
+
});
|
|
337
|
+
resultStr += "," + file.uuid + ";" + file.name;
|
|
338
|
+
return file;
|
|
339
|
+
});
|
|
340
|
+
if (resultStr) {
|
|
341
|
+
resultStr = resultStr.substring(1);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (_this2.props.onChange) {
|
|
345
|
+
_this2.props.onChange(resultStr, resultList);
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
exports.default = HqOldUpload;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _NHFetch = require('../../utils/NHFetch');
|
|
8
|
+
|
|
9
|
+
var _NHFetch2 = _interopRequireDefault(_NHFetch);
|
|
10
|
+
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
|
|
13
|
+
var getSelectName = function getSelectName(sign, values) {
|
|
14
|
+
return (0, _NHFetch2.default)('/proData/getSelectName', 'get', { sign: sign, values: typeof values == 'string' ? values : values.join(','), t: new Date().getTime() }).then(function (res) {
|
|
15
|
+
if (res) {
|
|
16
|
+
return res.data;
|
|
17
|
+
}return '';
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.default = getSelectName;
|