eoss-ui 0.6.70 → 0.6.71

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
@@ -9575,8 +9575,8 @@ var online_component = Object(componentNormalizer["a" /* default */])(
9575
9575
  )
9576
9576
 
9577
9577
  /* harmony default export */ var online = (online_component.exports);
9578
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=template&id=2928af7a&
9579
- var searchvue_type_template_id_2928af7a_render = function () {
9578
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=template&id=46cd8f32&
9579
+ var searchvue_type_template_id_46cd8f32_render = function () {
9580
9580
  var _vm = this
9581
9581
  var _h = _vm.$createElement
9582
9582
  var _c = _vm._self._c || _h
@@ -9969,7 +9969,7 @@ var searchvue_type_template_id_2928af7a_render = function () {
9969
9969
  _c(
9970
9970
  "es-dialog",
9971
9971
  {
9972
- attrs: { title: _vm.title, visible: _vm.visible, size: "lg" },
9972
+ attrs: { title: _vm.title, visible: _vm.visible, size: "max" },
9973
9973
  on: {
9974
9974
  "update:visible": function ($event) {
9975
9975
  _vm.visible = $event
@@ -9991,11 +9991,11 @@ var searchvue_type_template_id_2928af7a_render = function () {
9991
9991
  1
9992
9992
  )
9993
9993
  }
9994
- var searchvue_type_template_id_2928af7a_staticRenderFns = []
9995
- searchvue_type_template_id_2928af7a_render._withStripped = true
9994
+ var searchvue_type_template_id_46cd8f32_staticRenderFns = []
9995
+ searchvue_type_template_id_46cd8f32_render._withStripped = true
9996
9996
 
9997
9997
 
9998
- // CONCATENATED MODULE: ./packages/main/src/public/search.vue?vue&type=template&id=2928af7a&
9998
+ // CONCATENATED MODULE: ./packages/main/src/public/search.vue?vue&type=template&id=46cd8f32&
9999
9999
 
10000
10000
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=script&lang=js&
10001
10001
  var searchvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -10320,16 +10320,16 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
10320
10320
  this.isLoading = false;
10321
10321
  this.types[i].records = this.searchData(this.menus, keyWords);
10322
10322
  this.types[i].totalCount = this.types[i].records.length;
10323
- this.types[i].pageCount = Math.ceil(this.types[i].records.length / this.pageSize);
10324
- this.types[i].pageNum = 0;
10323
+ this.types[i].pageCount = 1;
10324
+ this.types[i].pageNum = 1;
10325
10325
  this.$set(this.loadings, item.id || String(i), false);
10326
10326
  this.$set(this.noMore, item.id || String(i), true);
10327
10327
  } else if (item.name == '应用' && this.apps.length) {
10328
10328
  this.isLoading = false;
10329
10329
  this.types[i].records = this.searchData(this.apps, keyWords);
10330
10330
  this.types[i].totalCount = this.types[i].records.length;
10331
- this.types[i].pageCount = Math.ceil(this.types[i].records.length / this.pageSize);
10332
- this.types[i].pageNum = 0;
10331
+ this.types[i].pageCount = 1;
10332
+ this.types[i].pageNum = 1;
10333
10333
  this.$set(this.loadings, item.id || String(i), false);
10334
10334
  this.$set(this.noMore, item.id || String(i), true);
10335
10335
  } else if (item.dataRequestUrl) {
@@ -10458,8 +10458,8 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
10458
10458
 
10459
10459
  var search_component = Object(componentNormalizer["a" /* default */])(
10460
10460
  public_searchvue_type_script_lang_js_,
10461
- searchvue_type_template_id_2928af7a_render,
10462
- searchvue_type_template_id_2928af7a_staticRenderFns,
10461
+ searchvue_type_template_id_46cd8f32_render,
10462
+ searchvue_type_template_id_46cd8f32_staticRenderFns,
10463
10463
  false,
10464
10464
  null,
10465
10465
  null,
package/lib/selector.js CHANGED
@@ -4119,7 +4119,7 @@ module.exports = require("axios");
4119
4119
  // ESM COMPAT FLAG
4120
4120
  __webpack_require__.r(__webpack_exports__);
4121
4121
 
4122
- // 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=c339b1fa&
4122
+ // 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=03999292&
4123
4123
  var render = function () {
4124
4124
  var _vm = this
4125
4125
  var _h = _vm.$createElement
@@ -4229,13 +4229,9 @@ var render = function () {
4229
4229
  _vm._v(
4230
4230
  "\n " +
4231
4231
  _vm._s(
4232
- _vm.isObject(
4232
+ _vm.getLabel(
4233
4233
  _vm.selected[0]
4234
4234
  )
4235
- ? _vm.selected[0][
4236
- _vm.labelKey
4237
- ]
4238
- : _vm.selected[0]
4239
4235
  ) +
4240
4236
  "\n "
4241
4237
  ),
@@ -4598,7 +4594,13 @@ var render = function () {
4598
4594
  },
4599
4595
  [
4600
4596
  _c("span", [
4601
- _vm._v(_vm._s(item[_vm.labelKey])),
4597
+ _vm._v(
4598
+ "\n " +
4599
+ _vm._s(_vm.getDep(item)) +
4600
+ "\n " +
4601
+ _vm._s(item[_vm.labelKey]) +
4602
+ "\n "
4603
+ ),
4602
4604
  ]),
4603
4605
  ]
4604
4606
  )
@@ -4696,7 +4698,7 @@ var staticRenderFns = []
4696
4698
  render._withStripped = true
4697
4699
 
4698
4700
 
4699
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=c339b1fa&
4701
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=03999292&
4700
4702
 
4701
4703
  // EXTERNAL MODULE: ./src/utils/util.js
4702
4704
  var util = __webpack_require__(0);
@@ -4933,6 +4935,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
4933
4935
  //
4934
4936
  //
4935
4937
  //
4938
+ //
4936
4939
 
4937
4940
 
4938
4941
 
@@ -5027,7 +5030,14 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
5027
5030
  type: [String, Number],
5028
5031
  default: -1
5029
5032
  },
5033
+ //是否显示搜索框
5030
5034
  filterable: Boolean,
5035
+ //搜索列表是否显示部门信息
5036
+ showFilterListDep: {
5037
+ type: Boolean,
5038
+ default: true
5039
+ },
5040
+ //是否根据搜索值创建新的数据
5031
5041
  createable: Boolean,
5032
5042
  showButton: Boolean,
5033
5043
  button: Object,
@@ -5212,8 +5222,12 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
5212
5222
  }
5213
5223
  });
5214
5224
  },
5215
- isObject: function isObject(obj) {
5216
- return util["a" /* default */].isObject(obj);
5225
+ getDep: function getDep(res) {
5226
+ if (!this.showFilterListDep) {
5227
+ return '';
5228
+ }
5229
+ var attr = res.attr ? JSON.parse(res.attr) : null;
5230
+ return attr && attr.depShortName ? '[' + attr.depShortName + ']' : '';
5217
5231
  },
5218
5232
  getValueKey: function getValueKey(obj) {
5219
5233
  return util["a" /* default */].isObject(obj) ? obj[this.valueKey] : obj;
@@ -5388,8 +5402,10 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
5388
5402
  var tag = '';
5389
5403
  if (this.mix) {
5390
5404
  tag = util["a" /* default */].getTypeName(res.stype);
5405
+ } else if (this.showFilterListDep) {
5406
+ tag = this.getDep(res);
5391
5407
  }
5392
- return tag + (res[this.labelKey] ? res[this.labelKey] : res.label || res[this.valueKey]);
5408
+ return tag + (typeof res == 'string' ? res : res[this.labelKey] ? res[this.labelKey] : res.label || res[this.valueKey]);
5393
5409
  }
5394
5410
  },
5395
5411
  beforeDestroy: function beforeDestroy() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.6.70",
3
+ "version": "0.6.71",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
Binary file
@@ -1092,7 +1092,7 @@ export default {
1092
1092
  return {
1093
1093
  styles: {},
1094
1094
  optionsKey: 0,
1095
- showCirculate: false,
1095
+ showCirculate: undefined,
1096
1096
  circulateForm: { nextNodeId: '111' },
1097
1097
  userModel: {},
1098
1098
  simpleTips: true,
@@ -1281,15 +1281,17 @@ export default {
1281
1281
  mounted() {
1282
1282
  this.businessIds = this.businessId;
1283
1283
  this.nextNode.nextNodeId = this.nextNodeId;
1284
- this.getInfo();
1284
+ if(!this.isFlow){
1285
+ this.getInfo();
1286
+ }
1285
1287
  },
1286
1288
  watch: {
1287
1289
  isCirculate: {
1288
1290
  handler(val) {
1289
- this.showCirculate = val;
1290
- if (!val) {
1291
+ if (!val && this.showCirculate != undefined) {
1291
1292
  this.getInfo();
1292
1293
  }
1294
+ this.showCirculate = val;
1293
1295
  },
1294
1296
  deep: true,
1295
1297
  immediate: true
Binary file
@@ -131,7 +131,7 @@
131
131
  </el-tab-pane>
132
132
  </template>
133
133
  </el-tabs>
134
- <es-dialog :title="title" :visible.sync="visible" size="lg">
134
+ <es-dialog :title="title" :visible.sync="visible" size="max">
135
135
  <iframe width="100%" height="100%" frameborder="0" :src="url"></iframe>
136
136
  </es-dialog>
137
137
  </div>
@@ -325,20 +325,16 @@ export default {
325
325
  this.isLoading = false;
326
326
  this.types[i].records = this.searchData(this.menus, keyWords);
327
327
  this.types[i].totalCount = this.types[i].records.length;
328
- this.types[i].pageCount = Math.ceil(
329
- this.types[i].records.length / this.pageSize
330
- );
331
- this.types[i].pageNum = 0;
328
+ this.types[i].pageCount = 1;
329
+ this.types[i].pageNum = 1;
332
330
  this.$set(this.loadings, item.id || String(i), false);
333
331
  this.$set(this.noMore, item.id || String(i), true);
334
332
  } else if (item.name == '应用' && this.apps.length) {
335
333
  this.isLoading = false;
336
334
  this.types[i].records = this.searchData(this.apps, keyWords);
337
335
  this.types[i].totalCount = this.types[i].records.length;
338
- this.types[i].pageCount = Math.ceil(
339
- this.types[i].records.length / this.pageSize
340
- );
341
- this.types[i].pageNum = 0;
336
+ this.types[i].pageCount = 1;
337
+ this.types[i].pageNum = 1;
342
338
  this.$set(this.loadings, item.id || String(i), false);
343
339
  this.$set(this.noMore, item.id || String(i), true);
344
340
  } else if (item.dataRequestUrl) {
@@ -39,9 +39,7 @@
39
39
  @close="deleteTag($event, selected[0])"
40
40
  >
41
41
  <span class="el-select__tags-text">
42
- {{
43
- isObject(selected[0]) ? selected[0][labelKey] : selected[0]
44
- }}
42
+ {{ getLabel(selected[0]) }}
45
43
  </span>
46
44
  </el-tag>
47
45
  <el-tag
@@ -181,7 +179,10 @@
181
179
  class="es-selector-dropdown-item"
182
180
  :class="{ 'es-selected': item.selected }"
183
181
  >
184
- <span>{{ item[labelKey] }}</span>
182
+ <span>
183
+ {{ getDep(item) }}
184
+ {{ item[labelKey] }}
185
+ </span>
185
186
  </li>
186
187
  </el-scrollbar>
187
188
  <p v-if="options.length == 0" class="el-select-dropdown__empty">
@@ -316,7 +317,14 @@ export default {
316
317
  type: [String, Number],
317
318
  default: -1
318
319
  },
320
+ //是否显示搜索框
319
321
  filterable: Boolean,
322
+ //搜索列表是否显示部门信息
323
+ showFilterListDep: {
324
+ type: Boolean,
325
+ default: true
326
+ },
327
+ //是否根据搜索值创建新的数据
320
328
  createable: Boolean,
321
329
  showButton: Boolean,
322
330
  button: Object,
@@ -503,8 +511,12 @@ export default {
503
511
  }
504
512
  });
505
513
  },
506
- isObject(obj) {
507
- return util.isObject(obj);
514
+ getDep(res) {
515
+ if (!this.showFilterListDep) {
516
+ return '';
517
+ }
518
+ const attr = res.attr ? JSON.parse(res.attr) : null;
519
+ return attr && attr.depShortName ? `[${attr.depShortName}]` : '';
508
520
  },
509
521
  getValueKey(obj) {
510
522
  return util.isObject(obj) ? obj[this.valueKey] : obj;
@@ -692,10 +704,14 @@ export default {
692
704
  let tag = '';
693
705
  if (this.mix) {
694
706
  tag = util.getTypeName(res.stype);
707
+ } else if (this.showFilterListDep) {
708
+ tag = this.getDep(res);
695
709
  }
696
710
  return (
697
711
  tag +
698
- (res[this.labelKey]
712
+ (typeof res == 'string'
713
+ ? res
714
+ : res[this.labelKey]
699
715
  ? res[this.labelKey]
700
716
  : res.label || res[this.valueKey])
701
717
  );
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.6.70',
128
+ version: '0.6.71',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,
package/lib/.DS_Store DELETED
Binary file