【修改】修改所有节点名

This commit is contained in:
zhoulingpo
2023-05-06 09:46:15 +08:00
parent 2da2f29c11
commit 1fe1b13f0a
10 changed files with 66 additions and 16 deletions
+4
View File
@@ -12,6 +12,10 @@
label: '权限申请流程', label: '权限申请流程',
value: '1' value: '1'
}, },
{
label: '报告上传流程',
value: '2'
},
], ],
formDisableFlag: false, formDisableFlag: false,
nowOrder: '', nowOrder: '',
@@ -156,7 +156,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
if (this.$route.query.taskDefinitionKey == 'aid4' ){ if (this.$route.query.taskDefinitionKey == 'reEdit' ){
// 有idde // 有idde
console.log(this.value) console.log(this.value)
debugger debugger
@@ -217,7 +217,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
if (this.$route.query.taskDefinitionKey == 'aid4' ){ if (this.$route.query.taskDefinitionKey == 'reEdit' ){
if(row.id && row.id !=''){ if(row.id && row.id !=''){
// this.$api.permissionProcess.deletReport({ids:[row.id]}).then(()=>{ // this.$api.permissionProcess.deletReport({ids:[row.id]}).then(()=>{
this.$emit('updateTable',this.value.filter(item => item.id !== row.id),[row.reportId]) this.$emit('updateTable',this.value.filter(item => item.id !== row.id),[row.reportId])
+2 -2
View File
@@ -236,7 +236,7 @@ export default {
}) })
} }
if (this.$route.query.taskDefinitionKey == 'aid4' ) { if (this.$route.query.taskDefinitionKey == 'reEdit' ) {
this.taskId = this.$store.getters.handleProcess.taskId this.taskId = this.$store.getters.handleProcess.taskId
this.prcNum = this.$store.getters.handleProcess.prcNum this.prcNum = this.$store.getters.handleProcess.prcNum
this.prcId = this.$store.getters.handleProcess.prcId this.prcId = this.$store.getters.handleProcess.prcId
@@ -376,7 +376,7 @@ export default {
}, },
handleReset() { handleReset() {
this.processForm.prcName = '' this.processForm.prcName = ''
if(this.$route.query.taskDefinitionKey == 'aid4'){ if(this.$route.query.taskDefinitionKey == 'reEdit'){
this.processForm.prcName = this.prcName this.processForm.prcName = this.prcName
} }
this.applicationForm = { this.applicationForm = {
@@ -244,6 +244,12 @@ export default {
fileList:[] fileList:[]
} }
}, },
watch:{
processForm(val){
debugger
this.form=this.processForm
}
},
methods: { methods: {
loadMore(){ loadMore(){
this.q.pageNo++ this.q.pageNo++
+3 -3
View File
@@ -102,7 +102,7 @@ export default {
}, },
PERMISSION, PERMISSION,
submitjson:{}, submitjson:{},
prcType:1 prcType:2
} }
}, },
created () { created () {
@@ -110,7 +110,7 @@ export default {
this.prcNum=this.$store.getters.handleProcess.prcNum this.prcNum=this.$store.getters.handleProcess.prcNum
this.prcId=this.$store.getters.handleProcess.prcId this.prcId=this.$store.getters.handleProcess.prcId
this.prcName=this.$store.getters.handleProcess.prcName this.prcName=this.$store.getters.handleProcess.prcName
this.$set(this.processForm,'prcName',this.prcName)
let params={ let params={
prcId: this.prcId, prcId: this.prcId,
@@ -121,7 +121,7 @@ export default {
} }
this.getProcessDetail(params).then(res=>{ this.getProcessDetail(params).then(res=>{
this.processForm = JSON.parse(this.processOld.dataJson) this.processForm = JSON.parse(this.processOld.dataJson)
this.$set(this.processForm,'prcName',this.prcName)
this.disabled=false this.disabled=false
this.formControl= true this.formControl= true
if(this.$route.query.type=='yiban'){ if(this.$route.query.type=='yiban'){
+2 -2
View File
@@ -188,7 +188,7 @@ export default {
}) })
} }
if (this.$route.query.taskDefinitionKey == 'aid4' ) { if (this.$route.query.taskDefinitionKey == 'reEdit' ) {
this.taskId = this.$store.getters.handleProcess.taskId this.taskId = this.$store.getters.handleProcess.taskId
this.prcNum = this.$store.getters.handleProcess.prcNum this.prcNum = this.$store.getters.handleProcess.prcNum
this.prcId = this.$store.getters.handleProcess.prcId this.prcId = this.$store.getters.handleProcess.prcId
@@ -231,7 +231,7 @@ export default {
methods: { methods: {
handleReset() { handleReset() {
this.processForm.prcName = '' this.processForm.prcName = ''
if(this.$route.query.taskDefinitionKey == 'aid4'){ if(this.$route.query.taskDefinitionKey == 'reEdit'){
this.processForm.prcName = this.prcName this.processForm.prcName = this.prcName
} }
this.applicationForm = { this.applicationForm = {
@@ -118,7 +118,7 @@ export default {
this.$store.commit('setHandleProcess',params) this.$store.commit('setHandleProcess',params)
switch (row.prcType) { switch (row.prcType) {
case '1' : case '1' :
if (row.taskDefinitionKey == 'aid1' || row.taskDefinitionKey == 'aid4') { if (row.taskDefinitionKey == 'start' || row.taskDefinitionKey == 'reEdit') {
this.$router.push({ this.$router.push({
path: '/permission/launch', path: '/permission/launch',
query: { query: {
@@ -136,7 +136,27 @@ export default {
taskDefinitionKey:row.taskDefinitionKey taskDefinitionKey:row.taskDefinitionKey
} }
}) })
};break;
case '2' :
if (row.taskDefinitionKey == 'start' || row.taskDefinitionKey == 'reEdit') {
this.$router.push({
path: '/reportprocess/launch',
query: {
id: this.$route.query.id,
type:'yiban',
taskDefinitionKey:row.taskDefinitionKey
} }
})
}else{
this.$router.push({
path: '/reportprocess/examine',
query: {
id: this.$route.query.id,
type:'yiban',
taskDefinitionKey:row.taskDefinitionKey
}
})
};break;
} }
}, },
} }
@@ -109,7 +109,7 @@ export default {
switch (row.prcType) { switch (row.prcType) {
case '1' : case '1' :
debugger debugger
if (row.taskDefinitionKey == 'aid4') { if (row.taskDefinitionKey == 'reEdit') {
this.$router.push({ this.$router.push({
path: '/permission/launch', path: '/permission/launch',
query: { query: {
@@ -127,7 +127,27 @@ export default {
prcName: row.prcName prcName: row.prcName
} }
}) })
};break;
case '2' :
if (row.taskDefinitionKey == 'start' || row.taskDefinitionKey == 'reEdit') {
this.$router.push({
path: '/reportprocess/launch',
query: {
id: this.$route.query.id,
prcName: row.prcName,
taskDefinitionKey:row.taskDefinitionKey
} }
})
}else{
this.$router.push({
path: '/reportprocess/examine',
query: {
id: this.$route.query.id,
prcName: row.prcName,
taskDefinitionKey:row.taskDefinitionKey
}
})
};break;
} }
}, },
}, },
@@ -121,7 +121,7 @@ export default {
pId: this.pId pId: this.pId
} }
if(this.prcType == '1'){ if(this.prcType == '1'){
if(this.aid=='aid2'){ if(this.aid=='oneApply'){
params.replaceMap="oneApprove:"+ this.form.assignee+','+"oneApproveName:"+ this.form.assigneeName params.replaceMap="oneApprove:"+ this.form.assignee+','+"oneApproveName:"+ this.form.assigneeName
}else{ }else{
params.replaceMap="twoApprove:"+ this.form.assignee+','+"twoApproveName:"+ this.form.assigneeName params.replaceMap="twoApprove:"+ this.form.assignee+','+"twoApproveName:"+ this.form.assigneeName
@@ -106,8 +106,8 @@ export default {
res.isViewDetails = 1 res.isViewDetails = 1
res.prcType = prcType res.prcType = prcType
res.prcNum = row.prcNum res.prcNum = row.prcNum
if (res.taskDefinitionKey == 'aid1' || if (res.taskDefinitionKey == 'start' ||
res.taskDefinitionKey == 'aid4' ) { res.taskDefinitionKey == 'reEdit' ) {
this.$router.push({ this.$router.push({
path: '/permission/launch', path: '/permission/launch',
query: res, query: res,