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