@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.cjs.js
CHANGED
|
@@ -21969,7 +21969,7 @@ const upload_carplate = '/ly0/upload-req/carplate';
|
|
|
21969
21969
|
// 后端请求
|
|
21970
21970
|
async function request$1(_ref) {
|
|
21971
21971
|
let {
|
|
21972
|
-
domain =
|
|
21972
|
+
domain = domainPara,
|
|
21973
21973
|
url = '',
|
|
21974
21974
|
// 路由
|
|
21975
21975
|
data = null // 请求数据
|
|
@@ -21991,12 +21991,12 @@ async function request$1(_ref) {
|
|
|
21991
21991
|
// ly0后端请求,需要处理session异常
|
|
21992
21992
|
async function ly0request(_ref2) {
|
|
21993
21993
|
let {
|
|
21994
|
-
domain =
|
|
21994
|
+
domain = domainPara,
|
|
21995
21995
|
url = '',
|
|
21996
21996
|
// 路由
|
|
21997
21997
|
data = null,
|
|
21998
21998
|
// 请求数据
|
|
21999
|
-
|
|
21999
|
+
routerInstance = null // 路由实例
|
|
22000
22000
|
} = _ref2;
|
|
22001
22001
|
try {
|
|
22002
22002
|
const response = await request$1({
|
|
@@ -22014,7 +22014,9 @@ async function ly0request(_ref2) {
|
|
|
22014
22014
|
usertbl: ly0session && ly0session.session && ly0session.session.usertbl ? ly0session.session.usertbl : 'ly0d0user'
|
|
22015
22015
|
}
|
|
22016
22016
|
});
|
|
22017
|
-
ly0sessionLose(
|
|
22017
|
+
ly0sessionLose({
|
|
22018
|
+
routerInstance
|
|
22019
|
+
});
|
|
22018
22020
|
return {
|
|
22019
22021
|
code: 1,
|
|
22020
22022
|
message: 'session 异常',
|
|
@@ -22037,7 +22039,7 @@ async function storpro(_ref3) {
|
|
|
22037
22039
|
domain = domainPara,
|
|
22038
22040
|
noSession = false,
|
|
22039
22041
|
// 不进行session验证
|
|
22040
|
-
|
|
22042
|
+
routerInstance = null // 路由实例
|
|
22041
22043
|
} = _ref3;
|
|
22042
22044
|
try {
|
|
22043
22045
|
if (!storproName) {
|
|
@@ -22054,7 +22056,7 @@ async function storpro(_ref3) {
|
|
|
22054
22056
|
noSession,
|
|
22055
22057
|
ly0session: ly0sessionLoad()
|
|
22056
22058
|
},
|
|
22057
|
-
|
|
22059
|
+
routerInstance
|
|
22058
22060
|
});
|
|
22059
22061
|
return result;
|
|
22060
22062
|
} catch (err) {
|
|
@@ -22081,7 +22083,7 @@ function ly0sessionClear() {
|
|
|
22081
22083
|
// session丢失
|
|
22082
22084
|
function ly0sessionLose(_ref4) {
|
|
22083
22085
|
let {
|
|
22084
|
-
|
|
22086
|
+
routerInstance
|
|
22085
22087
|
} = _ref4;
|
|
22086
22088
|
let ly0session = ly0sessionLoad(),
|
|
22087
22089
|
lose = false,
|
|
@@ -22097,10 +22099,10 @@ function ly0sessionLose(_ref4) {
|
|
|
22097
22099
|
break;
|
|
22098
22100
|
}
|
|
22099
22101
|
}
|
|
22100
|
-
if (
|
|
22101
|
-
|
|
22102
|
-
|
|
22103
|
-
}
|
|
22102
|
+
if (lose) {
|
|
22103
|
+
if (routerInstance) {
|
|
22104
|
+
routerInstance.replace(route);
|
|
22105
|
+
}
|
|
22104
22106
|
}
|
|
22105
22107
|
return lose;
|
|
22106
22108
|
}
|
|
@@ -22108,7 +22110,7 @@ function ly0sessionLose(_ref4) {
|
|
|
22108
22110
|
// session丢失
|
|
22109
22111
|
function ly0sessionLoseWithUsertbl(_ref5) {
|
|
22110
22112
|
let {
|
|
22111
|
-
|
|
22113
|
+
routerInstance,
|
|
22112
22114
|
usertbl
|
|
22113
22115
|
} = _ref5;
|
|
22114
22116
|
let ly0session = ly0sessionLoad(),
|
|
@@ -22125,13 +22127,38 @@ function ly0sessionLoseWithUsertbl(_ref5) {
|
|
|
22125
22127
|
break;
|
|
22126
22128
|
}
|
|
22127
22129
|
}
|
|
22128
|
-
if (
|
|
22129
|
-
|
|
22130
|
-
|
|
22131
|
-
}
|
|
22130
|
+
if (lose) {
|
|
22131
|
+
if (routerInstance) {
|
|
22132
|
+
routerInstance.replace(route);
|
|
22133
|
+
}
|
|
22132
22134
|
}
|
|
22133
22135
|
return lose;
|
|
22134
22136
|
}
|
|
22137
|
+
|
|
22138
|
+
// 导航
|
|
22139
|
+
function navigate(_ref6) {
|
|
22140
|
+
let {
|
|
22141
|
+
code = '1',
|
|
22142
|
+
// 页面跳转类型
|
|
22143
|
+
path,
|
|
22144
|
+
// 跳转路径
|
|
22145
|
+
routerInstance // 路由实例
|
|
22146
|
+
} = _ref6;
|
|
22147
|
+
if (code === '0') {
|
|
22148
|
+
// 页面跳转
|
|
22149
|
+
window.location.href = path;
|
|
22150
|
+
} else if (code === '1') {
|
|
22151
|
+
// VUE路由
|
|
22152
|
+
if (routerInstance) {
|
|
22153
|
+
routerInstance.push(path);
|
|
22154
|
+
}
|
|
22155
|
+
} else {
|
|
22156
|
+
// 默认VUE路由
|
|
22157
|
+
if (routerInstance) {
|
|
22158
|
+
routerInstance.push(path);
|
|
22159
|
+
}
|
|
22160
|
+
}
|
|
22161
|
+
}
|
|
22135
22162
|
var ly0request$1 = {
|
|
22136
22163
|
domain: domainPara,
|
|
22137
22164
|
upload: upload$1,
|
|
@@ -22144,7 +22171,8 @@ var ly0request$1 = {
|
|
|
22144
22171
|
ly0sessionLoad,
|
|
22145
22172
|
ly0sessionClear,
|
|
22146
22173
|
ly0sessionLose,
|
|
22147
|
-
ly0sessionLoseWithUsertbl
|
|
22174
|
+
ly0sessionLoseWithUsertbl,
|
|
22175
|
+
navigate
|
|
22148
22176
|
};
|
|
22149
22177
|
|
|
22150
22178
|
var request = {
|
|
@@ -24321,6 +24349,7 @@ script$i.__file = "src/form/Form.vue";
|
|
|
24321
24349
|
var ly0default$3 = {
|
|
24322
24350
|
myProps: {
|
|
24323
24351
|
popup: {
|
|
24352
|
+
switch: false,
|
|
24324
24353
|
visible: false,
|
|
24325
24354
|
title: '',
|
|
24326
24355
|
width: '800px',
|
|
@@ -24386,7 +24415,7 @@ const scopeThis_box = vue.reactive(props.scopeThis);
|
|
|
24386
24415
|
return (_ctx, _cache) => {
|
|
24387
24416
|
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
24388
24417
|
|
|
24389
|
-
return (formProps_box.popup)
|
|
24418
|
+
return (formProps_box.popup.switch)
|
|
24390
24419
|
? (vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
24391
24420
|
key: 0,
|
|
24392
24421
|
modelValue: formProps_box.popup.visible,
|
|
@@ -42386,6 +42415,7 @@ script$d.__file = "src/table/Table.vue";
|
|
|
42386
42415
|
var ly0default$1 = {
|
|
42387
42416
|
myProps: {
|
|
42388
42417
|
popup: {
|
|
42418
|
+
switch: false,
|
|
42389
42419
|
visible: false,
|
|
42390
42420
|
title: '',
|
|
42391
42421
|
width: "1024px",
|
|
@@ -42495,12 +42525,12 @@ const scopeThis_box = vue.reactive(props.scopeThis);
|
|
|
42495
42525
|
return (_ctx, _cache) => {
|
|
42496
42526
|
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
42497
42527
|
|
|
42498
|
-
return (tableProps_box.popup)
|
|
42528
|
+
return (tableProps_box.popup.switch)
|
|
42499
42529
|
? (vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
42500
42530
|
key: 0,
|
|
42501
42531
|
modelValue: tableProps_box.popup.visible,
|
|
42502
42532
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((tableProps_box.popup.visible) = $event)),
|
|
42503
|
-
"custom-class":
|
|
42533
|
+
"custom-class": "code-template-dialog",
|
|
42504
42534
|
"close-on-press-escape": true,
|
|
42505
42535
|
"append-to-body": "",
|
|
42506
42536
|
title: tableProps_box.popup.title,
|