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