Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
e06d4436
Commit
e06d4436
authored
Mar 06, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑页面,查看页面身份证详细权限配置,查看客户详情,路由修改
parent
88ee2fdd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
index.js
src/router/index.js
+7
-7
edit.vue
src/views/ecw/customer/edit.vue
+2
-2
query.vue
src/views/ecw/customer/query.vue
+10
-6
No files found.
src/router/index.js
View file @
e06d4436
...
@@ -291,13 +291,13 @@ export const constantRoutes = [
...
@@ -291,13 +291,13 @@ export const constantRoutes = [
name
:
'
perfect
'
,
name
:
'
perfect
'
,
meta
:
{
title
:
'
完善客户
'
,
titleEn
:
'
Perfect customers
'
,
icon
:
''
}
meta
:
{
title
:
'
完善客户
'
,
titleEn
:
'
Perfect customers
'
,
icon
:
''
}
},
},
{
//
{
path
:
'
query/:customerId(
\\
d+)
'
,
//
path: 'query/:customerId(\\d+)',
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/customer/query
'
),
//
component: (resolve) => import('@/views/ecw/customer/query'),
props
:
true
,
//
props: true,
name
:
'
customerQuery
'
,
//
name: 'customerQuery',
meta
:
{
title
:
'
客户详情
'
,
titleEn
:
'
Customer details
'
,
icon
:
''
,
activeMenu
:
'
/customer/customer
'
}
//
meta: {title: '客户详情',titleEn:'Customer details', icon: '', activeMenu: '/customer/customer'}
}
//
}
]
]
},
},
{
{
...
...
src/views/ecw/customer/edit.vue
View file @
e06d4436
...
@@ -214,10 +214,10 @@
...
@@ -214,10 +214,10 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
v-hasPermi=
"['ecw:customer:
query
-card']"
:label=
"$t('身份证姓名')"
>
<el-form-item
v-hasPermi=
"['ecw:customer:
edit
-card']"
:label=
"$t('身份证姓名')"
>
<el-input
v-model=
"form.carName"
></el-input>
<el-input
v-model=
"form.carName"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
v-hasPermi=
"['ecw:customer:
query
-card']"
:label=
"$t('身份证号码')"
>
<el-form-item
v-hasPermi=
"['ecw:customer:
edit
-card']"
:label=
"$t('身份证号码')"
>
<el-input
v-model=
"form.carNo"
></el-input>
<el-input
v-model=
"form.carNo"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
...
src/views/ecw/customer/query.vue
View file @
e06d4436
...
@@ -47,8 +47,8 @@
...
@@ -47,8 +47,8 @@
<
el
-
image
v
-
show
=
"
!!customer.picture
"
:
src
=
"
customer.picture
"
style
=
"
width: 100px;height: 100px
"
><
/el-image
>
<
el
-
image
v
-
show
=
"
!!customer.picture
"
:
src
=
"
customer.picture
"
style
=
"
width: 100px;height: 100px
"
><
/el-image
>
<
/el-descriptions-item
>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('备注')
"
>
{{
customer
.
remarks
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('备注')
"
>
{{
customer
.
remarks
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('身份证姓名')
"
>
{{
customer
.
carName
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
v
-
if
=
"
permissions.includes('ecw:customer:query-card')
"
:
label
=
"
$t('身份证姓名')
"
>
{{
customer
.
carName
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('身份证号码')
"
>
{{
customer
.
carName
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
v
-
if
=
"
permissions.includes('ecw:customer:query-card')
"
:
label
=
"
$t('身份证号码')
"
>
{{
customer
.
carName
}}
<
/el-descriptions-item
>
<!--
<
el
-
descriptions
-
item
:
label
=
"
$t('信用等级')
"
>
{{
customer
}}
<
/el-descriptions-item>--
>
<!--
<
el
-
descriptions
-
item
:
label
=
"
$t('信用等级')
"
>
{{
customer
}}
<
/el-descriptions-item>--
>
<
/el-descriptions
>
<
/el-descriptions
>
<
/el-card
>
<
/el-card
>
...
@@ -460,15 +460,13 @@ import {getCountry} from "@/api/ecw/country"
...
@@ -460,15 +460,13 @@ import {getCountry} from "@/api/ecw/country"
export
default
{
export
default
{
name
:
'
query
'
,
name
:
'
query
'
,
props
:
{
customerId
:
String
}
,
components
:
{
components
:
{
Template
,
Template
,
CustomerFollow
,
CustomerFollow
,
CustomerComplaint
CustomerComplaint
}
,
}
,
created
()
{
created
()
{
this
.
permissions
//获取信用类型
//获取信用类型
getCreditRulePage
({
page
:
1
,
rows
:
999
,
type
:
2
}
).
then
(
r
=>
{
getCreditRulePage
({
page
:
1
,
rows
:
999
,
type
:
2
}
).
then
(
r
=>
{
this
.
creditTypeList
=
r
.
data
.
list
this
.
creditTypeList
=
r
.
data
.
list
...
@@ -618,6 +616,12 @@ export default {
...
@@ -618,6 +616,12 @@ export default {
}
}
}
,
}
,
computed
:
{
computed
:
{
permissions
(){
return
this
.
$store
.
state
.
user
.
permissions
}
,
customerId
(){
return
this
.
$route
.
params
.
customerId
;
}
,
isChinese
(){
isChinese
(){
return
this
.
$i18n
.
locale
===
'
zh_CN
'
return
this
.
$i18n
.
locale
===
'
zh_CN
'
}
,
}
,
...
...
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