From f6b61a485501f326debe52d77ea65d87fb34b37f Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期三, 05 三月 2025 17:57:09 +0800 Subject: [PATCH] 完善集成日志查询 --- Source/UBCS-WEB/src/views/code/Match.vue | 35 ++++++++++++++++++++++++++++++----- 1 files changed, 30 insertions(+), 5 deletions(-) diff --git a/Source/UBCS-WEB/src/views/code/Match.vue b/Source/UBCS-WEB/src/views/code/Match.vue index 3c2ade7..4b79c58 100644 --- a/Source/UBCS-WEB/src/views/code/Match.vue +++ b/Source/UBCS-WEB/src/views/code/Match.vue @@ -6,6 +6,7 @@ :option="option" :page.sync="page" :table-loading="loading" + :permission="permissionList" @row-del="rowDel" @row-update="rowUpdate" @row-save="rowSave" @@ -18,6 +19,7 @@ <el-button icon="el-icon-search" plain size="small" + v-if="permissionList.search" type="primary" @click="searchHandler">鏌� 璇� </el-button> <advanced-query :options="options" :visible.sync="findvisible" @@ -25,16 +27,19 @@ <el-button icon="el-icon-delete" plain size="small" + v-if="permissionList.delBtn" type="danger" @click="deleteHandler">鍒� 闄� </el-button> <el-button icon="el-icon-edit" plain size="small" + v-if="permissionList.editBtn" type="success" @click="editHandler">淇� 鏀� </el-button> <el-button icon="el-icon-refresh-right" plain size="small" + v-if="permissionList.breakBtn" type="primary" @click="onLoad">鍒� 鏂� </el-button> </template> @@ -44,7 +49,7 @@ <script> import {getList, add, editSave, deleteData} from "@/api/code/codeMatch"; - +import {mapGetters} from "vuex"; export default { name: "Match", data() { @@ -96,8 +101,8 @@ findvisible: false, selectRow: [], option: { - height: 700, - calcHeight: 80, + height: 'auto', + calcHeight: 20, tip: false, searchShow: true, searchMenuSpan: 6, @@ -212,12 +217,32 @@ created() { this.onLoad() }, + computed:{ + ...mapGetters(["permission"]), + permissionList(){ + return{ + search:this.vaildData(this.permission.match.math_search,false), + delBtn:this.vaildData(this.permission.match.math_delete,false), + addBtn:this.vaildData(this.permission.match.math_add,false), + editBtn:this.vaildData(this.permission.match.math_edit,false), + breakBtn:this.vaildData(this.permission.match.math_break,false), + } + }, + }, methods: { searchHandler() { this.findvisible = true; }, - echoContion(row) { - + echoContion(val) { + console.log(...val) + // FindData({ + // templateOid: this.templateOid, + // codeClassifyOid: this.codeClassifyOid, + // ...val, + // }).then((res) => { + // this.tableData = res.data.data; + // this.page.total = res.data.total + // }); }, deleteHandler() { const length = this.selectRow.length; -- Gitblit v1.9.3