eoss-ui 0.5.84 → 0.5.85

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.
Files changed (77) hide show
  1. package/lib/button-group.js +17 -16
  2. package/lib/button.js +17 -16
  3. package/lib/checkbox-group.js +17 -16
  4. package/lib/config/api.js +3 -2
  5. package/lib/data-table-form.js +17 -16
  6. package/lib/data-table.js +417 -262
  7. package/lib/date-picker.js +17 -16
  8. package/lib/dialog.js +17 -16
  9. package/lib/eoss-ui.common.js +6189 -13674
  10. package/lib/flow-group.js +17 -16
  11. package/lib/flow-list.js +17 -16
  12. package/lib/flow.js +17 -16
  13. package/lib/form.js +5647 -13458
  14. package/lib/handle-user.js +17 -16
  15. package/lib/handler.js +23 -18
  16. package/lib/icon.js +17 -16
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +17 -16
  19. package/lib/input.js +17 -16
  20. package/lib/login.js +28 -19
  21. package/lib/main.js +579 -418
  22. package/lib/nav.js +17 -16
  23. package/lib/notify.js +3 -2
  24. package/lib/page.js +17 -16
  25. package/lib/pagination.js +17 -16
  26. package/lib/player.js +17 -16
  27. package/lib/qr-code.js +17 -16
  28. package/lib/radio-group.js +17 -16
  29. package/lib/retrial-auth.js +17 -16
  30. package/lib/select-ganged.js +17 -16
  31. package/lib/select.js +18 -17
  32. package/lib/selector-panel.js +17 -16
  33. package/lib/selector.js +17 -16
  34. package/lib/sizer.js +17 -16
  35. package/lib/steps.js +17 -16
  36. package/lib/switch.js +17 -16
  37. package/lib/table-form.js +17 -16
  38. package/lib/tabs.js +17 -16
  39. package/lib/theme-chalk/calendar.css +1 -1
  40. package/lib/theme-chalk/data-table.css +1 -1
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/theme-chalk/main.css +1 -1
  43. package/lib/theme-chalk/simplicity.css +1 -1
  44. package/lib/tips.js +17 -16
  45. package/lib/tree-group.js +17 -16
  46. package/lib/tree.js +17 -16
  47. package/lib/upload.js +30 -29
  48. package/lib/utils/util.js +14 -14
  49. package/lib/wujie.js +17 -16
  50. package/lib/wxlogin.js +17 -16
  51. package/package.json +2 -2
  52. package/packages/data-table/src/children.vue +3 -2
  53. package/packages/data-table/src/column.vue +2 -4
  54. package/packages/data-table/src/main.vue +150 -66
  55. package/packages/data-table/src/sizer.vue +51 -22
  56. package/packages/form/src/main.vue +119 -2103
  57. package/packages/handler/src/main.vue +5 -0
  58. package/packages/login/src/main.vue +12 -1
  59. package/packages/main/src/default/index.vue +35 -54
  60. package/packages/main/src/public/search.vue +138 -31
  61. package/packages/main/src/simplicity/apps.vue +12 -0
  62. package/packages/main/src/simplicity/handler.vue +0 -2
  63. package/packages/main/src/simplicity/index.vue +68 -32
  64. package/packages/select/src/main.vue +1 -1
  65. package/packages/theme-chalk/lib/calendar.css +1 -1
  66. package/packages/theme-chalk/lib/data-table.css +1 -1
  67. package/packages/theme-chalk/lib/index.css +1 -1
  68. package/packages/theme-chalk/lib/main.css +1 -1
  69. package/packages/theme-chalk/lib/simplicity.css +1 -1
  70. package/packages/theme-chalk/src/calendar.scss +3 -3
  71. package/packages/theme-chalk/src/data-table.scss +12 -0
  72. package/packages/theme-chalk/src/main.scss +2 -1
  73. package/packages/theme-chalk/src/simplicity.scss +15 -2
  74. package/packages/upload/src/main.vue +16 -12
  75. package/src/config/api.js +3 -2
  76. package/src/index.js +1 -1
  77. package/src/utils/util.js +2 -2
