|
|
@ -233,41 +233,46 @@ export default { |
|
|
|
}, '*') |
|
|
|
}, |
|
|
|
created() { |
|
|
|
console.log('url:' + window.location.href) |
|
|
|
var a = window.location.href.indexOf('?') + 1 // 第一个?后面的一个字符的位置 |
|
|
|
var b = window.location.href.indexOf('#data') // 第一个#data出现的位置 |
|
|
|
const info = window.location.href.slice(a, b) |
|
|
|
var sid = info.substr(info.indexOf('=') + 1) |
|
|
|
this.showInfo(sid) |
|
|
|
// console.log('url:' + window.location.href) |
|
|
|
// var a = window.location.href.indexOf('?') + 1 // 第一个?后面的一个字符的位置 |
|
|
|
// var b = window.location.href.indexOf('#data') // 第一个#data出现的位置 |
|
|
|
// const info = window.location.href.slice(a, b) |
|
|
|
// var sid = info.substr(info.indexOf('=') + 1) |
|
|
|
// this.showInfo(sid) |
|
|
|
// ===获取参数 |
|
|
|
var one = window.location.href.lastIndexOf('#') + 1 |
|
|
|
var two = window.location.href.lastIndexOf('}') + 1 |
|
|
|
const data = decodeURI(window.location.href.slice(one, two)) // url解码unescape()已从web中移除,尽量不使用 |
|
|
|
var tar = data.substr(data.indexOf('=') + 1) |
|
|
|
const obj = JSON.parse(tar) |
|
|
|
var one = window.location.href.indexOf('?data') + 6 |
|
|
|
console.log('iframe页面获取的one:', one) |
|
|
|
var two = window.location.href.lastIndexOf('&') //+ 1 |
|
|
|
console.log('iframe页面获取的two:', two) |
|
|
|
const data = window.location.href.slice(one, two) // url解码unescape()已从web中移除,尽量不使用 |
|
|
|
console.log('iframe页面获取的data:', data) |
|
|
|
// var tar = data.substr(data.indexOf('=') + 1) |
|
|
|
// console.log('iframe页面获取的tar:', tar) |
|
|
|
const obj = JSON.parse(decodeURIComponent(data)) |
|
|
|
console.log('iframe页面获取的obj:', obj) |
|
|
|
// 同意列表 |
|
|
|
this.agreeList.businessSid = sid |
|
|
|
this.agreeList.businessSid = obj.sid |
|
|
|
this.agreeList.instanceId = obj.instanceId |
|
|
|
this.agreeList.taskId = obj.taskId |
|
|
|
this.agreeList.taskDefKey = obj.taskDefKey |
|
|
|
this.agreeList.userSid = obj.userSid |
|
|
|
this.agreeList.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
this.agreeList.orgSidPath = window.sessionStorage.getItem('orgSidPath') |
|
|
|
this.current.taskDefKey = obj.taskDefKey |
|
|
|
this.current.taskName = obj.taskName |
|
|
|
// 驳回列表 |
|
|
|
this.regectList.businessSid = sid |
|
|
|
this.regectList.businessSid = obj.sid |
|
|
|
this.regectList.instanceId = obj.instanceId |
|
|
|
this.regectList.taskId = obj.taskId |
|
|
|
this.regectList.userSid = obj.userSid |
|
|
|
// 终止列表 |
|
|
|
this.stopList.businessSid = sid |
|
|
|
this.stopList.businessSid = obj.sid |
|
|
|
this.stopList.instanceId = obj.instanceId |
|
|
|
this.stopList.taskId = obj.taskId |
|
|
|
this.stopList.userSid = obj.userSid |
|
|
|
// 办理状态 |
|
|
|
this.transactState = obj.transactState |
|
|
|
// 加载流程图相关的数据 |
|
|
|
this.showInfo(obj.sid) |
|
|
|
this.getModelDetail(obj.deployId) |
|
|
|
this.getFlowViewer(obj.instanceId) |
|
|
|
}, |
|
|
|