|
@@ -10,9 +10,9 @@
|
|
|
@click-left="$router.push({ name: 'dashboard' })"
|
|
@click-left="$router.push({ name: 'dashboard' })"
|
|
|
/>
|
|
/>
|
|
|
<van-search
|
|
<van-search
|
|
|
- v-model="subject"
|
|
|
|
|
|
|
+ v-model="proName"
|
|
|
show-action
|
|
show-action
|
|
|
- placeholder="请输入搜索关键词"
|
|
|
|
|
|
|
+ placeholder="请输入事务名称"
|
|
|
@search="onSearch"
|
|
@search="onSearch"
|
|
|
>
|
|
>
|
|
|
<template #left>
|
|
<template #left>
|
|
@@ -40,10 +40,13 @@
|
|
|
:right-width="65"
|
|
:right-width="65"
|
|
|
>
|
|
>
|
|
|
<van-cell
|
|
<van-cell
|
|
|
- :title="item.procDefName"
|
|
|
|
|
:label="getTaskDesc(item.subject)"
|
|
:label="getTaskDesc(item.subject)"
|
|
|
@click="onClick(item, index)"
|
|
@click="onClick(item, index)"
|
|
|
>
|
|
>
|
|
|
|
|
+ <template #title>
|
|
|
|
|
+ <span class="custom-title">{{item.procDefName + ' '}}</span>
|
|
|
|
|
+ <van-tag v-if="$store.getters.deptList.find(i=>i.positionId==getTaskInfo(item.subject))" color="#f4f4f5" text-color="#909399" type="success" >{{ $store.getters.deptList.find(i=>i.positionId==getTaskInfo(item.subject)).positionName }}</van-tag>
|
|
|
|
|
+ </template>
|
|
|
<template slot="icon">
|
|
<template slot="icon">
|
|
|
<ibps-avatar
|
|
<ibps-avatar
|
|
|
:icon="_randomIcon(index)"
|
|
:icon="_randomIcon(index)"
|
|
@@ -57,21 +60,23 @@
|
|
|
<span>{{ item.createTime | formatRelativeTime }}</span>
|
|
<span>{{ item.createTime | formatRelativeTime }}</span>
|
|
|
<div>
|
|
<div>
|
|
|
<!-- <van-tag plain :type=" item.status | optionsFilter(bpmnStatusOptions,'type')">{{ item.status | optionsFilter(bpmnStatusOptions) }}</van-tag> -->
|
|
<!-- <van-tag plain :type=" item.status | optionsFilter(bpmnStatusOptions,'type')">{{ item.status | optionsFilter(bpmnStatusOptions) }}</van-tag> -->
|
|
|
- <van-tag
|
|
|
|
|
- size="medium"
|
|
|
|
|
- :color="
|
|
|
|
|
- item.status
|
|
|
|
|
- | optionsFilter(bpmnStatusOptions, 'type')
|
|
|
|
|
- | optionsFilter(colorOptions, 'color', 'type')
|
|
|
|
|
- "
|
|
|
|
|
- :text-color="
|
|
|
|
|
- item.status
|
|
|
|
|
- | optionsFilter(bpmnStatusOptions, 'type')
|
|
|
|
|
- | optionsFilter(colorOptions, 'textColor', 'type')
|
|
|
|
|
- "
|
|
|
|
|
- >
|
|
|
|
|
- {{ item.status | optionsFilter(bpmnStatusOptions) }}</van-tag
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <van-tag
|
|
|
|
|
+ :color="
|
|
|
|
|
+ item.status
|
|
|
|
|
+ | optionsFilter(bpmnStatusOptions, 'type')
|
|
|
|
|
+ | optionsFilter(colorOptions, 'color', 'type')
|
|
|
|
|
+ "
|
|
|
|
|
+ :text-color="
|
|
|
|
|
+ item.status
|
|
|
|
|
+ | optionsFilter(bpmnStatusOptions, 'type')
|
|
|
|
|
+ | optionsFilter(colorOptions, 'textColor', 'type')
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ item.status | optionsFilter(bpmnStatusOptions) }}
|
|
|
|
|
+ </van-tag>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div><van-tag type="success" plain>{{ '待'+item.curNode }}</van-tag></div>
|
|
|
</div>
|
|
</div>
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
<van-button
|
|
<van-button
|
|
@@ -131,7 +136,7 @@ import IbpsTypeTree from '@/business/platform/cat/type/tree'
|
|
|
import IbpsAvatar from '@/components/ibps-avatar'
|
|
import IbpsAvatar from '@/components/ibps-avatar'
|
|
|
import IbpsListResultPage from '@/components/ibps-list-result-page'
|
|
import IbpsListResultPage from '@/components/ibps-list-result-page'
|
|
|
import IbpsBpmnFormrenderDialog from '@/business/platform/bpmn/form/dialog'
|
|
import IbpsBpmnFormrenderDialog from '@/business/platform/bpmn/form/dialog'
|
|
|
-
|
|
|
|
|
|
|
+import CommonData from '../mixin/utils'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
IbpsMoreSearch,
|
|
IbpsMoreSearch,
|
|
@@ -140,7 +145,7 @@ export default {
|
|
|
IbpsListResultPage,
|
|
IbpsListResultPage,
|
|
|
IbpsBpmnFormrenderDialog
|
|
IbpsBpmnFormrenderDialog
|
|
|
},
|
|
},
|
|
|
- mixins: [random, bpmnStatus],
|
|
|
|
|
|
|
+ mixins: [random, bpmnStatus,CommonData],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
stateActive: false,
|
|
stateActive: false,
|
|
@@ -159,7 +164,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ proName: '',
|
|
|
subject: '',
|
|
subject: '',
|
|
|
typeId: '',
|
|
typeId: '',
|
|
|
moreParams: {},
|
|
moreParams: {},
|
|
@@ -213,8 +218,8 @@ export default {
|
|
|
*/
|
|
*/
|
|
|
getSearcFormData() {
|
|
getSearcFormData() {
|
|
|
let params = {}
|
|
let params = {}
|
|
|
- if (this.$utils.isNotEmpty(this.subject)) {
|
|
|
|
|
- params['Q^subject_^SL'] = this.subject
|
|
|
|
|
|
|
+ if (this.$utils.isNotEmpty(this.proName)) {
|
|
|
|
|
+ params['Q^proc_def_name_^SL'] = this.proName
|
|
|
}
|
|
}
|
|
|
if (this.$utils.isNotEmpty(this.moreParams)) {
|
|
if (this.$utils.isNotEmpty(this.moreParams)) {
|
|
|
params = Object.assign(params, this.moreParams)
|
|
params = Object.assign(params, this.moreParams)
|