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
ee4b5963
Commit
ee4b5963
authored
Jul 04, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpate: 文案
parent
f361a8c1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
112 additions
and
23 deletions
+112
-23
ai-data.vue
src/views/ai/ai-data-report/ai-data.vue
+3
-3
manualTagEdit2.vue
src/views/ai/task/manualTagEdit2.vue
+0
-0
tag-value-item2.vue
src/views/ai/task/tag-value-item2.vue
+83
-0
tagPop.vue
src/views/ai/task/tagPop.vue
+25
-18
form.vue
src/views/ecm/form.vue
+1
-2
No files found.
src/views/ai/ai-data-report/ai-data.vue
View file @
ee4b5963
...
...
@@ -352,10 +352,10 @@ export default {
}
const
originData
=
res
.
result
[
0
];
this
.
talkTimeData
=
[
{
label
:
'
10秒以下
'
,
color
:
'#2d4dd1'
,
count
:
originData
[
'firstInterval'
],
percent
:
originData
[
'firstProportion'
]
},
{
label
:
'
≤10秒
'
,
color
:
'#2d4dd1'
,
count
:
originData
[
'firstInterval'
],
percent
:
originData
[
'firstProportion'
]
},
{
label
:
'11-30秒'
,
color
:
'#D6B38C'
,
count
:
originData
[
'secondInterval'
],
percent
:
originData
[
'secondProportion'
]
},
{
label
:
'3
0
-60秒'
,
color
:
'#14C9C9'
,
count
:
originData
[
'thirdInterval'
],
percent
:
originData
[
'thirdProportion'
]
},
{
label
:
'
60秒以上
'
,
color
:
'#05B770'
,
count
:
originData
[
'fourthInterval'
],
percent
:
originData
[
'fourthProportion'
]
}
{
label
:
'3
1
-60秒'
,
color
:
'#14C9C9'
,
count
:
originData
[
'thirdInterval'
],
percent
:
originData
[
'thirdProportion'
]
},
{
label
:
'
>60秒
'
,
color
:
'#05B770'
,
count
:
originData
[
'fourthInterval'
],
percent
:
originData
[
'fourthProportion'
]
}
];
const
data
=
[
this
.
talkTimeData
.
reduce
(
...
...
src/views/ai/task/manualTagEdit2.vue
0 → 100644
View file @
ee4b5963
This diff is collapsed.
Click to expand it.
src/views/ai/task/tag-value-item2.vue
0 → 100644
View file @
ee4b5963
<
template
>
<div
class=
"flex"
>
<el-input
v-model=
"item.tagItemName"
placeholder=
"请输入标签值"
class=
"w-380"
maxlength=
"15"
show-word-limit
@
change=
"onChange"
@
paste
.
native=
"onPaste"
/>
<i
class=
"iconfont plus icon margin icon-PlusOutlined"
@
click=
"add"
/>
<i
v-if=
"currentLength > 1 && !item.tagItemId"
class=
"iconfont delete icon icon-Delete"
@
click=
"del"
/>
</div>
</
template
>
<
script
>
export
default
{
name
:
'TagValueItem'
,
props
:
{
item
:
Object
,
currentLength
:
Number
},
data
()
{
return
{
tagValue
:
''
};
},
methods
:
{
onPaste
(
e
)
{
if
(
this
.
currentLength
>=
100
)
{
return
this
.
$message
.
warning
(
'标签值最多支持设置100个'
);
}
this
.
$emit
(
'paste'
,
e
);
setTimeout
(()
=>
{
this
.
item
.
tagItemName
=
''
;
},
10
);
},
add
()
{
if
(
this
.
currentLength
>=
100
)
{
return
this
.
$message
.
warning
(
'标签值最多支持设置100个'
);
}
this
.
$emit
(
'add'
,
this
.
item
.
id
);
},
del
()
{
this
.
$emit
(
'del'
,
this
.
item
.
id
);
}
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
@mixin
flex
(
$
justify
,
$
alignItems
)
{
display
:
flex
;
justify-content
:
$
justify
;
align-items
:
$
alignItems
;
}
.flex
{
@include
flex(initial,
center);
&:not(:last-of-type)
{
margin-bottom
:
20px
;
}
}
.w-380
{
width
:
380px
;
}
.icon
{
display
:
inline-block
;
width
:
24px
;
height
:
24px
;
border-radius
:
2px
;
text-align
:
center
;
line-height
:
24px
;
cursor
:
pointer
;
}
.margin
{
margin
:
0
7px
0
16px
;
}
.plus
{
color
:
#2f54eb
;
&:hover
{
background
:
rgba
(
47
,
84
,
235
,
0.1
);
}
}
.delete
{
color
:
#f5222d
;
&:hover
{
background
:
rgba
(
245
,
34
,
45
,
0.1
);
}
}
</
style
>
src/views/ai/task/tagPop.vue
View file @
ee4b5963
...
...
@@ -34,8 +34,7 @@
</
template
>
<
script
>
import
{
pageMemberTagDetail
,
platformHomePageV2
}
from
'@/service/api/aiApi.js'
;
import
ManualTagEdit
from
'./manualTagEdit'
;
import
ManualTagEdit
from
'./manualTagEdit2'
;
export
default
{
data
()
{
return
{
...
...
@@ -64,6 +63,10 @@ export default {
visiable
:
{
type
:
Boolean
,
default
:
false
},
projectName
:
{
type
:
String
,
default
:
'marketing'
}
},
mounted
()
{
...
...
@@ -111,24 +114,28 @@ export default {
pageNum
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
};
const
{
result
}
=
await
pageMemberTagDetail
(
param
);
if
(
result
)
{
this
.
totalCount
=
result
.
totalCount
;
this
.
valueList
=
result
.
result
;
}
this
.
axios
.
get
(
`/gic-member-tag-web/memberTag/pageMemberTagDetail?requestProject=
${
this
.
projectName
}
`
,
{
params
:
param
}).
then
(
res
=>
{
console
.
log
(
res
);
const
{
result
}
=
res
.
data
;
if
(
result
)
{
this
.
totalCount
=
result
.
totalCount
;
this
.
valueList
=
result
.
result
;
console
.
log
(
this
.
valueList
);
}
});
},
async
getPlatformHomePageV2
()
{
const
param
=
{
tagLevelType
:
2
}
;
const
{
result
}
=
await
platformHomePageV2
(
param
);
if
(
result
)
{
this
.
tabList
=
[{
levelName
:
'所有活动标签'
,
id
:
result
[
0
].
tagLevelGroupId
},
...
result
[
0
].
children
[
0
].
children
];
}
if
(
this
.
tabList
.
length
)
{
this
.
activeName
=
this
.
tabList
[
0
].
id
;
this
.
getPageMemberTagDetail
();
}
this
.
axios
.
get
(
`/gic-member-tag-web/memberTag/platformHomePageByAI?requestProject=
${
this
.
projectName
}
&tagLevelType=2`
).
then
(
res
=>
{
console
.
log
(
res
);
const
{
result
}
=
res
.
data
;
if
(
result
)
{
this
.
tabList
=
[{
levelName
:
'所有活动标签'
,
id
:
result
[
0
].
tagLevelGroupId
},
...
result
[
0
].
children
[
0
].
children
];
}
if
(
this
.
tabList
.
length
)
{
this
.
activeName
=
this
.
tabList
[
0
].
id
;
this
.
getPageMemberTagDetail
()
;
}
}
);
}
}
};
...
...
src/views/ecm/form.vue
View file @
ee4b5963
...
...
@@ -79,9 +79,8 @@
</el-radio>
<el-radio
:disabled=
"checked[0] !== 'brithday_day' || isEdit"
v-model=
"form.brithday_dayval"
:label=
"1"
>
之前
<el-input-number
controls-position=
"right"
:min=
"1"
style=
"width:244
px;"
:disabled=
"checked[0] !== 'brithday_day' || isEdit"
v-model=
"form.brithday_day"
></el-input-number>
<el-input-number
controls-position=
"right"
:min=
"1"
:max=
"366"
style=
"width:115
px;"
:disabled=
"checked[0] !== 'brithday_day' || isEdit"
v-model=
"form.brithday_day"
></el-input-number>
天
<span
style=
"line-height:32px;font-size: 14px;margin-left:20px"
>
执行
</span>
</el-radio>
</div>
...
...
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