Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
99e32f8e
Commit
99e32f8e
authored
Jul 28, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息管理服务筛选fixed
parent
275d8f3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
src/components/message-steps/select-service.vue
src/components/message-steps/select-service.vue
+2
-1
src/components/recommen/screen-type.vue
src/components/recommen/screen-type.vue
+21
-7
No files found.
src/components/message-steps/select-service.vue
View file @
99e32f8e
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
<div
class=
"select_service"
>
<div
class=
"select_service"
>
<screen-type
<screen-type
class=
"service_fliter"
class=
"service_fliter"
:data=
"filterList"
:top_data=
"serviceTypes"
:top_data=
"serviceTypes"
:data=
"filterList"
:openflag=
"true"
@
topselect=
"changeType"
@
topselect=
"changeType"
@
getselect=
"getFilters"
@
getselect=
"getFilters"
></screen-type>
></screen-type>
...
...
src/components/recommen/screen-type.vue
View file @
99e32f8e
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</el-input>
</el-input>
</div>
</div>
<div
class=
"type_select"
v-show=
"openflag"
>
<div
class=
"type_select"
v-show=
"openflag"
>
<div
class=
"line_data"
style=
"overflow:hidden;"
>
<div
class=
"line_data"
style=
"overflow:hidden;"
v-if=
"top_data"
>
<div
class=
"select_name"
>
{{
top_data
.
name
}}
:
</div>
<div
class=
"select_name"
>
{{
top_data
.
name
}}
:
</div>
<div
<div
ref=
"select_arr_box_top"
ref=
"select_arr_box_top"
...
@@ -107,12 +107,15 @@ export default {
...
@@ -107,12 +107,15 @@ export default {
type
:
Array
,
type
:
Array
,
default
:
()
=>
[],
default
:
()
=>
[],
},
},
openflag
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
input2
:
""
,
input2
:
""
,
openflag
:
false
,
selected_arr
:
[],
selected_arr
:
[],
show_selected
:
[],
show_selected
:
[],
show_open
:
[],
show_open
:
[],
...
@@ -203,12 +206,23 @@ export default {
...
@@ -203,12 +206,23 @@ export default {
});
});
},
},
set_select
(
index
,
id
)
{
set_select
(
index
,
id
)
{
if
(
this
.
selected_arr
[
index
].
indexOf
(
id
)
==
-
1
)
{
if
(
id
===
""
)
{
this
.
selected_arr
[
index
].
push
(
id
);
this
.
$set
(
this
.
selected_arr
,
index
,
[
""
]
);
}
else
{
}
else
{
this
.
selected_arr
[
index
].
splice
(
let
selectIds
=
this
.
selected_arr
[
index
];
this
.
selected_arr
[
index
].
indexOf
(
id
),
1
selectIds
=
selectIds
.
filter
((
id
)
=>
id
!==
""
);
if
(
selectIds
.
indexOf
(
id
)
==
-
1
)
{
selectIds
.
push
(
id
);
}
else
{
selectIds
.
splice
(
selectIds
.
indexOf
(
id
),
1
);
}
this
.
$set
(
this
.
selected_arr
,
index
,
selectIds
.
length
>
0
?
selectIds
:
[
""
]
);
);
}
}
this
.
post_value
();
this
.
post_value
();
...
...
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