@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.cjs.js
CHANGED
|
@@ -22674,9 +22674,6 @@ var unclassified = {
|
|
|
22674
22674
|
|
|
22675
22675
|
// with-table数据模板
|
|
22676
22676
|
|
|
22677
|
-
const ly0default$4 = {
|
|
22678
|
-
pageSize: 10
|
|
22679
|
-
};
|
|
22680
22677
|
|
|
22681
22678
|
// 数据刷新
|
|
22682
22679
|
const refresh = async _ref => {
|
|
@@ -22688,17 +22685,20 @@ const refresh = async _ref => {
|
|
|
22688
22685
|
const result = await ly0request$1.storpro({
|
|
22689
22686
|
storproName: scopeThis.storpro.refresh,
|
|
22690
22687
|
data: {
|
|
22691
|
-
query: scopeThis.query
|
|
22692
|
-
sort: scopeThis.query
|
|
22693
|
-
limit: scopeThis.query
|
|
22694
|
-
page: scopeThis.query
|
|
22688
|
+
query: scopeThis.query.formData,
|
|
22689
|
+
sort: scopeThis.query.sort,
|
|
22690
|
+
limit: scopeThis.query.pageSize,
|
|
22691
|
+
page: scopeThis.query.currentPage
|
|
22695
22692
|
}
|
|
22696
22693
|
});
|
|
22697
22694
|
scopeThis.tableProps.table.loading.visible = false;
|
|
22698
22695
|
if (result.code === 0) {
|
|
22699
22696
|
unclassified.deepClone.deepMerge(scopeThis.tableData, {
|
|
22700
22697
|
data: result.data,
|
|
22701
|
-
total: result.total
|
|
22698
|
+
total: result.total,
|
|
22699
|
+
sort: scopeThis.query.sort,
|
|
22700
|
+
pageSize: scopeThis.query.pageSize,
|
|
22701
|
+
currentPage: scopeThis.query.currentPage
|
|
22702
22702
|
});
|
|
22703
22703
|
if (!!message) {
|
|
22704
22704
|
elementPlus.ElMessage('数据已刷新');
|
|
@@ -22857,11 +22857,13 @@ const submitInsertOne = async _ref0 => {
|
|
|
22857
22857
|
// 关闭表单窗口
|
|
22858
22858
|
scopeThis.formProps.popup.visible = false;
|
|
22859
22859
|
elementPlus.ElMessage('新增一条记录成功');
|
|
22860
|
-
scopeThis.
|
|
22861
|
-
scopeThis.tableData =
|
|
22862
|
-
|
|
22863
|
-
|
|
22860
|
+
scopeThis.tableData.data = [result.dataNew];
|
|
22861
|
+
scopeThis.tableData.total = 1;
|
|
22862
|
+
scopeThis.tableData.currentPage = 1;
|
|
22863
|
+
scopeThis.query.formData = {
|
|
22864
|
+
_id: result.dataNew._id
|
|
22864
22865
|
};
|
|
22866
|
+
scopeThis.query.currentPage = 1;
|
|
22865
22867
|
} else {
|
|
22866
22868
|
elementPlus.ElMessage('新增一条记录失败');
|
|
22867
22869
|
}
|