| | |
| | | >
|
| | | <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;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | >
|
| | | <el-option label="å
¨é¨" :value="''"> </el-option>
|
| | | <el-option
|
| | | v-for="item in moduleOptions"
|
| | | :key="item.proc_name"
|
| | | v-for="(item, i) in moduleOptions"
|
| | | :key="i"
|
| | | :label="item.proc_name"
|
| | | :value="item.proc_name"
|
| | | >
|
| | |
| | | >
|
| | | <!-- :disabled="gongnengOptions.length==0" -->
|
| | | <el-option
|
| | | v-for="item in gongnengOptions"
|
| | | :key="item.name"
|
| | | v-for="(item, i) in gongnengOptions"
|
| | | :key="i"
|
| | | :label="item.name"
|
| | | :value="item.name"
|
| | | >
|
| | |
| | | @change="getOperationLog(1)"
|
| | | >
|
| | | <el-option
|
| | | v-for="item in resultOptions"
|
| | | :key="item.value"
|
| | | v-for="(item, i) in resultOptions"
|
| | | :key="i"
|
| | | :label="item.label"
|
| | | :value="item.value"
|
| | | >
|
| | |
| | | :data="tableData"
|
| | | :header-cell-style="{ background: '#f8f8f8', color: '#222222' }"
|
| | | style="width: 100%"
|
| | | border
|
| | | >
|
| | | <template slot="empty">
|
| | | <img :src="png" class="empty_img" alt="" />
|
| | | </template>
|
| | | <el-table-column :align="'center'" label="åºå·" type="index" width="50">
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | |
| | | name: "operationLog",
|
| | | data() {
|
| | | return {
|
| | | png: "",
|
| | | loading: false,
|
| | | loadingText: "",
|
| | | input3: "",
|
| | |
| | | }).then((res) => {
|
| | | this.tableData = res.data.logs;
|
| | | this.total = res.data.total;
|
| | | this.png = require("../../../../public/images/syslog/æ²¡æ°æ®.png");
|
| | | });
|
| | | },
|
| | | getTimeStr(date) {
|
| | |
| | | border-radius: 5px;
|
| | | padding: 12px;
|
| | | background-color: white;
|
| | | .empty_img {
|
| | | margin: 80px auto;
|
| | | width: 164px;
|
| | | }
|
| | | .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;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | </div>
|
| | | </div>
|
| | | <div class="second">
|
| | | <span>æ¥ææ¶é´ï¼</span>
|
| | | <span class="title">æ¥ææ¶é´ï¼</span>
|
| | | <el-date-picker
|
| | | v-model="dateRange"
|
| | | size="small"
|
| | |
| | | start-placeholder="å¼å§æ¥æ"
|
| | | @change="dateChange"
|
| | | end-placeholder="ç»ææ¥æ"
|
| | | :picker-options="pickerOptions"
|
| | | >
|
| | | </el-date-picker>
|
| | | </div>
|
| | |
| | | :header-cell-style="{ background: '#f8f8f8', color: '#222222' }"
|
| | | @selection-change="handleSelectionChange"
|
| | | style="width: 100%"
|
| | | border
|
| | | >
|
| | | <template slot="empty">
|
| | | <img :src="png" class="empty_img" alt="" />
|
| | | </template>
|
| | | <el-table-column :align="'center'" label="åºå·" type="index" width="50">
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | |
| | | export default {
|
| | | data() {
|
| | | return {
|
| | | png: "",
|
| | | loading: false,
|
| | | loadingText: "",
|
| | | tableData: [],
|
| | |
| | | procID: "",
|
| | | procName: "",
|
| | | pickNum: 0,
|
| | | pickerOptions: {
|
| | | shortcuts: [
|
| | | {
|
| | | text: "æè¿ä¸å¨",
|
| | | onClick(picker) {
|
| | | const end = new Date();
|
| | | const start = new Date();
|
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
| | | picker.$emit("pick", [start, end]);
|
| | | },
|
| | | },
|
| | | {
|
| | | text: "æè¿ä¸ä¸ªæ",
|
| | | onClick(picker) {
|
| | | const end = new Date();
|
| | | const start = new Date();
|
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
| | | picker.$emit("pick", [start, end]);
|
| | | },
|
| | | },
|
| | | {
|
| | | text: "æè¿ä¸ä¸ªæ",
|
| | | onClick(picker) {
|
| | | const end = new Date();
|
| | | const start = new Date();
|
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
| | | picker.$emit("pick", [start, end]);
|
| | | },
|
| | | },
|
| | | ],
|
| | | },
|
| | | };
|
| | | },
|
| | | mounted() {
|
| | |
| | | queryScheduleLog(data).then((res) => {
|
| | | this.tableData = res.data.logs;
|
| | | this.total = res.data.total;
|
| | | this.png = require("../../../../public/images/syslog/æ²¡æ°æ®.png");
|
| | | });
|
| | | },
|
| | | dateChange(val) {
|
| | |
| | | this.timeEnd = this.getTimeStr(date);
|
| | | this.dateRange = [this.timeStart, this.timeEnd];
|
| | | },
|
| | | handleSelectionChange() {},
|
| | | handleClose() {},
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
| | | }
|
| | | .second {
|
| | | display: flex;
|
| | | align-items: center;
|
| | | margin: 15px 0 20px 0;
|
| | | padding: 0 20px;
|
| | | .title {
|
| | | margin-right: 10px;
|
| | | min-width: fit-content;
|
| | | font-weight: bold;
|
| | | font-size: 12px;
|
| | | }
|
| | | .bar {
|
| | | display: flex;
|
| | | align-items: baseline;
|
| | |
| | | padding: 12px;
|
| | | background-color: white;
|
| | |
|
| | | .empty_img {
|
| | | margin: 80px auto;
|
| | | width: 164px;
|
| | | }
|
| | |
|
| | | .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;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | >
|
| | | <el-option label="å
¨é¨" :value="''"> </el-option>
|
| | | <el-option
|
| | | v-for="item in levelOptions"
|
| | | :key="item.proc_name"
|
| | | v-for="(item, index) in levelOptions"
|
| | | :key="index"
|
| | | :label="item.proc_name"
|
| | | :value="item.proc_name"
|
| | | >
|
| | |
| | | @change="getOperationLog(1)"
|
| | | >
|
| | | <el-option
|
| | | v-for="item in hostNameOptions"
|
| | | :key="item.value"
|
| | | v-for="(item, index) in hostNameOptions"
|
| | | :key="index"
|
| | | :label="item.label"
|
| | | :value="item.value"
|
| | | >
|
| | |
| | | :data="tableData"
|
| | | :header-cell-style="{ background: '#f8f8f8', color: '#222222' }"
|
| | | style="width: 100%"
|
| | | border
|
| | | >
|
| | | <template slot="empty">
|
| | | <img :src="png" class="empty_img" 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 { getModules } from "@/api/log";
|
| | | import { pad0 } from "@/api/utils";
|
| | | import {} from "@/api/log";
|
| | |
|
| | | export default {
|
| | | data() {
|
| | | return {
|
| | | png: "",
|
| | | loading: false,
|
| | | loadingText: "",
|
| | | input3: "",
|
| | |
| | | getOptions() {
|
| | | getModules().then((res) => {
|
| | | this.levelOptions = res.data;
|
| | | this.png = require("../../../../public/images/syslog/æ²¡æ°æ®.png");
|
| | | });
|
| | | },
|
| | | choseRange(item, i) {
|
| | |
| | | margin-top: 16px;
|
| | | border-radius: 5px;
|
| | | padding: 12px;
|
| | | background-color: white;
|
| | | background-color: rgb(255, 255, 255);
|
| | | .empty_img {
|
| | | margin: 80px auto;
|
| | | width: 164px;
|
| | | }
|
| | | .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;
|
| | | }
|
| | | }
|
| | | }
|