|
@@ -37,7 +37,8 @@
|
|
|
<el-table
|
|
|
:data="tableData"
|
|
|
:row-class-name="tableRowClassName"
|
|
|
- class="table"
|
|
|
+ class="table scrollbar"
|
|
|
+ height="450"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-table-column label="应用名称">
|
|
@@ -81,13 +82,20 @@
|
|
|
<script>
|
|
|
import Search from "@/layout/components/Search";
|
|
|
import { GetLogList } from "@/api/apiLog";
|
|
|
+import { parseTime } from "@/utils/index";
|
|
|
export default {
|
|
|
name: "Journal",
|
|
|
components: { Search },
|
|
|
data() {
|
|
|
return {
|
|
|
tableData: [],
|
|
|
- value1: "",
|
|
|
+ value1: [
|
|
|
+ parseTime(new Date(), "{y}-{m}-{d} 00:00:00"),
|
|
|
+ parseTime(
|
|
|
+ new Date().getTime() + 24 * 60 * 60 * 1000,
|
|
|
+ "{y}-{m}-{d} 00:00:00"
|
|
|
+ ),
|
|
|
+ ],
|
|
|
Msg: "",
|
|
|
BeginTime: "",
|
|
|
EndTime: "",
|
|
@@ -135,11 +143,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
clearSearch() {
|
|
|
- this.value1 = "";
|
|
|
this.getLogList({
|
|
|
Msg: "",
|
|
|
- BeginTime: "",
|
|
|
- EndTime: "",
|
|
|
+ BeginTime: this.BeginTime,
|
|
|
+ EndTime: this.EndTime,
|
|
|
});
|
|
|
},
|
|
|
pickerChange(val) {
|
|
@@ -212,7 +219,7 @@ export default {
|
|
|
}
|
|
|
.el-table__cell {
|
|
|
padding: 16px 0;
|
|
|
- background: #f5f7fa;
|
|
|
+ // background: #f5f7fa;
|
|
|
}
|
|
|
.el-table__row--level-1 {
|
|
|
td {
|
|
@@ -226,10 +233,19 @@ export default {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
.warning-row {
|
|
|
- background: #f5f7fa;
|
|
|
+ background-color: #f5f7fa;
|
|
|
}
|
|
|
.success-row {
|
|
|
- background: #e3e6ef;
|
|
|
+ background-color: #e3e6ef;
|
|
|
+ }
|
|
|
+ .el-table__body-wrapper {
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ width: 8px;
|
|
|
+ }
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
+ background: #b6bac3;
|
|
|
+ border-radius: 2px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|