eoss-ui 0.5.93 → 0.5.94

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 (83) hide show
  1. package/lib/button-group.js +198 -210
  2. package/lib/button.js +2 -2
  3. package/lib/calendar.js +2 -2
  4. package/lib/card.js +2 -2
  5. package/lib/cascader.js +2 -2
  6. package/lib/checkbox-group.js +3 -2
  7. package/lib/clients.js +2 -2
  8. package/lib/config/image.js +3 -0
  9. package/lib/data-table-form.js +3 -2
  10. package/lib/data-table.js +3 -2
  11. package/lib/date-picker.js +2 -2
  12. package/lib/dialog.js +6 -5
  13. package/lib/enterprise.js +2 -2
  14. package/lib/eoss-ui.common.js +375 -148
  15. package/lib/error-page.js +2 -2
  16. package/lib/flow-group.js +2 -2
  17. package/lib/flow-list.js +4 -4
  18. package/lib/flow.js +6 -5
  19. package/lib/form.js +6 -5
  20. package/lib/handle-user.js +2 -2
  21. package/lib/handler.js +2 -2
  22. package/lib/icon.js +9 -9
  23. package/lib/icons.js +4 -4
  24. package/lib/index.js +1 -1
  25. package/lib/input-number.js +2 -2
  26. package/lib/input.js +2 -2
  27. package/lib/label.js +2 -2
  28. package/lib/layout.js +2 -2
  29. package/lib/login.js +235 -114
  30. package/lib/main.js +153 -24
  31. package/lib/menu.js +2 -2
  32. package/lib/nav.js +2 -2
  33. package/lib/notify.js +2 -2
  34. package/lib/page.js +2 -2
  35. package/lib/pagination.js +2 -2
  36. package/lib/player.js +8 -8
  37. package/lib/qr-code.js +4 -4
  38. package/lib/radio-group.js +2 -2
  39. package/lib/retrial-auth.js +2 -2
  40. package/lib/select-ganged.js +2 -2
  41. package/lib/select.js +2 -2
  42. package/lib/selector-panel.js +6 -5
  43. package/lib/selector.js +11 -11
  44. package/lib/sizer.js +2 -2
  45. package/lib/steps.js +2 -2
  46. package/lib/switch.js +9 -9
  47. package/lib/table-form.js +2 -2
  48. package/lib/tabs-panel.js +2 -2
  49. package/lib/tabs.js +2 -2
  50. package/lib/theme-chalk/base.css +1 -1
  51. package/lib/theme-chalk/index.css +1 -1
  52. package/lib/theme-chalk/main.css +1 -1
  53. package/lib/theme-chalk/menu.css +1 -1
  54. package/lib/theme-chalk/simplicity.css +1 -1
  55. package/lib/theme-chalk/sizer.css +1 -1
  56. package/lib/theme-chalk/upload.css +1 -1
  57. package/lib/tips.js +2 -2
  58. package/lib/toolbar.js +2 -2
  59. package/lib/tree-group.js +2 -2
  60. package/lib/tree.js +2 -2
  61. package/lib/upload.js +6 -5
  62. package/lib/wujie.js +2 -2
  63. package/lib/wxlogin.js +145 -145
  64. package/package.json +1 -1
  65. package/packages/.DS_Store +0 -0
  66. package/packages/form/src/main.vue +1 -1
  67. package/packages/login/.DS_Store +0 -0
  68. package/packages/login/src/main.vue +116 -19
  69. package/packages/main/src/main.vue +113 -3
  70. package/packages/main/src/simplicity/index.vue +1 -1
  71. package/packages/theme-chalk/lib/base.css +1 -1
  72. package/packages/theme-chalk/lib/index.css +1 -1
  73. package/packages/theme-chalk/lib/main.css +1 -1
  74. package/packages/theme-chalk/lib/menu.css +1 -1
  75. package/packages/theme-chalk/lib/simplicity.css +1 -1
  76. package/packages/theme-chalk/lib/sizer.css +1 -1
  77. package/packages/theme-chalk/lib/upload.css +1 -1
  78. package/packages/theme-chalk/src/base.scss +41 -0
  79. package/packages/theme-chalk/src/main.scss +3 -0
  80. package/packages/theme-chalk/src/menu.scss +8 -0
  81. package/src/.DS_Store +0 -0
  82. package/src/config/image.js +2 -0
  83. package/src/index.js +1 -1
