海南验收问题整改
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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'>
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user