Commit 9ad7b305 authored by kangzhenfei's avatar kangzhenfei

user

parent 88e15c87
...@@ -49,6 +49,15 @@ ...@@ -49,6 +49,15 @@
</div> </div>
<div style="width:98%" v-if="com(item.records).length>0"> <div style="width:98%" v-if="com(item.records).length>0">
<Table :columns="columns" border size="small" width="90%" :data="com(item.records)"></Table> <Table :columns="columns" border size="small" width="90%" :data="com(item.records)"></Table>
<p>
<state code="workflow.record.status" :value="item.status" type="text"></state>
<!-- <User v-for="(item2, index2) in item.defaultUsers.immutable"
:key="index2"
:value="item2"
class="mr5"
/> -->
<!-- <span>{{item}}</span> -->
</p>
</div> </div>
</div> </div>
</TimelineItem> </TimelineItem>
...@@ -60,6 +69,9 @@ import Api from './api' ...@@ -60,6 +69,9 @@ import Api from './api'
export default { export default {
name: 'process', name: 'process',
components: {}, components: {},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
},
data() { data() {
return { return {
currentUserId: 0, currentUserId: 0,
...@@ -181,8 +193,8 @@ export default { ...@@ -181,8 +193,8 @@ export default {
com(items) { com(items) {
if(items) if(items)
return items.filter((u) => { return items.filter((u) => {
return [2, 3, 5,6].indexOf(u.status) > -1 return [2, 3, 5,6].indexOf(u.status) > -1
}) })
else else
return []; return [];
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment