@bchr/bchr-front-lib 0.6.3 → 0.6.4

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.
@@ -269,7 +269,8 @@ var FormForBrowse = /*#__PURE__*/function (_React$Component) {
269
269
  }
270
270
  var _this$props2 = _this.props,
271
271
  initialValues = _this$props2.initialValues,
272
- custom_form_items = _this$props2.custom_form_items;
272
+ custom_form_items = _this$props2.custom_form_items,
273
+ file_service_path = _this$props2.file_service_path;
273
274
  if (Array.isArray(initialValues)) {
274
275
  initialValues = initialValues[0] || {};
275
276
  }
@@ -332,7 +333,7 @@ var FormForBrowse = /*#__PURE__*/function (_React$Component) {
332
333
  ui_render_type: 'browse',
333
334
  initValue: initialValues[code],
334
335
  maskLength: _this.props.maskLength,
335
- requestUrl: _this.props.file_service_path,
336
+ requestUrl: _this.props.requestUrl || file_service_path,
336
337
  appconfig: _this.props.appconfig || _this.props.appConfig
337
338
  }));
338
339
  }
@@ -347,7 +347,7 @@ var FormForModify = /*#__PURE__*/function (_React$Component) {
347
347
  ui_render_type: 'browse',
348
348
  initValue: displayValue,
349
349
  maskLength: _this2.props.maskLength,
350
- requestUrl: _this2.props.file_service_path,
350
+ requestUrl: _this2.props.requestUrl || file_service_path,
351
351
  appconfig: _this2.props.appconfig || _this2.props.appConfig
352
352
  })) : /*#__PURE__*/_react["default"].createElement(_InputPasswordDecrypt["default"], _extends({
353
353
  key: form_id + "_" + code,
@@ -464,7 +464,8 @@ var GridForBrowse = /*#__PURE__*/function (_React$Component) {
464
464
  var _this$props3 = this.props,
465
465
  default_locked_fields = _this$props3.default_locked_fields,
466
466
  customCells = _this$props3.customCells,
467
- grid_info_record_of_data_check = _this$props3.grid_info_record_of_data_check;
467
+ grid_info_record_of_data_check = _this$props3.grid_info_record_of_data_check,
468
+ file_service_path = _this$props3.file_service_path;
468
469
  var ui_render_type = config.ui_render_type,
469
470
  code = config.code,
470
471
  display_code = config.display_code,
@@ -594,7 +595,7 @@ var GridForBrowse = /*#__PURE__*/function (_React$Component) {
594
595
  ui_render_type: 'browse',
595
596
  initValue: dataItem[code],
596
597
  maskLength: this.props.maskLength,
597
- requestUrl: this.props.requestUrl,
598
+ requestUrl: this.props.requestUrl || file_service_path,
598
599
  appconfig: this.props.appconfig || this.props.appConfig
599
600
  }) : null);
600
601
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bchr/bchr-front-lib",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "bchr front lib",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -299,7 +299,7 @@ class FormForBrowse extends React.Component{
299
299
  );
300
300
  }
301
301
 
302
- let {initialValues, custom_form_items} = this.props;
302
+ let {initialValues, custom_form_items, file_service_path} = this.props;
303
303
 
304
304
  if (Array.isArray(initialValues)) {
305
305
  initialValues = initialValues[0] || {};
@@ -370,7 +370,7 @@ class FormForBrowse extends React.Component{
370
370
  components = (
371
371
  <div>
372
372
  {
373
- initialValues[code] && <InputPasswordDecrypt ui_render_type={'browse'} initValue={initialValues[code]} maskLength={this.props.maskLength} requestUrl={this.props.file_service_path} appconfig={this.props.appconfig || this.props.appConfig}/>
373
+ initialValues[code] && <InputPasswordDecrypt ui_render_type={'browse'} initValue={initialValues[code]} maskLength={this.props.maskLength} requestUrl={this.props.requestUrl || file_service_path} appconfig={this.props.appconfig || this.props.appConfig}/>
374
374
  }
375
375
  </div>
376
376
  )
@@ -424,7 +424,7 @@ class FormForModify extends React.Component{
424
424
  case UI_RENDER_TYPE.INPUT_PASSWORD_DECRYPT:
425
425
  component = b_readonly || this.disabledExpression(dataItem, data) ? (
426
426
  <div>
427
- <InputPasswordDecrypt ui_render_type={'browse'} initValue={displayValue} maskLength={this.props.maskLength} requestUrl={this.props.file_service_path} appconfig={this.props.appconfig || this.props.appConfig}/>
427
+ <InputPasswordDecrypt ui_render_type={'browse'} initValue={displayValue} maskLength={this.props.maskLength} requestUrl={this.props.requestUrl || file_service_path} appconfig={this.props.appconfig || this.props.appConfig}/>
428
428
  </div>
429
429
  )
430
430
  :
@@ -301,7 +301,7 @@ class GridForBrowse extends React.Component{
301
301
 
302
302
  let allColumns = this.gridRef.current.columns;
303
303
  let {dataItem, columnIndex} = props;
304
- let {default_locked_fields, customCells, grid_info_record_of_data_check} = this.props;
304
+ let {default_locked_fields, customCells, grid_info_record_of_data_check, file_service_path} = this.props;
305
305
  let {ui_render_type, code, display_code, ref_pk, check_type} = config;
306
306
  let grid_default_locked = null;
307
307
  let column_locked_left = 0;
@@ -448,7 +448,7 @@ class GridForBrowse extends React.Component{
448
448
  {
449
449
  dataItem[code] ? (ui_render_type === UI_RENDER_TYPE.INPUT_PASSWORD
450
450
  ? <InputPassword ui_render_type={'browse'} initValue={dataItem[code]}/>
451
- : <InputPasswordDecrypt ui_render_type={'browse'} initValue={dataItem[code]} maskLength={this.props.maskLength} requestUrl={this.props.requestUrl} appconfig={this.props.appconfig || this.props.appConfig}/>)
451
+ : <InputPasswordDecrypt ui_render_type={'browse'} initValue={dataItem[code]} maskLength={this.props.maskLength} requestUrl={this.props.requestUrl || file_service_path} appconfig={this.props.appconfig || this.props.appConfig}/>)
452
452
  : null
453
453
  }
454
454
  </td>