Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tianhongweb
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
liuyuping
tianhongweb
Commits
938c79d8
Commit
938c79d8
authored
Jan 22, 2022
by
liuyuping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'2'
parent
bb16dba7
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
268 additions
and
9 deletions
+268
-9
trainimage.js
src/api/trainimage.js
+8
-0
index.vue
src/views/advice/index.vue
+11
-2
home1.vue
src/views/home1.vue
+249
-7
No files found.
src/api/trainimage.js
View file @
938c79d8
...
...
@@ -126,3 +126,11 @@ export function findTodayTrainEnterprise() {
method
:
'
get
'
})
}
// 安全教育培训统计
export
function
analyzeSafetyEducation
()
{
return
request
({
url
:
'
api/trainImage/analyzeSafetyEducation
'
,
method
:
'
get
'
})
}
\ No newline at end of file
src/views/advice/index.vue
View file @
938c79d8
...
...
@@ -10,6 +10,7 @@
:data=
"tableData"
style=
"width:100%;"
border
v-loading=
"isLoadingAdvice"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
...
...
@@ -127,7 +128,8 @@ export default {
},
currentPage
:
1
,
curPageSize
:
10
,
totalColumn
:
40
totalColumn
:
40
,
isLoadingAdvice
:
false
}
},
mounted
()
{
...
...
@@ -196,12 +198,15 @@ export default {
handleSizeChange
(
val
)
{
// 每页多少条
this
.
curPageSize
=
val
this
.
initAllNotices
()
},
handleCurrentChange
(
val
)
{
// 当前是多少页
this
.
currentPage
=
val
this
.
initAllNotices
()
},
initAllNotices
()
{
this
.
isLoadingAdvice
=
true
getNotice
({
page
:
this
.
currentPage
-
1
,
size
:
this
.
curPageSize
,
...
...
@@ -215,7 +220,11 @@ export default {
item
.
content
=
item
.
noticeContent
})
this
.
tableData
=
[...
res
.
content
]
}).
catch
(()
=>
{})
this
.
totalColumn
=
res
.
totalElements
this
.
isLoadingAdvice
=
false
}).
catch
(()
=>
{
this
.
isLoadingAdvice
=
false
})
}
}
}
...
...
src/views/home1.vue
View file @
938c79d8
This diff is collapsed.
Click to expand it.
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