【修改】修改流程传参方式
This commit is contained in:
+7
-2
@@ -12,15 +12,20 @@ export default new Vuex.Store({
|
|||||||
menuData: [],
|
menuData: [],
|
||||||
pathUrl: '',
|
pathUrl: '',
|
||||||
menuName: '',
|
menuName: '',
|
||||||
activeTab: ''
|
activeTab: '',
|
||||||
|
handleProcess: ''
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
menuData: (state) => state.menuData,
|
menuData: (state) => state.menuData,
|
||||||
menuName: (state) => state.menuName,
|
menuName: (state) => state.menuName,
|
||||||
userInfo: (state) => state.userInfo,
|
userInfo: (state) => state.userInfo,
|
||||||
activeTab: (state) =>state.activeTab
|
activeTab: (state) =>state.activeTab,
|
||||||
|
handleProcess: (state) =>state.handleProcess
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
setHandleProcess(state, data){
|
||||||
|
state.handleProcess = data
|
||||||
|
},
|
||||||
setActiveTabIndex(state, data){
|
setActiveTabIndex(state, data){
|
||||||
state.activeTab = data
|
state.activeTab = data
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -142,10 +142,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.taskId=this.$route.query.taskId
|
this.taskId=this.$store.getters.handleProcess.taskId
|
||||||
this.prcNum=this.$route.query.prcNum
|
this.prcNum=this.$store.getters.handleProcess.prcNum
|
||||||
this.prcId=this.$route.query.prcId
|
this.prcId=this.$store.getters.handleProcess.prcId
|
||||||
this.prcName=this.$route.query.prcName
|
this.prcName=this.$store.getters.handleProcess.prcName
|
||||||
let params={
|
let params={
|
||||||
prcId: this.prcId,
|
prcId: this.prcId,
|
||||||
prcType: this.prcType
|
prcType: this.prcType
|
||||||
|
|||||||
@@ -201,11 +201,11 @@ export default {
|
|||||||
}
|
}
|
||||||
this.handleReset()
|
this.handleReset()
|
||||||
}
|
}
|
||||||
if (this.$route.query.taskDefinitionKey == 'aid4') {
|
if (this.$store.getters.handleProcess.taskDefinitionKey == 'aid4') {
|
||||||
this.taskId = this.$route.query.taskId
|
this.taskId = this.$store.getters.handleProcess.taskId
|
||||||
this.prcNum = this.$route.query.prcNum
|
this.prcNum = this.$store.getters.handleProcess.prcNum
|
||||||
this.prcId = this.$route.query.prcId
|
this.prcId = this.$store.getters.handleProcess.prcId
|
||||||
this.prcName = this.$route.query.prcName
|
this.prcName = this.$store.getters.handleProcess.prcName
|
||||||
this.initShow = true
|
this.initShow = true
|
||||||
this.formControlname = true
|
this.formControlname = true
|
||||||
|
|
||||||
@@ -221,10 +221,10 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.$route.query.type == 'yiban') {
|
if (this.$route.query.type == 'yiban') {
|
||||||
this.taskId = this.$route.query.taskId
|
this.taskId = this.$store.getters.handleProcess.taskId
|
||||||
this.prcNum = this.$route.query.prcNum
|
this.prcNum = this.$store.getters.handleProcess.prcNum
|
||||||
this.prcId = this.$route.query.prcId
|
this.prcId = this.$store.getters.handleProcess.prcId
|
||||||
this.prcName = this.$route.query.prcName
|
this.prcName = this.$store.getters.handleProcess.prcName
|
||||||
this.formControl = true
|
this.formControl = true
|
||||||
this.initShow = true
|
this.initShow = true
|
||||||
this.showTableD = true
|
this.showTableD = true
|
||||||
|
|||||||
@@ -106,32 +106,32 @@ export default {
|
|||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
view(row) {
|
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) {
|
switch (row.prcType) {
|
||||||
case '1' :
|
case '1' :
|
||||||
if (row.taskDefinitionKey == 'aid1' || row.taskDefinitionKey == 'aid3') {
|
if (row.taskDefinitionKey == 'aid1' || row.taskDefinitionKey == 'aid3') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/permission/launch',
|
path: '/permission/launch',
|
||||||
query: {
|
query: {
|
||||||
id: 'AEHJB8YNJ3',
|
id: this.$route.query.id,
|
||||||
taskId:row.taskId,
|
|
||||||
type:'yiban',
|
type:'yiban',
|
||||||
taskDefinitionKey: row.taskDefinitionKey,
|
|
||||||
prcNum: row.prcNum,
|
|
||||||
prcId: row.prcId,
|
|
||||||
prcName: row.prcName,
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/permission/examine',
|
path: '/permission/examine',
|
||||||
query: {
|
query: {
|
||||||
id: 'AEHJB8YNJ3',
|
id: this.$route.query.id,
|
||||||
taskId:row.taskId,
|
|
||||||
type:'yiban',
|
type:'yiban',
|
||||||
taskDefinitionKey: row.taskDefinitionKey,
|
|
||||||
prcNum: row.prcNum,
|
|
||||||
prcId: row.prcId ,
|
|
||||||
prcName: row.prcName
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,30 +96,30 @@ export default {
|
|||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
handle(row) {
|
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) {
|
switch (row.prcType) {
|
||||||
case '1' :
|
case '1' :
|
||||||
if (row.taskDefinitionKey == 'aid4') {
|
if (row.taskDefinitionKey == 'aid4') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/permission/launch',
|
path: '/permission/launch',
|
||||||
query: {
|
query: {
|
||||||
id: 'AEHJB8YNJ3',
|
id: this.$route.query.id
|
||||||
taskId:row.taskId,
|
|
||||||
prcNum: row.prcNum,
|
|
||||||
prcId: row.prcId,
|
|
||||||
prcName: row.prcName,
|
|
||||||
taskDefinitionKey: row.taskDefinitionKey
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/permission/examine',
|
path: '/permission/examine',
|
||||||
query: {
|
query: {
|
||||||
id: 'AEHJB8YNJ3',
|
id: this.$route.query.id
|
||||||
taskId:row.taskId,
|
|
||||||
prcNum: row.prcNum,
|
|
||||||
prcId: row.prcId,
|
|
||||||
prcName: row.prcName,
|
|
||||||
taskDefinitionKey: row.taskDefinitionKey
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,13 +106,17 @@ export default {
|
|||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
view(row) {
|
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({
|
this.$router.push({
|
||||||
path: 'monitorViews',
|
path: 'monitorViews',
|
||||||
query:{
|
query:{
|
||||||
id: this.$route.query.id,
|
id: this.$route.query.id,
|
||||||
prcNum: row.prcNum,
|
|
||||||
prcType: row.prcType,
|
|
||||||
prcId: row.prcId,
|
|
||||||
tabsName: 'MonitorProcess'
|
tabsName: 'MonitorProcess'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
exportStandard (){
|
exportStandard (){
|
||||||
let exportName=''
|
let exportName=''
|
||||||
let pramas={prcNum: this.$route.query.prcNum,
|
let pramas={prcNum: this.$store.getters.handleProcess.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : '',
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu,
|
shunxu: this.shunxu,
|
||||||
exportName: exportName}
|
exportName: exportName}
|
||||||
@@ -233,7 +233,7 @@ export default {
|
|||||||
if(check.length > 0){
|
if(check.length > 0){
|
||||||
this.$message.warning("请选择状态为未完成的数据")
|
this.$message.warning("请选择状态为未完成的数据")
|
||||||
}else{
|
}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: {},
|
props: {},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.tabsName=this.$route.query.tabsName
|
this.tabsName=this.$store.getters.handleProcess.tabsName
|
||||||
this.prcType=this.$route.query.prcType
|
this.prcType=this.$store.getters.handleProcess.prcType
|
||||||
this.prcNum=this.$route.query.prcNum
|
this.prcNum=this.$store.getters.handleProcess.prcNum
|
||||||
this.prcId=this.$route.query.prcId
|
this.prcId=this.$store.getters.handleProcess.prcId
|
||||||
this.processNum()
|
this.processNum()
|
||||||
this.processTable()
|
this.processTable()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ export default {
|
|||||||
this.$message.warning("当前任务受理人就是您选择的人员")
|
this.$message.warning("当前任务受理人就是您选择的人员")
|
||||||
} else {
|
} else {
|
||||||
this.$api.process.changeAssignee({
|
this.$api.process.changeAssignee({
|
||||||
taskId: this.taskId.join(','),
|
taskId: this.taskId,
|
||||||
assignee: assignee,
|
assignee: assignee,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
|
|||||||
@@ -161,12 +161,17 @@ export default {
|
|||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
view(row) {
|
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({
|
this.$router.push({
|
||||||
path: 'monitorViews',
|
path: 'monitorViews',
|
||||||
query: {
|
query: {
|
||||||
id: this.$route.query.id,
|
id: this.$route.query.id,
|
||||||
prcNum: row.prcNum,
|
|
||||||
prcType: row.prcType,
|
|
||||||
tabsName: 'AlreadyProcess'
|
tabsName: 'AlreadyProcess'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user