@yoooloo42/joker 1.0.215 → 1.0.217
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 +74 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +74 -24
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22800,11 +22800,38 @@ const reload = async _ref2 => {
|
|
|
22800
22800
|
elementPlus.ElMessage(result.code === 0 ? '数据已重载' : '数据重载错误');
|
|
22801
22801
|
};
|
|
22802
22802
|
|
|
22803
|
-
//
|
|
22804
|
-
const
|
|
22803
|
+
// 页记录数改变
|
|
22804
|
+
const pageSizeChange = async _ref3 => {
|
|
22805
22805
|
let {
|
|
22806
|
+
pageSize,
|
|
22806
22807
|
scopeThis
|
|
22807
22808
|
} = _ref3;
|
|
22809
|
+
console.log('测试 555 页记录数改变');
|
|
22810
|
+
scopeThis.query.pageSize = pageSize;
|
|
22811
|
+
scopeThis.query.currentPage = 1;
|
|
22812
|
+
await reload({
|
|
22813
|
+
scopeThis
|
|
22814
|
+
});
|
|
22815
|
+
};
|
|
22816
|
+
|
|
22817
|
+
// 当前页码改变
|
|
22818
|
+
const currentPageChange = async _ref4 => {
|
|
22819
|
+
let {
|
|
22820
|
+
currentPage,
|
|
22821
|
+
scopeThis
|
|
22822
|
+
} = _ref4;
|
|
22823
|
+
console.log('测试 666 当前页码改变');
|
|
22824
|
+
scopeThis.query.currentPage = currentPage;
|
|
22825
|
+
await reload({
|
|
22826
|
+
scopeThis
|
|
22827
|
+
});
|
|
22828
|
+
};
|
|
22829
|
+
|
|
22830
|
+
// 获取页面数据附加
|
|
22831
|
+
const getPgData = async _ref5 => {
|
|
22832
|
+
let {
|
|
22833
|
+
scopeThis
|
|
22834
|
+
} = _ref5;
|
|
22808
22835
|
const result = await ly0request$1.storpro({
|
|
22809
22836
|
storproName: scopeThis.storpro.getPgData,
|
|
22810
22837
|
data: scopeThis.pgData && scopeThis.pgData.query ? scopeThis.pgData.query : null
|
|
@@ -22820,10 +22847,13 @@ const getPgData = async _ref3 => {
|
|
|
22820
22847
|
};
|
|
22821
22848
|
|
|
22822
22849
|
// 初始化
|
|
22823
|
-
const init = async
|
|
22850
|
+
const init = async _ref6 => {
|
|
22824
22851
|
let {
|
|
22825
22852
|
scopeThis
|
|
22826
|
-
} =
|
|
22853
|
+
} = _ref6;
|
|
22854
|
+
console.log('测试 444 初始化');
|
|
22855
|
+
scopeThis.tableProps.table.hdlPageSizeChanged = pageSizeChange;
|
|
22856
|
+
scopeThis.tableProps.table.hdlCurrentPageChanged = currentPageChange;
|
|
22827
22857
|
if (scopeThis.pgData) {
|
|
22828
22858
|
await getPgData({
|
|
22829
22859
|
scopeThis
|
|
@@ -22835,10 +22865,10 @@ const init = async _ref4 => {
|
|
|
22835
22865
|
};
|
|
22836
22866
|
|
|
22837
22867
|
// 弹出 - 查询
|
|
22838
|
-
const popupFind = async
|
|
22868
|
+
const popupFind = async _ref7 => {
|
|
22839
22869
|
let {
|
|
22840
22870
|
scopeThis
|
|
22841
|
-
} =
|
|
22871
|
+
} = _ref7;
|
|
22842
22872
|
unclassified.deepClone.replaceObject(scopeThis.formData, scopeThis.query.formData);
|
|
22843
22873
|
scopeThis.tableData.sort = JSON.parse(JSON.stringify(scopeThis.query.sort));
|
|
22844
22874
|
scopeThis.tableData.pageSize = scopeThis.query.pageSize;
|
|
@@ -22851,10 +22881,10 @@ const popupFind = async _ref5 => {
|
|
|
22851
22881
|
};
|
|
22852
22882
|
|
|
22853
22883
|
// 弹出 - 新增一条记录
|
|
22854
|
-
const popupInsertOne = async
|
|
22884
|
+
const popupInsertOne = async _ref8 => {
|
|
22855
22885
|
let {
|
|
22856
22886
|
scopeThis
|
|
22857
|
-
} =
|
|
22887
|
+
} = _ref8;
|
|
22858
22888
|
unclassified.deepClone.replaceObject(scopeThis.formData, scopeThis.insertOne.formData);
|
|
22859
22889
|
unclassified.deepClone.replaceObject(scopeThis.formProps, scopeThis.insertOne.formProps);
|
|
22860
22890
|
// 弹出窗口
|
|
@@ -22864,11 +22894,11 @@ const popupInsertOne = async _ref6 => {
|
|
|
22864
22894
|
};
|
|
22865
22895
|
|
|
22866
22896
|
// 弹出 - 修改一条记录
|
|
22867
|
-
const popupUpdateOne = async
|
|
22897
|
+
const popupUpdateOne = async _ref9 => {
|
|
22868
22898
|
let {
|
|
22869
22899
|
scopeThis,
|
|
22870
22900
|
row
|
|
22871
|
-
} =
|
|
22901
|
+
} = _ref9;
|
|
22872
22902
|
unclassified.deepClone.replaceObject(scopeThis.formData, row); // 继承行记录的值
|
|
22873
22903
|
unclassified.deepClone.replaceObject(scopeThis.formProps, scopeThis.updateOne.formProps);
|
|
22874
22904
|
// 弹出窗口
|
|
@@ -22878,11 +22908,11 @@ const popupUpdateOne = async _ref7 => {
|
|
|
22878
22908
|
};
|
|
22879
22909
|
|
|
22880
22910
|
// 弹出 - 详细信息
|
|
22881
|
-
const popupDoc = async
|
|
22911
|
+
const popupDoc = async _ref0 => {
|
|
22882
22912
|
let {
|
|
22883
22913
|
scopeThis,
|
|
22884
22914
|
row
|
|
22885
|
-
} =
|
|
22915
|
+
} = _ref0;
|
|
22886
22916
|
unclassified.deepClone.replaceObject(scopeThis.formData, row); // 继承行记录的值
|
|
22887
22917
|
unclassified.deepClone.replaceObject(scopeThis.formProps, scopeThis.doc.formProps);
|
|
22888
22918
|
// 弹出窗口
|
|
@@ -22892,10 +22922,10 @@ const popupDoc = async _ref8 => {
|
|
|
22892
22922
|
};
|
|
22893
22923
|
|
|
22894
22924
|
// 提交 - 查询
|
|
22895
|
-
const submitFind = async
|
|
22925
|
+
const submitFind = async _ref1 => {
|
|
22896
22926
|
let {
|
|
22897
22927
|
scopeThis
|
|
22898
|
-
} =
|
|
22928
|
+
} = _ref1;
|
|
22899
22929
|
unclassified.deepClone.replaceObject(scopeThis.query.formData, scopeThis.formData);
|
|
22900
22930
|
scopeThis.query.sort = JSON.parse(JSON.stringify(scopeThis.tableData.sort));
|
|
22901
22931
|
scopeThis.query.pageSize = scopeThis.tableData.pageSize;
|
|
@@ -22913,10 +22943,10 @@ const submitFind = async _ref9 => {
|
|
|
22913
22943
|
};
|
|
22914
22944
|
|
|
22915
22945
|
// 提交 - 新增一条记录
|
|
22916
|
-
const submitInsertOne = async
|
|
22946
|
+
const submitInsertOne = async _ref10 => {
|
|
22917
22947
|
let {
|
|
22918
22948
|
scopeThis
|
|
22919
|
-
} =
|
|
22949
|
+
} = _ref10;
|
|
22920
22950
|
try {
|
|
22921
22951
|
await elementPlus.ElMessageBox.confirm('新增一条记录, 提交?', '提示', {
|
|
22922
22952
|
confirmButtonText: '确认',
|
|
@@ -22952,10 +22982,10 @@ const submitInsertOne = async _ref0 => {
|
|
|
22952
22982
|
};
|
|
22953
22983
|
|
|
22954
22984
|
// 提交 - 修改一条记录
|
|
22955
|
-
const submitUpdateOne = async
|
|
22985
|
+
const submitUpdateOne = async _ref11 => {
|
|
22956
22986
|
let {
|
|
22957
22987
|
scopeThis
|
|
22958
|
-
} =
|
|
22988
|
+
} = _ref11;
|
|
22959
22989
|
try {
|
|
22960
22990
|
await elementPlus.ElMessageBox.confirm('修改一条记录, 提交?', '提示', {
|
|
22961
22991
|
confirmButtonText: '确认',
|
|
@@ -22987,11 +23017,11 @@ const submitUpdateOne = async _ref1 => {
|
|
|
22987
23017
|
};
|
|
22988
23018
|
|
|
22989
23019
|
// 提交 - 删除一条记录
|
|
22990
|
-
const submitDeleteOne = async
|
|
23020
|
+
const submitDeleteOne = async _ref12 => {
|
|
22991
23021
|
let {
|
|
22992
23022
|
scopeThis,
|
|
22993
23023
|
row
|
|
22994
|
-
} =
|
|
23024
|
+
} = _ref12;
|
|
22995
23025
|
try {
|
|
22996
23026
|
await elementPlus.ElMessageBox.confirm('删除一条记录, 提交?', '警告', {
|
|
22997
23027
|
confirmButtonText: '确认',
|
|
@@ -23023,6 +23053,8 @@ const submitDeleteOne = async _ref10 => {
|
|
|
23023
23053
|
var withTable = {
|
|
23024
23054
|
refresh,
|
|
23025
23055
|
reload,
|
|
23056
|
+
pageSizeChange,
|
|
23057
|
+
currentPageChange,
|
|
23026
23058
|
getPgData,
|
|
23027
23059
|
init,
|
|
23028
23060
|
popupFind,
|
|
@@ -42044,14 +42076,32 @@ const hdl = {
|
|
|
42044
42076
|
fileName: src ? fileName : tableProps_box.table.colShow.download.fileName
|
|
42045
42077
|
}
|
|
42046
42078
|
},
|
|
42047
|
-
pageSizeChange(pageSize) {
|
|
42048
|
-
|
|
42079
|
+
async pageSizeChange(pageSize) {
|
|
42080
|
+
|
|
42081
|
+
console.log('测试 000 页记录数改变');
|
|
42082
|
+
|
|
42083
|
+
// 页记录数改变
|
|
42049
42084
|
tableData_box.pageSize = pageSize;
|
|
42050
42085
|
tableData_box.currentPage = 1;
|
|
42086
|
+
if(tableProps_box.table.hdlPageSizeChange){
|
|
42087
|
+
|
|
42088
|
+
console.log('测试 111');
|
|
42089
|
+
|
|
42090
|
+
await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
|
|
42091
|
+
}
|
|
42051
42092
|
},
|
|
42052
|
-
currentPageChange(currentPage) {
|
|
42053
|
-
|
|
42093
|
+
async currentPageChange(currentPage) {
|
|
42094
|
+
|
|
42095
|
+
console.log('测试 222 当前页码改变');
|
|
42096
|
+
|
|
42097
|
+
// 当前页码改变
|
|
42054
42098
|
tableData_box.currentPage = currentPage;
|
|
42099
|
+
if(tableProps_box.table.hdlCurrentPageChange){
|
|
42100
|
+
|
|
42101
|
+
console.log('测试 333');
|
|
42102
|
+
|
|
42103
|
+
await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
|
|
42104
|
+
}
|
|
42055
42105
|
}
|
|
42056
42106
|
};
|
|
42057
42107
|
|