修改报错问题
This commit is contained in:
@@ -20,16 +20,14 @@ export class QualityCheckMeasureLineTree extends X2ManyField {
|
|||||||
patch(ListRenderer.prototype, 'custom_measure_line_tree_patch', {
|
patch(ListRenderer.prototype, 'custom_measure_line_tree_patch', {
|
||||||
setup() {
|
setup() {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
console.log('custom_measure_line_tree_patch');
|
|
||||||
console.log(owl);
|
|
||||||
owl.onMounted(() => {
|
owl.onMounted(() => {
|
||||||
console.log($(this.__owl__.bdom.el).find('tfoot'));
|
|
||||||
$(this.__owl__.bdom.el).find('tfoot').hide()
|
$(this.__owl__.bdom.el).find('tfoot').hide()
|
||||||
})
|
})
|
||||||
|
|
||||||
owl.onRendered(() => {
|
owl.onRendered(() => {
|
||||||
setTimeout(() => {
|
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');
|
const $thead = $dom.find('thead').find('th');
|
||||||
if(!this.props.list.records || this.props.list.records.length == 0) return
|
if(!this.props.list.records || this.props.list.records.length == 0) return
|
||||||
const $total_qty = this.props.list.records[0].data.column_nums;
|
const $total_qty = this.props.list.records[0].data.column_nums;
|
||||||
|
|||||||
Reference in New Issue
Block a user