@yoooloo42/joker 1.0.168 → 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.esm.js CHANGED
@@ -22762,9 +22762,9 @@ const popupFind = async _ref5 => {
22762
22762
  scopeThis
22763
22763
  } = _ref5;
22764
22764
  unclassified.deepClone.replaceObject(scopeThis.formData, scopeThis.query.formData);
22765
- scopeThis.tableData.query.sort = scopeThis.query && scopeThis.query.sort ? JSON.parse(JSON.stringify(scopeThis.query.sort)) : null;
22766
- scopeThis.tableData.query.pageSize = scopeThis.query && scopeThis.query.pageSize ? scopeThis.query.pageSize : ly0default$4.pageSize;
22767
- scopeThis.tableData.query.currentPage = scopeThis.query && scopeThis.query.currentPage ? scopeThis.query.currentPage : 1;
22765
+ scopeThis.tableData.sort = scopeThis.query && scopeThis.query.sort ? JSON.parse(JSON.stringify(scopeThis.query.sort)) : null;
22766
+ scopeThis.tableData.pageSize = scopeThis.query && scopeThis.query.pageSize ? scopeThis.query.pageSize : ly0default$4.pageSize;
22767
+ scopeThis.tableData.currentPage = scopeThis.query && scopeThis.query.currentPage ? scopeThis.query.currentPage : 1;
22768
22768
  unclassified.deepClone.replaceObject(scopeThis.formProps, scopeThis.find.formProps);
22769
22769
  // 弹出窗口
22770
22770
  unclassified.deepClone.deepMerge(scopeThis.formProps.popup, {
@@ -22819,9 +22819,9 @@ const submitFind = async _ref9 => {
22819
22819
  scopeThis
22820
22820
  } = _ref9;
22821
22821
  unclassified.deepClone.replaceObject(scopeThis.query.formData, scopeThis.formData);
22822
- scopeThis.query.sort = scopeThis.tableData.query && scopeThis.tableData.query.sort ? JSON.parse(JSON.stringify(scopeThis.tableData.query.sort)) : null;
22823
- scopeThis.query.pageSize = scopeThis.tableData.query && scopeThis.tableData.query.pageSize ? scopeThis.tableData.query.pageSize : ly0default$4.pageSize;
22824
- scopeThis.query.currentPage = scopeThis.tableData.query && scopeThis.tableData.query.currentPage ? scopeThis.tableData.query.currentPage : 1;
22822
+ scopeThis.query.sort = !!scopeThis.tableData.sort ? JSON.parse(JSON.stringify(scopeThis.tableData.sort)) : null;
22823
+ scopeThis.query.pageSize = !!scopeThis.tableData.pageSize ? scopeThis.tableData.pageSize : ly0default$4.pageSize;
22824
+ scopeThis.query.currentPage = !!scopeThis.tableData.currentPage ? scopeThis.tableData.currentPage : ly0default$4.currentPage;
22825
22825
  const result = await refresh({
22826
22826
  scopeThis
22827
22827
  });
@@ -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',
@@ -24168,9 +24155,6 @@ const props = __props;
24168
24155
  // props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
24169
24156
  let formData_box = props.modelValue;
24170
24157
  const formProps_box = props.myProps;
24171
-
24172
- console.log('测试 111', formProps_box);
24173
-
24174
24158
  const scopeThis_box = props.scopeThis;
24175
24159
 
24176
24160
  const style = reactive({
@@ -24186,40 +24170,10 @@ const hdl = {
24186
24170
  async submit(){
24187
24171
  if(formProps_box.submit.handle){
24188
24172
  // 执行用户句柄
24189
- const result = await formProps_box.submit.handle({
24173
+ await formProps_box.submit.handle({
24190
24174
  formData: formData_box,
24191
24175
  scopeThis: scopeThis_box
24192
24176
  });
24193
- if(result.code !== 0){
24194
- return
24195
- }
24196
- }
24197
-
24198
- // 后台提交 - URL地址
24199
- if(formProps_box.submit.url){
24200
- const result = await request.ly0.ly0request({
24201
- url: formProps_box.submit.url,
24202
- data: formData_box
24203
- });
24204
- if(result.code !== 0){
24205
- return
24206
- }
24207
- }
24208
-
24209
- // 后台提交 - 存储过程
24210
- if(formProps_box.submit.storpro){
24211
- const result = await request.ly0.storpro({
24212
- storproName: formProps_box.submit.storpro,
24213
- data: formData_box
24214
- });
24215
- if(result.code !== 0){
24216
- return
24217
- }
24218
- }
24219
-
24220
- if(formProps_box.popup){
24221
- // 关闭表单窗口
24222
- formProps_box.popup.visible = false;
24223
24177
  }
24224
24178
  }
24225
24179
  };
@@ -24413,9 +24367,6 @@ const props = __props;
24413
24367
  // 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
24414
24368
  let formData_box = reactive(props.modelValue);
24415
24369
  const formProps_box = reactive(unclassified.deepClone.deepDefaults(props.myProps, ly0default$3.myProps));
24416
-
24417
- console.log('测试 000', formProps_box);
24418
-
24419
24370
  const scopeThis_box = reactive(props.scopeThis);
24420
24371
 
24421
24372
  return (_ctx, _cache) => {
@@ -42492,15 +42443,12 @@ var ly0default$1 = {
42492
42443
  modelValue: {
42493
42444
  data: [],
42494
42445
  total: 0,
42495
- query: {
42496
- formData: null,
42497
- sort: {
42498
- label: "",
42499
- order: ""
42500
- },
42501
- pageSize: 10,
42502
- currentPage: 1
42503
- }
42446
+ sort: {
42447
+ label: "",
42448
+ order: ""
42449
+ },
42450
+ pageSize: 10,
42451
+ currentPage: 1
42504
42452
  }
42505
42453
  };
42506
42454