@yoooloo42/joker 1.0.147 → 1.0.149

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
@@ -22635,9 +22635,10 @@ const ly0default$4 = {
22635
22635
  // 数据刷新
22636
22636
  const refresh = async _ref => {
22637
22637
  let {
22638
- scopeThis
22638
+ scopeThis,
22639
+ message
22639
22640
  } = _ref;
22640
- const result = await ly0request.ly0.storpro({
22641
+ const result = await ly0request.storpro({
22641
22642
  storproName: scopeThis.storpro.refresh,
22642
22643
  data: {
22643
22644
  query: scopeThis.query && scopeThis.query.formData ? scopeThis.query.formData : null,
@@ -22651,6 +22652,13 @@ const refresh = async _ref => {
22651
22652
  data: result.data,
22652
22653
  total: result.total
22653
22654
  };
22655
+ if (!!message) {
22656
+ ElMessage('数据已刷新');
22657
+ }
22658
+ } else {
22659
+ if (!!message) {
22660
+ ElMessage('数据刷新错误');
22661
+ }
22654
22662
  }
22655
22663
  return {
22656
22664
  code: result.code,
@@ -22675,7 +22683,7 @@ const getPgData = async _ref3 => {
22675
22683
  let {
22676
22684
  scopeThis
22677
22685
  } = _ref3;
22678
- const result = await ly0request.ly0.storpro({
22686
+ const result = await ly0request.storpro({
22679
22687
  storproName: scopeThis.storpro.getPgData,
22680
22688
  data: scopeThis.pgData && scopeThis.pgData.query ? scopeThis.pgData.query : null
22681
22689
  });
@@ -22793,7 +22801,7 @@ const submitInsertOne = async _ref0 => {
22793
22801
  cancelButtonText: '取消',
22794
22802
  type: 'warning' // 警告图标
22795
22803
  });
22796
- const result = await ly0request.ly0.storpro({
22804
+ const result = await ly0request.storpro({
22797
22805
  storproName: scopeThis.storpro.insertOne,
22798
22806
  data: scopeThis.formData
22799
22807
  });
@@ -22825,7 +22833,7 @@ const submitUpdateOne = async _ref1 => {
22825
22833
  cancelButtonText: '取消',
22826
22834
  type: 'warning' // 警告图标
22827
22835
  });
22828
- const result = await ly0request.ly0.storpro({
22836
+ const result = await ly0request.storpro({
22829
22837
  storproName: scopeThis.storpro.updateOne,
22830
22838
  data: scopeThis.formData
22831
22839
  });
@@ -22861,7 +22869,7 @@ const submitDeleteOne = async _ref10 => {
22861
22869
  cancelButtonText: '取消',
22862
22870
  type: 'warning' // 警告图标
22863
22871
  });
22864
- const result = await ly0request.ly0.storpro({
22872
+ const result = await ly0request.storpro({
22865
22873
  storproName: scopeThis.storpro.deleteOne,
22866
22874
  data: formData // 继承行记录的值
22867
22875
  });