diff --git a/src/components/logs/logList.vue b/src/components/logs/logList.vue index 5fa746e..3960cb1 100644 --- a/src/components/logs/logList.vue +++ b/src/components/logs/logList.vue @@ -1,51 +1,68 @@ - \ No newline at end of file + + created () { + this.$store.commit('setCurrentNav', '日志记录') + this.getData() + }, + methods: { + getData () { + this.$api.get('http://autophp.wyk/api/index/index').then(res => { + this.tableData = res.data + this.count = parseInt(res.count) + }) + }, + prev_page () { + this.$api.get('http://autophp.wyk/api/index/pageList', {page: this.pageNum}).then(res => { + this.tableData = res.data + }) + }, + next_page () { + this.$api.get('http://autophp.wyk/api/index/pageList', {page: this.pageNum}).then(res => { + this.tableData = res.data + }) + }, + handleCurrentChange: function (currentPage) { + this.pageNum = currentPage + this.$api.get('http://autophp.wyk/api/index/pageList', {page: this.pageNum}).then(res => { + this.tableData = res.data + }) + }, + filterTag (value, row) { + return row.user === value + } + } +} + diff --git a/src/components/product/account.vue b/src/components/product/account.vue index 582f9a2..3ef133e 100644 --- a/src/components/product/account.vue +++ b/src/components/product/account.vue @@ -190,15 +190,26 @@ export default { } }; }, - created() { - this.$store.commit("setCurrentNav", "会员管理>>账号管理"); - var userId = this.$route.query.userId; - if (userId) this.searchModel.UserId = userId; - this.get(); - this.getProductWithPackage(); + created () { + this.$store.commit('setCurrentNav', '会员管理>>账号管理') + var userId = this.$route.query.userId + if (userId) this.searchModel.UserId = userId + this.get() + this.getProductWithPackage() + // eslint-disable-next-line camelcase + let user_info = this.$local.getUserByCache().Manager.RealName + // eslint-disable-next-line camelcase + if (userId) { + this.$api.post('http://autophp.wyk/logs/index/clickInfo', { + user: user_info, + operation: '点击客户信息产品账号', + record: '查看该客户的产品信息', + userid: userId + }).then(res => {}) + } }, methods: { - search(){ + search () { this.searchModel.PageIndex=1; this.get(); }, diff --git a/src/components/user/index.vue b/src/components/user/index.vue index 30be344..51c1fd0 100644 --- a/src/components/user/index.vue +++ b/src/components/user/index.vue @@ -43,7 +43,7 @@ 编辑 明细 - +
QQ号:{{scope.row.QQ||'--'}} 微信:{{scope.row.Wx||'--'}} @@ -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 => {}) } } -}; +} diff --git a/src/components/user/statistics.vue b/src/components/user/statistics.vue index d110d84..40dc35d 100644 --- a/src/components/user/statistics.vue +++ b/src/components/user/statistics.vue @@ -6,7 +6,7 @@ type="primary" icon="el-icon-sold-out" v-if="$local.isRoot()" - @click="dataExport" + @click="dataExport" >导出