@yoooloo42/joker 1.0.274 → 1.0.276

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.esm.js CHANGED
@@ -22998,7 +22998,11 @@ const submitFind = async _ref1 => {
22998
22998
  let {
22999
22999
  scopeThis
23000
23000
  } = _ref1;
23001
+ console.log('joker测试 000', scopeThis.formData);
23002
+ console.log('joker测试 111', scopeThis.queryInit.formData);
23001
23003
  unclassified.deepClone.replaceObject(scopeThis.query.formData, scopeThis.formData);
23004
+ console.log('joker测试 222', scopeThis.formData);
23005
+ console.log('joker测试 333', scopeThis.queryInit.formData);
23002
23006
  scopeThis.query.sort = JSON.parse(JSON.stringify(scopeThis.tableData.sort));
23003
23007
  scopeThis.query.pageSize = scopeThis.tableData.pageSize;
23004
23008
  scopeThis.query.currentPage = scopeThis.tableData.currentPage;
@@ -23034,13 +23038,13 @@ const submitInsertOne = async _ref10 => {
23034
23038
  // 关闭表单窗口
23035
23039
  scopeThis.formProps.popup.visible = false;
23036
23040
  ElMessage('新增一条记录成功');
23037
- scopeThis.tableData.data = [result.dataNew];
23038
- scopeThis.tableData.total = 1;
23039
- scopeThis.tableData.currentPage = 1;
23040
23041
  scopeThis.query.formData = {
23041
- _id: result.dataNew._id
23042
+ _id: result._id
23042
23043
  };
23043
23044
  scopeThis.query.currentPage = 1;
23045
+ await refresh({
23046
+ scopeThis
23047
+ });
23044
23048
  } else {
23045
23049
  if (result.message) {
23046
23050
  ElMessage(result.message);