|
|
@@ -88,7 +88,7 @@
|
|
|
append-to-body
|
|
|
>
|
|
|
<div class="detail__panel">
|
|
|
- <subordinateDetail :id="id" ref="subordinate"></subordinateDetail>
|
|
|
+ <subordinateDetail :id="$route.query.id" ref="subordinate"></subordinateDetail>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
</div>
|
|
|
@@ -153,7 +153,6 @@ export default {
|
|
|
"sa_salesforecastbillid":this.$route.query.id
|
|
|
}
|
|
|
})
|
|
|
- console.log(res.data,'1111')
|
|
|
this.mainData = res.data
|
|
|
this.changeDataStructure()
|
|
|
this.listData()
|
|
|
@@ -316,25 +315,22 @@ export default {
|
|
|
this.queryMainData()
|
|
|
},
|
|
|
goDetail(val){
|
|
|
- console.log(val)
|
|
|
- let route = this.$route
|
|
|
- if (route.path !== 'projectManagePredictionDetail') {
|
|
|
- this.oldRoute = {path:route.path,query:route.query}
|
|
|
- this.$store.dispatch('setHistoryRouter',this.oldRoute)
|
|
|
- }
|
|
|
- this.$router.push({
|
|
|
- path:'/projectManagePredictionDetail',
|
|
|
- query:{id:val.sa_salesforecastbillid,isDetail:1}
|
|
|
- })
|
|
|
- }
|
|
|
- /*goDetail(val){
|
|
|
- console.log(val)
|
|
|
- this.id = val.sa_salesforecastbillid
|
|
|
- this.drawer = true
|
|
|
+ this.$store.dispatch('changeDetailDrawer',false)
|
|
|
+
|
|
|
this.$nextTick(()=>{
|
|
|
- this.$refs.subordinate.queryMainData()
|
|
|
+ let route = this.$route
|
|
|
+ if (route.path !== 'projectManagePredictionDetail') {
|
|
|
+ this.oldRoute = {path:route.path,query:route.query}
|
|
|
+ this.$store.dispatch('setHistoryRouter',this.oldRoute)
|
|
|
+ }
|
|
|
+ this.$router.push({
|
|
|
+ path:'/projectManagePredictionDetail',
|
|
|
+ query:{id:val.sa_salesforecastbillid,isDetail:1,isPredicion:1}
|
|
|
+ })
|
|
|
+ this.$store.dispatch('changeDetailDrawer',true)
|
|
|
})
|
|
|
- }*/
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
this.queryMainData()
|