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 { ...@@ -21,16 +21,24 @@ export default {
...limitbody, ...limitbody,
...doctre, ...doctre,
async init () { async init () {
const params = { let inr = this.$route.query.trn
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), let curReviewSpt = null
trnmod:{ if (inr) {
trn:JSON.parse(localStorage.getItem('review_'+this.trnName)) 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' ){ const loading = this.loading();
params.spt = null
params.trnmod.trn =null
}
const res = await Api.post('/service/brtset/init', { const res = await Api.post('/service/brtset/init', {
...params, ...params,
transName: this.trnName, transName: this.trnName,
......
...@@ -50,10 +50,12 @@ export default { ...@@ -50,10 +50,12 @@ export default {
this.$router.push({ path: 'business-new/sptpopup', query: { inr: inr } }); this.$router.push({ path: 'business-new/sptpopup', query: { inr: inr } });
}, },
async continueEdit(row, scope) { async continueEdit(row, scope) {
localStorage.setItem(`row_${row.frm.toLowerCase()}`, JSON.stringify(row))
let trnName = row.frm.toLowerCase(); let trnName = row.frm.toLowerCase();
this.$router.push({ this.$router.push({
path: 'business-new/' + trnName, path: 'business-new/' + trnName,
query: {
trn: row.inr
}
}); });
}, },
// pageSize改变 // pageSize改变
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
query: { trn: row['inr'], operateId: operateId }, query: { trn: row['inr'], operateId: operateId },
params: { prePageId: this.model.pageId }, 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