From ed7a0e2d381e2e17d198f75114c5278573bdeaa1 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 11 九月 2023 16:33:31 +0800 Subject: [PATCH] 集成日志搜索组件样式 --- Source/UBCS-WEB/src/views/docking/loge.vue | 136 +++++++++++++++++++++++++++++++++----------- 1 files changed, 101 insertions(+), 35 deletions(-) diff --git a/Source/UBCS-WEB/src/views/docking/loge.vue b/Source/UBCS-WEB/src/views/docking/loge.vue index f4c2b24..64d7cce 100644 --- a/Source/UBCS-WEB/src/views/docking/loge.vue +++ b/Source/UBCS-WEB/src/views/docking/loge.vue @@ -14,6 +14,9 @@ @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> + <template slot-scope="scope" slot="menuLeft"> + <vci-docking-search :SearchObject="SearchObject" :page="page"></vci-docking-search> + </template> </avue-crud> </basic-container> </template> @@ -27,6 +30,51 @@ name: "loge", data(){ return { + SearchObject:{ + type:'loge', + searchData:[ + { + label:'鏁版嵁缂栫爜', + prop: "id", + value:0 + }, + { + label:'鍒嗙被浠e彿', + prop: 'classifyId', + value:1 + }, + { + label:'鍒嗙被鍚嶇О', + prop: 'classifyName', + value:2 + }, + { + label:'闆嗘垚绯荤粺缂栧彿', + prop: 'systemCode', + value:3 + }, + { + label:'闆嗘垚绯荤粺鍚嶇О', + prop: 'systemName', + value:4 + }, + { + label:'绫诲瀷', + prop: 'typeText', + value:5 + }, + { + label:'璁板綍鏃堕棿', + value:6, + prop: 'createTime', + }, + { + label:'鏄惁鎴愬姛', + prop: 'interfaceStatus', + value:7 + }, + ], + }, loading: false, query: {}, selectionList: [], @@ -37,10 +85,11 @@ }, data:[], option: { - calcHeight: 30, + height:'auto', + calcHeight: 0, tip: false, searchShow: false, - searchMenuSpan: 6, + // searchMenuSpan: 12, border: true, index: true, viewBtn: true, @@ -51,62 +100,61 @@ { label: "鏁版嵁缂栫爜", prop: "id", - search: true, sortable:true, - width:150 + width:130 }, { label: "鍥惧彿", - prop: "uniquecode", - search: true, + prop: "uniqueCode", + hide:true, sortable:true, width:150 }, { - label: '鍒嗙被id', - prop: 'classifyid', - search: true, + label: '鍒嗙被浠e彿', + prop: 'classifyId', sortable:true, - width: 250 + overHidden:true, + width: 150 }, { label: '鍒嗙被鍚嶇О', - prop: 'classifyname', - search: true, + prop: 'classifyName', sortable:true, - overHidden: true + overHidden: true, + width: 140 }, { - label: '绯荤粺缂栧彿', - prop: 'systemcode', - search: true, + label: '闆嗘垚绯荤粺缂栧彿', + prop: 'systemCode', + sortable:true, + width: 130 + }, + { + label: '闆嗘垚绯荤粺鍚嶇О', + prop: 'systemName', sortable:true, width: 150 }, { - label: '绯荤粺鍚嶇О', - prop: 'systemname', - search: true, + label: '绫诲瀷', + prop: 'typeText', sortable:true, width: 150 }, { - label: '鏄惁鎺ㄩ�佹垚鍔�', - prop: 'interfacestatus', - search: true, + label:'鎺ュ彛鍙傛暟', + prop:'paramString', + overHidden:true, sortable:true, - width: 120, - html:true, - align:'center', - type:'select', - dicData: [{key:'true',value:'鏄�'},{key:'false',value:'鍚�'}], - props: { - label: "value", - value: "key" - }, - formatter : function (row, column) { - return row.interfacestatus == 'true' || row.interfacestatus == '1' ? '<i class="el-icon-check"></i>' : '<i class="el-icon-close"></i>' - } + width: 150 + }, + { + label:'杩斿洖鍙傛暟', + prop:'returnString', + overHidden:true, + sortable:true, + width: 150 }, { label: '杩斿洖msg', @@ -118,7 +166,25 @@ prop: 'createTime', sortable:true, width: 160 - } + }, + { + label: '鏄惁鎴愬姛', + prop: 'interfaceStatus', + sortable:true, + width: 120, + html:true, + align:'center', + type:'select', + searchLabelWidth:130, + dicData: [{key:'true',value:'鏄�'},{key:'false',value:'鍚�'}], + props: { + label: "value", + 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>' + } + }, ] } } -- Gitblit v1.9.3