【修改】修改流程传参方式
This commit is contained in:
@@ -106,32 +106,32 @@ export default {
|
||||
this.loadData();
|
||||
},
|
||||
view(row) {
|
||||
let params={
|
||||
id: this.$route.query.id,
|
||||
taskId:row.taskId,
|
||||
type:'yiban',
|
||||
taskDefinitionKey: row.taskDefinitionKey,
|
||||
prcNum: row.prcNum,
|
||||
prcId: row.prcId,
|
||||
prcName: row.prcName,
|
||||
}
|
||||
this.$store.commit('setHandleProcess',params)
|
||||
switch (row.prcType) {
|
||||
case '1' :
|
||||
if (row.taskDefinitionKey == 'aid1' || row.taskDefinitionKey == 'aid3') {
|
||||
this.$router.push({
|
||||
path: '/permission/launch',
|
||||
query: {
|
||||
id: 'AEHJB8YNJ3',
|
||||
taskId:row.taskId,
|
||||
id: this.$route.query.id,
|
||||
type:'yiban',
|
||||
taskDefinitionKey: row.taskDefinitionKey,
|
||||
prcNum: row.prcNum,
|
||||
prcId: row.prcId,
|
||||
prcName: row.prcName,
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.$router.push({
|
||||
path: '/permission/examine',
|
||||
query: {
|
||||
id: 'AEHJB8YNJ3',
|
||||
taskId:row.taskId,
|
||||
id: this.$route.query.id,
|
||||
type:'yiban',
|
||||
taskDefinitionKey: row.taskDefinitionKey,
|
||||
prcNum: row.prcNum,
|
||||
prcId: row.prcId ,
|
||||
prcName: row.prcName
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -96,30 +96,30 @@ export default {
|
||||
this.loadData();
|
||||
},
|
||||
handle(row) {
|
||||
let params={
|
||||
id: this.$route.query.id,
|
||||
taskId:row.taskId,
|
||||
type:'yiban',
|
||||
taskDefinitionKey: row.taskDefinitionKey,
|
||||
prcNum: row.prcNum,
|
||||
prcId: row.prcId,
|
||||
prcName: row.prcName,
|
||||
}
|
||||
this.$store.commit('setHandleProcess',params)
|
||||
switch (row.prcType) {
|
||||
case '1' :
|
||||
if (row.taskDefinitionKey == 'aid4') {
|
||||
this.$router.push({
|
||||
path: '/permission/launch',
|
||||
query: {
|
||||
id: 'AEHJB8YNJ3',
|
||||
taskId:row.taskId,
|
||||
prcNum: row.prcNum,
|
||||
prcId: row.prcId,
|
||||
prcName: row.prcName,
|
||||
taskDefinitionKey: row.taskDefinitionKey
|
||||
id: this.$route.query.id
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.$router.push({
|
||||
path: '/permission/examine',
|
||||
query: {
|
||||
id: 'AEHJB8YNJ3',
|
||||
taskId:row.taskId,
|
||||
prcNum: row.prcNum,
|
||||
prcId: row.prcId,
|
||||
prcName: row.prcName,
|
||||
taskDefinitionKey: row.taskDefinitionKey
|
||||
id: this.$route.query.id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -106,13 +106,17 @@ export default {
|
||||
this.loadData();
|
||||
},
|
||||
view(row) {
|
||||
let params={
|
||||
id: this.$route.query.id,
|
||||
prcNum: row.prcNum,
|
||||
prcType: row.prcType,
|
||||
prcId: row.prcId,
|
||||
}
|
||||
this.$store.commit('setHandleProcess',params)
|
||||
this.$router.push({
|
||||
path: 'monitorViews',
|
||||
query:{
|
||||
id: this.$route.query.id,
|
||||
prcNum: row.prcNum,
|
||||
prcType: row.prcType,
|
||||
prcId: row.prcId,
|
||||
tabsName: 'MonitorProcess'
|
||||
}
|
||||
})
|
||||
|
||||
@@ -122,7 +122,7 @@ export default {
|
||||
methods: {
|
||||
exportStandard (){
|
||||
let exportName=''
|
||||
let pramas={prcNum: this.$route.query.prcNum,
|
||||
let pramas={prcNum: this.$store.getters.handleProcess.prcNum,
|
||||
sortWord: this.shunxu ? this.paixu : '',
|
||||
shunxu: this.shunxu,
|
||||
exportName: exportName}
|
||||
@@ -233,7 +233,7 @@ export default {
|
||||
if(check.length > 0){
|
||||
this.$message.warning("请选择状态为未完成的数据")
|
||||
}else{
|
||||
this.$refs.monitorModal.open(this.checkIds,this.checkList[0].taskId,this.checkList[0].assigneeId)
|
||||
this.$refs.monitorModal.open(this.checkIds[0].taskId,this.prcId,this.checkList[0].assigneeId)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -280,10 +280,10 @@ export default {
|
||||
},
|
||||
props: {},
|
||||
mounted () {
|
||||
this.tabsName=this.$route.query.tabsName
|
||||
this.prcType=this.$route.query.prcType
|
||||
this.prcNum=this.$route.query.prcNum
|
||||
this.prcId=this.$route.query.prcId
|
||||
this.tabsName=this.$store.getters.handleProcess.tabsName
|
||||
this.prcType=this.$store.getters.handleProcess.prcType
|
||||
this.prcNum=this.$store.getters.handleProcess.prcNum
|
||||
this.prcId=this.$store.getters.handleProcess.prcId
|
||||
this.processNum()
|
||||
this.processTable()
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ export default {
|
||||
this.$message.warning("当前任务受理人就是您选择的人员")
|
||||
} else {
|
||||
this.$api.process.changeAssignee({
|
||||
taskId: this.taskId.join(','),
|
||||
taskId: this.taskId,
|
||||
assignee: assignee,
|
||||
userId: userId,
|
||||
pId: this.pId
|
||||
|
||||
@@ -161,12 +161,17 @@ export default {
|
||||
this.loadData();
|
||||
},
|
||||
view(row) {
|
||||
let params={
|
||||
id: this.$route.query.id,
|
||||
prcNum: row.prcNum,
|
||||
prcType: row.prcType,
|
||||
tabsName: 'AlreadyProcess'
|
||||
}
|
||||
this.$store.commit('setHandleProcess',params)
|
||||
this.$router.push({
|
||||
path: 'monitorViews',
|
||||
query: {
|
||||
id: this.$route.query.id,
|
||||
prcNum: row.prcNum,
|
||||
prcType: row.prcType,
|
||||
tabsName: 'AlreadyProcess'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user