| | |
| | | data() { |
| | | return { |
| | | menuArr: [ |
| | | { name: "操作日志", icon: "\ue706", size: 19 }, |
| | | { name: "系统日志", icon: "\ue730", size: 19 }, |
| | | { name: "轮询日志", icon: "\ue708", size: 21 }, |
| | | { name: "事件推送日志", icon: "\ue707", size: 13 }, |
| | | { name: "操作日志", icon: "\ue706", size: 26 }, |
| | | { name: "系统日志", icon: "\ue730", size: 26 }, |
| | | { name: "轮询日志", icon: "\ue708", size: 26 }, |
| | | { name: "事件推送日志", icon: "\ue707", size: 15 }, |
| | | ], |
| | | activePage: 0, |
| | | }; |
| | |
| | | background-color: #fff; |
| | | .container-left { |
| | | height: 100%; |
| | | width: 210px; |
| | | width: 244px; |
| | | overflow: auto; |
| | | box-sizing: border-box; |
| | | flex-shrink: 0; |
| | | padding: 10px; |
| | | border-right: 5px solid rgba(248, 248, 248, 1); |
| | | border-top: 1px solid #e1e0e6; |
| | | box-sizing: border-box; |
| | | background-color: #fff; |
| | | .left-card { |
| | | height: 55px; |
| | | height: 56px; |
| | | cursor: pointer; |
| | | border-radius: 12px; |
| | | margin-bottom: 10px; |
| | | border-radius: 8px; |
| | | margin-bottom: 4px; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .iconfont { |
| | | margin-left: 15px; |
| | | margin-right: 10px; |
| | | font-size: 20px; |
| | | margin-left: 17px; |
| | | margin-right: 27px; |
| | | font-size: 26px; |
| | | } |
| | | .card-text { |
| | | font-size: 16px; |
| | | font-weight: bold; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .left-card-active { |
| | | background-color: rgba(61, 104, 225, 1); |
| | | background-color: #4e94ff !important; |
| | | color: #fff; |
| | | } |
| | | .left-card:hover { |
| | | background-color: rgba(61, 104, 225, 1); |
| | | color: #fff; |
| | | background-color: #f2f2f7; |
| | | } |
| | | } |
| | | } |
| | |
| | | label="失败总量"
|
| | | ></el-table-column>
|
| | | </el-table>
|
| | | |
| | | <div class="back" v-if="showSubTable" @click="showSubTable=false">
|
| | |
|
| | | <div class="back" v-if="showSubTable" @click="showSubTable = false">
|
| | | <span class="icon iconfont"></span>
|
| | | <span class="title">事件推送日志</span>
|
| | | </div>
|
| | | <el-table
|
| | | <el-table
|
| | | class="tableBox"
|
| | | ref="multipleTable"
|
| | | :cell-style="styleFunc"
|
| | |
| | | prop="result"
|
| | | label="再次推送状态"
|
| | | ></el-table-column>
|
| | | |
| | | </el-table>
|
| | | </div>
|
| | |
|
| | |
| | | data() {
|
| | | return {
|
| | | loading: false,
|
| | | loadingText: "",showSubTable: false,
|
| | | loadingText: "",
|
| | | showSubTable: false,
|
| | | tableData: [
|
| | | { msg: 2, userName: "车辆识别" },
|
| | | { userName: "人脸识别", msg: 4 },
|
| | | ],
|
| | | subTableData:[
|
| | |
|
| | |
|
| | | ],
|
| | | subTableData: [],
|
| | | dateArr: ["今日", "近三天", "近七天", "近一个月", "近六个月"],
|
| | | levelOptions: [],
|
| | | hostNameOptions: [],
|
| | |
| | | });
|
| | | },
|
| | | clickFaults(row, column, cell, event) {
|
| | | this.showSubTable=true
|
| | |
|
| | |
|
| | | this.showSubTable = true;
|
| | | },
|
| | | choseRange(item, i) {
|
| | | switch (item) {
|
| | |
| | | <style lang="scss">
|
| | | .push-log {
|
| | | margin: 0 auto;
|
| | | padding: 10px 8px 10px 5px;
|
| | | background-color: rgba(248, 248, 248, 1);
|
| | | padding: 0px 8px 10px 5px;
|
| | | border-top: 1px solid #e1e0e6;
|
| | | background-color: rgba(242, 242, 247, 1);
|
| | | width: 100%;
|
| | | display: flex;
|
| | | flex-direction: column;
|
| | |
| | | display: flex;
|
| | | margin: 10px 0;
|
| | | padding: 0 20px;
|
| | | |
| | |
|
| | | .bar {
|
| | | display: flex;
|
| | | align-items: baseline;
|
| | |
| | | border-radius: 5px;
|
| | | padding: 12px;
|
| | | background-color: white;
|
| | | .back{
|
| | | display: flex;
|
| | | align-items: center;
|
| | | .icon{
|
| | | cursor: pointer; margin:0 5px;font-size: 18px;
|
| | | }
|
| | | .title{
|
| | | cursor: pointer; line-height: 30px;font-size: 14px;
|
| | |
|
| | | }
|
| | | .back {
|
| | | display: flex;
|
| | | align-items: center;
|
| | | .icon {
|
| | | cursor: pointer;
|
| | | margin: 0 5px;
|
| | | font-size: 18px;
|
| | | }
|
| | | .title {
|
| | | cursor: pointer;
|
| | | line-height: 30px;
|
| | | font-size: 14px;
|
| | | }
|
| | | }
|
| | | .tableBox {
|
| | | th {
|
| | | padding: 0 !important;
|
| | |
| | | size="small"
|
| | | class="input-with-select"
|
| | | >
|
| | | <el-button
|
| | | <span
|
| | | class="icon iconfont"
|
| | | @click="getOperationLog(1)"
|
| | | slot="append"
|
| | | >
|
| | | 
|
| | | </span>
|
| | | <!-- <el-button
|
| | | slot="append"
|
| | | icon="el-icon-search"
|
| | | @click="getOperationLog(1)"
|
| | | ></el-button>
|
| | | ></el-button> -->
|
| | | </el-input>
|
| | | </div>
|
| | | </div>
|
| | |
| | | <style lang="scss">
|
| | | .op-log {
|
| | | margin: 0 auto;
|
| | | padding: 1px 8px 10px 0;
|
| | | background-color: rgba(248, 248, 248, 1);
|
| | | padding: 0px 8px 10px 5px;
|
| | | border-top: 1px solid #e1e0e6;
|
| | | background-color: rgba(242, 242, 247, 1);
|
| | | width: 100%;
|
| | | display: flex;
|
| | | flex-direction: column;
|
| | | overflow: auto;
|
| | | .top {
|
| | | height: 100px;
|
| | | height: 132px;
|
| | | background: #fff;
|
| | | border-radius: 5px;
|
| | | .first {
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | | align-items: center;
|
| | | height: 45px;
|
| | | padding: 0 20px;
|
| | | padding: 20px 20px 0 20px;
|
| | | .time-option {
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | |
| | | .title {
|
| | | margin-right: 10px;
|
| | | min-width: fit-content;
|
| | | font-size: 14px;
|
| | | font-weight: bold;
|
| | | font-size: 12px;
|
| | | }
|
| | | .opts {
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | | .opt {
|
| | | box-sizing: border-box;
|
| | | border: 2px solid #efeff6;
|
| | | min-width: fit-content;
|
| | | width: 50px;
|
| | | height: 32px;
|
| | | width: 100px;
|
| | | height: 36px;
|
| | | padding: 0 15px;
|
| | | border-radius: 4px;
|
| | | cursor: pointer;
|
| | | margin-right: 10px;
|
| | | margin-right: 2px;
|
| | | line-height: 32px;
|
| | | font-size: 14px;
|
| | | font-size: 12px;
|
| | | color: #333;
|
| | | }
|
| | | .opt:hover {
|
| | | background-color: rgba(61, 104, 225, 1);
|
| | | color: #fff;
|
| | | border-color: #4e94ff;
|
| | | }
|
| | | .opt-active {
|
| | | color: #fff;
|
| | | background-color: rgba(61, 104, 225, 1);
|
| | | background-color: #4e94ff;
|
| | | border-color: #4e94ff;
|
| | | }
|
| | | }
|
| | | }
|
| | | .search {
|
| | | width: 280px;
|
| | | height: 36px;
|
| | | display: flex;
|
| | | align-items: center;
|
| | |
|
| | | .input-with-select {
|
| | | width: 100%;
|
| | | height: 100%;
|
| | |
|
| | | input {
|
| | | height: 100%;
|
| | | border-radius: 18px 0 0 18px;
|
| | | border: 2px solid #f2f2f7;
|
| | | border-right: none;
|
| | |
|
| | | // &:focus + .el-input-group__append {
|
| | | // border-color: #409eff;
|
| | | // }
|
| | | }
|
| | |
|
| | | .el-input-group__append {
|
| | | // transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
| | | background-color: #fff;
|
| | | border: 2px solid #f2f2f7;
|
| | | border-radius: 0 18px 18px 0;
|
| | | border-left: none;
|
| | | }
|
| | | }
|
| | |
|
| | | span {
|
| | | cursor: pointer;
|
| | | color: rgb(47, 45, 61);
|
| | | font-weight: 700;
|
| | | font-size: 19px;
|
| | | }
|
| | | }
|
| | | }
|
| | | .second {
|
| | | display: flex;
|
| | | margin: 10px 0;
|
| | | margin: 20px 0;
|
| | | padding: 0 20px;
|
| | | .bar {
|
| | | display: flex;
|
| | |
| | | width: fit-content;
|
| | | margin-right: 20px;
|
| | | min-width: 120px;
|
| | |
|
| | | .el-select {
|
| | | width: 200px;
|
| | | height: 36px;
|
| | |
|
| | | .el-input {
|
| | | width: 100%;
|
| | | height: 100%;
|
| | |
|
| | | input {
|
| | | width: 100%;
|
| | | height: 100%;
|
| | | border: 2px solid #f2f2f7;
|
| | | border-radius: 20px;
|
| | | }
|
| | | }
|
| | | }
|
| | | .name {
|
| | | margin-right: 5px;
|
| | | margin-right: 15px;
|
| | | min-width: fit-content;
|
| | | font-size: 14px;
|
| | | font-weight: bold;
|
| | | font-size: 12px;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | <style lang="scss">
|
| | | .polling-log {
|
| | | margin: 0 auto;
|
| | | padding: 10px 8px 10px 5px;
|
| | | background-color: rgba(248, 248, 248, 1);
|
| | | padding: 0px 8px 10px 5px;
|
| | | border-top: 1px solid #e1e0e6;
|
| | | background-color: rgba(242, 242, 247, 1);
|
| | | width: 100%;
|
| | | display: flex;
|
| | | overflow: auto;
|
| | |
| | | border-radius: 5px;
|
| | | padding: 12px;
|
| | | background-color: white;
|
| | | |
| | |
|
| | | .tableBox {
|
| | | th {
|
| | | padding: 0 !important;
|
| | |
| | | <el-table-column
|
| | | :align="'center'"
|
| | | sortable
|
| | | |
| | | prop="add_time"
|
| | | label="级别"
|
| | | ></el-table-column>
|
| | |
| | | min-width="100px"
|
| | | label="主机名"
|
| | | ></el-table-column>
|
| | | |
| | | </el-table>
|
| | | </div>
|
| | |
|
| | |
| | | <script>
|
| | | import { deleteDate } from "@/api/system";
|
| | | import { pad0 } from "@/api/utils";
|
| | | import { } from "@/api/log";
|
| | | import {} from "@/api/log";
|
| | |
|
| | | export default {
|
| | | data() {
|
| | |
| | | this.activeDateChoise = i;
|
| | | },
|
| | | getOperationLog(typ) {
|
| | | if (typ==1) {
|
| | | this.page=1
|
| | | if (typ == 1) {
|
| | | this.page = 1;
|
| | | }
|
| | | // queryOperationLog({
|
| | | // timeStart: this.timeStart,
|
| | |
| | | <style lang="scss">
|
| | | .sys-log {
|
| | | margin: 0 auto;
|
| | | padding: 10px 8px 10px 5px;
|
| | | background-color: rgba(248, 248, 248, 1);
|
| | | padding: 0px 8px 10px 5px;
|
| | | border-top: 1px solid #e1e0e6;
|
| | | background-color: rgba(242, 242, 247, 1);
|
| | | width: 100%;
|
| | | display: flex;
|
| | | flex-direction: column;
|