Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
sgaqgl-vue
Commits
63db5582
Commit
63db5582
authored
Feb 20, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logQuery mkid:901000920 has doQuery
parent
e48dead4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
145 additions
and
0 deletions
+145
-0
logQuery.js
src/api/basicData/logQuery.js
+16
-0
index.js
src/router/index.js
+13
-0
index.vue
src/views/basicData/logQuery/index.vue
+116
-0
No files found.
src/api/basicData/logQuery.js
0 → 100644
View file @
63db5582
import
request
from
'common/src/utils/request'
/* query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/syslog/login/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/router/index.js
View file @
63db5582
...
...
@@ -62,6 +62,19 @@ export const powerRoutes=[
name
:
'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'
,
hidden
:
false
,
...
...
src/views/basicData/logQuery/index.vue
0 → 100644
View file @
63db5582
<
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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment