@yoooloo42/joker 1.0.169 → 1.0.170
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 +2 -45
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -45
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22965,20 +22965,7 @@ var ly0default$3 = {
|
|
|
22965
22965
|
},
|
|
22966
22966
|
cols: [],
|
|
22967
22967
|
submit: {
|
|
22968
|
-
switch: false
|
|
22969
|
-
// true - 提交模式, false - 组件模式
|
|
22970
|
-
watch: false,
|
|
22971
|
-
// 提交监听
|
|
22972
|
-
async handle(_ref) {
|
|
22973
|
-
let {
|
|
22974
|
-
formData,
|
|
22975
|
-
scopeThis
|
|
22976
|
-
} = _ref;
|
|
22977
|
-
},
|
|
22978
|
-
// 异步用户句柄
|
|
22979
|
-
url: '',
|
|
22980
|
-
// 后台提交 - URL地址
|
|
22981
|
-
storpro: '' // 后台提交 - 存储过程
|
|
22968
|
+
switch: true // true - 提交模式, false - 组件模式
|
|
22982
22969
|
},
|
|
22983
22970
|
para: {
|
|
22984
22971
|
inputWidth: '200px',
|
|
@@ -24183,40 +24170,10 @@ const hdl = {
|
|
|
24183
24170
|
async submit(){
|
|
24184
24171
|
if(formProps_box.submit.handle){
|
|
24185
24172
|
// 执行用户句柄
|
|
24186
|
-
|
|
24173
|
+
await formProps_box.submit.handle({
|
|
24187
24174
|
formData: formData_box,
|
|
24188
24175
|
scopeThis: scopeThis_box
|
|
24189
24176
|
});
|
|
24190
|
-
if(result.code !== 0){
|
|
24191
|
-
return
|
|
24192
|
-
}
|
|
24193
|
-
}
|
|
24194
|
-
|
|
24195
|
-
// 后台提交 - URL地址
|
|
24196
|
-
if(formProps_box.submit.url){
|
|
24197
|
-
const result = await request.ly0.ly0request({
|
|
24198
|
-
url: formProps_box.submit.url,
|
|
24199
|
-
data: formData_box
|
|
24200
|
-
});
|
|
24201
|
-
if(result.code !== 0){
|
|
24202
|
-
return
|
|
24203
|
-
}
|
|
24204
|
-
}
|
|
24205
|
-
|
|
24206
|
-
// 后台提交 - 存储过程
|
|
24207
|
-
if(formProps_box.submit.storpro){
|
|
24208
|
-
const result = await request.ly0.storpro({
|
|
24209
|
-
storproName: formProps_box.submit.storpro,
|
|
24210
|
-
data: formData_box
|
|
24211
|
-
});
|
|
24212
|
-
if(result.code !== 0){
|
|
24213
|
-
return
|
|
24214
|
-
}
|
|
24215
|
-
}
|
|
24216
|
-
|
|
24217
|
-
if(formProps_box.popup){
|
|
24218
|
-
// 关闭表单窗口
|
|
24219
|
-
formProps_box.popup.visible = false;
|
|
24220
24177
|
}
|
|
24221
24178
|
}
|
|
24222
24179
|
};
|