原项目库 关联平台件修改数组循环表格问题
This commit is contained in:
@@ -8,14 +8,14 @@
|
|||||||
@close="handleCancel"
|
@close="handleCancel"
|
||||||
:visible="visible"
|
:visible="visible"
|
||||||
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||||
<div style="margin-bottom: 60px">
|
<div style="margin-bottom: 60px" v-for='(item,index) in data'>
|
||||||
<div>{{'GB 111'}}{{$t('associatedItem')}}</div>
|
<div>{{'GB 111'}}{{$t('associatedItem')}}</div>
|
||||||
<a-table
|
<a-table
|
||||||
:components="drag(columns,'columns')"
|
:components="drag(columns,'columns')"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:scroll="{x: 1000}"
|
:scroll="{x: 1000}"
|
||||||
:data-source="dataList"
|
:data-source="item.list"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:'' }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:'' }"
|
||||||
:loading="loading">
|
:loading="loading">
|
||||||
@@ -108,7 +108,52 @@
|
|||||||
width: 130
|
width: 130
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
dataList: [],
|
data: [
|
||||||
|
{
|
||||||
|
id:'1',
|
||||||
|
list:[
|
||||||
|
{
|
||||||
|
createBy: "linda.zhao",
|
||||||
|
createByCn: null,
|
||||||
|
createTime: "2023-04-17 19:10:14",
|
||||||
|
cut: null,
|
||||||
|
id: "1647920396307046401",
|
||||||
|
name: "EU/UK Regulation List V23.04",
|
||||||
|
orderBy: null,
|
||||||
|
orderByField: null,
|
||||||
|
readFlag: null,
|
||||||
|
state: "1",
|
||||||
|
state_dictText: "已发布",
|
||||||
|
sysOrgCode: "SUPERVISORY_ORGANIZATION-3-522",
|
||||||
|
updateBy: "admin",
|
||||||
|
updateTime: "2023-05-10 15:24:33",
|
||||||
|
upgradeExplanation: "asd",
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id:'1',
|
||||||
|
list:[
|
||||||
|
{
|
||||||
|
createBy: "linda.zhao",
|
||||||
|
createByCn: null,
|
||||||
|
createTime: "2023-04-17 19:10:14",
|
||||||
|
cut: null,
|
||||||
|
id: "1647920396307046401",
|
||||||
|
name: "EU/UK Regulation List V23.04",
|
||||||
|
orderBy: null,
|
||||||
|
orderByField: null,
|
||||||
|
readFlag: null,
|
||||||
|
state: "1",
|
||||||
|
state_dictText: "已发布",
|
||||||
|
sysOrgCode: "SUPERVISORY_ORGANIZATION-3-522",
|
||||||
|
updateBy: "admin",
|
||||||
|
updateTime: "2023-05-10 15:24:33",
|
||||||
|
upgradeExplanation: "asd",
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
],
|
||||||
content: [],
|
content: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
@@ -172,6 +217,8 @@
|
|||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
handleSubmit(flag) {
|
handleSubmit(flag) {
|
||||||
|
console.log(this.selectedRowKeys)
|
||||||
|
return
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
|||||||
Reference in New Issue
Block a user