File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 28
28
<el-option v-for =" item in groupList" :label =" item" :value =" item" :key =" item" ></el-option >
29
29
</el-select >
30
30
</el-form-item >
31
+ <el-form-item label =" " >
32
+ <el-select v-model =" filters.status" @change =" scope.search" >
33
+ <el-option label =" 全部状态" value =" " ></el-option >
34
+ <el-option v-for =" item in $option.jobStatusTypes" :label =" item.label" :value =" item.value" :key =" item.value" ></el-option >
35
+ </el-select >
36
+ </el-form-item >
31
37
<el-form-item label =" " >
32
38
<el-input placeholder =" 搜索" v-model =" filters.jobName" @keyup.enter.native =" scope.search" ></el-input >
33
39
</el-form-item >
55
61
</div >
56
62
<el-table stripe border ref =" multipleTable" @selection-change =" handleSelectionChange" @sort-change =" scope.onSortChange" :data =" scope.pageData" style =" width : 100% " >
57
63
<el-table-column type =" selection" width =" 55" ></el-table-column >
58
- <el-table-column prop =" jobName" label =" 作业名" min-width = " 110 " sortable >
64
+ <el-table-column prop =" jobName" label =" 作业名" sortable >
59
65
<template slot-scope="scope">
60
66
<router-link tag =" a" :to =" { name: 'job_setting', params: { domain: domainName, jobName: scope.row.jobName } }" >
61
67
<el-button type =" text" >
84
90
</el-tooltip >
85
91
</template >
86
92
</el-table-column >
87
- <el-table-column prop =" description" label =" 描述" >
93
+ <el-table-column prop =" description" show-overflow-tooltip label =" 描述" width = " 170px " >
88
94
<template slot-scope="scope">
89
95
{{scope.row.description || '-'}}
90
96
</template >
@@ -150,6 +156,7 @@ export default {
150
156
filters: {
151
157
jobName: ' ' ,
152
158
groups: ' ' ,
159
+ status: ' ' ,
153
160
},
154
161
orderBy: ' jobName' ,
155
162
groupList: [],
Original file line number Diff line number Diff line change @@ -6,4 +6,17 @@ export default {
6
6
value : 'SHELL_JOB' ,
7
7
label : 'Shell定时作业' ,
8
8
} ] ,
9
+ jobStatusTypes : [ {
10
+ value : 'READY' ,
11
+ label : '已就绪' ,
12
+ } , {
13
+ value : 'RUNNING' ,
14
+ label : '运行中' ,
15
+ } , {
16
+ value : 'STOPPING' ,
17
+ label : '停止中' ,
18
+ } , {
19
+ value : 'STOPPED' ,
20
+ label : '已停止' ,
21
+ } ] ,
9
22
} ;
You can’t perform that action at this time.
0 commit comments