Files
klp-oa/klp-ui/src/views/mes/roll/rollLineMixin.js

23 lines
421 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 从 URL query.lineId 读取产线 ID供各轧辊页面共用。
* 组件覆盖 onLineResolved() 执行初始化加载。
*
* 菜单路径示例:/mes/roll/overview?lineId=1
*/
export default {
computed: {
lineId() {
const v = this.$route.query.lineId
return v != null ? Number(v) : null
}
},
created() {
this.onLineResolved()
},
methods: {
onLineResolved() {}
}
}