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