Commit ee4b5963 by crushh

udpate: 文案

parent f361a8c1
......@@ -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: '30-60秒', color: '#14C9C9', count: originData['thirdInterval'], percent: originData['thirdProportion'] },
{ label: '60秒以上', color: '#05B770', count: originData['fourthInterval'], percent: originData['fourthProportion'] }
{ label: '31-60秒', color: '#14C9C9', count: originData['thirdInterval'], percent: originData['thirdProportion'] },
{ label: '>60秒', color: '#05B770', count: originData['fourthInterval'], percent: originData['fourthProportion'] }
];
const data = [
this.talkTimeData.reduce(
......
<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>
......@@ -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();
}
});
}
}
};
......
......@@ -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:244px;" :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:115px;" :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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment