Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 40b0437b
authored
May 25, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
9799a3d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
src/views/calendar/add.vue
src/views/calendar/components/SelectGoodsDialog.vue
src/views/calendar/index.vue
src/views/calendar/add.vue
View file @
40b0437
...
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-10 17:17:31
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-2
3 15:58:43
* @LastEditTime: 2023-05-2
5 15:55:08
* @FilePath: \outbound\src\views\calendar\add.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -141,11 +141,10 @@ export default {
],
editRule
:
{
title
:
[{
required
:
true
,
message
:
'请输入营销主题'
,
trigger
:
'input'
}],
subTitle
:
[{
required
:
true
,
message
:
'请输入营销标题'
,
trigger
:
'input'
}],
subTitle
:
[{
required
:
true
,
message
:
'请输入营销
副
标题'
,
trigger
:
'input'
}],
activityTime
:
[{
required
:
true
,
message
:
'请选择活动时间'
,
trigger
:
'change'
}],
keywords
:
[{
required
:
true
,
message
:
'请输入关键词'
,
trigger
:
'input'
}],
marketingType
:
[{
required
:
true
,
message
:
'请选择营销类型'
,
trigger
:
'change'
}],
goodsList
:
[{
required
:
true
,
message
:
'请选择平台福利'
,
trigger
:
'change'
}]
marketingType
:
[{
required
:
true
,
message
:
'请选择场景'
,
trigger
:
'change'
}]
}
}
},
...
...
@@ -177,7 +176,10 @@ export default {
if
(
res
.
startTime
)
{
this
.
$set
(
this
.
editForm
,
'activityTime'
,
[
res
.
startTime
,
res
.
endTime
])
}
this
.
selectedGoodsList
=
this
.
editForm
.
couponItemList
this
.
selectedGoodsList
=
this
.
editForm
.
couponItemList
||
[]
this
.
selectedGoodsList
.
forEach
(
item
=>
{
item
.
id
=
item
.
couponId
})
})
},
handleCancel
()
{
...
...
src/views/calendar/components/SelectGoodsDialog.vue
View file @
40b0437
...
...
@@ -50,7 +50,7 @@
<div
class=
"gift-item"
:key=
"subItem.id"
v-for=
"(subItem, subIndex) in selectedList[item].list"
>
<img
class=
"muti-icon"
src=
"@/assets/muti-selected.png"
@
click=
"handleGoodsDelete(item, subIndex)"
/>
<el-tooltip
effect=
"dark"
placement=
"top"
:disabled=
"couponString(subItem).length
<
= 8">
<p
:class=
"['gift-coupon-name', 'ellipsis-1']"
>
{{
couponString
(
subItem
)
>
8
?
couponString
(
subItem
).
slice
(
0
,
8
)
+
'...'
:
couponString
(
subItem
)
}}
</p>
<p
:class=
"['gift-coupon-name', 'ellipsis-1']"
>
{{
couponString
(
subItem
)
.
length
>
8
?
couponString
(
subItem
).
slice
(
0
,
8
)
+
'...'
:
couponString
(
subItem
)
}}
</p>
<div
slot=
"content"
>
{{
couponString
(
subItem
)
}}
</div>
</el-tooltip>
<div
class=
"gift-sum"
>
...
...
src/views/calendar/index.vue
View file @
40b0437
...
...
@@ -17,6 +17,7 @@
<div
:class=
"['task_icon', scope.scope.imStatus == 1 ? 'task_icon1' : 'task_icon2']"
></div>
{{
scope
.
scope
.
imStatus
==
1
?
'待处理'
:
scope
.
scope
.
imStatus
==
2
?
'已完成'
:
'删除'
}}
</
template
>
<
template
slot=
"time"
slot-scope=
"scope"
>
{{
scope
.
scope
.
startTime
}}
-
{{
scope
.
scope
.
endTime
}}
</
template
>
<
template
slot=
"status"
slot-scope=
"scope"
>
<div
:class=
"['task_icon', scope.scope.status == 0 ? 'task_icon1' : 'task_icon2']"
>
{{
scope
.
scope
.
status
==
0
?
'待发布'
:
scope
.
scope
.
status
==
1
?
'已发布'
:
'已失效'
}}
</div>
</
template
>
...
...
@@ -42,7 +43,7 @@ export default {
// 搜索
searchFormData
:
[
{
label
:
'营销
类型
状态'
,
label
:
'营销状态'
,
name
:
'status'
,
type
:
'select'
,
optionList
:
[
...
...
@@ -66,7 +67,7 @@ export default {
tableOption
:
true
,
tableColumns
:
[
{
label
:
'营销
名称
'
,
label
:
'营销
类型
'
,
prop
:
'marketingTypeStr'
,
line
:
1
,
width
:
350
...
...
@@ -81,7 +82,9 @@ export default {
},
{
label
:
'活动时间'
,
prop
:
'startTime'
prop
:
'startTime'
,
addHtml
:
'time'
,
width
:
200
},
{
label
:
'平台福利合计/元'
,
...
...
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