diff --git a/hb_client/src/components/customForm/index.vue b/hb_client/src/components/customForm/index.vue index e6d081c..19f982b 100644 --- a/hb_client/src/components/customForm/index.vue +++ b/hb_client/src/components/customForm/index.vue @@ -133,7 +133,7 @@
- +
@@ -436,8 +436,8 @@ draw(){ let canvasImg = document.getElementById("canvasImg"); canvasImg.setAttribute("crossOrigin",'anonymous'); - canvasImg.style.width = '500px'; - canvasImg.style.height = '300px'; + // canvasImg.style.width = '500px'; + // canvasImg.style.height = '300px'; this.ctx.drawImage(canvasImg,0,0,500,300); }, // 叉号 diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue index 044919d..5abc29d 100644 --- a/hb_client/src/views/mtm/material.vue +++ b/hb_client/src/views/mtm/material.vue @@ -340,9 +340,16 @@ this.processOptions = res.data.results; }); }, - //绑定工序 + //检查表 handlebind(scope) { - this.$router.push({name: "MaterialDO", params: {id: scope.row.id},}) + let materialItem = sessionStorage.getItem('materialItem'); + if(materialItem){ + sessionStorage.removeItem('materialItem'); + sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); + }else{ + sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); + } + this.$router.push({name: "MaterialDO", params: {id: scope.row.id}}) }, handleFilter() { this.listQuery.page = 1; diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue index 0a923e6..4cd5e83 100644 --- a/hb_client/src/views/mtm/materialdo.vue +++ b/hb_client/src/views/mtm/materialdo.vue @@ -1,6 +1,14 @@