This commit is contained in:
linfso 2024-08-07 08:27:23 +08:00
parent 40b9d650f6
commit 7b6505c098
8 changed files with 47 additions and 33 deletions

View File

@ -43,7 +43,7 @@ export default {
let h2 = this.$refs.pageHeader.offsetHeight; let h2 = this.$refs.pageHeader.offsetHeight;
let contentHeight = h1 - h2-190; let contentHeight = h1 - h2-190;
this.contentHeight = contentHeight; this.contentHeight = contentHeight;
console.log("====this.contentHeight==>",this.contentHeight); // console.log("====this.contentHeight==>",this.contentHeight);
}, 500), }, 500),
}, },
}; };

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="xd-table" :id="tableId"> <div class="xd-table" :id="tableId" >
<div class="table-operate-btn-content" v-show="showOperateButton"> <div class="table-operate-btn-content" v-show="showOperateButton">
<slot name="operateBtnContent"> <slot name="operateBtnContent">
@ -94,8 +94,8 @@
</div> </div>
</slot> </slot>
</div> </div>
<div> <div @mouseenter="initKeyDownEvent" @mouseleave="removeKeyDownEvent">
<orig-table ref="table" :key="refreshKeyId" :config="config" v-dragColumn v-dragSelect class="xd-tb-wrapper" /> <orig-table ref="table" :key="refreshKeyId" tabindex="0" :config="config" v-dragColumn v-dragSelect class="xd-tb-wrapper" />
<!-- 统计数据 --> <!-- 统计数据 -->
<div v-if="showStatInfo" style="display: inline-flex; width: 100%;"> <div v-if="showStatInfo" style="display: inline-flex; width: 100%;">
@ -563,7 +563,18 @@ export default {
}) })
} }
} },
focus:{
update: function (el, binding, vnode) {
vnode.context.initKeyDownEvent();
},
},
blur:{
update: function (el, binding, vnode) {
vnode.context.removeKeyDownEvent();
},
},
}, },
data() { data() {
return { return {
@ -622,6 +633,8 @@ export default {
checkAll: false, //招标阶段 是否全选 checkAll: false, //招标阶段 是否全选
isIndeterminate: false, //全选复选框标识 isIndeterminate: false, //全选复选框标识
copyHanderEvent:null,
// 表格个性化记忆配置 // 表格个性化记忆配置
isNeedDbSaveTpl:false, isNeedDbSaveTpl:false,
fullUrl:null, fullUrl:null,
@ -666,8 +679,22 @@ export default {
this.initStorage() this.initStorage()
this.updateTable() this.updateTable()
this.initSort(); this.initSort();
this.initKeyDown(); // this.initKeyDown();
this.tableDom=this.getTableDom(); this.tableDom=this.getTableDom();
// 监听 ctrl+c键盘事件
let that=this;
this.copyHanderEvent = (e) => {
// console.log('键盘监听中')
e = e||window.event;
if(e.ctrlKey&&e.code=="KeyC"){
that.handleCopySelect(e);
return false;
}
}
},
beforeDestroy () {
document.removeEventListener('keydown', this.copyHanderEvent)
}, },
methods: { methods: {
getInstance() { getInstance() {
@ -684,15 +711,14 @@ export default {
this.$refs.table.$refs.elTable.clearSelection(); this.$refs.table.$refs.elTable.clearSelection();
}); });
}, },
initKeyDown(){
let that=this; initKeyDownEvent(){
document.addEventListener('keydown', function(e) { // console.log('===initKeyDownEvent===>')
e = e||window.event; document.addEventListener('keydown', this.copyHanderEvent );
if(e.ctrlKey&&e.code=="KeyC"){ },
that.handleCopySelect(e); removeKeyDownEvent(){
return false; // console.log('===removeKeyDownEvent===>')
} document.removeEventListener('keydown', this.copyHanderEvent );
});
}, },
onTplSelectInputBlur(e) { onTplSelectInputBlur(e) {
if (e.target.value.trim()!== '') { if (e.target.value.trim()!== '') {
@ -1213,7 +1239,7 @@ export default {
} }
} }
list=list2; list=list2;
console.log("===>list=1111=>",list); // console.log("===>list=1111=>",list);
this.storageList = list this.storageList = list
}, },
@ -1357,7 +1383,7 @@ export default {
} }
.xd-tb-wrapper :deep .el-table__body tr:hover > td { .xd-tb-wrapper :deep .el-table__body tr:hover > td {
background-color: #ffa5a55e !important; background-color: #ffa5a55e;
} }
.xd-tb-wrapper{ .xd-tb-wrapper{

View File

@ -121,7 +121,6 @@
}, },
queryData() { queryData() {
console.log("=====>this.value===",this.value);
let queryParams = { let queryParams = {
pageNum: 1, pageNum: 1,

View File

@ -119,7 +119,6 @@ watch: {
} }
}, },
created() { created() {
console.log("=======created=>"+this.svalue)
if(this.svalue!=null && this.svalue.length==2 && this.isInit) { if(this.svalue!=null && this.svalue.length==2 && this.isInit) {
this.lineCode=this.svalue[0]; this.lineCode=this.svalue[0];
this.prodCode=this.svalue[1]; this.prodCode=this.svalue[1];

View File

@ -124,7 +124,6 @@
}, },
queryData() { queryData() {
console.log("=====>this.value===",this.value);
if(!this.transLineCode ){ if(!this.transLineCode ){

View File

@ -434,8 +434,7 @@ import { parseTime,genJsSeqNo } from "@/utils/custom";
export default { export default {
name: "SubBillConfirmByMoneyList", name: "SettleSubBillConfirmMonthList",
// name: "SubBillConfirmByMonthList",
components: { components: {
BillFeeListPanel, BillFeeListPanel,
elDateSimplePicker,emisSettleSubBillForm, elDateSimplePicker,emisSettleSubBillForm,

View File

@ -395,8 +395,7 @@ import BillFeeListPanel from '@/views/emis/emisSettleSubBill/panel/BillFeeListPa
import { parseTime,genJsSeqNo } from "@/utils/custom"; import { parseTime,genJsSeqNo } from "@/utils/custom";
export default { export default {
name: "SubBillConfirmByMoneyList", name: "SubBillConfirmBySiteList",
// name: "SubBillConfirmByMonthList",
components: { components: {
elDateSimplePicker,emisSettleSubBillForm,BillFeeListPanel, elDateSimplePicker,emisSettleSubBillForm,BillFeeListPanel,
EmisMonthpayAccountPicker, EmisMonthpayAccountPicker,

View File

@ -94,19 +94,12 @@
@click="handleDelete" @click="handleDelete"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<!-- <el-button
type="primary"
plain
size="mini"
@click="handleImport"
>导入</el-button> -->
<el-button plain class="filter-item" size="mini" type="primary" icon="el-icon-upload2" @click="handleBatchImport">导入</el-button> <el-button plain class="filter-item" size="mini" type="primary" icon="el-icon-upload2" @click="handleBatchImport">导入</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<a href="/static/tpl/转件管理导出模板.xlsx" style="color: blue;font-weight: 600;font-size:13px;text-decoration: underline">下载导入模版</a> <a href="/static/tpl/转件管理导出模板.xlsx" style="color: blue;font-weight: 600;font-size:13px;text-decoration: underline">下载导入模版</a>
</el-col> -->
</el-col>
</el-row> </el-row>
</div> </div>