fix : 表格前方加上序号

This commit is contained in:
2024-08-01 17:00:48 +08:00
parent d265ef5a32
commit a4f94099af
11 changed files with 100 additions and 20 deletions

View File

@@ -113,43 +113,53 @@ const tableConfig = reactive({
// type: 'selection',
// prop: 'selection'
// },
{
prop: 'index',
type: 'index',
label: '序号',
align: 'center',
width:85,
},
{
prop: 'requirementName',
label: '征集名称',
align: 'center'
align: 'center',
},
{
prop: 'collectType',
label: '征集类型',
align: 'center'
align: 'center',
// width: 200
},
{
prop: 'companyName',
label: '征集公司',
align: 'center',
// currentRender: ({row, index}) => (
// <div style={{width: '300px', textOverflow: 'ellipsis',textAlign:'center'}}>{row.companyName}</div>)
// width: 200
},
{
prop: 'approveName',
label: '审批人',
align: 'center'
align: 'center',
// width: 100,
},
{
prop: 'deadline',
label: '截止时间',
align: 'center'
label: '需求上报截止时间',
align: 'center',
// width: 150,
},
{
prop: 'taskNode',
label: '当前节点',
align: 'center'
align: 'center',
// width: 300
},
{
prop: 'state',
label: '状态',
align: 'center',
width: 200,
// width: 100,
showOverflowTooltip: false,
currentRender: ({row, index}) => (<Tag dictType={'demand_collection'} value={row.state}/>)
},
@@ -157,7 +167,7 @@ const tableConfig = reactive({
prop: 'oper',
label: '操作',
align: 'center',
fixed: 'right',
width: 150,
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = []

View File

@@ -157,6 +157,13 @@ const tableConfig = reactive({
return row.state === '4';
}
},
{
prop: 'index',
type: 'index',
label: '序号',
align: 'center',
width:60,
},
{
prop: 'requirementName',
label: '征集名称',