| | |
| | | >
|
| | | <el-option label="全部" :value="''"> </el-option>
|
| | | <el-option
|
| | | v-for="item in levelOptions"
|
| | | :key="item.proc_name"
|
| | | v-for="(item, i) in levelOptions"
|
| | | :key="i"
|
| | | :label="item.proc_name"
|
| | | :value="item.proc_name"
|
| | | >
|
| | |
| | | :header-cell-style="{ background: '#f8f8f8', color: '#222222' }"
|
| | | style="width: 100%"
|
| | | v-if="!showSubTable"
|
| | | border
|
| | | >
|
| | | <template slot="empty">
|
| | | <img :src="png1" class="empty_img" alt="" />
|
| | | </template>
|
| | | <el-table-column :align="'center'" label="序号" type="index" width="50">
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | |
| | | <el-table-column
|
| | | :align="'center'"
|
| | | prop="msg"
|
| | | min-width="100px"
|
| | | label="失败总量"
|
| | | ></el-table-column>
|
| | | </el-table>
|
| | |
|
| | | <div class="back" v-if="showSubTable" @click="showSubTable = false">
|
| | | <span class="icon iconfont"></span>
|
| | | <span class="title">事件推送日志</span>
|
| | | <span class="title" style="color: #4e94ff">事件推送日志</span>
|
| | | </div>
|
| | | <el-table
|
| | | class="tableBox"
|
| | |
| | | :header-cell-style="{ background: '#f8f8f8', color: '#222222' }"
|
| | | style="width: 100%"
|
| | | v-if="showSubTable"
|
| | | border
|
| | | >
|
| | | <template slot="empty">
|
| | | <img :src="png2" class="empty_img2" alt="" />
|
| | | </template>
|
| | | <el-table-column :align="'center'" label="序号" type="index" width="50">
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | |
| | | <script>
|
| | | import { deleteDate } from "@/api/system";
|
| | | import { pad0 } from "@/api/utils";
|
| | | import {} from "@/api/log";
|
| | | import { getModules } from "@/api/log";
|
| | |
|
| | | export default {
|
| | | data() {
|
| | | return {
|
| | | png1: "",
|
| | | png2: require("../../../../public/images/syslog/没数据.png"),
|
| | | loading: false,
|
| | | loadingText: "",
|
| | | showSubTable: false,
|
| | |
| | | getOptions() {
|
| | | getModules().then((res) => {
|
| | | this.levelOptions = res.data;
|
| | | this.png1 = require("../../../../public/images/syslog/没数据.png");
|
| | | });
|
| | | },
|
| | | clickFaults(row, column, cell, event) {
|
| | |
| | | border-radius: 5px;
|
| | | padding: 12px;
|
| | | background-color: white;
|
| | | .empty_img {
|
| | | margin: 80px auto;
|
| | | width: 164px;
|
| | | }
|
| | | .empty_img2 {
|
| | | margin: 50px auto;
|
| | | width: 164px;
|
| | | }
|
| | | .back {
|
| | | display: flex;
|
| | | align-items: center;
|
| | |
| | | }
|
| | | }
|
| | | .tableBox {
|
| | | border: none;
|
| | | &::before,
|
| | | &::after {
|
| | | display: none;
|
| | | }
|
| | |
|
| | | tr {
|
| | | &.current-row td {
|
| | | background-color: #4e94ff !important;
|
| | | color: #fff;
|
| | | }
|
| | | &:hover td {
|
| | | background-color: rgb(242, 242, 247);
|
| | | }
|
| | | }
|
| | | th {
|
| | | padding: 0 !important;
|
| | | height: 40px;
|
| | | line-height: 40px;
|
| | | border-color: #fff !important;
|
| | | border-right: 2px solid #fff;
|
| | | border-radius: 4px;
|
| | | font-size: 12px;
|
| | | background: #f2f2f7;
|
| | | }
|
| | | td {
|
| | | padding: 0 !important;
|
| | | height: 34px;
|
| | | line-height: 34px;
|
| | | border: none;
|
| | | font-size: 12px;
|
| | | }
|
| | | }
|
| | | }
|