|
|
@@ -12,12 +12,13 @@
|
|
|
ref="table"
|
|
|
:columns="columns"
|
|
|
:datasource="datasource"
|
|
|
- :height="tableHeight"
|
|
|
+ height="calc(100vh - 605px)"
|
|
|
+ full-height="calc(100vh -120px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
row-key="qualityLevelId"
|
|
|
v-if="equipmentdialog"
|
|
|
:selection.sync="selection"
|
|
|
- @fullscreen-change="fullscreenChange"
|
|
|
+ :initLoad="false"
|
|
|
>
|
|
|
<template v-slot:status="{ row }">
|
|
|
{{ row.status ? '启用' : '停用' }}
|
|
|
@@ -94,8 +95,7 @@
|
|
|
slot: 'action',
|
|
|
fixed: 'right'
|
|
|
}
|
|
|
- ],
|
|
|
- tableHeight: 'calc(100vh - 605px)'
|
|
|
+ ]
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -105,25 +105,20 @@
|
|
|
return getList({
|
|
|
...where,
|
|
|
pageNum: page,
|
|
|
- size: limit,
|
|
|
- type: this.type
|
|
|
+ size: limit
|
|
|
});
|
|
|
},
|
|
|
open(type) {
|
|
|
- this.type = type;
|
|
|
this.equipmentdialog = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.search.setWhere(type);
|
|
|
+ this.$refs.search.search();
|
|
|
+ });
|
|
|
},
|
|
|
handleClose() {
|
|
|
this.equipmentdialog = false;
|
|
|
},
|
|
|
|
|
|
- fullscreenChange(fullscreen) {
|
|
|
- if (fullscreen) {
|
|
|
- this.tableHeight = 'calc(100vh - 120px)';
|
|
|
- } else {
|
|
|
- this.tableHeight = 'calc(100vh - 605px)';
|
|
|
- }
|
|
|
- },
|
|
|
// 选择
|
|
|
selected() {
|
|
|
if (!this.selection.length) {
|