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 c9263645
authored
Mar 24, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
b210469c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
21 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/materialModel.vue
src/views/sop/editSop/components/selectLabel.vue
src/views/sop/index.vue
src/views/sop/sopAnalysis/touchList.vue
src/views/sop/editSop/baseInfo.vue
View file @
c926364
...
@@ -411,7 +411,7 @@ export default {
...
@@ -411,7 +411,7 @@ export default {
this
.
submit
=
true
this
.
submit
=
true
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
!
this
.
editForm
.
eventList
.
length
)
{
if
(
!
this
.
editForm
.
eventList
.
length
)
{
return
true
return
true
}
}
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
...
@@ -473,7 +473,7 @@ export default {
...
@@ -473,7 +473,7 @@ export default {
// 事件进行时,批量编辑sop事件
// 事件进行时,批量编辑sop事件
this
.
$apis
.
sop
.
batchEditSopEventApi
(
batchEditParams
).
then
(
res
=>
{
this
.
$apis
.
sop
.
batchEditSopEventApi
(
batchEditParams
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
@@ -484,7 +484,7 @@ export default {
...
@@ -484,7 +484,7 @@ export default {
// 新增事件或者事件未开始,调这里
// 新增事件或者事件未开始,调这里
this
.
$apis
.
sop
.
insertOrUpdateSopApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
sop
.
insertOrUpdateSopApi
(
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
@@ -511,7 +511,7 @@ export default {
...
@@ -511,7 +511,7 @@ export default {
.
then
(()
=>
{
.
then
(()
=>
{
this
.
cancelJump
()
this
.
cancelJump
()
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
}
else
{
}
else
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
...
...
src/views/sop/editSop/components/materialModel.vue
View file @
c926364
...
@@ -8,15 +8,6 @@
...
@@ -8,15 +8,6 @@
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
<div
class=
"model-panel"
>
<div
class=
"model-panel"
>
<!--
<div
class=
"model-panel-tab"
>
<label>
活动类型:
</label>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
type=
"card"
>
<el-tab-pane
label=
"单图文"
name=
"3"
></el-tab-pane>
<el-tab-pane
label=
"多图文"
name=
"4"
></el-tab-pane>
<el-tab-pane
label=
"文字+视频"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"文字"
name=
"5"
></el-tab-pane>
</el-tabs>
</div>
-->
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
<div
class=
"model-item"
:class=
"
{ checked: selectItem.id == item.id }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div
class=
"model-item"
:class=
"
{ checked: selectItem.id == item.id }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
...
@@ -31,8 +22,8 @@
...
@@ -31,8 +22,8 @@
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<span
class=
"hide-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
<span
class=
"hide-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
-->
</el-tooltip>
-->
<img
src=
"@/assets/material/pdf.png"
alt=
""
>
<img
class=
"img-pdf"
src=
"@/assets/material/pdf.png"
alt=
""
/
>
<
!--
<span>
{{
item
.
materialContentRpcResponse
.
materialName
}}
.png
</span>
--
>
<
p
class=
"model-item-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
.png
</p
>
</span>
</span>
<!-- 素材为自定义链接 -->
<!-- 素材为自定义链接 -->
<span
v-if=
"item.materialType == 2"
></span>
<span
v-if=
"item.materialType == 2"
></span>
...
@@ -41,12 +32,13 @@
...
@@ -41,12 +32,13 @@
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<span>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
<span>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
-->
</el-tooltip>
-->
<el-popover
placement=
"top"
trigger=
"click"
>
<
!--
<
el-popover
placement=
"top"
trigger=
"click"
>
<div>
<div>
<img
class=
"img-plus"
src=
"@/assets/material/car.png"
alt=
""
/>
<img
src=
"@/assets/material/car.png"
alt=
""
/>
</div>
</div>
<img
slot=
"reference"
src=
"@/assets/material/car.png"
alt=
""
/>
<img
slot=
"reference"
class=
"img-material"
src=
"@/assets/material/car.png"
alt=
""
/>
</el-popover>
</el-popover>
-->
<img
class=
"img-material"
src=
"@/assets/material/car.png"
alt=
""
/>
</span>
</span>
</div>
</div>
<!--
</div>
-->
<!--
</div>
-->
...
@@ -366,7 +358,8 @@ export default {
...
@@ -366,7 +358,8 @@ export default {
margin-bottom
:
24px
;
margin-bottom
:
24px
;
padding
:
12px
16px
;
padding
:
12px
16px
;
position
:
relative
;
position
:
relative
;
height
:
128px
;
text-align
:
center
;
//
height
:
128px
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
#e6e6e6
;
border
:
1px
solid
#e6e6e6
;
...
@@ -397,6 +390,15 @@ export default {
...
@@ -397,6 +390,15 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.img-pdf
{
width
:
40px
;
height
:
40px
;
margin-top
:
10px
;
}
.img-material
{
width
:
72px
;
height
:
72px
;
}
&
-content
{
&
-content
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
...
...
src/views/sop/editSop/components/selectLabel.vue
View file @
c926364
...
@@ -172,6 +172,19 @@ export default {
...
@@ -172,6 +172,19 @@ export default {
})
})
console
.
log
(
this
.
labelTreeRets
)
console
.
log
(
this
.
labelTreeRets
)
}
else
{
}
else
{
// this.labelTreeRets = res.labelTreeRets.map(item => {
// return {
// labelType: item.labelType,
// labelGroup: item.labelGroup,
// labelList: item.labelList,
// checked: false,
// tagChecked: null,
// isIndeterminate: false,
// checkAll: false
// }
// })
const
labelTreeRets
=
utils
.
deepClone
(
this
.
labelTreeRets
)
// console.log(labelTreeRets)
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
return
{
return
{
labelType
:
item
.
labelType
,
labelType
:
item
.
labelType
,
...
@@ -183,6 +196,16 @@ export default {
...
@@ -183,6 +196,16 @@ export default {
checkAll
:
false
checkAll
:
false
}
}
})
})
// console.log(labelTreeRets)
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelId
=
item
.
tagChecked
?
item
.
tagChecked
.
id
:
''
let
index
=
tag
.
labelList
.
findIndex
(
iem
=>
iem
.
id
==
labelId
)
tag
.
tagChecked
=
tag
.
labelList
[
index
]
}
})
})
}
}
})
})
},
},
...
...
src/views/sop/index.vue
View file @
c926364
<
template
>
<
template
>
<div
class=
"sop-overview marketing
p-t-20
edit-box"
>
<div
class=
"sop-overview marketing edit-box"
>
<div
class=
"container edit-container m-b-20"
>
<div
class=
"container edit-container m-b-20"
>
<p
class=
"edit-title"
>
营销SOP
</p>
<p
class=
"edit-title"
>
营销SOP
</p>
<div
class=
"sop-box"
>
<div
class=
"sop-box"
>
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
c926364
...
@@ -151,6 +151,7 @@ export default {
...
@@ -151,6 +151,7 @@ export default {
getBaseData
()
{
getBaseData
()
{
var
params
=
{
var
params
=
{
sopId
:
this
.
sopId
,
sopId
:
this
.
sopId
,
ifFilter
:
'Y'
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
999999
pageSize
:
999999
}
}
...
...
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