diff --git a/src/components/order/index.vue b/src/components/order/index.vue
index cf9f04d..bf813f6 100644
--- a/src/components/order/index.vue
+++ b/src/components/order/index.vue
@@ -10,14 +10,42 @@
v-if="$local.isRoot()"
>导出
-
+ > -->
+
+
+
+
+
+
+
+
@@ -27,6 +55,7 @@
collapse-tags
clearable
size="small"
+ style="margin-left: 10px;"
placeholder="选择类型"
>
@@ -38,11 +67,13 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
+ style="margin-left: 10px;"
>
@@ -120,10 +151,31 @@ export default {
retData: { TotalCount: 0, Data: [] },
dateRange: [],
products: [],
+ packages: [
+ {
+ label: '年卡',
+ value: '年卡'
+ }, {
+ label: '季卡',
+ value: '季卡'
+ }, {
+ label: '月卡',
+ value: '月卡'
+ }, {
+ label: '周卡',
+ value: '周卡'
+ }, {
+ label: '天卡',
+ value: '天卡'
+ }, {
+ label: '测试卡',
+ value: '测试卡'
+ }
+ ],
searchModel: {
PageIndex: 1,
- ProductId: null,
- PackageId: null,
+ ProductIds: [],
+ PackageNames: [],
keyWord: '',
Status: 0,
PayType: 0,
@@ -169,8 +221,8 @@ export default {
created () {
this.$store.commit('setCurrentNav', '订单管理>>订单明细')
this.get()
- // this.getProduct()
- this.getProductWithPackage()
+ this.getProduct()
+ // this.getProductWithPackage()
},
methods: {
search () {
@@ -182,10 +234,6 @@ export default {
this.searchModel.Btime = this.dateRange[0]
this.searchModel.Etime = this.dateRange[1]
}
- if (this.searchModel.pModel.length > 0) {
- this.searchModel.ProductId = this.searchModel.pModel[0]
- }
- if (this.searchModel.pModel.length > 0) { this.searchModel.PackageId = this.searchModel.pModel[1] }
this.$api.get('course/v1/order/page', this.searchModel).then(res => {
this.retData = res
})
@@ -193,28 +241,34 @@ export default {
getProduct () {
this.loading = true
this.$api.get('course/v1/product/page', this.searchModel).then(res => {
- this.products = res.Data
+ res.Data.forEach(m => {
+ var product = {
+ label: m.Name,
+ value: m.Id
+ }
+ this.products.push(product)
+ })
this.loading = false
})
+ this.loading = false
},
getProductWithPackage () {
this.loading = true
this.$api.get('course/v1/product/ProductWithPackage').then(res => {
- this.options = res.Data
var options = []
res.Data.forEach(m => {
var product = {
label: m.Product.Name,
- value: m.Product.Id,
- children: []
+ value: m.Product.Id
}
+ this.products.push(product)
m.Packages.forEach(p => {
var pkg = {
label: p.Name,
value: p.Id
}
- product.children.push(pkg)
+ this.pa.push(pkg)
})
options.push(product)
})
diff --git a/src/components/product/account.vue b/src/components/product/account.vue
index 3ef133e..4c132ba 100644
--- a/src/components/product/account.vue
+++ b/src/components/product/account.vue
@@ -8,20 +8,49 @@
-
+ > -->
+
+
+
+
+
+
+
+
+
-
+
-
+
@@ -85,8 +124,8 @@
归属
- 删除
- 查看在线
+ 删除
+ 查看在线
@@ -102,23 +141,23 @@
-
-
+
- 强制离线
+ 强制离线
@@ -127,75 +166,100 @@