heyujie
2021-07-30 4b43bfb3f6f499f480712dd29bef52275466afd6
src/pages/syslog/views/operationLog.vue
@@ -27,7 +27,7 @@
            <el-button
              slot="append"
              icon="el-icon-search"
              @click="getOperationLog"
              @click="getOperationLog(1)"
            ></el-button>
          </el-input>
        </div>
@@ -59,7 +59,7 @@
            placeholder="请选择"
            size="small"
            :disabled="curModule == ''"
            @change="getOperationLog"
            @change="getOperationLog(1)"
          >
            <!-- :disabled="gongnengOptions.length==0" -->
            <el-option
@@ -77,7 +77,7 @@
            v-model="result"
            placeholder="请选择"
            size="small"
            @change="getOperationLog"
            @change="getOperationLog(1)"
          >
            <el-option
              v-for="item in resultOptions"
@@ -97,7 +97,6 @@
        highlight-current-row
        :data="tableData"
        :header-cell-style="{ background: '#f8f8f8', color: '#222222' }"
        @selection-change="handleSelectionChange"
        style="width: 100%"
      >
        <el-table-column :align="'center'" label="序号" type="index" width="50">
@@ -123,7 +122,7 @@
        ></el-table-column>
        <el-table-column
          :align="'center'"
          prop="procName"
          prop="function"
          label="操作功能"
        ></el-table-column>
        <el-table-column
@@ -217,7 +216,7 @@
      this.getOperationLog();
    },
    moduleChange(val) {
      this.getOperationLog();
      this.getOperationLog(1);
      this.gongneng = "";
      getOperations({
        module: this.curModule,
@@ -250,11 +249,14 @@
        default:
          break;
      }
      this.getOperationLog();
      this.getOperationLog(1);
      this.activeDateChoise = i;
    },
    getOperationLog(timeStart, timeEnd) {
      const data = {
    getOperationLog(typ) {
      if (typ==1) {
        this.page=1
      }
      queryOperationLog({
        timeStart: this.timeStart,
        timeEnd: this.timeEnd,
        page: this.page,
@@ -263,8 +265,7 @@
        function: this.gongneng,
        result: this.result,
        fuzzySearch: this.fuzzySearch,
      };
      queryOperationLog(data).then((res) => {
      }).then((res) => {
        this.tableData = res.data.logs;
        this.total = res.data.total;
      });