【修改】修改流程传参 修改名称样式

This commit is contained in:
zhoulingpo
2023-04-24 21:11:53 +08:00
parent 95b35ed77a
commit 21f68b0bd8
12 changed files with 106 additions and 65 deletions
@@ -108,9 +108,10 @@ export default {
path: '/permission/launch',
query: {
id: 'AEHJB8YNJ3',
taskIds:row.taskIds,
taskId:row.taskId,
type:'yiban',
taskDefinitionKey: row.taskDefinitionKey
taskDefinitionKey: row.taskDefinitionKey,
prcNum: row.prcNum,
}
})
}else{
@@ -118,9 +119,10 @@ export default {
path: '/permission/examine',
query: {
id: 'AEHJB8YNJ3',
taskIds:row.taskIds,
taskId:row.taskId,
type:'yiban',
taskDefinitionKey: row.taskDefinitionKey
taskDefinitionKey: row.taskDefinitionKey,
prcNum: row.prcNum,
}
})
}
@@ -10,7 +10,7 @@
<vxe-column show-overflow show-header-overflow field="prcNum"
title="流程编号">
<template #default="{ row,index }" >
<div class="blurcolor" @click.native.prevent="handle(row)">{{row.prcNum}}</div>
<div class="blurcolor" @click="handle(row)">{{row.prcNum}}</div>
</template>
</vxe-column>
<vxe-column show-overflow show-header-overflow field="prcType"
@@ -21,7 +21,7 @@
</vxe-column>
<vxe-column show-overflow show-header-overflow field="prcName" title="流程名称">
<template #default="{ row,index }" >
<div class="blurcolor" @click.native.prevent="handle(row)">{{row.prcName}}</div>
<div class="blurcolor" @click="handle(row)">{{row.prcName}}</div>
</template>
</vxe-column>
<vxe-column show-overflow show-header-overflow field="creatUserName"
@@ -103,7 +103,8 @@ export default {
path: '/permission/launch',
query: {
id: 'AEHJB8YNJ3',
taskIds:row.taskIds
taskId:row.taskId,
prcNum: row.prcNum,
}
})
}else{
@@ -111,7 +112,8 @@ export default {
path: '/permission/examine',
query: {
id: 'AEHJB8YNJ3',
taskIds:row.taskIds
taskId:row.taskId,
prcNum: row.prcNum,
}
})
}
@@ -40,7 +40,8 @@ export default {
}
]
},
taskId:''
taskId:'',
pId:''
};
},
@@ -58,8 +59,9 @@ export default {
this.userList = data.records;
})
},
open(taskId) {
open(taskId,pId) {
this.taskId=taskId
this.pId=pId
this.form.name={
assignee:''
}
@@ -94,7 +94,7 @@ export default {
const prcType = row.prcType
console.log(prcType);
this.loading = true
this.$api.getAlreadData({taskIds:row.taskIds})
this.$api.getAlreadData({taskId:row.taskId})
.then(res=>{
switch (prcType) {
case '1':
@@ -132,18 +132,16 @@ export default {
this.loadData()
}).catch(err => {
console.log(err)
this.tableData = [{name: 1}]
})
})
},
loadData() {
let userId=this.$store.getters.userInfo.usid
this.$api.processCenter.sentProcessPage({...this.q,...this.form,userId:userId}).then(res=>{
this.tableData = res.data.list.length>0 ?res.data.list:[{name:1}]
this.tableData = res.data.list
this.total = res.data.count
}).catch(err=>{
console.log(err)
this.tableData = [{name:1}]
})
},
// 单页数据量
@@ -168,10 +166,7 @@ export default {
}
})
},
back(index, tableData) {
console.log('index', index);
console.log('tableData', tableData);
},
},
};
</script>