@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.cjs.js +14 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22639,9 +22639,10 @@ const ly0default$4 = {
|
|
|
22639
22639
|
// 数据刷新
|
|
22640
22640
|
const refresh = async _ref => {
|
|
22641
22641
|
let {
|
|
22642
|
-
scopeThis
|
|
22642
|
+
scopeThis,
|
|
22643
|
+
message
|
|
22643
22644
|
} = _ref;
|
|
22644
|
-
const result = await ly0request$1.
|
|
22645
|
+
const result = await ly0request$1.storpro({
|
|
22645
22646
|
storproName: scopeThis.storpro.refresh,
|
|
22646
22647
|
data: {
|
|
22647
22648
|
query: scopeThis.query && scopeThis.query.formData ? scopeThis.query.formData : null,
|
|
@@ -22655,6 +22656,13 @@ const refresh = async _ref => {
|
|
|
22655
22656
|
data: result.data,
|
|
22656
22657
|
total: result.total
|
|
22657
22658
|
};
|
|
22659
|
+
if (!!message) {
|
|
22660
|
+
elementPlus.ElMessage('数据已刷新');
|
|
22661
|
+
}
|
|
22662
|
+
} else {
|
|
22663
|
+
if (!!message) {
|
|
22664
|
+
elementPlus.ElMessage('数据刷新错误');
|
|
22665
|
+
}
|
|
22658
22666
|
}
|
|
22659
22667
|
return {
|
|
22660
22668
|
code: result.code,
|
|
@@ -22679,7 +22687,7 @@ const getPgData = async _ref3 => {
|
|
|
22679
22687
|
let {
|
|
22680
22688
|
scopeThis
|
|
22681
22689
|
} = _ref3;
|
|
22682
|
-
const result = await ly0request$1.
|
|
22690
|
+
const result = await ly0request$1.storpro({
|
|
22683
22691
|
storproName: scopeThis.storpro.getPgData,
|
|
22684
22692
|
data: scopeThis.pgData && scopeThis.pgData.query ? scopeThis.pgData.query : null
|
|
22685
22693
|
});
|
|
@@ -22797,7 +22805,7 @@ const submitInsertOne = async _ref0 => {
|
|
|
22797
22805
|
cancelButtonText: '取消',
|
|
22798
22806
|
type: 'warning' // 警告图标
|
|
22799
22807
|
});
|
|
22800
|
-
const result = await ly0request$1.
|
|
22808
|
+
const result = await ly0request$1.storpro({
|
|
22801
22809
|
storproName: scopeThis.storpro.insertOne,
|
|
22802
22810
|
data: scopeThis.formData
|
|
22803
22811
|
});
|
|
@@ -22829,7 +22837,7 @@ const submitUpdateOne = async _ref1 => {
|
|
|
22829
22837
|
cancelButtonText: '取消',
|
|
22830
22838
|
type: 'warning' // 警告图标
|
|
22831
22839
|
});
|
|
22832
|
-
const result = await ly0request$1.
|
|
22840
|
+
const result = await ly0request$1.storpro({
|
|
22833
22841
|
storproName: scopeThis.storpro.updateOne,
|
|
22834
22842
|
data: scopeThis.formData
|
|
22835
22843
|
});
|
|
@@ -22865,7 +22873,7 @@ const submitDeleteOne = async _ref10 => {
|
|
|
22865
22873
|
cancelButtonText: '取消',
|
|
22866
22874
|
type: 'warning' // 警告图标
|
|
22867
22875
|
});
|
|
22868
|
-
const result = await ly0request$1.
|
|
22876
|
+
const result = await ly0request$1.storpro({
|
|
22869
22877
|
storproName: scopeThis.storpro.deleteOne,
|
|
22870
22878
|
data: formData // 继承行记录的值
|
|
22871
22879
|
});
|