Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 23f0b138
authored
May 31, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跳转到sop后,人群和标签的显示
1 parent
8c91c993
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/selectCrowd.vue
src/views/sop/editSop/baseInfo.vue
View file @
23f0b13
...
@@ -301,6 +301,8 @@ export default {
...
@@ -301,6 +301,8 @@ export default {
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
if
(
this
.
routeInfo
.
addOrEdit
==
'edit'
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
'edit'
)
{
this
.
getInfo
()
this
.
getInfo
()
}
else
if
(
this
.
routeInfo
.
info
)
{
this
.
setCustomer
()
}
}
},
},
...
@@ -394,6 +396,15 @@ export default {
...
@@ -394,6 +396,15 @@ export default {
}
}
},
},
setCustomer
()
{
this
.
editForm
.
customerOptType
=
this
.
routeInfo
.
info
.
customerOptType
if
(
this
.
routeInfo
.
info
.
customerOptType
)
{
this
.
currentCustomerIdx
=
this
.
customerDataList
.
findIndex
(
item
=>
item
.
confId
==
this
.
editForm
.
customerOptType
)
this
.
editForm
[
this
.
customerDataList
[
this
.
currentCustomerIdx
].
reqListName
]
=
this
.
routeInfo
.
info
[
this
.
customerDataList
[
this
.
currentCustomerIdx
].
reqListName
]
this
.
recoverCustomerList
()
}
},
getInfo
()
{
getInfo
()
{
this
.
$apis
.
sop
.
getSopInfoDetailApi
({
sopId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
$apis
.
sop
.
getSopInfoDetailApi
({
sopId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
// console.log(res)
// console.log(res)
...
...
src/views/sop/editSop/components/selectCrowd.vue
View file @
23f0b13
...
@@ -127,17 +127,14 @@ export default {
...
@@ -127,17 +127,14 @@ export default {
this
.
crowdList
.
forEach
((
item
,
index
)
=>
{
this
.
crowdList
.
forEach
((
item
,
index
)
=>
{
item
.
idx
=
index
+
(
page
[
this
.
pageConf
.
pageNum
]
-
1
)
*
page
[
this
.
pageConf
.
pageSize
]
+
1
item
.
idx
=
index
+
(
page
[
this
.
pageConf
.
pageNum
]
-
1
)
*
page
[
this
.
pageConf
.
pageSize
]
+
1
})
})
this
.
selectedCrowdList
.
length
&&
(
this
.
selectedCrowdId
=
this
.
selectedCrowdList
[
0
].
crowdId
)
this
.
selectedCrowdList
.
length
&&
(
this
.
selectedCrowdId
=
+
this
.
selectedCrowdList
[
0
].
crowdId
)
// this.recoverySelected()
this
.
$refs
.
crowdRef
.
tableHeightValues
=
'460px'
this
.
$refs
.
crowdRef
.
tableHeightValues
=
'460px'
})
})
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
crowdList
=
this
.
$refs
.
crowdRef
.
data
this
.
crowdList
=
this
.
$refs
.
crowdRef
.
data
// this.recoverySelected()
//接收到的数据为空
//接收到的数据为空
// this.$refs.crowdRef.tableHeightValues = this.$refs.crowdRef.data.length ? '' : '400px'
this
.
$refs
.
crowdRef
.
tableHeightValues
=
'460px'
this
.
$refs
.
crowdRef
.
tableHeightValues
=
'460px'
},
},
...
...
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