Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
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
姜雷
dcxy-manage-shell
Commits
6f012d2c
Commit
6f012d2c
authored
May 08, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改限定运营商的区域选择组件
parent
99c60db1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
AreaSelect.vue
src/components/input/AreaDashboard/AreaSelect.vue
+19
-9
No files found.
src/components/input/AreaDashboard/AreaSelect.vue
View file @
6f012d2c
...
@@ -37,24 +37,34 @@ export default {
...
@@ -37,24 +37,34 @@ export default {
default
:
true
,
default
:
true
,
},
},
},
},
data
()
{
return
{
selectedAll
:
false
,
};
},
mixins
:
[
areaMixin
],
mixins
:
[
areaMixin
],
methods
:
{
methods
:
{
changeHandle
(
val
)
{
changeHandle
(
val
)
{
if
(
val
)
{
if
(
val
)
{
if
(
val
&&
val
.
length
&&
val
.
indexOf
(
-
1
)
>
-
1
)
{
if
(
val
&&
val
.
length
&&
val
.
indexOf
(
-
1
)
>
-
1
)
{
if
(
val
.
length
===
this
.
dashboardArea
.
length
+
1
)
{
if
(
val
.
length
===
this
.
dashboardArea
.
length
)
{
this
.
selectedAll
=
false
;
this
.
$emit
(
'input'
,
val
.
filter
(
id
=>
id
!==
-
1
));
}
else
{
this
.
selectedAll
=
true
;
this
.
$emit
(
'input'
,
[
...
this
.
dashboardArea
.
map
(
item
=>
item
.
id
),
-
1
,
]);
}
}
else
{
if
(
this
.
selectedAll
)
{
this
.
selectedAll
=
false
;
this
.
$emit
(
'input'
,
[]);
this
.
$emit
(
'input'
,
[]);
return
;
}
else
{
}
else
{
this
.
$emit
(
'input'
,
this
.
dashboardArea
.
map
(
item
=>
item
.
id
));
this
.
$emit
(
'input'
,
val
);
return
;
}
}
}
}
// if (this.multiple && val.length == 0) {
// this.$emit('input', this.dashboardArea.map(item => item.id));
// } else {
this
.
$emit
(
'input'
,
val
);
// }
}
else
{
}
else
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'input'
,
null
);
}
}
...
...
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