From 8210b975fba291194d7a98f02ecc380be6c481ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”>
Date: Wed, 21 Apr 2021 18:09:08 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BB=B7=E6=A0=BC=20?=
=?UTF-8?q?=E6=8A=98=E6=89=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/user/index.vue | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)
diff --git a/src/components/user/index.vue b/src/components/user/index.vue
index f0fc7b6..1eea3b6 100644
--- a/src/components/user/index.vue
+++ b/src/components/user/index.vue
@@ -4,6 +4,14 @@
添加会员
资金转移
+
+
+
+
@@ -256,6 +264,7 @@ export default {
retData: { TotalCount: 0, Data: [] },
searchModel: {
PageIndex: 1,
+ schemeId:null,
keyWord: ""
},
rules: {
@@ -310,6 +319,12 @@ export default {
this.$api.get(this.$api.phpURL + "user/user/getList", this.searchModel).then(res => {
this.retData = res;
});
+ //获取折扣
+ this.$api
+ .get("course/v1/scheme/page")
+ .then(res => {
+ this.productDiscounts= res.Data;
+ });
},
del(item) {
var that = this;
@@ -421,20 +436,24 @@ export default {
showUserPrice(r){
this.showPriceDialog = true
this.currentDiscount.userId = r.Id
- //获取折扣
- this.$api
- .get("course/v1/scheme/page")
- .then(res => {
- this.productDiscounts= res.Data;
- });
+
},
updateDiscount(){
+ let user_info = this.$local.getUserByCache().Manager.RealName
+ this.$api.post(this.$api.phpURL + 'logs/index/clickInfo', {
+ user: user_info,
+ operation: '更改折扣',
+ record: '更改为'+this.currentDiscount.schemeId,
+ userid: this.currentDiscount.userId
+ }).then(res => {})
this.showPriceDialog = false
this.$api.post(this.$api.phpURL + "user/user/setUserDiscount", this.currentDiscount).then(res => {
this.currentDiscount.schemeId = ''
this.currentDiscount.userId = ''
this.get();
});
+
+
},
dataExport () {
this.$api.getDownloadFile('/baseinfo/v1/user/Export')