@yoooloo42/joker 1.0.175 → 1.0.177
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 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22670,9 +22670,6 @@ var unclassified = {
|
|
|
22670
22670
|
|
|
22671
22671
|
// with-table数据模板
|
|
22672
22672
|
|
|
22673
|
-
const ly0default$4 = {
|
|
22674
|
-
pageSize: 10
|
|
22675
|
-
};
|
|
22676
22673
|
|
|
22677
22674
|
// 数据刷新
|
|
22678
22675
|
const refresh = async _ref => {
|
|
@@ -22684,17 +22681,20 @@ const refresh = async _ref => {
|
|
|
22684
22681
|
const result = await ly0request.storpro({
|
|
22685
22682
|
storproName: scopeThis.storpro.refresh,
|
|
22686
22683
|
data: {
|
|
22687
|
-
query: scopeThis.query
|
|
22688
|
-
sort: scopeThis.query
|
|
22689
|
-
limit: scopeThis.query
|
|
22690
|
-
page: scopeThis.query
|
|
22684
|
+
query: scopeThis.query.formData,
|
|
22685
|
+
sort: scopeThis.query.sort,
|
|
22686
|
+
limit: scopeThis.query.pageSize,
|
|
22687
|
+
page: scopeThis.query.currentPage
|
|
22691
22688
|
}
|
|
22692
22689
|
});
|
|
22693
22690
|
scopeThis.tableProps.table.loading.visible = false;
|
|
22694
22691
|
if (result.code === 0) {
|
|
22695
22692
|
unclassified.deepClone.deepMerge(scopeThis.tableData, {
|
|
22696
22693
|
data: result.data,
|
|
22697
|
-
total: result.total
|
|
22694
|
+
total: result.total,
|
|
22695
|
+
sort: scopeThis.query.sort,
|
|
22696
|
+
pageSize: scopeThis.query.pageSize,
|
|
22697
|
+
currentPage: scopeThis.query.currentPage
|
|
22698
22698
|
});
|
|
22699
22699
|
if (!!message) {
|
|
22700
22700
|
ElMessage('数据已刷新');
|
|
@@ -22853,11 +22853,13 @@ const submitInsertOne = async _ref0 => {
|
|
|
22853
22853
|
// 关闭表单窗口
|
|
22854
22854
|
scopeThis.formProps.popup.visible = false;
|
|
22855
22855
|
ElMessage('新增一条记录成功');
|
|
22856
|
-
scopeThis.
|
|
22857
|
-
scopeThis.tableData =
|
|
22858
|
-
|
|
22859
|
-
|
|
22856
|
+
scopeThis.tableData.data = [result.dataNew];
|
|
22857
|
+
scopeThis.tableData.total = 1;
|
|
22858
|
+
scopeThis.tableData.currentPage = 1;
|
|
22859
|
+
scopeThis.query.formData = {
|
|
22860
|
+
_id: result.dataNew._id
|
|
22860
22861
|
};
|
|
22862
|
+
scopeThis.query.currentPage = 1;
|
|
22861
22863
|
} else {
|
|
22862
22864
|
ElMessage('新增一条记录失败');
|
|
22863
22865
|
}
|