1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
| <template>
| <el-popover placement="right-start" title="状态轨迹" width="600" trigger="click" @show="loadData">
| <template slot="reference">
| <slot name="content"></slot>
| </template>
| <el-table :data="tableData" :max-height="200" size="mini" style="width: 100%">
| <el-table-column prop="fromStatus" label="变更前状态" width="100px">
| </el-table-column>
| <el-table-column prop="toStatus" label="变更后状态" width="130px">
| </el-table-column>
| <el-table-column prop="creator" label="操作人" width="100px">
| </el-table-column>
| <el-table-column prop="createDate" label="创建时间">
| <template slot-scope="{ row, col }">
| {{ common.formatDate(row["createDate"], "YYYY-MM-DD HH:mm:ss") }}
| </template>
| </el-table-column>
| </el-table>
| </el-popover>
| </template>
|
| <script>
| export default {
| name: 'receive-statusflow',
| components: {},
| props: {
| // 加载参数
| loadOptions: {
| type: Object,
| required: true,
| default: () => {
| return {
| projectName: '',
| tableView: '',
| idField: '',
| sortName: {},
| where: {},
| pageIndex: 1,
| pageSize: 100
| }
| }
| },
| // 查询条件
| where: {
| type: Object,
| required: true
| }
| },
| data() {
| return {
| tableData: []
| }
| },
| created() {},
| methods: {
| loadData() {
| var the = this
| debugger
| var url = '/api/common/loadDataList'
| the.initLoading = true
| var params = this.loadOptions
| params.where = the.where
| the.common.ajax(
| url,
| params,
| res => {
| the.common.showMsg(res)
| if (res.result) {
| the.tableData = res.data.rows
| }
| the.initLoading = false
| },
| true
| )
| }
| }
| }
| </script>
|
|