|
|
@@ -4,12 +4,13 @@
|
|
|
ref="table"
|
|
|
:columns="columns"
|
|
|
:datasource="list"
|
|
|
- height="calc(100vh - 500px)"
|
|
|
+ :height="tableHeight"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
cache-key="inspectionClassify"
|
|
|
row-key="qualityLevelId"
|
|
|
:selection.sync="selection"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
+ @fullscreen-change="fullscreenChange"
|
|
|
>
|
|
|
<template v-slot:toolbar>
|
|
|
<el-button @click="handAdd" size="mini" type="primary" v-if="!isView"
|
|
|
@@ -233,7 +234,8 @@
|
|
|
slot: 'action',
|
|
|
fixed: 'right'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ tableHeight: 'calc(100vh - 500px)'
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -262,6 +264,14 @@
|
|
|
this.$refs.termRef.open(this.list);
|
|
|
},
|
|
|
|
|
|
+ fullscreenChange(fullscreen) {
|
|
|
+ if (fullscreen) {
|
|
|
+ this.tableHeight = 'calc(100vh - 120px)';
|
|
|
+ } else {
|
|
|
+ this.tableHeight = 'calc(100vh - 500px)';
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
async getDictList(code) {
|
|
|
let { data: res } = await getByCode(code);
|
|
|
this.dictList = res.map((item) => {
|