Commit 6d5cb87e by lixinyi

let复核参数更改

parent 180ac571
...@@ -23,14 +23,11 @@ export default { ...@@ -23,14 +23,11 @@ export default {
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod: { trninr: this.$route.query.trninr,
trn: JSON.parse(localStorage.getItem('review_'+this.trnName))
},
} }
if ( typeof(this.$route.query.inr) == 'string'){ if ( typeof(this.$route.query.inr) == 'string'){
params.spt = null params.spt = null
params.trnmod.trn = null
} }
const res = await Api.post('/service/letamc/init', { const res = await Api.post('/service/letamc/init', {
...params, ...params,
......
...@@ -22,7 +22,8 @@ export default { ...@@ -22,7 +22,8 @@ export default {
...doctre, ...doctre,
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trninr: this.$route.query.trninr,
} }
const res = await Api.post('/service/letame/init', { const res = await Api.post('/service/letame/init', {
...params, ...params,
......
...@@ -22,7 +22,8 @@ export default { ...@@ -22,7 +22,8 @@ export default {
...doctre, ...doctre,
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trninr: this.$route.query.trninr,
} }
const res = await Api.post('/service/letcan/init', { const res = await Api.post('/service/letcan/init', {
...params, ...params,
......
...@@ -23,14 +23,11 @@ export default { ...@@ -23,14 +23,11 @@ export default {
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod: { trninr: this.$route.query.trninr,
trn: JSON.parse(localStorage.getItem('review_'+this.trnName))
},
} }
if ( typeof(this.$route.query.inr) == 'string'){ if ( typeof(this.$route.query.inr) == 'string'){
params.spt = null params.spt = null
params.trnmod.trn = null
} }
const res = await Api.post('/service/letdav/init', { const res = await Api.post('/service/letdav/init', {
...params, ...params,
......
...@@ -23,9 +23,7 @@ export default { ...@@ -23,9 +23,7 @@ export default {
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod: { trninr: this.$route.query.trninr,
trn: JSON.parse(localStorage.getItem('review_'+this.trnName))
},
bedgrp:{ bedgrp:{
rec:{ rec:{
inr: this.$route.query.inr inr: this.$route.query.inr
...@@ -35,7 +33,6 @@ export default { ...@@ -35,7 +33,6 @@ export default {
if ( typeof(this.$route.query.inr) == 'string'){ if ( typeof(this.$route.query.inr) == 'string'){
params.spt = null params.spt = null
params.trnmod.trn = null
} }
const res = await Api.post('/service/letdrv/init', { const res = await Api.post('/service/letdrv/init', {
...params, ...params,
......
...@@ -23,13 +23,10 @@ export default { ...@@ -23,13 +23,10 @@ export default {
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{ trninr: this.$route.query.trninr,
trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
}
} }
if ( typeof(this.$route.query.inr) == 'string' ){ if ( typeof(this.$route.query.inr) == 'string' ){
params.spt = null params.spt = null
params.trnmod.trn =null
} }
const res = await Api.post('/service/letdrw/init', { const res = await Api.post('/service/letdrw/init', {
...params, ...params,
......
...@@ -23,13 +23,10 @@ export default { ...@@ -23,13 +23,10 @@ export default {
async init() { async init() {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod: { trninr: this.$route.query.trninr,
trn: JSON.parse(localStorage.getItem('review_' + this.trnName))
}
} }
if (typeof (this.$route.query.inr) == 'string') { if (typeof (this.$route.query.inr) == 'string') {
params.spt = null params.spt = null
params.trnmod.trn = null
} }
const loading = this.loading(); const loading = this.loading();
const res = await Api.post('/service/letnot/init', { const res = await Api.post('/service/letnot/init', {
......
...@@ -22,13 +22,10 @@ export default { ...@@ -22,13 +22,10 @@ export default {
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{ trninr: this.$route.query.trninr,
trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
}
} }
if ( typeof(this.$route.query.inr) == 'string' ){ if ( typeof(this.$route.query.inr) == 'string' ){
params.spt = null params.spt = null
params.trnmod.trn =null
} }
const res = await Api.post('/service/letopn/init', { const res = await Api.post('/service/letopn/init', {
...params, ...params,
......
...@@ -22,13 +22,10 @@ export default { ...@@ -22,13 +22,10 @@ export default {
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{ trninr: this.$route.query.trninr,
trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
}
} }
if ( typeof(this.$route.query.inr) == 'string' ){ if ( typeof(this.$route.query.inr) == 'string' ){
params.spt = null params.spt = null
params.trnmod.trn =null
} }
const res = await Api.post('/service/letrsv/init', { const res = await Api.post('/service/letrsv/init', {
...params, ...params,
......
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