eoss-ui 0.5.94 → 0.5.95

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
@@ -3979,7 +3979,7 @@ module.exports = require("wujie-vue2");
3979
3979
  // ESM COMPAT FLAG
3980
3980
  __webpack_require__.r(__webpack_exports__);
3981
3981
 
3982
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=24977ea8&
3982
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=f52b5d68&
3983
3983
  var render = function () {
3984
3984
  var _vm = this
3985
3985
  var _h = _vm.$createElement
@@ -4045,31 +4045,6 @@ var render = function () {
4045
4045
  ]
4046
4046
  )
4047
4047
  }),
4048
- _c("transition", { attrs: { name: "launch-fade" } }, [
4049
- _c(
4050
- "div",
4051
- {
4052
- directives: [
4053
- {
4054
- name: "show",
4055
- rawName: "v-show",
4056
- value: _vm.launchShow,
4057
- expression: "launchShow",
4058
- },
4059
- ],
4060
- staticClass: "es-launch-image",
4061
- style: _vm._launchImage,
4062
- },
4063
- [
4064
- _c("p", { staticClass: "es-launch-text es-launch-user-name" }, [
4065
- _vm._v(_vm._s(_vm.userName) + ",你好!"),
4066
- ]),
4067
- _c("p", { staticClass: "es-launch-text es-launch-system-name" }, [
4068
- _vm._v("\n 欢迎进入" + _vm._s(_vm.sysName) + "\n "),
4069
- ]),
4070
- ]
4071
- ),
4072
- ]),
4073
4048
  ],
4074
4049
  2
4075
4050
  )
@@ -4078,13 +4053,13 @@ var staticRenderFns = []
4078
4053
  render._withStripped = true
4079
4054
 
4080
4055
 
4081
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=24977ea8&
4056
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=f52b5d68&
4082
4057
 
4083
4058
  // EXTERNAL MODULE: ./src/config/image.js
4084
4059
  var config_image = __webpack_require__(18);
4085
4060
 
4086
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=797818d8&scoped=true&
4087
- var simplicityvue_type_template_id_797818d8_scoped_true_render = function () {
4061
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=3284b186&scoped=true&
4062
+ var simplicityvue_type_template_id_3284b186_scoped_true_render = function () {
4088
4063
  var _vm = this
4089
4064
  var _h = _vm.$createElement
4090
4065
  var _c = _vm._self._c || _h
@@ -4710,11 +4685,11 @@ var simplicityvue_type_template_id_797818d8_scoped_true_render = function () {
4710
4685
  ),
4711
4686
  ])
4712
4687
  }
4713
- var simplicityvue_type_template_id_797818d8_scoped_true_staticRenderFns = []
4714
- simplicityvue_type_template_id_797818d8_scoped_true_render._withStripped = true
4688
+ var simplicityvue_type_template_id_3284b186_scoped_true_staticRenderFns = []
4689
+ simplicityvue_type_template_id_3284b186_scoped_true_render._withStripped = true
4715
4690
 
4716
4691
 
4717
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=797818d8&scoped=true&
4692
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=3284b186&scoped=true&
4718
4693
 
