@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.esm.js
CHANGED
|
@@ -22796,11 +22796,38 @@ const reload = async _ref2 => {
|
|
|
22796
22796
|
ElMessage(result.code === 0 ? '数据已重载' : '数据重载错误');
|
|
22797
22797
|
};
|
|
22798
22798
|
|
|
22799
|
-
//
|
|
22800
|
-
const
|
|
22799
|
+
// 页记录数改变
|
|
22800
|
+
const pageSizeChange = async _ref3 => {
|
|
22801
22801
|
let {
|
|
22802
|
+
pageSize,
|
|
22802
22803
|
scopeThis
|
|
22803
22804
|
} = _ref3;
|
|
22805
|
+
console.log('测试 555 页记录数改变');
|
|
22806
|
+
scopeThis.query.pageSize = pageSize;
|
|
22807
|
+
scopeThis.query.currentPage = 1;
|
|
22808
|
+
await reload({
|
|
22809
|
+
scopeThis
|
|
22810
|
+
});
|
|
22811
|
+
};
|
|
22812
|
+
|
|
22813
|
+
// 当前页码改变
|
|
22814
|
+
const currentPageChange = async _ref4 => {
|
|
22815
|
+
let {
|
|
22816
|
+
currentPage,
|
|
22817
|
+
scopeThis
|
|
22818
|
+
} = _ref4;
|
|
22819
|
+
console.log('测试 666 当前页码改变');
|
|
22820
|
+
scopeThis.query.currentPage = currentPage;
|
|
22821
|
+
await reload({
|
|
22822
|
+
scopeThis
|
|
22823
|
+
});
|
|
22824
|
+
};
|
|
22825
|
+
|
|
22826
|
+
// 获取页面数据附加
|
|
22827
|
+
const getPgData = async _ref5 => {
|
|
22828
|
+
let {
|
|
22829
|
+
scopeThis
|
|
22830
|
+
} = _ref5;
|
|
22804
22831
|
const result = await ly0request.storpro({
|
|
22805
22832
|
storproName: scopeThis.storpro.getPgData,
|
|
22806
22833
|
data: scopeThis.pgData && scopeThis.pgData.query ? scopeThis.pgData.query : null
|
|
@@ -22816,10 +22843,13 @@ const getPgData = async _ref3 => {
|
|
|
22816
22843
|
};
|
|
22817
22844
|
|
|
22818
22845
|
// 初始化
|
|
22819
|
-
const init = async
|
|
22846
|
+
const init = async _ref6 => {
|
|
22820
22847
|
let {
|
|
22821
22848
|
scopeThis
|
|
22822
|
-
} =
|
|
22849
|
+
} = _ref6;
|
|
22850
|
+
console.log('测试 444 初始化');
|
|
22851
|
+
scopeThis.tableProps.table.hdlPageSizeChanged = pageSizeChange;
|
|
22852
|
+
scopeThis.tableProps.table.hdlCurrentPageChanged = currentPageChange;
|
|
22823
22853
|
if (scopeThis.pgData) {
|
|
22824
22854
|
await getPgData({
|
|
22825
22855
|
scopeThis
|
|
@@ -22831,10 +22861,10 @@ const init = async _ref4 => {
|
|
|
22831
22861
|
};
|
|
22832
22862
|
|
|
22833
22863
|
// 弹出 - 查询
|
|
22834
|
-
const popupFind = async
|
|
22864
|
+
const popupFind = async _ref7 => {
|
|
22835
22865
|
let {
|
|
22836
22866
|
scopeThis
|
|
22837
|
-
} =
|
|
22867
|
+
} = _ref7;
|
|
22838
22868
|
unclassified.deepClone.replaceObject(scopeThis.formData, scopeThis.query.formData);
|
|
22839
22869
|
scopeThis.tableData.sort = JSON.parse(JSON.stringify(scopeThis.query.sort));
|
|
22840
22870
|
scopeThis.tableData.pageSize = scopeThis.query.pageSize;
|
|
@@ -22847,10 +22877,10 @@ const popupFind = async _ref5 => {
|
|
|
22847
22877
|
};
|
|
22848
22878
|
|
|
22849
22879
|
// 弹出 - 新增一条记录
|
|
22850
|
-
const popupInsertOne = async
|
|
22880
|
+
const popupInsertOne = async _ref8 => {
|
|
22851
22881
|
let {
|
|
22852
22882
|
scopeThis
|
|
22853
|
-
} =
|
|
22883
|
+
} = _ref8;
|
|
22854
22884
|
unclassified.deepClone.replaceObject(scopeThis.formData, scopeThis.insertOne.formData);
|
|
22855
22885
|
unclassified.deepClone.replaceObject(scopeThis.formProps, scopeThis.insertOne.formProps);
|
|
22856
22886
|
// 弹出窗口
|
|
@@ -22860,11 +22890,11 @@ const popupInsertOne = async _ref6 => {
|
|
|
22860
22890
|
};
|
|
22861
22891
|
|
|
22862
22892
|
// 弹出 - 修改一条记录
|
|
22863
|
-
const popupUpdateOne = async
|
|
22893
|
+
const popupUpdateOne = async _ref9 => {
|
|
22864
22894
|
let {
|
|
22865
22895
|
scopeThis,
|
|
22866
22896
|
row
|
|
22867
|
-
} =
|
|
22897
|
+
} = _ref9;
|
|
22868
22898
|
unclassified.deepClone.replaceObject(scopeThis.formData, row); // 继承行记录的值
|
|
22869
22899
|
unclassified.deepClone.replaceObject(scopeThis.formProps, scopeThis.updateOne.formProps);
|
|
22870
22900
|
// 弹出窗口
|
|
@@ -22874,11 +22904,11 @@ const popupUpdateOne = async _ref7 => {
|
|
|
22874
22904
|
};
|
|
22875
22905
|
|
|
22876
22906
|
// 弹出 - 详细信息
|
|
22877
|
-
const popupDoc = async
|
|
22907
|
+
const popupDoc = async _ref0 => {
|
|
22878
22908
|
let {
|
|
22879
22909
|
scopeThis,
|
|
22880
22910
|
row
|
|
22881
|
-
} =
|
|
22911
|
+
} = _ref0;
|
|
22882
22912
|
unclassified.deepClone.replaceObject(scopeThis.formData, row); // 继承行记录的值
|
|
22883
22913
|
unclassified.deepClone.replaceObject(scopeThis.formProps, scopeThis.doc.formProps);
|
|
22884
22914
|
// 弹出窗口
|
|
@@ -22888,10 +22918,10 @@ const popupDoc = async _ref8 => {
|
|
|
22888
22918
|
};
|
|
22889
22919
|
|
|
22890
22920
|
// 提交 - 查询
|
|
22891
|
-
const submitFind = async
|
|
22921
|
+
const submitFind = async _ref1 => {
|
|
22892
22922
|
let {
|
|
22893
22923
|
scopeThis
|
|
22894
|
-
} =
|
|
22924
|
+
} = _ref1;
|
|
22895
22925
|
unclassified.deepClone.replaceObject(scopeThis.query.formData, scopeThis.formData);
|
|
22896
22926
|
scopeThis.query.sort = JSON.parse(JSON.stringify(scopeThis.tableData.sort));
|
|
22897
22927
|
scopeThis.query.pageSize = scopeThis.tableData.pageSize;
|
|
@@ -22909,10 +22939,10 @@ const submitFind = async _ref9 => {
|
|
|
22909
22939
|
};
|
|
22910
22940
|
|
|
22911
22941
|
// 提交 - 新增一条记录
|
|
22912
|
-
const submitInsertOne = async
|
|
22942
|
+
const submitInsertOne = async _ref10 => {
|
|
22913
22943
|
let {
|
|
22914
22944
|
scopeThis
|
|
22915
|
-
} =
|
|
22945
|
+
} = _ref10;
|
|
22916
22946
|
try {
|
|
22917
22947
|
await ElMessageBox.confirm('新增一条记录, 提交?', '提示', {
|
|
22918
22948
|
confirmButtonText: '确认',
|
|
@@ -22948,10 +22978,10 @@ const submitInsertOne = async _ref0 => {
|
|
|
22948
22978
|
};
|
|
22949
22979
|
|
|
22950
22980
|
// 提交 - 修改一条记录
|
|
22951
|
-
const submitUpdateOne = async
|
|
22981
|
+
const submitUpdateOne = async _ref11 => {
|
|
22952
22982
|
let {
|
|
22953
22983
|
scopeThis
|
|
22954
|
-
} =
|
|
22984
|
+
} = _ref11;
|
|
22955
22985
|
try {
|
|
22956
22986
|
await ElMessageBox.confirm('修改一条记录, 提交?', '提示', {
|
|
22957
22987
|
confirmButtonText: '确认',
|
|
@@ -22983,11 +23013,11 @@ const submitUpdateOne = async _ref1 => {
|
|
|
22983
23013
|
};
|
|
22984
23014
|
|
|
22985
23015
|
// 提交 - 删除一条记录
|
|
22986
|
-
const submitDeleteOne = async
|
|
23016
|
+
const submitDeleteOne = async _ref12 => {
|
|
22987
23017
|
let {
|
|
22988
23018
|
scopeThis,
|
|
22989
23019
|
row
|
|
22990
|
-
} =
|
|
23020
|
+
} = _ref12;
|
|
22991
23021
|
try {
|
|
22992
23022
|
await ElMessageBox.confirm('删除一条记录, 提交?', '警告', {
|
|
22993
23023
|
confirmButtonText: '确认',
|
|
@@ -23019,6 +23049,8 @@ const submitDeleteOne = async _ref10 => {
|
|
|
23019
23049
|
var withTable = {
|
|
23020
23050
|
refresh,
|
|
23021
23051
|
reload,
|
|
23052
|
+
pageSizeChange,
|
|
23053
|
+
currentPageChange,
|
|
23022
23054
|
getPgData,
|
|
23023
23055
|
init,
|
|
23024
23056
|
popupFind,
|
|
@@ -42040,14 +42072,32 @@ const hdl = {
|
|
|
42040
42072
|
fileName: src ? fileName : tableProps_box.table.colShow.download.fileName
|
|
42041
42073
|
}
|
|
42042
42074
|
},
|
|
42043
|
-
pageSizeChange(pageSize) {
|
|
42044
|
-
|
|
42075
|
+
async pageSizeChange(pageSize) {
|
|
42076
|
+
|
|
42077
|
+
console.log('测试 000 页记录数改变');
|
|
42078
|
+
|
|
42079
|
+
// 页记录数改变
|
|
42045
42080
|
tableData_box.pageSize = pageSize;
|
|
42046
42081
|
tableData_box.currentPage = 1;
|
|
42082
|
+
if(tableProps_box.table.hdlPageSizeChange){
|
|
42083
|
+
|
|
42084
|
+
console.log('测试 111');
|
|
42085
|
+
|
|
42086
|
+
await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
|
|
42087
|
+
}
|
|
42047
42088
|
},
|
|
42048
|
-
currentPageChange(currentPage) {
|
|
42049
|
-
|
|
42089
|
+
async currentPageChange(currentPage) {
|
|
42090
|
+
|
|
42091
|
+
console.log('测试 222 当前页码改变');
|
|
42092
|
+
|
|
42093
|
+
// 当前页码改变
|
|
42050
42094
|
tableData_box.currentPage = currentPage;
|
|
42095
|
+
if(tableProps_box.table.hdlCurrentPageChange){
|
|
42096
|
+
|
|
42097
|
+
console.log('测试 333');
|
|
42098
|
+
|
|
42099
|
+
await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
|
|
42100
|
+
}
|
|
42051
42101
|
}
|
|
42052
42102
|
};
|
|
42053
42103
|
|