package/lib/toolbar.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 80);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 81);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 80:
195
+ /***/ 81:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/tree-group.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 66);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 67);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3764,7 +3764,7 @@ module.exports = require("json-bigint");
3764
3764
 
3765
3765
  /***/ }),
3766
3766
 
3767
- /***/ 66:
3767
+ /***/ 67:
3768
3768
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3769
3769
 
3770
3770
  "use strict";
package/lib/tree.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 65);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 66);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3771,7 +3771,7 @@ module.exports = require("json-bigint");
3771
3771
 
3772
3772
  /***/ }),
3773
3773
 
3774
- /***/ 65:
3774
+ /***/ 66:
3775
3775
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3776
3776
 
3777
3777
  "use strict";
package/lib/upload.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 35);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 36);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -3954,13 +3954,13 @@ window.__store = store;
3954
3954
  /* 22 */,
3955
3955
  /* 23 */,
3956
3956
  /* 24 */,
3957
- /* 25 */
3957
+ /* 25 */,
3958
+ /* 26 */
3958
3959
  /***/ (function(module, exports) {
3959
3960
 
3960
3961
  module.exports = require("js-base64");
3961
3962
 
3962
3963
  /***/ }),
3963
- /* 26 */,
3964
3964
  /* 27 */,
3965
3965
  /* 28 */,
3966
3966
  /* 29 */,
@@ -3969,7 +3969,8 @@ module.exports = require("js-base64");
3969
3969
  /* 32 */,
3970
3970
  /* 33 */,
3971
3971
  /* 34 */,
3972
- /* 35 */
3972
+ /* 35 */,
3973
+ /* 36 */
3973
3974
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3974
3975
 
3975
3976
  "use strict";
@@ -4392,7 +4393,7 @@ var util = __webpack_require__(0);
4392
4393
  var store = __webpack_require__(12);
4393
4394
 
4394
4395
  // EXTERNAL MODULE: external "js-base64"
4395
- var external_js_base64_ = __webpack_require__(25);
4396
+ var external_js_base64_ = __webpack_require__(26);
4396
4397
 
4397
4398
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=script&lang=js&
4398
4399
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
package/lib/wujie.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 68);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 69);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3764,7 +3764,7 @@ module.exports = require("json-bigint");
3764
3764
 
3765
3765
  /***/ }),
3766
3766
 
3767
- /***/ 68:
3767
+ /***/ 69:
3768
3768
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3769
3769
 
3770
3770
  "use strict";
package/lib/wxlogin.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 69);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 70);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3764,7 +3764,150 @@ module.exports = require("json-bigint");
3764
3764
 
3765
3765
  /***/ }),
3766
3766
 
3767
- /***/ 69:
3767
+ /***/ 7:
3768
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3769
+
3770
+ "use strict";
3771
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3772
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
3773
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
3774
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
3775
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3776
+
3777
+
3778
+
3779
+
3780
+ var WebSocket = function () {
3781
+ // 构造函数
3782
+ function WebSocket() {
3783
+ _classCallCheck(this, WebSocket);
3784
+
3785
+ this.host = sessionStorage.getItem('wshost') || '';
3786
+ this.tryTimes = 1; // 重连次数
3787
+ this.callback = null; // 回调函数
3788
+ this.client = null; // stomp对象
3789
+ this.reconTimeout = null; // 重连延时器
3790
+ this.debug = true; // 调试
3791
+ this.interval = 20; // 重连间隔时间
3792
+ this.vm = null;
3793
+ this.nextDate = 0;
3794
+ this.connects = 1;
3795
+ this.recon = false;
3796
+ this.sendTimeout = null;
3797
+ this.socket = null;
3798
+ this.subscription = null;
3799
+ }
3800
+
3801
+ /** socket连接 */
3802
+
3803
+
3804
+ WebSocket.prototype.connect = function connect() {
3805
+ var _this = this;
3806
+
3807
+ if (!this.client) {
3808
+ // 连接SockJS
3809
+ this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
3810
+ this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
3811
+ }
3812
+
3813
+ // 日志不打印
3814
+ if (!this.debug) {
3815
+ this.client.debug = function () {};
3816
+ }
3817
+
3818
+ // 向服务器发起websocket连接
3819
+ this.client.connect({}, function () {
3820
+ _this.recon = true;
3821
+ // tryTimes定义重置
3822
+ _this.connects = 1;
3823
+ // 订阅消息
3824
+ _this.subscribe();
3825
+ }, function (error) {
3826
+ _this.unsubscribe();
3827
+ _this.client = null;
3828
+ var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3829
+ if (_this.connects > 5 && diffSecond < _this.interval) {
3830
+ _this.error && _this.error(error);
3831
+ } else {
3832
+ _this.reconTimeout = setTimeout(function () {
3833
+ _this.connect();
3834
+ _this.connects++;
3835
+ }, 5000);
3836
+ }
3837
+ });
3838
+ }; // 清除订阅
3839
+
3840
+
3841
+ WebSocket.prototype.unsubscribe = function unsubscribe() {
3842
+ if (this.subscription) {
3843
+ this.subscription.unsubscribe();
3844
+ this.subscription = null;
3845
+ }
3846
+ };
3847
+ /** 订阅服务端 */
3848
+
3849
+
3850
+ WebSocket.prototype.subscribe = function subscribe() {
3851
+ var _this2 = this;
3852
+
3853
+ // 订阅服务端提供的某个topic
3854
+ this.subscription = this.client.subscribe(this.take, function (response) {
3855
+ if (response && (_this2.callback || _this2.success)) {
3856
+ var callback = _this2.callback || _this2.success;
3857
+ callback(JSON.parse(response.body));
3858
+ }
3859
+ });
3860
+ };
3861
+
3862
+ /** 赋值、初始化socket */
3863
+
3864
+
3865
+ WebSocket.prototype.init = function init(option, vm) {
3866
+ for (var i in option) {
3867
+ this[i] = option[i];
3868
+ }
3869
+ this.vm = vm;
3870
+ // 初始化连接
3871
+ this.connect();
3872
+ };
3873
+
3874
+ /** 发送消息 */
3875
+
3876
+
3877
+ WebSocket.prototype.send = function send(data) {
3878
+ var _this3 = this;
3879
+
3880
+ if (this.recon) {
3881
+ clearTimeout(this.sendTimeout);
3882
+ this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
3883
+ } else {
3884
+ this.sendTimeout = setTimeout(function () {
3885
+ _this3.send(data);
3886
+ }, 1000);
3887
+ }
3888
+ };
3889
+
3890
+ /** 销毁 */
3891
+
3892
+
3893
+ WebSocket.prototype.destroy = function destroy() {
3894
+ // 断开连接,清除定时器
3895
+ this.unsubscribe();
3896
+ if (this.client) {
3897
+ this.client.disconnect();
3898
+ };
3899
+ this.reconTimeout && clearTimeout(this.reconTimeout);
3900
+ this.sendTimeout && clearTimeout(this.sendTimeout);
3901
+ };
3902
+
3903
+ return WebSocket;
3904
+ }();
3905
+
3906
+ /* harmony default export */ __webpack_exports__["a"] = (WebSocket);
3907
+
3908
+ /***/ }),
3909
+
3910
+ /***/ 70:
3768
3911
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3769
3912
 
3770
3913
  "use strict";
@@ -3969,149 +4112,6 @@ main.install = function (Vue) {
3969
4112
 
3970
4113
  /***/ }),
3971
4114
 
