Commit 63db5582 authored by 李苏's avatar 李苏 💬

logQuery mkid:901000920 has doQuery

parent e48dead4
import request from 'common/src/utils/request'
/* query */
export function doQuery(query) {
return request({
url: '/aqgl/syslog/login/query',
method: 'post',
data: query||{}
})
}
...@@ -62,6 +62,19 @@ export const powerRoutes=[ ...@@ -62,6 +62,19 @@ export const powerRoutes=[
name:'scgw', name:'scgw',
path:"scgw" path:"scgw"
}, },
{
component:'basicData/logQuery/index',
hidden:false,
meta:{
"title": "登录日志查询",
"icon": "",
"noCache": false,
"link": null,
"mkid":'901000920',
},
name:'logQuery',
path:"logQuery"
},
{ {
component:'basicData/announcementManagement/index', component:'basicData/announcementManagement/index',
hidden:false, hidden:false,
......
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.start"></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.end"></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">用户:</span>
<el-input v-model='queryParams.userinfo' ></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<!-- <el-row class="tool-bar">
</el-row> -->
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' :delButton='false'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
} from '@/api/basicData/logQuery.js';
/* edit页面*/
// import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'logQuery',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/syslog/login/query',
/* 查询参数*/
queryParams: {
start:new Date().getTime() - 1000*60*60*24*7,
end:new Date().getTime(),
gsid: '',
userinfo:''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "账号", prop: "userid", fieldType:"ftString", width: 160},
{label: "姓名", prop: "username", fieldType:"ftString", width: 120},
{label: "公司", prop: "gsName", fieldType:"ftString", width: 180},
{label: "部门", prop: "bmName", fieldType:"ftString", width: 180},
{label: "登录时间", prop: "cjsj", fieldType:"ftDateTime"},
{label: "IP", prop: "ip"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
init() {
}
},
components: {
// Edit,
}
}
</script>
<style scoped>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment