From e04f2b6f6d492e14fe3ba772a96f93c5217fd41c Mon Sep 17 00:00:00 2001 From: Rain_ <904416525@qq.com> Date: Thu, 24 Jul 2025 18:59:14 +0800 Subject: [PATCH] =?UTF-8?q?flx:=E6=8F=90=E4=BA=A4orc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.js | 4 ++-- .../companyAdmin/qualityAndSafety/components/myPictode.vue | 7 +++++++ .../companyAdmin/qualityAndSafety/ocrRecognitionArea.vue | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pages/index/index.js b/src/pages/index/index.js index 08e8b499..b760e6c0 100644 --- a/src/pages/index/index.js +++ b/src/pages/index/index.js @@ -67,8 +67,8 @@ Vue.use(VueQuillEditor) // 注册富文本编辑器 Vue.use(SlideVerify) Vue.use(VueAwesomeSwiper) -import VueKonva from 'vue-konva'; -Vue.use(VueKonva); +// import VueKonva from 'vue-konva'; +// Vue.use(VueKonva); // 全局组件挂载 Vue.component('Pagination', Pagination) diff --git a/src/views/companyAdmin/qualityAndSafety/components/myPictode.vue b/src/views/companyAdmin/qualityAndSafety/components/myPictode.vue index 2b952ac1..72efc092 100644 --- a/src/views/companyAdmin/qualityAndSafety/components/myPictode.vue +++ b/src/views/companyAdmin/qualityAndSafety/components/myPictode.vue @@ -241,6 +241,7 @@ export default { showTools: { type: Boolean, default: true }, placement: { type: String, default: "left" }, configJson: { type: String, default: () => "" }, + zonePlaceInfoId: { type: String, default: () => "" }, }, data() { return { @@ -973,6 +974,12 @@ export default { strokeWidth(newVal) { if (this.boardObj) this.boardObj.freeDrawingBrush.width = newVal; }, + zonePlaceInfoId(newVal) { + if (newVal) { + this.initCanvas(); + this.initEvent(); + } + }, }, }; diff --git a/src/views/companyAdmin/qualityAndSafety/ocrRecognitionArea.vue b/src/views/companyAdmin/qualityAndSafety/ocrRecognitionArea.vue index 72800abe..a43a4df0 100644 --- a/src/views/companyAdmin/qualityAndSafety/ocrRecognitionArea.vue +++ b/src/views/companyAdmin/qualityAndSafety/ocrRecognitionArea.vue @@ -127,6 +127,7 @@ ref="canvasfabric" :canvasWidth="width" :canvasHeight="height" + :zonePlaceInfoId="zonePlaceInfo.id" :configJson="zonePlaceInfo.configJson" >