|
@@ -24,6 +24,25 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item prop="organId">
|
|
|
+ <el-select
|
|
|
+ filterable
|
|
|
+ style="width:180px!important"
|
|
|
+ v-model="searchForm.enable"
|
|
|
+ clearable
|
|
|
+ @clear='resetEnable'
|
|
|
+ placeholder="活动状态"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ label="开启"
|
|
|
+ :value="true"
|
|
|
+ ></el-option>
|
|
|
+ <el-option
|
|
|
+ label="关闭"
|
|
|
+ :value="false"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button @click="search" type="danger">搜索</el-button>
|
|
|
</el-form-item>
|
|
@@ -64,7 +83,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<p>{{ scope.row.coursesStartTime | formatTimer }}</p>
|
|
|
- <p>{{ scope.row.coursesEndTime | formatTimer }}</p>
|
|
|
+ <p>{{ scope.row.coursesEndTime | formatTimer }}</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -310,7 +329,7 @@ export default {
|
|
|
total: 0, // 总条数
|
|
|
page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
- searchForm: { organId: null },
|
|
|
+ searchForm: { organId: null,enable:null },
|
|
|
organList: [],
|
|
|
dialogVisible: false,
|
|
|
resetForm: {
|
|
@@ -520,16 +539,22 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
getList() {
|
|
|
+ let enable = this.searchForm.enable
|
|
|
vipGroupActivity({
|
|
|
organId: this.searchForm.organId,
|
|
|
rows: this.rules.limit,
|
|
|
- page: this.rules.page
|
|
|
+ page: this.rules.page,
|
|
|
+ enable
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableList = res.data.rows;
|
|
|
this.rules.total = res.data.total;
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ },
|
|
|
+ resetEnable(val){
|
|
|
+ val = null
|
|
|
},
|
|
|
// 格式化活动类型
|
|
|
fommatterType(row, column) {
|