Browse Source

中间计量,保存草图后,更新数据源

MaiXinRong 5 years ago
parent
commit
6d403a4c8a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/public/js/stage.js

+ 2 - 0
app/public/js/stage.js

@@ -2505,6 +2505,7 @@ $(document).ready(() => {
                     updateData.img = canvas.toDataURL('image/png');
                     updateData.imgInfo = itemInfo;
                     postData(window.location.pathname + '/detail/merge-img', updateData, function (result) {
+                        stageIm.loadUpdateDetailData(result);
                         data.calc_img = result.calc_img;
                         data.calc_img_org = result.calc_img_org;
                         const calcImgSrc = data && data.calc_img ? '/' + data.calc_img : '';
@@ -2515,6 +2516,7 @@ $(document).ready(() => {
                     });
                 } else if (data.calc_img) {
                     postData(window.location.pathname + '/detail/merge-img', {updateType: 'clear', lid: data.lid, pid: data.pid, uuid: data.uuid}, function (result) {
+                        stageIm.loadUpdateDetailData(result);
                         data.calc_img = result.calc_img;
                         data.calc_img_org = result.calc_img_org;
                         const calcImgSrc = data && data.calc_img ? '/' + data.calc_img : '';