eoss-ui 0.4.40 → 0.4.42
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 +659 -1353
- package/lib/eoss-ui.common.js +10828 -10451
- package/lib/flow-group.js +37 -26
- package/lib/flow-list.js +35 -8
- package/lib/flow.js +164 -56
- package/lib/form.js +10081 -9075
- package/lib/handle-user.js +39 -12
- 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 +37 -10
- package/lib/selector.js +37 -10
- 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 +43 -14
- package/lib/utils/util.js +35 -8
- package/lib/wujie.js +35 -8
- package/lib/wxlogin.js +35 -8
- package/package.json +3 -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 +25 -0
- package/packages/editor/src/main.vue +6 -2
- package/packages/editor/src/minx.js +16 -8
- package/packages/editor/src/toolbar.vue +71 -349
- 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 +17 -10
- 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/handle-user/src/main.vue +2 -2
- 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 +30 -0
- package/packages/tree-group/src/main.vue +0 -2
- package/packages/upload/src/main.vue +3 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +41 -8
package/lib/selector.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,
|
|
@@ -2643,7 +2670,7 @@ function normalizeComponent(
|
|
|
2643
2670
|
|
|
2644
2671
|
/***/ }),
|
|
2645
2672
|
|
|
2646
|
-
/***/
|
|
2673
|
+
/***/ 22:
|
|
2647
2674
|
/***/ (function(module, exports) {
|
|
2648
2675
|
|
|
2649
2676
|
module.exports = require("eoss-element/src/utils/clickoutside");
|
|
@@ -3161,7 +3188,7 @@ var util = __webpack_require__(0);
|
|
|
3161
3188
|
var api = __webpack_require__(1);
|
|
3162
3189
|
|
|
3163
3190
|
// EXTERNAL MODULE: external "eoss-element/src/utils/clickoutside"
|
|
3164
|
-
var clickoutside_ = __webpack_require__(
|
|
3191
|
+
var clickoutside_ = __webpack_require__(22);
|
|
3165
3192
|
var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
3166
3193
|
|
|
3167
3194
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=script&lang=js&
|
package/lib/sizer.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/steps.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/switch.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/table-form.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,
|
|
@@ -2703,8 +2730,8 @@ module.exports = require("json-bigint");
|
|
|
2703
2730
|
// ESM COMPAT FLAG
|
|
2704
2731
|
__webpack_require__.r(__webpack_exports__);
|
|
2705
2732
|
|
|
2706
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=
|
|
2707
|
-
var
|
|
2733
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=6f2cdf82&
|
|
2734
|
+
var tablevue_type_template_id_6f2cdf82_render = function () {
|
|
2708
2735
|
var _vm = this
|
|
2709
2736
|
var _h = _vm.$createElement
|
|
2710
2737
|
var _c = _vm._self._c || _h
|
|
@@ -5239,10 +5266,10 @@ var tablevue_type_template_id_cb7a9bf0_render = function () {
|
|
|
5239
5266
|
)
|
|
5240
5267
|
}
|
|
5241
5268
|
var staticRenderFns = []
|
|
5242
|
-
|
|
5269
|
+
tablevue_type_template_id_6f2cdf82_render._withStripped = true
|
|
5243
5270
|
|
|
5244
5271
|
|
|
5245
|
-
// CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=
|
|
5272
|
+
// CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=6f2cdf82&
|
|
5246
5273
|
|
|
5247
5274
|
// EXTERNAL MODULE: ./src/utils/rules.js
|
|
5248
5275
|
var rules = __webpack_require__(10);
|
|
@@ -6250,6 +6277,7 @@ var util = __webpack_require__(0);
|
|
|
6250
6277
|
}
|
|
6251
6278
|
}
|
|
6252
6279
|
},
|
|
6280
|
+
inject: ['scale'],
|
|
6253
6281
|
props: {
|
|
6254
6282
|
model: {
|
|
6255
6283
|
type: Object,
|
|
@@ -6355,6 +6383,13 @@ var util = __webpack_require__(0);
|
|
|
6355
6383
|
}
|
|
6356
6384
|
},
|
|
6357
6385
|
watch: {
|
|
6386
|
+
scale: {
|
|
6387
|
+
deep: true,
|
|
6388
|
+
handler: function handler(val) {
|
|
6389
|
+
console.log(val, 999);
|
|
6390
|
+
this.getWidth();
|
|
6391
|
+
}
|
|
6392
|
+
},
|
|
6358
6393
|
zoom: {
|
|
6359
6394
|
handler: function handler(val) {
|
|
6360
6395
|
this.getWidth();
|
|
@@ -6506,7 +6541,7 @@ var componentNormalizer = __webpack_require__(2);
|
|
|
6506
6541
|
|
|
6507
6542
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
6508
6543
|
src_tablevue_type_script_lang_js_,
|
|
6509
|
-
|
|
6544
|
+
tablevue_type_template_id_6f2cdf82_render,
|
|
6510
6545
|
staticRenderFns,
|
|
6511
6546
|
false,
|
|
6512
6547
|
null,
|