Skip to content

Commit

Permalink
#410 作业描述去除默认-,过滤作业描述和作业名增加change事件
Browse files Browse the repository at this point in the history
  • Loading branch information
allen8203 committed May 7, 2018
1 parent 76013d4 commit e8afeba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions saturn-console-web/src/pages/job_list/job_overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</el-form-item>
<el-form-item label="">
<el-input :placeholder="filterColumnPlaceholder" v-model="filters[selectColumn]" @keyup.enter.native="scope.search">
<el-select style="width: 120px;" slot="prepend" v-model="selectColumn">
<el-select style="width: 120px;" slot="prepend" v-model="selectColumn" @change="selectColumnChange">
<el-option label="作业名" value="jobName"></el-option>
<el-option label="作业描述" value="description"></el-option>
</el-select>
Expand Down Expand Up @@ -97,7 +97,7 @@
</el-table-column>
<el-table-column prop="description" show-overflow-tooltip label="描述" width="170px">
<template slot-scope="scope">
{{scope.row.description || '-'}}
{{scope.row.description}}
</template>
</el-table-column>
<el-table-column label="操作" width="120px" align="center">
Expand Down Expand Up @@ -188,6 +188,10 @@ export default {
};
},
methods: {
selectColumnChange() {
this.filters.jobName = '';
this.filters.description = '';
},
toAbnormalJobPage() {
this.$router.push({ name: 'namespace_abnormal_jobs', params: { domain: this.domainName } });
},
Expand Down

0 comments on commit e8afeba

Please sign in to comment.