eoss-ui 0.5.98 → 0.6.0
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/button-group.js +2 -2
- package/lib/button.js +2 -2
- package/lib/calendar.js +2 -2
- package/lib/card.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +3 -2
- package/lib/clients.js +2 -2
- package/lib/data-table-form.js +3 -2
- package/lib/data-table.js +3 -2
- package/lib/date-picker.js +2 -2
- package/lib/dialog.js +6 -5
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +629 -722
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +2 -2
- package/lib/flow-list.js +2 -2
- package/lib/flow.js +3 -2
- package/lib/form.js +3 -2
- package/lib/handle-user.js +2 -2
- package/lib/handler.js +11 -15
- package/lib/icon.js +2 -2
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +2 -2
- package/lib/input.js +2 -2
- package/lib/label.js +2 -2
- package/lib/layout.js +2 -2
- package/lib/login.js +6 -4
- package/lib/main.js +648 -738
- package/lib/menu.js +2 -2
- package/lib/nav.js +2 -2
- package/lib/notify.js +2 -2
- package/lib/page.js +2 -2
- package/lib/pagination.js +2 -2
- package/lib/player.js +4 -4
- package/lib/qr-code.js +4 -4
- package/lib/radio-group.js +2 -2
- package/lib/retrial-auth.js +9 -9
- package/lib/select-ganged.js +9 -9
- package/lib/select.js +2 -2
- package/lib/selector-panel.js +3 -2
- package/lib/selector.js +2 -2
- package/lib/sizer.js +2 -2
- package/lib/steps.js +2 -2
- package/lib/switch.js +2 -2
- package/lib/table-form.js +2 -2
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +2 -2
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/tips.js +2 -2
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +2 -2
- package/lib/tree.js +2 -2
- package/lib/upload.js +3 -2
- package/lib/wujie.js +145 -145
- package/lib/wxlogin.js +2 -2
- package/package.json +2 -2
- package/packages/.DS_Store +0 -0
- package/packages/dialog/src/main.vue +1 -1
- package/packages/handler/.DS_Store +0 -0
- package/packages/handler/src/main.vue +0 -5
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +1 -0
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/index.vue +27 -21
- package/packages/main/src/main.vue +13 -7
- package/packages/main/src/{default → public}/settings.vue +51 -19
- package/packages/main/src/simplicity/handler.vue +0 -11
- package/packages/main/src/simplicity/index.vue +139 -115
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/login.scss +6 -0
- package/packages/theme-chalk/src/main.scss +16 -0
- package/packages/theme-chalk/src/simplicity.scss +37 -0
- package/src/index.js +1 -1
- package/packages/main/src/simplicity/settings.vue +0 -119
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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 70);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3768,7 +3768,150 @@ module.exports = require("json-bigint");
|
|
|
3768
3768
|
|
|
3769
3769
|
/***/ }),
|
|
3770
3770
|
|
|
3771
|
-
/***/
|
|
3771
|
+
/***/ 7:
|
|
3772
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3773
|
+
|
|
3774
|
+
"use strict";
|
|
3775
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
3776
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
|
|
3777
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
3778
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
|
|
3779
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3780
|
+
|
|
3781
|
+
|
|
3782
|
+
|
|
3783
|
+
|
|
3784
|
+
var WebSocket = function () {
|
|
3785
|
+
// 构造函数
|
|
3786
|
+
function WebSocket() {
|
|
3787
|
+
_classCallCheck(this, WebSocket);
|
|
3788
|
+
|
|
3789
|
+
this.host = sessionStorage.getItem('wshost') || '';
|
|
3790
|
+
this.tryTimes = 1; // 重连次数
|
|
3791
|
+
this.callback = null; // 回调函数
|
|
3792
|
+
this.client = null; // stomp对象
|
|
3793
|
+
this.reconTimeout = null; // 重连延时器
|
|
3794
|
+
this.debug = true; // 调试
|
|
3795
|
+
this.interval = 20; // 重连间隔时间
|
|
3796
|
+
this.vm = null;
|
|
3797
|
+
this.nextDate = 0;
|
|
3798
|
+
this.connects = 1;
|
|
3799
|
+
this.recon = false;
|
|
3800
|
+
this.sendTimeout = null;
|
|
3801
|
+
this.socket = null;
|
|
3802
|
+
this.subscription = null;
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
/** socket连接 */
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
WebSocket.prototype.connect = function connect() {
|
|
3809
|
+
var _this = this;
|
|
3810
|
+
|
|
3811
|
+
if (!this.client) {
|
|
3812
|
+
// 连接SockJS
|
|
3813
|
+
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
3814
|
+
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
// 日志不打印
|
|
3818
|
+
if (!this.debug) {
|
|
3819
|
+
this.client.debug = function () {};
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
// 向服务器发起websocket连接
|
|
3823
|
+
this.client.connect({}, function () {
|
|
3824
|
+
_this.recon = true;
|
|
3825
|
+
// tryTimes定义重置
|
|
3826
|
+
_this.connects = 1;
|
|
3827
|
+
// 订阅消息
|
|
3828
|
+
_this.subscribe();
|
|
3829
|
+
}, function (error) {
|
|
3830
|
+
_this.unsubscribe();
|
|
3831
|
+
_this.client = null;
|
|
3832
|
+
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3833
|
+
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
3834
|
+
_this.error && _this.error(error);
|
|
3835
|
+
} else {
|
|
3836
|
+
_this.reconTimeout = setTimeout(function () {
|
|
3837
|
+
_this.connect();
|
|
3838
|
+
_this.connects++;
|
|
3839
|
+
}, 5000);
|
|
3840
|
+
}
|
|
3841
|
+
});
|
|
3842
|
+
}; // 清除订阅
|
|
3843
|
+
|
|
3844
|
+
|
|
3845
|
+
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
3846
|
+
if (this.subscription) {
|
|
3847
|
+
this.subscription.unsubscribe();
|
|
3848
|
+
this.subscription = null;
|
|
3849
|
+
}
|
|
3850
|
+
};
|
|
3851
|
+
/** 订阅服务端 */
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
WebSocket.prototype.subscribe = function subscribe() {
|
|
3855
|
+
var _this2 = this;
|
|
3856
|
+
|
|
3857
|
+
// 订阅服务端提供的某个topic
|
|
3858
|
+
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
3859
|
+
if (response && (_this2.callback || _this2.success)) {
|
|
3860
|
+
var callback = _this2.callback || _this2.success;
|
|
3861
|
+
callback(JSON.parse(response.body));
|
|
3862
|
+
}
|
|
3863
|
+
});
|
|
3864
|
+
};
|
|
3865
|
+
|
|
3866
|
+
/** 赋值、初始化socket */
|
|
3867
|
+
|
|
3868
|
+
|
|
3869
|
+
WebSocket.prototype.init = function init(option, vm) {
|
|
3870
|
+
for (var i in option) {
|
|
3871
|
+
this[i] = option[i];
|
|
3872
|
+
}
|
|
3873
|
+
this.vm = vm;
|
|
3874
|
+
// 初始化连接
|
|
3875
|
+
this.connect();
|
|
3876
|
+
};
|
|
3877
|
+
|
|
3878
|
+
/** 发送消息 */
|
|
3879
|
+
|
|
3880
|
+
|
|
3881
|
+
WebSocket.prototype.send = function send(data) {
|
|
3882
|
+
var _this3 = this;
|
|
3883
|
+
|
|
3884
|
+
if (this.recon) {
|
|
3885
|
+
clearTimeout(this.sendTimeout);
|
|
3886
|
+
this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
|
|
3887
|
+
} else {
|
|
3888
|
+
this.sendTimeout = setTimeout(function () {
|
|
3889
|
+
_this3.send(data);
|
|
3890
|
+
}, 1000);
|
|
3891
|
+
}
|
|
3892
|
+
};
|
|
3893
|
+
|
|
3894
|
+
/** 销毁 */
|
|
3895
|
+
|
|
3896
|
+
|
|
3897
|
+
WebSocket.prototype.destroy = function destroy() {
|
|
3898
|
+
// 断开连接,清除定时器
|
|
3899
|
+
this.unsubscribe();
|
|
3900
|
+
if (this.client) {
|
|
3901
|
+
this.client.disconnect();
|
|
3902
|
+
};
|
|
3903
|
+
this.reconTimeout && clearTimeout(this.reconTimeout);
|
|
3904
|
+
this.sendTimeout && clearTimeout(this.sendTimeout);
|
|
3905
|
+
};
|
|
3906
|
+
|
|
3907
|
+
return WebSocket;
|
|
3908
|
+
}();
|
|
3909
|
+
|
|
3910
|
+
/* harmony default export */ __webpack_exports__["a"] = (WebSocket);
|
|
3911
|
+
|
|
3912
|
+
/***/ }),
|
|
3913
|
+
|
|
3914
|
+
/***/ 70:
|
|
3772
3915
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3773
3916
|
|
|
3774
3917
|
"use strict";
|
|
@@ -4009,149 +4152,6 @@ main.install = function (Vue) {
|
|
|
4009
4152
|
|
|
4010
4153
|
/***/ }),
|
|
4011
4154
|
|
|
4012
|
-
/***/ 7:
|
|
4013
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4014
|
-
|
|
4015
|
-
"use strict";
|
|
4016
|
-
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
4017
|
-
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
|
|
4018
|
-
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
4019
|
-
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
|
|
4020
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
var WebSocket = function () {
|
|
4026
|
-
// 构造函数
|
|
4027
|
-
function WebSocket() {
|
|
4028
|
-
_classCallCheck(this, WebSocket);
|
|
4029
|
-
|
|
4030
|
-
this.host = sessionStorage.getItem('wshost') || '';
|
|
4031
|
-
this.tryTimes = 1; // 重连次数
|
|
4032
|
-
this.callback = null; // 回调函数
|
|
4033
|
-
this.client = null; // stomp对象
|
|
4034
|
-
this.reconTimeout = null; // 重连延时器
|
|
4035
|
-
this.debug = true; // 调试
|
|
4036
|
-
this.interval = 20; // 重连间隔时间
|
|
4037
|
-
this.vm = null;
|
|
4038
|
-
this.nextDate = 0;
|
|
4039
|
-
this.connects = 1;
|
|
4040
|
-
this.recon = false;
|
|
4041
|
-
this.sendTimeout = null;
|
|
4042
|
-
this.socket = null;
|
|
4043
|
-
this.subscription = null;
|
|
4044
|
-
}
|
|
4045
|
-
|
|
4046
|
-
/** socket连接 */
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
WebSocket.prototype.connect = function connect() {
|
|
4050
|
-
var _this = this;
|
|
4051
|
-
|
|
4052
|
-
if (!this.client) {
|
|
4053
|
-
// 连接SockJS
|
|
4054
|
-
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
4055
|
-
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
4056
|
-
}
|
|
4057
|
-
|
|
4058
|
-
// 日志不打印
|
|
4059
|
-
if (!this.debug) {
|
|
4060
|
-
this.client.debug = function () {};
|
|
4061
|
-
}
|
|
4062
|
-
|
|
4063
|
-
// 向服务器发起websocket连接
|
|
4064
|
-
this.client.connect({}, function () {
|
|
4065
|
-
_this.recon = true;
|
|
4066
|
-
// tryTimes定义重置
|
|
4067
|
-
_this.connects = 1;
|
|
4068
|
-
// 订阅消息
|
|
4069
|
-
_this.subscribe();
|
|
4070
|
-
}, function (error) {
|
|
4071
|
-
_this.unsubscribe();
|
|
4072
|
-
_this.client = null;
|
|
4073
|
-
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
4074
|
-
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
4075
|
-
_this.error && _this.error(error);
|
|
4076
|
-
} else {
|
|
4077
|
-
_this.reconTimeout = setTimeout(function () {
|
|
4078
|
-
_this.connect();
|
|
4079
|
-
_this.connects++;
|
|
4080
|
-
}, 5000);
|
|
4081
|
-
}
|
|
4082
|
-
});
|
|
4083
|
-
}; // 清除订阅
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
4087
|
-
if (this.subscription) {
|
|
4088
|
-
this.subscription.unsubscribe();
|
|
4089
|
-
this.subscription = null;
|
|
4090
|
-
}
|
|
4091
|
-
};
|
|
4092
|
-
/** 订阅服务端 */
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
WebSocket.prototype.subscribe = function subscribe() {
|
|
4096
|
-
var _this2 = this;
|
|
4097
|
-
|
|
4098
|
-
// 订阅服务端提供的某个topic
|
|
4099
|
-
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
4100
|
-
if (response && (_this2.callback || _this2.success)) {
|
|
4101
|
-
var callback = _this2.callback || _this2.success;
|
|
4102
|
-
callback(JSON.parse(response.body));
|
|
4103
|
-
}
|
|
4104
|
-
});
|
|
4105
|
-
};
|
|
4106
|
-
|
|
4107
|
-
/** 赋值、初始化socket */
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
WebSocket.prototype.init = function init(option, vm) {
|
|
4111
|
-
for (var i in option) {
|
|
4112
|
-
this[i] = option[i];
|
|
4113
|
-
}
|
|
4114
|
-
this.vm = vm;
|
|
4115
|
-
// 初始化连接
|
|
4116
|
-
this.connect();
|
|
4117
|
-
};
|
|
4118
|
-
|
|
4119
|
-
/** 发送消息 */
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
WebSocket.prototype.send = function send(data) {
|
|
4123
|
-
var _this3 = this;
|
|
4124
|
-
|
|
4125
|
-
if (this.recon) {
|
|
4126
|
-
clearTimeout(this.sendTimeout);
|
|
4127
|
-
this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
|
|
4128
|
-
} else {
|
|
4129
|
-
this.sendTimeout = setTimeout(function () {
|
|
4130
|
-
_this3.send(data);
|
|
4131
|
-
}, 1000);
|
|
4132
|
-
}
|
|
4133
|
-
};
|
|
4134
|
-
|
|
4135
|
-
/** 销毁 */
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
WebSocket.prototype.destroy = function destroy() {
|
|
4139
|
-
// 断开连接,清除定时器
|
|
4140
|
-
this.unsubscribe();
|
|
4141
|
-
if (this.client) {
|
|
4142
|
-
this.client.disconnect();
|
|
4143
|
-
};
|
|
4144
|
-
this.reconTimeout && clearTimeout(this.reconTimeout);
|
|
4145
|
-
this.sendTimeout && clearTimeout(this.sendTimeout);
|
|
4146
|
-
};
|
|
4147
|
-
|
|
4148
|
-
return WebSocket;
|
|
4149
|
-
}();
|
|
4150
|
-
|
|
4151
|
-
/* harmony default export */ __webpack_exports__["a"] = (WebSocket);
|
|
4152
|
-
|
|
4153
|
-
/***/ }),
|
|
4154
|
-
|
|
4155
4155
|
/***/ 8:
|
|
4156
4156
|
/***/ (function(module, exports) {
|
|
4157
4157
|
|
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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 71);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3911,7 +3911,7 @@ var WebSocket = function () {
|
|
|
3911
3911
|
|
|
3912
3912
|
/***/ }),
|
|
3913
3913
|
|
|
3914
|
-
/***/
|
|
3914
|
+
/***/ 71:
|
|
3915
3915
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3916
3916
|
|
|
3917
3917
|
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"cp-cli": "^1.0.2",
|
|
98
98
|
"cross-env": "^3.1.3",
|
|
99
99
|
"css-loader": "^2.1.0",
|
|
100
|
-
"eoss-element": "^0.3.
|
|
100
|
+
"eoss-element": "^0.3.28",
|
|
101
101
|
"es6-promise": "^4.0.5",
|
|
102
102
|
"eslint": "4.18.2",
|
|
103
103
|
"eslint-config-elemefe": "0.1.1",
|
package/packages/.DS_Store
CHANGED
|
Binary file
|
|
@@ -385,7 +385,7 @@ export default {
|
|
|
385
385
|
mini: { width: '800px', height: '400px' },
|
|
386
386
|
sm: { width: '960px', height: '500px' },
|
|
387
387
|
md: { width: '1060px', height: '600px' },
|
|
388
|
-
lg: { width: '1200px', height: '800px' },
|
|
388
|
+
lg: { width: '1200px', height: availHeight < 800 ? '560px' : '800px' },
|
|
389
389
|
max: { width: `${availWidth}px`, height: `${availHeight}px` },
|
|
390
390
|
full: { width: '100%', height: '100%' }
|
|
391
391
|
},
|
|
Binary file
|
package/packages/login/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1237,6 +1237,7 @@ export default {
|
|
|
1237
1237
|
this.wechatScope = res.wechatScope;
|
|
1238
1238
|
this.download = { ...this.downLoadUrls, ...downloads };
|
|
1239
1239
|
if (res.sysLogoIco) {
|
|
1240
|
+
localStorage.setItem('sysLogoIco', res.sysLogoIco);
|
|
1240
1241
|
util.setFavicon(res.sysLogoIco);
|
|
1241
1242
|
}
|
|
1242
1243
|
},
|
package/packages/main/.DS_Store
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -167,10 +167,11 @@
|
|
|
167
167
|
</div>
|
|
168
168
|
<settings
|
|
169
169
|
v-bind="$attrs"
|
|
170
|
+
layout-type="default"
|
|
171
|
+
:active="layout"
|
|
170
172
|
:theme="color"
|
|
171
173
|
:predefine="themes"
|
|
172
|
-
:visible.sync="
|
|
173
|
-
:layout="layout"
|
|
174
|
+
:visible.sync="showSets"
|
|
174
175
|
@change="handleChange"
|
|
175
176
|
@layout="handleLayout"
|
|
176
177
|
></settings>
|
|
@@ -208,7 +209,7 @@
|
|
|
208
209
|
</template>
|
|
209
210
|
<script>
|
|
210
211
|
import userinfo from './userinfo.vue';
|
|
211
|
-
import settings from '
|
|
212
|
+
import settings from '../public/settings.vue';
|
|
212
213
|
import message from './message.vue';
|
|
213
214
|
import notice from './notice.vue';
|
|
214
215
|
import online from '../public/online.vue';
|
|
@@ -483,11 +484,10 @@ export default {
|
|
|
483
484
|
);
|
|
484
485
|
}
|
|
485
486
|
let hides = {
|
|
486
|
-
set: !this.
|
|
487
|
+
set: !this.showSet,
|
|
487
488
|
index: this.doorIndex ? false : true,
|
|
488
489
|
system: true,
|
|
489
|
-
home: this.homePage ? false : true
|
|
490
|
-
new: this.showNew ? false : true
|
|
490
|
+
home: this.homePage ? false : true
|
|
491
491
|
};
|
|
492
492
|
|
|
493
493
|
if (this.layout === 'subsystem' || this.application) {
|
|
@@ -541,6 +541,11 @@ export default {
|
|
|
541
541
|
util.updateTheme(val);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
+
},
|
|
545
|
+
scene(val) {
|
|
546
|
+
if (val) {
|
|
547
|
+
this.layout = val.toLowerCase();
|
|
548
|
+
}
|
|
544
549
|
}
|
|
545
550
|
},
|
|
546
551
|
data() {
|
|
@@ -609,7 +614,7 @@ export default {
|
|
|
609
614
|
//刷新路由
|
|
610
615
|
refresh: true,
|
|
611
616
|
//显示设置面板
|
|
612
|
-
|
|
617
|
+
showSets: false,
|
|
613
618
|
//当前设置的主题
|
|
614
619
|
color: util.getStorage('theme') ? util.getStorage('theme') : this.theme,
|
|
615
620
|
//显示用户信息
|
|
@@ -638,7 +643,7 @@ export default {
|
|
|
638
643
|
hideSubMenu: false,
|
|
639
644
|
doorIndex: '',
|
|
640
645
|
topRightToolHide: '',
|
|
641
|
-
|
|
646
|
+
showSet: this.set
|
|
642
647
|
};
|
|
643
648
|
},
|
|
644
649
|
created() {
|
|
@@ -788,7 +793,7 @@ export default {
|
|
|
788
793
|
},
|
|
789
794
|
//显示隐藏设置面板
|
|
790
795
|
handleSet() {
|
|
791
|
-
this.
|
|
796
|
+
this.showSets = !this.showSets;
|
|
792
797
|
},
|
|
793
798
|
setConfig(results) {
|
|
794
799
|
if (this.socket) {
|
|
@@ -897,8 +902,8 @@ export default {
|
|
|
897
902
|
if (results[i].portalPage || results[i].portalpage) {
|
|
898
903
|
this.doorIndex = results[i].portalPage || results[i].portalpage;
|
|
899
904
|
}
|
|
900
|
-
if (results[i].multipleVersion
|
|
901
|
-
this.
|
|
905
|
+
if (results[i].multipleVersion) {
|
|
906
|
+
this.showSet = true;
|
|
902
907
|
}
|
|
903
908
|
if (results[i].topRightToolHide) {
|
|
904
909
|
this.topRightToolHide = results[i].topRightToolHide;
|
|
@@ -1122,6 +1127,13 @@ export default {
|
|
|
1122
1127
|
},
|
|
1123
1128
|
//获取应用导航菜单
|
|
1124
1129
|
getMenu() {
|
|
1130
|
+
const menuData = store.get('nav');
|
|
1131
|
+
if (menuData && menuData.length) {
|
|
1132
|
+
this.menus = JSON.parse(JSON.stringify(menuData));
|
|
1133
|
+
this.setTips(this.menus);
|
|
1134
|
+
this.setMenu(this.menus);
|
|
1135
|
+
return;
|
|
1136
|
+
}
|
|
1125
1137
|
let param = this.menuCode ? { menuCode: this.menuCode } : {};
|
|
1126
1138
|
let params = { ...this.param, ...param };
|
|
1127
1139
|
util
|
|
@@ -1131,7 +1143,7 @@ export default {
|
|
|
1131
1143
|
if (res.results && res.results.length) {
|
|
1132
1144
|
this.menus = JSON.parse(JSON.stringify(res.results));
|
|
1133
1145
|
this.setTips(this.menus);
|
|
1134
|
-
store.set('nav',
|
|
1146
|
+
store.set('nav', JSON.parse(JSON.stringify(res.results)));
|
|
1135
1147
|
this.setMenu(this.menus);
|
|
1136
1148
|
} else {
|
|
1137
1149
|
this.$message.error('未分配菜单权限,请联系管理员!');
|
|
@@ -1713,13 +1725,6 @@ export default {
|
|
|
1713
1725
|
case 'set':
|
|
1714
1726
|
this.handleSet();
|
|
1715
1727
|
break;
|
|
1716
|
-
case 'new':
|
|
1717
|
-
if (typeof this.showNew === 'string') {
|
|
1718
|
-
window.location.href = this.showNew;
|
|
1719
|
-
} else {
|
|
1720
|
-
this.$emit('chang-layout', 'simplicity');
|
|
1721
|
-
}
|
|
1722
|
-
break;
|
|
1723
1728
|
case 'goView':
|
|
1724
1729
|
util.win.open(res.path, '_blank');
|
|
1725
1730
|
break;
|
|
@@ -1883,8 +1888,9 @@ export default {
|
|
|
1883
1888
|
}
|
|
1884
1889
|
return false;
|
|
1885
1890
|
},
|
|
1886
|
-
handleLayout(res, old) {
|
|
1887
|
-
|
|
1891
|
+
handleLayout(layout, res, old) {
|
|
1892
|
+
this.$emit('chang-layout', layout);
|
|
1893
|
+
if (res == old || layout == 'simplicity') {
|
|
1888
1894
|
return;
|
|
1889
1895
|
}
|
|
1890
1896
|
this.layout = res;
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
<div class="es-main-box" v-if="isLogin">
|
|
3
3
|
<simplicity
|
|
4
4
|
ref="main"
|
|
5
|
-
v-if="
|
|
5
|
+
v-if="layoutType == 'simplicity'"
|
|
6
6
|
:appCode="appCode"
|
|
7
7
|
:old-version="multiple"
|
|
8
|
-
@chang-layout="changLayout"
|
|
9
8
|
v-bind="$attrs"
|
|
10
9
|
v-on="$listeners"
|
|
10
|
+
@chang-layout="changLayout"
|
|
11
11
|
></simplicity>
|
|
12
12
|
<main-default
|
|
13
13
|
v-else
|
|
14
14
|
:new-version="multiple"
|
|
15
|
+
:scene="layout"
|
|
15
16
|
v-bind="$attrs"
|
|
16
17
|
ref="main"
|
|
17
|
-
@chang-layout="changLayout"
|
|
18
18
|
v-on="$listeners"
|
|
19
|
+
@chang-layout="changLayout"
|
|
19
20
|
></main-default>
|
|
20
21
|
|
|
21
22
|
<!-- 公用弹窗 -->
|
|
@@ -63,6 +64,7 @@ export default {
|
|
|
63
64
|
MainDefault
|
|
64
65
|
},
|
|
65
66
|
props: {
|
|
67
|
+
scene: String,
|
|
66
68
|
launch: Boolean,
|
|
67
69
|
type: String,
|
|
68
70
|
launchImage: {
|
|
@@ -97,13 +99,14 @@ export default {
|
|
|
97
99
|
dialogs: [],
|
|
98
100
|
visibles: [],
|
|
99
101
|
isLogin: false,
|
|
100
|
-
|
|
102
|
+
layoutType: this.type,
|
|
103
|
+
layout: this.scene
|
|
101
104
|
};
|
|
102
105
|
},
|
|
103
106
|
created() {
|
|
104
107
|
const layoutType = localStorage.getItem('layoutType');
|
|
105
108
|
if (layoutType) {
|
|
106
|
-
this.
|
|
109
|
+
this.layoutType = layoutType;
|
|
107
110
|
}
|
|
108
111
|
this.params = util.getParams() || {};
|
|
109
112
|
this.sysCode = this.params.sysCode;
|
|
@@ -170,9 +173,12 @@ export default {
|
|
|
170
173
|
* @author huangbo
|
|
171
174
|
* @date 2024年9月7日
|
|
172
175
|
**/
|
|
173
|
-
changLayout(res) {
|
|
174
|
-
this.
|
|
176
|
+
changLayout(res, active) {
|
|
177
|
+
this.layoutType = res;
|
|
175
178
|
localStorage.setItem('layoutType', res);
|
|
179
|
+
if (active) {
|
|
180
|
+
this.layout = active;
|
|
181
|
+
}
|
|
176
182
|
},
|
|
177
183
|
/**
|
|
178
184
|
* @desc:重新登录
|