田源
2024-04-24 d4af3eec083dc02fb7cc02cf7e7f9592f949f50b
集成日志-详情页改造
已修改2个文件
26 ■■■■■ 文件已修改
Source/UBCS-WEB/src/api/docking/loge.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/docking/loge.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/docking/loge.js
@@ -13,3 +13,12 @@
    }
  })
}
export const gridLogeDetail = (params) => {
  return request({
    url: '/api/ubcs-code/dockingManagement/gridLogeDetail',
    method: 'get',
    params: {
      ...params,
    }
  })
}
Source/UBCS-WEB/src/views/docking/loge.vue
@@ -27,12 +27,15 @@
          <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>
      </template>
    </avue-crud>
  </basic-container>
</template>
<script>
import {getLogoList} from "@/api/docking/loge";
import {getLogoList,gridLogeDetail} from "@/api/docking/loge";
import {validatenull} from "@/util/validate";
import {mapGetters} from "vuex";
@@ -137,7 +140,7 @@
        dialogClickModal: false,
        menuFixed:'right',
        dialogType: 'drawer',
        viewBtn: true,
        viewBtn: false,
        stripe: true,
        addBtn:false,
        editBtn:false,
@@ -273,6 +276,16 @@
    }
  },
  methods: {
    rowView(row){
      this.loading = true;
      gridLogeDetail({oid:row.oid}).then(res =>{
        console.log(res)
        if(res.data.data){
          this.loading = false
          this.$refs.crud.rowView(res.data.data)
        }
      })
    },
    dockingGetList(val){
      this.data=val.records;
      this.page.pageSize=val.size;