eoss-ui 0.4.39 → 0.4.41
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 +40 -13
- package/lib/button.js +35 -8
- package/lib/checkbox-group.js +35 -8
- package/lib/data-table-form.js +35 -8
- package/lib/data-table.js +97 -34
- package/lib/date-picker.js +35 -8
- package/lib/dialog.js +52 -39
- package/lib/editor.js +415 -887
- package/lib/eoss-ui.common.js +11166 -10552
- package/lib/flow-group.js +37 -26
- package/lib/flow-list.js +35 -8
- package/lib/flow.js +163 -54
- package/lib/form.js +10081 -9075
- package/lib/handle-user.js +35 -8
- package/lib/handler.js +35 -8
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +35 -8
- package/lib/input.js +35 -8
- package/lib/login.js +35 -8
- package/lib/main.js +35 -8
- package/lib/mainComp.js +35 -8
- package/lib/nav.js +35 -8
- package/lib/page.js +35 -8
- package/lib/player.js +37 -10
- package/lib/qr-code.js +35 -8
- package/lib/radio-group.js +35 -8
- package/lib/select-ganged.js +35 -8
- package/lib/select.js +35 -8
- package/lib/selector-panel.js +43 -16
- package/lib/selector.js +40 -13
- package/lib/sizer.js +35 -8
- package/lib/steps.js +35 -8
- package/lib/switch.js +35 -8
- package/lib/table-form.js +48 -13
- package/lib/tabs.js +40 -36
- package/lib/theme-chalk/editor.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +35 -8
- package/lib/tree-group.js +39 -21
- package/lib/tree.js +35 -8
- package/lib/upload.js +95 -52
- package/lib/utils/util.js +35 -8
- package/lib/wujie.js +35 -8
- package/lib/wxlogin.js +35 -8
- package/package.json +1 -1
- package/packages/button-group/src/main.vue +3 -3
- package/packages/data-table/src/column.vue +6 -0
- package/packages/data-table/src/main.vue +12 -0
- package/packages/dialog/src/main.vue +3 -11
- package/packages/editor/src/editor.vue +20 -0
- package/packages/editor/src/minx.js +129 -19
- package/packages/editor/src/toolbar.vue +93 -324
- package/packages/flow/src/component/CommonOpinions.vue +29 -11
- package/packages/flow/src/component/CustomPreset.vue +5 -1
- package/packages/flow/src/component/Preset.vue +5 -1
- package/packages/flow/src/main.vue +21 -1
- package/packages/flow/src/processForm.vue +15 -8
- package/packages/flow/src/selectUser.vue +9 -2
- package/packages/flow-group/src/main.vue +0 -8
- package/packages/form/src/main.vue +1519 -1462
- package/packages/form/src/table.vue +8 -0
- package/packages/selector/src/main.vue +1 -1
- package/packages/selector-panel/src/main.vue +4 -4
- package/packages/tabs/src/main.vue +1 -10
- package/packages/theme-chalk/lib/editor.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/editor.scss +23 -0
- package/packages/tree-group/src/main.vue +0 -2
- package/packages/upload/src/main.vue +31 -23
- package/src/index.js +1 -1
- package/src/utils/util.js +41 -8
package/lib/tips.js
CHANGED
|
@@ -1403,7 +1403,7 @@ var isFunction = function isFunction(obj) {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
|
|
1405
1405
|
/**
|
|
1406
|
-
*
|
|
1406
|
+
* isLogined
|
|
1407
1407
|
* @desc:是否登录(用于路由守卫中)
|
|
1408
1408
|
* @author huangbo
|
|
1409
1409
|
* @date 2022年5月7日
|
|
@@ -1416,7 +1416,9 @@ var isFunction = function isFunction(obj) {
|
|
|
1416
1416
|
* @param {sting} [loginPage] - 第三方登录页面地址
|
|
1417
1417
|
* @param {boolean} [redirect] - 是否重定向(用于新脚手架)
|
|
1418
1418
|
**/
|
|
1419
|
-
var
|
|
1419
|
+
var isLogined = function isLogined(_ref8) {
|
|
1420
|
+
var _this = this;
|
|
1421
|
+
|
|
1420
1422
|
var to = _ref8.to,
|
|
1421
1423
|
from = _ref8.from,
|
|
1422
1424
|
next = _ref8.next,
|
|
@@ -1460,16 +1462,18 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1460
1462
|
data: to.query
|
|
1461
1463
|
}).then(function (res) {
|
|
1462
1464
|
if (res.rCode === 0) {
|
|
1463
|
-
|
|
1465
|
+
var results = res.results;
|
|
1466
|
+
|
|
1467
|
+
switch (results.statusCode) {
|
|
1464
1468
|
case 0:
|
|
1465
1469
|
var storage = getStorage('storage');
|
|
1466
1470
|
setStorage({
|
|
1467
1471
|
type: storage,
|
|
1468
1472
|
key: {
|
|
1469
|
-
ssId:
|
|
1470
|
-
token:
|
|
1471
|
-
Authorization:
|
|
1472
|
-
deviceUnique:
|
|
1473
|
+
ssId: results.ssId,
|
|
1474
|
+
token: results.token,
|
|
1475
|
+
Authorization: results.token,
|
|
1476
|
+
deviceUnique: results.deviceUnique
|
|
1473
1477
|
}
|
|
1474
1478
|
});
|
|
1475
1479
|
next();
|
|
@@ -1479,7 +1483,7 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1479
1483
|
case 2:
|
|
1480
1484
|
break;
|
|
1481
1485
|
case 3:
|
|
1482
|
-
var href =
|
|
1486
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1483
1487
|
if (to.query.openType) {
|
|
1484
1488
|
switch (to.query.openType) {
|
|
1485
1489
|
case 'self':
|
|
@@ -1503,6 +1507,25 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1503
1507
|
}
|
|
1504
1508
|
}
|
|
1505
1509
|
break;
|
|
1510
|
+
case 4:
|
|
1511
|
+
_this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
1512
|
+
confirmButtonText: '确定',
|
|
1513
|
+
type: 'error'
|
|
1514
|
+
}).then(function () {
|
|
1515
|
+
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
1516
|
+
window.location.href = delUrlParam({ key: 'code' });
|
|
1517
|
+
if (loginPage) {
|
|
1518
|
+
win.top.location.replace(loginPage);
|
|
1519
|
+
} else if (document.referrer) {
|
|
1520
|
+
win.top.location.replace(document.referrer);
|
|
1521
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
1522
|
+
win.top.location.href = './login.html';
|
|
1523
|
+
} else {
|
|
1524
|
+
next('/login');
|
|
1525
|
+
}
|
|
1526
|
+
}).catch(function (e) {});
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1506
1529
|
}
|
|
1507
1530
|
} else {
|
|
1508
1531
|
if (token) {
|
|
@@ -1531,6 +1554,9 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1531
1554
|
}
|
|
1532
1555
|
}
|
|
1533
1556
|
};
|
|
1557
|
+
var isLogged = function isLogged(res) {
|
|
1558
|
+
isLogined(res);
|
|
1559
|
+
};
|
|
1534
1560
|
|
|
1535
1561
|
/**
|
|
1536
1562
|
* isObject
|
|
@@ -2182,6 +2208,7 @@ var watermark = function watermark(option) {
|
|
|
2182
2208
|
indexOfObj: indexOfObj,
|
|
2183
2209
|
isFunction: isFunction,
|
|
2184
2210
|
isLogged: isLogged,
|
|
2211
|
+
isLogined: isLogined,
|
|
2185
2212
|
isObject: isObject,
|
|
2186
2213
|
jointUrl: jointUrl,
|
|
2187
2214
|
loadJs: loadJs,
|
package/lib/tree-group.js
CHANGED
|
@@ -1403,7 +1403,7 @@ var isFunction = function isFunction(obj) {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
|
|
1405
1405
|
/**
|
|
1406
|
-
*
|
|
1406
|
+
* isLogined
|
|
1407
1407
|
* @desc:是否登录(用于路由守卫中)
|
|
1408
1408
|
* @author huangbo
|
|
1409
1409
|
* @date 2022年5月7日
|
|
@@ -1416,7 +1416,9 @@ var isFunction = function isFunction(obj) {
|
|
|
1416
1416
|
* @param {sting} [loginPage] - 第三方登录页面地址
|
|
1417
1417
|
* @param {boolean} [redirect] - 是否重定向(用于新脚手架)
|
|
1418
1418
|
**/
|
|
1419
|
-
var
|
|
1419
|
+
var isLogined = function isLogined(_ref8) {
|
|
1420
|
+
var _this = this;
|
|
1421
|
+
|
|
1420
1422
|
var to = _ref8.to,
|
|
1421
1423
|
from = _ref8.from,
|
|
1422
1424
|
next = _ref8.next,
|
|
@@ -1460,16 +1462,18 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1460
1462
|
data: to.query
|
|
1461
1463
|
}).then(function (res) {
|
|
1462
1464
|
if (res.rCode === 0) {
|
|
1463
|
-
|
|
1465
|
+
var results = res.results;
|
|
1466
|
+
|
|
1467
|
+
switch (results.statusCode) {
|
|
1464
1468
|
case 0:
|
|
1465
1469
|
var storage = getStorage('storage');
|
|
1466
1470
|
setStorage({
|
|
1467
1471
|
type: storage,
|
|
1468
1472
|
key: {
|
|
1469
|
-
ssId:
|
|
1470
|
-
token:
|
|
1471
|
-
Authorization:
|
|
1472
|
-
deviceUnique:
|
|
1473
|
+
ssId: results.ssId,
|
|
1474
|
+
token: results.token,
|
|
1475
|
+
Authorization: results.token,
|
|
1476
|
+
deviceUnique: results.deviceUnique
|
|
1473
1477
|
}
|
|
1474
1478
|
});
|
|
1475
1479
|
next();
|
|
@@ -1479,7 +1483,7 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1479
1483
|
case 2:
|
|
1480
1484
|
break;
|
|
1481
1485
|
case 3:
|
|
1482
|
-
var href =
|
|
1486
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1483
1487
|
if (to.query.openType) {
|
|
1484
1488
|
switch (to.query.openType) {
|
|
1485
1489
|
case 'self':
|
|
@@ -1503,6 +1507,25 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1503
1507
|
}
|
|
1504
1508
|
}
|
|
1505
1509
|
break;
|
|
1510
|
+
case 4:
|
|
1511
|
+
_this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
1512
|
+
confirmButtonText: '确定',
|
|
1513
|
+
type: 'error'
|
|
1514
|
+
}).then(function () {
|
|
1515
|
+
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
1516
|
+
window.location.href = delUrlParam({ key: 'code' });
|
|
1517
|
+
if (loginPage) {
|
|
1518
|
+
win.top.location.replace(loginPage);
|
|
1519
|
+
} else if (document.referrer) {
|
|
1520
|
+
win.top.location.replace(document.referrer);
|
|
1521
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
1522
|
+
win.top.location.href = './login.html';
|
|
1523
|
+
} else {
|
|
1524
|
+
next('/login');
|
|
1525
|
+
}
|
|
1526
|
+
}).catch(function (e) {});
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1506
1529
|
}
|
|
1507
1530
|
} else {
|
|
1508
1531
|
if (token) {
|
|
@@ -1531,6 +1554,9 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1531
1554
|
}
|
|
1532
1555
|
}
|
|
1533
1556
|
};
|
|
1557
|
+
var isLogged = function isLogged(res) {
|
|
1558
|
+
isLogined(res);
|
|
1559
|
+
};
|
|
1534
1560
|
|
|
1535
1561
|
/**
|
|
1536
1562
|
* isObject
|
|
@@ -2182,6 +2208,7 @@ var watermark = function watermark(option) {
|
|
|
2182
2208
|
indexOfObj: indexOfObj,
|
|
2183
2209
|
isFunction: isFunction,
|
|
2184
2210
|
isLogged: isLogged,
|
|
2211
|
+
isLogined: isLogined,
|
|
2185
2212
|
isObject: isObject,
|
|
2186
2213
|
jointUrl: jointUrl,
|
|
2187
2214
|
loadJs: loadJs,
|
|
@@ -2678,7 +2705,7 @@ module.exports = require("json-bigint");
|
|
|
2678
2705
|
// ESM COMPAT FLAG
|
|
2679
2706
|
__webpack_require__.r(__webpack_exports__);
|
|
2680
2707
|
|
|
2681
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=
|
|
2708
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=04a8be9a&
|
|
2682
2709
|
var render = function () {
|
|
2683
2710
|
var _vm = this
|
|
2684
2711
|
var _h = _vm.$createElement
|
|
@@ -2846,10 +2873,7 @@ var render = function () {
|
|
|
2846
2873
|
"es-form",
|
|
2847
2874
|
_vm._g(
|
|
2848
2875
|
_vm._b(
|
|
2849
|
-
{
|
|
2850
|
-
ref: _vm.form.ref ? _vm.form.ref : "esForm",
|
|
2851
|
-
attrs: { zoom: _vm.zoom },
|
|
2852
|
-
},
|
|
2876
|
+
{ ref: _vm.form.ref ? _vm.form.ref : "esForm" },
|
|
2853
2877
|
"es-form",
|
|
2854
2878
|
_vm.form,
|
|
2855
2879
|
false
|
|
@@ -2864,11 +2888,7 @@ var render = function () {
|
|
|
2864
2888
|
_vm._b(
|
|
2865
2889
|
{
|
|
2866
2890
|
ref: _vm.table.ref ? _vm.table.ref : "esDataTable",
|
|
2867
|
-
attrs: {
|
|
2868
|
-
size: "mini",
|
|
2869
|
-
param: _vm.param,
|
|
2870
|
-
zoom: _vm.zoom,
|
|
2871
|
-
},
|
|
2891
|
+
attrs: { size: "mini", param: _vm.param },
|
|
2872
2892
|
},
|
|
2873
2893
|
"es-data-table",
|
|
2874
2894
|
Object.assign({}, { close: true }, _vm.table),
|
|
@@ -2997,7 +3017,7 @@ var staticRenderFns = []
|
|
|
2997
3017
|
render._withStripped = true
|
|
2998
3018
|
|
|
2999
3019
|
|
|
3000
|
-
// CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=
|
|
3020
|
+
// CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=04a8be9a&
|
|
3001
3021
|
|
|
3002
3022
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
3003
3023
|
var util = __webpack_require__(0);
|
|
@@ -3152,8 +3172,6 @@ var util = __webpack_require__(0);
|
|
|
3152
3172
|
//
|
|
3153
3173
|
//
|
|
3154
3174
|
//
|
|
3155
|
-
//
|
|
3156
|
-
//
|
|
3157
3175
|
|
|
3158
3176
|
|
|
3159
3177
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
package/lib/tree.js
CHANGED
|
@@ -1403,7 +1403,7 @@ var isFunction = function isFunction(obj) {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
|
|
1405
1405
|
/**
|
|
1406
|
-
*
|
|
1406
|
+
* isLogined
|
|
1407
1407
|
* @desc:是否登录(用于路由守卫中)
|
|
1408
1408
|
* @author huangbo
|
|
1409
1409
|
* @date 2022年5月7日
|
|
@@ -1416,7 +1416,9 @@ var isFunction = function isFunction(obj) {
|
|
|
1416
1416
|
* @param {sting} [loginPage] - 第三方登录页面地址
|
|
1417
1417
|
* @param {boolean} [redirect] - 是否重定向(用于新脚手架)
|
|
1418
1418
|
**/
|
|
1419
|
-
var
|
|
1419
|
+
var isLogined = function isLogined(_ref8) {
|
|
1420
|
+
var _this = this;
|
|
1421
|
+
|
|
1420
1422
|
var to = _ref8.to,
|
|
1421
1423
|
from = _ref8.from,
|
|
1422
1424
|
next = _ref8.next,
|
|
@@ -1460,16 +1462,18 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1460
1462
|
data: to.query
|
|
1461
1463
|
}).then(function (res) {
|
|
1462
1464
|
if (res.rCode === 0) {
|
|
1463
|
-
|
|
1465
|
+
var results = res.results;
|
|
1466
|
+
|
|
1467
|
+
switch (results.statusCode) {
|
|
1464
1468
|
case 0:
|
|
1465
1469
|
var storage = getStorage('storage');
|
|
1466
1470
|
setStorage({
|
|
1467
1471
|
type: storage,
|
|
1468
1472
|
key: {
|
|
1469
|
-
ssId:
|
|
1470
|
-
token:
|
|
1471
|
-
Authorization:
|
|
1472
|
-
deviceUnique:
|
|
1473
|
+
ssId: results.ssId,
|
|
1474
|
+
token: results.token,
|
|
1475
|
+
Authorization: results.token,
|
|
1476
|
+
deviceUnique: results.deviceUnique
|
|
1473
1477
|
}
|
|
1474
1478
|
});
|
|
1475
1479
|
next();
|
|
@@ -1479,7 +1483,7 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1479
1483
|
case 2:
|
|
1480
1484
|
break;
|
|
1481
1485
|
case 3:
|
|
1482
|
-
var href =
|
|
1486
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1483
1487
|
if (to.query.openType) {
|
|
1484
1488
|
switch (to.query.openType) {
|
|
1485
1489
|
case 'self':
|
|
@@ -1503,6 +1507,25 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1503
1507
|
}
|
|
1504
1508
|
}
|
|
1505
1509
|
break;
|
|
1510
|
+
case 4:
|
|
1511
|
+
_this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
1512
|
+
confirmButtonText: '确定',
|
|
1513
|
+
type: 'error'
|
|
1514
|
+
}).then(function () {
|
|
1515
|
+
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
1516
|
+
window.location.href = delUrlParam({ key: 'code' });
|
|
1517
|
+
if (loginPage) {
|
|
1518
|
+
win.top.location.replace(loginPage);
|
|
1519
|
+
} else if (document.referrer) {
|
|
1520
|
+
win.top.location.replace(document.referrer);
|
|
1521
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
1522
|
+
win.top.location.href = './login.html';
|
|
1523
|
+
} else {
|
|
1524
|
+
next('/login');
|
|
1525
|
+
}
|
|
1526
|
+
}).catch(function (e) {});
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1506
1529
|
}
|
|
1507
1530
|
} else {
|
|
1508
1531
|
if (token) {
|
|
@@ -1531,6 +1554,9 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1531
1554
|
}
|
|
1532
1555
|
}
|
|
1533
1556
|
};
|
|
1557
|
+
var isLogged = function isLogged(res) {
|
|
1558
|
+
isLogined(res);
|
|
1559
|
+
};
|
|
1534
1560
|
|
|
1535
1561
|
/**
|
|
1536
1562
|
* isObject
|
|
@@ -2182,6 +2208,7 @@ var watermark = function watermark(option) {
|
|
|
2182
2208
|
indexOfObj: indexOfObj,
|
|
2183
2209
|
isFunction: isFunction,
|
|
2184
2210
|
isLogged: isLogged,
|
|
2211
|
+
isLogined: isLogined,
|
|
2185
2212
|
isObject: isObject,
|
|
2186
2213
|
jointUrl: jointUrl,
|
|
2187
2214
|
loadJs: loadJs,
|
package/lib/upload.js
CHANGED
|
@@ -1403,7 +1403,7 @@ var isFunction = function isFunction(obj) {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
|
|
1405
1405
|
/**
|
|
1406
|
-
*
|
|
1406
|
+
* isLogined
|
|
1407
1407
|
* @desc:是否登录(用于路由守卫中)
|
|
1408
1408
|
* @author huangbo
|
|
1409
1409
|
* @date 2022年5月7日
|
|
@@ -1416,7 +1416,9 @@ var isFunction = function isFunction(obj) {
|
|
|
1416
1416
|
* @param {sting} [loginPage] - 第三方登录页面地址
|
|
1417
1417
|
* @param {boolean} [redirect] - 是否重定向(用于新脚手架)
|
|
1418
1418
|
**/
|
|
1419
|
-
var
|
|
1419
|
+
var isLogined = function isLogined(_ref8) {
|
|
1420
|
+
var _this = this;
|
|
1421
|
+
|
|
1420
1422
|
var to = _ref8.to,
|
|
1421
1423
|
from = _ref8.from,
|
|
1422
1424
|
next = _ref8.next,
|
|
@@ -1460,16 +1462,18 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1460
1462
|
data: to.query
|
|
1461
1463
|
}).then(function (res) {
|
|
1462
1464
|
if (res.rCode === 0) {
|
|
1463
|
-
|
|
1465
|
+
var results = res.results;
|
|
1466
|
+
|
|
1467
|
+
switch (results.statusCode) {
|
|
1464
1468
|
case 0:
|
|
1465
1469
|
var storage = getStorage('storage');
|
|
1466
1470
|
setStorage({
|
|
1467
1471
|
type: storage,
|
|
1468
1472
|
key: {
|
|
1469
|
-
ssId:
|
|
1470
|
-
token:
|
|
1471
|
-
Authorization:
|
|
1472
|
-
deviceUnique:
|
|
1473
|
+
ssId: results.ssId,
|
|
1474
|
+
token: results.token,
|
|
1475
|
+
Authorization: results.token,
|
|
1476
|
+
deviceUnique: results.deviceUnique
|
|
1473
1477
|
}
|
|
1474
1478
|
});
|
|
1475
1479
|
next();
|
|
@@ -1479,7 +1483,7 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1479
1483
|
case 2:
|
|
1480
1484
|
break;
|
|
1481
1485
|
case 3:
|
|
1482
|
-
var href =
|
|
1486
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1483
1487
|
if (to.query.openType) {
|
|
1484
1488
|
switch (to.query.openType) {
|
|
1485
1489
|
case 'self':
|
|
@@ -1503,6 +1507,25 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1503
1507
|
}
|
|
1504
1508
|
}
|
|
1505
1509
|
break;
|
|
1510
|
+
case 4:
|
|
1511
|
+
_this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
1512
|
+
confirmButtonText: '确定',
|
|
1513
|
+
type: 'error'
|
|
1514
|
+
}).then(function () {
|
|
1515
|
+
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
1516
|
+
window.location.href = delUrlParam({ key: 'code' });
|
|
1517
|
+
if (loginPage) {
|
|
1518
|
+
win.top.location.replace(loginPage);
|
|
1519
|
+
} else if (document.referrer) {
|
|
1520
|
+
win.top.location.replace(document.referrer);
|
|
1521
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
1522
|
+
win.top.location.href = './login.html';
|
|
1523
|
+
} else {
|
|
1524
|
+
next('/login');
|
|
1525
|
+
}
|
|
1526
|
+
}).catch(function (e) {});
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1506
1529
|
}
|
|
1507
1530
|
} else {
|
|
1508
1531
|
if (token) {
|
|
@@ -1531,6 +1554,9 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1531
1554
|
}
|
|
1532
1555
|
}
|
|
1533
1556
|
};
|
|
1557
|
+
var isLogged = function isLogged(res) {
|
|
1558
|
+
isLogined(res);
|
|
1559
|
+
};
|
|
1534
1560
|
|
|
1535
1561
|
/**
|
|
1536
1562
|
* isObject
|
|
@@ -2182,6 +2208,7 @@ var watermark = function watermark(option) {
|
|
|
2182
2208
|
indexOfObj: indexOfObj,
|
|
2183
2209
|
isFunction: isFunction,
|
|
2184
2210
|
isLogged: isLogged,
|
|
2211
|
+
isLogined: isLogined,
|
|
2185
2212
|
isObject: isObject,
|
|
2186
2213
|
jointUrl: jointUrl,
|
|
2187
2214
|
loadJs: loadJs,
|
|
@@ -2657,8 +2684,8 @@ module.exports = require("qs");
|
|
|
2657
2684
|
// ESM COMPAT FLAG
|
|
2658
2685
|
__webpack_require__.r(__webpack_exports__);
|
|
2659
2686
|
|
|
2660
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
2661
|
-
var
|
|
2687
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=a8255544&
|
|
2688
|
+
var mainvue_type_template_id_a8255544_render = function () {
|
|
2662
2689
|
var _vm = this
|
|
2663
2690
|
var _h = _vm.$createElement
|
|
2664
2691
|
var _c = _vm._self._c || _h
|
|
@@ -2793,44 +2820,54 @@ var mainvue_type_template_id_7fa5744f_render = function () {
|
|
|
2793
2820
|
}),
|
|
2794
2821
|
]
|
|
2795
2822
|
: [
|
|
2796
|
-
_vm.
|
|
2797
|
-
?
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2823
|
+
!_vm.isDisabled
|
|
2824
|
+
? [
|
|
2825
|
+
_vm.selectType === "icon-plus"
|
|
2826
|
+
? _c("i", {
|
|
2827
|
+
staticClass: "el-icon-plus es-uploader-icon",
|
|
2828
|
+
})
|
|
2829
|
+
: _c(
|
|
2830
|
+
"el-button",
|
|
2831
|
+
{
|
|
2832
|
+
staticClass: "es-upload-button",
|
|
2833
|
+
class: _vm.icon,
|
|
2834
|
+
attrs: {
|
|
2835
|
+
type: _vm.selectType,
|
|
2836
|
+
size: _vm.btnSize,
|
|
2837
|
+
},
|
|
2838
|
+
},
|
|
2839
|
+
[
|
|
2840
|
+
_vm._v(
|
|
2841
|
+
_vm._s(
|
|
2842
|
+
_vm.text
|
|
2843
|
+
? _vm.text
|
|
2844
|
+
: _vm.autoUpload
|
|
2845
|
+
? "点击上传"
|
|
2846
|
+
: "选择文件"
|
|
2847
|
+
)
|
|
2848
|
+
),
|
|
2849
|
+
]
|
|
2850
|
+
),
|
|
2851
|
+
!_vm.autoUpload
|
|
2852
|
+
? _c(
|
|
2853
|
+
"el-button",
|
|
2854
|
+
{
|
|
2855
|
+
staticClass: "es-upload-button",
|
|
2856
|
+
attrs: {
|
|
2857
|
+
type: _vm.uploadType,
|
|
2858
|
+
size: _vm.btnSize,
|
|
2859
|
+
},
|
|
2860
|
+
on: {
|
|
2861
|
+
click: function ($event) {
|
|
2862
|
+
$event.stopPropagation()
|
|
2863
|
+
return _vm.handleUpload($event)
|
|
2864
|
+
},
|
|
2865
|
+
},
|
|
2866
|
+
},
|
|
2867
|
+
[_vm._v("\n 上传文件\n ")]
|
|
2815
2868
|
)
|
|
2816
|
-
),
|
|
2817
|
-
|
|
2818
|
-
),
|
|
2819
|
-
!_vm.autoUpload
|
|
2820
|
-
? _c(
|
|
2821
|
-
"el-button",
|
|
2822
|
-
{
|
|
2823
|
-
staticClass: "es-upload-button",
|
|
2824
|
-
attrs: { type: _vm.uploadType, size: _vm.btnSize },
|
|
2825
|
-
on: {
|
|
2826
|
-
click: function ($event) {
|
|
2827
|
-
$event.stopPropagation()
|
|
2828
|
-
return _vm.handleUpload($event)
|
|
2829
|
-
},
|
|
2830
|
-
},
|
|
2831
|
-
},
|
|
2832
|
-
[_vm._v("\n 上传文件\n ")]
|
|
2833
|
-
)
|
|
2869
|
+
: _vm._e(),
|
|
2870
|
+
]
|
|
2834
2871
|
: _vm._e(),
|
|
2835
2872
|
_vm.showFileList && _vm.isDownloads
|
|
2836
2873
|
? _c(
|
|
@@ -2992,10 +3029,10 @@ var mainvue_type_template_id_7fa5744f_render = function () {
|
|
|
2992
3029
|
)
|
|
2993
3030
|
}
|
|
2994
3031
|
var staticRenderFns = []
|
|
2995
|
-
|
|
3032
|
+
mainvue_type_template_id_a8255544_render._withStripped = true
|
|
2996
3033
|
|
|
2997
3034
|
|
|
2998
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
3035
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=a8255544&
|
|
2999
3036
|
|
|
3000
3037
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
3001
3038
|
var api = __webpack_require__(1);
|
|
@@ -3186,6 +3223,10 @@ var _props;
|
|
|
3186
3223
|
//
|
|
3187
3224
|
//
|
|
3188
3225
|
//
|
|
3226
|
+
//
|
|
3227
|
+
//
|
|
3228
|
+
//
|
|
3229
|
+
//
|
|
3189
3230
|
|
|
3190
3231
|
|
|
3191
3232
|
|
|
@@ -3440,10 +3481,12 @@ var _props;
|
|
|
3440
3481
|
return _extends({}, picture, this.picture);
|
|
3441
3482
|
},
|
|
3442
3483
|
isRequiredOwnId: function isRequiredOwnId() {
|
|
3484
|
+
if (this.requiredOwnId !== undefined) {
|
|
3485
|
+
return this.requiredOwnId;
|
|
3486
|
+
}
|
|
3443
3487
|
if (!this.fileList || !this.fileList.length) {
|
|
3444
3488
|
return true;
|
|
3445
3489
|
}
|
|
3446
|
-
return this.requiredOwnId;
|
|
3447
3490
|
},
|
|
3448
3491
|
show: function show() {
|
|
3449
3492
|
if (this.photo && typeof this.photo === 'string' || this.value) {
|
|
@@ -3950,7 +3993,7 @@ var _props;
|
|
|
3950
3993
|
this.$message.success(response.msg);
|
|
3951
3994
|
}
|
|
3952
3995
|
}
|
|
3953
|
-
var se = this.filesTotalSize + Math.ceil(file.size / 1024 * 100) / 100;
|
|
3996
|
+
var se = this.filesTotalSize + (this.resultFile ? Math.ceil(file.size / 1024 * 100) / 100 : 0);
|
|
3954
3997
|
this.filesTotalSize = se;
|
|
3955
3998
|
this.onSuccess && this.onSuccess(response, file, fileList);
|
|
3956
3999
|
this.$emit('success', response, file, fileList);
|
|
@@ -4009,7 +4052,7 @@ var componentNormalizer = __webpack_require__(2);
|
|
|
4009
4052
|
|
|
4010
4053
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
4011
4054
|
src_mainvue_type_script_lang_js_,
|
|
4012
|
-
|
|
4055
|
+
mainvue_type_template_id_a8255544_render,
|
|
4013
4056
|
staticRenderFns,
|
|
4014
4057
|
false,
|
|
4015
4058
|
null,
|
package/lib/utils/util.js
CHANGED
|
@@ -1318,7 +1318,7 @@ var isFunction = function isFunction(obj) {
|
|
|
1318
1318
|
};
|
|
1319
1319
|
|
|
1320
1320
|
/**
|
|
1321
|
-
*
|
|
1321
|
+
* isLogined
|
|
1322
1322
|
* @desc:是否登录(用于路由守卫中)
|
|
1323
1323
|
* @author huangbo
|
|
1324
1324
|
* @date 2022年5月7日
|
|
@@ -1331,7 +1331,9 @@ var isFunction = function isFunction(obj) {
|
|
|
1331
1331
|
* @param {sting} [loginPage] - 第三方登录页面地址
|
|
1332
1332
|
* @param {boolean} [redirect] - 是否重定向(用于新脚手架)
|
|
1333
1333
|
**/
|
|
1334
|
-
var
|
|
1334
|
+
var isLogined = function isLogined(_ref8) {
|
|
1335
|
+
var _this = this;
|
|
1336
|
+
|
|
1335
1337
|
var to = _ref8.to,
|
|
1336
1338
|
from = _ref8.from,
|
|
1337
1339
|
next = _ref8.next,
|
|
@@ -1375,16 +1377,18 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1375
1377
|
data: to.query
|
|
1376
1378
|
}).then(function (res) {
|
|
1377
1379
|
if (res.rCode === 0) {
|
|
1378
|
-
|
|
1380
|
+
var results = res.results;
|
|
1381
|
+
|
|
1382
|
+
switch (results.statusCode) {
|
|
1379
1383
|
case 0:
|
|
1380
1384
|
var storage = getStorage('storage');
|
|
1381
1385
|
setStorage({
|
|
1382
1386
|
type: storage,
|
|
1383
1387
|
key: {
|
|
1384
|
-
ssId:
|
|
1385
|
-
token:
|
|
1386
|
-
Authorization:
|
|
1387
|
-
deviceUnique:
|
|
1388
|
+
ssId: results.ssId,
|
|
1389
|
+
token: results.token,
|
|
1390
|
+
Authorization: results.token,
|
|
1391
|
+
deviceUnique: results.deviceUnique
|
|
1388
1392
|
}
|
|
1389
1393
|
});
|
|
1390
1394
|
next();
|
|
@@ -1394,7 +1398,7 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1394
1398
|
case 2:
|
|
1395
1399
|
break;
|
|
1396
1400
|
case 3:
|
|
1397
|
-
var href =
|
|
1401
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1398
1402
|
if (to.query.openType) {
|
|
1399
1403
|
switch (to.query.openType) {
|
|
1400
1404
|
case 'self':
|
|
@@ -1418,6 +1422,25 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1418
1422
|
}
|
|
1419
1423
|
}
|
|
1420
1424
|
break;
|
|
1425
|
+
case 4:
|
|
1426
|
+
_this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
1427
|
+
confirmButtonText: '确定',
|
|
1428
|
+
type: 'error'
|
|
1429
|
+
}).then(function () {
|
|
1430
|
+
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
1431
|
+
window.location.href = delUrlParam({ key: 'code' });
|
|
1432
|
+
if (loginPage) {
|
|
1433
|
+
win.top.location.replace(loginPage);
|
|
1434
|
+
} else if (document.referrer) {
|
|
1435
|
+
win.top.location.replace(document.referrer);
|
|
1436
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
1437
|
+
win.top.location.href = './login.html';
|
|
1438
|
+
} else {
|
|
1439
|
+
next('/login');
|
|
1440
|
+
}
|
|
1441
|
+
}).catch(function (e) {});
|
|
1442
|
+
break;
|
|
1443
|
+
default:
|
|
1421
1444
|
}
|
|
1422
1445
|
} else {
|
|
1423
1446
|
if (token) {
|
|
@@ -1446,6 +1469,9 @@ var isLogged = function isLogged(_ref8) {
|
|
|
1446
1469
|
}
|
|
1447
1470
|
}
|
|
1448
1471
|
};
|
|
1472
|
+
var isLogged = function isLogged(res) {
|
|
1473
|
+
isLogined(res);
|
|
1474
|
+
};
|
|
1449
1475
|
|
|
1450
1476
|
/**
|
|
1451
1477
|
* isObject
|
|
@@ -2097,6 +2123,7 @@ exports.default = {
|
|
|
2097
2123
|
indexOfObj: indexOfObj,
|
|
2098
2124
|
isFunction: isFunction,
|
|
2099
2125
|
isLogged: isLogged,
|
|
2126
|
+
isLogined: isLogined,
|
|
2100
2127
|
isObject: isObject,
|
|
2101
2128
|
jointUrl: jointUrl,
|
|
2102
2129
|
loadJs: loadJs,
|