添加日志记录

This commit is contained in:
wanyongkang
2020-10-09 10:28:30 +08:00
parent b7fc0f2961
commit 86eb9a41fe
8 changed files with 201 additions and 132 deletions

View File

@@ -43,7 +43,7 @@
</router-link>
<span class="handel cursor edit" @click="edit(scope.row)">编辑</span>
<span class="handel cursor edit" @click="showAmountDetail(scope.row)">明细</span>
<el-popover placement="bottom" trigger="hover" width="180">
<el-popover @show="showHandle(scope.row)" placement="bottom" trigger="hover" width="180">
<div class="popover_box">
<span>QQ号{{scope.row.QQ||'--'}}</span>
<span>微信{{scope.row.Wx||'--'}}</span>
@@ -207,11 +207,19 @@ export default {
}
};
},
created() {
this.$store.commit("setCurrentNav", "用户管理>>会员管理");
var currentUser=this.$local.getUserByCache();
this.IsRoot=currentUser.Manager.IsRootUser;
this.get();
created () {
this.$store.commit('setCurrentNav', '用户管理>>会员管理')
var currentUser = this.$local.getUserByCache()
this.IsRoot = currentUser.Manager.IsRootUser
this.get()
// eslint-disable-next-line camelcase
let user_info = this.$local.getUserByCache().Manager.RealName
this.$api.post('http://autophp.wyk/logs/index/clickVipInfo', {
user: user_info,
operation: '点击客户管理',
record: '查询客户信息列表'
}).then(res => {})
},
methods: {
search(){
@@ -301,14 +309,32 @@ export default {
this.$api
.get("baseinfo/v1/user/AmountDetail?userId=" + item.Id)
.then(res => {
this.detailAmountData = res.Data;
this.detailAmountData = res.Data
});
},
dataExport(){
this.$api.getDownloadFile("/baseinfo/v1/user/Export");
showHandle (r) {
// eslint-disable-next-line camelcase
let user_info = this.$local.getUserByCache().Manager.RealName
this.$api.post('http://autophp.wyk/logs/index/hoveInfo', {
user: user_info,
operation: '点击客户信息会员价',
record: '查看会员的产品价格',
info: r.LoginCode
}).then(res => {})
},
dataExport () {
this.$api.getDownloadFile('/baseinfo/v1/user/Export')
// eslint-disable-next-line camelcase
let user_info = this.$local.getUserByCache().Manager.RealName
this.$api.post('http://autophp.wyk/logs/index/export', {
user: user_info,
operation: '点击导出所有客户信息',
record: '导出所有客户信息列表',
info: '本次点击时间之前所有客户数据'
}).then(res => {})
}
}
};
}
</script>
<style scoped>
</style>