This commit is contained in:
“wanyongkang”
2021-05-28 18:19:24 +08:00
parent 84a94be7d2
commit ca0feaa542
2 changed files with 46 additions and 29 deletions

View File

@@ -48,7 +48,7 @@ export default {
} }
}, },
created() { created() {
this.getUser(); // this.getUser();
}, },
methods: { methods: {
getUser() { getUser() {

View File

@@ -2,31 +2,30 @@
<div v-loading="loading"> <div v-loading="loading">
<div class="heior_box"> <div class="heior_box">
<el-button size="small" type="primary" icon="el-icon-edit" @click="batchSelectUser">批量修改归属</el-button> <el-button size="small" type="primary" icon="el-icon-edit" @click="batchSelectUser">批量修改归属</el-button>
<!-- <el-button size="small" type="primary" icon="el-icon-edit">检测</el-button> -->
<!-- <el-button size="small" type="primary" icon="el-icon-edit">老账号认证</el-button> -->
<div class="search-box"> <div class="search-box">
<!-- <el-select v-model="searchModel.ProductId" placeholder="选择产品" clearable size="small">
<el-option v-for="item in products" :key="item.Name" :label="item.Name" :value="item.Id"></el-option>
</el-select>
<el-select <el-select
v-model="searchModel.accountTypes" v-model="searchModel.ProductIds"
multiple multiple
collapse-tags collapse-tags
clearable style="width:200px;"
size="small" size=small
placeholder="选择类型" placeholder="选择产品">
> <el-option
<el-option v-for="item in types" :key="item.text" :label="item.text" :value="item.value"></el-option> v-for="item in products"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select> </el-select>
<el-select v-model="searchModel.ExpirdDay" placeholder="选择过期时间" clearable size="small"> <el-select v-model="searchModel.ExpirdDay" placeholder="选择过期时间" style="width:100px" clearable size="small">
<el-option <el-option
v-for="item in expirdtypes" v-for="item in expirdtypes"
:key="item.text" :key="item.text"
:label="item.text" :label="item.text"
:value="item.value" :value="item.value"
></el-option> ></el-option>
</el-select> --> </el-select>
<el-input v-model="searchModel.keyWord" placeholder="会员/账号" clearable size="small"> <el-input v-model="searchModel.keyWord" placeholder="会员/账号" clearable size="small">
<el-button slot="append" icon="el-icon-search" @click="search"></el-button> <el-button slot="append" icon="el-icon-search" @click="search"></el-button>
</el-input> </el-input>
@@ -122,12 +121,18 @@ export default {
retData: { TotalCount: 0, Data: [] }, retData: { TotalCount: 0, Data: [] },
products: [], products: [],
searchModel: { searchModel: {
ExpirdDay: -1, ExpirdDay: -100,
UserId: 0, UserId: 0,
PageIndex: 1, PageIndex: 1,
keyWord: "", keyWord: '',
ProductId: null, ProductIds: [],
accountTypes: null PackageNames: [],
accountTypes: null,
pModel: [],
Btime: '',
Etime: '',
Bktime: '',
Ektime: ''
}, },
onlineClient:[], onlineClient:[],
currentAccount: {}, currentAccount: {},
@@ -141,11 +146,15 @@ export default {
{ text: "测试", value: 200 } { text: "测试", value: 200 }
], ],
expirdtypes: [ expirdtypes: [
{ text: "全部", value: -1 }, { text: '全部', value: -100 },
{ text: "已过期", value: 0 }, { text: '已过期', value: 0 },
{ text: "1天过期", value: 1 }, { text: '未过期', value: -2 },
{ text: "3天过期", value: 3 }, { text: '1天过期', value: 1 },
{ text: "1周过期", value: 7 } { text: '3天过期', value: 3 },
{ text: '1周过期', value: 7 },
{ text: '已经到期1天内', value: -1 },
{ text: '已经到期3天内', value: -3 },
{ text: '已经到期3天以上', value: -4 }
], ],
typeFormat(row, column, cellValue, index) { typeFormat(row, column, cellValue, index) {
switch (cellValue) { switch (cellValue) {
@@ -168,6 +177,7 @@ export default {
}, },
created() { created() {
this.$store.commit("setCurrentNav", "会员管理>>账号查询"); this.$store.commit("setCurrentNav", "会员管理>>账号查询");
this.getProduct()
}, },
methods: { methods: {
search(){ search(){
@@ -181,12 +191,19 @@ export default {
this.retData = res; this.retData = res;
}); });
}, },
getProduct() { getProduct () {
this.loading = true; this.loading = true
this.$api.get("course/v1/product/page", this.searchModel).then(res => { this.$api.get('course/v1/product/page', this.searchModel).then(res => {
this.products = res.Data; res.Data.forEach(m => {
this.loading = false; var product = {
}); label: m.Name,
value: m.Id
}
this.products.push(product)
})
this.loading = false
})
this.loading = false
}, },
del(item) { del(item) {
var that = this; var that = this;