eoss-ui 0.7.87 → 0.7.89

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/main.js CHANGED
@@ -5261,7 +5261,7 @@ module.exports = function (css) {
5261
5261
  // ESM COMPAT FLAG
5262
5262
  __webpack_require__.r(__webpack_exports__);
5263
5263
 
5264
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=48272c28&
5264
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=d38ebb62&
5265
5265
  var render = function () {
5266
5266
  var _vm = this
5267
5267
  var _h = _vm.$createElement
@@ -5331,6 +5331,9 @@ var render = function () {
5331
5331
  on: {
5332
5332
  "chang-layout": _vm.changLayout,
5333
5333
  "bus-emit": _vm.busEmit,
5334
+ getOriginParentMenu: function ($event) {
5335
+ _vm.$emit("getOriginParentMenu", $event)
5336
+ },
5334
5337
  },
5335
5338
  },
5336
5339
  "main-default",
@@ -5409,7 +5412,7 @@ var staticRenderFns = []
5409
5412
  render._withStripped = true
5410
5413
 
5411
5414
 
5412
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=48272c28&
5415
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=d38ebb62&
5413
5416
 
5414
5417
  // EXTERNAL MODULE: ./src/config/image.js
5415
5418
  var config_image = __webpack_require__(19);
@@ -19508,8 +19511,8 @@ var simplicityTop_component = Object(componentNormalizer["a" /* default */])(
19508
19511
  )
19509
19512
 
19510
19513
  /* harmony default export */ var simplicityTop = (simplicityTop_component.exports);
19511
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=0c452dea&
19512
- var defaultvue_type_template_id_0c452dea_render = function () {
19514
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=b6763862&
19515
+ var defaultvue_type_template_id_b6763862_render = function () {
19513
19516
  var _vm = this
19514
19517
  var _h = _vm.$createElement
19515
19518
  var _c = _vm._self._c || _h
@@ -20060,11 +20063,11 @@ var defaultvue_type_template_id_0c452dea_render = function () {
20060
20063
  1
20061
20064
  )
20062
20065
  }
20063
- var defaultvue_type_template_id_0c452dea_staticRenderFns = []
20064
- defaultvue_type_template_id_0c452dea_render._withStripped = true
20066
+ var defaultvue_type_template_id_b6763862_staticRenderFns = []
20067
+ defaultvue_type_template_id_b6763862_render._withStripped = true
20065
20068
 
20066
20069
 
20067
- // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=0c452dea&
20070
+ // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=b6763862&
20068
20071
 
20069
20072
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=4160a4c1&
20070
20073
  var userinfovue_type_template_id_4160a4c1_render = function () {
@@ -22064,12 +22067,12 @@ var log = util["a" /* default */].getParams('console');
22064
22067
  this.isLoadHomePage = false;
22065
22068
  }
22066
22069
  this.isHeader = params.header;
22067
-
22068
22070
  this.doorIndex = sessionStorage.getItem('doorIndex');
22069
22071
  },
22070
22072
  mounted: function mounted() {
22071
22073
  this.handleListener();
22072
22074
  util["a" /* default */].win.addEventListener('popstate', this.stateHandle, false);
22075
+ // this.
22073
22076
  },
22074
22077
 
22075
22078
  methods: {
@@ -22655,6 +22658,7 @@ var log = util["a" /* default */].getParams('console');
22655
22658
  } else {
22656
22659
  this.menu = res[0].children;
22657
22660
  this.title = res[0].text;
22661
+ this.$emit('getOriginParentMenu', { title: res[0].text, id: res[0].id });
22658
22662
  }
22659
22663
  if (!this.isDefault || this.isDefault && !this.homePage) {
22660
22664
  this.active = this.getFirst(this.menu[0]).id;
@@ -23148,7 +23152,7 @@ var log = util["a" /* default */].getParams('console');
23148
23152
  var _this9 = this;
23149
23153
 
23150
23154
  this.navIds = this.getId(this.menus, page);
23151
- console.log(page);
23155
+ console.log('handleJump page ', page);
23152
23156
  var prevPage = sessionStorage.getItem('jump');
23153
23157
  sessionStorage.setItem('jump', page);
23154
23158
  if (res) {
@@ -23506,8 +23510,8 @@ var log = util["a" /* default */].getParams('console');
23506
23510
 
23507
23511
  var default_component = Object(componentNormalizer["a" /* default */])(
23508
23512
  src_defaultvue_type_script_lang_js_,
23509
- defaultvue_type_template_id_0c452dea_render,
23510
- defaultvue_type_template_id_0c452dea_staticRenderFns,
23513
+ defaultvue_type_template_id_b6763862_render,
23514
+ defaultvue_type_template_id_b6763862_staticRenderFns,
23511
23515
  false,
23512
23516
  null,
23513
23517
  null,
@@ -23596,6 +23600,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
23596
23600
  //
23597
23601
  //
23598
23602
  //
23603
+ //
23599
23604
 
23600
23605
 
23601
23606
 
package/lib/select.js CHANGED
@@ -4716,7 +4716,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
4716
4716
  },
4717
4717
  symbol: {
4718
4718
  type: String,
4719
- default: ''
4719
+ default: ','
4720
4720
  },
4721
4721
  plain: Boolean,
4722
4722
  where: Object,
@@ -5185,8 +5185,12 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
5185
5185
  if (!this.hide) {
5186
5186
  if (this.readonly) {
5187
5187
  var dom = [];
5188
- if (Array.isArray(this.models)) {
5189
- dom = this.models.map(function (item) {
5188
+ var models = JSON.parse(JSON.stringify(this.models));
5189
+ if (models.includes(',')) {
5190
+ models = models.split(',');
5191
+ }
5192
+ if (Array.isArray(models)) {
5193
+ dom = models.map(function (item) {
5190
5194
  if (util["a" /* default */].isObject(item)) {
5191
5195
  if (!item[_this8.label] && !item.label) {
5192
5196
  return _this8.getLabel(value[_this8.valKey], data);
@@ -5195,15 +5199,16 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
5195
5199
  }
5196
5200
  return _this8.getLabel(item, _this8.results);
5197
5201
  });
5198
- } else if (util["a" /* default */].isObject(this.models)) {
5199
- if (!this.models[this.label] && !this.models.label) {
5200
- dom = [this.getLabel(this.models[this.valKey], this.results)];
5202
+ } else if (util["a" /* default */].isObject(models)) {
5203
+ if (!models[this.label] && !models.label) {
5204
+ dom = [this.getLabel(models[this.valKey], this.results)];
5201
5205
  } else {
5202
- dom = [this.models[this.label] || this.models.label];
5206
+ dom = [models[this.label] || models.label];
5203
5207
  }
5204
5208
  } else {
5205
- dom = [this.getLabel(this.models, this.results)];
5209
+ dom = [this.getLabel(models, this.results)];
5206
5210
  }
5211
+ console.log('dom', dom);
5207
5212
  return h('div', {
5208
5213
  class: [{
5209
5214
  'es-plain': this.plain,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.7.87",
3
+ "version": "0.7.89",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -660,6 +660,7 @@ export default {
660
660
  },
661
661
  isForm() {
662
662
  let type = this.type ? this.type.toLowerCase() : '';
663
+ console.log('type', type);
663
664
  let flag =
664
665
  (this.form &&
665
666
  [
@@ -799,6 +800,7 @@ export default {
799
800
  return Array.isArray(types) ? types.includes(type) : type == types;
800
801
  },
801
802
  getOptions(config) {
803
+ console.log('getOptions config', config);
802
804
  let option = config && config[this.field || this.prop];
803
805
  return option && typeof option == 'object'
804
806
  ? { ...this.formOption, ...option }
@@ -816,14 +818,19 @@ export default {
816
818
  const field = this.field || this.prop;
817
819
  let data = this.option;
818
820
  let str = '';
819
- if (util.isObject(rows[field])) {
821
+ console.log('rows[field]', rows[field]);
822
+ let column = rows[field]?JSON.parse(JSON.stringify(rows[field])):'';
823
+ if(column.includes(',')){
824
+ column = column.split(',');
825
+ }
826
+ if (util.isObject(column)) {
820
827
  str =
821
- rows[field][this.labelKey] ||
822
- rows[field]['name'] ||
823
- rows[field]['label'] ||
824
- rows[field]['shortName'];
825
- } else if (Array.isArray(rows[field])) {
826
- const vals = rows[field].map((item) => {
828
+ column[this.labelKey] ||
829
+ column['name'] ||
830
+ column['label'] ||
831
+ column['shortName'];
832
+ } else if (Array.isArray(column)) {
833
+ const vals = column.map((item) => {
827
834
  if (util.isObject(item)) {
828
835
  return (
829
836
  item[this.labelKey] ||
@@ -838,21 +845,21 @@ export default {
838
845
  return item;
839
846
  }
840
847
  });
841
- str = vals.join(this.symbol ? this.symbol : '-');
848
+ str = vals.join(this.symbol ? this.symbol : ',');
842
849
  } else {
843
850
  if (this.valueToString) {
844
- const vals = rows[field].split(',').map((item) => {
851
+ const vals = column.split(',').map((item) => {
845
852
  if (data && data.length && util.isObject(data[0])) {
846
853
  return this.getLabel(data, item);
847
854
  }
848
855
  return item;
849
856
  });
850
- str = vals.join(this.symbol ? this.symbol : '-');
857
+ str = vals.join(this.symbol ? this.symbol : ',');
851
858
  } else {
852
859
  if (data && data.length && util.isObject(data[0])) {
853
- str = this.getLabel(data, rows[field]);
860
+ str = this.getLabel(data, column);
854
861
  } else {
855
- str = rows[field];
862
+ str = column;
856
863
  }
857
864
  }
858
865
  }