update 国内标准、选择标准抽屉

This commit is contained in:
赵霄
2023-09-18 14:59:00 +08:00
parent 41b7cd15c6
commit b9d19e081b
6 changed files with 27 additions and 19 deletions
@@ -34,8 +34,8 @@
</div>
<a-table
:columns="columns"
rowKey="serial_number"
:scroll="{x: 1500}"
rowKey="standardNumber"
:scroll="{x: 900}"
:data-source="dataList"
:pagination="ipagination"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -101,23 +101,23 @@ export default {
columns: [
{
title: this.$t('number'),
dataIndex: 'serial_number',
dataIndex: 'standardNumber',
ellipsis: true,
align: 'left',
width: 480
align: 'center',
width: 150
},
{
title: this.$t('title'),
dataIndex: 'title',
dataIndex: 'standardName',
ellipsis: true,
align: 'left',
width: 480
align: 'center',
width: 150
},
{
title: this.$t('textStatus'),
dataIndex: 'state',
align: 'left',
width: 480
dataIndex: 'standardState_dictText',
align: 'center',
width: 150
}
],
dataList: []
@@ -171,7 +171,7 @@ export default {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
// let content = JSON.parse(JSON.stringify(this.selectedRowList))
this.selectedRowList.forEach(res => {
serialNumber.push(res.serial_number)
serialNumber.push(res.standardNumber)
replaceStandardId.push(res.id)
})
this.$emit('input', serialNumber.join(','))