Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
portalhtml
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
rex
portalhtml
Commits
47978b48
Commit
47978b48
authored
Oct 18, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jqh-权限管理
parent
cda49cf8
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
35 deletions
+30
-35
customers.js
src/router/modules/customers.js
+9
-15
models.js
src/router/modules/models.js
+15
-15
permission.js
src/store/modules/permission.js
+1
-1
index.vue
src/views/customers/customers-overview/index.vue
+2
-1
index.vue
src/views/customers/municipal-agentList/index.vue
+2
-2
index.vue
src/views/customers/provincial-agentList/index.vue
+1
-1
No files found.
src/router/modules/customers.js
View file @
47978b48
...
...
@@ -23,41 +23,35 @@ const customersRouter = {
{
path
:
'/customersAdd'
,
component
:
()
=>
import
(
'@/views/customers/customers-add'
),
name
:
'CustomersAdd'
,
name
:
'Customers
Overview
Add'
,
meta
:
{
title
:
'代理商新增'
},
hidden
:
true
,
},
{
path
:
'/CustomersOverview
/tota
l'
,
path
:
'/CustomersOverview
-detai
l'
,
component
:
()
=>
import
(
'@/views/customers/customers-details/index.vue'
),
name
:
'
customersDetails
'
,
name
:
'
CustomersOverviewDetail
'
,
meta
:
{
title
:
'总代理商详情'
},
hidden
:
true
,
},
{
path
:
'/
customersDetails/province
'
,
path
:
'/
CustomersProvince-detail
'
,
component
:
()
=>
import
(
'@/views/customers/customers-details/province.vue'
),
name
:
'
customersDetails
'
,
name
:
'
CustomersProvinceDetail
'
,
meta
:
{
title
:
'省代理商详情'
},
hidden
:
true
,
},
{
path
:
'/
customersDetails/area
'
,
path
:
'/
CustomersCity-detail
'
,
component
:
()
=>
import
(
'@/views/customers/customers-details/area.vue'
),
name
:
'
customersDetails
'
,
name
:
'
CustomersCityDetail
'
,
meta
:
{
title
:
'城市代理商详情'
},
hidden
:
true
,
},
// {
// path: '/potential',
// component: () => import('@/views/customers/potential-customers'),
// name: 'PotentialCustomers',
// meta: { title: 'potentialCustomers' }
// },
{
path
:
'/potential-list'
,
component
:
()
=>
import
(
'@/views/customers/potential-list'
),
name
:
'
PotentialList
'
,
name
:
'
CustomersProcessDetail
'
,
meta
:
{
title
:
'省级代理商审批'
},
hidden
:
true
,
},
...
...
@@ -82,7 +76,7 @@ const customersRouter = {
{
path
:
'/citypotential-list'
,
component
:
()
=>
import
(
'@/views/customers/citypotenial-list'
),
name
:
'C
ityPotenialList
'
,
name
:
'C
ustomersProcessDetail
'
,
meta
:
{
title
:
'城市代理商审批'
},
hidden
:
true
,
},
{
...
...
src/router/modules/models.js
View file @
47978b48
...
...
@@ -35,22 +35,22 @@ const modelsRouter = {
path
:
'all'
,
component
:
()
=>
import
(
'@/views/models/all-models'
),
name
:
'TemplatesAll'
,
meta
:
{
title
:
'模板'
}
meta
:
{
title
:
'
全部
模板'
}
},
{
path
:
'detail'
,
component
:
()
=>
import
(
'@/views/contract/contract-detail/detail'
),
name
:
'ContractDetail'
,
hidden
:
true
,
meta
:
{
title
:
'合同详情'
}
},
{
path
:
'template-edit'
,
component
:
()
=>
import
(
'@/views/contract/template-detail/edit'
),
name
:
'ContractTemplateDetail'
,
hidden
:
true
,
meta
:
{
title
:
'合同模板编辑'
}
}
//
{
//
path: 'detail',
//
component: () => import('@/views/contract/contract-detail/detail'),
//
name: 'ContractDetail',
//
hidden: true,
//
meta: { title: '合同详情' }
//
},
//
{
//
path: 'template-edit',
//
component: () => import('@/views/contract/template-detail/edit'),
//
name: 'ContractTemplateDetail',
//
hidden: true,
//
meta: { title: '合同模板编辑' }
//
}
]
}
export
default
modelsRouter
src/store/modules/permission.js
View file @
47978b48
...
...
@@ -80,7 +80,7 @@ const actions = {
return
new
Promise
(
resolve
=>
{
const
paths
=
JSON
.
parse
(
localStorage
.
getItem
(
'PATHS'
))
let
accessedRoutes
const
test
=
tru
e
// 是否测试阶段
const
test
=
fals
e
// 是否测试阶段
if
(
test
)
{
accessedRoutes
=
asyncRoutes
}
else
{
...
...
src/views/customers/customers-overview/index.vue
View file @
47978b48
...
...
@@ -12,6 +12,7 @@
<el-button
type=
"primary"
icon=
"el-icon-plus"
v-permission=
'20101'
@
click=
"handleAdd"
>
添加
</el-button>
</
template
>
...
...
@@ -54,7 +55,7 @@ export default {
// 编辑
handleEdit
(
row
)
{
console
.
log
(
row
)
this
.
$router
.
push
({
path
:
'/
customersDetails/tota
l'
,
query
:
{
objectID
:
row
.
ObjectID
}})
this
.
$router
.
push
({
path
:
'/
CustomersOverview-detai
l'
,
query
:
{
objectID
:
row
.
ObjectID
}})
},
// 添加
handleAdd
()
{
...
...
src/views/customers/municipal-agentList/index.vue
View file @
47978b48
...
...
@@ -47,8 +47,8 @@ export default {
methods
:
{
// 编辑
handleEdit
(
row
)
{
this
.
$router
.
push
({
path
:
'/
customersDetails/area
'
,
query
:
{
objectID
:
row
.
ObjectID
}})
console
.
log
(
"编辑"
,
row
)
this
.
$router
.
push
({
path
:
'/
CustomersCity-detail
'
,
query
:
{
objectID
:
row
.
ObjectID
}})
//
console.log("编辑", row)
},
// 添加
handleAdd
()
{
...
...
src/views/customers/provincial-agentList/index.vue
View file @
47978b48
...
...
@@ -48,7 +48,7 @@ export default {
methods
:
{
// 编辑
handleEdit
(
row
)
{
this
.
$router
.
push
({
path
:
'/
customersDetails/province
'
,
query
:
{
objectID
:
row
.
ObjectID
}})
this
.
$router
.
push
({
path
:
'/
CustomersProvince-detail
'
,
query
:
{
objectID
:
row
.
ObjectID
}})
console
.
log
(
"编辑"
,
row
)
},
// 添加
...
...
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