eoss-ui 0.5.99 → 0.6.10
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 +210 -198
- 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 +12 -30
- package/lib/clients.js +2 -2
- package/lib/data-table-form.js +2 -4
- package/lib/data-table.js +21 -36
- package/lib/date-picker.js +2 -2
- package/lib/dialog.js +16 -33
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +1506 -936
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +2 -2
- package/lib/flow-list.js +4 -4
- package/lib/flow.js +475 -239
- package/lib/form.js +2 -4
- package/lib/handle-user.js +2 -2
- package/lib/handler.js +12 -12
- package/lib/icon.js +9 -9
- package/lib/icons.js +5 -5
- 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 +4 -4
- package/lib/login.js +728 -489
- package/lib/main.js +201 -113
- 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 +11 -11
- package/lib/qr-code.js +4 -4
- package/lib/radio-group.js +10 -30
- package/lib/retrial-auth.js +9 -9
- package/lib/select-ganged.js +9 -9
- package/lib/select.js +8 -28
- package/lib/selector-panel.js +6 -8
- package/lib/selector.js +11 -11
- package/lib/sizer.js +2 -2
- package/lib/steps.js +2 -2
- package/lib/switch.js +9 -9
- package/lib/table-form.js +2 -2
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +2 -2
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/icons.css +1 -1
- 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/menu.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +2 -2
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +6 -5
- package/lib/tree.js +2 -2
- package/lib/upload.js +6 -8
- package/lib/wujie.js +145 -145
- package/lib/wxlogin.js +145 -145
- package/package.json +2 -2
- package/packages/.DS_Store +0 -0
- package/packages/checkbox-group/.DS_Store +0 -0
- package/packages/checkbox-group/src/main.vue +10 -7
- package/packages/data-table/src/main.vue +23 -15
- package/packages/dialog/.DS_Store +0 -0
- package/packages/dialog/src/main.vue +13 -8
- package/packages/flow/src/component/SendMsg.vue +7 -1
- package/packages/flow/src/component/taskUnionExamine.vue +19 -1
- package/packages/flow/src/main.vue +69 -47
- package/packages/flow/src/processForm.vue +21 -5
- package/packages/flow/src/processReject.vue +31 -14
- package/packages/flow/src/startTaskRead.vue +22 -8
- package/packages/handler/.DS_Store +0 -0
- package/packages/handler/src/main.vue +1 -1
- package/packages/icons/src/icon.json +1 -1
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +211 -115
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/index.vue +3 -11
- package/packages/main/src/default/message.vue +13 -1
- package/packages/main/src/default/notice.vue +16 -4
- package/packages/main/src/main.vue +41 -13
- package/packages/main/src/simplicity/index.vue +25 -18
- package/packages/main/src/simplicity/message.vue +14 -1
- package/packages/main/src/simplicity/notice.vue +13 -1
- package/packages/radio-group/src/main.vue +10 -7
- package/packages/select/src/main.vue +10 -7
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/flow.css +1 -1
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/icon.css +1 -1
- package/packages/theme-chalk/lib/icons.css +1 -1
- 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/menu.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/common/var.scss +3 -1
- package/packages/theme-chalk/src/flow.scss +12 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/icon.scss +16 -0
- package/packages/theme-chalk/src/icons.scss +1 -1
- package/packages/theme-chalk/src/login.scss +609 -757
- package/packages/tree-group/src/main.vue +5 -1
- package/src/index.js +1 -1
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 = 69);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3768,150 +3768,7 @@ module.exports = require("json-bigint");
|
|
|
3768
3768
|
|
|
3769
3769
|
/***/ }),
|
|
3770
3770
|
|
|
3771
|
-
/***/
|
|
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
|
-
/***/ 71:
|
|
3771
|
+
/***/ 69:
|
|
3915
3772
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3916
3773
|
|
|
3917
3774
|
"use strict";
|
|
@@ -4116,6 +3973,149 @@ main.install = function (Vue) {
|
|
|
4116
3973
|
|
|
4117
3974
|
/***/ }),
|
|
4118
3975
|
|
|
3976
|
+
/***/ 7:
|
|
3977
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3978
|
+
|
|
3979
|
+
"use strict";
|
|
3980
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
3981
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
|
|
3982
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
3983
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
|
|
3984
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
|
|
3989
|
+
var WebSocket = function () {
|
|
3990
|
+
// 构造函数
|
|
3991
|
+
function WebSocket() {
|
|
3992
|
+
_classCallCheck(this, WebSocket);
|
|
3993
|
+
|
|
3994
|
+
this.host = sessionStorage.getItem('wshost') || '';
|
|
3995
|
+
this.tryTimes = 1; // 重连次数
|
|
3996
|
+
this.callback = null; // 回调函数
|
|
3997
|
+
this.client = null; // stomp对象
|
|
3998
|
+
this.reconTimeout = null; // 重连延时器
|
|
3999
|
+
this.debug = true; // 调试
|
|
4000
|
+
this.interval = 20; // 重连间隔时间
|
|
4001
|
+
this.vm = null;
|
|
4002
|
+
this.nextDate = 0;
|
|
4003
|
+
this.connects = 1;
|
|
4004
|
+
this.recon = false;
|
|
4005
|
+
this.sendTimeout = null;
|
|
4006
|
+
this.socket = null;
|
|
4007
|
+
this.subscription = null;
|
|
4008
|
+
}
|
|
4009
|
+
|
|
4010
|
+
/** socket连接 */
|
|
4011
|
+
|
|
4012
|
+
|
|
4013
|
+
WebSocket.prototype.connect = function connect() {
|
|
4014
|
+
var _this = this;
|
|
4015
|
+
|
|
4016
|
+
if (!this.client) {
|
|
4017
|
+
// 连接SockJS
|
|
4018
|
+
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
4019
|
+
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
// 日志不打印
|
|
4023
|
+
if (!this.debug) {
|
|
4024
|
+
this.client.debug = function () {};
|
|
4025
|
+
}
|
|
4026
|
+
|
|
4027
|
+
// 向服务器发起websocket连接
|
|
4028
|
+
this.client.connect({}, function () {
|
|
4029
|
+
_this.recon = true;
|
|
4030
|
+
// tryTimes定义重置
|
|
4031
|
+
_this.connects = 1;
|
|
4032
|
+
// 订阅消息
|
|
4033
|
+
_this.subscribe();
|
|
4034
|
+
}, function (error) {
|
|
4035
|
+
_this.unsubscribe();
|
|
4036
|
+
_this.client = null;
|
|
4037
|
+
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
4038
|
+
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
4039
|
+
_this.error && _this.error(error);
|
|
4040
|
+
} else {
|
|
4041
|
+
_this.reconTimeout = setTimeout(function () {
|
|
4042
|
+
_this.connect();
|
|
4043
|
+
_this.connects++;
|
|
4044
|
+
}, 5000);
|
|
4045
|
+
}
|
|
4046
|
+
});
|
|
4047
|
+
}; // 清除订阅
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
4051
|
+
if (this.subscription) {
|
|
4052
|
+
this.subscription.unsubscribe();
|
|
4053
|
+
this.subscription = null;
|
|
4054
|
+
}
|
|
4055
|
+
};
|
|
4056
|
+
/** 订阅服务端 */
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
WebSocket.prototype.subscribe = function subscribe() {
|
|
4060
|
+
var _this2 = this;
|
|
4061
|
+
|
|
4062
|
+
// 订阅服务端提供的某个topic
|
|
4063
|
+
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
4064
|
+
if (response && (_this2.callback || _this2.success)) {
|
|
4065
|
+
var callback = _this2.callback || _this2.success;
|
|
4066
|
+
callback(JSON.parse(response.body));
|
|
4067
|
+
}
|
|
4068
|
+
});
|
|
4069
|
+
};
|
|
4070
|
+
|
|
4071
|
+
/** 赋值、初始化socket */
|
|
4072
|
+
|
|
4073
|
+
|
|
4074
|
+
WebSocket.prototype.init = function init(option, vm) {
|
|
4075
|
+
for (var i in option) {
|
|
4076
|
+
this[i] = option[i];
|
|
4077
|
+
}
|
|
4078
|
+
this.vm = vm;
|
|
4079
|
+
// 初始化连接
|
|
4080
|
+
this.connect();
|
|
4081
|
+
};
|
|
4082
|
+
|
|
4083
|
+
/** 发送消息 */
|
|
4084
|
+
|
|
4085
|
+
|
|
4086
|
+
WebSocket.prototype.send = function send(data) {
|
|
4087
|
+
var _this3 = this;
|
|
4088
|
+
|
|
4089
|
+
if (this.recon) {
|
|
4090
|
+
clearTimeout(this.sendTimeout);
|
|
4091
|
+
this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
|
|
4092
|
+
} else {
|
|
4093
|
+
this.sendTimeout = setTimeout(function () {
|
|
4094
|
+
_this3.send(data);
|
|
4095
|
+
}, 1000);
|
|
4096
|
+
}
|
|
4097
|
+
};
|
|
4098
|
+
|
|
4099
|
+
/** 销毁 */
|
|
4100
|
+
|
|
4101
|
+
|
|
4102
|
+
WebSocket.prototype.destroy = function destroy() {
|
|
4103
|
+
// 断开连接,清除定时器
|
|
4104
|
+
this.unsubscribe();
|
|
4105
|
+
if (this.client) {
|
|
4106
|
+
this.client.disconnect();
|
|
4107
|
+
};
|
|
4108
|
+
this.reconTimeout && clearTimeout(this.reconTimeout);
|
|
4109
|
+
this.sendTimeout && clearTimeout(this.sendTimeout);
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
return WebSocket;
|
|
4113
|
+
}();
|
|
4114
|
+
|
|
4115
|
+
/* harmony default export */ __webpack_exports__["a"] = (WebSocket);
|
|
4116
|
+
|
|
4117
|
+
/***/ }),
|
|
4118
|
+
|
|
4119
4119
|
/***/ 8:
|
|
4120
4120
|
/***/ (function(module, exports) {
|
|
4121
4121
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.10",
|
|
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.30",
|
|
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
|
|
Binary file
|
|
@@ -58,7 +58,6 @@ import { findSysCode, getDictList } from 'eoss-ui/src/config/api.js';
|
|
|
58
58
|
import { debounce } from 'throttle-debounce';
|
|
59
59
|
import store from 'eoss-ui/src/utils/store';
|
|
60
60
|
import util from 'eoss-ui/src/utils/util';
|
|
61
|
-
import bus from 'eoss-ui/src/utils/bus';
|
|
62
61
|
export default {
|
|
63
62
|
name: 'EsCheckboxGroup',
|
|
64
63
|
inheritAttrs: false,
|
|
@@ -281,10 +280,12 @@ export default {
|
|
|
281
280
|
if (res.rCode === 0) {
|
|
282
281
|
this.options = JSON.parse(JSON.stringify(res.results));
|
|
283
282
|
if (sysCode || this.dataKey) {
|
|
284
|
-
bus.$
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
283
|
+
const bus = this.bus || this.$root.Bus;
|
|
284
|
+
bus &&
|
|
285
|
+
bus.$emit(
|
|
286
|
+
sysCode || this.dataKey,
|
|
287
|
+
JSON.parse(JSON.stringify(this.options))
|
|
288
|
+
);
|
|
288
289
|
store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
|
|
289
290
|
}
|
|
290
291
|
} else {
|
|
@@ -317,10 +318,12 @@ export default {
|
|
|
317
318
|
this.options = val;
|
|
318
319
|
},
|
|
319
320
|
bindEventBus() {
|
|
320
|
-
bus
|
|
321
|
+
const bus = this.bus || this.$root.Bus;
|
|
322
|
+
bus && bus.$on(this.sysCode || this.dataKey, this.setOptions);
|
|
321
323
|
},
|
|
322
324
|
unbindEventBus() {
|
|
323
|
-
bus
|
|
325
|
+
const bus = this.bus || this.$root.Bus;
|
|
326
|
+
bus && bus.$off(this.sysCode || this.dataKey, this.setOptions);
|
|
324
327
|
}
|
|
325
328
|
},
|
|
326
329
|
beforeDestroy() {
|
|
@@ -217,7 +217,6 @@ import { debounce } from 'throttle-debounce';
|
|
|
217
217
|
import children from './children.vue';
|
|
218
218
|
import sizer from './sizer.vue';
|
|
219
219
|
import util from 'eoss-ui/src/utils/util';
|
|
220
|
-
import bus from 'eoss-ui/src/utils/bus';
|
|
221
220
|
import qs from 'qs';
|
|
222
221
|
const systemMode = util.win.top.systemMode || util.win.systemMode || 'default';
|
|
223
222
|
const pageView = util.getParams('pageView');
|
|
@@ -974,10 +973,12 @@ export default {
|
|
|
974
973
|
[JSON.parse(JSON.stringify(res.results))]
|
|
975
974
|
);
|
|
976
975
|
if (item.sysCode) {
|
|
977
|
-
bus.$
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
976
|
+
const bus = this.bus || this.$root.Bus;
|
|
977
|
+
bus &&
|
|
978
|
+
bus.$emit(
|
|
979
|
+
item.sysCode,
|
|
980
|
+
JSON.parse(JSON.stringify(this.options[item.sysCode]))
|
|
981
|
+
);
|
|
981
982
|
}
|
|
982
983
|
} else {
|
|
983
984
|
this.$set(
|
|
@@ -986,10 +987,12 @@ export default {
|
|
|
986
987
|
JSON.parse(JSON.stringify(res.results))
|
|
987
988
|
);
|
|
988
989
|
if (item.sysCode) {
|
|
989
|
-
bus.$
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
990
|
+
const bus = this.bus || this.$root.Bus;
|
|
991
|
+
bus &&
|
|
992
|
+
bus.$emit(
|
|
993
|
+
item.sysCode,
|
|
994
|
+
JSON.parse(JSON.stringify(res.results))
|
|
995
|
+
);
|
|
993
996
|
}
|
|
994
997
|
}
|
|
995
998
|
this.requests.push(key);
|
|
@@ -1485,7 +1488,8 @@ export default {
|
|
|
1485
1488
|
}
|
|
1486
1489
|
this.injector && this.injector.handleChangeData(changes);
|
|
1487
1490
|
if (handle.busEvent) {
|
|
1488
|
-
bus.$
|
|
1491
|
+
const bus = this.bus || this.$root.Bus;
|
|
1492
|
+
bus && bus.$emit(handle.busEvent, changes);
|
|
1489
1493
|
}
|
|
1490
1494
|
}
|
|
1491
1495
|
} else if (handle.changeData) {
|
|
@@ -1531,7 +1535,8 @@ export default {
|
|
|
1531
1535
|
}
|
|
1532
1536
|
this.injector && this.injector.handleChangeData(changeData);
|
|
1533
1537
|
if (handle.busEvent) {
|
|
1534
|
-
bus.$
|
|
1538
|
+
const bus = this.bus || this.$root.Bus;
|
|
1539
|
+
bus && bus.$emit(handle.busEvent, changes);
|
|
1535
1540
|
}
|
|
1536
1541
|
} else {
|
|
1537
1542
|
if (handle.exportXls) {
|
|
@@ -1768,14 +1773,17 @@ export default {
|
|
|
1768
1773
|
},
|
|
1769
1774
|
bindEventBus() {
|
|
1770
1775
|
this.sysCodes.forEach((item) => {
|
|
1771
|
-
bus
|
|
1772
|
-
|
|
1773
|
-
|
|
1776
|
+
const bus = this.bus || this.$root.Bus;
|
|
1777
|
+
bus &&
|
|
1778
|
+
bus.$on(item, (val) => {
|
|
1779
|
+
this.setOptions(val, item);
|
|
1780
|
+
});
|
|
1774
1781
|
});
|
|
1775
1782
|
},
|
|
1776
1783
|
unbindEventBus() {
|
|
1777
1784
|
this.sysCodes.forEach((item) => {
|
|
1778
|
-
bus
|
|
1785
|
+
const bus = this.bus || this.$root.Bus;
|
|
1786
|
+
bus && bus.$off(item, this.setOptions);
|
|
1779
1787
|
});
|
|
1780
1788
|
},
|
|
1781
1789
|
reset() {
|
|
Binary file
|
|
@@ -266,8 +266,6 @@
|
|
|
266
266
|
<script>
|
|
267
267
|
import WujieVue from 'wujie-vue2';
|
|
268
268
|
import util from 'eoss-ui/src/utils/util';
|
|
269
|
-
import mbus from 'eoss-ui/src/utils/bus';
|
|
270
|
-
const { bus } = WujieVue;
|
|
271
269
|
let availWidth = 0;
|
|
272
270
|
let availHeight = 0;
|
|
273
271
|
availWidth = util.win.top.document.body.offsetWidth - 260;
|
|
@@ -397,15 +395,17 @@ export default {
|
|
|
397
395
|
},
|
|
398
396
|
created() {
|
|
399
397
|
if (this.busEvent) {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
this.
|
|
403
|
-
|
|
404
|
-
|
|
398
|
+
const bus = this.bus || this.$root.Bus;
|
|
399
|
+
bus &&
|
|
400
|
+
bus.$on(this.busEvent, async (res) => {
|
|
401
|
+
this.titles = res.title;
|
|
402
|
+
this.handler && (await this.handler(res, this));
|
|
403
|
+
this.handleShow();
|
|
404
|
+
});
|
|
405
405
|
}
|
|
406
406
|
},
|
|
407
407
|
mounted() {
|
|
408
|
-
bus.$on('dialogClose', (res, dialog) => {
|
|
408
|
+
WujieVue.bus.$on('dialogClose', (res, dialog) => {
|
|
409
409
|
let _dialog = this.$refs[dialog._dialogId];
|
|
410
410
|
if (_dialog) {
|
|
411
411
|
_dialog.hide();
|
|
@@ -473,6 +473,11 @@ export default {
|
|
|
473
473
|
getDialog() {
|
|
474
474
|
return this.$refs[this.wujieName].$refs['dialog'];
|
|
475
475
|
}
|
|
476
|
+
},
|
|
477
|
+
beforeDestroy() {
|
|
478
|
+
WujieVue.bus.$off('dialogClose');
|
|
479
|
+
const bus = this.bus || this.$root.Bus;
|
|
480
|
+
this.busEvent && bus && Bus.$off(this.busEvent);
|
|
476
481
|
}
|
|
477
482
|
};
|
|
478
483
|
</script>
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
v-for="item of notificationList"
|
|
22
22
|
:key="item.cciValue"
|
|
23
23
|
:label="item.cciValue"
|
|
24
|
+
:disabled="readOnlyNotificationType.indexOf(item.cciValue) != -1"
|
|
24
25
|
>
|
|
25
26
|
{{ item.shortName }}
|
|
26
27
|
</el-checkbox>
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
type="textarea"
|
|
32
33
|
:rows="2"
|
|
33
34
|
v-model="sendInfo.notificationMsg"
|
|
35
|
+
:readonly="notificationMessageReadOnly"
|
|
34
36
|
/>
|
|
35
37
|
</el-form-item>
|
|
36
38
|
<el-table
|
|
@@ -98,6 +100,8 @@ export default {
|
|
|
98
100
|
notificationMsg: ''
|
|
99
101
|
},
|
|
100
102
|
appId: '',
|
|
103
|
+
notificationMessageReadOnly: true,
|
|
104
|
+
readOnlyNotificationType: '',
|
|
101
105
|
loading: false,
|
|
102
106
|
pendHistoryIds: '',
|
|
103
107
|
notificationList: [],
|
|
@@ -195,11 +199,13 @@ export default {
|
|
|
195
199
|
const {
|
|
196
200
|
status,
|
|
197
201
|
message,
|
|
198
|
-
data: { title, wfHistoryList, appId }
|
|
202
|
+
data: { title, wfHistoryList, appId,notificationMessageReadOnly, readOnlyNotificationType}
|
|
199
203
|
} = res;
|
|
200
204
|
this.loading = false;
|
|
201
205
|
if (status === 'success') {
|
|
202
206
|
this.sendInfo.title = title;
|
|
207
|
+
this.readOnlyNotificationType =readOnlyNotificationType;
|
|
208
|
+
this.notificationMessageReadOnly = notificationMessageReadOnly == 'true';
|
|
203
209
|
this.appId = appId;
|
|
204
210
|
this.sendTable = wfHistoryList;
|
|
205
211
|
this.checkList();
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
v-for="item of infoList.noticeList"
|
|
81
81
|
:key="item.cciValue"
|
|
82
82
|
:label="item.cciValue"
|
|
83
|
+
:disabled="readOnlyNotificationType.indexOf(item.cciValue) != -1"
|
|
83
84
|
>
|
|
84
85
|
{{ item.shortName }}
|
|
85
86
|
</el-checkbox>
|
|
@@ -90,7 +91,18 @@
|
|
|
90
91
|
prop="noticeInfo"
|
|
91
92
|
label="通知消息"
|
|
92
93
|
>
|
|
93
|
-
|
|
94
|
+
<es-input
|
|
95
|
+
style="
|
|
96
|
+
border-color: #ccc;
|
|
97
|
+
padding: 5px;
|
|
98
|
+
border-radius: 5px;
|
|
99
|
+
font-size: 13px;
|
|
100
|
+
"
|
|
101
|
+
type="textarea"
|
|
102
|
+
v-model="infoList.noticeInfo"
|
|
103
|
+
:readonly="notificationMessageReadOnly"
|
|
104
|
+
/>
|
|
105
|
+
<!-- <span>{{ infoList.noticeInfo }}</span> -->
|
|
94
106
|
</el-form-item>
|
|
95
107
|
<el-form-item>
|
|
96
108
|
<div style="text-align: right">
|
|
@@ -142,6 +154,8 @@ export default {
|
|
|
142
154
|
data() {
|
|
143
155
|
return {
|
|
144
156
|
opinion: '', //办理意见
|
|
157
|
+
readOnlyNotificationType:'',
|
|
158
|
+
notificationMessageReadOnly:false,
|
|
145
159
|
infoList: {
|
|
146
160
|
nextOtherOrgObj: [],
|
|
147
161
|
nextCurrentOrgObj: [],
|
|
@@ -287,6 +301,8 @@ export default {
|
|
|
287
301
|
choiceOrgId,
|
|
288
302
|
taskExamine,
|
|
289
303
|
unionDispatchOrgName,
|
|
304
|
+
readOnlyNotificationType,
|
|
305
|
+
notificationMessageReadOnly,
|
|
290
306
|
unionDispatchOrgId,
|
|
291
307
|
orgNames,
|
|
292
308
|
nodeInfoMap: {
|
|
@@ -299,6 +315,8 @@ export default {
|
|
|
299
315
|
}
|
|
300
316
|
}
|
|
301
317
|
} = res;
|
|
318
|
+
this.readOnlyNotificationType = readOnlyNotificationType
|
|
319
|
+
this.notificationMessageReadOnly = notificationMessageReadOnly == 'true'
|
|
302
320
|
this.isSinglePage = taskExamine.isSinglePage;
|
|
303
321
|
this.isSubFlow = taskExamine.isSubFlow;
|
|
304
322
|
this.opinion = taskExamine.opinion;
|