Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-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
youjj
cloud-platform-ui
Commits
3df4fdab
Commit
3df4fdab
authored
May 13, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地相关功能
parent
63241234
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
668 additions
and
1 deletion
+668
-1
index.js
src/api/base_info/campsite/index.js
+93
-0
index.js
src/router/index.js
+6
-0
getters.js
src/store/getters.js
+2
-1
baseInfo.js
src/store/modules/baseInfo.js
+22
-0
index.vue
src/views/baseInfo/campsite/index.vue
+545
-0
No files found.
src/api/base_info/campsite/index.js
0 → 100644
View file @
3df4fdab
import
store
from
"../../../store"
;
import
XEUtils
from
'xe-utils'
;
//加入常用工具类
import
fetch
from
'utils/fetch'
;
export
function
page
(
query
)
{
return
fetch
({
url
:
'/vehicle/campsite/page'
,
method
:
'get'
,
params
:
query
});
}
export
function
getObj
(
id
)
{
return
fetch
({
url
:
'/vehicle/campsite/'
+
id
,
method
:
'get'
});
}
export
function
addObj
(
obj
)
{
console
.
log
(
obj
);
return
fetch
({
url
:
'/vehicle/campsite/'
,
method
:
'post'
,
data
:
obj
});
}
// 股权价格
export
function
getAllStockPrice
()
{
return
fetch
({
url
:
'/vehicle/campsite/stock/allPrice'
,
method
:
'get'
});
}
// 我要参与-众筹
export
function
stockApply
(
obj
)
{
return
fetch
({
url
:
'vehicle/campsite/stock/apply'
,
method
:
'post'
,
data
:
obj
});
}
// 股权列表
export
function
stockSearchPage
(
query
)
{
return
fetch
({
url
:
'/vehicle/campsite/stock/search'
,
method
:
'get'
,
params
:
query
});
}
export
function
delObj
(
id
)
{
return
fetch
({
url
:
'/vehicle/campsite/'
+
id
,
method
:
'delete'
})
}
export
function
putObj
(
obj
)
{
return
fetch
({
url
:
'/vehicle/campsite'
,
method
:
'put'
,
data
:
obj
})
}
export
function
getAll
()
{
return
fetch
({
url
:
'/vehicle/campsite'
,
method
:
'get'
})
}
/**
* 获取所有公司信息
* @returns {null|*}
*/
export
function
getAllCampsite
(
resolve
)
{
getAll
().
then
(
response
=>
{
let
campsiteList
=
response
.
data
;
if
(
!
campsiteList
||
campsiteList
.
length
===
0
)
{
return
null
;
}
let
codeAndCampsite
=
{};
for
(
let
index
in
campsiteList
)
{
codeAndCampsite
[
campsiteList
[
index
].
id
]
=
campsiteList
[
index
];
}
resolve
(
codeAndCampsite
);
});
}
src/router/index.js
View file @
3df4fdab
...
@@ -200,6 +200,12 @@ export const asyncRouterMap = [{
...
@@ -200,6 +200,12 @@ export const asyncRouterMap = [{
name
:
'分公司管理'
,
name
:
'分公司管理'
,
authority
:
'branchCompany'
authority
:
'branchCompany'
},
},
{
path
:
'campsite'
,
component
:
_import
(
'baseInfo/campsite/index'
),
name
:
'营地管理'
,
authority
:
'campsite'
},
{
{
path
:
'/baseInfo/accompanyingItem'
,
path
:
'/baseInfo/accompanyingItem'
,
component
:
_import
(
'vehicle/accompanyingItem/index'
),
component
:
_import
(
'vehicle/accompanyingItem/index'
),
...
...
src/store/getters.js
View file @
3df4fdab
...
@@ -45,6 +45,7 @@ const getters = {
...
@@ -45,6 +45,7 @@ const getters = {
allAccItem
:
state
=>
state
.
baseInfo
.
allAccItem
,
allAccItem
:
state
=>
state
.
baseInfo
.
allAccItem
,
allAccItemIdAndName
:
state
=>
state
.
baseInfo
.
allAccItemIdAndName
,
allAccItemIdAndName
:
state
=>
state
.
baseInfo
.
allAccItemIdAndName
,
belong2Type
:
state
=>
state
.
baseInfo
.
belong2Type
,
belong2Type
:
state
=>
state
.
baseInfo
.
belong2Type
,
companyStatusAndCode
:
state
=>
state
.
baseInfo
.
companyStatusAndCode
companyStatusAndCode
:
state
=>
state
.
baseInfo
.
companyStatusAndCode
,
campsiteStatusAndCode
:
state
=>
state
.
baseInfo
.
campsiteStatusAndCode
};
};
export
default
getters
export
default
getters
src/store/modules/baseInfo.js
View file @
3df4fdab
...
@@ -140,6 +140,28 @@ const baseInfo = {
...
@@ -140,6 +140,28 @@ const baseInfo = {
val
:
'装修中'
val
:
'装修中'
}
}
},
},
campsiteStatusAndCode
:
{
1
:
{
code
:
1
,
val
:
'筹备中'
},
2
:
{
code
:
2
,
val
:
'试业中'
},
3
:
{
code
:
3
,
val
:
'选址中'
},
4
:
{
code
:
4
,
val
:
'已开业'
},
5
:
{
code
:
5
,
val
:
'装修中'
}
},
belong2Type
:
{
belong2Type
:
{
1
:
{
1
:
{
code
:
1
,
code
:
1
,
...
...
src/views/baseInfo/campsite/index.vue
0 → 100644
View file @
3df4fdab
This diff is collapsed.
Click to expand it.
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