eoss-ui 0.8.41 → 0.8.43

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.
@@ -29337,8 +29337,8 @@ form_src_main.install = function (Vue) {
29337
29337
  };
29338
29338
 
29339
29339
  /* harmony default export */ var packages_form = (form_src_main);
29340
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=64fec1bc&
29341
- var mainvue_type_template_id_64fec1bc_render = function () {
29340
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=e87f2d9a&
29341
+ var mainvue_type_template_id_e87f2d9a_render = function () {
29342
29342
  var _vm = this
29343
29343
  var _h = _vm.$createElement
29344
29344
  var _c = _vm._self._c || _h
@@ -32274,6 +32274,7 @@ var mainvue_type_template_id_64fec1bc_render = function () {
32274
32274
  opinion: _vm.value,
32275
32275
  businessName: _vm.businessName,
32276
32276
  type: _vm.taskReadType,
32277
+ resetAppId: _vm.resetAppId,
32277
32278
  showTooltip: _vm.showTooltip,
32278
32279
  flowLabelConfig: _vm.flowLabelConfig,
32279
32280
  hideMessage: _vm.hideMessage,
@@ -32505,11 +32506,11 @@ var mainvue_type_template_id_64fec1bc_render = function () {
32505
32506
  )
32506
32507
  : _vm._e()
32507
32508
  }
32508
- var mainvue_type_template_id_64fec1bc_staticRenderFns = []
32509
- mainvue_type_template_id_64fec1bc_render._withStripped = true
32509
+ var mainvue_type_template_id_e87f2d9a_staticRenderFns = []
32510
+ mainvue_type_template_id_e87f2d9a_render._withStripped = true
32510
32511
 
32511
32512
 
32512
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=64fec1bc&
32513
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=e87f2d9a&
32513
32514
 
32514
32515
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=8458f882&
32515
32516
  var CommonOpinionsvue_type_template_id_8458f882_render = function () {
@@ -58992,6 +58993,7 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
58992
58993
  //
58993
58994
  //
58994
58995
  //
58996
+ //
58995
58997
 
58996
58998
 
58997
58999
 
@@ -61828,8 +61830,8 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
61828
61830
 
61829
61831
  var flow_src_main_component = normalizeComponent(
61830
61832
  packages_flow_src_mainvue_type_script_lang_js_,
61831
- mainvue_type_template_id_64fec1bc_render,
61832
- mainvue_type_template_id_64fec1bc_staticRenderFns,
61833
+ mainvue_type_template_id_e87f2d9a_render,
61834
+ mainvue_type_template_id_e87f2d9a_staticRenderFns,
61833
61835
  false,
61834
61836
  null,
61835
61837
  null,
@@ -97105,8 +97107,8 @@ select_ganged_src_main.install = function (Vue) {
97105
97107
  };
97106
97108
 
97107
97109
  /* harmony default export */ var select_ganged = (select_ganged_src_main);
97108
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=18a2e4a6&
97109
- var mainvue_type_template_id_18a2e4a6_render = function () {
97110
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=060f91c3&
97111
+ var mainvue_type_template_id_060f91c3_render = function () {
97110
97112
  var _vm = this
97111
97113
  var _h = _vm.$createElement
97112
97114
  var _c = _vm._self._c || _h
@@ -97116,16 +97118,29 @@ var mainvue_type_template_id_18a2e4a6_render = function () {
97116
97118
  {
97117
97119
  ref: "esSelector",
97118
97120
  staticClass: "es-selector",
97119
- class: { "is-button": _vm.button && !_vm.readonly },
97121
+ class: { "is-button": _vm.button && !_vm.isReadonly },
97122
+ on: {
97123
+ click: function ($event) {
97124
+ $event.stopPropagation()
97125
+ return _vm.handleClick($event)
97126
+ },
97127
+ },
97120
97128
  },
97121
97129
  [
97122
97130
  _vm.form
97123
97131
  ? [
97124
- _vm.button && !_vm.readonly
97132
+ _vm.button && !_vm.isReadonly
97125
97133
  ? _c(
97126
97134
  "el-button",
97127
97135
  _vm._b(
97128
- { on: { click: _vm.openDialog } },
97136
+ {
97137
+ on: {
97138
+ click: function ($event) {
97139
+ $event.stopPropagation()
97140
+ return _vm.openDialog($event)
97141
+ },
97142
+ },
97143
+ },
97129
97144
  "el-button",
97130
97145
  _vm.button,
97131
97146
  false
@@ -97140,13 +97155,13 @@ var mainvue_type_template_id_18a2e4a6_render = function () {
97140
97155
  2
97141
97156
  )
97142
97157
  : [
97143
- !(_vm.multiple && _vm.readonly)
97158
+ !(_vm.multiple && _vm.isReadonly)
97144
97159
  ? _c(
97145
97160
  "el-autocomplete",
97146
97161
  {
97147
97162
  attrs: {
97148
97163
  "value-key": "showname",
97149
- readonly: _vm.readonly,
97164
+ readonly: _vm.isReadonly || !this.isSearch,
97150
97165
  "fetch-suggestions": _vm.search,
97151
97166
  placeholder: _vm.placeholder,
97152
97167
  "trigger-on-focus": false,
@@ -97165,7 +97180,7 @@ var mainvue_type_template_id_18a2e4a6_render = function () {
97165
97180
  },
97166
97181
  },
97167
97182
  [
97168
- !_vm.readonly
97183
+ !_vm.isReadonly
97169
97184
  ? _c("el-button", {
97170
97185
  staticClass: "es-selector-btn",
97171
97186
  attrs: {
@@ -97193,7 +97208,7 @@ var mainvue_type_template_id_18a2e4a6_render = function () {
97193
97208
  ref: "tags",
97194
97209
  staticClass: "es-select__tags",
97195
97210
  class: {
97196
- "is-edit": !_vm.readonly,
97211
+ "is-edit": !_vm.isReadonly,
97197
97212
  "is-show": _vm.selected.length,
97198
97213
  },
97199
97214
  },
@@ -97205,7 +97220,7 @@ var mainvue_type_template_id_18a2e4a6_render = function () {
97205
97220
  attrs: {
97206
97221
  closable:
97207
97222
  !_vm.selectorDisabled &&
97208
- !_vm.readonly &&
97223
+ !_vm.isReadonly &&
97209
97224
  _vm.selected.length > _vm.min,
97210
97225
  type: "info",
97211
97226
  "disable-transitions": "",
@@ -97231,7 +97246,7 @@ var mainvue_type_template_id_18a2e4a6_render = function () {
97231
97246
  ],
97232
97247
  ]
97233
97248
  : _vm._e(),
97234
- !_vm.readonly
97249
+ !_vm.isReadonly
97235
97250
  ? _c(
97236
97251
  "es-dialog",
97237
97252
  {
@@ -97302,11 +97317,11 @@ var mainvue_type_template_id_18a2e4a6_render = function () {
97302
97317
  )
97303
97318
  : _vm._e()
97304
97319
  }
97305
- var mainvue_type_template_id_18a2e4a6_staticRenderFns = []
97306
- mainvue_type_template_id_18a2e4a6_render._withStripped = true
97320
+ var mainvue_type_template_id_060f91c3_staticRenderFns = []
97321
+ mainvue_type_template_id_060f91c3_render._withStripped = true
97307
97322
 
97308
97323
 
97309
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=18a2e4a6&
97324
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=060f91c3&
97310
97325
 
97311
97326
  // EXTERNAL MODULE: external "eoss-element/src/utils/clickoutside"
97312
97327
  var clickoutside_ = __webpack_require__(17);
@@ -97403,6 +97418,13 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
97403
97418
  //
97404
97419
  //
97405
97420
  //
97421
+ //
97422
+ //
97423
+ //
97424
+ //
97425
+ //
97426
+ //
97427
+ //
97406
97428
 
97407
97429
 
97408
97430
 
@@ -97552,7 +97574,10 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
97552
97574
  default: true
97553
97575
  },
97554
97576
  //弹窗关闭时是否销毁子组件
97555
- destroyOnClose: Boolean,
97577
+ destroyOnClose: {
97578
+ type: Boolean,
97579
+ default: true
97580
+ },
97556
97581
  //树结构标题
97557
97582
  treeTitle: String,
97558
97583
  //是否显示切换按钮
@@ -97560,7 +97585,12 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
97560
97585
  type: Boolean,
97561
97586
  default: true
97562
97587
  },
97563
- selection: [Array, String]
97588
+ selection: [Array, String],
97589
+ //输入框是否可搜索
97590
+ isSearch: {
97591
+ type: Boolean,
97592
+ default: true
97593
+ }
97564
97594
  },
97565
97595
  data: function data() {
97566
97596
  return {
@@ -97580,6 +97610,9 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
97580
97610
  },
97581
97611
 
97582
97612
  computed: {
97613
+ isReadonly: function isReadonly() {
97614
+ return this.readonly || (this.elForm || {}).readonly;
97615
+ },
97583
97616
  isRender: function isRender() {
97584
97617
  var useCaseCodes = utils_util.getStorage('useCaseCodes');
97585
97618
  if (useCaseCodes && this.useCaseCode) {
@@ -97667,11 +97700,6 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
97667
97700
  _this2.$refs.reference && (_this2.minWidth = _this2.$refs.reference.$el.children[0].offsetWidth);
97668
97701
  });
97669
97702
  }
97670
- if (this.$refs.openDialog) {
97671
- this.$refs.openDialog.$el.parentNode.addEventListener('click', function () {
97672
- _this2.openDialog();
97673
- });
97674
- }
97675
97703
  },
97676
97704
 
97677
97705
  methods: {
@@ -97702,8 +97730,14 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
97702
97730
  getValueKey: function getValueKey(obj) {
97703
97731
  return utils_util.isObject(obj) ? obj[this.valueKey] : obj;
97704
97732
  },
97733
+ handleClick: function handleClick() {
97734
+ console.log('handleClick');
97735
+ if (!this.isSearch) {
97736
+ this.openDialog();
97737
+ }
97738
+ },
97705
97739
  openDialog: function openDialog() {
97706
- if (!this.selectorDisabled && !this.readonly && this.select) {
97740
+ if (!this.selectorDisabled && !this.isReadonly && this.select) {
97707
97741
  this.visible = true;
97708
97742
  }
97709
97743
  },
@@ -97869,7 +97903,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
97869
97903
  }
97870
97904
  }
97871
97905
  if (height) {
97872
- if (_this4.readonly) {
97906
+ if (_this4.isReadonly) {
97873
97907
  _this4.$refs.reference.style.height = height;
97874
97908
  } else {
97875
97909
  var inputChildNodes = _this4.$refs.reference.$el.childNodes;
@@ -97914,8 +97948,8 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
97914
97948
 
97915
97949
  var selector_src_main_component = normalizeComponent(
97916
97950
  packages_selector_src_mainvue_type_script_lang_js_,
97917
- mainvue_type_template_id_18a2e4a6_render,
97918
- mainvue_type_template_id_18a2e4a6_staticRenderFns,
97951
+ mainvue_type_template_id_060f91c3_render,
97952
+ mainvue_type_template_id_060f91c3_staticRenderFns,
97919
97953
  false,
97920
97954
  null,
97921
97955
  null,
@@ -110408,8 +110442,8 @@ form_src_table.install = function (Vue) {
110408
110442
  };
110409
110443
 
110410
110444
  /* harmony default export */ var table_form = (form_src_table);
110411
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=2e5de86a&
110412
- var mainvue_type_template_id_2e5de86a_render = function () {
110445
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=7388a79d&
110446
+ var mainvue_type_template_id_7388a79d_render = function () {
110413
110447
  var _vm = this
110414
110448
  var _h = _vm.$createElement
110415
110449
  var _c = _vm._self._c || _h
@@ -110792,11 +110826,11 @@ var mainvue_type_template_id_2e5de86a_render = function () {
110792
110826
  )
110793
110827
  : _vm._e()
110794
110828
  }
110795
- var mainvue_type_template_id_2e5de86a_staticRenderFns = []
110796
- mainvue_type_template_id_2e5de86a_render._withStripped = true
110829
+ var mainvue_type_template_id_7388a79d_staticRenderFns = []
110830
+ mainvue_type_template_id_7388a79d_render._withStripped = true
110797
110831
 
110798
110832
 
110799
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=2e5de86a&
110833
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=7388a79d&
110800
110834
 
110801
110835
  // CONCATENATED MODULE: ./packages/upload/src/picture.js
110802
110836
  /* harmony default export */ var picture = ({
@@ -111970,6 +112004,7 @@ var mainvue_type_script_lang_js_props;
111970
112004
  handleSort: function handleSort(files) {
111971
112005
  var _this10 = this;
111972
112006
 
112007
+ console.log('files', files);
111973
112008
  if (this.isSort) {
111974
112009
  if (this.onSort) {
111975
112010
  this.onSort(files);
@@ -112063,7 +112098,18 @@ var mainvue_type_script_lang_js_props;
112063
112098
  this.onRemove && this.onRemove(file, fileList);
112064
112099
  },
112065
112100
  handleError: function handleError(err, file, fileList) {
112066
- var errorMsg = err.response && err.response.data && err.response.data.msg;
112101
+ console.log('err', err);
112102
+ console.log('type', typeof err === 'undefined' ? 'undefined' : upload_src_mainvue_type_script_lang_js_typeof(err));
112103
+ var errorMsg = '';
112104
+ try {
112105
+ var raw = err.message || '';
112106
+ var jsonStr = raw.replace(/^Error:\s*/, '');
112107
+ var parsed = JSON.parse(jsonStr);
112108
+ errorMsg = parsed.msg || parsed.message || '';
112109
+ } catch (e) {
112110
+ errorMsg = err.message || err.msg || '上传失败:请联系管理员';
112111
+ }
112112
+ errorMsg = errorMsg || err.msg || err.message || '上传失败:请联系管理员';
112067
112113
  if (this.showMessage.error) {
112068
112114
  if (this.dangerouslyUseHTMLString) {
112069
112115
  this.$alert(errorMsg ? errorMsg : err.msg ? err.msg : '上传失败:请联系管理员', '提示', {
@@ -112413,8 +112459,8 @@ var mainvue_type_script_lang_js_props;
112413
112459
 
112414
112460
  var upload_src_main_component = normalizeComponent(
112415
112461
  packages_upload_src_mainvue_type_script_lang_js_,
112416
- mainvue_type_template_id_2e5de86a_render,
112417
- mainvue_type_template_id_2e5de86a_staticRenderFns,
112462
+ mainvue_type_template_id_7388a79d_render,
112463
+ mainvue_type_template_id_7388a79d_staticRenderFns,
112418
112464
  false,
112419
112465
  null,
112420
112466
  null,
@@ -112917,7 +112963,7 @@ if (typeof window !== 'undefined' && window.Vue) {
112917
112963
  }
112918
112964
 
112919
112965
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
112920
- version: '0.8.41',
112966
+ version: '0.8.43',
112921
112967
  install: install,
112922
112968
  Archives: archives,
112923
112969
  Button: packages_button,
package/lib/flow.js CHANGED
@@ -4878,7 +4878,7 @@ module.exports = require("vuedraggable");
4878
4878
  // ESM COMPAT FLAG
4879
4879
  __webpack_require__.r(__webpack_exports__);
4880
4880
 
4881
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=64fec1bc&
4881
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=e87f2d9a&
4882
4882
  var render = function () {
4883
4883
  var _vm = this
4884
4884
  var _h = _vm.$createElement
@@ -7815,6 +7815,7 @@ var render = function () {
7815
7815
  opinion: _vm.value,
7816
7816
  businessName: _vm.businessName,
7817
7817
  type: _vm.taskReadType,
7818
+ resetAppId: _vm.resetAppId,
7818
7819
  showTooltip: _vm.showTooltip,
7819
7820
  flowLabelConfig: _vm.flowLabelConfig,
7820
7821
  hideMessage: _vm.hideMessage,
@@ -8050,7 +8051,7 @@ var staticRenderFns = []
8050
8051
  render._withStripped = true
8051
8052
 
8052
8053
 
8053
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=64fec1bc&
8054
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=e87f2d9a&
8054
8055
 
8055
8056
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
8056
8057
  var regenerator_ = __webpack_require__(4);
@@ -34391,6 +34392,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
34391
34392
  //
34392
34393
  //
34393
34394
  //
34395
+ //
34394
34396
 
34395
34397
 
34396
34398