eoss-ui 0.5.81-beta1 → 0.5.81-beta11

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 (119) hide show
  1. package/lib/button-group.js +3 -1
  2. package/lib/button.js +3 -1
  3. package/lib/checkbox-group.js +3 -1
  4. package/lib/config/api.js +1 -0
  5. package/lib/data-table-form.js +3 -1
  6. package/lib/data-table.js +151 -128
  7. package/lib/date-picker.js +3 -1
  8. package/lib/dialog.js +9 -6
  9. package/lib/eoss-ui.common.js +2638 -1494
  10. package/lib/flow-group.js +6 -4
  11. package/lib/flow-list.js +3 -1
  12. package/lib/flow.js +3 -1
  13. package/lib/form.js +50 -5
  14. package/lib/handle-user.js +19 -4
  15. package/lib/handler.js +15 -4
  16. package/lib/icon.js +17 -8
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +3 -1
  19. package/lib/input.js +3 -1
  20. package/lib/login.js +11 -7
  21. package/lib/main.js +1968 -984
  22. package/lib/nav.js +3 -1
  23. package/lib/notify.js +3 -1
  24. package/lib/page.js +3 -1
  25. package/lib/pagination.js +3717 -3
  26. package/lib/player.js +3 -1
  27. package/lib/qr-code.js +3 -1
  28. package/lib/radio-group.js +3 -1
  29. package/lib/retrial-auth.js +3 -1
  30. package/lib/select-ganged.js +3 -1
  31. package/lib/select.js +4 -2
  32. package/lib/selector-panel.js +68 -18
  33. package/lib/selector.js +11 -5
  34. package/lib/sizer.js +3 -1
  35. package/lib/steps.js +3 -1
  36. package/lib/switch.js +3 -1
  37. package/lib/table-form.js +3 -1
  38. package/lib/tabs.js +3 -1
  39. package/lib/theme-chalk/base.css +1 -1
  40. package/lib/theme-chalk/button-group.css +1 -1
  41. package/lib/theme-chalk/data-table.css +1 -1
  42. package/lib/theme-chalk/form.css +1 -1
  43. package/lib/theme-chalk/handler.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/theme-chalk/main.css +1 -1
  46. package/lib/theme-chalk/menu.css +1 -1
  47. package/lib/theme-chalk/nav.css +1 -1
  48. package/lib/theme-chalk/pagination.css +1 -1
  49. package/lib/theme-chalk/selector-panel.css +1 -1
  50. package/lib/theme-chalk/simplicity.css +1 -1
  51. package/lib/theme-chalk/sizer.css +1 -1
  52. package/lib/theme-chalk/tree.css +1 -1
  53. package/lib/theme-chalk/upload.css +1 -1
  54. package/lib/tips.js +3 -1
  55. package/lib/tree-group.js +3 -1
  56. package/lib/tree.js +3 -1
  57. package/lib/upload.js +9 -7
  58. package/lib/wujie.js +3 -1
  59. package/lib/wxlogin.js +3 -1
  60. package/package.json +2 -2
  61. package/packages/data-table/src/main.vue +55 -29
  62. package/packages/dialog/src/main.vue +4 -3
  63. package/packages/flow-group/src/main.vue +1 -1
  64. package/packages/form/src/main.vue +45 -10
  65. package/packages/handle-user/src/main.vue +10 -3
  66. package/packages/handler/src/main.vue +5 -3
  67. package/packages/icon/src/main.vue +12 -5
  68. package/packages/login/src/main.vue +10 -4
  69. package/packages/main/src/default/index.vue +17 -15
  70. package/packages/main/src/main.vue +16 -12
  71. package/packages/main/src/public/online.vue +90 -0
  72. package/packages/main/src/simplicity/apps.vue +176 -145
  73. package/packages/main/src/simplicity/avatar.vue +16 -6
  74. package/packages/main/src/simplicity/handler.vue +5 -1
  75. package/packages/main/src/simplicity/index.vue +393 -188
  76. package/packages/main/src/simplicity/menu-list.vue +74 -24
  77. package/packages/main/src/simplicity/message.vue +35 -25
  78. package/packages/main/src/simplicity/notice.vue +72 -39
  79. package/packages/main/src/simplicity/router-page.vue +53 -0
  80. package/packages/main/src/simplicity/settings.vue +1 -1
  81. package/packages/main/src/simplicity/sub-menu.vue +159 -57
  82. package/packages/main/src/simplicity/user.vue +10 -5
  83. package/packages/main/src/simplicity/userinfo.vue +1 -0
  84. package/packages/pagination/src/main.vue +20 -1
  85. package/packages/select/src/main.vue +4 -1
  86. package/packages/selector/src/main.vue +6 -2
  87. package/packages/selector-panel/src/main.vue +22 -8
  88. package/packages/selector-panel/src/selection.vue +6 -0
  89. package/packages/theme-chalk/lib/base.css +1 -1
  90. package/packages/theme-chalk/lib/button-group.css +1 -1
  91. package/packages/theme-chalk/lib/data-table.css +1 -1
  92. package/packages/theme-chalk/lib/form.css +1 -1
  93. package/packages/theme-chalk/lib/handler.css +1 -1
  94. package/packages/theme-chalk/lib/index.css +1 -1
  95. package/packages/theme-chalk/lib/main.css +1 -1
  96. package/packages/theme-chalk/lib/menu.css +1 -1
  97. package/packages/theme-chalk/lib/nav.css +1 -1
  98. package/packages/theme-chalk/lib/pagination.css +1 -1
  99. package/packages/theme-chalk/lib/selector-panel.css +1 -1
  100. package/packages/theme-chalk/lib/simplicity.css +1 -1
  101. package/packages/theme-chalk/lib/sizer.css +1 -1
  102. package/packages/theme-chalk/lib/tree.css +1 -1
  103. package/packages/theme-chalk/lib/upload.css +1 -1
  104. package/packages/theme-chalk/src/base.scss +5 -0
  105. package/packages/theme-chalk/src/button-group.scss +3 -3
  106. package/packages/theme-chalk/src/common/var.scss +6 -0
  107. package/packages/theme-chalk/src/data-table.scss +10 -10
  108. package/packages/theme-chalk/src/form.scss +2 -4
  109. package/packages/theme-chalk/src/handler.scss +5 -1
  110. package/packages/theme-chalk/src/login.scss +2 -2
  111. package/packages/theme-chalk/src/nav.scss +3 -2
  112. package/packages/theme-chalk/src/pagination.scss +7 -0
  113. package/packages/theme-chalk/src/selector-panel.scss +2 -1
  114. package/packages/theme-chalk/src/simplicity.scss +340 -58
  115. package/packages/theme-chalk/src/tree.scss +4 -2
  116. package/packages/upload/src/main.vue +3 -1
  117. package/src/config/api.js +1 -0
  118. package/src/index.js +157 -157
  119. package/CHANGELOG.md +0 -929
