Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
fcd466a7
Commit
fcd466a7
authored
May 18, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据字典
parent
a42f5179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
index.vue
pages/basicData/dic/index.vue
+17
-5
No files found.
pages/basicData/dic/index.vue
View file @
fcd466a7
...
...
@@ -17,9 +17,9 @@
</Button>
</ButtonGroup>
</h3>
<div
class=
"tree"
:style=
"
{height:treeHeight+'px'}"
>
<Input
v-model=
"keys"
search
placeholder=
"请输入客户名称"
clearable
/>
<Tree
:data=
"projectList"
@
on-select-change=
"change"
/>
<div>
<Input
v-model
.
trim
=
"keys"
search
placeholder=
"请输入客户名称"
clearable
/>
<Tree
:data=
"projectList"
@
on-select-change=
"change"
class=
"tree-i"
/>
</div>
</Sider>
<Content
class=
"content"
>
...
...
@@ -210,10 +210,18 @@ export default {
search
(
this
.
keys
,
items
);
function
search
(
keys
,
data
)
{
data
.
map
(
u
=>
{
if
(
keys
.
length
<
3
)
{
if
(
keys
.
length
==
u
.
title
)
{
result
.
push
(
u
);
}
else
{
if
(
u
.
title
.
indexOf
(
keys
)
>
-
1
)
{
let
code
=
""
;
if
(
u
.
data
&&
u
.
data
.
code
)
{
u
.
data
.
code
.
toLowerCase
();
if
(
keys
)
{
keys
=
keys
.
toLowerCase
();
}
code
=
u
.
data
.
code
+
""
;
}
if
(
u
.
title
.
indexOf
(
keys
)
>
-
1
||
code
.
indexOf
(
keys
)
>
-
1
)
{
result
.
push
(
u
);
}
else
if
(
u
.
children
)
{
search
(
keys
,
u
.
children
);
...
...
@@ -403,6 +411,10 @@ export default {
<
style
lang=
"less"
scoped
>
.full {
margin-top: 0;
.tree-i {
height: 78vh;
overflow: auto;
}
}
.ivu-color-picker-confirm {
...
...
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