fix: bug#11161 修复采集器扫描table样式异常
This commit is contained in:
parent
f16bc40373
commit
9e7242c27d
|
@ -4,7 +4,7 @@
|
||||||
v-if="modelRef.dataSource.length !== 0"
|
v-if="modelRef.dataSource.length !== 0"
|
||||||
:dataSource="modelRef.dataSource"
|
:dataSource="modelRef.dataSource"
|
||||||
:columns="FormTableColumns"
|
:columns="FormTableColumns"
|
||||||
:scroll="{ x: 1000, y: 550 }"
|
:scroll="{ y: 580 }"
|
||||||
>
|
>
|
||||||
<template #headerCell="{ column }">
|
<template #headerCell="{ column }">
|
||||||
<template
|
<template
|
||||||
|
@ -46,12 +46,18 @@
|
||||||
:bordered="false"
|
:bordered="false"
|
||||||
></j-input>
|
></j-input>
|
||||||
</j-form-item>
|
</j-form-item>
|
||||||
<div style="margin: -24px 0 0 10px">
|
<div
|
||||||
<Ellipsis style="width: calc(100% - 10px)">
|
style="
|
||||||
<span>
|
margin: -24px 0 0 10px;
|
||||||
{{ record[dataIndex] }}
|
overflow: hidden;
|
||||||
</span>
|
white-space: nowrap;
|
||||||
</Ellipsis>
|
text-overflow: ellipsis;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<j-tooltip>
|
||||||
|
<template #title>{{ record[dataIndex] }}</template>
|
||||||
|
{{ record[dataIndex] }}
|
||||||
|
</j-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="dataIndex === 'accessModes'">
|
<template v-if="dataIndex === 'accessModes'">
|
||||||
|
@ -112,7 +118,7 @@
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<j-input
|
<j-input
|
||||||
style="width: 70%"
|
style="width: 60%"
|
||||||
v-model:value="
|
v-model:value="
|
||||||
record.configuration[dataIndex].value
|
record.configuration[dataIndex].value
|
||||||
"
|
"
|
||||||
|
@ -148,7 +154,7 @@
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<j-select
|
<j-select
|
||||||
style="width: 50%"
|
style="width: 40%"
|
||||||
v-model:value="record[dataIndex].value"
|
v-model:value="record[dataIndex].value"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
allowClear
|
allowClear
|
||||||
|
@ -309,12 +315,20 @@ watch(
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.table {
|
.table {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 600px;
|
||||||
|
:deep(.ant-table-header) {
|
||||||
|
.ant-table-cell {
|
||||||
|
padding: 16px 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:deep(.ant-table-tbody) {
|
:deep(.ant-table-tbody) {
|
||||||
.ant-table-cell {
|
.ant-table-cell {
|
||||||
padding: 24px 0 0 0;
|
padding: 24px 0 0 0;
|
||||||
}
|
}
|
||||||
.ant-table-cell-fix-right-first {
|
.ant-table-cell-fix-right-first {
|
||||||
padding: 0 0 0 20px;
|
padding: 0 0 0 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:deep(.ant-pagination) {
|
:deep(.ant-pagination) {
|
||||||
|
|
|
@ -177,7 +177,7 @@ export const FormTableColumns = [
|
||||||
title: 'nodeId',
|
title: 'nodeId',
|
||||||
dataIndex: 'id',
|
dataIndex: 'id',
|
||||||
key: 'id',
|
key: 'id',
|
||||||
width: 180,
|
width: 200,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -190,19 +190,19 @@ export const FormTableColumns = [
|
||||||
title: '采集频率',
|
title: '采集频率',
|
||||||
key: 'interval',
|
key: 'interval',
|
||||||
dataIndex: 'interval',
|
dataIndex: 'interval',
|
||||||
width: 220,
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '只推送变化的数据',
|
title: '只推送变化的数据',
|
||||||
key: 'features',
|
key: 'features',
|
||||||
dataIndex: 'features',
|
dataIndex: 'features',
|
||||||
width: 160,
|
width: 140,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
key: 'action',
|
key: 'action',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 60,
|
width: 50,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue