2
2
<div class =" main" >
3
3
<h1 class =" page-header" ><span id =" page_title" >流程实例列表</span > <div class =" pull-right" ></div ></h1 >
4
4
<div class =" table-responsive" >
5
- <form class =" navbar-form navbar-left" role =" form" method =" post" >
5
+ <form class =" navbar-form navbar-left" id = ' form ' role =" form" method =" post" >
6
6
<div class =" form-group" >
7
- <input type =" text" class =" input-date form-control" id = " begin_date" value =" 2019-03-29" name = " begin_date " >
7
+ <input type =" text" class =" input-date form-control" v-model = " formdata. begin_date" value =" 2019-03-29" >
8
8
<span >至</span >
9
- <input type =" text" class =" input-date form-control" id = " end_date" value =" 2019-03-31" name = " end_date " >
9
+ <input type =" text" class =" input-date form-control" v-model = " formdata. end_date" value =" 2019-03-31" >
10
10
<input type =" hidden" class =" form-control" name =" env" value =" data_flow" >
11
- <select name =" set_nu" id = " set_nu" class =" form-control" >
11
+ <select name =" set_nu" v-model = " formdata. set_nu" class =" form-control" >
12
12
<Option v-for =" item in set_nu" :value =" item.value" :key =" item.value" name =" set_type" >
13
13
{{ item.label }}
14
14
</Option >
15
15
</select >
16
- <select name =" process_type" id = " process_type" class =" form-control" >
16
+ <select name =" process_type" v-model = " formdata. process_type" class =" form-control" >
17
17
<option value =" all" >所有流程</option >
18
18
<option value =" NEW_FLOW" >新流程</option >
19
19
<option value =" NEW_FLOW2" >新流程</option >
20
20
</select >
21
- <Select name =" process_state_type" id = " process_state_type" class =" form-control" >
21
+ <Select name =" process_state_type" v-model = " formdata. process_state_type" class =" form-control" >
22
22
<Option v-for =" item in process_state_type" :value =" item.value" :key =" item.value" name =" state_type" >
23
23
{{ item.label }}
24
24
</Option >
25
25
</Select >
26
- <select class =" chosen-select" style =" width : 200px ; display : none ;" tabindex =" -1" id = " pid" >
26
+ <select class =" chosen-select" style =" width : 200px ; display : none ;" tabindex =" -1" v-model = " formdata. pid" >
27
27
<option value =" " ></option >
28
28
<option selected =" selected" value =" all" >所有业务</option ><option value =" 222" >222(223)</option >
29
29
</select >
30
30
31
- <select class =" form-control" mame =" pids" id = " pids" >
31
+ <select class =" form-control" mame =" pids" v-model = " formdata. pids" >
32
32
<option value =" all" >所有</option >
33
33
<Option v-for =" item in pids" :value =" item.value" :key =" item.value" name =" state_type" >
34
34
{{ item.label }}
35
35
</Option >
36
36
</select >
37
- <button type =" button" class =" btn btn-success" onclick =" show_flow_list()" >查询</button >
37
+ <button type =" button" class =" btn btn-success" v-on:click =" show_flow_list()" >查询</button >
38
38
</div >
39
39
</form >
40
40
<div id =" processes_detail" ></div >
@@ -61,35 +61,28 @@ export default {
61
61
data () {
62
62
return {
63
63
process_state_type: [
64
- {
65
- value: ' -1' , label: ' 未成功'
66
- },
67
- {
68
- value: ' all' , label: ' 所有状态'
69
- },
70
- {
71
- value: ' 2' , label: ' 成功'
72
- },
73
- {
74
- value: ' 3' , label: ' 失败'
75
- },
64
+ {value: ' -1' , label: ' 未成功' },
65
+ {value: ' all' , label: ' 所有状态' },
66
+ {value: ' 2' , label: ' 成功' },
67
+ {value: ' 3' , label: ' 失败' },
76
68
],
77
69
set_nu: [
78
- {
79
- value: ' all' , label: ' 所有集群'
80
- },
81
- {
82
- value: ' 0' , label: ' set0'
83
- },
84
- {
85
- value: ' 1' , label: ' set1'
86
- },
70
+ {value: ' all' , label: ' 所有集群' },
71
+ {value: ' 0' , label: ' set0' },
72
+ {value: ' 1' , label: ' set1' },
87
73
],
88
74
pids: [
89
- {
90
- value: ' 222' , label: ' 222'
91
- },
92
-
75
+ {value: ' 222' , label: ' 222' },
76
+ ],
77
+ formdata: {
78
+ begin_date: " " ,
79
+ end_date: " " ,
80
+ process_type: {value: " all" , label: " 所有流程" },
81
+ process_state_type: {},
82
+ pids: " "
83
+ },
84
+ headers: [
85
+ {" Content-Type" : " application/json" }
93
86
],
94
87
info: null
95
88
}
@@ -101,7 +94,7 @@ export default {
101
94
show_flow_list : function () {
102
95
let params = { project_id: 1 };
103
96
let headers = {" Content-Type" : " application/json" };
104
- axios .get (` ${ test} /oneflow/getInst ` , { params: params , headers: headers}).then (
97
+ axios .get (` ${ test} /oneflow/GetFlowInsts ` , { params: this . formdata , headers: headers}).then (
105
98
res => (this .info = res .data ));
106
99
}
107
100
}
0 commit comments