| | |
| | | import func from "@/util/func"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | name: "index", |
| | | data: function () { |
| | | return { |
| | | tableLoading: false, |
| | | tableData: [], |
| | | option: { |
| | | ...basicOption, |
| | | addBtn:false, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | calcHeight: -60, |
| | | align:'left', |
| | | headerAlign:'center', |
| | | menu:false, |
| | | align: 'left', |
| | | headerAlign: 'center', |
| | | menu: false, |
| | | searchMenuSpan: 6, |
| | | searchIcon:false, |
| | | searchIcon: false, |
| | | column: [ |
| | | { |
| | | label: '用户名', |
| | | prop: 'truename', |
| | | search:true, |
| | | search: true, |
| | | searchSpan: 4, |
| | | searchLabel:'操作用户', |
| | | type:'select', |
| | | dicUrl:'/api/loginBasicController/getOperatingUsers', |
| | | sortable:true, |
| | | searchLabel: '操作用户', |
| | | type: 'select', |
| | | dicUrl: '/api/loginBasicController/getOperatingUsers', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: '姓名', |
| | | prop: 'username', |
| | | sortable:true, |
| | | sortable: true, |
| | | width: 150 |
| | | },{ |
| | | }, { |
| | | label: '用户IP', |
| | | prop: 'userIp', |
| | | search:true, |
| | | search: true, |
| | | searchSpan: 4, |
| | | sortable:true, |
| | | sortable: true, |
| | | width: 150 |
| | | },{ |
| | | }, { |
| | | label: '模块', |
| | | prop: 'moduleName', |
| | | sortable:true, |
| | | sortable: true, |
| | | overHidden: true, |
| | | },{ |
| | | }, { |
| | | label: '操作', |
| | | prop: 'type', |
| | | sortable:true, |
| | | sortable: true, |
| | | width: 150 |
| | | },{ |
| | | }, { |
| | | label: '时间', |
| | | prop: 'date', |
| | | type:'date', |
| | | search:true, |
| | | type: 'date', |
| | | search: true, |
| | | searchOrder: 1, |
| | | searchSpan: 8, |
| | | searchRange: true, |
| | | searchLabel:'查询日期', |
| | | valueFormat:'yyyy-MM-dd', |
| | | searchLabel: '查询日期', |
| | | valueFormat: 'yyyy-MM-dd', |
| | | width: 160 |
| | | },{ |
| | | }, { |
| | | label: '描述', |
| | | prop: 'result', |
| | | overHidden: true, |
| | | width:380, |
| | | width: 380, |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | // 表格请求 |
| | | getTableList() { |
| | | this.tableLoading = true; |
| | | getLogListByContion(this.page.currentPage, this.page.pageSize, {'logType':this.$route.query.logType,...this.searchParams}).then(res => { |
| | | getLogListByContion(this.page.currentPage, this.page.pageSize, {'logType': this.$route.query.logType, ...this.searchParams}).then(res => { |
| | | this.tableData = res.data.data; |
| | | this.page.total = res.data.total; |
| | | this.tableLoading = false; |
| | |
| | | // 搜索查询 |
| | | handleSearch(params, done) { |
| | | this.searchParams = { |
| | | userName:params.truename, |
| | | ipText:params.userIp, |
| | | startDate:params.date[0], |
| | | endDate:params.date[1] |
| | | userName: params.truename, |
| | | ipText: params.userIp, |
| | | startDate: params.date[0], |
| | | endDate: params.date[1] |
| | | }; |
| | | |
| | | this.getTableList(); |
| | |
| | | this.page.currentPage = val; |
| | | }, |
| | | |
| | | handleRefresh(){ |
| | | handleRefresh() { |
| | | this.getTableList(); |
| | | }, |
| | | // 导出 |