eoss-ui 0.7.98 → 0.7.99

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/lib/select.js CHANGED
@@ -5119,6 +5119,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
5119
5119
  }
5120
5120
  },
5121
5121
  getLabel: function getLabel(value, data) {
5122
+ console.log('value', value);
5123
+ console.log('data', data);
5122
5124
  if ((value || value === 0) && data) {
5123
5125
  if (util["a" /* default */].isObject(data)) {
5124
5126
  if (value === data[this.valKey]) {
@@ -5246,7 +5248,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
5246
5248
  if (!this.hide) {
5247
5249
  if (this.readonly) {
5248
5250
  var dom = [];
5249
- var models = this.models ? JSON.parse(JSON.stringify(this.models)) : '';
5251
+ var models = this.models || this.models == 0 ? JSON.parse(JSON.stringify(this.models)) : '';
5250
5252
  if (typeof models === 'string' && models.includes(',')) {
5251
5253
  models = models.split(',');
5252
5254
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.7.98",
3
+ "version": "0.7.99",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -816,7 +816,7 @@ export default {
816
816
  const field = this.field || this.prop;
817
817
  let data = this.option;
818
818
  let str = '';
819
- let column = rows[field] ? JSON.parse(JSON.stringify(rows[field])) : '';
819
+ let column = rows[field] || rows[field] == 0 ? JSON.parse(JSON.stringify(rows[field])) : '';
820
820
  if (typeof column == 'string' && column.includes(',')) {
821
821
  column = column.split(',');
822
822
  }
@@ -871,6 +871,7 @@ export default {
871
871
  let item = obj[i];
872
872
  let value = item[this.valueKey || 'cciValue'] || item['value'];
873
873
  if (value == val) {
874
+ console.log('value', value);
874
875
  return (
875
876
  item[this.labelKey] ||
876
877
  item['name'] ||
@@ -989,6 +989,8 @@ export default {
989
989
  data: params
990
990
  })
991
991
  .then((res) => {
992
+ console.log('res options', res);
993
+ console.log('item', item);
992
994
  if (res.rCode === 0) {
993
995
  if (item.type == 'ganged') {
994
996
  this.$set(
@@ -500,6 +500,8 @@ export default {
500
500
  }
501
501
  },
502
502
  getLabel(value, data) {
503
+ console.log('value', value);
504
+ console.log('data', data);
503
505
  if ((value || value === 0) && data) {
504
506
  if (util.isObject(data)) {
505
507
  if (value === data[this.valKey]) {
@@ -640,7 +642,7 @@ export default {
640
642
  if (!this.hide) {
641
643
  if (this.readonly) {
642
644
  let dom = [];
643
- let models = this.models ? JSON.parse(JSON.stringify(this.models)) : '';
645
+ let models = this.models || this.models == 0 ? JSON.parse(JSON.stringify(this.models)) : '';
644
646
  if (typeof models === 'string' && models.includes(',')) {
645
647
  models = models.split(',');
646
648
  }