feat: 增加最小宽度,使fixed生效

pull/158/head
xingyu4j 2025-06-25 15:29:53 +08:00
parent 709501937d
commit 3527b12b84
4 changed files with 61 additions and 5 deletions

View File

@ -157,69 +157,83 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
field: 'name', field: 'name',
title: '商机名称', title: '商机名称',
fixed: 'left', fixed: 'left',
minWidth: 240,
slots: { default: 'name' }, slots: { default: 'name' },
}, },
{ {
field: 'customerName', field: 'customerName',
title: '客户名称', title: '客户名称',
fixed: 'left', fixed: 'left',
minWidth: 240,
slots: { default: 'customerName' }, slots: { default: 'customerName' },
}, },
{ {
field: 'totalPrice', field: 'totalPrice',
title: '商机金额(元)', title: '商机金额(元)',
minWidth: 140,
formatter: 'formatAmount2', formatter: 'formatAmount2',
}, },
{ {
field: 'dealTime', field: 'dealTime',
title: '预计成交日期', title: '预计成交日期',
formatter: 'formatDate', formatter: 'formatDate',
minWidth: 180,
}, },
{ {
field: 'remark', field: 'remark',
title: '备注', title: '备注',
minWidth: 200,
}, },
{ {
field: 'contactNextTime', field: 'contactNextTime',
title: '下次联系时间', title: '下次联系时间',
formatter: 'formatDate', formatter: 'formatDate',
minWidth: 180,
}, },
{ {
field: 'ownerUserName', field: 'ownerUserName',
title: '负责人', title: '负责人',
minWidth: 120,
}, },
{ {
field: 'ownerUserDeptName', field: 'ownerUserDeptName',
title: '所属部门', title: '所属部门',
minWidth: 120,
}, },
{ {
field: 'contactLastTime', field: 'contactLastTime',
title: '最后跟进时间', title: '最后跟进时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, minWidth: 180,
{
field: 'updateTime',
title: '更新时间',
formatter: 'formatDateTime',
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
field: 'creatorName', field: 'creatorName',
title: '创建人', title: '创建人',
minWidth: 120,
},
{
field: 'updateTime',
title: '更新时间',
formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
field: 'statusTypeName', field: 'statusTypeName',
title: '商机状态组', title: '商机状态组',
fixed: 'right', fixed: 'right',
minWidth: 120,
}, },
{ {
field: 'statusName', field: 'statusName',
title: '商机阶段', title: '商机阶段',
fixed: 'right', fixed: 'right',
minWidth: 120,
}, },
{ {
title: '操作', title: '操作',

View File

@ -164,6 +164,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
field: 'name', field: 'name',
title: '线索名称', title: '线索名称',
fixed: 'left', fixed: 'left',
minWidth: 240,
slots: { slots: {
default: 'name', default: 'name',
}, },
@ -171,6 +172,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'source', field: 'source',
title: '线索来源', title: '线索来源',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.CRM_CUSTOMER_SOURCE }, props: { type: DICT_TYPE.CRM_CUSTOMER_SOURCE },
@ -179,22 +181,27 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'mobile', field: 'mobile',
title: '手机', title: '手机',
minWidth: 120,
}, },
{ {
field: 'telephone', field: 'telephone',
title: '电话', title: '电话',
minWidth: 120,
}, },
{ {
field: 'email', field: 'email',
title: '邮箱', title: '邮箱',
minWidth: 120,
}, },
{ {
field: 'detailAddress', field: 'detailAddress',
title: '地址', title: '地址',
minWidth: 120,
}, },
{ {
field: 'industryId', field: 'industryId',
title: '客户行业', title: '客户行业',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.CRM_CUSTOMER_INDUSTRY }, props: { type: DICT_TYPE.CRM_CUSTOMER_INDUSTRY },
@ -203,6 +210,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'level', field: 'level',
title: '客户级别', title: '客户级别',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.CRM_CUSTOMER_LEVEL }, props: { type: DICT_TYPE.CRM_CUSTOMER_LEVEL },
@ -211,34 +219,41 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'ownerUserName', field: 'ownerUserName',
title: '负责人', title: '负责人',
minWidth: 120,
}, },
{ {
field: 'ownerUserDeptName', field: 'ownerUserDeptName',
title: '所属部门', title: '所属部门',
minWidth: 120,
}, },
{ {
field: 'contactNextTime', field: 'contactNextTime',
title: '下次联系时间', title: '下次联系时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
field: 'contactLastTime', field: 'contactLastTime',
title: '最后跟进时间', title: '最后跟进时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
field: 'updateTime', field: 'updateTime',
title: '更新时间', title: '更新时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 120,
}, },
{ {
field: 'creatorName', field: 'creatorName',
title: '创建人', title: '创建人',
minWidth: 120,
}, },
{ {
title: '操作', title: '操作',

View File

@ -188,17 +188,20 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
field: 'name', field: 'name',
title: '联系人姓名', title: '联系人姓名',
fixed: 'left', fixed: 'left',
minWidth: 240,
slots: { default: 'name' }, slots: { default: 'name' },
}, },
{ {
field: 'customerName', field: 'customerName',
title: '客户名称', title: '客户名称',
fixed: 'left', fixed: 'left',
minWidth: 240,
slots: { default: 'customerName' }, slots: { default: 'customerName' },
}, },
{ {
field: 'sex', field: 'sex',
title: '性别', title: '性别',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_USER_SEX }, props: { type: DICT_TYPE.SYSTEM_USER_SEX },
@ -207,26 +210,32 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'mobile', field: 'mobile',
title: '手机', title: '手机',
minWidth: 120,
}, },
{ {
field: 'telephone', field: 'telephone',
title: '电话', title: '电话',
minWidth: 120,
}, },
{ {
field: 'email', field: 'email',
title: '邮箱', title: '邮箱',
minWidth: 120,
}, },
{ {
field: 'post', field: 'post',
title: '职位', title: '职位',
minWidth: 120,
}, },
{ {
field: 'detailAddress', field: 'detailAddress',
title: '地址', title: '地址',
minWidth: 120,
}, },
{ {
field: 'master', field: 'master',
title: '关键决策人', title: '关键决策人',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@ -235,34 +244,41 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'parentId', field: 'parentId',
title: '直属上级', title: '直属上级',
minWidth: 120,
slots: { default: 'parentId' }, slots: { default: 'parentId' },
}, },
{ {
field: 'ownerUserName', field: 'ownerUserName',
title: '负责人', title: '负责人',
minWidth: 120,
}, },
{ {
field: 'ownerUserDeptName', field: 'ownerUserDeptName',
title: '所属部门', title: '所属部门',
minWidth: 120,
}, },
{ {
field: 'contactNextTime', field: 'contactNextTime',
title: '下次联系时间', title: '下次联系时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
field: 'remark', field: 'remark',
title: '备注', title: '备注',
minWidth: 200,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
field: 'updateTime', field: 'updateTime',
title: '更新时间', title: '更新时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
title: '操作', title: '操作',

View File

@ -124,15 +124,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'name', field: 'name',
title: '产品名称', title: '产品名称',
minWidth: 240,
slots: { default: 'name' }, slots: { default: 'name' },
}, },
{ {
field: 'categoryName', field: 'categoryName',
title: '产品类型', title: '产品类型',
minWidth: 120,
}, },
{ {
field: 'unit', field: 'unit',
title: '产品单位', title: '产品单位',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.CRM_PRODUCT_UNIT }, props: { type: DICT_TYPE.CRM_PRODUCT_UNIT },
@ -141,15 +144,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'no', field: 'no',
title: '产品编码', title: '产品编码',
minWidth: 120,
}, },
{ {
field: 'price', field: 'price',
title: '价格(元)', title: '价格(元)',
formatter: 'formatAmount2', formatter: 'formatAmount2',
minWidth: 120,
}, },
{ {
field: 'description', field: 'description',
title: '产品描述', title: '产品描述',
minWidth: 200,
}, },
{ {
field: 'status', field: 'status',
@ -158,24 +164,29 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.CRM_PRODUCT_STATUS }, props: { type: DICT_TYPE.CRM_PRODUCT_STATUS },
}, },
minWidth: 120,
}, },
{ {
field: 'ownerUserName', field: 'ownerUserName',
title: '负责人', title: '负责人',
minWidth: 120,
}, },
{ {
field: 'updateTime', field: 'updateTime',
title: '更新时间', title: '更新时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
field: 'creatorName', field: 'creatorName',
title: '创建人', title: '创建人',
minWidth: 120,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
formatter: 'formatDateTime', formatter: 'formatDateTime',
minWidth: 180,
}, },
{ {
title: '操作', title: '操作',