|
|
@@ -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 })
|
|
|
}
|
|
|
}
|
|
|
};
|