3972
- /***/ 7:
3973
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3974
-
3975
- "use strict";
3976
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3977
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
3978
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
3979
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
3980
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3981
-
3982
-
3983
-
3984
-
3985
- var WebSocket = function () {
3986
- // 构造函数
3987
- function WebSocket() {
3988
- _classCallCheck(this, WebSocket);
3989
-
3990
- this.host = sessionStorage.getItem('wshost') || '';
3991
- this.tryTimes = 1; // 重连次数
3992
- this.callback = null; // 回调函数
3993
- this.client = null; // stomp对象
3994
- this.reconTimeout = null; // 重连延时器
3995
- this.debug = true; // 调试
3996
- this.interval = 20; // 重连间隔时间
3997
- this.vm = null;
3998
- this.nextDate = 0;
3999
- this.connects = 1;
4000
- this.recon = false;
4001
- this.sendTimeout = null;
4002
- this.socket = null;
4003
- this.subscription = null;
4004
- }
4005
-
4006
- /** socket连接 */
4007
-
4008
-
4009
- WebSocket.prototype.connect = function connect() {
4010
- var _this = this;
4011
-
4012
- if (!this.client) {
4013
- // 连接SockJS
4014
- this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
4015
- this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
4016
- }
4017
-
4018
- // 日志不打印
4019
- if (!this.debug) {
4020
- this.client.debug = function () {};
4021
- }
4022
-
4023
- // 向服务器发起websocket连接
4024
- this.client.connect({}, function () {
4025
- _this.recon = true;
4026
- // tryTimes定义重置
4027
- _this.connects = 1;
4028
- // 订阅消息
4029
- _this.subscribe();
4030
- }, function (error) {
4031
- _this.unsubscribe();
4032
- _this.client = null;
4033
- var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
4034
- if (_this.connects > 5 && diffSecond < _this.interval) {
4035
- _this.error && _this.error(error);
4036
- } else {
4037
- _this.reconTimeout = setTimeout(function () {
4038
- _this.connect();
4039
- _this.connects++;
4040
- }, 5000);
4041
- }
4042
- });
4043
- }; // 清除订阅
4044
-
4045
-
4046
- WebSocket.prototype.unsubscribe = function unsubscribe() {
4047
- if (this.subscription) {
4048
- this.subscription.unsubscribe();
4049
- this.subscription = null;
4050
- }
4051
- };
4052
- /** 订阅服务端 */
4053
-
4054
-
4055
- WebSocket.prototype.subscribe = function subscribe() {
4056
- var _this2 = this;
4057
-
4058
- // 订阅服务端提供的某个topic
4059
- this.subscription = this.client.subscribe(this.take, function (response) {
4060
- if (response && (_this2.callback || _this2.success)) {
4061
- var callback = _this2.callback || _this2.success;
4062
- callback(JSON.parse(response.body));
4063
- }
4064
- });
4065
- };
4066
-
4067
- /** 赋值、初始化socket */
4068
-
4069
-
4070
- WebSocket.prototype.init = function init(option, vm) {
4071
- for (var i in option) {
4072
- this[i] = option[i];
4073
- }
4074
- this.vm = vm;
4075
- // 初始化连接
4076
- this.connect();
4077
- };
4078
-
4079
- /** 发送消息 */
4080
-
4081
-
4082
- WebSocket.prototype.send = function send(data) {
4083
- var _this3 = this;
4084
-
4085
- if (this.recon) {
4086
- clearTimeout(this.sendTimeout);
4087
- this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
4088
- } else {
4089
- this.sendTimeout = setTimeout(function () {
4090
- _this3.send(data);
4091
- }, 1000);
4092
- }
4093
- };
4094
-
4095
- /** 销毁 */
4096
-
4097
-
4098
- WebSocket.prototype.destroy = function destroy() {
4099
- // 断开连接,清除定时器
4100
- this.unsubscribe();
4101
- if (this.client) {
4102
- this.client.disconnect();
4103
- };
4104
- this.reconTimeout && clearTimeout(this.reconTimeout);
4105
- this.sendTimeout && clearTimeout(this.sendTimeout);
4106
- };
4107
-
4108
- return WebSocket;
4109
- }();
4110
-
4111
- /* harmony default export */ __webpack_exports__["a"] = (WebSocket);
4112
-
4113
- /***/ }),
4114
-
4115
4115
  /***/ 8:
4116
4116
  /***/ (function(module, exports) {
4117
4117
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.93",
3
+ "version": "0.5.94",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
Binary file
@@ -2731,7 +2731,7 @@ export default {
2731
2731
  this.$refs.esForm &&
2732
2732
  this.$refs.esForm.$el.addEventListener('keyup', this.handleEnter);
2733
2733
  setTimeout(() => {
2734
- this.$refs.scrollbar.update();
2734
+ this.$refs.scrollbar && this.$refs.scrollbar.update();
2735
2735
  }, 3000);
2736
2736
  });
2737
2737
  },
Binary file
@@ -311,7 +311,7 @@
311
311
  <slot name="button"></slot>
