田源
2025-03-05 f6b61a485501f326debe52d77ea65d87fb34b37f
完善集成日志查询
已修改3个文件
46 ■■■■■ 文件已修改
Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/code/code.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/docking/loge.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue
@@ -65,7 +65,7 @@
      <!--      公用模块-->
      <!--      输入内容-->
      <el-form-item v-if="shouldShowInput" size="small">
        <el-input v-model="formInline.text" placeholder="按下回车键进行查询!" @keyup.enter.native="SaveHandler"></el-input>
        <el-input v-model.trim="formInline.text" placeholder="按下回车键进行查询!" @keyup.enter.native="SaveHandler"></el-input>
      </el-form-item>
      <!--      查询按钮-->
      <el-form-item v-if="shouldShowButton" size="small">
@@ -125,9 +125,9 @@
    SaveHandler() {
      let searchDataItem = Object.values(this.SearchObject.searchData).find(item => item.value === this.formInline.type);
      let name = searchDataItem ? searchDataItem.prop : null;
      if (!searchDataItem) {
        this.$message.error('未找到对应搜索类型请查看控制台输出!')
      }
      // if (!searchDataItem) {
      //   this.$message.error('未找到对应搜索类型请查看控制台输出!')
      // }
      const requestApi = (api) => {
        api(this.page.currentPage, this.page.pageSize, 'createTime', 'desc', {[`conditionMap[${name}_like]`]: this.formInline.text})
          .then(res => {
Source/UBCS-WEB/src/views/code/code.vue
@@ -2516,8 +2516,6 @@
          },
          {
            data: [],
            title: "描述",
            fieldType: "text",
            queryField: "description",
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;