package/lib/data-table.js CHANGED
@@ -3267,6 +3267,7 @@ var watermark = function watermark(option) {
3267
3267
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return scanCodeRetrialAuth; });
3268
3268
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return codeRetrialAuth; });
3269
3269
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doAssistanceQrLogin; });
3270
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return userOnline; });
3270
3271
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return mainConfig; });
3271
3272
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return initUserSet; });
3272
3273
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return updateUserInfo; });
@@ -3337,7 +3338,7 @@ var watermark = function watermark(option) {
3337
3338
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return endFlowHtml; });
3338
3339
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return handleInfo; });
3339
3340
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return loginUserInfo; });
3340
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return wss; });
3341
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return wss; });
3341
3342
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return topic; });
3342
3343
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getPresetCustomInfo; });
3343
3344
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getPresetNodeInfo; });
@@ -3395,6 +3396,7 @@ var codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth'; // 二级身份验证
3395
3396
  var doAssistanceQrLogin = '/sso2/signIn/auth/doAssistanceQrLogin'; // 二级身份验证-验证码验证
3396
3397
 
3397
3398
  // 框架
3399
+ var userOnline = 'sys/v1/mecpSys/userOnlineListJson.dhtml'; // 在线人数列表
3398
3400
  var mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
3399
3401
  var initUserSet = '/main2/main/initUserSet'; // 获取用户信息
3400
3402
  var updateUserInfo = '/main2/main/updateUserInfo'; // 更新用户信息
@@ -3929,8 +3931,8 @@ module.exports = require("vue");
3929
3931
  // ESM COMPAT FLAG
3930
3932
  __webpack_require__.r(__webpack_exports__);
3931
3933
 
3932
- // 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=825eabd0&
3933
- var mainvue_type_template_id_825eabd0_render = function () {
3934
+ // 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=39809074&
3935
+ var mainvue_type_template_id_39809074_render = function () {
3934
3936
  var _vm = this
3935
3937
  var _h = _vm.$createElement
3936
3938
  var _c = _vm._self._c || _h
@@ -3951,7 +3953,7 @@ var mainvue_type_template_id_825eabd0_render = function () {
3951
3953
  attrs: {
3952
3954
  "label-width": "0",
3953
3955
  "element-loading-background": "rgba(0, 0, 0, 0.65)",
3954
- model: _vm.tag === "div" ? "" : _vm.datas,
3956
+ model: _vm.tag === "div" ? "" : _vm.list,
3955
3957
  "element-loading-text": _vm.tableLoadingText,
3956
3958
  },
3957
3959
  },
@@ -4017,10 +4019,10 @@ var mainvue_type_template_id_825eabd0_render = function () {
4017
4019
  (_vm.theadBorder && _vm.border != "none"
4018
4020
  ? " es-thead-border"
4019
4021
  : ""),
4020
- attrs: { data: _vm.datas },
4022
+ attrs: { data: _vm.list },
4021
4023
  on: {
4022
4024
  "update:data": function ($event) {
4023
- _vm.datas = $event
4025
+ _vm.list = $event
4024
4026
  },
4025
4027
  },
4026
4028
  },
@@ -4202,7 +4204,7 @@ var mainvue_type_template_id_825eabd0_render = function () {
4202
4204
  _vm._v("共" + _vm._s(_vm.config.totalCount) + "条,"),
4203
4205
  ]),
4204
4206
  _c("span", [
4205
- _vm._v("已加载" + _vm._s(_vm.datas.length) + "条"),
4207
+ _vm._v("已加载" + _vm._s(_vm.list.length) + "条"),
4206
4208
  ]),
4207
4209
  ])
4208
4210
  : _vm.page
@@ -4212,9 +4214,8 @@ var mainvue_type_template_id_825eabd0_render = function () {
4212
4214
  _vm._b(
4213
4215
  {
4214
4216
  staticClass: "es-table-page",
4215
- style: {
4216
- "text-align": _vm.page.position || "center",
4217
- },
4217
+ style: { "text-align": _vm.page.position },
4218
+ attrs: { position: _vm.page.position },
4218
4219
  },
4219
4220
  "es-pagination",
4220
4221
  _vm.config,
@@ -4241,10 +4242,10 @@ var mainvue_type_template_id_825eabd0_render = function () {
4241
4242
  )
4242
4243
  }
4243
4244
  var staticRenderFns = []
4244
- mainvue_type_template_id_825eabd0_render._withStripped = true
4245
+ mainvue_type_template_id_39809074_render._withStripped = true
4245
4246
 
4246
4247
 
4247
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=825eabd0&
4248
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=39809074&
4248
4249
 
4249
4250
  // EXTERNAL MODULE: ./src/config/api.js
4250
4251
  var api = __webpack_require__(1);
@@ -6385,6 +6386,7 @@ var mainvue_type_script_lang_js_components, _watch;
6385
6386
  //
6386
6387
  //
6387
6388
  //
6389
+ //
6388
6390
 
6389
6391
 
6390
6392
 
@@ -6780,6 +6782,13 @@ var mainvue_type_script_lang_js_components, _watch;
6780
6782
  return this.data;
6781
6783
  },
6782
6784
  set: function set(val) {
6785
+ var _this3 = this;
6786
+
6787
+ if (this.list && this.list.length) {
6788
+ this.$nextTick(function () {
6789
+ _this3.list = val;
6790
+ });
6791
+ }
6783
6792
  this.$emit('update:data', val);
6784
6793
  return val;
6785
6794
  }
@@ -6838,18 +6847,12 @@ var mainvue_type_script_lang_js_components, _watch;
6838
6847
  this.doLayout();
6839
6848
  },
6840
6849
 
6841
- // data: {
6842
- // deep: true,
6843
- // handler(val) {
6844
- // if (
6845
- // this.page &&
6846
- // typeof this.page === 'object' &&
6847
- // !Object.prototype.hasOwnProperty.call(this.page, 'totalCount')
6848
- // ) {
6849
- // this.config.totalCount = val.length - this.lose;
6850
- // }
6851
- // }
6852
- // },
6850
+ data: {
6851
+ deep: true,
6852
+ handler: function handler() {
6853
+ this.list = this.setData();
6854
+ }
6855
+ },
6853
6856
  page: function page() {
6854
6857
  this.resetHeight();
6855
6858
  this.doLayout();
@@ -6873,7 +6876,7 @@ var mainvue_type_script_lang_js_components, _watch;
6873
6876
  }
6874
6877
  },
6875
6878
  checked: function checked(newVal) {
6876
- this.datas.length && this.checkSelect(newVal);
6879
+ this.list.length && this.checkSelect(newVal);
6877
6880
  },
6878
6881
 
6879
6882
  thead: {
@@ -6915,6 +6918,7 @@ var mainvue_type_script_lang_js_components, _watch;
6915
6918
  }, _watch['config.pageNum'] = function configPageNum() {
6916
6919
  if (this.data.length) {
6917
6920
  this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
6921
+ this.list = this.setData();
6918
6922
  }
6919
6923
  }, _watch.height = {
6920
6924
  immediate: true,
@@ -6937,10 +6941,10 @@ var mainvue_type_script_lang_js_components, _watch;
6937
6941
  }
6938
6942
  }, _watch),
6939
6943
  beforeCreate: function beforeCreate() {
6940
- var _this3 = this;
6944
+ var _this4 = this;
6941
6945
 
6942
6946
  this.getTableData = Object(external_throttle_debounce_["debounce"])(500, function (res) {
6943
- _this3.getTableDatas(res);
6947
+ _this4.getTableDatas(res);
6944
6948
  });
6945
6949
  },
