更新
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button type="text" plain style="float: right;margin-right: 20px;margin-top: 5px" @click="turnTo()">成组配套查询</el-button>
|
||||
</el-card>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
@@ -128,11 +129,11 @@ export default {
|
||||
watch: {
|
||||
'$route': {
|
||||
handler(route) {
|
||||
console.log(this.$route.query.机床流水号, 8765678)
|
||||
if (this.$route.query.机床流水号) {
|
||||
console.log(this.$route.query.机床流水号)
|
||||
this.getTreeData2(this.$route.query.机床流水号)
|
||||
console.log(this.$route.query.机床流水号, 9877777777777)
|
||||
this.getTreeData2(parseInt(this.$route.query.机床流水号))
|
||||
} else {
|
||||
// var that = this
|
||||
if (!this.MachineValue) {
|
||||
this.getMachine()
|
||||
}
|
||||
@@ -145,6 +146,14 @@ export default {
|
||||
// this.getMachine()
|
||||
},
|
||||
methods: {
|
||||
turnTo() {
|
||||
this.$router.push({
|
||||
path: '/ManufacturingCenter/GroupMatching',
|
||||
query: {
|
||||
机床流水号: this.MachineValue
|
||||
}
|
||||
})
|
||||
},
|
||||
getTreeData2(num) {
|
||||
this.MachineValue = ''
|
||||
this.Machine = []
|
||||
|
||||
Reference in New Issue
Block a user