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 985e344a
authored
Mar 24, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_dev_v2.0.0' into 'v2.0.0'
bug修复 See merge request
!51
2 parents
50aca179
7b3a349b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
101 additions
and
71 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/materialModel.vue
src/views/sop/editSop/components/nicknameModel.vue
src/views/sop/editSop/components/selectLabel.vue
src/views/sop/editSop/editEvent.vue
src/views/sop/index.vue
src/views/sop/sopAnalysis/touchList.vue
src/views/sop/editSop/baseInfo.vue
View file @
985e344
...
@@ -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 @
985e344
...
@@ -8,20 +8,45 @@
...
@@ -8,20 +8,45 @@
</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)">
<div
class=
"model-item-title"
:title=
"item.materialContentRpcResponse.materialName"
>
{{
item
.
materialContentRpcResponse
?
item
.
materialContentRpcResponse
.
materialName
:
'-'
}}
</div>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<img
:src=
"item.groupName"
/>
<!--
<span
class=
"hide-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
-->
<div
class=
"model-item-title"
:title=
"item.materialContentRpcResponse.materialName"
>
{{
item
.
materialContentRpcResponse
?
item
.
materialContentRpcResponse
.
materialName
:
'-'
}}
</div>
</el-tooltip>
<!--
<img
:src=
"item.materialContentRpcResponse.materialUrl"
/>
-->
<!-- 素材内容 -->
<!--
<div
slot=
"materialContentRpcResponse"
slot-scope=
"scope"
style=
"text-align: center"
>
-->
<!-- 素材为PDF -->
<span
v-if=
"item.materialType == 1"
class=
"material-content"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<span
class=
"hide-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
-->
<img
class=
"img-pdf"
src=
"@/assets/material/pdf.png"
alt=
""
/>
<p
class=
"model-item-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
.png
</p>
</span>
<!-- 素材为自定义链接 -->
<span
v-if=
"item.materialType == 2"
></span>
<!-- 图文 -->
<span
v-if=
"item.materialType == 3"
class=
"material-content"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<span>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
-->
<!--
<el-popover
placement=
"top"
trigger=
"click"
>
<div>
<img
style=
"width: 72px; height: 72px;"
v-if=
"item.materialContentRpcResponse.materialUrl"
:src=
"item.materialContentRpcResponse.materialUrl"
alt=
""
/>
<img
class=
"img-material"
v-else
src=
"@/assets/material/car.png"
alt=
""
/>
</div>
<span
slot=
"reference"
>
<img
v-if=
"item.materialContentRpcResponse.materialUrl"
class=
"img-material"
:src=
"item.materialContentRpcResponse.materialUrl"
/>
<img
v-else
class=
"img-material"
src=
"@/assets/material/car.png"
alt=
""
/>
</span>
</el-popover>
-->
<img
v-if=
"item.materialContentRpcResponse.materialUrl"
class=
"img-material"
:src=
"item.materialContentRpcResponse.materialUrl"
/>
<img
v-else
class=
"img-material"
src=
"@/assets/material/car.png"
alt=
""
/>
</span>
</div>
</div>
<!--
</div>
-->
</div>
</div>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
<img
src=
"@/assets/empty.png"
/>
<img
src=
"@/assets/empty.png"
/>
...
@@ -153,12 +178,31 @@ export default {
...
@@ -153,12 +178,31 @@ export default {
getModelList
()
{
getModelList
()
{
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
status
:
0
,
pageNum
:
this
.
pageNum
,
pageNum
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
}
}
this
.
$apis
.
sop
.
getMaterialListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
sop
.
getMaterialListApi
(
params
).
then
(
res
=>
{
this
.
modelList
=
res
.
data
this
.
modelList
=
res
.
data
this
.
tableTotal
=
res
.
count
this
.
tableTotal
=
res
.
count
let
tableData
=
[]
this
.
modelList
.
forEach
(
item
=>
{
if
(
item
.
materialType
!=
3
)
{
item
.
materialContentRpcResponse
.
materialUrl
=
''
}
if
(
item
.
materialType
==
3
)
{
let
html
=
decodeURIComponent
(
item
.
materialContentRpcResponse
.
materialUrl
)
let
imgHtml
=
html
.
match
(
/<img.*
?(?:
>|
\/
>
)
/g
)
if
(
imgHtml
)
{
let
imgSrc
=
imgHtml
[
0
].
match
(
'<img[^<>]*? src="([^<>]*?)"'
)
item
.
materialContentRpcResponse
.
materialUrl
=
imgSrc
[
1
]
}
else
{
item
.
materialContentRpcResponse
.
materialUrl
=
''
}
}
tableData
.
push
(
item
)
})
console
.
log
(
this
.
modelList
)
})
})
},
},
handleReset
()
{
handleReset
()
{
...
@@ -337,7 +381,8 @@ export default {
...
@@ -337,7 +381,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
;
...
@@ -368,6 +413,15 @@ export default {
...
@@ -368,6 +413,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/nicknameModel.vue
View file @
985e344
...
@@ -39,33 +39,6 @@ export default {
...
@@ -39,33 +39,6 @@ export default {
name
:
'nicknameModel'
,
name
:
'nicknameModel'
,
data
()
{
data
()
{
return
{
return
{
// searchForm: {
// groupId: '',
// businessType: ''
// },
// searchFormData: [
// {
// label: '素材分组',
// name: 'groupId',
// type: 'select',
// optionList: [],
// optionId: 'id',
// optionLabel: 'NicknameGroupName',
// optionsName: 'groupList'
// },
// {
// label: '素材类型',
// name: 'businessType',
// type: 'select',
// optionList: [],
// optionId: 'confId',
// optionLabel: 'confName',
// optionsName: 'businessTypeList'
// }
// ],
// selectedData: [],
// selectingData: [],
// needTip: ['editProduct'],
activeName
:
'1'
,
activeName
:
'1'
,
modelList
:
[],
modelList
:
[],
selectItem
:
{
selectItem
:
{
...
@@ -83,23 +56,6 @@ export default {
...
@@ -83,23 +56,6 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
}
// storeApi: {
// type: Function,
// default: () => {}
// },
// storeSelected: {
// type: Array,
// default: () => []
// }
// storeSearchForm: {
// type: Object,
// default: () => {}
// }
// 去掉表格中某些字段
// noTableField: {
// type: Array,
// default: () => []
// }
},
},
components
:
{
components
:
{
...
@@ -107,11 +63,6 @@ export default {
...
@@ -107,11 +63,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
// this.selectedData = this.storeSelected
// this.selectedData.forEach(item => {
// item.merchantNo = item.merchantId ? (item.merchantId + '') : item.merchantNo
// })
// this.getSelectingList()
this
.
getModelList
()
this
.
getModelList
()
},
},
...
@@ -126,6 +77,7 @@ export default {
...
@@ -126,6 +77,7 @@ export default {
getModelList
()
{
getModelList
()
{
var
params
=
{
var
params
=
{
materialType
:
this
.
activeName
,
materialType
:
this
.
activeName
,
status
:
3
,
pageNum
:
this
.
pageNum
,
pageNum
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
}
}
...
...
src/views/sop/editSop/components/selectLabel.vue
View file @
985e344
...
@@ -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/editSop/editEvent.vue
View file @
985e344
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<el-input
type=
"textarea"
:disabled=
"editForm.object.additionalType == '4'"
:rows=
"9"
maxlength=
"280"
show-word-limit
v-model=
"editForm.eventContent"
@
input=
"textInput"
style=
"-webkit-user-modify: read-write-plaintext-only !important; width: 656px"
placeholder=
"请输入营销文案"
></el-input>
<el-input
type=
"textarea"
:disabled=
"editForm.object.additionalType == '4'"
:rows=
"9"
maxlength=
"280"
show-word-limit
v-model=
"editForm.eventContent"
@
input=
"textInput"
style=
"-webkit-user-modify: read-write-plaintext-only !important; width: 656px"
placeholder=
"请输入营销文案"
></el-input>
<div
v-for=
"(itm, index) in previewList"
:key=
"itm.id"
>
<div
v-for=
"(itm, index) in previewList"
:key=
"itm.id"
>
<!-- additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板) -->
<!-- additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板) -->
<div
class=
"welcome-file"
>
<div
v-if=
"itm.additionalType"
class=
"welcome-file"
>
<template>
<template>
<img
:src=
"require(`@/assets/sop/icon-$
{btnList.find(k => k.id == itm.additionalType).type}.png`)" alt />
<img
:src=
"require(`@/assets/sop/icon-$
{btnList.find(k => k.id == itm.additionalType).type}.png`)" alt />
<div
v-if=
"itm.additionalType == 4"
>
<div
v-if=
"itm.additionalType == 4"
>
...
...
src/views/sop/index.vue
View file @
985e344
<
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"
>
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
<div
class=
"edit-title flex p-r-20"
>
<div
class=
"edit-title flex p-r-20"
>
<p>
SOP监测
</p>
<p>
SOP监测
</p>
<div>
<div>
<GLButton
:size=
"size"
type=
"default"
class=
"default-blue-btn"
fn=
"创建
sop"
@
click=
"handleEdit('add')"
>
创建sop
</GLButton>
<GLButton
:size=
"size"
type=
"default"
class=
"default-blue-btn"
fn=
"创建
SOP"
@
click=
"handleEdit('add')"
>
创建SOP
</GLButton>
<GLButton
:size=
"size"
type=
"default"
class=
"default-blue-btn"
fn=
"管理
sop"
@
click=
"handleJump('sopList')"
>
管理全部sop
</GLButton>
<GLButton
:size=
"size"
type=
"default"
class=
"default-blue-btn"
fn=
"管理
SOP"
@
click=
"handleJump('sopList')"
>
管理全部SOP
</GLButton>
</div>
</div>
</div>
</div>
<div
class=
"sop-box"
:style=
"
{ 'padding-bottom': sopList.length ? '2px' : '12px' }">
<div
class=
"sop-box"
:style=
"
{ 'padding-bottom': sopList.length ? '2px' : '12px' }">
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
<div
:id=
"'sopPie' + item.id"
class=
"chart-pie"
></div>
<div
:id=
"'sopPie' + item.id"
class=
"chart-pie"
></div>
<p>
{{
item
.
dateRange
}}
</p>
<p>
{{
item
.
dateRange
}}
</p>
<div
class=
"sop-btns"
>
<div
class=
"sop-btns"
>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
fn=
"分析sop"
@
click=
"handleJump('sopAnalysisList', item)"
>
sop
分析
</GLButton>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
display=
"disabled"
fn=
"分析SOP"
@
click=
"handleJump('sopAnalysisList', item)"
>
SOP
分析
</GLButton>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
fn=
"编辑sop
"
@
click=
"handleEdit('edit', item)"
>
编辑
</GLButton>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
display=
"disabled"
fn=
"编辑SOP
"
@
click=
"handleEdit('edit', item)"
>
编辑
</GLButton>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
fn=
"结束sop
"
@
click=
"handleEnd(item)"
>
结束
</GLButton>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
display=
"disabled"
fn=
"结束SOP
"
@
click=
"handleEnd(item)"
>
结束
</GLButton>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
985e344
...
@@ -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