fix:停机异常删除以及stlog表格table高度自适应
This commit is contained in:
parent
67f664638f
commit
7e2a6f2f0b
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-main class="nopadding">
|
<el-main id="elMain" class="nopadding">
|
||||||
<el-card style="margin: 6px; position: relative">
|
<el-card id="logDetail" style="margin: 6px; position: relative">
|
||||||
<el-descriptions title="日志信息" :column="3">
|
<el-descriptions title="日志信息" :column="3">
|
||||||
<el-descriptions-item label="所属工段:">
|
<el-descriptions-item label="所属工段:">
|
||||||
<span>{{ form.mgroup_name }}</span>
|
<span>{{ form.mgroup_name }}</span>
|
||||||
|
@ -31,6 +31,7 @@
|
||||||
>新增异常</el-button
|
>新增异常</el-button
|
||||||
>
|
>
|
||||||
<el-tabs
|
<el-tabs
|
||||||
|
ref="infoTabd"
|
||||||
v-model="activeName"
|
v-model="activeName"
|
||||||
class="demo-tabs"
|
class="demo-tabs"
|
||||||
@tab-click="handleClick"
|
@tab-click="handleClick"
|
||||||
|
@ -129,7 +130,7 @@
|
||||||
row-key="id"
|
row-key="id"
|
||||||
stripe
|
stripe
|
||||||
hideSetting
|
hideSetting
|
||||||
:height="300"
|
:height="heightTable"
|
||||||
highlightCurrentRow
|
highlightCurrentRow
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
|
@ -392,7 +393,19 @@
|
||||||
<el-tab-pane label="异常" name="fourth">
|
<el-tab-pane label="异常" name="fourth">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-table
|
<scTable
|
||||||
|
ref="stlogTable"
|
||||||
|
:apiObj="apiObjStlog"
|
||||||
|
:query="querystlog"
|
||||||
|
:params="querystlog"
|
||||||
|
row-key="id"
|
||||||
|
stripe
|
||||||
|
hideSetting
|
||||||
|
:height="heightTable"
|
||||||
|
@row-click="stlogRowClick"
|
||||||
|
highlightCurrentRow
|
||||||
|
>
|
||||||
|
<!-- <el-table
|
||||||
ref="stlogTable"
|
ref="stlogTable"
|
||||||
:data="stlogList"
|
:data="stlogList"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
|
@ -400,7 +413,7 @@
|
||||||
@row-click="stlogRowClick"
|
@row-click="stlogRowClick"
|
||||||
:height="300"
|
:height="300"
|
||||||
highlightCurrentRow
|
highlightCurrentRow
|
||||||
>
|
> -->
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="异常类别"
|
label="异常类别"
|
||||||
|
@ -467,15 +480,16 @@
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</scTable>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-table
|
<scTable
|
||||||
ref="expTable"
|
ref="expTable"
|
||||||
:data="sflogexpList"
|
:data="sflogexpList"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
stripe
|
stripe
|
||||||
:height="300"
|
:height="heightTable"
|
||||||
|
hidePagination
|
||||||
highlightCurrentRow
|
highlightCurrentRow
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
|
@ -529,7 +543,7 @@
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</scTable>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<!-- <el-row :gutter="20" v-if="sflogExpVisiable"> -->
|
<!-- <el-row :gutter="20" v-if="sflogExpVisiable"> -->
|
||||||
|
@ -745,6 +759,7 @@ export default {
|
||||||
mpoint__type: 30,
|
mpoint__type: 30,
|
||||||
has_create_by: 1,
|
has_create_by: 1,
|
||||||
},
|
},
|
||||||
|
querystlog: { mgroup: "" },
|
||||||
sflogExpVisiable: false,
|
sflogExpVisiable: false,
|
||||||
checkList: [],
|
checkList: [],
|
||||||
stlogList: [],
|
stlogList: [],
|
||||||
|
@ -753,22 +768,32 @@ export default {
|
||||||
sflogexpList: [],
|
sflogexpList: [],
|
||||||
mpointOptions: [],
|
mpointOptions: [],
|
||||||
apiObj: null,
|
apiObj: null,
|
||||||
|
apiObjStlog: null,
|
||||||
|
heightTable: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.deptId = this.$route.query.deptId;
|
this.deptId = this.$route.query.deptId;
|
||||||
this.mgroupId = this.$route.query.mgroupId;
|
this.mgroupId = this.$route.query.mgroupId;
|
||||||
this.querymplogX.mgroup = this.mgroupId;
|
this.querymplogX.mgroup = this.mgroupId;
|
||||||
|
this.querystlog.mgroup = this.mgroupId;
|
||||||
this.apiObj = this.$API.enm.mpoint.stat;
|
this.apiObj = this.$API.enm.mpoint.stat;
|
||||||
|
this.apiObjStlog = this.$API.wpm.stlog.list;
|
||||||
let form = this.$TOOL.data.get("sflogItem");
|
let form = this.$TOOL.data.get("sflogItem");
|
||||||
this.form = JSON.parse(form);
|
this.form = JSON.parse(form);
|
||||||
if (this.form.mgroup_name == "石灰石破碎") {
|
if (this.form.mgroup_name == "石灰石破碎") {
|
||||||
this.getMpoint();
|
this.getMpoint();
|
||||||
this.getMpointStat();
|
this.getMpointStat();
|
||||||
}
|
}
|
||||||
console.log(this.form);
|
|
||||||
this.getTeam();
|
this.getTeam();
|
||||||
this.getStlog();
|
this.getStlog();
|
||||||
|
let height = document.getElementById("elMain").clientHeight;
|
||||||
|
let heightdetail = document.getElementById("logDetail").clientHeight;
|
||||||
|
let heightTabs = height - heightdetail - 40;
|
||||||
|
this.heightTable = heightTabs - 45 + "px";
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.infoTabd.$el.style.height = heightTabs + "px";
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClick(e) {
|
handleClick(e) {
|
||||||
|
|
Loading…
Reference in New Issue