4719
4694
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=1560e8bf&scoped=true&
4720
4695
  var avatarvue_type_template_id_1560e8bf_scoped_true_render = function () {
@@ -11154,7 +11129,7 @@ var events = [function (tabs, index, that) {
11154
11129
  }).then(function () {
11155
11130
  util["a" /* default */].ajax({ method: 'post', url: api["eb" /* logout */] }).then(function (res) {
11156
11131
  if (res.rCode == 0) {
11157
- util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
11132
+ util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
11158
11133
  if (_this8.onQuit && typeof _this8.onQuit === 'function') {
11159
11134
  _this8.onQuit();
11160
11135
  } else {
@@ -11335,18 +11310,18 @@ var events = [function (tabs, index, that) {
11335
11310
 
11336
11311
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
11337
11312
  src_simplicityvue_type_script_lang_js_,
11338
- simplicityvue_type_template_id_797818d8_scoped_true_render,
11339
- simplicityvue_type_template_id_797818d8_scoped_true_staticRenderFns,
11313
+ simplicityvue_type_template_id_3284b186_scoped_true_render,
11314
+ simplicityvue_type_template_id_3284b186_scoped_true_staticRenderFns,
11340
11315
  false,
11341
11316
  null,
11342
- "797818d8",
11317
+ "3284b186",
11343
11318
  null
11344
11319
 
11345
11320
  )
11346
11321
 
11347
11322
  /* harmony default export */ var simplicity = (simplicity_component.exports);
11348
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=3665477e&
11349
- var defaultvue_type_template_id_3665477e_render = function () {
11323
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=118f98c2&
11324
+ var defaultvue_type_template_id_118f98c2_render = function () {
11350
11325
  var _vm = this
11351
11326
  var _h = _vm.$createElement
11352
11327
  var _c = _vm._self._c || _h
@@ -11733,11 +11708,11 @@ var defaultvue_type_template_id_3665477e_render = function () {
11733
11708
  1
11734
11709
  )
11735
11710
  }
11736
- var defaultvue_type_template_id_3665477e_staticRenderFns = []
11737
- defaultvue_type_template_id_3665477e_render._withStripped = true
11711
+ var defaultvue_type_template_id_118f98c2_staticRenderFns = []
11712
+ defaultvue_type_template_id_118f98c2_render._withStripped = true
11738
11713
 
11739
11714
 
11740
- // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=3665477e&
11715
+ // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=118f98c2&
11741
11716
 
11742
11717
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=d207c2e8&
11743
11718
  var userinfovue_type_template_id_d207c2e8_render = function () {
@@ -13816,7 +13791,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
13816
13791
  default: true
13817
13792
  },
13818
13793
  loadHomePage: {
13819
- type: [Boolean, String],
13794
+ type: Boolean,
13820
13795
  default: true
13821
13796
  },
13822
13797
  appCode: String,
@@ -14007,6 +13982,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14007
13982
  selectPage: '',
14008
13983
  //主页面
14009
13984
  homePage: '',
13985
+ isLoadHomePage: this.loadHomePage,
14010
13986
  //header背景
14011
13987
  mainLogo: null,
14012
13988
  headerImg: this.headerImage,
@@ -14060,8 +14036,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14060
14036
  },
14061
14037
  created: function created() {
14062
14038
  var params = util["a" /* default */].getParams() || {};
14063
- if (typeof this.loadHomePage === 'string') {
14064
- this.homePage = this.loadHomePage;
14039
+ if (params.homePage == 0) {
14040
+ this.isLoadHomePage = false;
14065
14041
  }
14066
14042
  this.isHeader = params.header;
14067
14043
  var sysLogoIco = sessionStorage.getItem('sysLogoIco');
@@ -14233,29 +14209,30 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14233
14209
  if (i === 'initApplication' && results[i]) {
14234
14210
  this.results[i] = results[i].split(',');
14235
14211
  }
14236
- if (i === 'indexUrl' && results[i] && this.loadHomePage) {
14237
- var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
14238
- var hash = util["a" /* default */].win.location.hash;
14239
- if (hash) {
14240
- hash = hash.split('?')[0];
14241
- }
14242
- var jump = sessionStorage.getItem('jump');
14243
- if (!applicationid && !this.menuCode && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
14244
- this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : results[i];
14245
- if (this.isHomePage && this.homePage) {
14246
- if (this.menus && this.menus.length) {
14247
- var ids = null;
14248
- this.homePage && (ids = this.getId(this.menus, this.homePage));
14249
- if (ids) {
14250
- this.defaultActive = ids;
14251
- } else if (this.homePage) {
14252
- this.handleJump(this.homePage);
14212
+ if (i === 'indexUrl' && results[i]) {
14213
+ this.homePage = results[i];
14214
+ if (this.isLoadHomePage) {
14215
+ var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
14216
+ var hash = util["a" /* default */].win.location.hash;
14217
+ if (hash) {
14218
+ hash = hash.split('?')[0];
14219
+ }
14220
+ var jump = sessionStorage.getItem('jump');
14221
+ if (!applicationid && !this.menuCode && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
14222
+ if (this.isHomePage) {
14223
+ if (this.menus && this.menus.length) {
14224
+ var ids = ids = this.getId(this.menus, this.homePage);
14225
+ if (ids) {
14226
+ this.defaultActive = ids;
14227
+ } else {
14228
+ this.handleJump(this.homePage);
14229
+ }
14230
+ this.setMenu(this.menus);
14253
14231
  }
14254
- this.setMenu(this.menus);
14255
14232
  }
14233
+ } else if (this.menus && this.menus.length) {
14234
+ this.setMenu(this.menus);
14256
14235
  }
14257
- } else if (this.menus && this.menus.length) {
14258
- this.setMenu(this.menus);
14259
14236
  }
14260
14237
  }
14261
14238
  if (i === 'doorIndex' && results[i]) {
@@ -14563,9 +14540,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14563
14540
  this.isDefault = false;
14564
14541
  this.setDefault(res, this.defaultActive);
14565
14542
  } else {
14566
- if (this.homePage || !util["a" /* default */].getStorage('mainConfig')) {
14567
- this.isDefault = true;
14568
- if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
14543
+ if (this.homePage) {
14544
+ this.isDefault = this.isLoadHomePage;
14545
+ if (this.isLoadHomePage && (!this.defaultActive || !this.defaultActive.length)) {
14569
14546
  var _ids6 = this.getId(this.menus, this.homePage);
14570
14547
  if (_ids6) {
14571
14548
  this.defaultActive = _ids6;
@@ -15399,8 +15376,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15399
15376
 
15400
15377
  var default_component = Object(componentNormalizer["a" /* default */])(
15401
15378
  src_defaultvue_type_script_lang_js_,
15402
- defaultvue_type_template_id_3665477e_render,
15403
- defaultvue_type_template_id_3665477e_staticRenderFns,
15379
+ defaultvue_type_template_id_118f98c2_render,
15380
+ defaultvue_type_template_id_118f98c2_staticRenderFns,
15404
15381
  false,
15405
15382
  null,
15406
15383
  null,
@@ -15455,15 +15432,6 @@ var external_wujie_vue2_default = /*#__PURE__*/__webpack_require__.n(external_wu
15455
15432
  //
15456
15433
  //
15457
15434
  //
15458
- //
15459
- //
15460
- //
15461
- //
15462
- //
15463
- //
15464
- //
15465
- //
15466
- //
15467
15435
 
15468
15436
 
15469
15437
 
@@ -15515,18 +15483,10 @@ var bus = external_wujie_vue2_default.a.bus;
15515
15483
  appCode: '',
15516
15484
  params: {},
15517
15485
  dialogs: [],
15518
- visibles: [],
15519
- sysName: '',
15520
- userName: '',
15521
- launchShow: this.launch,
15522
- showLaunch: false,
15523
- launchImages: this.launchImage,
15524
- launchKey: 'day',
15525
- launchTimer: null
15486
+ visibles: []
15526
15487
  };
15527
15488
  },
15528
15489
  created: function created() {
15529
- this.init();
15530
15490
  this.params = util["a" /* default */].getParams() || {};
15531
15491
  this.sysCode = this.params.sysCode;
15532
15492
  this.appCode = this.params.appCode;
@@ -15590,47 +15550,13 @@ var bus = external_wujie_vue2_default.a.bus;
15590
15550
  },
15591
15551
 
15592
15552
  methods: {
15593
- /**
15594
- * @desc:初始化
15595
- * @author huangbo
15596
- * @date 2024年9月7日
15597
- **/
15598
- init: function init() {
15599
- var _this2 = this;
15600
-
15601
- this.userName = util["a" /* default */].getStorage('userName');
15602
- this.sysName = util["a" /* default */].getStorage('sysName');
15603
- this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
15604
- var showLaunch = sessionStorage.getItem('showLaunch');
15605
- var launch = sessionStorage.getItem('launch');
15606
- var launchImage = sessionStorage.getItem('launchImage');
15607
- var launchTime = util["a" /* default */].getStorage('launchTime');
15608
- if (launchImage) {
15609
- this.launchImages = JSON.parse(launchImage);
15610
- }
15611
- if (showLaunch) {
15612
- this.launchShow = false;
15613
- } else if (launch) {
15614
- if (launch == 'true') {
15615
- this.launchShow = true;
15616
- clearTimeout(this.launchTimer);
15617
- this.launchTimer = setTimeout(function () {
15618
- _this2.launchShow = false;
15619
- sessionStorage.setItem('showLaunch', 1);
15620
- }, launchTime ? parseInt(launchTime, 10) : this.launchTime);
15621
- } else {
15622
- this.launchShow = false;
15623
- }
15624
- }
15625
- },
15626
-
15627
15553
  /**
15628
15554
  * @desc:重新登录
15629
15555
  * @author huangbo
15630
15556
  * @date 2024年9月7日
15631
15557
  **/
15632
15558
  handleReLogin: function handleReLogin(res) {
15633
- var _this3 = this;
15559
+ var _this2 = this;
15634
15560
 
15635
15561
  if (res && typeof res == 'string') {
15636
15562
  res = JSON.parse(res);
@@ -15661,8 +15587,8 @@ var bus = external_wujie_vue2_default.a.bus;
15661
15587
  this.timer = setTimeout(function () {
15662
15588
  console.log('handleReLogin');
15663
15589
  sessionStorage.setItem('remind', 1);
15664
- _this3.$confirm(msg, btn).then(function () {
15665
- util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
15590
+ _this2.$confirm(msg, btn).then(function () {
15591
+ util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
15666
15592
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
15667
15593
  try {
15668
15594
  if (loginPage) {
@@ -15708,7 +15634,7 @@ var bus = external_wujie_vue2_default.a.bus;
15708
15634
  * @date 2024年9月7日
15709
15635
  **/
15710
15636
  getConfig: function getConfig(query) {
15711
- var _this4 = this;
15637
+ var _this3 = this;
15712
15638
 
15713
15639
  var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
15714
15640
  if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
@@ -15717,28 +15643,10 @@ var bus = external_wujie_vue2_default.a.bus;
15717
15643
  var mainConfig = util["a" /* default */].getStorage('mainConfig');
15718
15644
  if (!mainConfig || mainConfig == '{}') {
15719
15645
  util["a" /* default */].getMainConfig(function (res) {
15720
- _this4.userName = res.results.userModel.username || res.userModel.userName;
15721
- _this4.sysName = res.subsystemName;
15722
- if (res.subsystemExtend && res.subsystemExtend.launchImage) {
15723
- if (!_this4.launchShow) {
15724
- _this4.launchShow = true;
15725
- clearTimeout(_this4.launchTimer);
15726
- _this4.launchTimer = setTimeout(function () {
15727
- _this4.launchShow = false;
15728
- sessionStorage.setItem('showLaunch', 1);
15729
- }, res.subsystemExtend.launchTime ? parseInt(res.subsystemExtend.launchTime, 10) : _this4.launchTime);
15730
- }
15731
- if (res.subsystemExtend.launchImage != 'true' && res.subsystemExtend.launchImage != true) {
15732
- _this4.launchImages = res.subsystemExtend.launchImage.indexOf('{') > -1 && res.subsystemExtend.launchImage.indexOf('}') > -1 ? JSON.parse(res.subsystemExtend.launchImage) : res.subsystemExtend.launchImage;
15733
- }
15734
- sessionStorage.setItem('launchImage', JSON.stringify(_this4.launchImages));
15735
- }
15736
- _this4.$refs.main.init(res);
15646
+ _this3.$refs.main.init(res);
15737
15647
  });
15738
15648
  } else {
15739
15649
  mainConfig = JSON.parse(mainConfig);
15740
- this.userName = mainConfig.userModel.username || mainConfig.userModel.userName;
15741
- this.sysName = mainConfig.subsystemName;
15742
15650
  }
15743
15651
  },
15744
15652
 
package/lib/table-form.js CHANGED
@@ -3796,8 +3796,8 @@ module.exports = require("json-bigint");
3796
3796
  // ESM COMPAT FLAG
3797
3797
  __webpack_require__.r(__webpack_exports__);
3798
3798
 
3799
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=38b43090&
3800
- var tablevue_type_template_id_38b43090_render = function () {
3799
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=270d4342&
3800
+ var tablevue_type_template_id_270d4342_render = function () {
3801
3801
  var _vm = this
3802
3802
  var _h = _vm.$createElement
3803
3803
  var _c = _vm._self._c || _h
@@ -6590,10 +6590,10 @@ var tablevue_type_template_id_38b43090_render = function () {
6590
6590
  )
6591
6591
  }
6592
6592
  var staticRenderFns = []
6593
- tablevue_type_template_id_38b43090_render._withStripped = true
6593
+ tablevue_type_template_id_270d4342_render._withStripped = true
6594
6594
 
6595
6595
 
6596
- // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=38b43090&
6596
+ // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=270d4342&
6597
6597
 
6598
6598
  // EXTERNAL MODULE: ./src/utils/rules.js
6599
6599
  var rules = __webpack_require__(14);
@@ -7955,6 +7955,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
7955
7955
  this.cols = widths;
7956
7956
  },
7957
7957
  handleClick: function handleClick(res) {
7958
+ if (res.event && typeof res.event === 'function') {
7959
+ res.event(res);
7960
+ }
7958
7961
  this.$emit('btnClick', res, this.models);
7959
7962
  this.$emit('btn-click', res, this.models);
7960
7963
  },
@@ -8019,7 +8022,7 @@ var componentNormalizer = __webpack_require__(3);
8019
8022
 
8020
8023
  var component = Object(componentNormalizer["a" /* default */])(
8021
8024
  src_tablevue_type_script_lang_js_,
8022
- tablevue_type_template_id_38b43090_render,
8025
+ tablevue_type_template_id_270d4342_render,
8023
8026
  staticRenderFns,
8024
8027
  false,
8025
8028
  null,
package/lib/upload.js CHANGED
@@ -3977,8 +3977,8 @@ module.exports = require("js-base64");
3977
3977
  // ESM COMPAT FLAG
3978
3978
  __webpack_require__.r(__webpack_exports__);
3979
3979
 
3980
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=12134e47&
3981
- var mainvue_type_template_id_12134e47_render = function () {
3980
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=2842c2fa&
3981
+ var mainvue_type_template_id_2842c2fa_render = function () {
3982
3982
  var _vm = this
3983
3983
  var _h = _vm.$createElement
3984
3984
  var _c = _vm._self._c || _h
@@ -4359,10 +4359,10 @@ var mainvue_type_template_id_12134e47_render = function () {
4359
4359
  : _vm._e()
4360
4360
  }
4361
4361
  var staticRenderFns = []
4362
- mainvue_type_template_id_12134e47_render._withStripped = true
4362
+ mainvue_type_template_id_2842c2fa_render._withStripped = true
4363
4363
 
4364
4364
 
4365
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=12134e47&
4365
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=2842c2fa&
4366
4366
 
4367
4367
  // EXTERNAL MODULE: ./src/config/api.js
4368
4368
  var api = __webpack_require__(1);
@@ -4985,8 +4985,6 @@ var _props;
4985
4985
  });
4986
4986
  this.filesTotalSize = filesTotalSize;
4987
4987
  this.$emit('input', val);
4988
- } else {
4989
- this.getFiles(this.params);
4990
4988
  }
4991
4989
  }
4992
4990
  },
@@ -5095,6 +5093,7 @@ var _props;
5095
5093
  dochubConfig: _this3.dochubConfig
5096
5094
  });
5097
5095
  }
5096
+ _this3.getFiles(_this3.params);
5098
5097
  }
5099
5098
  }).catch(function (err) {
5100
5099
  if (err.message && err.message !== 'canceled') {
@@ -5110,9 +5109,10 @@ var _props;
5110
5109
  if (!this.show || this.fileList && Array.isArray(this.fileList) && this.fileList.length || this.requiredOwnId && !Object.prototype.hasOwnProperty.call(params, 'ownId')) {
5111
5110
  return false;
5112
5111
  }
5112
+ var url = typeof this.fileList === 'string' ? this.fileList : this.dochubConfig.getDocumentList ? this.dochubConfig.getDocumentList : api["z" /* getAdjunctFileInfos */];
5113
5113
  util["a" /* default */].ajax({
5114
5114
  method: this.method,
5115
- url: this.getAdjunctFileInfos,
5115
+ url: url,
5116
5116
  data: params,
5117
5117
  params: params,
5118
5118
  format: false
@@ -5507,7 +5507,7 @@ var componentNormalizer = __webpack_require__(3);
5507
5507
 
5508
5508
  var component = Object(componentNormalizer["a" /* default */])(
5509
5509
  src_mainvue_type_script_lang_js_,
5510
- mainvue_type_template_id_12134e47_render,
5510
+ mainvue_type_template_id_2842c2fa_render,
5511
5511
  staticRenderFns,
5512
5512
  false,
5513
5513
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.94",
3
+ "version": "0.5.95",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
Binary file
@@ -97,11 +97,14 @@
97
97
  ></es-icon>
98
98
  </template>
99
99
  </el-table-column>
100
- <el-table-column
100
+ <template
101
101
  v-else-if="item.type === 'index' || item.type === 'selection'"
102
- :key="item.key || item.label || item.title || index"
103
- v-bind="dragSort ? { ...item, fixed: false } : item"
104
- ></el-table-column>
102
+ >
103
+ <el-table-column
104
+ :key="item.key || item.label || item.title || index"
105
+ v-bind="dragSort ? { ...item, fixed: false } : item"
106
+ ></el-table-column>
107
+ </template>
105
108
  <template v-else>
106
109
  <children
107
110
  :tag="item.tag"
@@ -1368,6 +1368,9 @@ export default {
1368
1368
  this.cols = widths;
1369
1369
  },
1370
1370
  handleClick(res) {
1371
+ if (res.event && typeof res.event === 'function') {
1372
+ res.event(res);
1373
+ }
1371
1374
  this.$emit('btnClick', res, this.models);
1372
1375
  this.$emit('btn-click', res, this.models);
1373
1376
  },
Binary file
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ul class="es-handler">
3
- <li v-for="(item, index) in lists" :key="index" class="es-handler-item">
4
- <template v-if="!item.hide">
3
+ <template v-for="(item, index) in lists">
4
+ <li v-if="!item.hide" :key="index" class="es-handler-item">
5
5
  <es-handle-user
6
6
  v-if="item.type === 'user'"
7
7
  class="es-handler-user"
@@ -99,8 +99,8 @@
99
99
  :class="item.icon"
100
100
  @click.stop="handleClick(item)"
101
101
  ></div>
102
- </template>
103
- </li>
102
+ </li>
103
+ </template>
104
104
  </ul>
105
105
  </template>
106
106
  <script>
@@ -314,8 +314,7 @@ export default {
314
314
  'menus',
315
315
  'useCaseCodes',
316
316
  'mainConfig',
317
- 'jump',
318
- 'showLaunch'
317
+ 'jump'
319
318
  ]);
320
319
  if (this.onQuit && typeof this.onQuit === 'function') {
321
320
  this.onQuit();
Binary file
@@ -862,10 +862,7 @@ export default {
862
862
  showLaunch: false,
863
863
  launchImages: this.launchImage,
864
864
  launchKey: 'day',
865
- launchTime: {
866
- type: Number,
867
- default: 3000
868
- }
865
+ launchTime: 3000
869
866
  };
870
867
  },
871
868
  beforeCreate() {
@@ -880,12 +877,10 @@ export default {
880
877
  'deviceUnique',
881
878
  'userId',
882
879
  'userName',
883
- 'useCaseCodes',
884
- 'showLaunch'
880
+ 'useCaseCodes'
885
881
  ]);
886
882
  },
887
883
  created() {
888
- sessionStorage.setItem('launchImage', JSON.stringify(this.launchImages));
889
884
  this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
890
885
  if (ceshi == 'true' || ceshi == true) {
891
886
  this.loginModel = '0';
@@ -1082,7 +1077,7 @@ export default {
1082
1077
  async getLogin() {
1083
1078
  const config = util.getStorage('initLogin');
1084
1079
  if (config) {
1085
- this.setConfig(config);
1080
+ this.setConfig(JSON.parse(config));
1086
1081
  }
1087
1082
  await util
1088
1083
  .ajax({ url: this.initLogin })
@@ -1134,7 +1129,6 @@ export default {
1134
1129
  downloads['linux'] = res.linuxDownloadUrl;
1135
1130
  }
1136
1131
  this.sysName = res.subsystemName;
1137
- sessionStorage.setItem('sysName', this.sysName);
1138
1132
  this.secret = res.secret;
1139
1133
  this.setup = res.setup;
1140
1134
  this.downloadSetup = res.downloadSetup;
@@ -1220,19 +1214,11 @@ export default {
1220
1214
  this.warningText = res.subsystemExtend.warningText;
1221
1215
  }
1222
1216
  if (res.subsystemExtend.launchTime) {
1223
- sessionStorage.setItem('launchTime', res.subsystemExtend.launchTime);
1217
+ this.launchTime = parseInt(res.subsystemExtend.launchTime, 10);
1224
1218
  }
1225
1219
  if (res.subsystemExtend.launchImage) {
1226
1220
  if (!this.launchShow) {
1227
1221
  this.launchShow = true;
1228
- setTimeout(
1229
- () => {
1230
- this.launchShow = false;
1231
- },
1232
- res.subsystemExtend.launchTime
1233
- ? parseInt(res.subsystemExtend.launchTime)
1234
- : this.launchTime
1235
- );
1236
1222
  }
1237
1223
  if (
1238
1224
  res.subsystemExtend.launchImage != 'true' &&
@@ -1244,10 +1230,6 @@ export default {
1244
1230
  ? JSON.parse(res.subsystemExtend.launchImage)
1245
1231
  : res.subsystemExtend.launchImage;
1246
1232
  }
1247
- sessionStorage.setItem(
1248
- 'launchImage',
1249
- JSON.stringify(this.launchImages)
1250
- );
1251
1233
  }
1252
1234
  }
1253
1235
  this.passModifyModel = res.passModifyModel;
@@ -1576,12 +1558,7 @@ export default {
1576
1558
  useCaseCodes: results.resourceCodes
1577
1559
  }
1578
1560
  });
1579
- if (
1580
- this.launchShow &&
1581
- !this.toUrl &&
1582
- !results.doorIndex &&
1583
- !this.doorIndex
1584
- ) {
1561
+ if (this.launchShow) {
1585
1562
  this.$message({
1586
1563
  message: '登录成功!',
1587
1564
  type: 'success',
@@ -1589,18 +1566,22 @@ export default {
1589
1566
  });
1590
1567
  this.showLaunch = true;
1591
1568
  setTimeout(() => {
1592
- sessionStorage.setItem('showLaunch', 1);
1593
- if (window.location.href.indexOf('login.html') > -1) {
1594
- window.location.href = './main.html';
1569
+ if (this.toUrl) {
1570
+ window.location.href = this.toUrl;
1571
+ } else if (results.doorIndex && this.doorIndex) {
1572
+ sessionStorage.setItem('doorIndex', results.doorIndex);
1573
+ localStorage.setItem('isLogined', true);
1574
+ window.location.href = results.doorIndex;
1595
1575
  } else {
1596
- this.$router.push({ name: 'main' });
1576
+ if (window.location.href.indexOf('login.html') > -1) {
1577
+ window.location.href = './main.html';
1578
+ } else {
1579
+ this.$router.push({ name: 'main' });
1580
+ }
1597
1581
  }
1598
1582
  this.showLaunch = false;
1599
- }, 3000);
1583
+ }, this.launchTime);
1600
1584
  } else {
1601
- if (this.launchShow) {
1602
- sessionStorage.setItem('launch', this.launchShow);
1603
- }
1604
1585
  this.$message({
1605
1586
  message: '登录成功!',
1606
1587
  type: 'success',
Binary file
Binary file