📖 CRM:待办事项的 code review

This commit is contained in:
YunaiV
2024-01-15 12:15:59 +08:00
parent 68fc1760a5
commit 1e70a1d57e
4 changed files with 7 additions and 2 deletions

View File

@ -20,7 +20,7 @@
</el-col>
</el-row>
</template>
<!-- @dbh52模块改成 backlog 会更合适待办事项 -->
<script lang="ts" setup>
import TodayCustomer from './tables/TodayCustomer.vue'
import FollowLeads from './tables/FollowLeads.vue'

View File

@ -125,11 +125,12 @@ import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as MessageApi from '@/api/crm/message'
const title = ref('今日需联系客户')
const title = ref('今日需联系客户') // TODO @dbh52这个不用枚举一个变量哈
const loading = ref(true) // 列表的加载中
const total = ref(0) // 列表的总页数
const list = ref([]) // 列表的数据
const queryParams = ref<{
// TODO @dbh52这个 ref 类型定义可以去掉哈。之前定义的原因,是因为 idea 报错了;默认 idea 可以推导出类型
pageNo: number
pageSize: number
contactStatus: number | undefined
@ -149,6 +150,7 @@ const CONTACT_STATUS = [
]
const SCENE_TYPES = [
// TODO 芋艿:貌似可以搞成全局枚举
{ label: '我负责的', value: 1 },
{ label: '我跟进的', value: 2 },
{ label: '我参与的', value: 3 },
@ -182,6 +184,7 @@ const resetQuery = (func: Function | undefined = undefined) => {
contactStatus: 1,
sceneType: 1
}
// TODO @dbh52这里的 func 是不是可以去掉哈;
func && func()
handleQuery()
}