|
@@ -511,18 +511,12 @@ export default {
|
|
|
methods: {
|
|
|
async listData () {
|
|
|
let param = {
|
|
|
- "accesstoken":this.$route.query.token,
|
|
|
"id": "20230211105803",
|
|
|
"content": {
|
|
|
"sa_workorder_confirmationid": this.$route.query.ownerid
|
|
|
}
|
|
|
}
|
|
|
- let res = await this.$axios({
|
|
|
- method:'POST',
|
|
|
- data: param,
|
|
|
- url:'/yos/rest/index',
|
|
|
- })
|
|
|
- return console.log(res);
|
|
|
+ let res = await this.$api.requested(param)
|
|
|
if (res.data.workorder.type == '安装测试') {
|
|
|
res.data.confirmationcontent.forEach(e => {
|
|
|
Object.keys(e).map((key,index)=>{
|
|
@@ -654,6 +648,13 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
created () {
|
|
|
+ if (sessionStorage.getItem('active_account')) {
|
|
|
+ let result = JSON.parse(sessionStorage.getItem('active_account'))
|
|
|
+ result.token = this.$route.query.token
|
|
|
+ sessionStorage.setItem('active_account',JSON.stringify(result))
|
|
|
+ } else {
|
|
|
+ sessionStorage.setItem('active_account',JSON.stringify({token:this.$route.query.token}))
|
|
|
+ }
|
|
|
},
|
|
|
mounted () {
|
|
|
this.listData()
|