Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xoadoPlatform
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
yaohui
xoadoPlatform
Commits
e1be583d
Commit
e1be583d
authored
Nov 24, 2021
by
weix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌管理,品牌配置
parent
03d1a603
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
278 additions
and
23 deletions
+278
-23
.env.development
.env.development
+1
-0
.env.production
.env.production
+1
-0
.gitignore
.gitignore
+1
-1
ip.js
ip.js
+1
-0
setting.config.js
src/config/default/setting.config.js
+1
-1
judgeType.js
src/mixins/judgeType.js
+12
-0
setting.js
src/port/platfrom/setting.js
+11
-0
index.js
src/router/index.js
+32
-10
index.vue
src/views/login/index.vue
+18
-11
settingDialog.vue
src/views/platform/components/settingDialog.vue
+13
-0
setting.vue
src/views/platform/setting.vue
+174
-0
settingDetail.vue
src/views/platform/settingDetail.vue
+13
-0
No files found.
.env.development
View file @
e1be583d
...
...
@@ -16,3 +16,4 @@ VUE_APP_BASE_API11 = 'https://oss.xoado.com/v1/'
VUE_APP_BASE_API12 = 'http://192.168.0.251:8195'
VUE_APP_BASE_API13 = 'https://projects.xoado.com/invoice'
VUE_APP_BASE_API14 = 'https://projects.xoado.com/message'
VUE_APP_BASE_API15 = 'http://192.168.0.251:8199/smart'
.env.production
View file @
e1be583d
...
...
@@ -16,3 +16,4 @@ VUE_APP_BASE_API11 = 'https://oss.xoado.com/v1/'
VUE_APP_BASE_API12 = 'http://192.168.0.251:8195'
VUE_APP_BASE_API13 = 'https://projects.xoado.com/invoice'
VUE_APP_BASE_API14 = 'https://projects.xoado.com/message'
VUE_APP_BASE_API15 = 'http://192.168.0.251:8199/smart'
.gitignore
View file @
e1be583d
node_modules/
.idea/
brand
/
xoado
/
ip.js
View file @
e1be583d
...
...
@@ -16,6 +16,7 @@ VUE_APP_BASE_API11 = 'https://oss.xoado.com/v1/'
VUE_APP_BASE_API12
=
'http://192.168.0.251:8195'
VUE_APP_BASE_API13
=
'https://projects.xoado.com/invoice'
VUE_APP_BASE_API14
=
'https://projects.xoado.com/message'
VUE_APP_BASE_API15
=
'http://192.168.0.251:8199/smart'
VUE_APP_BASE_API1
=
'https://apps.xoado.com'
...
...
src/config/default/setting.config.js
View file @
e1be583d
...
...
@@ -7,7 +7,7 @@ const setting = {
// 开发以及部署的URL
publicPath
:
''
,
// 生产环境构建文件的目录名
outputDir
:
'
brand
'
,
outputDir
:
'
xoado
'
,
// 放置生产环境的静态资源(js、css、img、fonts)的目录
assetsDir
:
'static'
,
// 开发环境每次保存时是否输出eslint编译警告
...
...
src/mixins/judgeType.js
View file @
e1be583d
...
...
@@ -621,6 +621,18 @@ export default {
// 验证是否包含特殊字符,包含则返回true
let
p
=
/
[
`~!@#$%^&*()_
\-
+=<>?:"{}|,.
\/
;'
\\
[
\]
·~!@#¥%……&*()——
\-
+={}|《》?:“”【】、;‘',。、
]
/im
;
return
p
.
test
(
str
);
},
platformOvertTypeText
(
type
)
{
type
=
Number
(
type
);
switch
(
type
)
{
case
0
:
return
'公有'
case
1
:
return
'私有'
case
2
:
return
'联盟'
default
:
}
}
}
}
src/port/platfrom/setting.js
0 → 100644
View file @
e1be583d
import
{
get
,
post
,
put
,
deletes
}
from
'@/request/http'
export
function
platformList
(
data
)
{
const
url
=
process
.
env
.
VUE_APP_BASE_API15
+
'/platform/config/query'
;
return
post
(
url
,
data
)
}
export
function
platformInfosList
(
data
)
{
const
url
=
process
.
env
.
VUE_APP_BASE_API15
+
'/platform/infos'
;
return
get
(
url
,
data
)
}
src/router/index.js
View file @
e1be583d
import
Vue
from
'vue'
import
VueRouter
from
'vue-router'
import
Layout
from
'@/layout'
import
{
routerMode
}
from
'@/config/index'
import
{
routerMode
}
from
'@/config/index'
import
store
from
'@/store/index'
Vue
.
use
(
VueRouter
)
...
...
@@ -15,7 +15,7 @@ export const currencyRoutes = [{
component
:
()
=>
import
(
/* webpackChunkName: "login" */
'@/views/login/index.vue'
),
hidden
:
true
},
},
{
path
:
'/Real'
,
component
:
()
=>
...
...
@@ -54,7 +54,8 @@ export const currencyRoutes = [{
* 动态路由
* @type {any}
*/
export
const
routes
=
[{
export
const
routes
=
[
{
path
:
'/'
,
name
:
'Company'
,
component
:
Layout
,
...
...
@@ -99,10 +100,11 @@ export const routes = [{
name
:
'DepartmentInformation'
,
component
:
()
=>
import
(
'@/views/DepartmentInformation/index.vue'
),
meta
:
{
title
:
'部门管理'
,
icon
:
'el-icon-user-solid'
}
meta
:
{
title
:
'部门管理'
,
icon
:
'el-icon-user-solid'
}
},
]
},
{
},
{
path
:
'/configure'
,
name
:
'configure'
,
component
:
Layout
,
...
...
@@ -117,24 +119,44 @@ export const routes = [{
name
:
'Enclosure'
,
component
:
()
=>
import
(
'@/views/configure/enclosure.vue'
),
meta
:
{
title
:
'围栏管理'
,
icon
:
'el-icon-aim'
}
meta
:
{
title
:
'围栏管理'
,
icon
:
'el-icon-aim'
}
},
{
path
:
'CarModel'
,
name
:
'CarModel'
,
component
:
()
=>
import
(
'@/views/configure/CarModel.vue'
),
meta
:
{
title
:
'车型管理'
,
icon
:
'el-icon-s-data'
}
meta
:
{
title
:
'车型管理'
,
icon
:
'el-icon-s-data'
}
},
{
path
:
'site'
,
name
:
'Site'
,
component
:
()
=>
import
(
'@/views/configure/site.vue'
),
meta
:
{
title
:
'站点管理'
,
icon
:
'el-icon-s-home'
}
meta
:
{
title
:
'站点管理'
,
icon
:
'el-icon-s-home'
}
},
]
}]
},
{
path
:
'/platform'
,
name
:
'platform'
,
component
:
Layout
,
redirect
:
'/platform'
,
meta
:
{
icon
:
'el-icon-setting'
,
title
:
'品牌管理'
},
children
:
[
{
path
:
'setting'
,
name
:
'Setting'
,
component
:
()
=>
import
(
'@/views/platform/setting.vue'
),
meta
:
{
title
:
'品牌配置'
,
icon
:
'el-icon-aim'
}
},
]
}
]
const
router
=
new
VueRouter
({
base
:
''
,
...
...
@@ -158,7 +180,7 @@ export function resetRouter() {
}
// 导航守卫 验证是否登录了 没有登录跳转到登录页面
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
if
(
to
.
path
===
'/login'
)
{
next
()
}
else
{
...
...
src/views/login/index.vue
View file @
e1be583d
...
...
@@ -527,18 +527,25 @@ export default {
this
.
back
()
})
}
else
{
await
this
.
operatorPrivilegesLogin
(
UserId
)
if
(
this
.
roleType
==
2
)
{
this
.
operatorBack
()
}
else
{
this
.
$message
.
error
(
ret
.
msg
)
this
.
$store
.
commit
(
'user/SET_TOKEN'
,
""
)
axios
.
defaults
.
headers
.
XOADOTOKENID
=
""
sessionStorage
.
removeItem
(
'organization'
)
sessionStorage
.
removeItem
(
'parentid'
)
this
.
$store
.
commit
(
'user/SET_TRANSPORTID'
,
""
)
sessionStorage
.
removeItem
(
'User'
)
this
.
$router
.
push
({
path
:
'/JoiningEnterprise'
,
query
:
{
type
:
1
}
})
// 验证是否为组织运营商
// await this.operatorPrivilegesLogin(UserId)
// if(this.roleType == 2) {
// this.operatorBack()
// }else{
// this.$message.error(ret.msg)
// this.$store.commit('user/SET_TOKEN', "")
// axios.defaults.headers.XOADOTOKENID = ""
// sessionStorage.removeItem('organization')
// sessionStorage.removeItem('parentid')
// this.$store.commit('user/SET_TRANSPORTID', "")
// sessionStorage.removeItem('User')
// }
}
}
...
...
src/views/platform/components/settingDialog.vue
0 → 100644
View file @
e1be583d
<
template
>
</
template
>
<
script
>
export
default
{
name
:
"settingDialog"
}
</
script
>
<
style
scoped
>
</
style
>
src/views/platform/setting.vue
0 → 100644
View file @
e1be583d
<
template
>
<el-card>
<el-row>
<div
class=
"title-left"
style=
"padding-left: 10px;font-weight: 800;"
>
品牌配置
</div>
</el-row>
<el-row
type=
"flex"
justify=
"end"
align=
"center"
>
<el-button
type=
"primary"
size=
"mini"
>
添加
</el-button>
</el-row>
<el-table
:data=
"data"
v-loading=
"tableLoading"
border
style=
"margin-top: 10px;"
:row-style=
"tableRowStyle"
@
row-dblclick=
"handledbClick"
:header-cell-style=
"tableHeaderColor"
>
<el-table-column
label=
"序号"
align=
"center"
type=
"index"
width=
"50"
>
</el-table-column>
<el-table-column
label=
"公开类型"
align=
"center"
prop=
"platformOvertType"
width=
"80"
>
<template
slot-scope=
"scope"
>
{{
platformOvertTypeText
(
scope
.
row
.
baseInfo
.
platformOvertType
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"品牌名称"
align=
"center"
prop=
"baseInfo"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
baseInfo
.
brandName
}}
</
template
>
</el-table-column>
<el-table-column
label=
"网站门户"
align=
"center"
prop=
"baseInfo"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
baseInfo
.
domain
.
length
>
0
?
scope
.
row
.
baseInfo
.
domain
[
0
]
:
''
}}
</
template
>
</el-table-column>
<el-table-column
label=
"开通业务渠道"
align=
"center"
prop=
"allowRunType"
>
<
template
slot-scope=
"scope"
>
<div
class=
"text-left-div"
>
<p
v-for=
"(item, index) in scope.row.allowRunType"
:key=
"'allowRunType'+index"
>
{{
item
.
name
}}
</p>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"对接渠道"
align=
"center"
prop=
"allowChannel"
>
<
template
slot-scope=
"scope"
>
<div
class=
"text-left-div"
>
<p
v-for=
"(item, index) in scope.row.allowChannel"
:key=
"'allowChannel'+index"
>
{{
item
.
name
}}
</p>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"运营联系人"
align=
"center"
prop=
"siteName"
>
<
template
slot-scope=
"scope"
>
<div
class=
"text-left-div"
>
<p>
{{
scope
.
row
.
operateName
}}
</p>
<p>
{{
scope
.
row
.
operatePhone
}}
</p>
<p>
{{
scope
.
row
.
operateEmail
}}
</p>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"财务联系人"
align=
"center"
prop=
"siteName"
>
<
template
slot-scope=
"scope"
>
<div
class=
"text-left-div"
>
<p>
{{
scope
.
row
.
financeName
}}
</p>
<p>
{{
scope
.
row
.
financePhone
}}
</p>
<p>
{{
scope
.
row
.
financeEmail
}}
</p>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"small"
type=
"text"
@
click=
"() =>
{}">
编辑
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination"
v-if=
"total > 10"
>
<el-pagination
background
layout=
"prev, pager, next, jumper, total"
:current-page=
"pageNum"
@
current-change=
"current_change"
:total=
"total"
>
</el-pagination>
</div>
</el-card>
</template>
<
script
>
import
{
platformList
,
platformInfosList
}
from
"@/port/platfrom/setting"
;
import
JudgeType
from
"@/mixins/judgeType"
;
export
default
{
name
:
"setting"
,
mixins
:
[
JudgeType
],
data
()
{
return
{
data
:
[],
tableLoading
:
false
,
total
:
0
,
pageNum
:
1
,
size
:
10
}
},
created
()
{
this
.
initTable
();
},
methods
:
{
current_change
(
page
)
{
this
.
pageNum
=
page
;
this
.
initTable
();
},
handledbClick
()
{
},
initTable
()
{
platformList
({
pageNum
:
this
.
pageNum
,
pageSize
:
this
.
size
})
.
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
this
.
data
=
res
.
data
.
contents
;
this
.
total
=
res
.
data
.
total
;
}
})
.
catch
(()
=>
{
})
},
// table变色,行
tableRowStyle
({
row
,
rowIndex
})
{
if
(
rowIndex
%
2
!==
0
)
{
return
{
'background-color'
:
'#e3f4ff'
};
}
},
// table变色,头
tableHeaderColor
({
row
,
column
,
rowIndex
,
columnIndex
})
{
return
{
'background-color'
:
'#0099ff'
,
color
:
'#ffffff'
};
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.pagination
{
margin-top
:
16px
;
text-align
:
right
;
}
.
title-left
:
:
before
{
content
:
''
;
position
:
absolute
;
left
:
0
;
top
:
10%
;
width
:
5px
;
height
:
80%
;
background-color
:
#0099ff
;
}
.text-left-div
{
p
{
text-align
:
left
;
padding-left
:
10px
;
}
}
</
style
>
src/views/platform/settingDetail.vue
0 → 100644
View file @
e1be583d
<
template
>
</
template
>
<
script
>
export
default
{
name
:
"settingDetail"
}
</
script
>
<
style
scoped
>
</
style
>
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