6946
6950
  created: function created() {
@@ -6951,11 +6955,30 @@ var mainvue_type_script_lang_js_components, _watch;
6951
6955
  this.chekOpenTotalArea();
6952
6956
  },
6953
6957
  mounted: function mounted() {
6954
- this.datas.length && this.checkSelect(this.checked);
6958
+ if (this.data.length) {
6959
+ this.list = this.setData();
6960
+ }
6961
+ this.list.length && this.checkSelect(this.checked);
6955
6962
  this.resetHeight();
6963
+ if (util["a" /* default */].win.top != util["a" /* default */].win.self) {
6964
+ util["a" /* default */].win.onresize = Object(external_throttle_debounce_["debounce"])(500, this.resetHeight);
6965
+ }
6956
6966
  },
6957
6967
 
6958
6968
  methods: {
6969
+ setData: function setData() {
6970
+ var _this5 = this;
6971
+
6972
+ if (this.page && (_typeof(this.page) === 'object' && (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') || this.page.totalCount == 0) || this.page === true)) {
6973
+ this.config.totalCount = this.data.length - this.lose;
6974
+ }
6975
+ if (this.page && this.data.length > this.config.pageSize) {
6976
+ return this.data.filter(function (item, index) {
6977
+ return index > (_this5.config.pageNum - 1) * _this5.config.pageSize - 1 && index < _this5.config.pageNum * _this5.config.pageSize;
6978
+ });
6979
+ }
6980
+ return this.data;
6981
+ },
6959
6982
  getRequestKey: function getRequestKey(config) {
6960
6983
  var method = config.method,
6961
6984
  url = config.url,
@@ -6965,55 +6988,55 @@ var mainvue_type_script_lang_js_components, _watch;
6965
6988
  return [method, url, external_qs_default.a.stringify(params), external_qs_default.a.stringify(data)].join('&');
6966
6989
  },
6967
6990
  getOptions: function getOptions(res) {
6968
- var _this4 = this;
6991
+ var _this6 = this;
6969
6992
 
6970
6993
  var sysCodes = [];
6971
6994
  res.forEach(function (item) {
6972
6995
  if (item.sysCode || item.url) {
6973
6996
  item.sysCode && sysCodes.push(item.sysCode);
6974
6997
  var params = util["a" /* default */].extend({}, item.sysCode ? { sysAppCode: item.sysCode, code: item.sysCode } : {}, item.param ? item.param : {});
6975
- var key = _this4.getRequestKey({
6976
- method: _this4.method,
6977
- url: item.sysCode ? _this4.findCode : item.url,
6998
+ var key = _this6.getRequestKey({
6999
+ method: _this6.method,
7000
+ url: item.sysCode ? _this6.findCode : item.url,
6978
7001
  params: params,
6979
7002
  data: {}
6980
7003
  });
6981
- if (!_this4.requests.includes(key)) {
7004
+ if (!_this6.requests.includes(key)) {
6982
7005
  util["a" /* default */].ajax({
6983
- url: item.sysCode ? _this4.findCode : item.url,
6984
- method: _this4.method,
7006
+ url: item.sysCode ? _this6.findCode : item.url,
7007
+ method: _this6.method,
6985
7008
  params: params,
6986
7009
  data: params
6987
7010
  }).then(function (res) {
6988
7011
  if (res.rCode === 0) {
6989
7012
  if (item.type == 'ganged') {
6990
- _this4.$set(_this4.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
7013
+ _this6.$set(_this6.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
6991
7014
  if (item.sysCode) {
6992
- bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this4.options[item.sysCode])));
7015
+ bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this6.options[item.sysCode])));
6993
7016
  }
6994
7017
  } else {
6995
- _this4.$set(_this4.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
7018
+ _this6.$set(_this6.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
6996
7019
  if (item.sysCode) {
6997
7020
  bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(res.results)));
6998
7021
  }
6999
7022
  }
7000
- _this4.requests.push(key);
7023
+ _this6.requests.push(key);
7001
7024
  } else {
7002
7025
  var msg = res.msg || '系统错误,请联系管理员!';
7003
- _this4.$message.error(msg);
7026
+ _this6.$message.error(msg);
7004
7027
  }
7005
7028
  }).catch(function (err) {
7006
7029
  if (err.message && err.message !== 'canceled') {
7007
- _this4.$message.error(err.message);
7030
+ _this6.$message.error(err.message);
7008
7031
  }
7009
7032
  });
7010
7033
  }
7011
7034
  } else {
7012
7035
  if (item.childHead && item.childHead.length) {
7013
- _this4.getOptions(item.childHead);
7036
+ _this6.getOptions(item.childHead);
7014
7037
  }
7015
7038
  if (item.children && item.children.length) {
7016
- _this4.getOptions(item.children);
7039
+ _this6.getOptions(item.children);
7017
7040
  }
7018
7041
  }
7019
7042
  });
@@ -7025,7 +7048,7 @@ var mainvue_type_script_lang_js_components, _watch;
7025
7048
  return util["a" /* default */].getObjectType(item) === 'object';
7026
7049
  },
7027
7050
  chekOpenTotalArea: function chekOpenTotalArea() {
7028
- var _this5 = this;
7051
+ var _this7 = this;
7029
7052
 
7030
7053
  if (this.total || this.showSummary) {
7031
7054
  this.showTotal = true;
@@ -7034,7 +7057,7 @@ var mainvue_type_script_lang_js_components, _watch;
7034
7057
  var arr = JSON.parse(JSON.stringify(this.theads));
7035
7058
  arr.forEach(function (item) {
7036
7059
  if (item.total) {
7037
- _this5.showTotal = true;
7060
+ _this7.showTotal = true;
7038
7061
  }
7039
7062
  });
7040
7063
  },
@@ -7081,13 +7104,13 @@ var mainvue_type_script_lang_js_components, _watch;
7081
7104
  }
7082
7105
  },
7083
7106
  getRow: function getRow(thead, obj) {
7084
- var _this6 = this;
7107
+ var _this8 = this;
7085
7108
 
7086
7109
  thead.forEach(function (item) {
7087
7110
  if (item.field) {
7088
7111
  obj[item['field']] = item.defaultValue || '';
7089
7112
  } else if (item.children && item.children.length) {
7090
- _this6.getRow(item.children, obj);
7113
+ _this8.getRow(item.children, obj);
7091
7114
  }
7092
7115
  });
7093
7116
  },
@@ -7114,27 +7137,27 @@ var mainvue_type_script_lang_js_components, _watch;
7114
7137
  });
