|
@@ -0,0 +1,90 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <search-form
|
|
|
+ :list-loading="listLoading"
|
|
|
+ @change="searchHandle"
|
|
|
+ />
|
|
|
+ <table-list
|
|
|
+ :list-loading="listLoading"
|
|
|
+ :data="tableData2"
|
|
|
+ :columns="listConfig"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-size="pageSize"
|
|
|
+ :total-records="totalRecords"
|
|
|
+ @currentChange="pageHandle"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import { arrToObj } from '@/utils'
|
|
|
+import SearchForm from './components/searchForm/AppClickLog'
|
|
|
+import baseTable from '_m/baseTable.js'
|
|
|
+import xData from './mixin'
|
|
|
+export default {
|
|
|
+ name: 'index',
|
|
|
+ components: {
|
|
|
+ SearchForm,
|
|
|
+ },
|
|
|
+ provide() {
|
|
|
+ return {
|
|
|
+ parentData: this
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mixins: [baseTable],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ apiStr: 'user.admwechatuserclicklist',
|
|
|
+ searchForm: null,
|
|
|
+ isDtlShow: false,
|
|
|
+ curObj: {},
|
|
|
+ ...xData
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ tableData2() {
|
|
|
+ const arr = [...this.tableData]
|
|
|
+ arr.map(item => {
|
|
|
+ const fpUser = window.sessionStorage.getItem('fp_user') ? JSON.parse(window.sessionStorage.getItem('fp_user')) : {}
|
|
|
+ if (fpUser.username === 'admin') {
|
|
|
+ item.phones = item.phone
|
|
|
+ } else {
|
|
|
+ item.phones = item.phone.substring(0, 7) + '****'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return arr
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {},
|
|
|
+ mounted() {
|
|
|
+ this.listConfig = {
|
|
|
+ rows: [
|
|
|
+ { label: '小程序菜单路径', prop: 'path' },
|
|
|
+ { label: '参数', prop: 'params' },
|
|
|
+ { label: '点击时间', prop: 'c_time' },
|
|
|
+ { label: '统计时间', prop: 'create_at' },
|
|
|
+ { label: 'ip地址', prop: 'remote_ip' },
|
|
|
+ { label: '头像', prop: 'avatar', type: 'img' },
|
|
|
+ { label: '昵称', prop: 'nickname' },
|
|
|
+ { label: '手机号', prop: 'phones' },
|
|
|
+ // { label: '操作', width: 220, type: 'handle2', operations:
|
|
|
+ // [
|
|
|
+ // { label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
+ // ]
|
|
|
+ // }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ delHandle (row) {
|
|
|
+ this.$msg(`您确定要删除该用户吗?`, 'confirm', () => {
|
|
|
+ this.$api.user.admwechatuserpurge({
|
|
|
+ id: row.id,
|
|
|
+ }).then(data => {
|
|
|
+ this.$msgs(`已删除!`)
|
|
|
+ this.fetchData()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|