Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-system
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-system
Commits
9c076302
Commit
9c076302
authored
Apr 24, 2019
by
向童
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'服务添加参数'
parent
b080e42f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
mixin.js
src/components/input/ServiceTypeSelect/mixin.js
+5
-0
serviceTypeStore.js
src/components/input/ServiceTypeSelect/serviceTypeStore.js
+5
-2
No files found.
src/components/input/ServiceTypeSelect/mixin.js
View file @
9c076302
...
@@ -13,6 +13,10 @@ export default {
...
@@ -13,6 +13,10 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
null
,
default
:
null
,
},
},
isAll
:
{
type
:
Number
,
default
:
null
,
},
},
},
created
()
{
created
()
{
store
.
install
(
this
.
$store
);
store
.
install
(
this
.
$store
);
...
@@ -20,6 +24,7 @@ export default {
...
@@ -20,6 +24,7 @@ export default {
this
.
fetchServiceTypeList
({
this
.
fetchServiceTypeList
({
serviceType
:
this
.
ServiceType
,
serviceType
:
this
.
ServiceType
,
serviceState
:
this
.
ServiceState
,
serviceState
:
this
.
ServiceState
,
isAll
:
this
.
isAll
,
});
});
}
}
},
},
...
...
src/components/input/ServiceTypeSelect/serviceTypeStore.js
View file @
9c076302
...
@@ -21,11 +21,14 @@ const getters = {
...
@@ -21,11 +21,14 @@ const getters = {
};
};
const
actions
=
{
const
actions
=
{
fetchServiceTypeList
({
state
,
commit
},
{
serviceType
,
serviceState
})
{
fetchServiceTypeList
(
{
state
,
commit
},
{
serviceType
,
serviceState
,
isAll
}
)
{
if
(
state
.
fetching
[
serviceType
])
return
;
if
(
state
.
fetching
[
serviceType
])
return
;
commit
(
FETCH_STATE
,
{
value
:
true
,
index
:
serviceType
});
commit
(
FETCH_STATE
,
{
value
:
true
,
index
:
serviceType
});
return
fetchServiceList
({
return
fetchServiceList
({
params
:
{
serviceType
,
state
:
serviceState
},
params
:
{
serviceType
,
state
:
serviceState
,
isAll
:
isAll
},
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
{
selfService
}
=
res
;
const
{
selfService
}
=
res
;
commit
(
SERVICE_TYPE_LIST
,
{
list
:
selfService
,
index
:
serviceType
});
commit
(
SERVICE_TYPE_LIST
,
{
list
:
selfService
,
index
:
serviceType
});
...
...
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