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
b374f158
Commit
b374f158
authored
Jun 02, 2021
by
陈羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 代理不可编辑【导购编辑】
parent
d5cf62ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
23 deletions
+26
-23
authMerchant.vue
src/views/business/authMerchant.vue
+26
-23
No files found.
src/views/business/authMerchant.vue
View file @
b374f158
...
...
@@ -29,7 +29,8 @@
</div>
</div>
<div
class=
"m-t-20"
>
<el-table
class=
"select-table"
ref=
"multipleTable"
v-loading=
"loading"
:data=
"tableData"
tooltip-effect=
"dark"
:style=
"
{ width: '100%', minHeight: tableH }">
<el-table
class=
"select-table"
ref=
"multipleTable"
v-loading=
"loading"
:data=
"tableData"
tooltip-effect=
"dark"
:style=
"
{ width: '100%', minHeight: tableH }">
<el-table-column
prop=
""
label=
"商户列表"
show-overflow-tooltip
min-width=
"200"
>
<template
slot-scope=
"scope"
>
<div
class=
"ul-li-cell flex"
>
...
...
@@ -38,8 +39,8 @@
</div>
<div
class=
"cell-info"
>
<div
class=
"cell-info-name flex font-14 color-303133"
>
<span
class=
"gic-name color-606266"
>
{{
scope
.
row
.
enterpriseName
||
'--'
}}
</span
><span
class=
"gic-version color-606266"
>
{{
scope
.
row
.
version
||
'3.0'
}}
</span>
<span
class=
"gic-name color-606266"
>
{{
scope
.
row
.
enterpriseName
||
'--'
}}
</span
><span
class=
"gic-version color-606266"
>
{{
scope
.
row
.
version
||
'3.0'
}}
</span>
</div>
<div
class=
"cell-info-name flex font-14 color-606266"
>
<span
class=
"gic-name"
>
{{
scope
.
row
.
brandName
||
'--'
}}
</span>
...
...
@@ -49,24 +50,23 @@
</
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"企业类型"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
><span
class=
"color-606266"
>
{{
scope
.
row
.
wxEnterpriseType
|
wxEnterpriseTypeFilter
}}
</span></
template
>
<
template
slot-scope=
"scope"
><span
class=
"color-606266"
>
{{
scope
.
row
.
wxEnterpriseType
|
wxEnterpriseTypeFilter
}}
</span></
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"开平类型"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
><span
class=
"color-606266"
>
{{
scope
.
row
.
memberOpenCardFlag
?
'不同开平'
:
'同一开平'
}}
</span></
template
>
<
template
slot-scope=
"scope"
><span
class=
"color-606266"
>
{{
scope
.
row
.
memberOpenCardFlag
?
'不同开平'
:
'同一开平'
}}
</span></
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"导购编辑"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.clerkEditFlag"
:active-value=
"1"
:inactive-value=
"0"
@
change=
"clerkEditFlagChange(scope.row, scope.$index)"
></el-switch>
<el-switch
v-model=
"scope.row.clerkEditFlag"
:active-value=
"1"
:inactive-value=
"0"
:disabled=
"scope.row.wxEnterpriseType===1"
@
change=
"clerkEditFlagChange(scope.row, scope.$index)"
>
</el-switch>
</
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"提交人"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
><span
class=
"color-606266"
>
{{
scope
.
row
.
staffName
||
'--'
}}
</span></
template
>
<
template
slot-scope=
"scope"
><span
class=
"color-606266"
>
{{
scope
.
row
.
staffName
||
'--'
}}
</span></
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"完成时间"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
...
...
@@ -78,12 +78,15 @@
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"AddAuthMerchant(scope.row)"
>
编辑授权设置
</el-button>
<el-button
type=
"text"
@
click=
"toStoreList(scope.row)"
>
绑定门店列表
</el-button>
<el-button
slot=
"reference"
type=
"text"
size=
"small"
@
click=
"refreshStoreBind(scope.row)"
>
刷新门店
</el-button>
<el-button
slot=
"reference"
type=
"text"
size=
"small"
@
click=
"refreshStoreBind(scope.row)"
>
刷新门店
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"block common-wrap__page text-right m-t-24"
v-if=
"tableData.length != 0"
>
<dm-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"8"
>
</dm-pagination>
<dm-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"8"
>
</dm-pagination>
</div>
</div>
</div>
...
...
@@ -201,7 +204,7 @@ export default {
}
errMsg
.
errorMsg
(
resData
);
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
that
.
loading
=
false
;
that
.
$message
.
error
({
duration
:
1000
,
...
...
@@ -233,7 +236,7 @@ export default {
}
errMsg
.
errorMsg
(
resData
);
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
that
.
loading
=
false
;
that
.
$message
.
error
({
duration
:
1000
,
...
...
@@ -241,7 +244,7 @@ export default {
});
});
})
.
catch
(()
=>
{});
.
catch
(()
=>
{
});
},
clerkEditFlagChange
(
item
,
index
)
{
const
that
=
this
;
...
...
@@ -253,7 +256,7 @@ export default {
})
.
then
(()
=>
{
that
.
loading
=
true
;
let
para
=
{
wxEnterprieseRelatedId
:
item
.
wxEnterpriseRelatedId
,
clerkEditFlag
:
that
.
tableData
[
index
].
clerkEditFlag
?
1
:
0
};
let
para
=
{
wxEnterprieseRelatedId
:
item
.
wxEnterpriseRelatedId
,
clerkEditFlag
:
that
.
tableData
[
index
].
clerkEditFlag
?
1
:
0
};
getRequest
(
'/haoban-manage3-web/set-clerk-edit'
,
para
)
.
then
(
res
=>
{
that
.
loading
=
false
;
...
...
@@ -269,7 +272,7 @@ export default {
this
.
getTableList
();
errMsg
.
errorMsg
(
resData
);
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
that
.
loading
=
false
;
that
.
$message
.
error
({
duration
:
1000
,
...
...
@@ -279,16 +282,16 @@ export default {
});
})
.
catch
(()
=>
{
that
.
tableData
[
index
].
clerkEditFlag
=
that
.
tableData
[
index
].
clerkEditFlag
?
0
:
1
;
that
.
tableData
[
index
].
clerkEditFlag
=
that
.
tableData
[
index
].
clerkEditFlag
?
0
:
1
;
});
}
},
watch
:
{
activeBrand
:
function
(
newData
,
oldData
)
{
activeBrand
:
function
(
newData
,
oldData
)
{
const
that
=
this
;
that
.
activeBrand
=
newData
;
},
activeGroup
:
function
(
newData
,
oldData
)
{
activeGroup
:
function
(
newData
,
oldData
)
{
const
that
=
this
;
that
.
activeGroup
=
newData
;
}
...
...
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