给报表增加列的显示和隐藏功能

This commit is contained in:
jishenghua
2024-08-17 00:27:06 +08:00
parent bd697ce3d9
commit 9926cc18e1
14 changed files with 434 additions and 66 deletions

View File

@@ -112,10 +112,10 @@
<a-popover trigger="click" placement="right">
<template slot="content">
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
<a-row style="width: 500px">
<a-row style="width: 600px">
<template v-for="(item,index) in defColumns">
<template>
<a-col :span="8">
<a-col :span="6">
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>