eoss-ui 0.7.20 → 0.7.21
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 -119
- package/lib/button.js +210 -119
- package/lib/calogin.js +210 -119
- package/lib/checkbox-group.js +210 -119
- package/lib/data-table-form.js +210 -119
- package/lib/data-table.js +210 -119
- package/lib/date-picker.js +210 -119
- package/lib/dialog.js +210 -119
- package/lib/eoss-ui.common.js +638 -269
- package/lib/flow-group.js +210 -119
- package/lib/flow-list.js +210 -119
- package/lib/flow.js +625 -255
- package/lib/form.js +210 -119
- package/lib/handle-user.js +210 -119
- package/lib/handler.js +212 -122
- package/lib/icon.js +210 -119
- package/lib/index.js +1 -1
- package/lib/input-number.js +210 -119
- package/lib/input.js +210 -119
- package/lib/login.js +210 -119
- package/lib/main.js +210 -119
- package/lib/nav.js +210 -119
- package/lib/page.js +210 -119
- package/lib/pagination.js +210 -119
- package/lib/player.js +210 -119
- package/lib/qr-code.js +210 -119
- package/lib/radio-group.js +210 -119
- package/lib/retrial-auth.js +210 -119
- package/lib/select-ganged.js +210 -119
- package/lib/select.js +210 -119
- package/lib/selector-panel.js +210 -119
- package/lib/selector.js +210 -119
- package/lib/sizer.js +210 -119
- package/lib/steps.js +210 -119
- package/lib/switch.js +210 -119
- package/lib/table-form.js +210 -119
- package/lib/tabs.js +210 -119
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +210 -119
- package/lib/tree-group.js +210 -119
- package/lib/tree.js +210 -119
- package/lib/upload.js +210 -119
- package/lib/utils/util.js +210 -119
- package/lib/wujie.js +210 -119
- package/lib/wxlogin.js +210 -119
- package/package.json +2 -2
- package/packages/flow/src/component/taskUnionExamine.vue +95 -7
- package/packages/flow/src/main.vue +81 -40
- package/packages/flow/src/processForm.vue +106 -27
- package/packages/handler/src/main.vue +0 -1
- package/packages/theme-chalk/lib/flow.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/flow.scss +4 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +192 -145
package/lib/wxlogin.js
CHANGED
|
@@ -199,12 +199,14 @@ var ajax = function ajax(_ref) {
|
|
|
199
199
|
mix = _ref$mix === undefined ? false : _ref$mix,
|
|
200
200
|
_ref$defaults = _ref.defaults,
|
|
201
201
|
defaults = _ref$defaults === undefined ? false : _ref$defaults,
|
|
202
|
+
_ref$withCredentials = _ref.withCredentials,
|
|
203
|
+
withCredentials = _ref$withCredentials === undefined ? true : _ref$withCredentials,
|
|
202
204
|
loading = _ref.loading,
|
|
203
205
|
publicKey = _ref.publicKey,
|
|
204
206
|
secret = _ref.secret,
|
|
205
207
|
encodes = _ref.encodes,
|
|
206
208
|
oldmode = _ref.oldmode,
|
|
207
|
-
configs = _objectWithoutProperties(_ref, ['headers', 'method', 'url', 'host', 'data', 'params', 'format', 'formatConfig', 'mix', 'defaults', 'loading', 'publicKey', 'secret', 'encodes', 'oldmode']);
|
|
209
|
+
configs = _objectWithoutProperties(_ref, ['headers', 'method', 'url', 'host', 'data', 'params', 'format', 'formatConfig', 'mix', 'defaults', 'withCredentials', 'loading', 'publicKey', 'secret', 'encodes', 'oldmode']);
|
|
208
210
|
|
|
209
211
|
var header = headers || {};
|
|
210
212
|
if (!method) {
|
|
@@ -242,20 +244,18 @@ var ajax = function ajax(_ref) {
|
|
|
242
244
|
// delPendingRequest(response.config);
|
|
243
245
|
loading && loading.close();
|
|
244
246
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
sessionStorage.setItem('token', response.headers.authorization);
|
|
250
|
-
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
251
|
-
}
|
|
247
|
+
setStorage({
|
|
248
|
+
key: ['token', 'Authorization'],
|
|
249
|
+
value: response.headers.authorization
|
|
250
|
+
});
|
|
252
251
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
252
|
+
var ssId = response.headers.ssId || response.headers.Ssid || response.headers.ssid;
|
|
253
|
+
|
|
254
|
+
if (ssId && ssId !== getStorage('ssId')) {
|
|
255
|
+
setStorage({
|
|
256
|
+
key: 'ssId',
|
|
257
|
+
value: ssId
|
|
258
|
+
});
|
|
259
259
|
}
|
|
260
260
|
if (response.status === 200) {
|
|
261
261
|
responses(response.data);
|
|
@@ -1792,37 +1792,6 @@ var getSecond = function getSecond(datetime) {
|
|
|
1792
1792
|
return datetimeObj.getSeconds();
|
|
1793
1793
|
};
|
|
1794
1794
|
|
|
1795
|
-
/**
|
|
1796
|
-
* getStorage
|
|
1797
|
-
* @desc:获取本地储存数据
|
|
1798
|
-
* @author huangbo
|
|
1799
|
-
* @date 2022年5月7日
|
|
1800
|
-
* @param {String} [key] - 获取的名称
|
|
1801
|
-
**/
|
|
1802
|
-
var getStorage = function getStorage(key) {
|
|
1803
|
-
if (key) {
|
|
1804
|
-
var res = sessionStorage.getItem(key) || localStorage.getItem(key) || win[key];
|
|
1805
|
-
if (key === 'host' && !res) {
|
|
1806
|
-
return win.location.origin;
|
|
1807
|
-
}
|
|
1808
|
-
return res;
|
|
1809
|
-
}
|
|
1810
|
-
var defaults = {};
|
|
1811
|
-
var token = sessionStorage.getItem('token') || localStorage.getItem('token') || win.token;
|
|
1812
|
-
var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || win.ssId;
|
|
1813
|
-
var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || win.deviceUnique;
|
|
1814
|
-
if (token) {
|
|
1815
|
-
defaults.Authorization = token;
|
|
1816
|
-
}
|
|
1817
|
-
if (ssId) {
|
|
1818
|
-
defaults.ssId = ssId;
|
|
1819
|
-
}
|
|
1820
|
-
if (deviceUnique) {
|
|
1821
|
-
defaults.deviceUnique = deviceUnique;
|
|
1822
|
-
}
|
|
1823
|
-
return defaults;
|
|
1824
|
-
};
|
|
1825
|
-
|
|
1826
1795
|
/**
|
|
1827
1796
|
* getStyle
|
|
1828
1797
|
* @desc:获取元素样式(含非行内样式)
|
|
@@ -2349,9 +2318,7 @@ var isLogined = function () {
|
|
|
2349
2318
|
|
|
2350
2319
|
switch (results.statusCode) {
|
|
2351
2320
|
case 0:
|
|
2352
|
-
var storage = getStorage('storage');
|
|
2353
2321
|
setStorage({
|
|
2354
|
-
type: storage,
|
|
2355
2322
|
key: {
|
|
2356
2323
|
ssId: results.ssId,
|
|
2357
2324
|
token: results.token,
|
|
@@ -2728,28 +2695,6 @@ var receiveMessage = function receiveMessage(_ref14) {
|
|
|
2728
2695
|
});
|
|
2729
2696
|
};
|
|
2730
2697
|
|
|
2731
|
-
/**
|
|
2732
|
-
* removeStorage
|
|
2733
|
-
* @desc:删除本地储存数据
|
|
2734
|
-
* @author huangbo
|
|
2735
|
-
* @date 2022年5月7日
|
|
2736
|
-
* @param {String, Array} [key] - 获取的名称
|
|
2737
|
-
**/
|
|
2738
|
-
var removeStorage = function removeStorage(key) {
|
|
2739
|
-
if (Array.isArray(key)) {
|
|
2740
|
-
for (var i = 0; i < key.length; i++) {
|
|
2741
|
-
sessionStorage.removeItem(key[i]);
|
|
2742
|
-
localStorage.removeItem(key[i]);
|
|
2743
|
-
}
|
|
2744
|
-
} else if (key) {
|
|
2745
|
-
sessionStorage.removeItem(key);
|
|
2746
|
-
localStorage.removeItem(key);
|
|
2747
|
-
} else {
|
|
2748
|
-
sessionStorage.clear();
|
|
2749
|
-
localStorage.clear();
|
|
2750
|
-
}
|
|
2751
|
-
};
|
|
2752
|
-
|
|
2753
2698
|
/**
|
|
2754
2699
|
* replenish
|
|
2755
2700
|
* @desc:补全小数位数
|
|
@@ -3047,52 +2992,6 @@ var setFavicon = function setFavicon(url) {
|
|
|
3047
2992
|
}
|
|
3048
2993
|
};
|
|
3049
2994
|
|
|
3050
|
-
/**
|
|
3051
|
-
* setStorage
|
|
3052
|
-
* @desc:设置本地储存数据
|
|
3053
|
-
* @author huangbo
|
|
3054
|
-
* @date 2022年5月7日
|
|
3055
|
-
* @param {String} [type] - 储存类型
|
|
3056
|
-
* @param {String, Array, Object} [key] - 数据的名称,array类型表示多个key保存同一个value,object类型时对象的属性名称作为key属性值作为value
|
|
3057
|
-
* @param {String} [value] - 数据的值
|
|
3058
|
-
**/
|
|
3059
|
-
var setStorage = function setStorage(_ref17) {
|
|
3060
|
-
var type = _ref17.type,
|
|
3061
|
-
key = _ref17.key,
|
|
3062
|
-
value = _ref17.value;
|
|
3063
|
-
|
|
3064
|
-
if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
|
|
3065
|
-
value = JSON.stringify(value);
|
|
3066
|
-
}
|
|
3067
|
-
if (type === 'localStorage') {
|
|
3068
|
-
if (typeof key === 'string') {
|
|
3069
|
-
localStorage.setItem(key, value);
|
|
3070
|
-
} else if (Array.isArray(key)) {
|
|
3071
|
-
for (var i in key) {
|
|
3072
|
-
localStorage.setItem(key[i], value);
|
|
3073
|
-
}
|
|
3074
|
-
} else {
|
|
3075
|
-
for (var _i7 in key) {
|
|
3076
|
-
var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
|
|
3077
|
-
localStorage.setItem(_i7, val);
|
|
3078
|
-
}
|
|
3079
|
-
}
|
|
3080
|
-
} else {
|
|
3081
|
-
if (typeof key === 'string') {
|
|
3082
|
-
sessionStorage.setItem(key, value);
|
|
3083
|
-
} else if (Array.isArray(key)) {
|
|
3084
|
-
for (var _i8 in key) {
|
|
3085
|
-
sessionStorage.setItem(key[_i8], value);
|
|
3086
|
-
}
|
|
3087
|
-
} else {
|
|
3088
|
-
for (var _i9 in key) {
|
|
3089
|
-
var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
|
|
3090
|
-
sessionStorage.setItem(_i9, _val);
|
|
3091
|
-
}
|
|
3092
|
-
}
|
|
3093
|
-
}
|
|
3094
|
-
};
|
|
3095
|
-
|
|
3096
2995
|
/**
|
|
3097
2996
|
* socket
|
|
3098
2997
|
* @desc:webSocket
|
|
@@ -3353,10 +3252,10 @@ var upperCase = function upperCase(text) {
|
|
|
3353
3252
|
* @param {Object} [url] - url地址
|
|
3354
3253
|
* @param {Object} [param] - 被转换的对象
|
|
3355
3254
|
**/
|
|
3356
|
-
var urlJoinParams = function urlJoinParams(
|
|
3357
|
-
var url =
|
|
3358
|
-
param =
|
|
3359
|
-
timestamp =
|
|
3255
|
+
var urlJoinParams = function urlJoinParams(_ref17) {
|
|
3256
|
+
var url = _ref17.url,
|
|
3257
|
+
param = _ref17.param,
|
|
3258
|
+
timestamp = _ref17.timestamp;
|
|
3360
3259
|
|
|
3361
3260
|
var arry = decodeURI(url).split('?');
|
|
3362
3261
|
var times = new Date().getTime();
|
|
@@ -3472,6 +3371,195 @@ var watermark = function watermark(option) {
|
|
|
3472
3371
|
};
|
|
3473
3372
|
};
|
|
3474
3373
|
|
|
3374
|
+
/**
|
|
3375
|
+
* setStorage
|
|
3376
|
+
* @desc:设置本地储存数据
|
|
3377
|
+
* @author huangbo
|
|
3378
|
+
* @date 2022年5月7日
|
|
3379
|
+
* @param {String} [type] - 储存类型
|
|
3380
|
+
* @param {String, Array, Object} [key] - 数据的名称,array类型表示多个key保存同一个value,object类型时对象的属性名称作为key属性值作为value
|
|
3381
|
+
* @param {String} [value] - 数据的值
|
|
3382
|
+
**/
|
|
3383
|
+
var setStorage = function setStorage(_ref18) {
|
|
3384
|
+
var type = _ref18.type,
|
|
3385
|
+
key = _ref18.key,
|
|
3386
|
+
value = _ref18.value;
|
|
3387
|
+
|
|
3388
|
+
type = type || getStorage('storage');
|
|
3389
|
+
|
|
3390
|
+
if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
|
|
3391
|
+
value = JSON.stringify(value);
|
|
3392
|
+
}
|
|
3393
|
+
if (type === 'localStorage') {
|
|
3394
|
+
if (typeof key === 'string') {
|
|
3395
|
+
localStorage.setItem(key, value);
|
|
3396
|
+
if (key === 'token') {
|
|
3397
|
+
setCookie('token', value);
|
|
3398
|
+
}
|
|
3399
|
+
} else if (Array.isArray(key)) {
|
|
3400
|
+
for (var i in key) {
|
|
3401
|
+
localStorage.setItem(key[i], value);
|
|
3402
|
+
if (key[i] === 'token') {
|
|
3403
|
+
setCookie('token', value);
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3406
|
+
} else {
|
|
3407
|
+
for (var _i7 in key) {
|
|
3408
|
+
var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
|
|
3409
|
+
localStorage.setItem(_i7, val);
|
|
3410
|
+
if (_i7 === 'token') {
|
|
3411
|
+
setCookie('token', val);
|
|
3412
|
+
}
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
} else {
|
|
3416
|
+
if (typeof key === 'string') {
|
|
3417
|
+
sessionStorage.setItem(key, value);
|
|
3418
|
+
if (key === 'token') {
|
|
3419
|
+
setCookie('token', value);
|
|
3420
|
+
}
|
|
3421
|
+
} else if (Array.isArray(key)) {
|
|
3422
|
+
for (var _i8 in key) {
|
|
3423
|
+
sessionStorage.setItem(key[_i8], value);
|
|
3424
|
+
if (key[_i8] === 'token') {
|
|
3425
|
+
setCookie('token', value);
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
} else {
|
|
3429
|
+
for (var _i9 in key) {
|
|
3430
|
+
var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
|
|
3431
|
+
sessionStorage.setItem(_i9, _val);
|
|
3432
|
+
if (_i9 === 'token') {
|
|
3433
|
+
setCookie('token', _val);
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
};
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* getStorage
|
|
3442
|
+
* @desc:获取本地储存数据
|
|
3443
|
+
* @author huangbo
|
|
3444
|
+
* @date 2022年5月7日
|
|
3445
|
+
* @param {String} [key] - 获取的名称
|
|
3446
|
+
**/
|
|
3447
|
+
var getStorage = function getStorage(key) {
|
|
3448
|
+
if (key) {
|
|
3449
|
+
var res = sessionStorage.getItem(key) || localStorage.getItem(key) || win[key];
|
|
3450
|
+
if (key === 'host' && !res) {
|
|
3451
|
+
return win.location.origin;
|
|
3452
|
+
}
|
|
3453
|
+
return res;
|
|
3454
|
+
}
|
|
3455
|
+
var defaults = {};
|
|
3456
|
+
var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token') || win.token;
|
|
3457
|
+
var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId') || win.ssId;
|
|
3458
|
+
|
|
3459
|
+
var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique') || win.deviceUnique;
|
|
3460
|
+
if (token) {
|
|
3461
|
+
defaults.Authorization = token;
|
|
3462
|
+
}
|
|
3463
|
+
if (ssId) {
|
|
3464
|
+
defaults.ssId = ssId;
|
|
3465
|
+
}
|
|
3466
|
+
if (deviceUnique) {
|
|
3467
|
+
defaults.deviceUnique = deviceUnique;
|
|
3468
|
+
}
|
|
3469
|
+
return defaults;
|
|
3470
|
+
};
|
|
3471
|
+
|
|
3472
|
+
/**
|
|
3473
|
+
* removeStorage
|
|
3474
|
+
* @desc:删除本地储存数据
|
|
3475
|
+
* @author huangbo
|
|
3476
|
+
* @date 2022年5月7日
|
|
3477
|
+
* @param {String, Array} [key] - 获取的名称
|
|
3478
|
+
**/
|
|
3479
|
+
var removeStorage = function removeStorage(key) {
|
|
3480
|
+
if (Array.isArray(key)) {
|
|
3481
|
+
for (var i = 0; i < key.length; i++) {
|
|
3482
|
+
sessionStorage.removeItem(key[i]);
|
|
3483
|
+
localStorage.removeItem(key[i]);
|
|
3484
|
+
if (key[i] === 'token') {
|
|
3485
|
+
removeCookie('token');
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
} else if (key) {
|
|
3489
|
+
sessionStorage.removeItem(key);
|
|
3490
|
+
localStorage.removeItem(key);
|
|
3491
|
+
if (key === 'token') {
|
|
3492
|
+
removeCookie('token');
|
|
3493
|
+
}
|
|
3494
|
+
} else {
|
|
3495
|
+
sessionStorage.clear();
|
|
3496
|
+
localStorage.clear();
|
|
3497
|
+
removeCookie('token');
|
|
3498
|
+
}
|
|
3499
|
+
};
|
|
3500
|
+
|
|
3501
|
+
/**
|
|
3502
|
+
* setCookie
|
|
3503
|
+
* @desc 设置cookie
|
|
3504
|
+
* @author huangbo
|
|
3505
|
+
* @param {string} [name] cookie名称
|
|
3506
|
+
* @return {string} [value] cookie值
|
|
3507
|
+
**/
|
|
3508
|
+
var setCookie = function setCookie(name, value) {
|
|
3509
|
+
// 不设置 expires 或 max-age,默认为会话 Cookie
|
|
3510
|
+
document.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value) + '; path=/';
|
|
3511
|
+
};
|
|
3512
|
+
|
|
3513
|
+
/**
|
|
3514
|
+
* getCookie
|
|
3515
|
+
* @desc 获取cookie中指定名称的值
|
|
3516
|
+
* @author huangbo
|
|
3517
|
+
* @param {string} [name] cookie名称
|
|
3518
|
+
**/
|
|
3519
|
+
var getCookie = function getCookie(name) {
|
|
3520
|
+
var cookies = document.cookie.split(';');
|
|
3521
|
+
for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i10 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
|
3522
|
+
var _ref19;
|
|
3523
|
+
|
|
3524
|
+
if (_isArray) {
|
|
3525
|
+
if (_i10 >= _iterator.length) break;
|
|
3526
|
+
_ref19 = _iterator[_i10++];
|
|
3527
|
+
} else {
|
|
3528
|
+
_i10 = _iterator.next();
|
|
3529
|
+
if (_i10.done) break;
|
|
3530
|
+
_ref19 = _i10.value;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
var cookie = _ref19;
|
|
3534
|
+
|
|
3535
|
+
var _cookie$trim$split = cookie.trim().split('='),
|
|
3536
|
+
cookieName = _cookie$trim$split[0],
|
|
3537
|
+
cookieValue = _cookie$trim$split[1];
|
|
3538
|
+
|
|
3539
|
+
if (decodeURIComponent(cookieName) === name) {
|
|
3540
|
+
return decodeURIComponent(cookieValue);
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
return null;
|
|
3544
|
+
};
|
|
3545
|
+
|
|
3546
|
+
/**
|
|
3547
|
+
* removeCookie
|
|
3548
|
+
* @desc:删除cookie
|
|
3549
|
+
* @author huangbo
|
|
3550
|
+
* @date 2022年5月7日
|
|
3551
|
+
* @param {String, Array} [key] - 获取的名称
|
|
3552
|
+
**/
|
|
3553
|
+
var removeCookie = function removeCookie(key) {
|
|
3554
|
+
if (Array.isArray(key)) {
|
|
3555
|
+
for (var i = 0; i < key.length; i++) {
|
|
3556
|
+
document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
3557
|
+
}
|
|
3558
|
+
} else {
|
|
3559
|
+
document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
3560
|
+
}
|
|
3561
|
+
};
|
|
3562
|
+
|
|
3475
3563
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
3476
3564
|
ajax: ajax,
|
|
3477
3565
|
ajaxStream: ajaxStream,
|
|
@@ -3498,6 +3586,7 @@ var watermark = function watermark(option) {
|
|
|
3498
3586
|
formatDate: formatDate,
|
|
3499
3587
|
getCurrentDate: getCurrentDate,
|
|
3500
3588
|
getCurrentDateTime: getCurrentDateTime,
|
|
3589
|
+
getCookie: getCookie,
|
|
3501
3590
|
getHour: getHour,
|
|
3502
3591
|
getMyWinTop: getMyWinTop,
|
|
3503
3592
|
getWeekNumber: getWeekNumber,
|
|
@@ -3535,6 +3624,7 @@ var watermark = function watermark(option) {
|
|
|
3535
3624
|
mixColor: mixColor,
|
|
3536
3625
|
overbrim: overbrim,
|
|
3537
3626
|
queryParams: queryParams,
|
|
3627
|
+
removeCookie: removeCookie,
|
|
3538
3628
|
receiveMessage: receiveMessage,
|
|
3539
3629
|
removeStorage: removeStorage,
|
|
3540
3630
|
replenish: replenish,
|
|
@@ -3542,6 +3632,7 @@ var watermark = function watermark(option) {
|
|
|
3542
3632
|
rgbToHsv: rgbToHsv,
|
|
3543
3633
|
rmbToCapital: rmbToCapital,
|
|
3544
3634
|
sendMessage: sendMessage,
|
|
3635
|
+
setCookie: setCookie,
|
|
3545
3636
|
setFavicon: setFavicon,
|
|
3546
3637
|
setScale: setScale,
|
|
3547
3638
|
setStorage: setStorage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.21",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"cp-cli": "^1.0.2",
|
|
100
100
|
"cross-env": "^3.1.3",
|
|
101
101
|
"css-loader": "^2.1.0",
|
|
102
|
-
"eoss-element": "^0.3.
|
|
102
|
+
"eoss-element": "^0.3.60",
|
|
103
103
|
"es6-promise": "^4.0.5",
|
|
104
104
|
"eslint": "4.18.2",
|
|
105
105
|
"eslint-config-elemefe": "0.1.1",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
ref="infoList"
|
|
5
5
|
:model="infoList"
|
|
6
6
|
class="demo-dynamic"
|
|
7
|
+
:rules="rules"
|
|
7
8
|
label-width="120px"
|
|
8
9
|
>
|
|
9
10
|
<el-form-item v-if="isSinglePage" prop="opinion" label="意见">
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
>
|
|
68
69
|
<SelectUser
|
|
69
70
|
:nextUser="infoList.nextOtherOrgObj"
|
|
70
|
-
:where="{ filid: 'other',roleid
|
|
71
|
+
:where="{ filid: 'other', roleid: selectorParams.roleid }"
|
|
71
72
|
:multiple="newMultiple"
|
|
72
73
|
@change="changeSelectUser($event, 'nextOtherOrgObj')"
|
|
73
74
|
:mix="otherMix"
|
|
@@ -83,6 +84,36 @@
|
|
|
83
84
|
:tabs="foreignOrgTabsParam"
|
|
84
85
|
/>
|
|
85
86
|
</el-form-item>
|
|
87
|
+
<el-form-item
|
|
88
|
+
v-if="enableCustomLimitTimeSetting"
|
|
89
|
+
prop="customLimitTime"
|
|
90
|
+
label="限时办理"
|
|
91
|
+
>
|
|
92
|
+
<el-input
|
|
93
|
+
v-model="infoList.customLimitTime"
|
|
94
|
+
placeholder="请输入限时办理的天数"
|
|
95
|
+
class="input-with-select custom-limit-time"
|
|
96
|
+
>
|
|
97
|
+
<es-select
|
|
98
|
+
v-if="!showCustomLimitTimeText"
|
|
99
|
+
v-model="infoList.customLimitTime"
|
|
100
|
+
placeholder="请选择"
|
|
101
|
+
slot="prepend"
|
|
102
|
+
sysCode="bpm_custom_limit_time"
|
|
103
|
+
></es-select>
|
|
104
|
+
<es-button
|
|
105
|
+
type="primary"
|
|
106
|
+
slot="append"
|
|
107
|
+
@click="
|
|
108
|
+
() => {
|
|
109
|
+
infoList.customLimitTime = '';
|
|
110
|
+
showCustomLimitTimeText = !showCustomLimitTimeText;
|
|
111
|
+
}
|
|
112
|
+
"
|
|
113
|
+
>切换{{ showCustomLimitTimeText ? '选择框' : '文本框' }}</es-button
|
|
114
|
+
>
|
|
115
|
+
</el-input>
|
|
116
|
+
</el-form-item>
|
|
86
117
|
<!-- :rules="[
|
|
87
118
|
{ required: false, message: `请选择通知方式`, trigger: 'blur' }
|
|
88
119
|
]" -->
|
|
@@ -170,7 +201,12 @@ export default {
|
|
|
170
201
|
disabled: { type: Boolean, default: false },
|
|
171
202
|
simpleTips: { type: Boolean, default: true },
|
|
172
203
|
multiple: { type: Boolean, default: true },
|
|
173
|
-
selectorParams: {
|
|
204
|
+
selectorParams: {
|
|
205
|
+
type: Object,
|
|
206
|
+
default: () => {
|
|
207
|
+
return {};
|
|
208
|
+
}
|
|
209
|
+
}
|
|
174
210
|
},
|
|
175
211
|
inheritAttrs: false,
|
|
176
212
|
data() {
|
|
@@ -179,14 +215,17 @@ export default {
|
|
|
179
215
|
readOnlyNotificationType: '',
|
|
180
216
|
notificationMessageReadOnly: false,
|
|
181
217
|
otherMix: false,
|
|
218
|
+
enableCustomLimitTimeSetting: false,
|
|
219
|
+
showCustomLimitTimeText: false,
|
|
182
220
|
currentMix: false,
|
|
183
221
|
infoList: {
|
|
184
222
|
nextOtherOrgObj: [],
|
|
185
223
|
nextCurrentOrgObj: [],
|
|
186
224
|
noticeType: [],
|
|
187
|
-
noticeList:[],
|
|
225
|
+
noticeList: [],
|
|
188
226
|
noticeInfo: '',
|
|
189
|
-
opinion: ''
|
|
227
|
+
opinion: '',
|
|
228
|
+
customLimitTime: ''
|
|
190
229
|
},
|
|
191
230
|
onlyName: '',
|
|
192
231
|
unionSealData: [],
|
|
@@ -212,6 +251,20 @@ export default {
|
|
|
212
251
|
loading: false
|
|
213
252
|
};
|
|
214
253
|
},
|
|
254
|
+
computed: {
|
|
255
|
+
rules() {
|
|
256
|
+
return {
|
|
257
|
+
customLimitTime: [
|
|
258
|
+
{
|
|
259
|
+
required:this.enableCustomLimitTimeSetting,
|
|
260
|
+
message: this.showCustomLimitTimeText?'请输入限时办理天数' : '请选择限时办理天数',
|
|
261
|
+
trigger: 'blur'
|
|
262
|
+
},
|
|
263
|
+
{required:this.enableCustomLimitTimeSetting, validator: this.checkCustomLimitTime, trigger: 'change' }
|
|
264
|
+
]
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
},
|
|
215
268
|
mounted() {
|
|
216
269
|
this.loading = true;
|
|
217
270
|
this.newMultiple = this.multiple;
|
|
@@ -222,6 +275,25 @@ export default {
|
|
|
222
275
|
this.getInfo();
|
|
223
276
|
},
|
|
224
277
|
methods: {
|
|
278
|
+
validate() {
|
|
279
|
+
let validSate = true;
|
|
280
|
+
this.$refs.infoList.validate((valid) => {
|
|
281
|
+
if (valid) {
|
|
282
|
+
validSate = true;
|
|
283
|
+
} else {
|
|
284
|
+
validSate = false;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
return validSate;
|
|
288
|
+
},
|
|
289
|
+
checkCustomLimitTime(rule, value, callback){
|
|
290
|
+
if (!Number(value) || value.indexOf('.') != -1 || Number(value) < 0) {
|
|
291
|
+
callback(new Error('请输入正确的天数'))
|
|
292
|
+
this.infoList.customLimitTime = '';
|
|
293
|
+
}else{
|
|
294
|
+
callback()
|
|
295
|
+
}
|
|
296
|
+
},
|
|
225
297
|
isMultiple(val) {
|
|
226
298
|
if (val == 7 || val == 9 || val == 11) {
|
|
227
299
|
this.newMultiple = false;
|
|
@@ -336,6 +408,8 @@ export default {
|
|
|
336
408
|
unionDispatchOrgId,
|
|
337
409
|
otherOrgDisabledObjId,
|
|
338
410
|
orgNames,
|
|
411
|
+
enableCustomLimitTimeSetting,
|
|
412
|
+
defaultCustomLimitDays,
|
|
339
413
|
nodeInfoMap: {
|
|
340
414
|
nodeExtAttr: {
|
|
341
415
|
userSelectionType,
|
|
@@ -349,6 +423,10 @@ export default {
|
|
|
349
423
|
if (otherOrgDisabledObjId) {
|
|
350
424
|
this.otherOrgDisabledObjId = otherOrgDisabledObjId.split(',');
|
|
351
425
|
}
|
|
426
|
+
this.enableCustomLimitTimeSetting = enableCustomLimitTimeSetting;
|
|
427
|
+
if(this.enableCustomLimitTimeSetting && defaultCustomLimitDays){
|
|
428
|
+
this.infoList.customLimitTime = defaultCustomLimitDays + ''
|
|
429
|
+
}
|
|
352
430
|
if (res.data.customizedConfig) {
|
|
353
431
|
if (res.data.customizedConfig.currentOrgSelectorCustomized) {
|
|
354
432
|
this.currentMix =
|
|
@@ -459,6 +537,7 @@ export default {
|
|
|
459
537
|
nextCurrentOrgObj,
|
|
460
538
|
nextOtherOrgObj,
|
|
461
539
|
noticeType,
|
|
540
|
+
customLimitTime,
|
|
462
541
|
noticeInfo
|
|
463
542
|
},
|
|
464
543
|
isOpinionRequired,
|
|
@@ -471,18 +550,21 @@ export default {
|
|
|
471
550
|
isSubFlow,
|
|
472
551
|
pendingId
|
|
473
552
|
} = this;
|
|
553
|
+
console.log(nextCurrentOrgObj);
|
|
554
|
+
console.log(nextOtherOrgObj);
|
|
474
555
|
if (
|
|
475
556
|
type == 'takeAdvice' &&
|
|
476
557
|
!nextCurrentOrgObj &&
|
|
477
558
|
isHideCurrentOrg == 0 &&
|
|
559
|
+
nextCurrentOrgObj.length == 0 &&
|
|
478
560
|
isHideOtherOrg == 0 &&
|
|
479
|
-
!nextOtherOrgObj
|
|
561
|
+
(!nextOtherOrgObj || nextOtherOrgObj.length == 0)
|
|
480
562
|
) {
|
|
481
563
|
return this.$message.warning('请选择处理对象!');
|
|
482
564
|
} else if (
|
|
483
565
|
isHideCurrentOrg == 0 &&
|
|
484
|
-
!nextOtherOrgObj &&
|
|
485
|
-
!nextCurrentOrgObj
|
|
566
|
+
(!nextOtherOrgObj || nextOtherOrgObj.length == 0) &&
|
|
567
|
+
(!nextCurrentOrgObj || nextCurrentOrgObj.length == 0)
|
|
486
568
|
) {
|
|
487
569
|
return this.$message.warning('请选择处理对象!');
|
|
488
570
|
}
|
|
@@ -506,6 +588,7 @@ export default {
|
|
|
506
588
|
data: {
|
|
507
589
|
opinion,
|
|
508
590
|
pendingId,
|
|
591
|
+
|
|
509
592
|
nextOtherOrgObj:
|
|
510
593
|
this.type == 'unionSeal'
|
|
511
594
|
? this.unionSealData.map((x) => x.showid).join(',')
|
|
@@ -524,6 +607,11 @@ export default {
|
|
|
524
607
|
headers: { Accept: 'application/json,text/plain' },
|
|
525
608
|
method: 'POST'
|
|
526
609
|
};
|
|
610
|
+
if (this.enableCustomLimitTimeSetting) {
|
|
611
|
+
param.data.customLimitTime = customLimitTime;
|
|
612
|
+
console.log(this.validate(),'this.validate()')
|
|
613
|
+
if (!this.validate()) return;
|
|
614
|
+
}
|
|
527
615
|
this.loading = true;
|
|
528
616
|
util
|
|
529
617
|
.ajax(param)
|