refactor: 提取公共选项定义

This commit is contained in:
dhb52
2024-01-21 12:47:12 +08:00
parent 7c0c651592
commit c38bbb99a1
4 changed files with 45 additions and 47 deletions

View File

@ -1,4 +1,5 @@
<!-- 分配给我的客户 -->
<!-- WHERE followUpStatus = ? -->
<template>
<ContentWrap>
<div class="pb-5 text-xl">分配给我的客户</div>
@ -108,17 +109,14 @@
</template>
<script setup lang="ts" name="FollowCustomer">
import * as CustomerApi from '@/api/crm/customer'
import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as CustomerApi from '@/api/crm/customer'
import { FOLLOWUP_STATUS } from './common'
const { push } = useRouter()
const FOLLOWUP_STATUS = [
{ label: '已跟进', value: true },
{ label: '待跟进', value: false }
]
const loading = ref(true) // 列表的加载中
const total = ref(0) // 列表的总页数
const list = ref([]) // 列表的数据