田源
2025-03-05 f6b61a485501f326debe52d77ea65d87fb34b37f
Source/UBCS-WEB/src/views/docking/loge.vue
@@ -1,34 +1,34 @@
<template>
  <!--系统集成的系统日志页面-->
  <basic-container>
    <avue-crud :option="option"
               :table-loading="loading"
    <avue-crud ref="crud"
               :data="data || getList"
               :option="option"
               :page.sync="page"
               ref="crud"
               :table-loading="loading"
               @cell-dblclick="cellDbClick"
               @search-change="searchChange"
               @search-reset="searchReset"
               @selection-change="selectionChange"
               @current-change="currentChange"
               @size-change="sizeChange"
               @refresh-change="refreshChange"
               @on-load="onLoad">
      <template slot-scope="scope" slot="menuLeft">
        <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status" @getList="dockingGetList"></vci-docking-search>
               @refresh-change="refreshChange">
      <template slot="menuLeft" slot-scope="scope">
        <vci-docking-search ref="dockingSearch" :SearchObject="SearchObject" :formInline="formInline" :page="page"
                            :status="status" @getList="dockingGetList"></vci-docking-search>
      </template>
      <template slot="paramString" slot-scope="scope">
        <avue-text-ellipsis :text="scope.row.paramString" :height="50">
        <avue-text-ellipsis :height="50" :text="scope.row.paramString">
          <small slot="more">...</small>
        </avue-text-ellipsis>
      </template>
      <template slot="returnString" slot-scope="scope">
        <avue-text-ellipsis :text="scope.row.returnString" :height="50">
        <avue-text-ellipsis :height="50" :text="scope.row.returnString">
          <small slot="more">...</small>
        </avue-text-ellipsis>
      </template>
      <template slot="menu" slot-scope="scope">
        <el-button type="text" icon="el-icon-view" size="mini" @click="rowView(scope.row)">查看</el-button>
        <el-button icon="el-icon-view" size="mini" type="text" @click="rowView(scope.row)">查看</el-button>
      </template>
    </avue-crud>
  </basic-container>
@@ -274,6 +274,9 @@
      };
    }
  },
  created() {
    this.onLoad(this.page);
  },
  methods: {
    rowView(row){
      this.loading = true;
@@ -286,6 +289,7 @@
      })
    },
    dockingGetList(val){
      console.log(val);
      this.data=val.records;
      this.page.pageSize=val.size;
      this.page.currentPage=val.current;
@@ -323,12 +327,21 @@
    },
    currentChange(currentPage) {
      this.page.currentPage = currentPage;
      this.$refs.dockingSearch.SaveHandler();
    },
    sizeChange(pageSize) {
      this.page.pageSize = pageSize;
      this.$refs.dockingSearch.SaveHandler();
    },
    refreshChange() {
      this.onLoad(this.page);
      const page = {
        pageSize: 20,
        currentPage: 1,
        total: 0
      };
      this.page = page;
      this.formInline = { type: '', cut: '', text: '',Date: '', state: ''}
      this.onLoad(page);
    },
    onLoad(page, params={}) {
      this.loading = true;
@@ -364,6 +377,7 @@
     width: 10px;
   }
// 滚动条的滑块
   /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
     background-color: #ececec;