From a45d0bcbea9078e54da9956c619dacb3c51fe1f1 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 16 十月 2023 20:30:58 +0800
Subject: [PATCH] 代码提交
---
Source/UBCS-WEB/src/views/docking/loge.vue | 212 +++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 172 insertions(+), 40 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/docking/loge.vue b/Source/UBCS-WEB/src/views/docking/loge.vue
index bcca2fb..9964c04 100644
--- a/Source/UBCS-WEB/src/views/docking/loge.vue
+++ b/Source/UBCS-WEB/src/views/docking/loge.vue
@@ -3,10 +3,11 @@
<basic-container>
<avue-crud :option="option"
:table-loading="loading"
- :data="data"
+ :data="data || getList"
:page.sync="page"
:permission="permissionList"
ref="crud"
+ @cell-dblclick="cellDbClick"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@@ -14,12 +15,15 @@
@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>
+ </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";
@@ -27,6 +31,81 @@
name: "loge",
data(){
return {
+ value:'',
+ //鍚勪釜绫诲瀷鐘舵��
+ status:{
+ type:'loge',
+ typeFlag:false,
+ dateFlag:false,
+ stateFlag:false,
+ },
+ //model缁戝畾
+ formInline:{
+ type:'',
+ cut:'',
+ text:'',
+ Date:'',
+ state:''
+ },
+ //闆嗘垚绫诲瀷姝绘暟鎹�
+ SearchObject:{
+ 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
+ },
+ {
+ label: '鏍囧噯鐢宠',
+ prop: 'applyCodeForBZ',
+ value:8 },
+ {
+ label: '閮ㄩ棬鐢宠',
+ prop: 'syncDataForOrg',
+ value:9
+ },
+ {
+ label: '浜哄憳鐢宠',
+ prop: 'syncDataForPerson',
+ value:10
+ },
+ ],
+ },
loading: false,
query: {},
selectionList: [],
@@ -39,9 +118,9 @@
option: {
height:'auto',
calcHeight: 0,
+ columnBtn:false,
tip: false,
searchShow: false,
- searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
@@ -52,49 +131,94 @@
{
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,
+ width: 140
+ },
+ {
+ label: '鏍囧噯鐢宠',
+ prop: 'applyCodeForBZ',
+ sortable:true,
+ width: 130
+ },
+ {
+ label: '閮ㄩ棬鐢宠',
+ prop: 'syncDataForOrg',
+ sortable:true,
+ width: 130
+ },
+ {
+ label: '浜哄憳鐢宠',
+ prop: 'syncDataForPerson',
+ sortable:true,
+ width: 130
+ },
+ {
+ label: '闆嗘垚绯荤粺缂栧彿',
+ prop: 'systemCode',
+ sortable:true,
+ width: 130
+ },
+ {
+ label: '闆嗘垚绯荤粺鍚嶇О',
+ prop: 'systemName',
+ sortable:true,
+ width: 150
+ },
+ {
+ label: '绫诲瀷',
+ prop: 'typeText',
+ sortable:true,
+ width: 150
+ },
+ {
+ label:'鎺ュ彛鍙傛暟',
+ prop:'paramString',
+ overHidden:true,
+ sortable:true,
+ width: 150
+ },
+ {
+ label:'杩斿洖鍙傛暟',
+ prop:'returnString',
+ overHidden:true,
+ sortable:true,
+ width: 150
+ },
+ {
+ label: '杩斿洖msg',
+ prop: 'msg',
overHidden: true
},
{
- label: '绯荤粺缂栧彿',
- prop: 'systemcode',
- search: true,
+ label: '璁板綍鏃堕棿',
+ prop: 'createTime',
sortable:true,
- width: 150
+ width: 160
},
{
- label: '绯荤粺鍚嶇О',
- prop: 'systemname',
- search: true,
- sortable:true,
- width: 150
- },
- {
- label: '鏄惁鎺ㄩ�佹垚鍔�',
- prop: 'interfacestatus',
- search: true,
+ label: '鏄惁鎴愬姛',
+ prop: 'interfaceStatus',
sortable:true,
width: 120,
html:true,
@@ -107,20 +231,9 @@
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>'
+ 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>'
}
},
- {
- label: '杩斿洖msg',
- prop: 'msg',
- overHidden: true
- },
- {
- label: '璁板綍鏃堕棿',
- prop: 'createTime',
- sortable:true,
- width: 160
- }
]
}
}
@@ -137,6 +250,25 @@
}
},
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) {
+ this.value = row[key];
+ }
+ }
+ try {
+ await this.$copyText(this.value);
+ this.$message.success('澶嶅埗鎴愬姛');
+ } catch (error) {
+ this.$message.warning('澶嶅埗澶辫触');
+ }
+ },
searchReset() {
this.query = {};
this.onLoad(this.page);
@@ -171,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