【修改】修改流程传参方式
This commit is contained in:
+7
-2
@@ -12,15 +12,20 @@ export default new Vuex.Store({
|
||||
menuData: [],
|
||||
pathUrl: '',
|
||||
menuName: '',
|
||||
activeTab: ''
|
||||
activeTab: '',
|
||||
handleProcess: ''
|
||||
},
|
||||
getters: {
|
||||
menuData: (state) => state.menuData,
|
||||
menuName: (state) => state.menuName,
|
||||
userInfo: (state) => state.userInfo,
|
||||
activeTab: (state) =>state.activeTab
|
||||
activeTab: (state) =>state.activeTab,
|
||||
handleProcess: (state) =>state.handleProcess
|
||||
},
|
||||
mutations: {
|
||||
setHandleProcess(state, data){
|
||||
state.handleProcess = data
|
||||
},
|
||||
setActiveTabIndex(state, data){
|
||||
state.activeTab = data
|
||||
},
|
||||
|
||||
@@ -142,10 +142,10 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.taskId=this.$route.query.taskId
|
||||
this.prcNum=this.$route.query.prcNum
|
||||
this.prcId=this.$route.query.prcId
|
||||
this.prcName=this.$route.query.prcName
|
||||
this.taskId=this.$store.getters.handleProcess.taskId
|
||||
this.prcNum=this.$store.getters.handleProcess.prcNum
|
||||
this.prcId=this.$store.getters.handleProcess.prcId
|
||||
this.prcName=this.$store.getters.handleProcess.prcName
|
||||
let params={
|
||||
prcId: this.prcId,
|
||||
prcType: this.prcType
|
||||
|
||||
@@ -201,11 +201,11 @@ export default {
|
||||
}
|
||||
this.handleReset()
|
||||
}
|
||||
if (this.$route.query.taskDefinitionKey == 'aid4') {
|
||||
this.taskId = this.$route.query.taskId
|
||||
this.prcNum = this.$route.query.prcNum
|
||||
this.prcId = this.$route.query.prcId
|
||||
this.prcName = this.$route.query.prcName
|
||||
if (this.$store.getters.handleProcess.taskDefinitionKey == 'aid4') {
|
||||
this.taskId = this.$store.getters.handleProcess.taskId
|
||||
this.prcNum = this.$store.getters.handleProcess.prcNum
|
||||
this.prcId = this.$store.getters.handleProcess.prcId
|
||||
this.prcName = this.$store.getters.handleProcess.prcName
|
||||
this.initShow = true
|
||||
this.formControlname = true
|
||||
|
||||
@@ -221,10 +221,10 @@ export default {
|
||||
})
|
||||
}
|
||||
if (this.$route.query.type == 'yiban') {
|
||||
this.taskId = this.$route.query.taskId
|
||||
this.prcNum = this.$route.query.prcNum
|
||||
this.prcId = this.$route.query.prcId
|
||||
this.prcName = this.$route.query.prcName
|
||||
this.taskId = this.$store.getters.handleProcess.taskId
|
||||
this.prcNum = this.$store.getters.handleProcess.prcNum
|
||||
this.prcId = this.$store.getters.handleProcess.prcId
|
||||
this.prcName = this.$store.getters.handleProcess.prcName
|
||||
this.formControl = true
|
||||
this.initShow = true
|
||||
this.showTableD = true
|
||||
|
||||
@@ -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