Commit f21937a5 by 闫泽浩

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents 94b3a19c c2fd53eb
......@@ -21,16 +21,24 @@ export default {
...limitbody,
...doctre,
async init () {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{
trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
let inr = this.$route.query.trn
let curReviewSpt = null
if (inr) {
curReviewSpt = sessionStorage.getItem('review_' + inr)
}
let params = {}
if (curReviewSpt) {
params = {
spt: JSON.parse(curReviewSpt)
}
} else {
params = {
spt: {
inr: this.$route.query.trn
}
}
}
if ( typeof(this.$route.query.inr) == 'string' ){
params.spt = null
params.trnmod.trn =null
}
const loading = this.loading();
const res = await Api.post('/service/brtset/init', {
...params,
transName: this.trnName,
......
......@@ -50,10 +50,12 @@ export default {
this.$router.push({ path: 'business-new/sptpopup', query: { inr: inr } });
},
async continueEdit(row, scope) {
localStorage.setItem(`row_${row.frm.toLowerCase()}`, JSON.stringify(row))
let trnName = row.frm.toLowerCase();
this.$router.push({
path: 'business-new/' + trnName,
query: {
trn: row.inr
}
});
},
// pageSize改变
......
......@@ -136,7 +136,7 @@ export default {
query: { trn: row['inr'], operateId: operateId },
params: { prePageId: this.model.pageId },
});
localStorage.setItem(`review_${row.inifrm.toLowerCase()}`, JSON.stringify(row))
sessionStorage.setItem(`review_${row.inr}`, JSON.stringify(row))
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment