Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
a060ddbf
Commit
a060ddbf
authored
Jul 06, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 删除短信模板
parent
197efae8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
43 deletions
+56
-43
messageApi.js
src/service/api/messageApi.js
+3
-0
delDialog.vue
src/views/message/delDialog.vue
+34
-11
temp.vue
src/views/message/temp.vue
+19
-32
No files found.
src/service/api/messageApi.js
View file @
a060ddbf
...
...
@@ -75,3 +75,6 @@ export const exportSmsImportPlanLog = config.api + PREFIX + 'export-sms-import-p
//ecm查看筛选人数
export
const
checkEcmSendCount
=
params
=>
requests
(
PREFIX
+
'check-ecm-send-count'
,
params
);
// 短信群发-删除前查询是否关联活动
export
const
queryBusiCommonCheck
=
params
=>
requests
(
'/api-plug/query-busi-common-check'
,
params
,
true
,
false
,
'get'
);
src/views/message/delDialog.vue
View file @
a060ddbf
<
template
>
<el-dialog
title=
"提示"
width=
"520px"
top=
"30vh"
custom-class=
"cre-dialog"
:modal-append-to-body=
"false"
:visible
.
sync=
"dialogVisible"
:before-close=
"close"
>
<div
v-loading=
"loading"
class=
"flex"
>
<div
class=
"el-message-box__status el-icon-warning"
></div>
<div
class=
"el-message-box__status el-icon-warning
position-ab
"
></div>
<div
class=
"batch-content"
>
<p
class=
"batch-txt"
>
{{
tips
}}
</p>
<ul
class=
"batch-ul"
>
<li
v-for=
"item in list"
:key=
"item.id"
class=
"batch-li"
@
click=
"handleClickItem(item)"
>
<span
class=
"relation
Name"
>
{{
item
.
busiObjRelationName
}}
</span>
<span
class=
"relationCreater"
>
{{
item
.
busiObjRelationCreater
}}
创建
</span>
<span
class=
"relation
Creater"
>
{{
item
.
busiObjRelationCreater
}}
创建:
</span><span
class=
"relationName"
>
{{
item
.
busiObjRelationName
}}
</span>
</li>
</ul>
</div>
</div>
<span
class=
"footer"
slot=
"footer"
>
<
!--
<
span
class=
"footer"
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"close"
>
关闭
</el-button>
</span>
</span>
-->
</el-dialog>
</
template
>
<
script
>
const
routeMap
=
{
//1, "短信群发"2, "智能营销"3, "ai营销"4, "短信导入"5, "扫码营销"
1
:
'/message/record/detail'
,
//活动名maxlength10
2
:
'/ecm/edit'
,
//活动名maxlength30
3
:
'/ai/info'
,
//活动名maxlength30
4
:
'/message/import-send/info'
,
//活动名maxlength10
5
:
'/scan/edit'
//活动名maxlength9
};
export
default
{
props
:
{
dialogVisible
:
{
...
...
@@ -39,10 +47,16 @@ export default {
this
.
$emit
(
'update:dialogVisible'
,
false
);
},
handleClickItem
(
item
)
{
console
.
log
(
item
);
// 智能营销 marketing/#/ecm/edit/id
// AI营销 marketing/#/ai/info/id
// 短信营销 marketing/#/message/record/detail/id
if
(
item
.
permissionFlag
)
{
this
.
localtionChange
(
item
);
}
else
{
this
.
$message
.
warning
(
'当前活动无权限查看,请联系创建人修改活动状态'
);
}
},
localtionChange
(
item
)
{
const
path
=
routeMap
[
item
.
busiObjRelationType
];
console
.
log
(
`
${
path
}
/
${
item
.
busiObjRelationId
}
`
);
this
.
$router
.
push
(
`
${
path
}
/
${
item
.
busiObjRelationId
}
`
);
}
}
};
...
...
@@ -50,11 +64,13 @@ export default {
<
style
lang=
"scss"
scoped
>
.cre-dialog
{
.position-ab
{
top
:
95px
;
}
.batch-content
{
margin-left
:
38px
;
.batch-txt
{
font-size
:
14px
;
color
:
#303133
;
line-height
:
20px
;
}
...
...
@@ -62,17 +78,24 @@ export default {
margin-top
:
16px
;
li
{
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
flex-start
;
margin-bottom
:
10px
;
}
.relationName
,
.relationCreater
{
font-size
:
14px
;
line-height
:
20px
;
color
:
#303133
;
line-height
:
20px
;
text-align
:
left
;
}
.relationName
{
color
:
#2f54eb
;
cursor
:
pointer
;
margin-left
:
10px
;
width
:
308px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
...
...
src/views/message/temp.vue
View file @
a060ddbf
...
...
@@ -52,7 +52,7 @@
</
template
>
<
script
>
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
import
{
LoadLibList
,
delTempService
}
from
'@/service/api/messageApi.js'
;
import
{
LoadLibList
,
delTempService
,
queryBusiCommonCheck
}
from
'@/service/api/messageApi.js'
;
import
delDialog
from
'./delDialog.vue'
;
export
default
{
name
:
'sms-lib'
,
...
...
@@ -78,26 +78,7 @@ export default {
allUsableCount
:
0
,
usedCount
:
0
,
dateTime
:
[],
delObj
:
{
isCandele
:
false
,
list
:
[
{
id
:
1
,
busiType
:
1
,
busiName
:
''
,
busiObjId
:
'1'
,
busiObjName
:
'过年短信模板'
,
busiObjRelationId
:
'1'
,
busiObjRelationName
:
'ai智能营销'
,
busiObjRelationCreaterId
:
'1'
,
busiObjRelationCreater
:
'afeng'
,
busiObjRelationUrl
:
'www.bai.com'
,
status
:
1
,
createTime
:
1655872198000
,
updateTime
:
1655872202000
}
]
},
dialogVisible
:
false
,
delList
:
[]
};
...
...
@@ -110,17 +91,23 @@ export default {
},
methods
:
{
onDeleteData
(
v
)
{
// this.dialogVisible = true;
// this.delList = this.delObj.list;
this
.
$confirm
(
'确认删除该模板?删除后,所有引用此模板的短信都会停止发送。'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelBUttonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
delData
(
v
);
})
.
catch
(()
=>
{});
queryBusiCommonCheck
({
busiObjId
:
v
.
gicSmsTemplateId
,
busiType
:
1
}).
then
(
res
=>
{
const
{
result
}
=
res
;
if
(
!
result
.
candele
)
{
this
.
delList
=
result
.
list
;
this
.
dialogVisible
=
true
;
}
else
{
this
.
$confirm
(
'确认删除该模板?删除后,所有引用此模板的短信都会停止发送。'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelBUttonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
delData
(
v
);
})
.
catch
(()
=>
{});
}
});
},
search
()
{
this
.
listParams
.
currentPage
=
1
;
...
...
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