Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit db2e9746
authored
May 27, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第二轮bug修复
1 parent
8e881000
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
src/api/modules/baseInfo.js
src/views/baseInfo/components/departmentTree.vue
src/views/baseInfo/components/search.vue
src/views/baseInfo/relevance.vue
src/api/modules/baseInfo.js
View file @
db2e974
...
...
@@ -17,7 +17,7 @@ const getMerchantTree = params => {
})
}
const
findMerchantTreeList
=
params
=>
{
params
.
method
=
'merchants.api.me
nu.findMerchant
ByPage'
params
.
method
=
'merchants.api.me
rchant.findEntMicroMerchants
ByPage'
return
http
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
...
...
src/views/baseInfo/components/departmentTree.vue
View file @
db2e974
...
...
@@ -28,7 +28,7 @@
<div
class=
"tree-list"
:style=
"
{ height: listHeight + 'px' }">
<el-radio-group
v-model=
"checkObj.first"
@
change=
"selectChange"
>
<div
class=
"tree-item"
v-for=
"item in departmentList"
:key=
"item.departmentId"
@
click
.
self=
"toNext(item, $event)"
>
<el-radio
:label=
"item"
>
{{
item
.
departmentName
}}
</el-radio>
<el-radio
:label=
"item"
:disabled=
"item.relevanceMerchant"
>
{{
item
.
departmentName
}}
</el-radio>
<i
v-show=
"item.childrenNum"
class=
"el-icon-arrow-right"
></i>
</div>
</el-radio-group>
...
...
@@ -98,7 +98,7 @@ export default {
selectChange
(
val
)
{
console
.
log
(
val
)
this
.
$set
(
this
.
selectLevel
,
val
.
depth
-
1
,
val
)
this
.
lastLevel
=
val
.
childrenN
ms
?
true
:
false
this
.
lastLevel
=
val
.
childrenN
um
?
true
:
false
},
// 跳转下一级,需判断是否有下一级
toNext
(
item
,
event
)
{
...
...
@@ -111,8 +111,10 @@ export default {
},
// 点击页签,返回
backLevel
(
item
)
{
console
.
log
(
item
)
this
.
checkObj
.
first
=
''
this
.
lastLevel
=
item
.
childrenNms
?
true
:
false
this
.
lastLevel
=
item
.
childrenNum
?
true
:
false
console
.
log
(
this
.
lastLevel
)
this
.
selectLevel
=
this
.
selectLevel
.
slice
(
0
,
item
.
depth
-
1
)
this
.
getDepartmentList
(
item
.
depth
-
1
)
}
...
...
src/views/baseInfo/components/search.vue
View file @
db2e974
...
...
@@ -12,7 +12,7 @@
<ul
v-if=
"name == 'merchant'"
class=
"el-scrollbar__view el-cascader__suggestion-list"
v-infinite-scroll=
"load"
style=
"overflow: auto"
>
<template
v-if=
"searchList.length"
>
<template
v-for=
"item in searchList"
>
<li
:key=
"item.id"
class=
"el-cascader__suggestion-item"
:class=
"item.departmentName == searchKey.departmentName"
v-if=
"
item.merchantAccountLevel == 4
"
@
click=
"selectMerchantItem(item)"
>
<li
:key=
"item.id"
class=
"el-cascader__suggestion-item"
:class=
"item.departmentName == searchKey.departmentName"
v-if=
"
!item.childrenNums
"
@
click=
"selectMerchantItem(item)"
>
<div>
{{
item
.
merchantName
}}
</div>
<div
class=
"parent-merchant"
>
{{
item
.
parentMerchant
}}
</div>
</li>
...
...
@@ -130,14 +130,9 @@ export default {
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
pageParams
))
params
.
merchantName
=
val
// supRangeMerchantNo-商户ID
params
.
supRangeMerchantNo
=
this
.
$globalState
.
session
.
merchantId
// isFindSubMerchant-查询范围是不是子商户
params
.
isFindSubMerchant
=
true
// isRelevance-是否已关联企微:1.已关联;2.未关联
params
.
isRelevance
=
2
// status-账户状态:2。已发布
params
.
status
=
2
params
.
parentMerchantNo
=
this
.
$globalState
.
session
.
merchantId
this
.
$apis
.
baseInfo
.
findMerchantTreeList
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
length
)
{
this
.
count
=
res
.
count
if
(
res
.
pageNum
==
1
)
{
...
...
src/views/baseInfo/relevance.vue
View file @
db2e974
...
...
@@ -116,6 +116,7 @@ export default {
},
// 获取当前选择的商户
getCurMerchant
(
val
)
{
console
.
log
(
val
)
this
.
curTempMerchant
=
{
merchantId
:
val
.
merchantNo
,
merchantName
:
val
.
merchantName
...
...
@@ -148,6 +149,7 @@ export default {
...
this
.
curTempMerchant
,
...
this
.
tempDepart
}
console
.
log
(
this
.
curGLData
)
let
flag
=
false
this
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
departmentId
==
this
.
curGLData
.
departmentId
||
item
.
merchantId
==
this
.
curGLData
.
merchantId
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment