@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.cjs.js CHANGED
@@ -22766,9 +22766,9 @@ const popupFind = async _ref5 => {
22766
22766
  scopeThis
22767
22767
  } = _ref5;
22768
22768
  unclassified.deepClone.replaceObject(scopeThis.formData, scopeThis.query.formData);
22769
- scopeThis.tableData.query.sort = scopeThis.query && scopeThis.query.sort ? JSON.parse(JSON.stringify(scopeThis.query.sort)) : null;
22770
- scopeThis.tableData.query.pageSize = scopeThis.query && scopeThis.query.pageSize ? scopeThis.query.pageSize : ly0default$4.pageSize;
22771
- scopeThis.tableData.query.currentPage = scopeThis.query && scopeThis.query.currentPage ? scopeThis.query.currentPage : 1;
22769
+ scopeThis.tableData.sort = scopeThis.query && scopeThis.query.sort ? JSON.parse(JSON.stringify(scopeThis.query.sort)) : null;
22770
+ scopeThis.tableData.pageSize = scopeThis.query && scopeThis.query.pageSize ? scopeThis.query.pageSize : ly0default$4.pageSize;
22771
+ scopeThis.tableData.currentPage = scopeThis.query && scopeThis.query.currentPage ? scopeThis.query.currentPage : 1;
22772
22772
  unclassified.deepClone.replaceObject(scopeThis.formProps, scopeThis.find.formProps);
22773
22773
  // 弹出窗口
22774
22774
  unclassified.deepClone.deepMerge(scopeThis.formProps.popup, {
@@ -22823,9 +22823,9 @@ const submitFind = async _ref9 => {
22823
22823
  scopeThis
22824
22824
  } = _ref9;
22825
22825
  unclassified.deepClone.replaceObject(scopeThis.query.formData, scopeThis.formData);
22826
- scopeThis.query.sort = scopeThis.tableData.query && scopeThis.tableData.query.sort ? JSON.parse(JSON.stringify(scopeThis.tableData.query.sort)) : null;
22827
- scopeThis.query.pageSize = scopeThis.tableData.query && scopeThis.tableData.query.pageSize ? scopeThis.tableData.query.pageSize : ly0default$4.pageSize;
22828
- scopeThis.query.currentPage = scopeThis.tableData.query && scopeThis.tableData.query.currentPage ? scopeThis.tableData.query.currentPage : 1;
22826
+ scopeThis.query.sort = !!scopeThis.tableData.sort ? JSON.parse(JSON.stringify(scopeThis.tableData.sort)) : null;
22827
+ scopeThis.query.pageSize = !!scopeThis.tableData.pageSize ? scopeThis.tableData.pageSize : ly0default$4.pageSize;
22828
+ scopeThis.query.currentPage = !!scopeThis.tableData.currentPage ? scopeThis.tableData.currentPage : ly0default$4.currentPage;
22829
22829
  const result = await refresh({
22830
22830
  scopeThis
22831
22831
  });
@@ -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',
@@ -24172,9 +24159,6 @@ const props = __props;
24172
24159
  // props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
24173
24160
  let formData_box = props.modelValue;
24174
24161
  const formProps_box = props.myProps;
24175
-
24176
- console.log('测试 111', formProps_box);
24177
-
24178
24162
  const scopeThis_box = props.scopeThis;
24179
24163
 
24180
24164
  const style = vue.reactive({
@@ -24190,40 +24174,10 @@ const hdl = {
24190
24174
  async submit(){
24191
24175
  if(formProps_box.submit.handle){
24192
24176
  // 执行用户句柄
24193
- const result = await formProps_box.submit.handle({
24177
+ await formProps_box.submit.handle({
24194
24178
  formData: formData_box,
24195
24179
  scopeThis: scopeThis_box
24196
24180
  });
24197
- if(result.code !== 0){
24198
- return
24199
- }
24200
- }
24201
-
24202
- // 后台提交 - URL地址
24203
- if(formProps_box.submit.url){
24204
- const result = await request.ly0.ly0request({
24205
- url: formProps_box.submit.url,
24206
- data: formData_box
24207
- });
24208
- if(result.code !== 0){
24209
- return
24210
- }
24211
- }
24212
-
24213
- // 后台提交 - 存储过程
24214
- if(formProps_box.submit.storpro){
24215
- const result = await request.ly0.storpro({
24216
- storproName: formProps_box.submit.storpro,
24217
- data: formData_box
24218
- });
24219
- if(result.code !== 0){
24220
- return
24221
- }
24222
- }
24223
-
24224
- if(formProps_box.popup){
24225
- // 关闭表单窗口
24226
- formProps_box.popup.visible = false;
24227
24181
  }
24228
24182
  }
24229
24183
  };
@@ -24417,9 +24371,6 @@ const props = __props;
24417
24371
  // 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
24418
24372
  let formData_box = vue.reactive(props.modelValue);
24419
24373
  const formProps_box = vue.reactive(unclassified.deepClone.deepDefaults(props.myProps, ly0default$3.myProps));
24420
-
24421
- console.log('测试 000', formProps_box);
24422
-
24423
24374
  const scopeThis_box = vue.reactive(props.scopeThis);
24424
24375
 
24425
24376
  return (_ctx, _cache) => {
@@ -42496,15 +42447,12 @@ var ly0default$1 = {
42496
42447
  modelValue: {
42497
42448
  data: [],
42498
42449
  total: 0,
42499
- query: {
42500
- formData: null,
42501
- sort: {
42502
- label: "",
42503
- order: ""
42504
- },
42505
- pageSize: 10,
42506
- currentPage: 1
42507
- }
42450
+ sort: {
42451
+ label: "",
42452
+ order: ""
42453
+ },
42454
+ pageSize: 10,
42455
+ currentPage: 1
42508
42456
  }
42509
42457
  };
42510
42458