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
6a78c0fa
Commit
6a78c0fa
authored
Mar 28, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改服务类型获取接口
parent
ac9340cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
index.js
src/api/base/index.js
+1
-1
ServiceTypeSelect.vue
src/components/input/ServiceTypeSelect/ServiceTypeSelect.vue
+2
-2
mixin.js
src/components/input/ServiceTypeSelect/mixin.js
+0
-1
serviceTypeStore.js
src/components/input/ServiceTypeSelect/serviceTypeStore.js
+2
-2
No files found.
src/api/base/index.js
View file @
6a78c0fa
...
...
@@ -21,7 +21,7 @@ export const fetchSelectList = req =>
//获取服务类型
export
const
fetchServiceList
=
req
=>
fetch
({
url
:
path
+
'/
baseData/ge
t/service'
,
url
:
path
+
'/
dcxy/api/base/service/all/abou
t/service'
,
method
:
'get'
,
...
req
,
});
...
...
src/components/input/ServiceTypeSelect/ServiceTypeSelect.vue
View file @
6a78c0fa
...
...
@@ -8,8 +8,8 @@
<el-option
v-for=
"(item, index) in serviceTypeLists[ServiceType]"
:key=
"index"
:value=
"item.
value
"
:label=
"item.
n
ame"
:value=
"item.
id
"
:label=
"item.
serviceN
ame"
></el-option>
</el-select>
</
template
>
...
...
src/components/input/ServiceTypeSelect/mixin.js
View file @
6a78c0fa
...
...
@@ -24,7 +24,6 @@ export default {
let
item
=
this
.
serviceTypeLists
[
this
.
ServiceType
].
find
(
ServiceType
=>
ServiceType
.
id
===
id
);
return
item
?
item
.
serviceName
:
''
;
},
},
...
...
src/components/input/ServiceTypeSelect/serviceTypeStore.js
View file @
6a78c0fa
...
...
@@ -27,8 +27,8 @@ const actions = {
return
fetchServiceList
({
params
:
{
serviceType
},
}).
then
(
res
=>
{
const
{
data
}
=
res
;
commit
(
SERVICE_TYPE_LIST
,
{
list
:
data
,
index
:
serviceType
});
const
{
selfService
}
=
res
;
commit
(
SERVICE_TYPE_LIST
,
{
list
:
selfService
,
index
:
serviceType
});
commit
(
FETCH_STATE
,
{
value
:
false
,
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