|
|
|
@ -8,6 +8,13 @@ |
|
|
|
<InputNumber placeholder="请输入" style="width: 46%" v-model:value="ageModel.maxAge" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #toolbar> |
|
|
|
<div style="width: 100%; padding: 2px" class="flex-row-center-space"> |
|
|
|
<RadioGroup button-style="solid" v-model:value="radioVal" @change="handleRadioChange"> |
|
|
|
<RadioButton v-for="item in followStatusList" :key="item.value" :value="item.value">{{item.label}}</RadioButton> |
|
|
|
</RadioGroup> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #userinfo="{ text, record }"> |
|
|
|
<div class="flex-row"> |
|
|
|
<Image style="width: 40px;height: 40px;" :src="record.profilePhoto || 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/827036501B11.png'" /> |
|
|
|
@ -40,8 +47,11 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script lang="ts"> |
|
|
|
import { Radio } from 'ant-design-vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'ClueList', |
|
|
|
components: { RadioGroup: Radio.Group, RadioButton: Radio.Button }, |
|
|
|
} |
|
|
|
</script> |
|
|
|
<script setup lang="ts"> |
|
|
|
@ -54,7 +64,7 @@ |
|
|
|
import { getClueList } from '/@/api/clue' |
|
|
|
import { educationList, maritalList } from '/@/enums/customerEnum' |
|
|
|
|
|
|
|
const [registerTable] = useTable({ |
|
|
|
const [registerTable, { reload, setPagination }] = useTable({ |
|
|
|
bordered: true, |
|
|
|
useSearchForm: true, |
|
|
|
columns: tableColumns, |
|
|
|
@ -79,6 +89,7 @@ |
|
|
|
} |
|
|
|
arg.minimumAge = ageModel.minAge |
|
|
|
arg.maximumAge = ageModel.maxAge |
|
|
|
arg.followStatus = radioVal.value |
|
|
|
}, |
|
|
|
actionColumn: { |
|
|
|
width: 160, |
|
|
|
@ -89,10 +100,20 @@ |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
|
|
const followStatusList = [ |
|
|
|
{ label: '待跟进', value: 1 }, |
|
|
|
{ label: '跟进中', value: 2 }, |
|
|
|
{ label: '全部', value: '' }, |
|
|
|
] |
|
|
|
const radioVal = ref<any>('') |
|
|
|
const ageModel = reactive({ |
|
|
|
minAge: '', |
|
|
|
maxAge: '', |
|
|
|
}) |
|
|
|
function handleRadioChange() { |
|
|
|
setPagination({ current: 1 }) |
|
|
|
reload() |
|
|
|
} |
|
|
|
|
|
|
|
const router = useRouter() |
|
|
|
function toDetail(record: any) { |
|
|
|
|