Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
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
office
haoban-3
Commits
31a6f5af
Commit
31a6f5af
authored
Sep 26, 2022
by
Jings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 增加区经关联视图
parent
11ec5683
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
related-table.vue
src/components/company/related-table.vue
+14
-5
No files found.
src/components/company/related-table.vue
View file @
31a6f5af
...
@@ -12,15 +12,15 @@
...
@@ -12,15 +12,15 @@
</div>
</div>
<div
class=
"m-t-20"
>
<div
class=
"m-t-20"
>
<el-table
class=
"select-table"
ref=
"multipleTable"
height=
"500"
:data=
"tableData"
tooltip-effect=
"dark"
:style=
"
{ width: '100%' }">
<el-table
class=
"select-table"
ref=
"multipleTable"
height=
"500"
:data=
"tableData"
tooltip-effect=
"dark"
:style=
"
{ width: '100%' }">
<el-table-column
label=
"导购code"
show-overflow-tooltip
>
<el-table-column
label=
"导购code"
show-overflow-tooltip
v-if=
"!isType"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
clerkCode
||
'--'
}}
</
template
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
clerkCode
||
'--'
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"导购姓名
"
show-overflow-tooltip
>
<el-table-column
prop=
""
:label=
"isType ? '督导姓名' : '导购姓名'
"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
clerkName
||
'--'
}}
{{
scope
.
row
.
clerkName
||
'--'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"导购手机号
"
show-overflow-tooltip
>
<el-table-column
prop=
""
:label=
"isType ? '督导手机号' : '导购手机号'
"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
clerkPhoneNumber
||
'--'
}}
{{
scope
.
row
.
clerkPhoneNumber
||
'--'
}}
</
template
>
</
template
>
...
@@ -35,11 +35,16 @@
...
@@ -35,11 +35,16 @@
{{
scope
.
row
.
brandName
||
'--'
}}
{{
scope
.
row
.
brandName
||
'--'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"关联门店"
>
<el-table-column
prop=
""
label=
"关联门店"
v-if=
"!isType"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
storeName
||
'--'
}}
<el-tag
type=
"danger"
v-if=
"scope.row.mainStoreFlag"
>
主门店
</el-tag></p>
<p>
{{
scope
.
row
.
storeName
||
'--'
}}
<el-tag
type=
"danger"
v-if=
"scope.row.mainStoreFlag"
>
主门店
</el-tag></p>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"关联门店"
v-else
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
manageStoreCount
?
`${scope.row.manageStoreCount
}
家`
:
'--'
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
""
label
=
"关联时间"
show
-
overflow
-
tooltip
>
<
el
-
table
-
column
prop
=
""
label
=
"关联时间"
show
-
overflow
-
tooltip
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
div
class
=
"color-606266 line-18"
>
{{
scope
.
row
.
createTime
|
timeStampToYmd
}}
<
/div
>
<
div
class
=
"color-606266 line-18"
>
{{
scope
.
row
.
createTime
|
timeStampToYmd
}}
<
/div
>
...
@@ -87,7 +92,8 @@ export default {
...
@@ -87,7 +92,8 @@ export default {
pageSize
:
20
,
pageSize
:
20
,
total
:
0
,
total
:
0
,
tableData
:
[],
tableData
:
[],
addShow
:
false
addShow
:
false
,
isType
:
0
}
;
}
;
}
,
}
,
computed
:
{
}
,
computed
:
{
}
,
...
@@ -226,6 +232,9 @@ export default {
...
@@ -226,6 +232,9 @@ export default {
let
resData
=
res
.
data
;
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
if
(
resData
.
errorCode
==
1
)
{
that
.
tableData
=
resData
.
result
||
[];
that
.
tableData
=
resData
.
result
||
[];
if
(
that
.
tableData
.
length
)
{
this
.
isType
=
that
.
tableData
[
0
].
manageFlag
;
}
return
false
;
return
false
;
}
}
errMsg
.
errorMsg
(
resData
);
errMsg
.
errorMsg
(
resData
);
...
...
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