@yoooloo42/joker 1.0.169 → 1.0.171

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.esm.js CHANGED
@@ -22715,11 +22715,15 @@ const reload = async _ref2 => {
22715
22715
  let {
22716
22716
  scopeThis
22717
22717
  } = _ref2;
22718
+ console.log('测试 000', scopeThis.queryInit);
22719
+ console.log('测试 111', scopeThis.query);
22718
22720
  unclassified.deepClone.replaceObject(scopeThis.query, scopeThis.queryInit);
22719
22721
  const result = await refresh({
22720
22722
  scopeThis
22721
22723
  });
22722
22724
  ElMessage(result.code === 0 ? '数据已重载' : '数据重载错误');
22725
+ console.log('测试 222', scopeThis.queryInit);
22726
+ console.log('测试 333', scopeThis.query);
22723
22727
  };
22724
22728
 
22725
22729
  // 获取页面数据附加
@@ -22965,20 +22969,7 @@ var ly0default$3 = {
22965
22969
  },
22966
22970
  cols: [],
22967
22971
  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: '' // 后台提交 - 存储过程
22972
+ switch: true // true - 提交模式, false - 组件模式
22982
22973
  },
22983
22974
  para: {
22984
22975
  inputWidth: '200px',
@@ -24183,40 +24174,10 @@ const hdl = {
24183
24174
  async submit(){
24184
24175
  if(formProps_box.submit.handle){
24185
24176
  // 执行用户句柄
24186
- const result = await formProps_box.submit.handle({
24177
+ await formProps_box.submit.handle({
24187
24178
  formData: formData_box,
24188
24179
  scopeThis: scopeThis_box
24189
24180
  });
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
24181
  }
24221
24182
  }
24222
24183
  };