操作日志页面显示字段调整

This commit is contained in:
yuanxingzhi
2020-04-10 18:42:13 +08:00
parent a1187db3df
commit 70661be3cd
4 changed files with 86 additions and 38 deletions

View File

@@ -29,6 +29,9 @@
<div class="sidebar-info-item sidebar-info-item-active" @click="jumpTo('terminallog')" id="terminallog-jump-terminallog">
{{$t('config.terminallog.terminallog')}}
</div>
<div class="sidebar-info-item" @click="jumpTo('operationlog')" id="terminallog-jump-operation">
{{$t('config.operationlog.operationlog')}}
</div>
</div>
</div>
<div class="content-right">
@@ -74,13 +77,13 @@
<span v-else>{{scope.row[item.prop]}}</span>
</template>
</el-table-column>
<!-- <el-table-column width="28">-->
<!-- <template slot="header" slot-scope="scope">-->
<!-- <span @click.stop="elementsetShow('shezhi',$event)" class="nz-table-gear">-->
<!-- <i class="nz-icon nz-icon-gear"></i>-->
<!-- </span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column width="28">
<template slot="header" slot-scope="scope">
<span @click.stop="elementsetShow('shezhi',$event)" class="nz-table-gear">
<i class="nz-icon nz-icon-gear"></i>
</span>
</template>
</el-table-column>
</el-table>
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
<button class="to-top" v-show="showTopBtn" @click="$toTop"><i class="nz-icon nz-icon-top"></i></button>
@@ -235,27 +238,27 @@
}
},
methods: {
// elementsetShow(s, e) {
// var eventfixed = {
// shezhi: 0,
// screen: 0
// };
// eventfixed[s] = 1;
// e.preventDefault();
// this.$store.commit('setHeaderTable', this.tablelable);
// this.$store.commit('setEventfixed', eventfixed);
// const h = document.documentElement.clientHeight;
// const w = document.documentElement.clientWidth;
// const dw = this.$refs.elementset.$el.offsetWidth;
// const dh = this.$refs.elementset.$el.offsetHeight;
// let positionx =
// e.clientX + dw <= w - 10 ? e.clientX + 14 : e.clientX + 14 - dw;
// let positiony =
// e.clientY + dh <= h - 10
// ? e.clientY + 20
// : e.clientY + 20 - (e.clientY + dh - h);
// this.$store.commit('setPosition', {positionx, positiony});
// },
elementsetShow(s, e) {
var eventfixed = {
shezhi: 0,
screen: 0
};
eventfixed[s] = 1;
e.preventDefault();
this.$store.commit('setHeaderTable', this.tablelable);
this.$store.commit('setEventfixed', eventfixed);
const h = document.documentElement.clientHeight;
const w = document.documentElement.clientWidth;
const dw = this.$refs.elementset.$el.offsetWidth;
const dh = this.$refs.elementset.$el.offsetHeight;
let positionx =
e.clientX + dw <= w - 10 ? e.clientX + 14 : e.clientX + 14 - dw;
let positiony =
e.clientY + dh <= h - 10
? e.clientY + 20
: e.clientY + 20 - (e.clientY + dh - h);
this.$store.commit('setPosition', {positionx, positiony});
},
elementsetHide() {
//悬浮点击空白隐藏
this.$refs.elementset.elementsetHide();