Browse Source

修改表格高度超高

fix_bug_pro20231227
13208366016 1 year ago
parent
commit
a76fc033bf
  1. 30
      src/views/basic/pda/basicPda.vue
  2. 30
      src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue
  3. 4
      vite.config.js

30
src/views/basic/pda/basicPda.vue

@ -38,6 +38,34 @@
<el-button type="primary" text icon="el-icon-view" @click="handleview(row)">查看</el-button>
</template>
</avue-crud>
<!-- <div>---------------------------------------------------------------------</div>
<el-table :data="tableData" border style="width: 100%">
<el-table-column type="index" width="50" />
<el-table-column prop="date" label="Date" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="address" label="Address" />
</el-table> -->
<basic-pdaform v-if="!edit" @returnpda="returnpda" :pdaformdata="pdaformdata" />
</basic-container>
</template>
@ -316,8 +344,10 @@ export default {
};
getList(page.currentPage, page.pageSize, values).then(res => {
console.log(res.data.data.records,'res');
const data = res.data.data;
this.page.total = data.total;
console.log(data.total,'sss');
this.data = data.records;
this.loading = false;
this.selectionClear();

30
src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue

@ -313,6 +313,9 @@ export default {
search: true,
multiple: true,
span: 12,
expand: true,
maxHeight: '100',
overHidden: true, //
placeholder: '省/市/区',
dicUrl: '/blade-system/region/lazy-listAll',
checkStrictly: true,
@ -1176,26 +1179,25 @@ export default {
}
</style>
<style scoped lang='scss'>
:deep(.avue-form__row){
max-width:300px!important;
<style scoped lang="scss">
:deep(.avue-form__row) {
max-width: 300px !important;
}
:deep(.el-form-item__label){
width:auto !important;
:deep(.el-form-item__label) {
width: auto !important;
}
:deep(.no-print){
:deep(.no-print) {
// margin-left:auto;
max-width:300px !important;
max-width: 300px !important;
margin-left: inherit;
.el-button{
margin-right:0;
.el-button {
margin-right: 0;
}
}
:deep(.el-form-item){
margin-right:0 !important;
:deep(.el-form-item) {
margin-right: 0 !important;
}
:deep(.avue-form__group--flex) {
justify-content: space-between;
justify-content: space-between;
}
</style>
</style>

4
vite.config.js

@ -20,10 +20,10 @@ export default ({ mode, command }) => {
// caoge
// target: 'http://192.168.10.101:8888',
// cyz
// target: 'http://192.168.10.75:8777',
target: 'http://192.168.10.75:8777',
// tjj
// target: 'http://192.168.10.29:13000',
target: 'http://test.api.huitongys.com',
// target: 'http://test.api.huitongys.com',
// target: 'http://h5uapi.huitongys.com',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''),

Loading…
Cancel
Save