From b4c7c6a738f44afadbc388bb774ac044e7fafe38 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 12 十月 2023 11:24:21 +0800 Subject: [PATCH] 修改列显隐 --- Source/UBCS-WEB/src/views/docking/loge.vue | 50 ++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 44 insertions(+), 6 deletions(-) diff --git a/Source/UBCS-WEB/src/views/docking/loge.vue b/Source/UBCS-WEB/src/views/docking/loge.vue index 37333e4..9964c04 100644 --- a/Source/UBCS-WEB/src/views/docking/loge.vue +++ b/Source/UBCS-WEB/src/views/docking/loge.vue @@ -3,7 +3,7 @@ <basic-container> <avue-crud :option="option" :table-loading="loading" - :data="data" + :data="data || getList" :page.sync="page" :permission="permissionList" ref="crud" @@ -16,14 +16,14 @@ @refresh-change="refreshChange" @on-load="onLoad"> <template slot-scope="scope" slot="menuLeft"> - <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status"></vci-docking-search> + <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status" @getList="dockingGetList"></vci-docking-search> </template> </avue-crud> </basic-container> </template> <script> -import {getList} from "@/api/docking/loge"; +import {getLogoList} from "@/api/docking/loge"; import {validatenull} from "@/util/validate"; import {mapGetters} from "vuex"; @@ -90,6 +90,20 @@ prop: 'interfaceStatus', value:7 }, + { + label: '鏍囧噯鐢宠', + prop: 'applyCodeForBZ', + value:8 }, + { + label: '閮ㄩ棬鐢宠', + prop: 'syncDataForOrg', + value:9 + }, + { + label: '浜哄憳鐢宠', + prop: 'syncDataForPerson', + value:10 + }, ], }, loading: false, @@ -104,9 +118,9 @@ option: { height:'auto', calcHeight: 0, + columnBtn:false, tip: false, searchShow: false, - // searchMenuSpan: 12, border: true, index: true, viewBtn: true, @@ -140,6 +154,24 @@ sortable:true, overHidden: true, width: 140 + }, + { + label: '鏍囧噯鐢宠', + prop: 'applyCodeForBZ', + sortable:true, + width: 130 + }, + { + label: '閮ㄩ棬鐢宠', + prop: 'syncDataForOrg', + sortable:true, + width: 130 + }, + { + label: '浜哄憳鐢宠', + prop: 'syncDataForPerson', + sortable:true, + width: 130 }, { label: '闆嗘垚绯荤粺缂栧彿', @@ -199,7 +231,7 @@ value: "key" }, formatter : function (row, column) { - return row.interfaceStatus == 'true' || row.interfaceStatus == '' ? '<i class="el-icon-check" style="color: limegreen;font-size: 20px;font-weight: 800"></i>' : '<i class="el-icon-close" style="color: red;font-size: 20px;font-weight: 800"></i>' + return row.interfaceStatus == 'true' || row.interfaceStatus == '' ? '<i class="el-icon-check" style="color: #32cd32;font-size: 20px;font-weight: 800"></i>' : '<i class="el-icon-close" style="color: #ff0000;font-size: 20px;font-weight: 800"></i>' } }, ] @@ -218,6 +250,12 @@ } }, methods: { + dockingGetList(val){ + this.data=val.records; + this.page.pageSize=val.size; + this.page.currentPage=val.current; + this.page.total=val.total; + }, async cellDbClick(row, column, cell, event) { for (const key in row) { if (key === column.property) { @@ -265,7 +303,7 @@ query['conditionMap["' + key + '"]'] = this.query[key]; } } - getList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => { + getLogoList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => { const data = res.data.data; this.page.total = data.total; this.data = data.records; -- Gitblit v1.9.3