package/lib/data-table.js CHANGED
@@ -2022,13 +2022,13 @@ var indexOfObj = function indexOfObj(arry, target, key) {
2022
2022
  if (key) {
2023
2023
  if (key.indexOf(',') > -1) {
2024
2024
  var keys = key.split(',');
2025
- for (var _i7 = 0; _i7 < keys.length; _i7++) {
2026
- var k = keys[_i7];
2027
- if (typeof target === 'string' && arry[_i7][k] === target) {
2028
- return _i7;
2025
+ for (var n = 0; n < keys.length; n++) {
2026
+ var k = keys[n];
2027
+ if (typeof target === 'string' && arry[i][k] === target) {
2028
+ return i;
2029
2029
  }
2030
- if (target[k] === arry[_i7][k]) {
2031
- return _i7;
2030
+ if (target[k] === arry[i][k]) {
2031
+ return i;
2032
2032
  }
2033
2033
  }
2034
2034
  } else {
@@ -2771,22 +2771,22 @@ var setStorage = function setStorage(_ref14) {
2771
2771
  localStorage.setItem(key[i], value);
2772
2772
  }
2773
2773
  } else {
2774
- for (var _i8 in key) {
2775
- var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
2776
- localStorage.setItem(_i8, val);
2774
+ for (var _i7 in key) {
2775
+ var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
2776
+ localStorage.setItem(_i7, val);
2777
2777
  }
2778
2778
  }
2779
2779
  } else {
2780
2780
  if (typeof key === 'string') {
2781
2781
  sessionStorage.setItem(key, value);
2782
2782
  } else if (Array.isArray(key)) {
2783
- for (var _i9 in key) {
2784
- sessionStorage.setItem(key[_i9], value);
2783
+ for (var _i8 in key) {
2784
+ sessionStorage.setItem(key[_i8], value);
2785
2785
  }
2786
2786
  } else {
2787
- for (var _i10 in key) {
2788
- var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
2789
- sessionStorage.setItem(_i10, _val);
2787
+ for (var _i9 in key) {
2788
+ var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
2789
+ sessionStorage.setItem(_i9, _val);
2790
2790
  }
2791
2791
  }
2792
2792
  }
@@ -3435,7 +3435,7 @@ var sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
3435
3435
  var ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
3436
3436
  var ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
3437
3437
  // 框架 - 搜索
3438
- var searchType = '/oceanSearch/v2/search/catalog'; // 搜索分类类型
3438
+ var searchType = '/oceansearch/v2/search/catalog'; // 搜索分类类型
3439
3439
 
3440
3440
  // 附件相关
3441
3441
  var getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
@@ -3611,7 +3611,8 @@ var sendDelete = '/notify2/notifySendRecord/deleteById';
3611
3611
  var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
3612
3612
 
3613
3613
  // 表单结构
3614
- var formContents = '/config/admin/online/onlineForm/render';
3614
+
3615
+ var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
3615
3616
 
3616
3617
  /***/ }),
3617
3618
  /* 2 */
@@ -3954,8 +3955,8 @@ module.exports = require("vue");
3954
3955
  // ESM COMPAT FLAG
3955
3956
  __webpack_require__.r(__webpack_exports__);
3956
3957
 
3957
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=3a307e68&
3958
- var mainvue_type_template_id_3a307e68_render = function () {
3958
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=d6bac15c&
3959
+ var mainvue_type_template_id_d6bac15c_render = function () {
3959
3960
  var _vm = this
3960
3961
  var _h = _vm.$createElement
3961
3962
  var _c = _vm._self._c || _h
@@ -4036,7 +4037,7 @@ var mainvue_type_template_id_3a307e68_render = function () {
4036
4037
  "es-table-border-none": _vm.border == "none",
4037
4038
  "es-table-plus": _vm.mode == "plus",
4038
4039
  },
4039
- staticStyle: {},
4040
+ style: _vm.styles,
4040
4041
  },
4041
4042
  [
4042
4043
  _c(
@@ -4092,7 +4093,11 @@ var mainvue_type_template_id_3a307e68_render = function () {
4092
4093
  ? [
4093
4094
  item.type === "sort"
4094
4095
  ? _c("el-table-column", {
4095
- key: item.key || index,
4096
+ key:
4097
+ item.key ||
4098
+ item.label ||
4099
+ item.title ||
4100
+ index,
4096
4101
  attrs: {
4097
4102
  width: "32",
4098
4103
  prop: "id",
@@ -4103,12 +4108,14 @@ var mainvue_type_template_id_3a307e68_render = function () {
4103
4108
  key: "default",
4104
4109
  fn: function (scope) {
4105
4110
  return [
4106
- _c("es-icon", {
4107
- staticClass: "es-move",
4108
- attrs: {
4109
- contents: _vm.dragSortIcon,
4110
- },
4111
- }),
4111
+ !scope.row.fixed
4112
+ ? _c("es-icon", {
4113
+ staticClass: "es-move",
4114
+ attrs: {
4115
+ contents: _vm.dragSortIcon,
4116
+ },
4117
+ })
4118
+ : _vm._e(),
4112
4119
  ]
4113
4120
  },
4114
4121
  },
@@ -4119,7 +4126,13 @@ var mainvue_type_template_id_3a307e68_render = function () {
4119
4126
  ? _c(
4120
4127
  "el-table-column",
4121
4128
  _vm._b(
4122
- { key: item.key || index },
4129
+ {
4130
+ key:
4131
+ item.key ||
4132
+ item.label ||
4133
+ item.title ||
4134
+ index,
4135
+ },
4123
4136
  "el-table-column",
4124
4137
  _vm.dragSort
4125
4138
  ? Object.assign({}, item, {
@@ -4129,42 +4142,46 @@ var mainvue_type_template_id_3a307e68_render = function () {
4129
4142
  false
4130
4143
  )
4131
4144
  )
4132
- : _c(
4133
- "children",
4134
- _vm._g(
4135
- _vm._b(
4136
- {
4137
- key: item.label || item.title,
4138
- attrs: { tag: item.tag },
4139
- },
4140
- "children",
4141
- Object.assign(
4142
- {},
4143
- {
4144
- mode: _vm.mode,
4145
- name: _vm.name,
4146
- indexs: index,
4147
- form: _vm.form,
4148
- readonly: _vm.readonly,
4149
- optionData: _vm.optionDatas,
4150
- dragSort: _vm.dragSort,
4151
- },
4152
- _vm.dragSort
4153
- ? Object.assign({}, item, {
4154
- fixed: false,
4155
- })
4156
- : item
4145
+ : [
4146
+ _c(
4147
+ "children",
4148
+ _vm._g(
4149
+ _vm._b(
4150
+ { attrs: { tag: item.tag } },
4151
+ "children",
4152
+ Object.assign(
4153
+ {},
4154
+ {
4155
+ mode: _vm.mode,
4156
+ name: _vm.name,
4157
+ indexs: index,
4158
+ form: _vm.form,
4159
+ readonly: _vm.readonly,
4160
+ optionData: _vm.optionDatas,
4161
+ dragSort: _vm.dragSort,
4162
+ key:
4163
+ item.key ||
4164
+ item.label ||
4165
+ item.title ||
4166
+ index,
4167
+ },
4168
+ _vm.dragSort
4169
+ ? Object.assign({}, item, {
4170
+ fixed: false,
4171
+ })
4172
+ : Object.assign({}, item)
4173
+ ),
4174
+ false
4157
4175
  ),
4158
- false
4159
- ),
4160
- {
4161
- handleClick: _vm.handleClick,
4162
- formBlur: _vm.formBlur,
4163
- formFocus: _vm.formFocus,
4164
- formChange: _vm.formChange,
4165
- }
4166
- )
4167
- ),
4176
+ {
4177
+ handleClick: _vm.handleClick,
4178
+ formBlur: _vm.formBlur,
4179
+ formFocus: _vm.formFocus,
4180
+ formChange: _vm.formChange,
4181
+ }
4182
+ )
4183
+ ),
4184
+ ],
4168
4185
  ]
4169
4186
  : _vm._e(),
4170
4187
  ]
@@ -4273,19 +4290,37 @@ var mainvue_type_template_id_3a307e68_render = function () {
4273
4290
  2
4274
4291
  )
4275
4292
  : _vm._e(),
4276
- _c("sizer", {
4277
- ref: "sizer",
4278
- attrs: { data: _vm.theads, mode: _vm.mode },
4279
- }),
4293
+ _vm.theads.length
4294
+ ? _c(
4295
+ "es-dialog",
4296
+ {
4297
+ attrs: { title: "列表设置", visible: _vm.showSizer },
4298
+ on: {
4299
+ "update:visible": function ($event) {
4300
+ _vm.showSizer = $event
4301
+ },
4302
+ },
4303
+ },
4304
+ [
4305
+ _vm.showSizer
4306
+ ? _c("sizer", {
4307
+ attrs: { data: _vm.theads, mode: _vm.mode },
4308
+ on: { confirm: _vm.mergeThead },
4309
+ })
4310
+ : _vm._e(),
4311
+ ],
4312
+ 1
4313
+ )
4314
+ : _vm._e(),
4280
4315
  ],
4281
4316
  1
4282
4317
  )
4283
4318
  }
4284
4319
  var staticRenderFns = []
4285
- mainvue_type_template_id_3a307e68_render._withStripped = true
4320
+ mainvue_type_template_id_d6bac15c_render._withStripped = true
4286
4321
 
4287
4322
 
4288
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=3a307e68&
4323
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=d6bac15c&
4289
4324
 
4290
4325
  // EXTERNAL MODULE: ./src/config/api.js
4291
4326
  var api = __webpack_require__(1);
@@ -4293,8 +4328,8 @@ var api = __webpack_require__(1);
4293
4328
  // EXTERNAL MODULE: external "throttle-debounce"
4294
4329
  var external_throttle_debounce_ = __webpack_require__(11);
4295
4330
 
4296
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
4297
- var childrenvue_type_template_id_44b7ff61_render = function () {
4331
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=271bb842&
4332
+ var childrenvue_type_template_id_271bb842_render = function () {
4298
4333
  var _vm = this
4299
4334
  var _h = _vm.$createElement
4300
4335
  var _c = _vm._self._c || _h
@@ -4311,7 +4346,14 @@ var childrenvue_type_template_id_44b7ff61_render = function () {
4311
4346
  "children",
4312
4347
  _vm._g(
4313
4348
  _vm._b(
4314
- { key: index },
4349
+ {
4350
+ key:
4351
+ item.key ||
4352
+ item.id ||
4353
+ item.label ||
4354
+ item.title ||
4355
+ index,
4356
+ },
4315
4357
  "children",
4316
4358
  Object.assign(
4317
4359
  {},
@@ -4336,14 +4378,14 @@ var childrenvue_type_template_id_44b7ff61_render = function () {
4336
4378
  2
4337
4379
  )
4338
4380
  }
4339
- var childrenvue_type_template_id_44b7ff61_staticRenderFns = []
4340
- childrenvue_type_template_id_44b7ff61_render._withStripped = true
4381
+ var childrenvue_type_template_id_271bb842_staticRenderFns = []
4382
+ childrenvue_type_template_id_271bb842_render._withStripped = true
4341
4383
 
4342
4384
 
4343
- // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
4385
+ // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=271bb842&
4344
4386
 
4345
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=1dac0447&
4346
- var columnvue_type_template_id_1dac0447_render = function () {
4387
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=ddc4775e&
4388
+ var columnvue_type_template_id_ddc4775e_render = function () {
4347
4389
  var _vm = this
4348
4390
  var _h = _vm.$createElement
4349
4391
  var _c = _vm._self._c || _h
@@ -4351,6 +4393,7 @@ var columnvue_type_template_id_1dac0447_render = function () {
4351
4393
  "el-table-column",
4352
4394
  _vm._b(
4353
4395
  {
4396
+ key: _vm.field,
4354
4397
  scopedSlots: _vm._u([
4355
4398
  {
4356
4399
  key: "default",
@@ -5156,11 +5199,11 @@ var columnvue_type_template_id_1dac0447_render = function () {
5156
5199
  2
5157
5200
  )
5158
5201
  }
5159
- var columnvue_type_template_id_1dac0447_staticRenderFns = []
5160
- columnvue_type_template_id_1dac0447_render._withStripped = true
5202
+ var columnvue_type_template_id_ddc4775e_staticRenderFns = []
5203
+ columnvue_type_template_id_ddc4775e_render._withStripped = true
5161
5204
 
5162
5205
 
5163
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=1dac0447&
5206
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=ddc4775e&
5164
5207
 
5165
5208
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5166
5209
  var regenerator_ = __webpack_require__(13);
@@ -5765,7 +5808,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5765
5808
  label: this.label || this.title,
5766
5809
  width: this.btnWidth || this.width
5767
5810
  };
5768
-
5769
5811
  if (this.type === 'expand') {
5770
5812
  config = _extends({ type: this.type }, config, this.$attrs);
5771
5813
  return config;
@@ -5787,7 +5829,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5787
5829
  config.outside = false;
5788
5830
  }
5789
5831
  var minWidth = this.label || this.title ? (this.label || this.title).length * 14 + 20 : this.width ? '' : '180px';
5790
- config = _extends({}, config, {
5832
+ return _extends({}, config, {
5791
5833
  filterIcon: this.icon,
5792
5834
  sortable: this.sortable || this.sort,
5793
5835
  minWidth: this.minWidth || this.table.minWidth || minWidth,
@@ -5797,7 +5839,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5797
5839
  prop: this.field || this.prop,
5798
5840
  field: this.field
5799
5841
  }, this.$attrs);
5800
- return config;
5801
5842
  },
5802
5843
  formOption: function formOption() {
5803
5844
  var config = _extends({
@@ -6108,8 +6149,8 @@ var componentNormalizer = __webpack_require__(3);
6108
6149
 
6109
6150
  var component = Object(componentNormalizer["a" /* default */])(
6110
6151
  src_columnvue_type_script_lang_js_,
6111
- columnvue_type_template_id_1dac0447_render,
6112
- columnvue_type_template_id_1dac0447_staticRenderFns,
6152
+ columnvue_type_template_id_ddc4775e_render,
6153
+ columnvue_type_template_id_ddc4775e_staticRenderFns,
6113
6154
  false,
6114
6155
  null,
6115
6156
  null,
@@ -6119,8 +6160,6 @@ var component = Object(componentNormalizer["a" /* default */])(
6119
6160
 
6120
6161
  /* harmony default export */ var column = (component.exports);
6121
6162
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=script&lang=js&
6122
- var _components;
6123
-
6124
6163
  //
6125
6164
  //
6126
6165
  //
@@ -6144,12 +6183,16 @@ var _components;
6144
6183
 
6145
6184
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
6146
6185
  name: 'Children',
6147
- components: (_components = {}, _components[column.name] = column, _components),
6186
+ components: {
6187
+ column: column
6188
+ },
6148
6189
  props: {
6149
6190
  dragSort: Boolean,
6150
6191
  children: Array,
6151
6192
  childHead: Array
6152
6193
  },
6194
+ created: function created() {},
6195
+
6153
6196
  computed: {
6154
6197
  childrens: function childrens() {
6155
6198
  return this.children || this.childHead || [];
@@ -6168,8 +6211,8 @@ var _components;
6168
6211
 
6169
6212
  var children_component = Object(componentNormalizer["a" /* default */])(
6170
6213
  src_childrenvue_type_script_lang_js_,
6171
- childrenvue_type_template_id_44b7ff61_render,
6172
- childrenvue_type_template_id_44b7ff61_staticRenderFns,
6214
+ childrenvue_type_template_id_271bb842_render,
6215
+ childrenvue_type_template_id_271bb842_staticRenderFns,
6173
6216
  false,
6174
6217
  null,
6175
6218
  null,
@@ -6178,64 +6221,57 @@ var children_component = Object(componentNormalizer["a" /* default */])(
6178
6221
  )
6179
6222
 
6180
6223
  /* harmony default export */ var children = (children_component.exports);
6181
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/sizer.vue?vue&type=template&id=a70172f8&
6182
- var sizervue_type_template_id_a70172f8_render = function () {
6224
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/sizer.vue?vue&type=template&id=24d19bd8&
6225
+ var sizervue_type_template_id_24d19bd8_render = function () {
6183
6226
  var _vm = this
6184
6227
  var _h = _vm.$createElement
6185
6228
  var _c = _vm._self._c || _h
6186
- return _vm.theads.length
6187
- ? _c(
6188
- "es-dialog",
6189
- {
6190
- attrs: { title: "设置", visible: _vm.visible },
6191
- on: {
6192
- "update:visible": function ($event) {
6193
- _vm.visible = $event
6194
- },
6195
- },
6229
+ return _c(
6230
+ "div",
6231
+ { staticClass: "es-table-sizer" },
6232
+ [
6233
+ _c("div", { staticClass: "es-table-sizer-tips" }, [
6234
+ _vm._v("\n 提示:锁定的列排序无效,列的内容是数字才能合计\n "),
6235
+ ]),
6236
+ _c("es-data-table", {
6237
+ attrs: {
6238
+ dragSort: "",
6239
+ numbers: "",
6240
+ form: "",
6241
+ "row-key": "id",
6242
+ "default-expand-all": "",
6243
+ height: "480px",
6244
+ mode: _vm.mode,
6245
+ data: _vm.theads,
6246
+ thead: _vm.thead,
6247
+ "tree-props": { children: "childHead" },
6196
6248
  },
6249
+ on: { change: _vm.handleChange, "update-drag-sort": _vm.handleDrag },
6250
+ }),
6251
+ _c(
6252
+ "div",
6253
+ { staticClass: "sizer-btn-box" },
6197
6254
  [
6198
- _vm.visible
6199
- ? _c("es-data-table", {
6200
- attrs: {
6201
- numbers: "",
6202
- form: "",
6203
- "row-key": "id",
6204
- "default-expand-all": "",
6205
- height: "500px",
6206
- mode: _vm.mode,
6207
- data: _vm.theads,
6208
- thead: _vm.thead,
6209
- "tree-props": { children: "childHead" },
6210
- },
6211
- on: { change: _vm.handleChange },
6212
- })
6213
- : _vm._e(),
6214
6255
  _c(
6215
- "div",
6216
- { staticClass: "sizer-btn-box" },
6217
- [
6218
- _c(
6219
- "el-button",
6220
- {
6221
- attrs: { type: "primary", size: "medium" },
6222
- on: { click: _vm.handleConfirm },
6223
- },
6224
- [_vm._v("确定")]
6225
- ),
6226
- ],
6227
- 1
6256
+ "el-button",
6257
+ {
6258
+ attrs: { type: "primary", size: "medium" },
6259
+ on: { click: _vm.handleConfirm },
6260
+ },
6261
+ [_vm._v("确定")]
6228
6262
  ),
6229
6263
  ],
6230
6264
  1
6231
- )
6232
- : _vm._e()
6265
+ ),
6266
+ ],
6267
+ 1
6268
+ )
6233
6269
  }
6234
- var sizervue_type_template_id_a70172f8_staticRenderFns = []
6235
- sizervue_type_template_id_a70172f8_render._withStripped = true
6270
+ var sizervue_type_template_id_24d19bd8_staticRenderFns = []
6271
+ sizervue_type_template_id_24d19bd8_render._withStripped = true
6236
6272
 
6237
6273
 
6238
- // CONCATENATED MODULE: ./packages/data-table/src/sizer.vue?vue&type=template&id=a70172f8&
6274
+ // CONCATENATED MODULE: ./packages/data-table/src/sizer.vue?vue&type=template&id=24d19bd8&
6239
6275
 
6240
6276
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/sizer.vue?vue&type=script&lang=js&
6241
6277
  var sizervue_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; };
@@ -6266,6 +6302,10 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6266
6302
  //
6267
6303
  //
6268
6304
  //
6305
+ //
6306
+ //
6307
+ //
6308
+ //
6269
6309
 
6270
6310
 
6271
6311
  /* harmony default export */ var sizervue_type_script_lang_js_ = ({
@@ -6278,9 +6318,9 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6278
6318
  theads: {
6279
6319
  get: function get() {
6280
6320
  if (this.data && this.data.length) {
6281
- var thead = [];
6282
- this.getThead(this.data, thead);
6283
- return thead;
6321
+ var newData = [];
6322
+ this.getThead(this.data, newData);
6323
+ return newData;
6284
6324
  }
6285
6325
  return [];
6286
6326
  }
@@ -6290,10 +6330,10 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6290
6330
  return {
6291
6331
  visible: false,
6292
6332
  thead: [{
6293
- title: '标题',
6333
+ title: '名称',
6294
6334
  field: 'title'
6295
6335
  }, {
6296
- title: '列固定位置',
6336
+ title: '锁定列位置',
6297
6337
  field: 'fixed',
6298
6338
  type: 'select',
6299
6339
  clearable: true,
@@ -6306,7 +6346,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6306
6346
  name: '右'
6307
6347
  }]
6308
6348
  }, {
6309
- title: '显示列',
6349
+ title: '列是否显示',
6310
6350
  field: 'hide',
6311
6351
  type: 'switch',
6312
6352
  width: 160,
@@ -6318,9 +6358,22 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6318
6358
  value: true,
6319
6359
  name: '显示'
6320
6360
  }]
6361
+ }, {
6362
+ title: '是否开启合计',
6363
+ field: 'total',
6364
+ type: 'switch',
6365
+ width: 160,
6366
+ align: 'center',
6367
+ data: [{
6368
+ value: false,
6369
+ name: '关闭'
6370
+ }, {
6371
+ value: true,
6372
+ name: '开启'
6373
+ }]
6321
6374
  }],
6322
- id: 1,
6323
- newThead: []
6375
+ newThead: [],
6376
+ nid: 0
6324
6377
  };
6325
6378
  },
6326
6379
  mounted: function mounted() {
@@ -6334,8 +6387,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6334
6387
  getThead: function getThead(res, data) {
6335
6388
  var _this = this;
6336
6389
 
6337
- res.forEach(function (item) {
6338
- if (item.type !== 'index' && item.type !== 'selection' && item.type !== 'handle') {
6390
+ res.forEach(function (item, index) {
6391
+ if (item.type !== 'index' && item.type !== 'selection') {
6339
6392
  var fixed = item.fixed,
6340
6393
  hide = item.hide,
6341
6394
  childHead = item.childHead,
@@ -6347,9 +6400,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6347
6400
  title: title ? title : item.label,
6348
6401
  fixed: fixed === true ? 'left' : fixed === undefined || fixed === false ? '' : fixed,
6349
6402
  hide: hide ? false : true,
6350
- id: _this.id
6403
+ id: index
6351
6404
  }, other);
6352
- _this.id++;
6353
6405
  if (childHead && childHead.length) {
6354
6406
  var childHeads = [];
6355
6407
  _this.getThead(childHead, childHeads);
@@ -6361,6 +6413,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6361
6413
  items.children = _childHeads;
6362
6414
  }
6363
6415
  data.push(items);
6416
+ } else {
6417
+ _this.nid++;
6364
6418
  }
6365
6419
  });
6366
6420
  },
@@ -6388,10 +6442,23 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6388
6442
  handleChange: function handleChange(res) {
6389
6443
  this.setThead(res, this.newThead);
6390
6444
  },
6445
+ handleDrag: function handleDrag(res, evt) {
6446
+ var oldIndex = evt.oldIndex,
6447
+ newIndex = evt.newIndex;
6448
+
6449
+ oldIndex += this.nid;
6450
+ newIndex += this.nid;
6451
+ if (oldIndex > newIndex) {
6452
+ this.newThead.splice(newIndex, 0, this.newThead[oldIndex]);
6453
+ this.newThead.splice(oldIndex + 1, 1);
6454
+ } else {
6455
+ this.newThead.splice(newIndex + 1, 0, this.newThead[oldIndex]);
6456
+ this.newThead.splice(oldIndex, 1);
6457
+ }
6458
+ },
6391
6459
  handleConfirm: function handleConfirm() {
6392
6460
  this.visible = false;
6393
- this.$parent.show = false;
6394
- this.$parent.mergeThead(this.newThead);
6461
+ this.$emit('confirm', this.newThead);
6395
6462
  }
6396
6463
  }
6397
6464
  });
@@ -6407,8 +6474,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6407
6474
 
6408
6475
  var sizer_component = Object(componentNormalizer["a" /* default */])(
6409
6476
  src_sizervue_type_script_lang_js_,
6410
- sizervue_type_template_id_a70172f8_render,
6411
- sizervue_type_template_id_a70172f8_staticRenderFns,
6477
+ sizervue_type_template_id_24d19bd8_render,
6478
+ sizervue_type_template_id_24d19bd8_staticRenderFns,
6412
6479
  false,
6413
6480
  null,
6414
6481
  null,
@@ -6429,8 +6496,18 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
6429
6496
 
6430
6497
  var mainvue_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; };
6431
6498
 
6432
- var mainvue_type_script_lang_js_components;
6433
-
6499
+ //
6500
+ //
6501
+ //
6502
+ //
6503
+ //
6504
+ //
6505
+ //
6506
+ //
6507
+ //
6508
+ //
6509
+ //
6510
+ //
6434
6511
  //
6435
6512
  //
6436
6513
  //
@@ -6617,10 +6694,14 @@ var mainvue_type_script_lang_js_components;
6617
6694
 
6618
6695
 
6619
6696
  var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* default */].win.systemMode || 'default';
6697
+ var pageView = util["a" /* default */].getParams('pageView');
6620
6698
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
6621
6699
  name: 'EsDataTable',
6622
6700
  inheritAttrs: false,
6623
- components: (mainvue_type_script_lang_js_components = {}, mainvue_type_script_lang_js_components[children.name] = children, mainvue_type_script_lang_js_components[sizer.name] = sizer, mainvue_type_script_lang_js_components),
6701
+ components: {
6702
+ children: children,
6703
+ sizer: sizer
6704
+ },
6624
6705
  provide: function provide() {
6625
6706
  return {
6626
6707
  table: this,
@@ -6640,6 +6721,14 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
6640
6721
  }
6641
6722
  },
6642
6723
  props: {
6724
+ viewCode: {
6725
+ type: String,
6726
+ default: pageView
6727
+ },
6728
+ contentsUrl: {
6729
+ type: String,
6730
+ default: api["y" /* formContents */]
6731
+ },
6643
6732
  mode: {
6644
6733
  type: String,
6645
6734
  default: systemMode
@@ -6874,12 +6963,14 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
6874
6963
  type: String,
6875
6964
  default: 'es-icon-caidan'
6876
6965
  },
6877
- fields: Boolean
6966
+ isFieldsEncryption: Boolean
6878
6967
  },
6879
6968
  data: function data() {
6880
6969
  return {
6970
+ isEncryption: this.isFieldsEncryption,
6881
6971
  requests: [],
6882
6972
  toolbars: [],
6973
+ hasThead: false,
6883
6974
  theadData: [],
6884
6975
  list: [],
6885
6976
  tableLoading: this.loading,
@@ -6902,10 +6993,12 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
6902
6993
  selected: null,
6903
6994
  options: {},
6904
6995
  icon: true,
6905
- show: true,
6906
6996
  sysCodes: [],
6907
6997
  infiniteDisabled: this.infiniteScroll,
6908
- isReload: false
6998
+ isReload: false,
6999
+ pageView: null,
7000
+ showSizer: false,
7001
+ show: true
6909
7002
  };
6910
7003
  },
6911
7004
 
@@ -6927,13 +7020,14 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
6927
7020
  get: function get() {
6928
7021
  var _this = this;
6929
7022
 
6930
- var thead = [];
6931
- var addfilter = false;
6932
- var types = this.theadData.filter(function (item) {
7023
+ var types = void 0;
7024
+ types = this.theadData.filter(function (item) {
6933
7025
  return item.type == 'selection' || item.type == 'index' || item.type == 'sort';
6934
7026
  }).map(function (item) {
6935
7027
  return item.type;
6936
7028
  });
7029
+ var thead = [];
7030
+ var addfilter = false;
6937
7031
  if (this.dragSort && !types.includes('sort')) {
6938
7032
  addfilter = true;
6939
7033
  thead.push({
@@ -6983,7 +7077,7 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
6983
7077
  }
6984
7078
  if (this.theadData.length) {
6985
7079
  thead = [].concat(thead, this.theadData);
6986
- } else {
7080
+ } else if (this.show) {
6987
7081
  thead = [].concat(thead, this.thead);
6988
7082
  }
6989
7083
  return thead;
@@ -7070,6 +7164,15 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7070
7164
  }
7071
7165
  },
7072
7166
  watch: {
7167
+ viewCode: {
7168
+ immediate: true,
7169
+ handler: function handler(val) {
7170
+ if (val) {
7171
+ this.hasThead = true;
7172
+ this.getContents();
7173
+ }
7174
+ }
7175
+ },
7073
7176
  showToolbar: function showToolbar() {
7074
7177
  this.resetHeight();
7075
7178
  this.doLayout();
@@ -7106,8 +7209,8 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7106
7209
  deep: true,
7107
7210
  handler: function handler(val) {
7108
7211
  this.getOptions(val);
7109
-
7110
- if (Array.isArray(val) && val.length && this.fields && this.datas.length == 0) {
7212
+ this.chekOpenTotalArea();
7213
+ if (Array.isArray(val) && val.length && this.datas.length == 0) {
7111
7214
  this.getTableData();
7112
7215
  }
7113
7216
  }
@@ -7176,15 +7279,9 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7176
7279
  created: function created() {
7177
7280
  if (Array.isArray(this.thead) && this.thead.length) {
7178
7281
  this.getOptions(this.thead);
7179
- if (this.fields) {
7180
- this.immediate && this.getTableData();
7181
- this.chekOpenTotalArea();
7182
- }
7183
- }
7184
- if (!this.fields) {
7185
7282
  this.immediate && this.getTableData();
7186
- this.chekOpenTotalArea();
7187
7283
  }
7284
+ this.chekOpenTotalArea();
7188
7285
  },
7189
7286
  mounted: function mounted() {
7190
7287
  if (this.data.length) {
@@ -7219,56 +7316,79 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7219
7316
 
7220
7317
  return [method, url, external_qs_default.a.stringify(params), external_qs_default.a.stringify(data)].join('&');
7221
7318
  },
7222
- getOptions: function getOptions(res) {
7319
+ getContents: function getContents() {
7223
7320
  var _this6 = this;
7224
7321
 
7322
+ util["a" /* default */].ajax({
7323
+ url: this.contentsUrl,
7324
+ params: {
7325
+ formId: this.viewCode
7326
+ }
7327
+ }).then(function (res) {
7328
+ if (res.rCode == 0) {
7329
+ var eossFormJson = res.results.eossFormJson;
7330
+
7331
+ eossFormJson = JSON.parse(eossFormJson);
7332
+ if (eossFormJson && eossFormJson.table) {
7333
+ _this6.isEncryption = true;
7334
+ _this6.theadData = eossFormJson.table;
7335
+ } else {
7336
+ _this6.hasThead = false;
7337
+ }
7338
+ _this6.$emit('init-contents', res.results);
7339
+ }
7340
+ });
7341
+ },
7342
+ getOptions: function getOptions(res) {
7343
+ var _this7 = this;
7344
+
7225
7345
  var sysCodes = [];
7226
7346
  res.forEach(function (item) {
7227
7347
  if (item.sysCode || item.url) {
7228
7348
  item.sysCode && sysCodes.push(item.sysCode);
7229
7349
  var params = util["a" /* default */].extend({}, item.sysCode ? { sysAppCode: item.sysCode, code: item.sysCode } : {}, item.param ? item.param : {});
7230
- var key = _this6.getRequestKey({
7231
- method: _this6.method,
7232
- url: item.sysCode ? _this6.findCode : item.url,
7350
+ var key = _this7.getRequestKey({
7351
+ method: _this7.method,
7352
+ url: item.sysCode ? _this7.findCode : item.url,
7233
7353
  params: params,
7234
7354
  data: {}
7235
7355
  });
7236
- if (!_this6.requests.includes(key)) {
7356
+ if (!_this7.requests.includes(key)) {
7237
7357
  util["a" /* default */].ajax({
7238
- url: item.sysCode ? _this6.findCode : item.url,
7239
- method: _this6.method,
7358
+ url: item.sysCode ? _this7.findCode : item.url,
7359
+ method: _this7.method,
7240
7360
  params: params,
7241
7361
  data: params
7242
7362
  }).then(function (res) {
7243
7363
  if (res.rCode === 0) {
7244
7364
  if (item.type == 'ganged') {
7245
- _this6.$set(_this6.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
7365
+ _this7.$set(_this7.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
7246
7366
  if (item.sysCode) {
7247
- bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this6.options[item.sysCode])));
7367
+ bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this7.options[item.sysCode])));
7248
7368
  }
7249
7369
  } else {
7250
- _this6.$set(_this6.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
7370
+ _this7.$set(_this7.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
7251
7371
  if (item.sysCode) {
7252
7372
  bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(res.results)));
7253
7373
  }
7254
7374
  }
7255
- _this6.requests.push(key);
7375
+ _this7.requests.push(key);
7256
7376
  } else {
7257
7377
  var msg = res.msg || '系统错误,请联系管理员!';
7258
- _this6.$message.error(msg);
7378
+ _this7.$message.error(msg);
7259
7379
  }
7260
7380
  }).catch(function (err) {
7261
7381
  if (err.message && err.message !== 'canceled') {
7262
- _this6.$message.error(err.message);
7382
+ _this7.$message.error(err.message);
7263
7383
  }
7264
7384
  });
7265
7385
  }
7266
7386
  } else {
7267
7387
  if (item.childHead && item.childHead.length) {
7268
- _this6.getOptions(item.childHead);
7388
+ _this7.getOptions(item.childHead);
7269
7389
  }
7270
7390
  if (item.children && item.children.length) {
7271
- _this6.getOptions(item.children);
7391
+ _this7.getOptions(item.children);
7272
7392
  }
7273
7393
  }
7274
7394
  });
@@ -7280,18 +7400,26 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7280
7400
  return util["a" /* default */].getObjectType(item) === 'object';
7281
7401
  },
7282
7402
  chekOpenTotalArea: function chekOpenTotalArea() {
7283
- var _this7 = this;
7403
+ var _this8 = this;
7284
7404
 
7285
7405
  if (this.total || this.showSummary) {
7286
7406
  this.showTotal = true;
7287
7407
  return;
7288
7408
  }
7409
+ if (!this.theads) {
7410
+ return;
7411
+ }
7289
7412
  var arr = JSON.parse(JSON.stringify(this.theads));
7413
+ var flag = false;
7290
7414
  arr.forEach(function (item) {
7291
7415
  if (item.total) {
7292
- _this7.showTotal = true;
7416
+ flag = true;
7417
+ _this8.showTotal = true;
7293
7418
  }
7294
7419
  });
7420
+ if (this.showTotal !== flag) {
7421
+ this.showTotal = flag;
7422
+ }
7295
7423
  },
7296
7424
  rowClick: function rowClick(row, column, event) {
7297
7425
  this.$emit('click', row, column, event);
@@ -7336,13 +7464,13 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7336
7464
  }
7337
7465
  },
7338
7466
  getRow: function getRow(thead, obj) {
7339
- var _this8 = this;
7467
+ var _this9 = this;
7340
7468
 
7341
7469
  thead.forEach(function (item) {
7342
7470
  if (item.field) {
7343
7471
  obj[item['field']] = item.defaultValue || '';
7344
7472
  } else if (item.children && item.children.length) {
7345
- _this8.getRow(item.children, obj);
7473
+ _this9.getRow(item.children, obj);
7346
7474
  }
7347
7475
  });
7348
7476
  },
@@ -7369,27 +7497,37 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7369
7497
  });
7370
7498
  },
7371
7499
  checkSelect: function checkSelect(newVal) {
7372
- var _this9 = this;
7500
+ var _this10 = this;
7373
7501
 
7374
7502
  this.$nextTick(function () {
7375
7503
  if (util["a" /* default */].getObjectType(newVal) === 'array') {
7376
7504
  newVal.forEach(function (row) {
7377
7505
  if (util["a" /* default */].isObject(row)) {
7378
- _this9.$refs.oaTable.toggleRowSelection(row, true);
7379
- } else _this9.list.forEach(function (item) {
7380
- if (item[_this9.checkedKey] === row) {
7381
- _this9.$refs.oaTable.toggleRowSelection(item, true);
7382
- return;
7383
- }
7384
- });
7506
+ _this10.$refs.oaTable.toggleRowSelection(row, true);
7507
+ } else {
7508
+ _this10.setChecked(_this10.list, row);
7509
+ }
7385
7510
  });
7386
7511
  } else if (newVal === true) {
7387
- _this9.toggleAllSelection();
7512
+ _this10.toggleAllSelection();
7513
+ }
7514
+ });
7515
+ },
7516
+ setChecked: function setChecked(list, row) {
7517
+ var _this11 = this;
7518
+
7519
+ list.forEach(function (item) {
7520
+ if (item.children && item.children.length) {
7521
+ _this11.setChecked(item.children, row);
7522
+ }
7523
+ if (item[_this11.checkedKey] === row) {
7524
+ _this11.$refs.oaTable.toggleRowSelection(item, true);
7525
+ return;
7388
7526
  }
7389
7527
  });
7390
7528
  },
7391
7529
  getTableDatas: function getTableDatas(res) {
7392
- var _this10 = this;
7530
+ var _this12 = this;
7393
7531
 
7394
7532
  var where = void 0;
7395
7533
  var first = void 0;
@@ -7411,6 +7549,7 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7411
7549
  if (where) {
7412
7550
  reqData = util["a" /* default */].extend({}, reqData, where);
7413
7551
  }
7552
+ //if (this.fields)
7414
7553
  if (this.retainSearh || first === false) {
7415
7554
  reqData = util["a" /* default */].extend({}, reqData, this.wheres);
7416
7555
  }
@@ -7421,9 +7560,9 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7421
7560
  }
7422
7561
  }
7423
7562
  }
7424
- if (this.fields) {
7563
+ if (this.isEncryption) {
7425
7564
  var fields = [];
7426
- this.thead.forEach(function (item) {
7565
+ this.theads.forEach(function (item) {
7427
7566
  if (item.field || item.prop) {
7428
7567
  fields.push(item.field || item.prop);
7429
7568
  }
@@ -7443,43 +7582,43 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7443
7582
  params: reqData,
7444
7583
  data: reqData
7445
7584
  })).then(function (res) {
7446
- _this10.tableLoading = false;
7585
+ _this12.tableLoading = false;
7447
7586
  if (res.rCode === 0 || res.status === 'success') {
7448
- if (_this10.isReload) {
7449
- _this10.list = [];
7450
- _this10.isReload = false;
7587
+ if (_this12.isReload) {
7588
+ _this12.list = [];
7589
+ _this12.isReload = false;
7451
7590
  }
7452
- var results = _this10.parseData !== undefined ? _this10.parseData(res.results || res.data || res) : res.results || res.data;
7453
- if (_this10.infiniteScroll) {
7454
- _this10.list = _this10.list.concat(results.data || results.records || results.list);
7455
- _this10.config.pageNum += 1;
7591
+ var results = _this12.parseData !== undefined ? _this12.parseData(res.results || res.data || res) : res.results || res.data;
7592
+ if (_this12.infiniteScroll) {
7593
+ _this12.list = _this12.list.concat(results.data || results.records || results.list);
7594
+ _this12.config.pageNum += 1;
7456
7595
  } else {
7457
- _this10.list = results.data || results.records || results.list;
7458
- _this10.$nextTick(function () {
7459
- _this10.$refs.oaTable && _this10.$refs.oaTable.resetScroll && _this10.$refs.oaTable.resetScroll(0, 0);
7596
+ _this12.list = results.data || results.records || results.list;
7597
+ _this12.$nextTick(function () {
7598
+ _this12.$refs.oaTable && _this12.$refs.oaTable.resetScroll && _this12.$refs.oaTable.resetScroll(0, 0);
7460
7599
  });
7461
7600
  }
7462
- _this10.config.totalCount = results.count || results.total || results.totalCount;
7463
- _this10.config.pageCount = results.pageCount;
7464
- _this10.checked && _this10.$nextTick(function () {
7465
- _this10.checkSelect(_this10.checked);
7601
+ _this12.config.totalCount = results.count || results.total || results.totalCount;
7602
+ _this12.config.pageCount = results.pageCount;
7603
+ _this12.checked && _this12.$nextTick(function () {
7604
+ _this12.checkSelect(_this12.checked);
7466
7605
  });
7467
- if (_this10.infiniteScroll && _this10.config.totalCount === _this10.list.length) {
7468
- _this10.infiniteDisabled = true;
7606
+ if (_this12.infiniteScroll && _this12.config.totalCount === _this12.list.length) {
7607
+ _this12.infiniteDisabled = true;
7469
7608
  }
7470
7609
  } else {
7471
- _this10.list = [];
7610
+ _this12.list = [];
7472
7611
  //this.tableHeight = false;
7473
7612
  var msg = res.msg || '系统错误,请联系管理员!';
7474
- _this10.$message.error(msg);
7613
+ _this12.$message.error(msg);
7475
7614
  }
7476
- _this10.$emit('success', res);
7615
+ _this12.$emit('success', res);
7477
7616
  }).catch(function (err) {
7478
7617
  //this.tableHeight = false;
7479
7618
  if (err.message && err.message !== 'canceled') {
7480
- _this10.$message.error(err.message);
7619
+ _this12.$message.error(err.message);
7481
7620
  }
7482
- _this10.tableLoading = false;
7621
+ _this12.tableLoading = false;
7483
7622
  });
7484
7623
  },
7485
7624
  selectionChange: function selectionChange(data) {
@@ -7524,7 +7663,7 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7524
7663
  this.$emit('change', data, this.list);
7525
7664
  },
7526
7665
  handleAjax: function handleAjax(handle, row) {
7527
- var _this11 = this;
7666
+ var _this13 = this;
7528
7667
 
7529
7668
  this.changeLoading(true, handle.text + '\u4E2D...');
7530
7669
  var params = handle.param || {};
@@ -7580,9 +7719,9 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7580
7719
  method: handle.method,
7581
7720
  format: handle.format
7582
7721
  })).then(function (res) {
7583
- _this11.changeLoading(false);
7722
+ _this13.changeLoading(false);
7584
7723
  if (res.rCode === 0) {
7585
- _this11.$message({
7724
+ _this13.$message({
7586
7725
  message: handle.text + '\u6210\u529F',
7587
7726
  duration: 2000,
7588
7727
  type: 'success',
@@ -7590,17 +7729,17 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7590
7729
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
7591
7730
  var reload = handle.reload || true;
7592
7731
  if (reload) {
7593
- _this11.reload({}, first);
7732
+ _this13.reload({}, first);
7594
7733
  }
7595
7734
  }
7596
7735
  });
7597
7736
  } else {
7598
- _this11.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7737
+ _this13.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7599
7738
  }
7600
7739
  }).catch(function (err) {
7601
- _this11.changeLoading(false);
7740
+ _this13.changeLoading(false);
7602
7741
  if (err.message && err.message !== 'canceled') {
7603
- _this11.$message.error(err.message);
7742
+ _this13.$message.error(err.message);
7604
7743
  }
7605
7744
  });
7606
7745
  },
@@ -7625,7 +7764,7 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7625
7764
  return mainvue_type_script_lang_js_extends({}, obj, item);
7626
7765
  },
7627
7766
  handleClick: function handleClick(res) {
7628
- var _this12 = this;
7767
+ var _this14 = this;
7629
7768
 
7630
7769
  var row = res.row,
7631
7770
  handle = res.handle;
@@ -7661,7 +7800,7 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7661
7800
  cancelButtonText: '取消',
7662
7801
  type: 'warning'
7663
7802
  }).then(function () {
7664
- _this12.handleAjax(handle, rows);
7803
+ _this14.handleAjax(handle, rows);
7665
7804
  }).catch(function () {});
7666
7805
  } else {
7667
7806
  this.handleAjax(handle, rows);
@@ -7749,7 +7888,7 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7749
7888
  var type = ['selection', 'index', 'expand'];
7750
7889
  thead = thead.map(function (item) {
7751
7890
  return item.filter(function (ele) {
7752
- return !type.includes(ele.type) && ele.label !== text && !_this12.exportExcludeLabel.includes(ele.label);
7891
+ return !type.includes(ele.type) && ele.label !== text && !_this14.exportExcludeLabel.includes(ele.label);
7753
7892
  });
7754
7893
  });
7755
7894
  util["a" /* default */].exportXls({
@@ -7850,40 +7989,43 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7850
7989
  }
7851
7990
  },
7852
7991
  resetHeight: function resetHeight(warn) {
7853
- var _this13 = this;
7992
+ var _this15 = this;
7854
7993
 
7855
7994
  this.$nextTick(function () {
7856
- if (_this13.full && !_this13.height && !_this13.maxHeight) {
7857
- var height = _this13.$el.parentNode.offsetHeight;
7995
+ if (_this15.full && !_this15.height && !_this15.maxHeight) {
7996
+ var height = _this15.$el.parentNode.offsetHeight;
7858
7997
  if (height) {
7859
- height = parseInt(util["a" /* default */].getStyle(_this13.$el.parentNode, 'height', '%'), 10);
7860
- height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this13.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this13.$el.parentNode, 'padding-bottom'), 10);
7861
- for (var i = 0; i < _this13.$el.parentNode.childNodes.length; i++) {
7862
- var ele = _this13.$el.parentNode.childNodes[i];
7863
- if (ele !== _this13.$el && ele.offsetHeight !== undefined) {
7998
+ height = parseInt(util["a" /* default */].getStyle(_this15.$el.parentNode, 'height', '%'), 10);
7999
+ height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this15.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this15.$el.parentNode, 'padding-bottom'), 10);
8000
+ for (var i = 0; i < _this15.$el.parentNode.childNodes.length; i++) {
8001
+ var ele = _this15.$el.parentNode.childNodes[i];
8002
+ if (ele.offsetHeight !== undefined) {
7864
8003
  height = height - ele.offsetHeight - parseInt(util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
7865
8004
  }
7866
8005
  }
7867
- height -= _this13.showToolbar ? _this13.$refs.toolbar.$el.offsetHeight : 0;
7868
- height -= _this13.page === false ? 0 : _this13.$refs.pagination.$el.offsetHeight;
7869
- height -= _this13.title ? _this13.$refs.title.offsetHeight : 0;
7870
- height -= parseInt(util["a" /* default */].getStyle(_this13.$refs.esTableContent, 'padding-top'), 10);
7871
- height -= parseInt(util["a" /* default */].getStyle(_this13.$refs.esTableContent, 'padding-bottom'), 10);
7872
- var emptyText = _this13.$refs.esTableContent.querySelector('.el-table__empty-text');
8006
+ height -= _this15.showToolbar ? _this15.$refs.toolbar.$el.offsetHeight : 0;
8007
+ height -= _this15.page === false ? 0 : _this15.$refs.pagination.$el.offsetHeight;
8008
+ height -= _this15.title ? _this15.$refs.title.offsetHeight : 0;
8009
+ height -= parseInt(util["a" /* default */].getStyle(_this15.$refs.esTableContent, 'padding-top'), 10);
8010
+ height -= parseInt(util["a" /* default */].getStyle(_this15.$refs.esTableContent, 'padding-bottom'), 10);
8011
+ var emptyText = _this15.$refs.esTableContent.querySelector('.el-table__empty-text');
8012
+ if (_this15.total) {
8013
+ height -= 1;
8014
+ }
7873
8015
  var eht = 0;
7874
8016
  if (emptyText) {
7875
8017
  eht = emptyText.offsetHeight;
7876
- var thead = _this13.$refs.esTableContent.querySelector('.el-table__header');
8018
+ var thead = _this15.$refs.esTableContent.querySelector('.el-table__header');
7877
8019
  thead && (eht += thead.offsetHeight);
7878
8020
  }
7879
8021
  if (height > 1 && height - eht > 1) {
7880
- _this13.tableHeight = height;
8022
+ _this15.tableHeight = height;
7881
8023
  } else {
7882
- console.warn(_this13.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
8024
+ console.warn(_this15.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7883
8025
  }
7884
8026
  } else if (!warn) {
7885
8027
  setTimeout(function () {
7886
- _this13.resetHeight(true);
8028
+ _this15.resetHeight(true);
7887
8029
  }, 1000);
7888
8030
  }
7889
8031
  }
@@ -7904,7 +8046,7 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7904
8046
  }
7905
8047
  },
7906
8048
  handleFilterColumn: function handleFilterColumn() {
7907
- this.$refs.sizer.show();
8049
+ this.showSizer = true;
7908
8050
  },
7909
8051
  handleSortChange: function handleSortChange(res) {
7910
8052
  if (res.data && res.data.length) {
@@ -7916,31 +8058,44 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7916
8058
  this.$emit('update-drag-sort', data, event);
7917
8059
  },
7918
8060
  mergeThead: function mergeThead(res) {
7919
- var _this14 = this;
8061
+ var _this16 = this;
7920
8062
 
7921
- this.theadData = res;
8063
+ this.show = false;
8064
+ this.theadData = [];
7922
8065
  this.icon = true;
7923
- setTimeout(function () {
7924
- _this14.show = true;
7925
- }, 100);
8066
+ this.showSizer = false;
8067
+ // if (!this.showTotal) {
8068
+ // for (let i = 0; i < res.length; i++) {
8069
+ // if (res[i].total) {
8070
+ // this.showTotal = true;
8071
+ // break;
8072
+ // }
8073
+ // }
8074
+ // }
8075
+ this.$nextTick(function () {
8076
+ _this16.theadData = res;
8077
+ setTimeout(function () {
8078
+ _this16.show = true;
8079
+ }, 500);
8080
+ });
7926
8081
  },
7927
8082
  setOptions: function setOptions(val, sysCode) {
7928
8083
  this.$set(this.options, sysCode, val);
7929
8084
  },
7930
8085
  bindEventBus: function bindEventBus() {
7931
- var _this15 = this;
8086
+ var _this17 = this;
7932
8087
 
7933
8088
  this.sysCodes.forEach(function (item) {
7934
8089
  bus["a" /* default */].$on(item, function (val) {
7935
- _this15.setOptions(val, item);
8090
+ _this17.setOptions(val, item);
7936
8091
  });
7937
8092
  });
7938
8093
  },
7939
8094
  unbindEventBus: function unbindEventBus() {
7940
- var _this16 = this;
8095
+ var _this18 = this;
7941
8096
 
7942
8097
  this.sysCodes.forEach(function (item) {
7943
- bus["a" /* default */].$off(item, _this16.setOptions);
8098
+ bus["a" /* default */].$off(item, _this18.setOptions);
7944
8099
  });
7945
8100
  },
7946
8101
  reset: function reset() {
@@ -7960,7 +8115,7 @@ var systemMode = util["a" /* default */].win.top.systemMode || util["a" /* defau
7960
8115
 
7961
8116
  var main_component = Object(componentNormalizer["a" /* default */])(
7962
8117
  src_mainvue_type_script_lang_js_,
7963
- mainvue_type_template_id_3a307e68_render,
8118
+ mainvue_type_template_id_d6bac15c_render,
7964
8119
  staticRenderFns,
7965
8120
  false,
7966
8121
  null,