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')