heyujie
2022-02-16 5455dd4cd7c27d14bc7f98f110ae14163dbaacc1
src/pages/syslog/views/systemLog.vue
@@ -28,7 +28,7 @@
            <span class="icon iconfont icon_clear" @click="clearSearch" slot="append" v-if="fuzzySearch">
              &#xe785;
            </span>
            <span class="icon iconfont icon_search" @click="getVaSystemLog(1)" slot="append" v-else>
            <span class="icon iconfont icon_search" @click="getVaSystemLog(1)" slot="append">
              &#xe714;
            </span>
          </el-input>
@@ -38,7 +38,7 @@
        <div class="bar">
          <div class="name">级别:</div>
          <el-select v-model="level" placeholder="请选择" size="small" @change="levelChange">
          <el-select v-model="level" placeholder="请选择" size="small" @change="getVaSystemLog">
            <el-option v-for="(item, index) in levelOptions" :key="index" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
@@ -145,7 +145,7 @@
export default {
  data() {
    return {
      png: "",
      png: require("../../../../public/images/syslog/没数据.png"),
      loading: false,
      loadingText: "",
      tableData: [],
@@ -190,22 +190,15 @@
    },
    handleSizeChange(val) {
      this.pageSize = val
      this.getVaSystemLog()
    },
    handleCurrentChange(val) {
      this.page = val
    },
    levelChange(val) {
      // this.hostName = "";
      // getOperations({
      //   module: this.level,
      // }).then((res) => {
      //   this.hostNameOptions = res.data;
      // });
      this.getVaSystemLog()
    },
    getOptions() {
      queryProcName().then((res) => {
        this.procOptions = res.data
        // this.png = require("../../../../public/images/syslog/没数据.png")
      })
    },
    choseRange(item, i) {
@@ -229,6 +222,7 @@
          break
      }
      this.activeDateChoise = i
      this.getVaSystemLog()
    },
    getVaSystemLog(typ) {
      if (typ == 1) {
@@ -239,6 +233,7 @@
        timeEnd: this.timeEnd,
        level: this.level,
        procName: this.procName,
        fuzzySearch: this.fuzzySearch,
        page: this.page,
        pageSize: this.pageSize
      }).then((res) => {