This commit is contained in:
DESKTOP-AD8UBUJ\ling
2026-03-02 21:35:40 +08:00
parent cffdd0f7ba
commit c64012e4ea

View File

@@ -3,15 +3,30 @@
<superslide v-if="hackReset" :options="options" class="txtScroll-top" ref="superslide">
<!--表头-->
<div class="title">
<div
v-if="isIndex"
:style="[headerTableStyle, tableRowHeight()]">
序号
</div>
<div v-for="(item, index) in header" :key="index"
:style="[headerTableStyle, tableFiledWidth(index), tableRowHeight()]">
{{ item.name }}
</div>
</div>
<!--数据-->
<div class="bd">
<div class="bd" @click="handleClick">
<ul class="infoList">
<li v-for="(item, index) in list" :key="index" :style="tableRowHeight()">
<div
v-if="isIndex"
:style="[
bodyTableStyle,
bodyTable(index),
tableRowHeight()
]"
>
{{ index + 1 }}
</div>
<div v-for="(itemChild, idx) in header"
:key="idx"
:style="[
@@ -23,6 +38,7 @@
>
{{ item[itemChild.key] }}
</div>
</li>
</ul>
</div>
@@ -102,6 +118,7 @@ export default {
optionsPosition: {},
optionsData: {},
flagInter: null,
isIndex: false,
// 新增导出对话框相关数据
exportDialogVisible: false,
exporting: false,
@@ -131,6 +148,7 @@ export default {
},
headerTableStyle() {
const headStyle = this.optionsSetUp;
this.isIndex=headStyle.isIndex
return {
"text-align": headStyle.textAlignHeader,
"font-size": headStyle.fontSizeHeader + "px",
@@ -216,6 +234,7 @@ export default {
value: {
handler(val) {
this.optionsSetUp = val.setup;
this.optionsPosition = val.position;
this.optionsData = val.data;
this.initData();
@@ -238,6 +257,11 @@ export default {
window.removeEventListener('resize', this.handleResize);
},
methods: {
handleClick(){
if(!!this.optionsSetUp.is_drill_drown){
this.$emit('oepnTheDrillView',this.optionsSetUp.drill_drown_setting)
}
},
initData() {
this.handlerRollFn();
this.handlerHead();