批量修改归属
-
-
-
+
@@ -122,12 +121,18 @@ export default {
retData: { TotalCount: 0, Data: [] },
products: [],
searchModel: {
- ExpirdDay: -1,
+ ExpirdDay: -100,
UserId: 0,
PageIndex: 1,
- keyWord: "",
- ProductId: null,
- accountTypes: null
+ keyWord: '',
+ ProductIds: [],
+ PackageNames: [],
+ accountTypes: null,
+ pModel: [],
+ Btime: '',
+ Etime: '',
+ Bktime: '',
+ Ektime: ''
},
onlineClient:[],
currentAccount: {},
@@ -141,11 +146,15 @@ export default {
{ text: "测试", value: 200 }
],
expirdtypes: [
- { text: "全部", value: -1 },
- { text: "已过期", value: 0 },
- { text: "1天过期", value: 1 },
- { text: "3天过期", value: 3 },
- { text: "1周过期", value: 7 }
+ { text: '全部', value: -100 },
+ { text: '已过期', value: 0 },
+ { text: '未过期', value: -2 },
+ { text: '1天过期', value: 1 },
+ { 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) {
switch (cellValue) {
@@ -168,6 +177,7 @@ export default {
},
created() {
this.$store.commit("setCurrentNav", "会员管理>>账号查询");
+ this.getProduct()
},
methods: {
search(){
@@ -181,12 +191,19 @@ export default {
this.retData = res;
});
},
- getProduct() {
- this.loading = true;
- this.$api.get("course/v1/product/page", this.searchModel).then(res => {
- this.products = res.Data;
- this.loading = false;
- });
+ getProduct () {
+ this.loading = true
+ this.$api.get('course/v1/product/page', this.searchModel).then(res => {
+ res.Data.forEach(m => {
+ var product = {
+ label: m.Name,
+ value: m.Id
+ }
+ this.products.push(product)
+ })
+ this.loading = false
+ })
+ this.loading = false
},
del(item) {
var that = this;