shish 2 ani în urmă
părinte
comite
112f7e7790
2 a modificat fișierele cu 37 adăugiri și 6 ștergeri
  1. 26 4
      pt/src/saas/shop/buy.vue
  2. 11 2
      pt/src/saas/shop/deposit.vue

+ 26 - 4
pt/src/saas/shop/buy.vue

@@ -33,6 +33,18 @@
 				<span v-else style="color:#3385FF;">已续期</span>
 			</template>
 
+			<template #slot-total-amount>
+				<span style="font-size:15px;font-weight:bold;">累计续费:{{ totalAmount }}</span>
+			</template>
+
+			<template #slot-cp-classStyle="{scope}">
+				<el-radio-group v-model="status" @change="renewShop" style="margin-right:20px;padding-top:6px;margin-left:20px;">
+				<el-radio label="-1">全部</el-radio>
+				<el-radio label="0">待续期</el-radio>
+				<el-radio label="1">已续期</el-radio>
+				</el-radio-group>
+			</template>
+
 		</x-crud>
 	</div>
 </template>
@@ -41,11 +53,17 @@
 export default {
 	data() {
 		return {
-			app: null
+			app: null,
+			status:'-1',
+			totalAmount:0
 		};
 	},
 	mounted() {},
 	methods: {
+		renewShop(e){
+			this.status = e
+			this.app.refresh({ status:this.status })
+		},
 		onLoad({ ctx, app }) {
 			this.app = app;
 			ctx.service(this.$service.renew)
@@ -151,12 +169,16 @@ export default {
 				})
 				.set('layout', [
 					['slot-tabs'],
-					['flex1', 'refresh-btn'],
+					['slot-cp-classStyle','flex1', 'refresh-btn'],
 					['data-table'],
-					['flex1', 'pagination']
+					['slot-total-amount','flex1', 'pagination']
 				])
+				.on('refresh', async (params, { next }) => {
+					let res = await next(params)
+					this.totalAmount = res.totalAmount?res.totalAmount:0
+				})
 				.done();
-			app.refresh();
+				app.refresh({ status:this.status })
 		}
 	}
 };

+ 11 - 2
pt/src/saas/shop/deposit.vue

@@ -33,6 +33,10 @@
 				</template>
 			</template>
 
+			<template #slot-total-amount>
+				<span style="font-size:15px;font-weight:bold;">累计提现:{{ totalAmount }}</span>
+			</template>
+
 		</x-crud>
 		<!-- 审核弹窗 -->
 		<el-dialog
@@ -92,7 +96,8 @@ export default {
 					key: '1'
 				}
 			],
-			tabIndex: '0'
+			tabIndex: '0',
+			totalAmount:0
 		};
 	},
 	mounted() {},
@@ -230,8 +235,12 @@ export default {
 					['slot-tabs'],
 					['flex1', 'refresh-btn'],
 					['data-table'],
-					['flex1', 'pagination']
+					['slot-total-amount','flex1', 'pagination']
 				])
+				.on('refresh', async (params, { next }) => {
+					let res = await next(params)
+					this.totalAmount = res.totalAmount?res.totalAmount:0
+				})
 				.done();
 			app.refresh();
 		}