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
b134e8fe
Commit
b134e8fe
authored
Dec 08, 2022
by
liuguorong93
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作犬 列表优化
parent
8c4c5cd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
7 deletions
+28
-7
src/views/poDogJobManage/index.vue
+28
-7
No files found.
src/views/poDogJobManage/index.vue
View file @
b134e8fe
...
...
@@ -5,7 +5,6 @@
class=
"titles"
style=
"width: 72px;"
>
查询条件
</div>
{{
formData
}}
<el-form
:model=
"formData"
ref=
"formDataRef"
...
...
@@ -49,6 +48,7 @@
class=
"elItemClass"
>
<lazy-select-tree-dialog
flagBiaoZhi=
"allUnit"
:sendId=
"formData.trainingUnit"
:formData=
"formData"
:currentItem=
"unitInfo"
...
...
@@ -236,7 +236,7 @@
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
trainingLevelId
}}
</span>
<span>
{{
scope
.
row
.
trainingLevelId
ForName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -245,7 +245,7 @@
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
wor
kingDogClassificationId
}}
</span>
<span>
{{
scope
.
row
.
wor
dForName
}}
</span>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -382,11 +382,32 @@ export default {
res
.
data
.
data
.
records
.
length
)
{
let
datas
=
res
.
data
.
data
.
records
;
// console.log(datas);
// datas.forEach((item) => {
// item.jwjsxlForName = getCodeName(item.jwjsxl, this.jwjsxlOptions);
// });
datas
.
forEach
((
item
)
=>
{
// 处理工作犬等级
item
.
trainingLevelIdForName
=
getCodeName
(
item
.
trainingLevelId
,
this
.
gzqdjOptions
);
// 处理专业方向
item
.
wordForName
=
""
;
if
(
item
.
workingDogClassificationId
)
{
let
workArr
=
item
.
workingDogClassificationId
.
split
(
"#"
)
||
[];
if
(
workArr
?.
length
)
{
workArr
.
forEach
((
workItem
)
=>
{
let
result
=
getCodeName
(
workItem
,
this
.
zyfxOptions
);
if
(
result
)
{
item
.
wordForName
=
item
.
wordForName
+
result
+
"、"
;
}
});
item
.
wordForName
=
item
.
wordForName
.
substr
(
0
,
item
.
wordForName
.
length
-
1
);
}
}
});
this
.
tableData
=
datas
;
this
.
total
=
res
.
data
.
data
.
total
;
...
...
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