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
bb16dba7
Commit
bb16dba7
authored
Jan 13, 2022
by
liuyuping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'initial'
parent
f654b080
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
4 deletions
+76
-4
trainimage.js
src/api/trainimage.js
+21
-0
home1.vue
src/views/home1.vue
+50
-0
trainimg.vue
src/views/trainimage/trainimg.vue
+5
-4
No files found.
src/api/trainimage.js
View file @
bb16dba7
...
...
@@ -105,3 +105,24 @@ export function getAllIndustry(params) {
params
})
}
/**
* 查询已参加培训的企业
*/
export
function
findTrainEnterprise
()
{
return
request
({
url
:
'
api/trainImage/findTrainEnterprise
'
,
method
:
'
get
'
})
}
/**
* 查询今日参加培训的企业
*/
export
function
findTodayTrainEnterprise
()
{
return
request
({
url
:
'
api/trainImage/findTodayTrainEnterprise
'
,
method
:
'
get
'
})
}
src/views/home1.vue
View file @
bb16dba7
...
...
@@ -2788,6 +2788,7 @@ import {
findUploadedDangerJobReport
,
dangerJobReport
}
from
'
@/api/hwapproval.js
'
// import PDFViewer from 'pdf-viewer-vue';
import
{
findTrainEnterprise
,
findTodayTrainEnterprise
}
from
'
@/api/trainimage.js
'
export
default
{
components
:
{
LivePlayer
,
...
...
@@ -2795,6 +2796,8 @@ export default {
},
data
()
{
return
{
trainEnterprises
:
[],
todayTrainEnterprises
:
[],
isCurCertifyPdfFile
:
false
,
// 危险作业
dangerWorkRecord
:
[],
...
...
@@ -3567,6 +3570,7 @@ export default {
// axios.get('http://118.190.98.56:9090/jz/daq/nextList?id=36').then(res => {
// console.log(res, 'hahahhahaha')
// })
this
.
initTrainEnterprises
()
this
.
initAllDanger
()
this
.
initAllCertifies
()
findUploadEnterprise
().
then
(
res
=>
{
...
...
@@ -3617,6 +3621,16 @@ export default {
this
.
videoPlayer
();
},
methods
:
{
async
initTrainEnterprises
()
{
await
findTrainEnterprise
().
then
(
res
=>
{
this
.
trainEnterprises
=
[...
res
]
console
.
log
(
res
,
'
findTrainEnterprise findTrainEnterprise
'
)
})
await
findTodayTrainEnterprise
().
then
(
res
=>
{
this
.
todayTrainEnterprises
=
[...
res
]
console
.
log
(
res
,
'
findTodayTrainEnterprise findTodayTrainEnterprise
'
)
})
},
async
initAllDanger
()
{
let
result
=
[]
await
findUploadedDangerJobReport
().
then
(
res
=>
{
...
...
@@ -3916,6 +3930,15 @@ export default {
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
coms
=
[];
}
}
for
(
let
i
=
0
;
i
<
this
.
curDepartIndusEnters
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
this
.
curDepartIndusEnters
[
i
].
induses
.
length
;
j
++
)
{
for
(
let
k
=
0
;
k
<
this
.
trainEnterprises
.
length
;
k
++
)
{
if
(
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
indus
===
this
.
trainEnterprises
[
k
].
industryName
)
{
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
coms
.
push
(
this
.
trainEnterprises
[
k
])
}
}
}
}
for
(
let
i
=
0
;
i
<
this
.
curDepartIndusEnters
.
length
;
i
++
)
{
let
sum
=
0
;
for
(
let
j
=
0
;
j
<
this
.
curDepartIndusEnters
[
i
].
induses
.
length
;
j
++
)
{
...
...
@@ -3942,6 +3965,15 @@ export default {
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
coms
=
[];
}
}
for
(
let
i
=
0
;
i
<
this
.
curDepartIndusEnters
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
this
.
curDepartIndusEnters
[
i
].
induses
.
length
;
j
++
)
{
for
(
let
k
=
0
;
k
<
this
.
trainEnterprises
.
length
;
k
++
)
{
if
(
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
indus
===
this
.
trainEnterprises
[
k
].
industryName
)
{
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
coms
.
push
(
this
.
trainEnterprises
[
k
])
}
}
}
}
for
(
let
i
=
0
;
i
<
this
.
curDepartIndusEnters
.
length
;
i
++
)
{
let
sum
=
0
;
for
(
let
j
=
0
;
j
<
this
.
curDepartIndusEnters
[
i
].
induses
.
length
;
j
++
)
{
...
...
@@ -3968,6 +4000,15 @@ export default {
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
coms
=
[];
}
}
for
(
let
i
=
0
;
i
<
this
.
curDepartIndusEnters
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
this
.
curDepartIndusEnters
[
i
].
induses
.
length
;
j
++
)
{
for
(
let
k
=
0
;
k
<
this
.
todayTrainEnterprises
.
length
;
k
++
)
{
if
(
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
indus
===
this
.
todayTrainEnterprises
[
k
].
industryName
)
{
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
coms
.
push
(
this
.
todayTrainEnterprises
[
k
])
}
}
}
}
for
(
let
i
=
0
;
i
<
this
.
curDepartIndusEnters
.
length
;
i
++
)
{
let
sum
=
0
;
for
(
let
j
=
0
;
j
<
this
.
curDepartIndusEnters
[
i
].
induses
.
length
;
j
++
)
{
...
...
@@ -3994,6 +4035,15 @@ export default {
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
coms
=
[];
}
}
for
(
let
i
=
0
;
i
<
this
.
curDepartIndusEnters
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
this
.
curDepartIndusEnters
[
i
].
induses
.
length
;
j
++
)
{
for
(
let
k
=
0
;
k
<
this
.
todayTrainEnterprises
.
length
;
k
++
)
{
if
(
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
indus
===
this
.
todayTrainEnterprises
[
k
].
industryName
)
{
this
.
curDepartIndusEnters
[
i
].
induses
[
j
].
coms
.
push
(
this
.
todayTrainEnterprises
[
k
])
}
}
}
}
for
(
let
i
=
0
;
i
<
this
.
curDepartIndusEnters
.
length
;
i
++
)
{
let
sum
=
0
;
for
(
let
j
=
0
;
j
<
this
.
curDepartIndusEnters
[
i
].
induses
.
length
;
j
++
)
{
...
...
src/views/trainimage/trainimg.vue
View file @
bb16dba7
...
...
@@ -111,20 +111,21 @@ export default {
this
.
isLoadingData
=
true
let
params
=
{
enterpriseId
:
this
.
companyId
,
page
:
this
.
currentPage
,
page
:
this
.
currentPage
-
1
,
size
:
this
.
curPageSize
,
sort
:
'
time,desc
'
}
searchTrainImage
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'
searchTrainImg searchTrainImg searchTrainImg
'
)
this
.
trainimgData
=
[...
res
.
content
.
map
(
item
=>
{
return
{
briefIntroduction
:
item
.
briefIntroduction
,
location
:
item
.
location
,
peopleNum
:
item
.
peopleNum
,
time
:
item
.
time
,
beforeImgPath
:
item
.
beforeImgPath
,
trainingImgPath
:
item
.
trainingImgPath
,
afterImgPath
:
item
.
afterImgPath
beforeImgPath
:
'
/train-image/
'
+
item
.
beforeImgPath
.
split
(
'
\\
train-image
\\
'
)[
1
]
,
trainingImgPath
:
'
/train-image/
'
+
item
.
trainingImgPath
.
split
(
'
\\
train-image
\\
'
)[
1
]
,
afterImgPath
:
'
/train-image/
'
+
item
.
afterImgPath
.
split
(
'
\\
train-image
\\
'
)[
1
]
}
})]
this
.
totalSize
=
res
.
totalElements
...
...
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