标准件
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<el-divider content-position="right"/>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-tabs v-model="tabName" type="border-card" @tab-click="searchTable0();searchTable1();searchTable2();">
|
||||
<el-tabs id="PurchasingCenter/PurchaseTaskAllocate" v-model="tabName" type="border-card" @tab-click="searchTable0();searchTable1();searchTable2();">
|
||||
<el-tab-pane label="标准件" name="标准件">
|
||||
<el-row style="margin-bottom: 5px">
|
||||
<span style="margin-left: 0">项目名称:</span>
|
||||
@@ -787,6 +787,19 @@ export default {
|
||||
'id'
|
||||
])
|
||||
},
|
||||
watch: {
|
||||
// 如果路由有变化,会再次执行该方法
|
||||
'$route': {
|
||||
handler(route) {
|
||||
const _this = this
|
||||
if (route.name === 'PurchaseTaskAllocate') {
|
||||
setTimeout(() => {
|
||||
_this.Jump()
|
||||
}, 1200)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.searchTable0() // 查表1
|
||||
this.fetchData() // 初始化数据
|
||||
@@ -794,10 +807,18 @@ export default {
|
||||
this.timer2 = setInterval(this.searchUnallocatePartNumber, 20 * 60 * 1000) // 20 分钟一刷新
|
||||
this.getDefaultTime()
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
this.Jump()
|
||||
}, 500)
|
||||
},
|
||||
beforeDestroy() {
|
||||
clearInterval(this.timer2)
|
||||
},
|
||||
methods: {
|
||||
Jump() {
|
||||
window.location.hash = '#PurchasingCenter/PurchaseTaskAllocate'
|
||||
},
|
||||
getDefaultTime() {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
|
||||
Reference in New Issue
Block a user