海南验收问题整改

This commit is contained in:
GGJ
2024-11-22 08:45:42 +08:00
parent 94ac7ee227
commit 7e315466d0
17 changed files with 710 additions and 589 deletions

View File

@@ -23,7 +23,7 @@
<el-button
v-if="view2"
@click="backbxlb"
type="primary"
class="el-icon-refresh-right"
icon="el-icon-CloseBold"
style="float: right"
@@ -64,7 +64,7 @@
</div>
<div v-if="view3" class="pd10">
<span style="font-weight: 500; font-size: 22px">高级分析</span>
<el-button type="primary" icon="el-icon-ArrowLeftBold" @click="gaoBack" style="float: right">返回</el-button>
<el-button icon="el-icon-Back" @click="gaoBack" style="float: right">返回</el-button>
<analytics :flag="true" :GJList="GJList" :boxoList="boxoList"></analytics>
</div>
</template>

View File

@@ -3,7 +3,7 @@
<!-- <el-icon color='black' class='backIcon'>-->
<!-- <close @click='go(-1)' />-->
<!-- </el-icon>-->
<el-button @click='go(-1)' :class='{positionStyle:custom,ml10:true}' :icon='Back'>返回</el-button>
<el-button @click='go(-1)' :class='{positionStyle:custom,ml10:true}' :icon='Back'>返回</el-button>
</template>
<script setup lang='ts'>

View File

@@ -1,15 +1,8 @@
<template>
<div class="point-tree">
<div style="flex: 1; overflow: hidden">
<Tree
ref="treeRef"
:data="tree"
:canExpand="false"
style="width: 100%; height: 100%"
v-bind="$attrs"
default-expand-all
@onAddTree="onAddTree"
/>
<Tree ref="treeRef" :data="tree" :canExpand="false" style="width: 100%; height: 100%" v-bind="$attrs"
default-expand-all @onAddTree="onAddTree" />
</div>
</div>
</template>
@@ -52,7 +45,7 @@ const loadData = (id?: any) => {
})
})
nodeKey = res.data[0].children[0]?.id? res.data[0].children[0].id: res.data[0].id
nodeKey = res.data.length == 0 ? "" : res.data[0].children[0]?.id ? res.data[0].children[0].id : res.data[0].id
tree.value = res.data
if (id) {
@@ -62,7 +55,7 @@ const loadData = (id?: any) => {
} else {
setTimeout(() => {
treeRef.value.treeRef.setCurrentKey(nodeKey)
emit('init', res.data[0].children[0])
emit('init', res.data.length == 0 ? "" : (res.data[0].children[0] || res.data[0]))
}, 10)
}
})