Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
8732d090
Commit
8732d090
authored
Aug 26, 2023
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人操作日志
parent
dab1bf81
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
252 additions
and
9 deletions
+252
-9
src/views/rzcx/grczfx.vue
+168
-0
src/views/rzcx/grczxq.vue
+50
-4
src/views/rzcx/ywsjTjbbGrcz.vue
+34
-5
No files found.
src/views/rzcx/grczfx.vue
View file @
8732d090
<
template
>
<div
class=
"paneDiv"
v-loading=
'loading'
>
<el-row>
<el-col
:span=
"24"
>
<span
class=
"flTtitle"
>
查询结果
</span>
<el-button
plain
class=
"zdybtn export"
style=
"float: right; margin-top: 1%; margin-right: 2% !important"
size=
"small"
@
click=
"exportFile"
>
<i
class=
"fa fa-external-link"
aria-hidden=
"true"
style=
"margin-right: 5px"
></i>
导出
</el-button>
<span
class=
"total"
>
共有
{{
dataCount
}}
条查询结果
</span>
</el-col>
</el-row>
<el-row
style=
"padding-top: 10px"
>
<el-col
:span=
"6"
>
<table
style=
"width: 100%"
border=
"1"
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<th>
序号
</th>
<th>
日时段
</th>
<th>
次数
</th>
</tr>
<tr
v-for=
"(item,index) in dates"
:key=
"index"
>
<td>
{{
index
}}
</td>
<td>
{{
item
}}
</td>
<td>
{{
vals
[
index
]
}}
</td>
</tr>
</table>
</el-col>
<el-col
:span=
"18"
>
<div
id=
"e-charts"
style=
"height: 480px"
></div>
</el-col>
</el-row>
</div>
</
template
>
<
script
>
import
request
from
"@/utils/axiosHttp"
;
import
url
from
"@/api/base"
;
import
qs
from
"qs"
;
export
default
{
name
:
"PerspectiveAndAnalysis"
,
data
()
{
return
{
formData
:
{},
dates
:[],
vals
:[],
loading
:
false
};
},
methods
:
{
initECharts
()
{
let
myChart
=
this
.
$echarts
.
init
(
document
.
getElementById
(
"e-charts"
));
myChart
.
setOption
({
xAxis
:
{
type
:
"category"
,
data
:
this
.
dates
,
},
yAxis
:
{
type
:
"value"
,
},
series
:
[
{
data
:
this
.
vals
,
type
:
"bar"
,
itemStyle
:
{
color
:
"#58a5ff"
,
},
},
{
data
:
this
.
vals
,
type
:
"line"
,
smooth
:
false
,
itemStyle
:
{
color
:
"#298bfe"
,
},
},
],
});
this
.
loading
=
false
;
},
exportFile
()
{
this
.
qeruestFile
(
this
.
formData
,
"/ywsjTj/exportRyccfx"
).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
]);
let
fileName
=
"个人操作统计.xlsx"
;
// 组装a标签
let
elink
=
document
.
createElement
(
"a"
);
// 设置下载文件名
elink
.
download
=
fileName
;
elink
.
style
.
display
=
"none"
;
elink
.
href
=
URL
.
createObjectURL
(
blob
);
document
.
body
.
appendChild
(
elink
);
elink
.
click
();
document
.
body
.
removeChild
(
elink
);
});
},
detail
(
sfzh
)
{
this
.
$router
.
pushToTab
({
path
:
"/grczxq"
,
query
:
{
...
this
.
formData
,
sfzh
,
},
});
},
fx
()
{},
initDate
()
{
let
self
=
this
;
this
.
loading
=
true
;
let
url
=
"/ywsjTj/queryRyccfx"
;
this
.
qeruestPost
(
this
.
formData
,
url
).
then
((
res
)
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
for
(
const
key
in
data
)
{
this
.
dates
.
push
(
key
)
this
.
vals
.
push
(
data
[
key
])
this
.
initECharts
()
}
}
});
},
qeruestFile
(
form
,
urls
)
{
return
request
({
url
:
url
.
rzURL
+
urls
,
data
:
qs
.
stringify
(
form
),
responseType
:
"blob"
,
method
:
"post"
,
headers
:
{
"content-type"
:
"application/x-www-form-urlencoded"
,
},
});
},
qeruestPost
(
form
,
urls
)
{
return
request
({
url
:
url
.
rzURL
+
urls
,
data
:
qs
.
stringify
(
form
),
method
:
"post"
,
headers
:
{
"content-type"
:
"application/x-www-form-urlencoded"
,
},
});
},
},
mounted
()
{
this
.
formData
=
this
.
$route
.
query
;
this
.
initDate
();
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.paneDiv
{
width
:
95%
;
background
:
#ffffff
;
box-shadow
:
0px
2px
4px
rgba
(
0
,
0
,
0
,
0.06
);
opacity
:
1
;
border-radius
:
4px
;
margin
:
15px
auto
;
padding
:
20px
;
}
</
style
>
\ No newline at end of file
src/views/rzcx/grczxq.vue
View file @
8732d090
...
@@ -5,6 +5,20 @@
...
@@ -5,6 +5,20 @@
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<span
class=
"flTtitle"
>
查询结果
</span>
<span
class=
"flTtitle"
>
查询结果
</span>
<span
class=
"total"
>
共有
{{
dataCount
}}
条查询结果
</span>
<span
class=
"total"
>
共有
{{
dataCount
}}
条查询结果
</span>
<el-button
plain
class=
"zdybtn export"
style=
"float: right; margin-top: 1%; margin-right: 2% !important"
size=
"small"
@
click=
"exportFile"
>
<i
class=
"fa fa-external-link"
aria-hidden=
"true"
style=
"margin-right: 5px"
></i>
导出
</el-button>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -26,7 +40,12 @@
...
@@ -26,7 +40,12 @@
>
>
<el-table-column
align=
"center"
label=
"访问时间"
prop=
"fwsj"
/>
<el-table-column
align=
"center"
label=
"访问时间"
prop=
"fwsj"
/>
<el-table-column
align=
"center"
label=
"应用名称"
prop=
"yymc"
/>
<el-table-column
align=
"center"
label=
"应用名称"
prop=
"yymc"
/>
<el-table-column
align=
"center"
label=
"操作参数"
prop=
"czcs"
width=
"300px"
/>
<el-table-column
align=
"center"
label=
"操作参数"
prop=
"czcs"
width=
"300px"
/>
</el-table>
</el-table>
<el-pagination
<el-pagination
...
@@ -63,6 +82,21 @@ export default {
...
@@ -63,6 +82,21 @@ export default {
this
.
initDate
();
this
.
initDate
();
},
},
methods
:
{
methods
:
{
exportFile
()
{
this
.
qeruestFile
(
this
.
formData
,
"/ywsjTj/exportRyccxq"
).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
]);
let
fileName
=
"个人操作统计.xlsx"
;
// 组装a标签
let
elink
=
document
.
createElement
(
"a"
);
// 设置下载文件名
elink
.
download
=
fileName
;
elink
.
style
.
display
=
"none"
;
elink
.
href
=
URL
.
createObjectURL
(
blob
);
document
.
body
.
appendChild
(
elink
);
elink
.
click
();
document
.
body
.
removeChild
(
elink
);
});
},
detail
(
sfzh
)
{
detail
(
sfzh
)
{
this
.
$router
.
pushToTab
({
this
.
$router
.
pushToTab
({
path
:
"/grczxq"
,
path
:
"/grczxq"
,
...
@@ -76,7 +110,8 @@ export default {
...
@@ -76,7 +110,8 @@ export default {
initDate
()
{
initDate
()
{
let
self
=
this
;
let
self
=
this
;
this
.
tableLoading
=
true
;
this
.
tableLoading
=
true
;
this
.
qeruestPost
(
this
.
formData
).
then
((
res
)
=>
{
let
url
=
"/ywsjTj/queryRyccxq"
;
this
.
qeruestPost
(
this
.
formData
,
url
).
then
((
res
)
=>
{
let
{
code
,
data
,
total
}
=
res
;
let
{
code
,
data
,
total
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
self
.
tableData
=
data
.
rows
;
self
.
tableData
=
data
.
rows
;
...
@@ -85,9 +120,20 @@ export default {
...
@@ -85,9 +120,20 @@ export default {
}
}
});
});
},
},
qeruestPost
(
form
)
{
qeruestFile
(
form
,
urls
)
{
return
request
({
url
:
url
.
rzURL
+
urls
,
data
:
qs
.
stringify
(
form
),
responseType
:
"blob"
,
method
:
"post"
,
headers
:
{
"content-type"
:
"application/x-www-form-urlencoded"
,
},
});
},
qeruestPost
(
form
,
urls
)
{
return
request
({
return
request
({
url
:
url
.
rzURL
+
"/ywsjTj/queryRyccxq"
,
url
:
url
.
rzURL
+
urls
,
data
:
qs
.
stringify
(
form
),
data
:
qs
.
stringify
(
form
),
method
:
"post"
,
method
:
"post"
,
headers
:
{
headers
:
{
...
...
src/views/rzcx/ywsjTjbbGrcz.vue
View file @
8732d090
...
@@ -144,11 +144,11 @@ export default {
...
@@ -144,11 +144,11 @@ export default {
formData
:
{
formData
:
{
unitCode
:
""
,
unitCode
:
""
,
yymc
:
""
,
yymc
:
""
,
djsjKssj
:
this
.
$moment
().
subtract
(
1
,
"
year
"
).
format
(
"YYYY-MM-DD"
),
djsjKssj
:
this
.
$moment
().
subtract
(
1
,
"
month
"
).
format
(
"YYYY-MM-DD"
),
djsjJssj
:
this
.
$moment
().
format
(
"YYYY-MM-DD"
),
djsjJssj
:
this
.
$moment
().
format
(
"YYYY-MM-DD"
),
daterange
:
[],
daterange
:
[],
page
:
1
,
page
:
1
,
limit
:
10
,
limit
:
""
,
},
},
queryTypeList
:
[
queryTypeList
:
[
{
name
:
"个案侦办"
,
value
:
"0101"
},
{
name
:
"个案侦办"
,
value
:
"0101"
},
...
@@ -171,8 +171,29 @@ export default {
...
@@ -171,8 +171,29 @@ export default {
},
},
methods
:
{
methods
:
{
exportFile
()
{
exportFile
()
{
this
.
qeruestPost
(
this
.
formData
,
"/ywsjTj/exportRyccfx"
).
then
((
res
)
=>
{
this
.
qeruestFile
(
this
.
formData
,
"/ywsjTj/exportRyccfx"
).
then
((
res
)
=>
{
console
.
log
(
res
)
let
blob
=
new
Blob
([
res
]);
let
fileName
=
"个人操作统计.xlsx"
;
// 组装a标签
let
elink
=
document
.
createElement
(
"a"
);
// 设置下载文件名
elink
.
download
=
fileName
;
elink
.
style
.
display
=
"none"
;
elink
.
href
=
URL
.
createObjectURL
(
blob
);
document
.
body
.
appendChild
(
elink
);
elink
.
click
();
document
.
body
.
removeChild
(
elink
);
});
},
qeruestFile
(
form
,
urls
)
{
return
request
({
url
:
url
.
rzURL
+
urls
,
data
:
qs
.
stringify
(
form
),
responseType
:
"blob"
,
method
:
"post"
,
headers
:
{
"content-type"
:
"application/x-www-form-urlencoded"
,
},
});
});
},
},
detail
(
sfzh
)
{
detail
(
sfzh
)
{
...
@@ -184,7 +205,15 @@ export default {
...
@@ -184,7 +205,15 @@ export default {
},
},
});
});
},
},
fx
()
{},
fx
(
sfzh
)
{
this
.
$router
.
pushToTab
({
path
:
"/grczfx"
,
query
:
{
...
this
.
formData
,
sfzh
,
},
});
},
initDate
()
{
initDate
()
{
let
self
=
this
;
let
self
=
this
;
this
.
tableLoading
=
true
;
this
.
tableLoading
=
true
;
...
...
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