Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dxgaqgl-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
李苏
dxgaqgl-vue
Commits
a241a785
Commit
a241a785
authored
Nov 29, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11.29 大溪沟首页调整,连带功能调整
parent
6d7682ad
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
281 additions
and
229 deletions
+281
-229
index.vue
src/views/threeViolations/homePage/index.vue
+47
-15
edit.vue
src/views/train/planning/edit.vue
+223
-213
index.vue
src/views/train/planning/index.vue
+11
-1
No files found.
src/views/threeViolations/homePage/index.vue
View file @
a241a785
...
...
@@ -322,7 +322,7 @@
<div
class=
"flex1"
style=
"margin-right: 5px;"
@
click=
"$router.push('/train/
assessment
')"
>
<div
class=
"flex1"
style=
"margin-right: 5px;"
@
click=
"$router.push('/train/
planning
')"
>
<div
class=
"full data-box1"
>
<i
class=
"topL"
></i>
<i
class=
"topR"
></i>
...
...
@@ -474,24 +474,29 @@
'公司资质证照'
:
'/dailya/holdCertificate'
}
/* 待定todo*/
const
colorMap
=
{
'#91cc75'
:
'Y'
,
'#ffb56b'
:
'D'
,
'#FF7474'
:
'C'
const
colorMap
=
{
'#91cc75'
:
'Y'
,
'#ffb56b'
:
'D'
,
'#FF7474'
:
'C'
}
/* 开始判定*/
let
queryParams
=
{
homeCzyjType
:
colorMap
[
params
.
color
]}
let
queryParams
=
{
homeCzyjType
:
colorMap
[
params
.
color
]
}
queryParams
[
this
.
menusItems
[
this
.
active
][
'type'
]]
=
this
.
menusItems
[
this
.
active
][
'id'
]
if
(
queryParams
[
'gsId'
])
{
queryParams
[
'homeGsId'
]
=
queryParams
[
'gsId'
]
delete
queryParams
[
'gsId'
]
if
(
queryParams
[
'gsId'
])
{
queryParams
[
'homeGsId'
]
=
queryParams
[
'gsId'
]
delete
queryParams
[
'gsId'
]
}
if
(
queryParams
[
'bmId'
])
{
queryParams
[
'homeBmId'
]
=
queryParams
[
'bmId'
]
delete
queryParams
[
'bmId'
]
if
(
queryParams
[
'bmId'
])
{
queryParams
[
'homeBmId'
]
=
queryParams
[
'bmId'
]
delete
queryParams
[
'bmId'
]
}
this
.
$router
.
push
({
path
:
pathMap
[
params
.
name
],
query
:
queryParams
});
this
.
$router
.
push
({
path
:
pathMap
[
params
.
name
],
query
:
queryParams
});
})
...
...
@@ -741,7 +746,34 @@
params
[
this
.
menusItems
[
this
.
active
][
'type'
]]
=
this
.
menusItems
[
this
.
active
][
'id'
]
this
.
$post
(
'aqgl/homepage/aqpx'
,
params
).
then
(
res
=>
{
let
records
=
res
.
data
.
records
||
[]
let
KeyList
=
Object
.
keys
(
records
)
if
((
'公司级'
in
records
)
==
false
)
{
records
[
'公司级'
]
=
{
"wccCount"
:
0
,
"wccRatio"
:
"0"
,
"ywcRatio"
:
"0"
,
"allCount"
:
0
,
"ywcCount"
:
0
}
}
if
((
'车间级'
in
records
)
==
false
)
{
records
[
'车间级'
]
=
{
"wccCount"
:
0
,
"wccRatio"
:
"0"
,
"ywcRatio"
:
"0"
,
"allCount"
:
0
,
"ywcCount"
:
0
}
}
if
((
'班组级'
in
records
)
==
false
)
{
records
[
'班组级'
]
=
{
"wccCount"
:
0
,
"wccRatio"
:
"0"
,
"ywcRatio"
:
"0"
,
"allCount"
:
0
,
"ywcCount"
:
0
}
}
let
KeyList
=
[
'公司级'
,
'车间级'
,
'班组级'
]
KeyList
.
forEach
(
key
=>
{
this
.
eAqpx
(
key
,
records
[
key
])
})
...
...
@@ -949,7 +981,7 @@
params
[
this
.
menusItems
[
this
.
active
][
'type'
]]
=
this
.
menusItems
[
this
.
active
][
'id'
]
this
.
$post
(
'aqgl/homepage/yhpc'
,
params
).
then
(
res
=>
{
let
records
=
res
.
data
.
records
let
xData
=
[
'人员违章'
,
'设备设施'
,
'环境影响'
,
'管理缺陷'
]
let
xData
=
[
'人员违章'
,
'设备设施'
,
'环境影响'
,
'管理缺陷'
]
let
yhList
=
[]
xData
.
forEach
(
key
=>
{
yhList
.
push
(
records
[
key
])
...
...
src/views/train/planning/edit.vue
View file @
a241a785
This diff is collapsed.
Click to expand it.
src/views/train/planning/index.vue
View file @
a241a785
...
...
@@ -27,6 +27,12 @@
<el-input
v-model=
'queryParams.pxfs'
size=
"small"
class=
"search-input"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
计划等级:
</span>
<RelSelect
style=
"width: 100%;"
src=
'aqgl/pxgl/pxjh/init/pxjhdj'
filterable
clearable
:match=
"
{value:'id',label:'name'}" v-model='queryParams.pxjhdj' >
</RelSelect>
</div>
</el-col>
</el-row>
...
...
@@ -97,7 +103,8 @@ console.log(res,'tree')
pxfs
:
''
,
year
:
''
,
skr
:
''
,
gsid
:
''
gsid
:
''
,
pxjhdj
:
''
},
/* 树的标题 */
...
...
@@ -115,6 +122,9 @@ console.log(res,'tree')
{
label
:
"培训类型"
,
prop
:
"type"
,
fieldType
:
"ftString"
,
width
:
100
,
transform
:{
url
:
'aqgl/pxgl/pxjh/init/type'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"培训计划等级"
,
prop
:
"pxjhdj"
,
width
:
100
,
transform
:{
url
:
'aqgl/pxgl/pxjh/init/pxjhdj'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"培训时间"
,
prop
:
"pxsj"
,
fieldType
:
"ftString"
,
width
:
200
},
{
label
:
"估计费用"
,
prop
:
"pxfy"
,
fieldType
:
"ftString"
,
width
:
200
},
{
label
:
"目标完成标准"
,
prop
:
"mbwcbz"
,
fieldType
:
"ftString"
,
width
:
300
},
...
...
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