312
312
  <span @click="downloadExe">初次使用请下载一键安装包</span>
313
313
  </div>
314
- <div class="es-warning" v-if="warning">
314
+ <div class="es-warning" v-if="warnInfo">
315
315
  {{ warnInfo }}
316
316
  </div>
317
317
  </div>
@@ -371,6 +371,14 @@
371
371
  >
372
372
  <es-qr-code :content="checkCode" v-if="checkCode"></es-qr-code>
373
373
  </es-dialog>
374
+ <transition name="launch-fade">
375
+ <div class="es-launch-image" :style="_launchImage" v-show="showLaunch">
376
+ <p class="es-launch-text es-launch-user-name">{{ userName }},你好!</p>
377
+ <p class="es-launch-text es-launch-system-name">
378
+ 欢迎进入{{ sysName }}
379
+ </p>
380
+ </div>
381
+ </transition>
374
382
  </div>
375
383
  </template>
376
384
  <script>
@@ -393,6 +401,7 @@ import {
393
401
  doAssistanceQrLogin
394
402
  } from 'eoss-ui/src/config/api.js';
395
403
  const ceshi = util.getParams('ceshi');
404
+ import { dayImg, nightImg } from 'eoss-ui/src/config/image';
396
405
  export default {
397
406
  name: 'EsLogin',
398
407
  inheritAttrs: false,
@@ -410,6 +419,7 @@ export default {
410
419
  type: String,
411
420
  default: 'default'
412
421
  },
422
+ launch: Boolean,
413
423
  param: {
414
424
  type: Object,
415
425
  default() {
@@ -598,7 +608,16 @@ export default {
598
608
  },
599
609
  isScale: Boolean,
600
610
  showIosTips: Boolean,
601
- safe: Boolean
611
+ safe: Boolean,
612
+ launchImage: {
613
+ type: [String, Object],
614
+ default() {
615
+ return {
616
+ day: dayImg,
617
+ night: nightImg
618
+ };
619
+ }
620
+ }
602
621
  },
603
622
  computed: {
604
623
  transform() {
@@ -707,6 +726,12 @@ export default {
707
726
  (this.passModifyModel.indexOf('6') > -1 ||
708
727
  this.passModifyModel.indexOf('11') > -1)
709
728
  );
729
+ },
730
+ _launchImage() {
731
+ let img = util.isObject(this.launchImages)
732
+ ? this.launchImages[this.launchKey]
733
+ : this.launchImages;
734
+ return { 'background-image': `url(${img})` };
710
735
  }
711
736
  },
712
737
  watch: {
@@ -831,6 +856,15 @@ export default {
831
856
  event.preventDefault();
832
857
  return false;
833
858
  }
859
+ },
860
+ userName: '',
861
+ launchShow: this.launch,
862
+ showLaunch: false,
863
+ launchImages: this.launchImage,
864
+ launchKey: 'day',
865
+ launchTime: {
866
+ type: Number,
867
+ default: 3000
834
868
  }
835
869
  };
836
870
  },
@@ -851,6 +885,8 @@ export default {
851
885
  ]);
852
886
  },
