From 9d84b685257682e86f126b90b87117bdf49527cd Mon Sep 17 00:00:00 2001 From: hyyy <123@qq.com> Date: Thu, 13 Mar 2025 17:21:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/src/js/quality.check.measures.line.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/quality_control/static/src/js/quality.check.measures.line.js b/quality_control/static/src/js/quality.check.measures.line.js index 5e8d2f14..03ae4eea 100644 --- a/quality_control/static/src/js/quality.check.measures.line.js +++ b/quality_control/static/src/js/quality.check.measures.line.js @@ -20,16 +20,14 @@ export class QualityCheckMeasureLineTree extends X2ManyField { patch(ListRenderer.prototype, 'custom_measure_line_tree_patch', { setup() { this._super.apply(this, arguments); - console.log('custom_measure_line_tree_patch'); - console.log(owl); owl.onMounted(() => { - console.log($(this.__owl__.bdom.el).find('tfoot')); $(this.__owl__.bdom.el).find('tfoot').hide() }) owl.onRendered(() => { setTimeout(() => { - const $dom = $(this.__owl__.bdom.el) + const $dom = $(this.__owl__?.bdom?.el) + if(!$dom || $dom.length) return const $thead = $dom.find('thead').find('th'); if(!this.props.list.records || this.props.list.records.length == 0) return const $total_qty = this.props.list.records[0].data.column_nums;