|
|
@@ -37,15 +37,9 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
closeDrawer (done) {
|
|
|
- let contractId = sessionStorage.getItem('contractId')
|
|
|
- console.log(this.historyRouter,'historyRouter11111')
|
|
|
- console.log(contractId,'contractId')
|
|
|
+ console.log(this.historyRouter,'historyRouter')
|
|
|
if (this.historyRouter) {
|
|
|
- console.log('11111')
|
|
|
- let contractId = sessionStorage.getItem('contractId')
|
|
|
- console.log(contractId,'contractId')
|
|
|
if (this.$route.query.isPredicion){
|
|
|
-
|
|
|
if (this.$route.query.isDetail){
|
|
|
this.$store.dispatch('changeDetailDrawer',false)
|
|
|
this.$router.replace(this.historyRouter)
|
|
|
@@ -58,7 +52,6 @@ export default {
|
|
|
this.$router.replace(this.historyRouter)
|
|
|
this.$store.dispatch('setHistoryRouter',null)
|
|
|
}
|
|
|
-
|
|
|
}else {
|
|
|
if (this.historyRouter.path === '/message' || this.historyRouter.path === '/salesData' || this.historyRouter.path === '/task'){
|
|
|
this.$store.dispatch('changeDetailDrawer',false)
|
|
|
@@ -70,35 +63,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- } else {
|
|
|
- console.log(contractId,'contractId')
|
|
|
- let contractId = sessionStorage.getItem('contractId')
|
|
|
- console.log(contractId,'contractId')
|
|
|
- if (contractId && contractId != 'null'){
|
|
|
- console.log('执行了111')
|
|
|
- let rowindexOld = sessionStorage.getItem('rowindexOld')
|
|
|
- let listqueryidOld = sessionStorage.getItem('listqueryidOld')
|
|
|
- let typeOld = sessionStorage.getItem('typeOld')
|
|
|
- this.$store.dispatch('changeDetailDrawer',true)
|
|
|
- setTimeout(()=>{
|
|
|
- this.$router.push({path:'/contractDetail',
|
|
|
- query:{
|
|
|
- id:contractId,
|
|
|
- rowindex:rowindexOld,
|
|
|
- listqueryid:listqueryidOld,
|
|
|
- type:typeOld,
|
|
|
- fieldname:'sa_contractid'
|
|
|
- }})
|
|
|
- /*this.$store.dispatch('saveListData',{listData:this.list,param:this.param,pageTotal:this.pageTotal})*/
|
|
|
- sessionStorage.setItem('contractId',null)
|
|
|
- this.$store.dispatch('changeDetailDrawer',true)
|
|
|
- },500)
|
|
|
- }else {
|
|
|
- console.log('执行失败了')
|
|
|
+ } else {
|
|
|
this.$store.dispatch('changeDetailDrawer',false)
|
|
|
this.$router.go(-1)
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
},
|