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
8b946880
Commit
8b946880
authored
Nov 12, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 模板库字段调整
parent
e3cba484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
16 deletions
+23
-16
temp.vue
src/views/message/temp.vue
+23
-16
No files found.
src/views/message/temp.vue
View file @
8b946880
...
...
@@ -5,40 +5,39 @@
<el-option
v-for=
"(v, i) in libTypeOptions"
:key=
"i"
:label=
"v.label"
:value=
"v.value"
></el-option>
</el-select>
<el-date-picker
class=
"w250"
v-model=
"dateTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
@
change=
"search"
></el-date-picker>
<el-input
v-model=
"listParams.content"
class=
"w200"
placeholder=
"输入模板名称/ID/内容"
clearable
@
change=
"search"
><i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i></el-input>
<el-button
class=
"fr"
type=
"primary"
@
click=
"addTemp"
>
新建短信模板
</el-button>
<el-input
v-model=
"listParams.content"
class=
"w200"
placeholder=
"输入模板名称/内容"
clearable
@
change=
"search"
><i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i></el-input>
<el-button
class=
"fr"
type=
"primary"
@
click=
"addTemp"
>
新建短信模板
<span>
(
{{
usedCount
}}
/
{{
allUsableCount
}}
)
</span>
</el-button>
<span
class=
"fr pt10 pr20"
>
<el-tooltip
effect=
"dark"
placement=
"top"
content=
"审核失败不占用模板数,删除模板可释放占用模板数。如需更多的短信模板请联系GIC运营。"
>
<i
class=
"iconfont icon-xinxixianshi pl5 gray"
></i>
</el-tooltip>
<span
class=
"gray fz13"
>
可用模板数:
{{
allUsableCount
}}
| 已用模板数:
{{
usedCount
}}
</span>
<span
class=
"gray fz13"
>
审核未通过也占用模板数,如需更多短信模板请联系商家运营。
</span>
</span>
</div>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
v-for=
"(v, i) in smsTempList"
:key=
"i"
>
<div
class=
"sms-lib-item border1"
>
<div
class=
"sms-lib-item_top ellipsis-80"
:title=
"`$
{v.
title}`">模板名称:
{{
v
.
t
itle
}}
</div>
<div
class=
"sms-lib-item_top ellipsis-80"
:title=
"`$
{v.
smsTitle}`">模板名称:
{{
v
.
smsT
itle
}}
</div>
<!-- (ID:
{{
v
.
gicSmsTemplateId
}}
) -->
<div
class=
"sms-lib-item_body"
>
<p
class=
"danger-color"
v-if=
"v.
s
tatus === 2"
><i
class=
"el-icon-warning"
></i>
{{
v
.
auditResult
}}
</p>
<p>
{{
v
.
c
ontent
}}
</p>
<p
class=
"danger-color"
v-if=
"v.
auditS
tatus === 2"
><i
class=
"el-icon-warning"
></i>
{{
v
.
auditResult
}}
</p>
<p>
{{
v
.
smsC
ontent
}}
</p>
</div>
<div
class=
"sms-lib-item_bottom clearfix"
>
<div
class=
"fl"
>
<span>
{{
v
.
addUse
rName
}}
</span>
<span>
{{
v
.
creato
rName
}}
</span>
<span>
创建于
{{
formatDateTimeByType
(
v
.
createTime
,
'yyyy-MM-dd-HH-mm-ss'
)
}}
</span>
</div>
<div
class=
"fr"
>
<el-button
type=
"text"
v-if=
"v.
s
tatus === 2"
@
click=
"$router.push('/message/temp/edit/' + v.gicSmsTemplateId)"
>
修改
</el-button>
<el-button
type=
"text"
v-if=
"v.
auditS
tatus === 2"
@
click=
"$router.push('/message/temp/edit/' + v.gicSmsTemplateId)"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"onDeleteData(v)"
>
删除
</el-button>
<!--
<dm-delete
@
confirm=
"delData(v)"
tips=
"模板删除后,所有引用此模板的短信都会停止发送,请确认。"
>
<el-button
type=
"text"
>
删除
</el-button>
</dm-delete>
-->
</div>
</div>
<span
class=
"sms-lib-item-tips_right danger-color-bg"
v-if=
"v.
s
tatus === 2"
>
未通过
</span>
<span
class=
"sms-lib-item-tips_right warning-color-bg"
v-if=
"v.
s
tatus === 1"
>
审核中
</span>
<span
class=
"sms-lib-item-tips_right success-color-bg"
v-if=
"v.
s
tatus === 0"
>
已通过
</span>
<span
class=
"sms-lib-item-tips_right danger-color-bg"
v-if=
"v.
auditS
tatus === 2"
>
未通过
</span>
<span
class=
"sms-lib-item-tips_right warning-color-bg"
v-if=
"v.
auditS
tatus === 1"
>
审核中
</span>
<span
class=
"sms-lib-item-tips_right success-color-bg"
v-if=
"v.
auditS
tatus === 0"
>
已通过
</span>
</div>
</el-col>
</el-row>
...
...
@@ -59,7 +58,11 @@ export default {
formatDateTimeByType
,
loading
:
false
,
smsTempList
:
[],
libTypeOptions
:
[{
value
:
''
,
label
:
'全部'
},
{
value
:
0
,
label
:
'普通短信模板'
},
{
value
:
1
,
label
:
'营销短信模板'
}],
// eslint-disable-line
libTypeOptions
:
[
{
value
:
''
,
label
:
'全部模板类型'
},
{
value
:
0
,
label
:
'普通短信模板'
},
{
value
:
1
,
label
:
'营销短信模板'
}
],
// eslint-disable-line
listParams
:
{
type
:
''
,
content
:
''
,
...
...
@@ -75,7 +78,11 @@ export default {
};
},
created
()
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'短信营销'
,
path
:
''
},
{
name
:
'模板库'
,
path
:
''
}]);
// eslint-disable-line
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[
{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'短信营销'
,
path
:
''
},
{
name
:
'模板库'
,
path
:
''
}
]);
// eslint-disable-line
this
.
LoadLibList
();
},
mounted
()
{
...
...
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