工作台bug修改

This commit is contained in:
851673013@qq.com 2022-08-08 17:42:28 +08:00
parent 11a555200c
commit cfa2f69b80
1 changed files with 16 additions and 9 deletions

View File

@ -21,11 +21,7 @@
</div>
</div>
<div class="list-box" v-if="dataInfo.list.length > 0">
<div
v-for="(item, i) in dataInfo.list"
:key="i"
@click="workbenchFunction(item, item.processDefinitionName)"
>
<div v-for="(item, i) in dataInfo.list" :key="i">
<!-- 待办 -->
<el-tooltip
effect="dark"
@ -43,7 +39,10 @@
"
placement="top"
>
<div class="list-item ellipsis">
<div
class="list-item ellipsis"
@click="workbenchFunction(item, item.processDefinitionName, '待办')"
>
<!-- {{ `${(item.processDefinitionName || '--')}${item.taskName ? ('—' + item.taskName) : ''}` }} -->
{{
(item.userDeptName || '--') +
@ -73,7 +72,10 @@
"
placement="top"
>
<div class="list-item ellipsis">
<div
class="list-item ellipsis"
@click="workbenchFunction(item, item.processDefinitionName, '已办')"
>
{{
(item.startUserDeptName || '--') +
'提交的' +
@ -112,10 +114,15 @@ export default {
},
methods: {
//
workbenchFunction (item, name) {
workbenchFunction (item, name, nameSwitch) {
const data = item
data.taskName = name
this.getProcDefRouteSet(item, this.forwardHandleUrl)
data.activityId = data.startUserId
if (nameSwitch === '待办') {
this.getProcDefRouteSet(item, this.forwardHandleUrl)
} else {
this.getProcDefRouteSet(item, this.forwardDetail)
}
},
formatNum (num) {
return num || num === 0 ? num : '--'