7115
7138
  },
7116
7139
  checkSelect: function checkSelect(newVal) {
7117
- var _this7 = this;
7140
+ var _this9 = this;
7118
7141
 
7119
7142
  this.$nextTick(function () {
7120
7143
  if (util["a" /* default */].getObjectType(newVal) === 'array') {
7121
7144
  newVal.forEach(function (row) {
7122
7145
  if (util["a" /* default */].isObject(row)) {
7123
- _this7.$refs.oaTable.toggleRowSelection(row, true);
7124
- } else _this7.datas.forEach(function (item) {
7125
- if (item[_this7.checkedKey] === row) {
7126
- _this7.$refs.oaTable.toggleRowSelection(item, true);
7146
+ _this9.$refs.oaTable.toggleRowSelection(row, true);
7147
+ } else _this9.list.forEach(function (item) {
7148
+ if (item[_this9.checkedKey] === row) {
7149
+ _this9.$refs.oaTable.toggleRowSelection(item, true);
7127
7150
  return;
7128
7151
  }
7129
7152
  });
7130
7153
  });
7131
7154
  } else if (newVal === true) {
7132
- _this7.toggleAllSelection();
7155
+ _this9.toggleAllSelection();
7133
7156
  }
7134
7157
  });
7135
7158
  },
7136
7159
  getTheads: function getTheads() {
7137
- var _this8 = this;
7160
+ var _this10 = this;
7138
7161
 
7139
7162
  util["a" /* default */].ajax({
7140
7163
  url: this.thead,
@@ -7146,27 +7169,27 @@ var mainvue_type_script_lang_js_components, _watch;
7146
7169
  if (res.rCode === 0) {
7147
7170
  var results = res.results;
7148
7171
  if (Array.isArray(results)) {
7149
- _this8.theadData = results;
7172
+ _this10.theadData = results;
7150
7173
  } else {
7151
- _this8.theadData = results.theadData || [];
7152
- _this8.list = results.data || results.records || [];
7153
- _this8.config.totalCount = results.count || results.total || results.totalCount;
7154
- _this8.getOptions(_this8.theadData);
7174
+ _this10.theadData = results.theadData || [];
7175
+ _this10.list = results.data || results.records || [];
7176
+ _this10.config.totalCount = results.count || results.total || results.totalCount;
7177
+ _this10.getOptions(_this10.theadData);
7155
7178
  }
7156
7179
  } else {
7157
- _this8.theadData = [];
7180
+ _this10.theadData = [];
7158
7181
  var msg = res.msg || '系统错误,请联系管理员!';
7159
- _this8.$message.error(msg);
7182
+ _this10.$message.error(msg);
7160
7183
  }
7161
- _this8.$emit('success', res);
7184
+ _this10.$emit('success', res);
7162
7185
  }).catch(function (err) {
7163
7186
  if (err.message && err.message !== 'canceled') {
7164
- _this8.$message.error(err.message);
7187
+ _this10.$message.error(err.message);
7165
7188
  }
7166
7189
  });
7167
7190
  },
7168
7191
  getTableDatas: function getTableDatas(res) {
7169
- var _this9 = this;
7192
+ var _this11 = this;
7170
7193
 
7171
7194
  var where = void 0;
7172
7195
  var first = void 0;
@@ -7206,42 +7229,42 @@ var mainvue_type_script_lang_js_components, _watch;
7206
7229
  params: reqData,
7207
7230
  data: reqData
7208
7231
  })).then(function (res) {
7209
- _this9.tableLoading = false;
7232
+ _this11.tableLoading = false;
7210
7233
  if (res.rCode === 0 || res.status === 'success') {
7211
- if (_this9.isReload) {
7212
- _this9.list = [];
7213
- _this9.isReload = false;
7234
+ if (_this11.isReload) {
7235
+ _this11.list = [];
7236
+ _this11.isReload = false;
7214
7237
  }
7215
- var results = _this9.parseData !== undefined ? _this9.parseData(res.results || res.data || res) : res.results || res.data;
7216
- if (_this9.infiniteScroll) {
7217
- _this9.list = _this9.list.concat(results.data || results.records || results.list);
7218
- _this9.config.pageNum += 1;
7238
+ var results = _this11.parseData !== undefined ? _this11.parseData(res.results || res.data || res) : res.results || res.data;
7239
+ if (_this11.infiniteScroll) {
7240
+ _this11.list = _this11.list.concat(results.data || results.records || results.list);
7241
+ _this11.config.pageNum += 1;
7219
7242
  } else {
7220
- _this9.$nextTick(function () {
7221
- _this9.list = results.data || results.records || results.list || [];
7222
- _this9.$refs.oaTable && _this9.$refs.oaTable.resetScroll && _this9.$refs.oaTable.resetScroll(0, 0);
7243
+ _this11.list = results.data || results.records || results.list;
7244
+ _this11.$nextTick(function () {
7245
+ _this11.$refs.oaTable && _this11.$refs.oaTable.resetScroll && _this11.$refs.oaTable.resetScroll(0, 0);
7223
7246
  });
7224
7247
  }
7225
- _this9.config.totalCount = results.count || results.total || results.totalCount;
7226
- _this9.checked && _this9.$nextTick(function () {
7227
- _this9.checkSelect(_this9.checked);
7248
+ _this11.config.totalCount = results.count || results.total || results.totalCount;
7249
+ _this11.checked && _this11.$nextTick(function () {
7250
+ _this11.checkSelect(_this11.checked);
7228
7251
  });
7229
- if (_this9.infiniteScroll && _this9.config.totalCount === _this9.list.length) {
7230
- _this9.infiniteDisabled = true;
7252
+ if (_this11.infiniteScroll && _this11.config.totalCount === _this11.list.length) {
7253
+ _this11.infiniteDisabled = true;
7231
7254
  }
7232
7255
  } else {
7233
- _this9.list = [];
7256
+ _this11.list = [];
7234
7257
  //this.tableHeight = false;
7235
7258
  var msg = res.msg || '系统错误,请联系管理员!';
7236
- _this9.$message.error(msg);
7259
+ _this11.$message.error(msg);
7237
7260
  }
7238
- _this9.$emit('success', res);
7261
+ _this11.$emit('success', res);
7239
7262
  }).catch(function (err) {
7240
7263
  //this.tableHeight = false;
7241
7264
  if (err.message && err.message !== 'canceled') {
7242
- _this9.$message.error(err.message);
7265
+ _this11.$message.error(err.message);
7243
7266
  }
7244
- _this9.tableLoading = false;
7267
+ _this11.tableLoading = false;
7245
7268
  });
7246
7269
  },
7247
7270
  selectionChange: function selectionChange(data) {
@@ -7276,17 +7299,17 @@ var mainvue_type_script_lang_js_components, _watch;
7276
7299
  this.$refs.oaTable.sort(prop, order);
7277
7300
  },
7278
7301
  formBlur: function formBlur(data) {
7279
- this.$emit('blur', data, this.datas);
7302
+ this.$emit('blur', data, this.list);
7280
7303
  },
7281
7304
  formFocus: function formFocus(data) {
7282
- this.$emit('focus', data, this.datas);
7305
+ this.$emit('focus', data, this.list);
7283
7306
  },
7284
7307
  formChange: function formChange(data) {
7285
- this.$emit('edit', data, this.datas);
7286
- this.$emit('change', data, this.datas);
7308
+ this.$emit('edit', data, this.list);
7309
+ this.$emit('change', data, this.list);
7287
7310
  },
7288
7311
  handleAjax: function handleAjax(handle, row) {
7289
- var _this10 = this;
7312
+ var _this12 = this;
7290
7313
 
7291
7314
  this.changeLoading(true, handle.text + '\u4E2D...');
7292
7315
  var params = handle.param || {};
@@ -7342,9 +7365,9 @@ var mainvue_type_script_lang_js_components, _watch;
7342
7365
  method: handle.method,
7343
7366
  format: handle.format
7344
7367
  })).then(function (res) {
7345
- _this10.changeLoading(false);
7368
+ _this12.changeLoading(false);
7346
7369
  if (res.rCode === 0) {
7347
- _this10.$message({
7370
+ _this12.$message({
7348
7371
  message: handle.text + '\u6210\u529F',
7349
7372
  duration: 2000,
7350
7373
  type: 'success',
@@ -7352,17 +7375,17 @@ var mainvue_type_script_lang_js_components, _watch;
7352
7375
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
7353
7376
  var reload = handle.reload || true;
7354
7377
  if (reload) {
7355
- _this10.reload({}, first);
7378
+ _this12.reload({}, first);
7356
7379
  }
7357
7380
  }
7358
7381
  });
7359
7382
  } else {
7360
- _this10.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7383
+ _this12.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7361
7384
  }
7362
7385
  }).catch(function (err) {
7363
- _this10.changeLoading(false);
7386
+ _this12.changeLoading(false);
7364
7387
  if (err.message && err.message !== 'canceled') {
7365
- _this10.$message.error(err.message);
7388
+ _this12.$message.error(err.message);
7366
7389
  }
7367
7390
  });
7368
7391
  },
@@ -7387,7 +7410,7 @@ var mainvue_type_script_lang_js_components, _watch;
7387
7410
  return mainvue_type_script_lang_js_extends({}, obj, item);
7388
7411
  },
7389
7412
  handleClick: function handleClick(res) {
7390
- var _this11 = this;
7413
+ var _this13 = this;
7391
7414
 
7392
7415
  var row = res.row,
7393
7416
  handle = res.handle;
@@ -7423,7 +7446,7 @@ var mainvue_type_script_lang_js_components, _watch;
7423
7446
  cancelButtonText: '取消',
7424
7447
  type: 'warning'
7425
7448
  }).then(function () {
7426
- _this11.handleAjax(handle, rows);
7449
+ _this13.handleAjax(handle, rows);
7427
7450
  }).catch(function () {});
7428
7451
  } else {
7429
7452
  this.handleAjax(handle, rows);
@@ -7433,7 +7456,7 @@ var mainvue_type_script_lang_js_components, _watch;
7433
7456
  handle.event(mainvue_type_script_lang_js_extends({
7434
7457
  ele: this,
7435
7458
  thead: thead,
7436
- data: this.datas,
7459
+ data: this.list,
7437
7460
  selected: rows
7438
7461
  }, res));
7439
7462
  } else if (handle.event === 'add' || handle.event === 'edit' || handle.event === 'look') {
@@ -7511,18 +7534,18 @@ var mainvue_type_script_lang_js_components, _watch;
7511
7534
  var type = ['selection', 'index', 'expand'];
7512
7535
  thead = thead.map(function (item) {
7513
7536
  return item.filter(function (ele) {
7514
- return !type.includes(ele.type) && ele.label !== text && !_this11.exportExcludeLabel.includes(ele.label);
7537
+ return !type.includes(ele.type) && ele.label !== text && !_this13.exportExcludeLabel.includes(ele.label);
7515
7538
  });
7516
7539
  });
7517
7540
  util["a" /* default */].exportXls({
7518
7541
  thead: thead,
7519
- data: this.datas,
7542
+ data: this.list,
7520
7543
  name: this.fileName,
7521
7544
  option: this.optionDatas
7522
7545
  });
7523
7546
  }
7524
- this.$emit('btnClick', res, this.datas, thead, rows);
7525
- this.$emit('btn-click', res, this.datas, thead, rows);
7547
+ this.$emit('btnClick', res, this.list, thead, rows);
7548
+ this.$emit('btn-click', res, this.list, thead, rows);
7526
7549
  }
