fix(table): 修复表格尺寸调整问题
This commit is contained in:
parent
4a72e607ab
commit
08413b6e0a
@ -41,8 +41,10 @@
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item>
|
||||
</el-form>
|
||||
</el-row>
|
||||
<el-row class="JNPF-common-search-box button-row" :gutter="16">
|
||||
<el-col :span="24" class="button-col">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
@ -64,9 +66,7 @@
|
||||
>
|
||||
生成订单
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-form>
|
||||
</el-row>
|
||||
<div class="JNPF-common-layout-main JNPF-flex-main">
|
||||
<div class="JNPF-common-head">
|
||||
@ -268,6 +268,16 @@ export default {
|
||||
ordItemStatus: undefined,
|
||||
custName: undefined,
|
||||
};
|
||||
// 清空表格选中状态
|
||||
this.selectedRows = [];
|
||||
this.hasSelected = false;
|
||||
const table = this.$refs.table;
|
||||
if (table) {
|
||||
const elTable = table.$refs.JNPFTable || table.$refs.table;
|
||||
if (elTable && elTable.clearSelection) {
|
||||
elTable.clearSelection();
|
||||
}
|
||||
}
|
||||
this.initSearchData();
|
||||
this.search();
|
||||
},
|
||||
@ -394,4 +404,12 @@ export default {
|
||||
height: auto;
|
||||
min-height: 300px;
|
||||
}
|
||||
.button-row {
|
||||
padding-top: 8px;
|
||||
}
|
||||
.button-col {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user