| | |
| | | ></el-date-picker>
|
| | | </el-form-item>
|
| | | <el-form-item>
|
| | | <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
| | | </el-form-item>
|
| | | </el-form>
|
| | |
| | | <el-col :span="1.5">
|
| | | <el-button
|
| | | type="danger"
|
| | | plain
|
| | | icon="el-icon-delete"
|
| | | size="mini"
|
| | | :disabled="multiple"
|
| | |
| | | <el-col :span="1.5">
|
| | | <el-button
|
| | | type="danger"
|
| | | plain
|
| | | icon="el-icon-delete"
|
| | | size="mini"
|
| | | @click="handleClean"
|
| | |
| | | <el-col :span="1.5">
|
| | | <el-button
|
| | | type="warning"
|
| | | plain
|
| | | icon="el-icon-download"
|
| | | size="mini"
|
| | | @click="handleExport"
|
| | |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
| | | </el-row>
|
| | |
|
| | | <el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange">
|
| | | <el-table ref="tables" v-loading="loading" :data="list" @selection-change="handleSelectionChange" :default-sort="defaultSort" @sort-change="handleSortChange">
|
| | | <el-table-column type="selection" width="55" align="center" />
|
| | | <el-table-column label="访问编号" align="center" prop="infoId" />
|
| | | <el-table-column label="用户名称" align="center" prop="userName" />
|
| | | <el-table-column label="用户名称" align="center" prop="userName" :show-overflow-tooltip="true" sortable="custom" :sort-orders="['descending', 'ascending']" />
|
| | | <el-table-column label="地址" align="center" prop="ipaddr" width="130" :show-overflow-tooltip="true" />
|
| | | <el-table-column label="状态" align="center" prop="status" :formatter="statusFormat" />
|
| | | <el-table-column label="描述" align="center" prop="msg" />
|
| | | <el-table-column label="访问时间" align="center" prop="accessTime" width="180">
|
| | | <el-table-column label="访问时间" align="center" prop="accessTime" sortable="custom" :sort-orders="['descending', 'ascending']" width="180">
|
| | | <template slot-scope="scope">
|
| | | <span>{{ parseTime(scope.row.accessTime) }}</span>
|
| | | </template>
|
| | |
| | | statusOptions: [],
|
| | | // 日期范围
|
| | | dateRange: [],
|
| | | // 默认排序
|
| | | defaultSort: {prop: 'loginTime', order: 'descending'},
|
| | | // 查询参数
|
| | | queryParams: {
|
| | | pageNum: 1,
|
| | |
| | | resetQuery() {
|
| | | this.dateRange = [];
|
| | | this.resetForm("queryForm");
|
| | | this.$refs.tables.sort(this.defaultSort.prop, this.defaultSort.order)
|
| | | this.handleQuery();
|
| | | },
|
| | | // 多选框选中数据
|
| | | /** 多选框选中数据 */
|
| | | handleSelectionChange(selection) {
|
| | | this.ids = selection.map(item => item.infoId)
|
| | | this.multiple = !selection.length
|
| | | },
|
| | | /** 排序触发事件 */
|
| | | handleSortChange(column, prop, order) {
|
| | | this.queryParams.orderByColumn = column.prop;
|
| | | this.queryParams.isAsc = column.order;
|
| | | this.getList();
|
| | | },
|
| | | /** 删除按钮操作 */
|
| | | handleDelete(row) {
|
| | |
| | | }).then(() => {
|
| | | this.getList();
|
| | | this.msgSuccess("删除成功");
|
| | | })
|
| | | }).catch(() => {});
|
| | | },
|
| | | /** 清空按钮操作 */
|
| | | handleClean() {
|
| | |
| | | }).then(() => {
|
| | | this.getList();
|
| | | this.msgSuccess("清空成功");
|
| | | })
|
| | | }).catch(() => {});
|
| | | },
|
| | | /** 导出按钮操作 */
|
| | | handleExport() {
|