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
b2fc1acd
Commit
b2fc1acd
authored
Sep 01, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌授权
parent
26ca5b61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
2 deletions
+38
-2
customer.js
src/api/ecw/customer.js
+8
-0
query.vue
src/views/ecw/customer/query.vue
+30
-2
No files found.
src/api/ecw/customer.js
View file @
b2fc1acd
...
...
@@ -155,3 +155,11 @@ export function userMemberUserList(){
method
:
'
get
'
})
}
//查看某客户授权的品牌
export
function
getBrankByCustomer
(
data
){
return
request
({
url
:
'
/ecw/product-brank/getBrankByCustomer
'
,
method
:
'
post
'
,
data
,
})
}
src/views/ecw/customer/query.vue
View file @
b2fc1acd
...
...
@@ -159,7 +159,23 @@
<
/el-tab-pane
>
<
el
-
tab
-
pane
label
=
"
品牌授权
"
>
<
el
-
table
border
style
=
"
width:100%
"
:
data
=
"
brandAuthorizationList
"
>
<
el
-
table
-
column
type
=
"
index
"
prop
=
"
序号
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
中文标题
"
prop
=
"
titleZh
"
><
/el-table-column
>
<
el
-
table
-
column
prop
=
"
titleEn
"
label
=
"
英文标题
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
有无备案
"
>
<
template
v
-
slot
=
"
{row
}
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BRAND_REG_TYPE
"
:
value
=
"
row.filing
"
/>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
创建时间
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
parseTime
(
row
.
createTime
)
}}
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"
brandAuthorizationTotal > 0
"
:
total
=
"
brandAuthorizationTotal
"
:
page
.
sync
=
"
brandAuthorizationFrom.pageNo
"
:
limit
.
sync
=
"
brandAuthorizationFrom.pageSize
"
@
pagination
=
"
getBrankByCustomerList
"
/>
<
/el-tab-pane
>
<
el
-
tab
-
pane
label
=
"
信用日志
"
>
...
...
@@ -175,7 +191,7 @@
<
/template
>
<
script
>
import
{
getCustomer
,
getCustomerSelect
}
from
'
@/api/ecw/customer
'
import
{
getCustomer
,
getCustomerSelect
,
getBrankByCustomer
}
from
'
@/api/ecw/customer
'
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getNodeList
}
from
'
@/api/ecw/node
'
...
...
@@ -215,6 +231,7 @@ export default {
listServiceUser
().
then
(
r
=>
{
this
.
serviceUserList
=
r
.
data
}
)
this
.
getBrankByCustomerList
()
}
,
data
()
{
return
{
...
...
@@ -263,6 +280,12 @@ export default {
weightUnit
:
undefined
,
createTime
:
undefined
}
,
brandAuthorizationFrom
:{
pageNo
:
1
,
pageSize
:
10
,
}
,
brandAuthorizationList
:[],
brandAuthorizationTotal
:
0
,
}
}
,
computed
:
{
...
...
@@ -283,6 +306,11 @@ export default {
id
()
{
return
this
.
customerId
?
parseInt
(
this
.
customerId
)
:
undefined
}
}
,
methods
:{
getBrankByCustomerList
(){
getBrankByCustomer
({...
this
.
brandAuthorizationFrom
,
customerId
:
this
.
id
}
).
then
(
r
=>
{
this
.
brandAuthorizationList
=
r
.
data
.
list
;
this
.
brandAuthorizationTotal
=
r
.
data
.
total
}
)
}
}
}
<
/script
>
...
...
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