853
887
  created() {
888
+ sessionStorage.setItem('launchImage', JSON.stringify(this.launchImages));
889
+ this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
854
890
  if (ceshi == 'true' || ceshi == true) {
855
891
  this.loginModel = '0';
856
892
  }
@@ -1097,9 +1133,10 @@ export default {
1097
1133
  if (res.linuxDownloadUrl) {
1098
1134
  downloads['linux'] = res.linuxDownloadUrl;
1099
1135
  }
1136
+ this.sysName = res.subsystemName;
1137
+ sessionStorage.setItem('sysName', this.sysName);
1100
1138
  this.secret = res.secret;
1101
1139
  this.setup = res.setup;
1102
- this.sysName = res.subsystemName;
1103
1140
  this.downloadSetup = res.downloadSetup;
1104
1141
  if (res.subsystemName) {
1105
1142
  document.title = res.subsystemName;
@@ -1179,6 +1216,39 @@ export default {
1179
1216
  if (res.subsystemExtend.uosDownloadUrl) {
1180
1217
  downloads.uos = res.subsystemExtend.uosDownloadUrl;
1181
1218
  }
1219
+ if (res.subsystemExtend.warningText) {
1220
+ this.warningText = res.subsystemExtend.warningText;
1221
+ }
1222
+ if (res.subsystemExtend.launchTime) {
1223
+ sessionStorage.setItem('launchTime', res.subsystemExtend.launchTime);
1224
+ }
1225
+ if (res.subsystemExtend.launchImage) {
1226
+ if (!this.launchShow) {
1227
+ 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
+ }
1237
+ if (
1238
+ res.subsystemExtend.launchImage != 'true' &&
1239
+ res.subsystemExtend.launchImage != true
1240
+ ) {
1241
+ this.launchImages =
1242
+ res.subsystemExtend.launchImage.indexOf('{') > -1 &&
1243
+ res.subsystemExtend.launchImage.indexOf('}') > -1
1244
+ ? JSON.parse(res.subsystemExtend.launchImage)
1245
+ : res.subsystemExtend.launchImage;
1246
+ }
1247
+ sessionStorage.setItem(
1248
+ 'launchImage',
1249
+ JSON.stringify(this.launchImages)
1250
+ );
1251
+ }
1182
1252
  }
1183
1253
  this.passModifyModel = res.passModifyModel;
1184
1254
  this.wechatAppid = res.wechatAppid;
@@ -1493,6 +1563,7 @@ export default {
1493
1563
  handleResults(results, type) {
1494
1564
  switch (results.statusCode) {
1495
1565
  case 0:
1566
+ this.userName = results.userName;
1496
1567
  util.setStorage({
1497
1568
  type: this.storage,
1498
1569
  key: {
@@ -1505,26 +1576,52 @@ export default {
1505
1576
  useCaseCodes: results.resourceCodes
1506
1577
  }
1507
1578
  });
1508
- this.$message({
1509
- message: '登录成功!',
1510
- type: 'success',
1511
- duration: 1500,
1512
- onClose: () => {
1513
- if (this.toUrl) {
1514
- window.location.href = this.toUrl;
1515
- } else if (results.doorIndex && this.doorIndex) {
1516
- sessionStorage.setItem('doorIndex', results.doorIndex);
1517
- localStorage.setItem('isLogined', true);
1518
- window.location.href = results.doorIndex;
1579
+ if (
1580
+ this.launchShow &&
1581
+ !this.toUrl &&
1582
+ !results.doorIndex &&
1583
+ !this.doorIndex
1584
+ ) {
1585
+ this.$message({
1586
+ message: '登录成功!',
1587
+ type: 'success',
1588
+ duration: 1000
1589
+ });
1590
+ this.showLaunch = true;
1591
+ setTimeout(() => {
1592
+ sessionStorage.setItem('showLaunch', 1);
1593
+ if (window.location.href.indexOf('login.html') > -1) {
1594
+ window.location.href = './main.html';
1519
1595
  } else {
1520
- if (window.location.href.indexOf('login.html') > -1) {
1521
- window.location.href = './main.html';
1596
+ this.$router.push({ name: 'main' });
1597
+ }
1598
+ this.showLaunch = false;
1599
+ }, 3000);
1600
+ } else {
1601
+ if (this.launchShow) {
1602
+ sessionStorage.setItem('launch', this.launchShow);
1603
+ }
1604
+ this.$message({
1605
+ message: '登录成功!',
1606
+ type: 'success',
1607
+ duration: 1500,
1608
+ onClose: () => {
1609
+ if (this.toUrl) {
1610
+ window.location.href = this.toUrl;
1611
+ } else if (results.doorIndex && this.doorIndex) {
1612
+ sessionStorage.setItem('doorIndex', results.doorIndex);
1613
+ localStorage.setItem('isLogined', true);
1614
+ window.location.href = results.doorIndex;
1522
1615
  } else {
1523
- this.$router.push({ name: 'main' });
1616
+ if (window.location.href.indexOf('login.html') > -1) {
1617
+ window.location.href = './main.html';
1618
+ } else {
1619
+ this.$router.push({ name: 'main' });
1620
+ }
1524
1621
  }
1525
1622
  }
1526
- }
1527
- });
1623
+ });
1624
+ }
1528
1625
  break;
1529
1626
  case 2:
1530
1627
  this.$confirm(