7527
7550
  },
7528
7551
  sizeChange: function sizeChange(res) {
@@ -7612,40 +7635,40 @@ var mainvue_type_script_lang_js_components, _watch;
7612
7635
  }
7613
7636
  },
7614
7637
  resetHeight: function resetHeight(warn) {
7615
- var _this12 = this;
7638
+ var _this14 = this;
7616
7639
 
7617
7640
  this.$nextTick(function () {
7618
- if (_this12.full && !_this12.height && !_this12.maxHeight) {
7619
- var height = _this12.$el.parentNode.offsetHeight;
7641
+ if (_this14.full && !_this14.height && !_this14.maxHeight) {
7642
+ var height = _this14.$el.parentNode.offsetHeight;
7620
7643
  if (height) {
7621
- height = parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'height', '%'), 10);
7622
- height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'padding-bottom'), 10);
7623
- for (var i = 0; i < _this12.$el.parentNode.childNodes.length; i++) {
7624
- var ele = _this12.$el.parentNode.childNodes[i];
7625
- if (ele !== _this12.$el && ele.offsetHeight !== undefined) {
7644
+ height = parseInt(util["a" /* default */].getStyle(_this14.$el.parentNode, 'height', '%'), 10);
7645
+ height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this14.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this14.$el.parentNode, 'padding-bottom'), 10);
7646
+ for (var i = 0; i < _this14.$el.parentNode.childNodes.length; i++) {
7647
+ var ele = _this14.$el.parentNode.childNodes[i];
7648
+ if (ele !== _this14.$el && ele.offsetHeight !== undefined) {
7626
7649
  height = height - ele.offsetHeight - parseInt(util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
7627
7650
  }
7628
7651
  }
7629
- height -= _this12.showToolbar ? 45 : 0;
7630
- height -= _this12.page === false ? 0 : 46;
7631
- height -= _this12.title ? _this12.$refs.title.offsetHeight : 0;
7632
- height -= parseInt(util["a" /* default */].getStyle(_this12.$refs.esTableContent, 'padding-top'), 10);
7633
- height -= parseInt(util["a" /* default */].getStyle(_this12.$refs.esTableContent, 'padding-bottom'), 10);
7634
- var emptyText = _this12.$refs.esTableContent.querySelector('.el-table__empty-text');
7652
+ height -= _this14.showToolbar ? 45 : 0;
7653
+ height -= _this14.page === false ? 0 : 46;
7654
+ height -= _this14.title ? _this14.$refs.title.offsetHeight : 0;
7655
+ height -= parseInt(util["a" /* default */].getStyle(_this14.$refs.esTableContent, 'padding-top'), 10);
7656
+ height -= parseInt(util["a" /* default */].getStyle(_this14.$refs.esTableContent, 'padding-bottom'), 10);
7657
+ var emptyText = _this14.$refs.esTableContent.querySelector('.el-table__empty-text');
7635
7658
  var eht = 0;
7636
7659
  if (emptyText) {
7637
7660
  eht = emptyText.offsetHeight;
7638
- var thead = _this12.$refs.esTableContent.querySelector('.el-table__header');
7661
+ var thead = _this14.$refs.esTableContent.querySelector('.el-table__header');
7639
7662
  thead && (eht += thead.offsetHeight);
7640
7663
  }
7641
7664
  if (height > 1 && height - eht > 1) {
7642
- _this12.tableHeight = height;
7665
+ _this14.tableHeight = height;
7643
7666
  } else {
7644
- console.warn(_this12.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7667
+ console.warn(_this14.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7645
7668
  }
7646
7669
  } else if (!warn) {
7647
7670
  setTimeout(function () {
7648
- _this12.resetHeight(true);
7671
+ _this14.resetHeight(true);
7649
7672
  }, 1000);
7650
7673
  }
7651
7674
  }
@@ -7678,31 +7701,31 @@ var mainvue_type_script_lang_js_components, _watch;
7678
7701
  this.$emit('update-drag-sort', data, event);
7679
7702
  },
7680
7703
  mergeThead: function mergeThead(res) {
7681
- var _this13 = this;
7704
+ var _this15 = this;
7682
7705
 
7683
7706
  this.theadData = res;
7684
7707
  this.icon = true;
7685
7708
  setTimeout(function () {
7686
- _this13.show = true;
7709
+ _this15.show = true;
7687
7710
  }, 100);
7688
7711
  },
7689
7712
  setOptions: function setOptions(val, sysCode) {
7690
7713
  this.$set(this.options, sysCode, val);
7691
7714
  },
7692
7715
  bindEventBus: function bindEventBus() {
7693
- var _this14 = this;
7716
+ var _this16 = this;
7694
7717
 
7695
7718
  this.sysCodes.forEach(function (item) {
7696
7719
  bus["a" /* default */].$on(item, function (val) {
7697
- _this14.setOptions(val, item);
7720
+ _this16.setOptions(val, item);
7698
7721
  });
7699
7722
  });
7700
7723
  },
7701
7724
  unbindEventBus: function unbindEventBus() {
7702
- var _this15 = this;
7725
+ var _this17 = this;
7703
7726
 
7704
7727
  this.sysCodes.forEach(function (item) {
7705
- bus["a" /* default */].$off(item, _this15.setOptions);
7728
+ bus["a" /* default */].$off(item, _this17.setOptions);
7706
7729
  });
7707
7730
  },
7708
7731
  reset: function reset() {
@@ -7722,7 +7745,7 @@ var mainvue_type_script_lang_js_components, _watch;
7722
7745
 
7723
7746
  var main_component = Object(componentNormalizer["a" /* default */])(
7724
7747
  src_mainvue_type_script_lang_js_,
7725
- mainvue_type_template_id_825eabd0_render,
7748
+ mainvue_type_template_id_39809074_render,
7726
7749
  staticRenderFns,
7727
7750
  false,
7728
7751
  null,