去除 根据进度条设置水印

修复切换产品3D图bug
修改表格下拉框会被表格下面数据框覆盖的bug
This commit is contained in:
hy
2024-07-05 16:02:32 +08:00
parent 566d9fce9c
commit 1c8644983b
3 changed files with 45 additions and 31 deletions

View File

@@ -10,11 +10,18 @@ import {session} from "@web/session";
// var QWeb = core.qweb;
import {Component} from "@odoo/owl";
import {Component, onPatched} from "@odoo/owl";
export class StepViewer extends Component {
setup() {
this.props.url = this.formatUrl();
onPatched(() => {
this.props.url = this.formatUrl();
const dom = $(this.__owl__.bdom.parentEl).children('model-viewer')
if(dom && dom.length) {
dom.attr('src', this.formatUrl())
}
})
}
formatUrl() {