📖 CRM:待办事项的 code review
This commit is contained in:
parent
68fc1760a5
commit
1e70a1d57e
@ -34,6 +34,7 @@ export interface CustomerVO {
|
||||
}
|
||||
|
||||
// 查询客户列表
|
||||
// TODO @芋艿:看看是不是后续融合到 getCustomerPage 里;
|
||||
export const getTodayCustomerPage = async (params) => {
|
||||
return await request.get({ url: `/crm/message/todayCustomer`, params })
|
||||
}
|
||||
|
@ -537,6 +537,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
noCache: true,
|
||||
hidden: true
|
||||
},
|
||||
// TODO @db52:后面搞,搞成菜单
|
||||
component: () => import('@/views/crm/message/index.vue')
|
||||
}
|
||||
]
|
||||
|
@ -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'
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user