diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index 17dd6cf..246c886 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -960,6 +960,7 @@ export default { // 对象 data () { return { + initPage:false, // 导出 exportData: [], exportName: 'BOM列表' + this.dayjs().format('YYYYMMDDHHmmss'), @@ -2480,7 +2481,7 @@ export default { }, created () { - this.getDataList() + }, activated() { @@ -2489,7 +2490,10 @@ export default { }else if (this.$route.params.partNo) { this.searchData.partNo = this.$route.params.partNo this.getDataList() + }else if (this.initPage === false){ + this.getDataList() } + this.initPage = true }, // js methods: { diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue index daf1f35..9bee2e8 100644 --- a/src/views/modules/part/routingManagement.vue +++ b/src/views/modules/part/routingManagement.vue @@ -978,6 +978,7 @@ export default { // 对象 data () { return { + initPage:false, // 导出 exportData: [], exportName: 'Routing列表' + this.dayjs().format('YYYYMMDDHHmmss'), @@ -2479,7 +2480,7 @@ export default { }, created () { - this.getDataList() + }, activated() { @@ -2488,7 +2489,10 @@ export default { }else if (this.$route.params.partNo) { this.searchData.partNo = this.$route.params.partNo this.getDataList() + }else if (this.initPage === false){ + this.getDataList() } + this.initPage = true }, // js