<template>
<!-- 所有客户 -->
<template v-for="(item, index) in labelList" :key="index">
<div class="babel_all">
<span v-if="item.type === 1"> 所有客户</span>
<span v-if="item.type === 3"> 所有商机</span>
</div>
<el-table
:data="item.tagsRuleList"
border
:row-style="{ height: '52px' }"
:header-cell-style="{ background: '#F8F9FA', height: '50px' }"
style="width: 100%"
>
<el-table-column prop="ruleName" label="销售行为" />
<el-table-column label="时间限定">
<template #default="scope">
超过
<el-input
v-model="scope.row.timeValue"
style="width: 76px; margin: 0px 10px"
clearable
/>
{{ scope.row.unit === "HOUR" ? "小时" : "天" }}{{ scope.row.ruleName }}
</template>
</el-table-column>
</el-table>
</template>
</template>
<script>
export default {
const labelList= ref([
{
id: 1,
type: 1,
tagsRuleList: [
{
ruleId: 2,
type: 1,
ruleType: 1,
ruleName: "首次跟进",
timeValue: "3",
unit: "HOUR"
},
{
ruleId: 2,
type: 1,
ruleType: 2,
ruleName: "跟进",
timeValue: "24",
unit: "HOUR"
},
{
ruleId: 2,
type: 1,
ruleType: 3,
ruleName: "成交",
timeValue: "10",
unit: "DAY"
}
]
},
{
id: 1,
type: 3,
tagsRuleList: [
{
ruleId: 2,
type: 1,
ruleType: 1,
ruleName: "首次跟进",
timeValue: "3",
unit: "HOUR"
}
]
}
])
</script>