@yoooloo42/joker 1.0.202 → 1.0.205
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/dist/index.cjs.js +50 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +50 -20
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -21965,7 +21965,7 @@ const upload_carplate = '/ly0/upload-req/carplate';
|
|
|
21965
21965
|
// 后端请求
|
|
21966
21966
|
async function request$1(_ref) {
|
|
21967
21967
|
let {
|
|
21968
|
-
domain =
|
|
21968
|
+
domain = domainPara,
|
|
21969
21969
|
url = '',
|
|
21970
21970
|
// 路由
|
|
21971
21971
|
data = null // 请求数据
|
|
@@ -21987,12 +21987,12 @@ async function request$1(_ref) {
|
|
|
21987
21987
|
// ly0后端请求,需要处理session异常
|
|
21988
21988
|
async function ly0request$1(_ref2) {
|
|
21989
21989
|
let {
|
|
21990
|
-
domain =
|
|
21990
|
+
domain = domainPara,
|
|
21991
21991
|
url = '',
|
|
21992
21992
|
// 路由
|
|
21993
21993
|
data = null,
|
|
21994
21994
|
// 请求数据
|
|
21995
|
-
|
|
21995
|
+
routerInstance = null // 路由实例
|
|
21996
21996
|
} = _ref2;
|
|
21997
21997
|
try {
|
|
21998
21998
|
const response = await request$1({
|
|
@@ -22010,7 +22010,9 @@ async function ly0request$1(_ref2) {
|
|
|
22010
22010
|
usertbl: ly0session && ly0session.session && ly0session.session.usertbl ? ly0session.session.usertbl : 'ly0d0user'
|
|
22011
22011
|
}
|
|
22012
22012
|
});
|
|
22013
|
-
ly0sessionLose(
|
|
22013
|
+
ly0sessionLose({
|
|
22014
|
+
routerInstance
|
|
22015
|
+
});
|
|
22014
22016
|
return {
|
|
22015
22017
|
code: 1,
|
|
22016
22018
|
message: 'session 异常',
|
|
@@ -22033,7 +22035,7 @@ async function storpro(_ref3) {
|
|
|
22033
22035
|
domain = domainPara,
|
|
22034
22036
|
noSession = false,
|
|
22035
22037
|
// 不进行session验证
|
|
22036
|
-
|
|
22038
|
+
routerInstance = null // 路由实例
|
|
22037
22039
|
} = _ref3;
|
|
22038
22040
|
try {
|
|
22039
22041
|
if (!storproName) {
|
|
@@ -22050,7 +22052,7 @@ async function storpro(_ref3) {
|
|
|
22050
22052
|
noSession,
|
|
22051
22053
|
ly0session: ly0sessionLoad()
|
|
22052
22054
|
},
|
|
22053
|
-
|
|
22055
|
+
routerInstance
|
|
22054
22056
|
});
|
|
22055
22057
|
return result;
|
|
22056
22058
|
} catch (err) {
|
|
@@ -22077,7 +22079,7 @@ function ly0sessionClear() {
|
|
|
22077
22079
|
// session丢失
|
|
22078
22080
|
function ly0sessionLose(_ref4) {
|
|
22079
22081
|
let {
|
|
22080
|
-
|
|
22082
|
+
routerInstance
|
|
22081
22083
|
} = _ref4;
|
|
22082
22084
|
let ly0session = ly0sessionLoad(),
|
|
22083
22085
|
lose = false,
|
|
@@ -22093,10 +22095,10 @@ function ly0sessionLose(_ref4) {
|
|
|
22093
22095
|
break;
|
|
22094
22096
|
}
|
|
22095
22097
|
}
|
|
22096
|
-
if (
|
|
22097
|
-
|
|
22098
|
-
|
|
22099
|
-
}
|
|
22098
|
+
if (lose) {
|
|
22099
|
+
if (routerInstance) {
|
|
22100
|
+
routerInstance.replace(route);
|
|
22101
|
+
}
|
|
22100
22102
|
}
|
|
22101
22103
|
return lose;
|
|
22102
22104
|
}
|
|
@@ -22104,7 +22106,7 @@ function ly0sessionLose(_ref4) {
|
|
|
22104
22106
|
// session丢失
|
|
22105
22107
|
function ly0sessionLoseWithUsertbl(_ref5) {
|
|
22106
22108
|
let {
|
|
22107
|
-
|
|
22109
|
+
routerInstance,
|
|
22108
22110
|
usertbl
|
|
22109
22111
|
} = _ref5;
|
|
22110
22112
|
let ly0session = ly0sessionLoad(),
|
|
@@ -22121,13 +22123,38 @@ function ly0sessionLoseWithUsertbl(_ref5) {
|
|
|
22121
22123
|
break;
|
|
22122
22124
|
}
|
|
22123
22125
|
}
|
|
22124
|
-
if (
|
|
22125
|
-
|
|
22126
|
-
|
|
22127
|
-
}
|
|
22126
|
+
if (lose) {
|
|
22127
|
+
if (routerInstance) {
|
|
22128
|
+
routerInstance.replace(route);
|
|
22129
|
+
}
|
|
22128
22130
|
}
|
|
22129
22131
|
return lose;
|
|
22130
22132
|
}
|
|
22133
|
+
|
|
22134
|
+
// 导航
|
|
22135
|
+
function navigate(_ref6) {
|
|
22136
|
+
let {
|
|
22137
|
+
code = '1',
|
|
22138
|
+
// 页面跳转类型
|
|
22139
|
+
path,
|
|
22140
|
+
// 跳转路径
|
|
22141
|
+
routerInstance // 路由实例
|
|
22142
|
+
} = _ref6;
|
|
22143
|
+
if (code === '0') {
|
|
22144
|
+
// 页面跳转
|
|
22145
|
+
window.location.href = path;
|
|
22146
|
+
} else if (code === '1') {
|
|
22147
|
+
// VUE路由
|
|
22148
|
+
if (routerInstance) {
|
|
22149
|
+
routerInstance.push(path);
|
|
22150
|
+
}
|
|
22151
|
+
} else {
|
|
22152
|
+
// 默认VUE路由
|
|
22153
|
+
if (routerInstance) {
|
|
22154
|
+
routerInstance.push(path);
|
|
22155
|
+
}
|
|
22156
|
+
}
|
|
22157
|
+
}
|
|
22131
22158
|
var ly0request = {
|
|
22132
22159
|
domain: domainPara,
|
|
22133
22160
|
upload: upload$1,
|
|
@@ -22140,7 +22167,8 @@ var ly0request = {
|
|
|
22140
22167
|
ly0sessionLoad,
|
|
22141
22168
|
ly0sessionClear,
|
|
22142
22169
|
ly0sessionLose,
|
|
22143
|
-
ly0sessionLoseWithUsertbl
|
|
22170
|
+
ly0sessionLoseWithUsertbl,
|
|
22171
|
+
navigate
|
|
22144
22172
|
};
|
|
22145
22173
|
|
|
22146
22174
|
var request = {
|
|
@@ -24317,6 +24345,7 @@ script$i.__file = "src/form/Form.vue";
|
|
|
24317
24345
|
var ly0default$3 = {
|
|
24318
24346
|
myProps: {
|
|
24319
24347
|
popup: {
|
|
24348
|
+
switch: false,
|
|
24320
24349
|
visible: false,
|
|
24321
24350
|
title: '',
|
|
24322
24351
|
width: '800px',
|
|
@@ -24382,7 +24411,7 @@ const scopeThis_box = reactive(props.scopeThis);
|
|
|
24382
24411
|
return (_ctx, _cache) => {
|
|
24383
24412
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
24384
24413
|
|
|
24385
|
-
return (formProps_box.popup)
|
|
24414
|
+
return (formProps_box.popup.switch)
|
|
24386
24415
|
? (openBlock(), createBlock(_component_el_dialog, {
|
|
24387
24416
|
key: 0,
|
|
24388
24417
|
modelValue: formProps_box.popup.visible,
|
|
@@ -42382,6 +42411,7 @@ script$d.__file = "src/table/Table.vue";
|
|
|
42382
42411
|
var ly0default$1 = {
|
|
42383
42412
|
myProps: {
|
|
42384
42413
|
popup: {
|
|
42414
|
+
switch: false,
|
|
42385
42415
|
visible: false,
|
|
42386
42416
|
title: '',
|
|
42387
42417
|
width: "1024px",
|
|
@@ -42491,12 +42521,12 @@ const scopeThis_box = reactive(props.scopeThis);
|
|
|
42491
42521
|
return (_ctx, _cache) => {
|
|
42492
42522
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
42493
42523
|
|
|
42494
|
-
return (tableProps_box.popup)
|
|
42524
|
+
return (tableProps_box.popup.switch)
|
|
42495
42525
|
? (openBlock(), createBlock(_component_el_dialog, {
|
|
42496
42526
|
key: 0,
|
|
42497
42527
|
modelValue: tableProps_box.popup.visible,
|
|
42498
42528
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((tableProps_box.popup.visible) = $event)),
|
|
42499
|
-
"custom-class":
|
|
42529
|
+
"custom-class": "code-template-dialog",
|
|
42500
42530
|
"close-on-press-escape": true,
|
|
42501
42531
|
"append-to-body": "",
|
|
42502
42532
|
title: tableProps_box.popup.title,
|