📖 CRM:code review 待办项目的实现

This commit is contained in:
YunaiV
2024-02-17 18:02:40 +08:00
parent 2f37232f5e
commit 06e2019adf
5 changed files with 11 additions and 24 deletions

View File

@@ -1,4 +1,3 @@
<!-- TODO @dhb52: 存在很多重复的 table 定义如Customer: TodayCustomer,FollowCustomer,PutInPoolRemind -->
<template>
<el-row :gutter="20">
<el-col :span="4" class="min-w-[200px]">
@@ -90,10 +89,8 @@ const leftSides = ref([
}
])
/**
* 侧边点击
*/
const sideClick = (item) => {
/** 侧边点击 */
const sideClick = (item: any) => {
leftType.value = item.infoType
}
// TODO @dhb52: 侧边栏样式,在黑暗模式下,颜色会不对。是不是可以读取主题色哈;

View File

@@ -126,8 +126,6 @@ import { fenToYuanFormat } from '@/utils/formatter'
import { DICT_TYPE } from '@/utils/dict'
import { AUDIT_STATUS } from './common'
const { push } = useRouter() // 路由
const loading = ref(true) // 列表的加载中
const total = ref(0) // 列表的总页数
const list = ref([]) // 列表的数据
@@ -157,6 +155,7 @@ const handleQuery = () => {
}
/** 打开客户详情 */
const { push } = useRouter() // 路由
const openCustomerDetail = (id: number) => {
push({ name: 'CrmCustomerDetail', params: { id } })
}

View File

@@ -43,8 +43,8 @@
</ContentWrap>
<ContentWrap>
<el-table v-loading="loading" :data="list" :show-overflow-tooltip="true" :stripe="true">
<el-table-column align="center" label="编号" prop="id" />
<el-table-column align="center" label="客户名称" prop="name" width="160">
<el-table-column align="center" label="编号" fixed="left" prop="id" />
<el-table-column align="center" label="客户名称" fixed="left" prop="name" width="160">
<template #default="scope">
<el-link :underline="false" type="primary" @click="openDetail(scope.row.id)">
{{ scope.row.name }}
@@ -82,7 +82,7 @@
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="scope.row.dealStatus" />
</template>
</el-table-column>
<el-table-column align="center" label="距进入公海天数" prop="poolDay" width="100px" />
<el-table-column align="center" label="距进入公海天数" prop="poolDay" width="130" />
<el-table-column
:formatter="dateFormatter"
align="center"
@@ -124,6 +124,8 @@ import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import { CONTACT_STATUS, SCENE_TYPES } from './common'
// defineOptions({ name: 'TodayCustomer' }) TODO @dhb521定义改成这种2命名要不要改成 CustomerTodayTable就是 模块+形容词+表格(更容易识别),然后把 tables 目录改成 components 目录
const { push } = useRouter()
const loading = ref(true) // 列表的加载中