|
@@ -1,5 +1,4 @@
|
|
-<style lang="less">
|
|
|
|
-</style>
|
|
|
|
|
|
+<style lang="less"></style>
|
|
<template>
|
|
<template>
|
|
<div class="search">
|
|
<div class="search">
|
|
<a-card style="margin-bottom:10px;">
|
|
<a-card style="margin-bottom:10px;">
|
|
@@ -8,59 +7,69 @@
|
|
</p>
|
|
</p>
|
|
|
|
|
|
<a-row style="position:relative">
|
|
<a-row style="position:relative">
|
|
- <a-table
|
|
|
|
- :loading="loading"
|
|
|
|
- rowKey="id"
|
|
|
|
- :dataSource="data"
|
|
|
|
- :pagination="ipagination"
|
|
|
|
- ref="table">
|
|
|
|
|
|
+ <a-table :loading="loading" rowKey="id" :dataSource="data" :pagination="ipagination" ref="table">
|
|
<a-table-column title="#" width="50">
|
|
<a-table-column title="#" width="50">
|
|
- <template slot-scope="t,r,i" >
|
|
|
|
- <span> {{ i+1 }} </span>
|
|
|
|
|
|
+ <template slot-scope="t, r, i">
|
|
|
|
+ <span> {{ i + 1 }} </span>
|
|
</template>
|
|
</template>
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
|
+
|
|
|
|
+ <!-- 任务名称 -->
|
|
<a-table-column title="任务名称" dataIndex="name" width="150" align="center">
|
|
<a-table-column title="任务名称" dataIndex="name" width="150" align="center">
|
|
<template slot-scope="t">
|
|
<template slot-scope="t">
|
|
<span> {{ t }} </span>
|
|
<span> {{ t }} </span>
|
|
</template>
|
|
</template>
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
|
+
|
|
|
|
+ <!-- 处理人 -->
|
|
<a-table-column title="处理人" dataIndex="assignees" width="150" align="center">
|
|
<a-table-column title="处理人" dataIndex="assignees" width="150" align="center">
|
|
<template slot-scope="t">
|
|
<template slot-scope="t">
|
|
<div v-if="t">
|
|
<div v-if="t">
|
|
<span v-for="item in t">
|
|
<span v-for="item in t">
|
|
- <span v-if="item.isExecutor" style="color: #00DB00;">{{ item.username }} </span>
|
|
|
|
- <span v-else style="color: #999;">{{ item.username }} </span>
|
|
|
|
|
|
+ <span v-if="item.isExecutor" style="color: #00DB00;">
|
|
|
|
+ {{ item.username }}
|
|
|
|
+ </span>
|
|
|
|
+
|
|
|
|
+ <span v-else style="color: #999;">
|
|
|
|
+ {{ item.username }}
|
|
|
|
+ </span>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
|
+
|
|
<a-table-column title="审批操作" dataIndex="deleteReason" width="150" align="center">
|
|
<a-table-column title="审批操作" dataIndex="deleteReason" width="150" align="center">
|
|
<template slot-scope="t">
|
|
<template slot-scope="t">
|
|
- <span v-if="t.toString().indexOf('通过')>-1" style="color: #00DB00">{{ t }}</span>
|
|
|
|
- <span v-else-if="t.toString().indexOf('驳回')>-1" style="color: red;">{{ t }}</span>
|
|
|
|
|
|
+ <span v-if="t.toString().indexOf('通过') > -1" style="color: #00DB00">{{ t }}</span>
|
|
|
|
+ <span v-else-if="t.toString().indexOf('驳回') > -1" style="color: red;">{{ t }}</span>
|
|
<span v-else>{{ t }}</span>
|
|
<span v-else>{{ t }}</span>
|
|
</template>
|
|
</template>
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
|
+
|
|
<a-table-column title="审批意见" dataIndex="comment" width="150" align="center">
|
|
<a-table-column title="审批意见" dataIndex="comment" width="150" align="center">
|
|
<template slot-scope="t">
|
|
<template slot-scope="t">
|
|
<span>{{ t }}</span>
|
|
<span>{{ t }}</span>
|
|
</template>
|
|
</template>
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
|
+
|
|
<a-table-column title="耗时" dataIndex="duration" width="150" align="center">
|
|
<a-table-column title="耗时" dataIndex="duration" width="150" align="center">
|
|
<template slot-scope="t">
|
|
<template slot-scope="t">
|
|
<span>{{ millsToTime(t) }}</span>
|
|
<span>{{ millsToTime(t) }}</span>
|
|
</template>
|
|
</template>
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
|
+
|
|
<a-table-column title="创建时间" dataIndex="createTime" width="150" align="center">
|
|
<a-table-column title="创建时间" dataIndex="createTime" width="150" align="center">
|
|
<template slot-scope="t">
|
|
<template slot-scope="t">
|
|
<span>{{ t }}</span>
|
|
<span>{{ t }}</span>
|
|
</template>
|
|
</template>
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
|
+
|
|
<a-table-column title="完成时间" dataIndex="endTime" width="150" align="center">
|
|
<a-table-column title="完成时间" dataIndex="endTime" width="150" align="center">
|
|
<template slot-scope="t">
|
|
<template slot-scope="t">
|
|
<span>{{ t }}</span>
|
|
<span>{{ t }}</span>
|
|
</template>
|
|
</template>
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
|
+
|
|
<a-table-column title="状态" dataIndex="endTime" key="aaa" width="150" align="center">
|
|
<a-table-column title="状态" dataIndex="endTime" key="aaa" width="150" align="center">
|
|
<template slot-scope="t">
|
|
<template slot-scope="t">
|
|
<span v-if="t" style="color: blue;">已办理</span>
|
|
<span v-if="t" style="color: blue;">已办理</span>
|
|
@@ -71,11 +80,13 @@
|
|
</a-row>
|
|
</a-row>
|
|
</a-card>
|
|
</a-card>
|
|
|
|
|
|
|
|
+ <!-- 实时流程图 -->
|
|
<a-card>
|
|
<a-card>
|
|
<p slot="title">
|
|
<p slot="title">
|
|
<span>实时流程图</span>
|
|
<span>实时流程图</span>
|
|
</p>
|
|
</p>
|
|
<a-row style="position:relative">
|
|
<a-row style="position:relative">
|
|
|
|
+ <!-- 图 -->
|
|
<img :src="imgUrl" />
|
|
<img :src="imgUrl" />
|
|
<a-spin size="large" fix v-if="loadingImg"></a-spin>
|
|
<a-spin size="large" fix v-if="loadingImg"></a-spin>
|
|
</a-row>
|
|
</a-row>
|
|
@@ -115,12 +126,9 @@ export default {
|
|
created () {
|
|
created () {
|
|
this.init()
|
|
this.init()
|
|
},
|
|
},
|
|
- watch: {
|
|
|
|
- },
|
|
|
|
|
|
+ watch: {},
|
|
methods: {
|
|
methods: {
|
|
- loadData () {
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
+ loadData () {},
|
|
init () {
|
|
init () {
|
|
this.id = this.procInstId
|
|
this.id = this.procInstId
|
|
this.imgUrl = this.url.getHighlightImg + this.id + '?time=' + new Date()
|
|
this.imgUrl = this.url.getHighlightImg + this.id + '?time=' + new Date()
|
|
@@ -140,8 +148,9 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ // 分页、排序、筛选变化时触发
|
|
handleTableChange (pagination, filters, sorter) {
|
|
handleTableChange (pagination, filters, sorter) {
|
|
- // 分页、排序、筛选变化时触发
|
|
|
|
// TODO 筛选
|
|
// TODO 筛选
|
|
if (Object.keys(sorter).length > 0) {
|
|
if (Object.keys(sorter).length > 0) {
|
|
this.isorter.column = sorter.field
|
|
this.isorter.column = sorter.field
|
|
@@ -150,8 +159,6 @@ export default {
|
|
this.ipagination = pagination
|
|
this.ipagination = pagination
|
|
// this.loadData();
|
|
// this.loadData();
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|