|
|
@ -6,8 +6,7 @@ |
|
|
|
:close-on-press-escape="false" |
|
|
|
:width="diaWidth+'%'" |
|
|
|
:top="diaTop"> |
|
|
|
<el-row class="wrap" |
|
|
|
:gutter="24"> |
|
|
|
<el-row :gutter="24"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-card class="box-card"> |
|
|
|
<div slot="header" |
|
|
@ -20,8 +19,8 @@ |
|
|
|
:height="tableHeight" |
|
|
|
:data="allHaveList" |
|
|
|
border |
|
|
|
@select="handleSelect" |
|
|
|
@select-all="handleSelectAll"> |
|
|
|
@select="handleSelectSync" |
|
|
|
@select-all="handleSelectAllSync"> |
|
|
|
|
|
|
|
<el-table-column type="selection"></el-table-column> |
|
|
|
|
|
|
@ -48,8 +47,8 @@ |
|
|
|
:data="allNoList" |
|
|
|
border |
|
|
|
v-loading="tableLoading" |
|
|
|
@select="handleSelect" |
|
|
|
@select-all="handleSelectAll"> |
|
|
|
@select="handleSelectNo" |
|
|
|
@select-all="handleSelectAllNo"> |
|
|
|
|
|
|
|
<el-table-column type="selection"></el-table-column> |
|
|
|
|
|
|
@ -102,10 +101,9 @@ export default { |
|
|
|
return this.clientHeight - 60 - 80 - 80 - 280 |
|
|
|
}, |
|
|
|
tableHeight () { |
|
|
|
return this.clientHeight - 60 - 80 - 80 - 280 - 100 |
|
|
|
return this.clientHeight - 60 - 80 - 80 - 280 |
|
|
|
}, |
|
|
|
diaWidth () { |
|
|
|
|
|
|
|
return this.resolution === 'small' ? 60 : 50 |
|
|
|
}, |
|
|
|
diaTop () { |
|
|
@ -125,17 +123,35 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 选中复选框 |
|
|
|
handleSelect (selection, row) { |
|
|
|
handleSelectSync (selection, row) { |
|
|
|
this.syncBarKeyList = [] |
|
|
|
selection.forEach(item => { |
|
|
|
this.syncBarKeyList.push(item) |
|
|
|
this.syncBarKeyList.push(item.barKey) |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
// 全选复选框 |
|
|
|
handleSelectAll (selection) { |
|
|
|
debugger |
|
|
|
handleSelectAllSync (selection) { |
|
|
|
this.syncBarKeyList = [] |
|
|
|
selection.forEach(item => { |
|
|
|
this.syncBarKeyList.push(item.barKey) |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 选中复选框 |
|
|
|
handleSelectNo (selection, row) { |
|
|
|
this.addBarKeyList = [] |
|
|
|
selection.forEach(item => { |
|
|
|
this.addBarKeyList.push(item.barKey) |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
// 全选复选框 |
|
|
|
handleSelectAllNo (selection) { |
|
|
|
this.addBarKeyList = [] |
|
|
|
selection.forEach(item => { |
|
|
|
this.addBarKeyList.push(item.barKey) |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
async loadNoBarList () { |
|
|
|
|
|
|
@ -167,6 +183,7 @@ export default { |
|
|
|
syncBarKeyList: this.syncBarKeyList, |
|
|
|
addBarKeyList: this.addBarKeyList, |
|
|
|
} |
|
|
|
console.log("params", params) |
|
|
|
this.startLoading() |
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
if (code === 0) { |
|
|
@ -211,7 +228,4 @@ export default { |
|
|
|
.wrap { |
|
|
|
height: 400px; |
|
|
|
} |
|
|
|
.div_list { |
|
|
|
height: 300px; |
|
|
|
} |
|
|
|
</style> |
|
|
|