source代码

This commit is contained in:
wangyan 2024-01-22 13:42:48 +08:00
parent a8369f1369
commit e0fd10fc0e
3 changed files with 18 additions and 4 deletions

View File

@ -415,9 +415,19 @@ export default {
this.$router.push({path:'/order/detail'})
},
getData(){
let source = this.$route.query.source;
let date;
let xpId = localStorage.getItem('xpId' );
let date = localStorage.getItem('date' )?localStorage.getItem('date' ):'';
xyProjectDetail(xpId,{date:date}).then(res=>{
if(source==1){
date = localStorage.getItem('date' );
}
else{
date = '';
}
xyProjectDetail(xpId,{date:date,source:source}).then(res=>{
console.log(res)
this.tableData = []
this.tableData.push(res.xyContractDTO);//

View File

@ -193,7 +193,9 @@ export default {
handleLinkDetail(scope) {
localStorage.setItem('xpId',scope.row.xpId );
this.$router.push({path:'detail'})
this.$router.push({path:'detail',query:{
source:0
}})
},
//
searchBtn(){

View File

@ -139,7 +139,9 @@ export default {
handleLinkDetail(scope) {
localStorage.setItem('xpId',scope.row.xyProjectId );
localStorage.setItem('date',scope.row.date );
this.$router.push({path:'/newproject/detail'})
this.$router.push({path:'/newproject/detail',query:{
source:1
}})
},
//
getNameSelect(){