修改算法库

This commit is contained in:
guanj
2025-12-29 20:46:24 +08:00
parent 26ff8087c6
commit 06764c073a
6 changed files with 137 additions and 106 deletions

View File

@@ -13,7 +13,7 @@
@onAddTree="onAddTree"
></algorithmTree>
</pane>
<pane style="background: #fff;width: 100%;" :style="height" >
<pane style="background: #fff; width: 100%" :style="height">
<div class="boxTop">
<div>
<el-radio-group v-model="radio">
@@ -111,13 +111,13 @@
</div>
</template>
<script setup lang="ts">
import { onMounted, ref, provide } from 'vue'
import { onMounted, ref, provide, nextTick } from 'vue'
import 'splitpanes/dist/splitpanes.css'
import { Splitpanes, Pane } from 'splitpanes'
import algorithmTree from '@/components/tree/pqs/algorithmTree.vue'
import { mainHeight } from '@/utils/layout'
import { defaultAttribute } from '@/components/table/defaultAttribute'
import { getLineExport, getList, selectReleation } from '@/api/event-boot/report'
import { getLineExport, selectReleation } from '@/api/event-boot/report'
import addTree from './components/addTree.vue'
import PopupEdit from './components/form.vue'
import { useMonitoringPoint } from '@/stores/monitoringPoint'
@@ -295,6 +295,19 @@ const change = (row: any) => {
})
})
}
const getList = (val: any) => {
setTimeout(async () => {
dotList.value = await treeRef.value.setKey(val.data.pid)
await dotList.value?.childrens.forEach((item: any, i: number) => {
if (item.id == val.data.id) {
radio.value = i
}
})
}, 500)
}
defineExpose({
getList
})
</script>
<style lang="scss">
.splitpanes.default-theme .splitpanes__pane {